/* pages/landing.css — medex-site ROOT page (landing). Was medex-landing's css/components.css,
   renamed on the site merge (2026-09-16): Shopify assets/ is flat and the thank page shipped a
   components.css of its own. Every rule is scoped with :where(.page-landing) — ZERO added
   specificity (FD-190: never :is()), so section overrides keep winning exactly as before.
   These are page-level components read by 2-12 sections each (measured, rule_usage, 1440 + 390):
   .btn, .chip, .lead-form*, .accent, .visually-hidden, .page-divider. None matched zero elements
   except state/pseudo rules (:hover, :focus-visible, [aria-invalid], ::placeholder, ::before). */

/* ---------------------------------------------------------------------------
   SECTION TOKENS — moved out of the page's tokens.css.

   Read by THIS block and nothing else on the site, so they belong here rather
   than in a site-wide :root. In Shopify a section can be dropped onto any
   template from the theme editor, so a section that reads a token from a
   page-level scope breaks the moment it is moved; scoped to the block's own
   class, it travels with it.

   EVERY band is carried verbatim from the old tokens.css, in that file's own
   order — so the cascade is unchanged whether the page was written
   desktop-first (base + max-width overrides) or mobile-first (base +
   min-width overrides). Verified by computed-style diff at
   375/768/1024/1440/1920.
--------------------------------------------------------------------------- */

