/* Madaris v3.2.2 — homepage button size and dark-footer contrast fix.
   Loaded AFTER platform CSS and the motion stylesheet. Homepage only.
   Does not change any animation or click handler. */

:root { --md322-button-height:44px; --md322-button-radius:11px; }

/* Shared dimensions for primary, outline, pricing, footer CTA and motion control.
   Text length determines width: all controls have the same height, radius, font, spacing. */
body.saas-page:not(.is-console) .saas-nav .nav-actions > a.saas-btn,
body.saas-page:not(.is-console) main .hero-ctas > a.saas-btn,
body.saas-page:not(.is-console) main .hero-ctas > a.saas-btn-outline,
body.saas-page:not(.is-console) main .plan-card > a.saas-btn,
body.saas-page:not(.is-console) main .plan-card > a.saas-btn-outline,
body.saas-page:not(.is-console) main .bottom-cta .cta-inner > a.saas-btn,
body.saas-page:not(.is-console) .saas-footer #madaris-motion-toggle {
  box-sizing:border-box;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  gap:10px;
  height:var(--md322-button-height);
  min-height:var(--md322-button-height);
  padding:0 18px;
  margin:0;
  border-width:1px;
  border-style:solid;
  border-radius:var(--md322-button-radius);
  font-family:LamaSans, sans-serif;
  font-size:13px;
  font-weight:700;
  line-height:1.25;
  letter-spacing:normal;
  white-space:nowrap;
  text-align:center;
  text-decoration:none;
  opacity:1;
  cursor:pointer;
}

/* The platform-wide .saas-page .saas-btn rule overrides .saas-btn-light.
   Explicitly restore light CTA: dark lettering on mint, visually distinct on green. */
body.saas-page:not(.is-console) main .bottom-cta .cta-inner > a.saas-btn.saas-btn-light {
  background:#e2efc7;
  color:#123c35;
  border-color:#e2efc7;
  box-shadow:0 6px 22px rgba(0,0,0,.1);
}
body.saas-page:not(.is-console) main .bottom-cta .cta-inner > a.saas-btn.saas-btn-light:hover {
  background:#d3e7ae;
  border-color:#d3e7ae;
  color:#123c35;
}

/* Same size as header CTA, with a readable contrasting color in the dark footer. */
body.saas-page:not(.is-console) .saas-footer .md321-motion-pref {
  display:flex;
  align-items:center;
  min-width:0;
  margin-block-start:0;
}
body.saas-page:not(.is-console) .saas-footer #madaris-motion-toggle {
  appearance:none;
  background:#e2efc7;
  border-color:#e2efc7;
  color:#123c35;
  box-shadow:0 5px 15px rgba(0,0,0,.13);
  transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease;
}
body.saas-page:not(.is-console) .saas-footer #madaris-motion-toggle:hover {
  background:#d3e7ae;
  border-color:#d3e7ae;
  box-shadow:0 8px 21px rgba(0,0,0,.2);
}
body.saas-page:not(.is-console) .saas-footer #madaris-motion-toggle:focus-visible,
body.saas-page:not(.is-console) .bottom-cta .saas-btn-light:focus-visible {
  outline:3px solid #fff;
  outline-offset:3px;
}
/* Outline buttons keep matching neutral appearance and dimensions. */
body.saas-page:not(.is-console) main .hero-ctas > a.saas-btn-outline,
body.saas-page:not(.is-console) main .plan-card > a.saas-btn-outline {
  color:#123c35;
  background:transparent;
  border-color:#cbd7ce;
}
body.saas-page:not(.is-console) main .hero-ctas > a.saas-btn-outline:hover,
body.saas-page:not(.is-console) main .plan-card > a.saas-btn-outline:hover {
  background:#eff6ef;
}

@media (max-width:740px) {
 body.saas-page:not(.is-console) .saas-footer .md321-motion-pref {
   margin-block-start:8px;
 }
 /* The labels may wrap only if a very narrow screen requires it. */
 body.saas-page:not(.is-console) main .hero-ctas > a,
 body.saas-page:not(.is-console) main .bottom-cta .cta-inner > a.saas-btn {
   max-width:100%;
 }
}