:where(.page-landing) {
  --font-serif:          'Roboto Serif', Georgia, 'Times New Roman', serif;
  --font-btn:            'Roboto', system-ui, 'Segoe UI', Arial, sans-serif;
  --c-accent:            #e63329;
  --c-placeholder:       #7f8c91;
  --c-meta:              #6d8898;
  --c-on-accent:         #ffffff;
  --c-surface:           #ffffff;
  --c-border:            #d6e2e7;
  --c-field-border:      #d1dbe0;
  --c-check-border:      #9aa3ad;
  --c-error:             #b8261e;
  --c-divider:           #e8eff3;
  --c-accent-hover:      color-mix(in srgb, #e63329 92%, #000);
  --c-accent-active:     color-mix(in srgb, #e63329 86%, #000);
  --radius-pill:         9999px;
  --radius-sm-m:         12px;
  --radius-md-m:         16px;
  --radius-btn-d:        8.119px;
  --shadow-panel-m:      0 16px 56px rgba(0,0,0,.10);
  --text-form-title:     clamp(16px, calc(19px + (var(--max-vw) - 390px) * 0.015), 37px);
  --lh-form-title:       1.25;
  --ls-form-title:       -0.025em;
  --text-btn:            clamp(10px, calc(12px + (var(--max-vw) - 390px) * 0.015), 24px);
  --lh-btn:              1.5;
  --ls-btn:              0.0417em;
  --text-field:          clamp(11px, calc(13px + (var(--max-vw) - 390px) * 0.015), 26px);
  --lh-field:            1.5;
  --text-form-intro:     clamp(11px, calc(13px + (var(--max-vw) - 390px) * 0.015), 26px);
  --lh-form-intro:       1.55;
  --text-privacy:        clamp(8px, calc(10px + (var(--max-vw) - 390px) * 0.015), 20px);
  --lh-privacy:          1.5;
  --text-privacy-strong: clamp(8px, calc(10px + (var(--max-vw) - 390px) * 0.015), 20px);
  --lh-privacy-strong:   1.5;
  --text-chip:           clamp(7px, calc(9px + (var(--max-vw) - 390px) * 0.015), 18px);
  --lh-chip:             1.5;
  --ls-chip:             -0.025em;
}

@media (min-width: 768px) and (max-width: 1023px) {
  :where(.page-landing) {
    --text-form-title:     clamp(19px, calc(19px + (var(--max-vw) - 768px) * 0.025), 33.488px);
    --text-btn:            clamp(12px, calc(12px + (var(--max-vw) - 768px) * 0.025), 17.918px);
    --text-field:          clamp(13px, calc(13px + (var(--max-vw) - 768px) * 0.025), 16.576px);
    --text-form-intro:     clamp(13px, calc(13px + (var(--max-vw) - 768px) * 0.025), 16.576px);
    --text-privacy:        clamp(10px, calc(10px + (var(--max-vw) - 768px) * 0.025), 11.325px);
    --text-privacy-strong: clamp(10px, calc(10px + (var(--max-vw) - 768px) * 0.025), 12.198px);
    --text-chip:           clamp(9px, calc(9px + (var(--max-vw) - 768px) * 0.025), 14.06px);
  }
}

@media (min-width: 1024px) {
  :where(.page-landing) {
    --text-form-title:     clamp(21px, calc(33.488px * (var(--max-vw) / var(--vw-base))), 40px);
    --lh-form-title:       1.16;
    --ls-form-title:       -0.012em;
    --text-btn:            clamp(11px, calc(17.918px * (var(--max-vw) / var(--vw-base))), 21px);
    --lh-btn:              1;
    --ls-btn:              0;
    --text-field:          clamp(10px, calc(16.576px * (var(--max-vw) / var(--vw-base))), 20px);
    --lh-field:            normal;
    --text-form-intro:     clamp(10px, calc(16.576px * (var(--max-vw) / var(--vw-base))), 20px);
    --lh-form-intro:       1.146;
    --text-privacy:        clamp(7px, calc(11.325px * (var(--max-vw) / var(--vw-base))), 13px);
    --lh-privacy:          normal;
    --text-privacy-strong: clamp(8px, calc(12.198px * (var(--max-vw) / var(--vw-base))), 14px);
    --lh-privacy-strong:   normal;
    --text-chip:           clamp(9px, calc(14.06px * (var(--max-vw) / var(--vw-base))), 17px);
    --lh-chip:             normal;
    --ls-chip:             -0.01em;
  }
}

/* components.css — medex-landing. PAGE-SCAFFOLD (driver, 2026-09-15).
   Shared components ONLY (brief-page §8.2). Sections add scoped overrides in css/sections/<slug>.css,
   preferably by re-declaring the custom properties below inside their own scope
   (e.g. `.doctor .btn { --btn-w: ...; --btn-h: ...; }` for a desktop box drawn at k != 1, brief-page §4.0).

   CONTRACTS (markup every section builder must emit):
   CTA    <a class="btn <slug>__cta" href="#hero-form"><span class="btn__label">Request my vein assessment →</span></a>
          (a slice may add its own class to the label span too; the arrow stays text, D-5)
   Chip   <li class="chip"><span class="chip__label">Personalized vein care</span></li>
   Accent <span class="accent">...</span> inside a heading (brief-page §4.2d)
   Form   <form class="lead-form <slug>__form" method="post" action="" data-form-endpoint-pending>
            <h2|h3 class="lead-form__title">Ready to Take the <span class="accent">Next Step?</span></h2|h3>
            <p class="lead-form__intro">...</p>
            <div class="lead-form__fields">
              <div class="lead-form__field"><label class="visually-hidden" for="<slug>-full-name">Full name</label>
                <input class="lead-form__input" id="<slug>-full-name" name="name" type="text" autocomplete="name" placeholder="Full Name*" required></div>
              ... phone (type=tel inputmode=tel autocomplete=tel required data-lf-phone) · email (type=email autocomplete=email required)
              · message <textarea class="lead-form__input lead-form__textarea" rows=3 maxlength=500 required> + <p class="lead-form__count">
              every field is followed by <p class="lead-form__error" id="<field-id>-error" hidden> (js/lead-form.js toggles it)
            </div>
            <div class="lead-form__consent"><input class="lead-form__check" type="checkbox" required>
              <div class="lead-form__consent-body"><label class="lead-form__consent-text">I agree ...</label><p class="lead-form__error" hidden></div></div>
            (form carries `novalidate`; Figma 3296:831 states A1/A2, 2026-09-16 — zip removed, email required, message + consent added)
            <button type="submit" class="btn lead-form__submit"><span class="btn__label">...</span></button>
            <div class="lead-form__privacy">
              <p class="lead-form__privacy-row"><img class="lead-form__lock" src="assets/images/lead-form-lock.svg" alt="" aria-hidden="true"><span class="lead-form__privacy-text">Your information is private...</span></p>
              <p class="lead-form__privacy-strong">Vein assessment • No obligation</p>
            </div>
          </form>
   Geometry of .lead-form = brief/hero.md §2.3 / §2.4 / §5.4 (the desktop contact card is identical, k = 1).
   The card WIDTH is set by the section layout (flex basis), not here.
   BORDER RULE: Figma strokes are INSIDE and do not move content; a CSS 1px border does. Every padding below that sits
   inside a 1px border is the Figma padding MINUS 1px on desktop (chip, card, field) - fixed 2026-09-15 after the contact
   builder measured the card inner width 384.7 vs 386.69. Mobile hug frames already include their 0.633 stroke. */

/* ---------- utilities ---------- */
:where(.page-landing) .visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
:where(.page-landing) .accent { color: var(--c-accent); }

/* ---------- CTA button (brief-page §8.2.1, D-7) ---------- */
:where(.page-landing) .btn {
  --btn-h: clamp(38px, calc(46px + (var(--max-vw) - 390px) * 0.015), 90px);
}
:where(.page-landing) .btn {
  --btn-w: 100%;
  --btn-r: var(--radius-sm-m);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--btn-w);
  height: var(--btn-h);
  padding-inline: 12px;
  border-radius: var(--btn-r);
  background: var(--c-accent);
  color: var(--c-on-accent);
  font-family: var(--font-btn);
  font-weight: 700;
  font-size: var(--text-btn);
  line-height: var(--lh-btn);
  letter-spacing: var(--ls-btn);
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
}
:where(.page-landing) .btn__label { display: block; }
:where(.page-landing) .btn:hover { background: var(--c-accent-hover); }
:where(.page-landing) .btn:active { background: var(--c-accent-active); }
:where(.page-landing) .btn:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  :where(.page-landing) .btn { transition: background-color 150ms ease; }
}

/* ---------- chip (hero + contact pills, brief/hero.md §5.3) ---------- */
:where(.page-landing) .chip {
  --chip-pad-y: clamp(5px, calc(6px + (var(--max-vw) - 390px) * 0.015), 12px);
  --chip-pad-x: clamp(10px, calc(12px + (var(--max-vw) - 390px) * 0.015), 24px);
}
:where(.page-landing) .chip {
  display: inline-flex;
  align-items: center;
  padding: var(--chip-pad-y) var(--chip-pad-x);
  border: 1px solid var(--c-accent);
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
:where(.page-landing) .chip__label {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--text-chip);
  line-height: var(--lh-chip);
  letter-spacing: var(--ls-chip);
  text-transform: uppercase;
  color: var(--c-accent);
}

/* ---------- lead form (hero + contact, brief-page §8.2.2) ---------- */
:where(.page-landing) .lead-form {
  --lf-pad-t: clamp(16px, calc(20px + (var(--max-vw) - 390px) * 0.015), 39px);
  --lf-pad-x: clamp(16px, calc(20px + (var(--max-vw) - 390px) * 0.015), 39px);
  --lf-pad-b: clamp(16px, calc(20px + (var(--max-vw) - 390px) * 0.015), 39px);
  --lf-title-gap: clamp(7px, calc(8px + (var(--max-vw) - 390px) * 0.015), 16px);
  --lf-intro-gap: clamp(13px, calc(16px + (var(--max-vw) - 390px) * 0.015), 31px);
  --lf-field-gap: clamp(8px, calc(10px + (var(--max-vw) - 390px) * 0.015), 20px);
  --lf-field-h: clamp(37px, calc(45.27px + (var(--max-vw) - 390px) * 0.015), 89px);
  --lf-field-pad-x: clamp(12px, calc(15px + (var(--max-vw) - 390px) * 0.015), 30px);
  --lf-submit-gap: clamp(13px, calc(16px + (var(--max-vw) - 390px) * 0.015), 31px);
  --lf-privacy-gap: clamp(10px, calc(12px + (var(--max-vw) - 390px) * 0.015), 24px);
  --lf-lock-gap: clamp(7px, calc(8px + (var(--max-vw) - 390px) * 0.015), 16px);
  --lf-lock-w: clamp(7px, calc(8px + (var(--max-vw) - 390px) * 0.015), 16px);
  --lf-lock-top: clamp(3px, calc(3.22px + (var(--max-vw) - 390px) * 0.015), 6px);
  --lf-strong-gap: clamp(2px, calc(2px + (var(--max-vw) - 390px) * 0.015), 4px);
  --lf-strong-indent: clamp(15px, calc(18px + (var(--max-vw) - 390px) * 0.015), 35px);
  --lf-submit-h: clamp(38px, calc(45.99px + (var(--max-vw) - 390px) * 0.015), 90px);
}
:where(.page-landing) .lead-form {
  display: flex;
  flex-direction: column;
  padding: var(--lf-pad-t) var(--lf-pad-x) var(--lf-pad-b);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md-m);
  box-shadow: var(--shadow-panel-m);
}
:where(.page-landing) .lead-form__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: var(--text-form-title);
  line-height: var(--lh-form-title);
  letter-spacing: var(--ls-form-title);
  color: var(--c-ink);
}
:where(.page-landing) .lead-form__intro {
  margin-top: var(--lf-title-gap);
  font-family: var(--font-sans);
  font-size: var(--text-form-intro);
  line-height: var(--lh-form-intro);
  color: var(--c-text);
}
:where(.page-landing) .lead-form__fields {
  display: flex;
  flex-direction: column;
  gap: var(--lf-field-gap);
  margin-top: var(--lf-intro-gap);
}
:where(.page-landing) .lead-form__field { display: block; }
:where(.page-landing) .lead-form__input {
  display: block;
  width: 100%;
  height: var(--lf-field-h);
  padding-inline: var(--lf-field-pad-x);
  background: #fff;
  border: 1px solid var(--c-field-border);
  border-radius: var(--radius-sm-m);
  font-family: var(--font-sans);
  font-size: var(--text-field);
  line-height: var(--lh-field);
  color: var(--c-ink);
}
:where(.page-landing) .lead-form__input::placeholder { color: var(--c-placeholder); opacity: 1; }
:where(.page-landing) .lead-form__input:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 2px; }
/* message, counter, consent, errors (Figma 3296:831 A1/A2, 2026-09-16). The state frames are drawn at the main-desktop
   card size (field 55 ≈ 54.81), so every new size is a ratio of an existing band token and follows all three bands:
   textarea 112 / pad-y 15 / error gap 5 / consent gap 14 = field-h × 2.043 / .2737 / .0912 / .2554;
   type: line 22, counter 11, error 12.5, checkbox 16 = text-field (16.576) × 1.327 / .6636 / .754 / .965. */
:where(.page-landing) .lead-form {
  --lf-area-h: calc(var(--lf-field-h) * 2.043);
  --lf-area-pad-y: calc(var(--lf-field-h) * .2737);
  --lf-help-gap: calc(var(--lf-field-h) * .0912);
  --lf-consent-gap: calc(var(--lf-field-h) * .2554);
  --lf-check: max(14px, calc(var(--text-field) * .965));
  --lf-error-size: max(11px, calc(var(--text-field) * .754));
}
:where(.page-landing) .lead-form__textarea {
  height: var(--lf-area-h);                                   /* JS grows it with the text, up to max-height */
  min-height: var(--lf-area-h);
  max-height: calc(5lh + 2 * var(--lf-area-pad-y) + 2px);    /* 3 lines at rest, grows to 5, then scrolls */
  padding-block: var(--lf-area-pad-y);
  line-height: 1.327;
  resize: none;
  overflow-y: auto;
}
:where(.page-landing) .lead-form__count {
  margin-top: var(--lf-help-gap);
  font-family: var(--font-sans);
  font-size: calc(var(--text-field) * .6636);
  line-height: normal;
  color: var(--c-placeholder);
  text-align: right;
}
:where(.page-landing) .lead-form__error {
  margin-top: var(--lf-help-gap);
  font-family: var(--font-sans);
  font-size: var(--lf-error-size);
  line-height: 1.28;
  color: var(--c-error);
}
:where(.page-landing) .lead-form__field--invalid .lead-form__count { display: none; }   /* A2: the error takes the counter's place */
:where(.page-landing) .lead-form__input[aria-invalid="true"],
:where(.page-landing) .lead-form__check[aria-invalid="true"] {
  border-color: var(--c-accent);
  box-shadow: inset 0 0 0 .5px var(--c-accent);   /* drawn 1.5px stroke without moving the content */
}
:where(.page-landing) .lead-form__consent {
  display: flex;
  align-items: flex-start;
  gap: calc(var(--lf-check) * .625);
  margin-top: var(--lf-consent-gap);
}
:where(.page-landing) .lead-form__check {
  flex: none;
  appearance: none;
  -webkit-appearance: none;
  width: var(--lf-check);
  height: var(--lf-check);
  margin: 0;
  background: #fff center / 70% no-repeat;
  border: 1.5px solid var(--c-check-border);
  border-radius: 3px;
  cursor: pointer;
}
:where(.page-landing) .lead-form__check:checked {
  background-color: var(--c-accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5.2 4.3 8.5 11 1.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  border-color: var(--c-accent);
}
:where(.page-landing) .lead-form__check:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 2px; }
:where(.page-landing) .lead-form__consent-body { flex: 1 1 0; min-width: 0; }
:where(.page-landing) .lead-form__consent-text {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--text-privacy);
  line-height: 1.372;
  color: var(--c-meta);
  cursor: pointer;
}
:where(.page-landing) .lead-form__consent-link {
  color: inherit;
  text-decoration: underline;
  text-underline-position: from-font;
}
:where(.page-landing) .lead-form__consent-link:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 1px; }
:where(.page-landing) .lead-form__consent .lead-form__error { margin-top: calc(var(--lf-help-gap) * .8); }

:where(.page-landing) .lead-form .lead-form__submit {   /* 2 classes: must beat the band-level `.btn { --btn-h }` in the media blocks */
  --btn-w: 100%;
  --btn-h: var(--lf-submit-h);
  margin-top: var(--lf-submit-gap);
}
:where(.page-landing) .lead-form__privacy { margin-top: var(--lf-privacy-gap); }
:where(.page-landing) .lead-form__privacy-row {
  display: flex;
  align-items: flex-start;
  gap: var(--lf-lock-gap);
}
:where(.page-landing) .lead-form__lock {
  flex: none;
  width: var(--lf-lock-w);
  height: auto;
  margin-top: var(--lf-lock-top);
}
:where(.page-landing) .lead-form__privacy-text,
:where(.page-landing) .lead-form__privacy-strong {
  font-family: var(--font-sans);
  color: var(--c-meta);
}
:where(.page-landing) .lead-form__privacy-text {
  font-size: var(--text-privacy);
  line-height: var(--lh-privacy);
}
:where(.page-landing) .lead-form__privacy-strong {
  width: fit-content;                     /* box = text box (gate), not the full row — hero builder, 2026-09-15 */
  margin-top: var(--lf-strong-gap);
  margin-left: var(--lf-strong-indent);
  font-weight: 700;
  font-size: var(--text-privacy-strong);
  line-height: var(--lh-privacy-strong);
}

/* ---------- mobile section divider (brief-page §4.5): page-level element between sections, hidden from 1024 ---------- */
:where(.page-landing) .page-divider { height: 1px; }
:where(.page-landing) .page-divider::before {
  content: "";
  display: block;
  height: 1px;
  background: var(--c-divider);
}

@media (min-width: 768px) and (max-width: 1023px) {
  :where(.page-landing) .btn {
    --btn-h: clamp(46px, calc(46px + (var(--max-vw) - 768px) * 0.025), 57.85px);
  }
  :where(.page-landing) .chip {
    --chip-pad-y: clamp(6px, calc(6px + (var(--max-vw) - 768px) * 0.025), 7.43px);
    --chip-pad-x: clamp(12px, calc(12px + (var(--max-vw) - 768px) * 0.025), 19.35px);
  }
  :where(.page-landing) .lead-form {
    --lf-pad-t: clamp(20px, calc(20px + (var(--max-vw) - 768px) * 0.025), 36.55px);
    --lf-pad-x: clamp(20px, calc(20px + (var(--max-vw) - 768px) * 0.025), 47.71px);
    --lf-pad-b: clamp(20px, calc(20px + (var(--max-vw) - 768px) * 0.025), 20.54px);
    --lf-title-gap: clamp(8px, calc(8px + (var(--max-vw) - 768px) * 0.025), 9.59px);
    --lf-intro-gap: clamp(16px, calc(16px + (var(--max-vw) - 768px) * 0.025), 21.15px);
    --lf-field-gap: clamp(10px, calc(10px + (var(--max-vw) - 768px) * 0.025), 11.16px);
    --lf-field-h: clamp(45.27px, calc(45.27px + (var(--max-vw) - 768px) * 0.025), 54.81px);
    --lf-field-pad-x: clamp(15px, calc(15px + (var(--max-vw) - 768px) * 0.025), 13.21px);
    --lf-submit-gap: clamp(16px, calc(16px + (var(--max-vw) - 768px) * 0.025), 18.26px);
    --lf-privacy-gap: clamp(12px, calc(12px + (var(--max-vw) - 768px) * 0.025), 21.87px);
    --lf-lock-gap: clamp(8px, calc(8px + (var(--max-vw) - 768px) * 0.025), 6.09px);
    --lf-lock-w: clamp(8px, calc(8px + (var(--max-vw) - 768px) * 0.025), 9.13px);
    --lf-lock-top: clamp(3.22px, calc(3.22px + (var(--max-vw) - 768px) * 0.025), 0.45px);
    --lf-strong-gap: clamp(2px, calc(2px + (var(--max-vw) - 768px) * 0.025), 7.77px);
    --lf-strong-indent: clamp(18px, calc(18px + (var(--max-vw) - 768px) * 0.025), 15.22px);
    --lf-submit-h: clamp(45.99px, calc(45.99px + (var(--max-vw) - 768px) * 0.025), 57.85px);
  }
}

@media (min-width: 1024px) {
  :where(.page-landing) .btn {
    --btn-h: clamp(37px, calc(57.85px * (var(--max-vw) / var(--vw-base))), 69px);
  }
  :where(.page-landing) .btn {
    --btn-w: clamp(245px, calc(386.69px * (var(--max-vw) / var(--vw-base))), 459px);
    --btn-r: var(--radius-btn-d);
  }
  :where(.page-landing) .chip {
    --chip-pad-y: clamp(5px, calc(7.43px * (var(--max-vw) / var(--vw-base))), 9px);
    --chip-pad-x: clamp(12px, calc(19.35px * (var(--max-vw) / var(--vw-base))), 23px);
  }
  :where(.page-landing) .lead-form {
    --lf-pad-t: clamp(23px, calc(36.55px * (var(--max-vw) / var(--vw-base))), 43px);
    --lf-pad-x: clamp(30px, calc(47.71px * (var(--max-vw) / var(--vw-base))), 57px);
    --lf-pad-b: clamp(13px, calc(20.54px * (var(--max-vw) / var(--vw-base))), 24px);
    --lf-title-gap: clamp(6px, calc(9.59px * (var(--max-vw) / var(--vw-base))), 11px);
    --lf-intro-gap: clamp(13px, calc(21.15px * (var(--max-vw) / var(--vw-base))), 25px);
    --lf-field-gap: clamp(7px, calc(11.16px * (var(--max-vw) / var(--vw-base))), 13px);
    --lf-field-h: clamp(35px, calc(54.81px * (var(--max-vw) / var(--vw-base))), 65px);
    --lf-field-pad-x: clamp(8px, calc(13.21px * (var(--max-vw) / var(--vw-base))), 16px);
    --lf-submit-gap: clamp(12px, calc(18.26px * (var(--max-vw) / var(--vw-base))), 22px);
    --lf-privacy-gap: clamp(14px, calc(21.87px * (var(--max-vw) / var(--vw-base))), 26px);
    --lf-lock-gap: clamp(4px, calc(6.09px * (var(--max-vw) / var(--vw-base))), 7px);
    --lf-lock-w: clamp(6px, calc(9.13px * (var(--max-vw) / var(--vw-base))), 11px);
    --lf-lock-top: clamp(0px, calc(0.45px * (var(--max-vw) / var(--vw-base))), 1px);
    --lf-strong-gap: clamp(5px, calc(7.77px * (var(--max-vw) / var(--vw-base))), 9px);
    --lf-strong-indent: clamp(10px, calc(15.22px * (var(--max-vw) / var(--vw-base))), 18px);
    --lf-submit-h: clamp(37px, calc(57.85px * (var(--max-vw) / var(--vw-base))), 69px);
  }
  :where(.page-landing) .lead-form {
    border-radius: 24.358px;
    box-shadow: 26.388px 33.493px 139.857px 0 rgba(0,0,0,.13);
  }
  :where(.page-landing) .lead-form {   /* desktop band scales the whole card together: lower floors keep the new parts in proportion at 1024 */
    --lf-check: max(10px, calc(var(--text-field) * .965));
    --lf-error-size: max(9px, calc(var(--text-field) * .754));
  }
  :where(.page-landing) .lead-form__title { max-width: clamp(191px, calc(302.45px * (var(--max-vw) / var(--vw-base))), 359px); }
  :where(.page-landing) .lead-form__intro { max-width: clamp(234px, calc(370.45px * (var(--max-vw) / var(--vw-base))), 439px); }
  :where(.page-landing) .lead-form__input { border-radius: var(--radius-btn-d); }
  :where(.page-landing) .lead-form .lead-form__submit { --btn-w: 100%; --btn-r: var(--radius-btn-d); }
  :where(.page-landing) .lead-form__privacy-text { white-space: nowrap; }
  :where(.page-landing) .page-divider { display: none; }
}

/* ---------- lead form: sending + failed states (Figma 3296:917 A3 / 3296:958 A4, 2026-09-17) ----------
   js/lead-handoff.js sets form[data-state] = "sending" | "error" (idle = no attribute).
   Frames are drawn at the main-desktop card size like A1/A2, so sizes are ratios of the band tokens:
   banner type 14 = text-field (16.576) × .8446, line 19 → 1.357; padding 10 / 12 and gap 3 =
   field-h (54.81) × .1824 / .219 / .0547; radius 8 (drawn, fixed); spinner 14 = text-field × .8446, ring 2.
   A4: the banner takes the intro's place (same margins as the intro). A3: button #F09A94, not clickable. */
:where(.page-landing) .lead-form {
  --lf-alert-size: max(11px, calc(var(--text-field) * .8446));
  --lf-alert-pad-y: calc(var(--lf-field-h) * .1824);
  --lf-alert-pad-x: calc(var(--lf-field-h) * .219);
  --lf-alert-gap: calc(var(--lf-field-h) * .0547);
  --c-accent-busy: #f09a94;
  --c-alert-bg: #fdf0ee;
  --c-alert-border: #f1b7b0;
}
:where(.page-landing) .lead-form__alert {
  display: flex;
  flex-direction: column;
  gap: var(--lf-alert-gap);
  margin-top: var(--lf-title-gap);
  padding: var(--lf-alert-pad-y) var(--lf-alert-pad-x);
  background: var(--c-alert-bg);
  border: 1px solid var(--c-alert-border);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: var(--lf-alert-size);
  line-height: 1.357;
  color: var(--c-ink);
}
:where(.page-landing) .lead-form__alert[hidden] { display: none; }
:where(.page-landing) .lead-form__alert-title {
  font-weight: 700;
  line-height: normal;
  color: var(--c-error);
}
:where(.page-landing) .lead-form__alert-link {
  color: inherit;
  white-space: nowrap;
}
:where(.page-landing) .lead-form__alert-link:hover { text-decoration: underline; }
:where(.page-landing) .lead-form__alert-link:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 1px; }
:where(.page-landing) .lead-form[data-state="error"] .lead-form__intro { display: none; }

:where(.page-landing) .lead-form__spinner { display: none; }
:where(.page-landing) .lead-form[data-state="sending"] .lead-form__submit,
:where(.page-landing) .lead-form[data-state="sending"] .lead-form__submit:hover,
:where(.page-landing) .lead-form[data-state="sending"] .lead-form__submit:active {
  gap: calc(var(--lf-alert-size) * .714);            /* 10 at the drawn size */
  background: var(--c-accent-busy);
  cursor: default;
}
:where(.page-landing) .lead-form[data-state="sending"] .lead-form__spinner {
  display: block;
  flex: none;
  width: var(--lf-alert-size);
  height: var(--lf-alert-size);
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
}
@media (prefers-reduced-motion: no-preference) {
  :where(.page-landing) .lead-form[data-state="sending"] .lead-form__spinner {
    animation: lead-form-spin .8s linear infinite;
  }
}
@media (prefers-reduced-motion: reduce) {
  :where(.page-landing) .lead-form[data-state="sending"] .lead-form__spinner {
    animation: lead-form-spin 2.4s linear infinite;   /* slow, but still reads as "working" */
  }
}
@keyframes lead-form-spin { to { transform: rotate(360deg); } }
