/* ═══════════════════════════════════════════════════════════════════════
   InstaFunders — Nocturne
   Shared chrome (header, footer, menu), form controls and the few states
   script toggles. Section layout lives inline in each page, as it did in
   the approved prototype; tokens are documented in DESIGN.md.
   ═══════════════════════════════════════════════════════════════════════ */

@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/instrument-serif-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/instrument-serif-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(/fonts/instrument-serif-italic-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(/fonts/instrument-serif-italic-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/fonts/geist-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/fonts/geist-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url(/fonts/geist-mono-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url(/fonts/geist-mono-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: dark;
  --night: #0C0F1C;      /* ground */
  --night-2: #10142A;    /* alternate band */
  --deep: #080A14;       /* footer */
  --card: #161A2C;       /* cards and panels */
  --rule: #1E2338;       /* section hairlines */
  --edge: #262B42;       /* card borders, rows */
  --field: #3A4060;      /* ghost-pill borders and decorative hairlines */
  --field-strong: #6B7294; /* control boundaries: 3:1 or more on night and card */
  --field-hover: #8D92A8; /* hover on a control boundary */
  --moon: #F3EFE8;       /* ink on dark; light sections */
  --soft: #C9CBD6;       /* body copy on dark */
  --muted: #A4A9BF;      /* secondary copy */
  --faint: #8D92A8;      /* labels, fine print */
  --blush: #FFB6B1;
  --apricot: #FFC595;
  --sky: #A9E1FF;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: clamp(20px, 5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--night); color: var(--moon); font: 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
a { color: var(--moon); text-decoration: none; transition: opacity 160ms ease; }
@media (hover: hover) { main a:hover, .foot a:hover { opacity: 0.82; } }
img, svg { max-width: 100%; }
h1, h2, h3, legend, blockquote { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
input, textarea, button, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }
/* Sky is 1.2:1 on moon: light surfaces take a night ring. */
.tool__out :focus-visible, .on-light :focus-visible { outline-color: var(--night); }
.mono { font-family: var(--mono); }
.hp { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--moon); color: var(--night); padding: 10px 16px; border-radius: 999px; font-weight: 600; }
.skip:focus { top: 12px; }
@media (max-width: 760px) { .hide-sm { display: none !important; } }

/* The hare: the logo symbol as a mask, so it takes the colour of `color`. */
.rb { display: inline-block; flex: none; background-color: currentColor;
  -webkit-mask: url(/img/hare.svg) center / contain no-repeat; mask: url(/img/hare.svg) center / contain no-repeat; }

details summary { list-style: none; cursor: pointer; }
details summary::-webkit-details-marker { display: none; }
details[open] .plus { transform: rotate(45deg); }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 22px; border-radius: 999px; border: 0; font-size: 14px; font-weight: 600; white-space: nowrap; }
.pill--blush { background: var(--blush); color: var(--night); }
.pill--sky { background: var(--sky); color: var(--night); }
.pill--ghost { background: transparent; border: 1px solid var(--field); color: var(--moon); font-weight: 500; }
.pill--lg { min-height: 56px; padding: 0 30px; font-size: 16px; }

/* ── Header ───────────────────────────────────────────────────────────── */
/* The blur sits on a pseudo-element: backdrop-filter on the header itself would
   make it the containing block of the fixed mobile menu sheet. */
.nav { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--rule); }
.nav::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(12, 15, 28, 0.88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.nav__in { max-width: 1200px; margin: 0 auto; padding: 12px var(--gutter); display: flex; align-items: center; gap: 8px 32px; }
.logo { display: flex; align-items: center; gap: 6px; min-height: 44px; margin-right: auto; }
.logo__dot { border-radius: 50%; }
.logo__dot--sky { width: 4px; height: 4px; background: var(--sky); }
.logo__dot--apricot { width: 6px; height: 6px; background: var(--apricot); }
.logo__hare { width: 38px; height: 30px; color: var(--blush); }
.logo__hare--sm { width: 34px; height: 27px; }
.logo__word { font-size: 13px; font-weight: 500; letter-spacing: 0.3em; padding-left: 6px; color: var(--moon); }
.logo__word--sm { font-size: 12px; }
.nav__links { display: flex; gap: 0 28px; font-size: 14px; white-space: nowrap; }
.nav__links a { color: var(--soft); padding: 12px 0; }
.nav__links a:hover { color: var(--moon); }
.nav__links a[aria-current="page"] { color: var(--moon); box-shadow: inset 0 -1px 0 var(--blush); }
.nav__end { display: flex; align-items: center; gap: 20px; }
.nav__tel { font-family: var(--mono); font-size: 13px; color: var(--soft); white-space: nowrap; padding: 12px 0; }
.nav__end .pill { padding: 0 20px; }
.menu__partner { align-self: flex-start; }
@media (max-width: 560px) { .nav__partner { display: none; } }

.menu { display: none; }
.menu > summary { display: flex; align-items: center; min-height: 44px; padding: 0 4px; font-size: 14px; font-weight: 500; color: var(--soft); }
.menu[open] > summary .m-open, .menu:not([open]) > summary .m-close { display: none; }
.menu:not([open]) .menu__sheet { display: none; }
.menu__sheet { position: fixed; left: 0; right: 0; bottom: 0; top: var(--nav-h, 69px); z-index: 30; background: var(--night); border-top: 1px solid var(--rule); padding: 24px var(--gutter) 40px; display: flex; flex-direction: column; gap: 28px; overflow-y: auto; }
.menu__sheet nav { display: flex; flex-direction: column; }
.menu__sheet nav a { font-family: var(--serif); font-size: 40px; line-height: 1.2; padding: 4px 0; }
.menu__sheet nav a[aria-current="page"] { color: var(--blush); }
.menu__tel { font-family: var(--mono); font-size: 18px; color: var(--blush); }
html.menu-open { overflow: hidden; }
@media (max-width: 1160px) { .nav__tel { display: none; } }
@media (max-width: 1000px) {
  .nav__links { display: none; }
  .menu { display: block; }
  .nav__end { gap: 12px; }
}
@media (max-width: 420px) { .logo__word { display: none; } }

/* ── Footer ───────────────────────────────────────────────────────────── */
.foot { background: var(--deep); border-top: 1px solid var(--rule); }
.foot__in { max-width: 1200px; margin: 0 auto; padding: 72px var(--gutter) 40px; display: flex; flex-direction: column; gap: 56px; }
.foot__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 40px 32px; }
@media (min-width: 1100px) { .foot__cols { grid-template-columns: 1.4fr repeat(5, 1fr); } }
.foot__brand { display: flex; flex-direction: column; gap: 18px; }
.foot__line { margin: 0; font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.2; color: var(--soft); }
.foot__nav { display: flex; flex-direction: column; gap: 0; font-size: 15px; }
.foot__nav a { color: var(--soft); padding: 11px 0; min-height: 44px; }
.foot__talk a { color: var(--moon); }
.foot__talk address { font-style: normal; line-height: 1.6; padding-top: 6px; color: var(--soft); }
.foot__label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.foot__legal { margin: 0; font-size: 13px; line-height: 1.6; color: var(--faint); max-width: 860px; }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--faint); }
.foot__base nav { display: flex; flex-wrap: wrap; gap: 0 20px; margin: -12px 0; }
.foot__base a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }

/* ── Forms ────────────────────────────────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 500; }
.field .req { color: var(--blush); }
.field .opt-note { color: var(--faint); font-weight: 400; }
.input { width: 100%; height: 52px; padding: 0 16px; background: var(--night); border: 1px solid var(--field-strong); border-radius: 12px; color: var(--moon); font-size: 16px; font-weight: 400; }
textarea.input { height: auto; min-height: 140px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
select.input { appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23C9CBD6' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
input[type=file].input { height: auto; padding: 14px 16px; }
input[type=file].input::file-selector-button { font: 600 14px var(--sans); background: var(--moon); color: var(--night); border: 0; border-radius: 999px; padding: 10px 18px; margin-right: 14px; cursor: pointer; }
.input::placeholder { color: #8287A0; }
.input:focus { outline: 2px solid var(--sky); outline-offset: 1px; border-color: var(--sky); }
.input[aria-invalid="true"] { border-color: var(--blush); }
.hint { font-size: 13px; font-weight: 400; color: var(--muted); }
.error { margin: 0; font-size: 14px; font-weight: 400; color: var(--blush); }
.error:empty { display: none; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; font-weight: 400; line-height: 1.6; color: var(--muted); }
.check input { width: 20px; height: 20px; flex: none; margin: 2px 0 0; accent-color: var(--blush); }
.check a { color: var(--sky); text-decoration: underline; }
.check-wrap { display: flex; flex-direction: column; gap: 6px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 4px; }
.form-foot .note { font-size: 13px; color: var(--faint); }
.form-status { margin: 0; color: var(--blush); }
.form-status:empty { display: none; }
.sent { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 24px 0; }
.sent[hidden] { display: none; }

/* Option cards: radio inputs styled as the prototype's big choice buttons. */
.opts { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.opts > legend { padding: 0; margin-bottom: 4px; font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3vw, 40px); line-height: 1.05; }
.opts__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.opt { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 0 20px; border-radius: 16px; border: 1px solid var(--field-strong); background: var(--night); color: var(--soft); font-size: 16px; cursor: pointer; transition: border-color 160ms ease, background-color 160ms ease; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt--mono { font-family: var(--mono); }
.opt .tick { display: none; flex: none; }
.opt:has(input:checked) { border: 1.5px solid var(--blush); background: #2A2030; color: var(--moon); font-weight: 600; }
.opt:has(input:checked) .tick { display: block; }
.opt:has(input:focus-visible) { outline: 2px solid var(--sky); outline-offset: 2px; }
@media (hover: hover) { .opt:hover { border-color: var(--field-hover); } }

/* ── The application stepper ──────────────────────────────────────────── */
.app-card { scroll-margin-top: 88px; flex: 999 1 560px; min-width: 0; background: var(--card); border: 1px solid var(--edge); border-radius: 28px; overflow: hidden; }
.chapters { list-style: none; margin: 0; padding: 24px clamp(24px, 4vw, 40px); border-bottom: 1px solid var(--edge); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.chapters li { display: flex; flex-direction: column; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.chapters li::before { content: ""; height: 4px; border-radius: 4px; background: var(--edge); transition: background-color 240ms ease; }
.chapters li.is-done::before, .chapters li.is-now::before { background: var(--blush); }
.chapters li.is-now { color: var(--moon); }
.stage { border: 0; margin: 0; padding: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 40px); min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.stage__head { display: flex; flex-direction: column; gap: 8px; }
.stage__count { font-family: var(--mono); font-size: 12px; color: var(--sky); }
.stage__title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.4vw, 46px); line-height: 1.05; }
.stage-nav { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 24px; border-top: 1px solid var(--edge); }
.stage-nav .note { font-size: 13px; color: var(--faint); max-width: 34ch; }
/* Parts that only work with script (the eligibility check, the calculator, Back/Continue) are absent without it. */
html:not(.js) .js-only { display: none !important; }

/* ── The application (Apply now): one form in five numbered sections ──── */
.app-section { border: 0; margin: 0; padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 40px); min-width: 0; display: flex; flex-direction: column; gap: 24px; border-bottom: 1px solid var(--edge); }
.app-section:last-of-type { border-bottom: 0; }
.app-section__head { display: flex; align-items: baseline; gap: 14px; }
.app-section__num { font-family: var(--mono); font-size: 13px; color: var(--sky); }
.app-section__title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.2vw, 42px); line-height: 1.05; }
.app-section__lead { margin: 0; max-width: 68ch; color: var(--soft); font-size: 15px; line-height: 1.65; }
.opts > legend.opts__small { font-family: var(--sans); font-size: 15px; font-weight: 500; line-height: 1.4; }
.opts__grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 440px; }
.owner { display: flex; flex-direction: column; gap: 16px; }
.owner + .owner { padding-top: 24px; border-top: 1px dashed var(--edge); }
.owner__title { margin: 0; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.app-aside { flex: 1 1 300px; display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 1000px) { .app-aside { position: sticky; top: 96px; } }
/* Without script the four statement inputs and a typed signature stand in for the drop zone and pad. */
html.js .no-js-only { display: none !important; }

.drop { display: flex; flex-direction: column; gap: 12px; }
.drop__input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop__zone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 150px; padding: 28px; border: 1.5px dashed var(--field-strong); border-radius: 16px; background: var(--night); color: var(--soft); text-align: center; cursor: pointer; transition: border-color 160ms ease, background-color 160ms ease; }
.drop__zone svg { color: var(--blush); }
.drop__zone strong { color: var(--moon); font-weight: 600; }
.drop__input:focus-visible + .drop__zone { outline: 2px solid var(--sky); outline-offset: 2px; }
.drop.is-over .drop__zone, .drop__zone:hover { border-color: var(--blush); background: #15182A; }
.drop__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.drop__list:empty { display: none; }
.drop__list li { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 8px 0 16px; border: 1px solid var(--edge); border-radius: 12px; font-size: 14px; }
.drop__list .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--moon); }
.drop__list .size { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.drop__list button { min-width: 44px; min-height: 44px; border: 0; background: none; color: var(--muted); font-size: 13px; }
.drop__list button:hover { color: var(--blush); }

.sig { display: flex; flex-direction: column; gap: 12px; }
.sig__tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--field-strong); border-radius: 999px; align-self: flex-start; }
.sig__tab { min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: none; color: var(--soft); font-size: 13px; font-weight: 600; }
.sig__tab[aria-pressed="true"] { background: var(--moon); color: var(--night); }
.sig__pad { position: relative; border: 1px solid var(--field-strong); border-radius: 16px; background: var(--night); overflow: hidden; }
.sig__canvas { display: block; width: 100%; height: auto; aspect-ratio: 5 / 2; touch-action: none; cursor: crosshair; }
.sig__line { position: absolute; left: 6%; right: 6%; bottom: 26%; height: 1px; background: var(--edge); pointer-events: none; }
.sig__clear { position: absolute; top: 8px; right: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--field); border-radius: 999px; background: var(--card); color: var(--soft); font-size: 12px; }
.sig__typed { height: 72px; font-family: var(--serif); font-style: italic; font-size: 34px; }
.sig__meta { margin: 0; font-family: var(--mono); font-size: 12px; color: var(--faint); }
.sig.is-invalid .sig__pad, .sig.is-invalid .sig__typed { border-color: var(--blush); }

.opts__grid--small { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.opt--check { min-height: 52px; font-size: 15px; }
.opt--check:has(input:checked) { border-color: var(--sky); background: #17263A; }

/* Cloudflare Turnstile: takes no room unless Cloudflare asks for a click. */
.turnstile:empty { display: none; }
.turnstile { min-height: 0; }

/* ── Thank-you screens (all three forms) ───────────────────────────────── */
.done { display: flex; flex-direction: column; gap: 28px; padding: clamp(32px, 5vw, 56px) clamp(24px, 4vw, 44px); }
.done--plain { padding: 8px 0; }
.done[hidden] { display: none; }
.done:focus { outline: none; }
.done__top { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.done__hare { width: 76px; height: 61px; color: var(--blush); }
.done__eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #2A2030; color: var(--blush); font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.done__eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.done__eyebrow--sky { background: #17263A; color: var(--sky); }
.done__title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 4.4vw, 60px); line-height: 1; text-wrap: balance; }
.done__accent { font-style: italic; color: var(--apricot); }
.done__lead { margin: 0; max-width: 58ch; color: var(--soft); font-size: 17px; line-height: 1.6; }
.done__lead strong { color: var(--moon); font-weight: 600; }
.done__lead a { color: var(--blush); white-space: nowrap; }
.done__ref { font-family: var(--mono); font-size: 15px; color: var(--moon); background: var(--night); border: 1px solid var(--field); border-radius: 8px; padding: 2px 8px; white-space: nowrap; }
.done__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.done__steps li { display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 1px solid var(--edge); border-radius: 18px; background: var(--night); }
.done__steps strong { display: block; font-size: 16px; font-weight: 600; color: var(--moon); margin-bottom: 4px; }
.done__steps p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.done__num { font-family: var(--mono); font-size: 12px; color: var(--sky); }
.done__actions { display: flex; flex-wrap: wrap; gap: 10px; }
/* In the narrow side cards (contact, partners) the steps stack as rows. */
.done--plain .done__steps { grid-template-columns: 1fr; gap: 8px; }
.done--plain .done__steps li { flex-direction: row; align-items: baseline; gap: 14px; padding: 16px 18px; }
@media (prefers-reduced-motion: no-preference) {
  .done:not([hidden]) .done__top, .done:not([hidden]) .done__steps, .done:not([hidden]) .done__actions { animation: done-in 420ms cubic-bezier(.2, .7, .2, 1) backwards; }
  .done:not([hidden]) .done__steps { animation-delay: 90ms; }
  .done:not([hidden]) .done__actions { animation-delay: 160ms; }
}
@keyframes done-in { from { opacity: 0; transform: translateY(10px); } }
.sig__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.sig__who { font-size: 14px; font-weight: 600; color: var(--moon); }
.sig + .sig { padding-top: 20px; border-top: 1px dashed var(--edge); }

/* ── Choice chips (eligibility check) ─────────────────────────────────── */
.choice { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--field-strong); background: transparent; color: var(--soft); font-size: 14px; }
.choice[aria-pressed="true"] { border-color: var(--moon); background: var(--moon); color: var(--night); font-weight: 600; }
@media (hover: hover) { .choice:hover { border-color: var(--field-hover); } .choice[aria-pressed="true"]:hover { border-color: var(--moon); } }

/* ── Team (About): initials tiles; the bio covers the tile on hover, focus or tap ── */
.team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px; }
.member { container-type: inline-size; position: relative; background: var(--night); border: 1px solid var(--edge); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; }
.member__tile { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1 / 1; border: 0; padding: 0; color: var(--night); font: 400 96px/1 var(--serif); cursor: pointer; }
.member__tile:focus-visible { outline-offset: -6px; outline-color: var(--night); }
.member__bio { position: absolute; inset: 0; padding: 20px 22px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; color: var(--night); opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity 200ms ease, transform 240ms cubic-bezier(0.22, 1, 0.36, 1); cursor: pointer; }
.member__bio p { margin: 0; font-size: clamp(13.5px, 5.4cqi, 17px); line-height: 1.45; color: #1E2233; }
.member__who { font-family: var(--serif); font-size: 26px; line-height: 1; }
.member__role { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #2A2E40; }
@media (hover: hover) { .member:hover .member__bio { opacity: 1; transform: none; pointer-events: auto; } }
.member:has(.member__tile:focus-visible) .member__bio, .member__tile[aria-expanded="true"] + .member__bio { opacity: 1; transform: none; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .member__bio { transform: none; transition: opacity 120ms linear; } }
.member__name { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 4px; font-size: 18px; font-weight: 600; }
.member__title { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* ── Legal pages: the old site's text, set for long reading ───────────── */
.legal-page { max-width: 1200px; margin: 0 auto; padding: clamp(56px, 8vw, 112px) var(--gutter) clamp(80px, 10vw, 128px); display: flex; flex-direction: column; gap: clamp(40px, 5vw, 64px); }
.legal-head { display: flex; flex-direction: column; gap: 22px; padding-bottom: clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--rule); }
.legal { max-width: 72ch; color: var(--soft); font-size: 16px; line-height: 1.75; overflow-wrap: anywhere; }
.legal h2 { margin: 1.9em 0 0.55em; font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.6vw, 32px); line-height: 1.1; color: var(--moon); }
.legal h2:first-child { margin-top: 0; }
.legal p { margin: 0 0 1.1em; }
.legal ul, .legal ol { margin: 0 0 1.2em; padding-left: 1.3em; display: flex; flex-direction: column; gap: 0.5em; }
.legal li::marker { color: var(--blush); }
.legal strong { color: var(--moon); font-weight: 600; }
.legal a { color: var(--sky); text-decoration: underline; text-underline-offset: 3px; }

/* ── Content pages (guides, industries, programs, partner pages) ────────
   Page hero: .doc-hero > .doc-hero__in > {{crumbs}}, .eyebrow, h1.doc-title, p.doc-lede, .doc-actions
   Body:      .doc > article.prose + aside.aside (sticky fact card + CTA); .doc--wide drops the aside
   Pieces:    .answer (the short answer up top), .note, .table-wrap > table, ul.ticks,
              .factcard, .faq > details.faq__item, .cards > a.card, .band, .cta */
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--field); }
.crumbs a { display: inline-block; padding: 14px 0; margin: -14px 0; color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sky); }
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.doc-hero { border-bottom: 1px solid var(--rule); }
.doc-hero__in { max-width: 1200px; margin: 0 auto; padding: clamp(36px, 5vw, 64px) var(--gutter) clamp(48px, 6vw, 80px); display: flex; flex-direction: column; gap: 22px; }
.doc-hero__in .crumbs { margin-bottom: clamp(8px, 2vw, 24px); }
.doc-title { margin: 0; max-width: 20ch; font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 6vw, 84px); line-height: 0.96; letter-spacing: -0.01em; }
.doc-title em { font-style: italic; color: var(--apricot); }
.doc-lede { margin: 0; max-width: 62ch; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--soft); }
.doc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.doc { max-width: 1200px; margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--gutter) clamp(64px, 8vw, 112px); display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px 72px; align-items: start; }
.doc--wide { grid-template-columns: minmax(0, 1fr); }
.aside { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 960px) { .doc { grid-template-columns: minmax(0, 1fr); } .aside { position: static; } }

.prose { max-width: 72ch; min-width: 0; color: var(--soft); font-size: 17px; line-height: 1.72; }
.prose h2 { margin: 2em 0 0.5em; font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.2vw, 44px); line-height: 1.04; color: var(--moon); }
.prose > h2:first-child, .prose > .answer:first-child + h2 { margin-top: 0; }
.prose > .answer:first-child + h2 { margin-top: 1.4em; }
.prose h3 { margin: 1.6em 0 0.4em; font-size: 20px; font-weight: 600; line-height: 1.3; color: var(--moon); }
.prose p { margin: 0 0 1.1em; }
.prose ul, .prose ol { margin: 0 0 1.3em; padding-left: 1.3em; display: flex; flex-direction: column; gap: 0.5em; }
.prose li::marker { color: var(--blush); }
.prose strong { color: var(--moon); font-weight: 600; }
.prose a { color: var(--sky); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose ul.ticks { list-style: none; padding-left: 0; }
.prose ul.ticks li { position: relative; padding-left: 30px; }
.prose ul.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--sky); font-weight: 600; }
.prose ul.crosses li::before { content: "✕"; color: var(--blush); }
.answer { margin: 0 0 1.6em; padding: 22px 24px; border: 1px solid var(--edge); border-radius: 18px; background: var(--card); color: var(--moon); }
.answer > :last-child { margin-bottom: 0; }
.answer__label { display: block; margin-bottom: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sky); }
.prose .note { margin: 0 0 1.4em; padding: 18px 22px; border-left: 2px solid var(--apricot); border-radius: 0 14px 14px 0; background: var(--card); color: var(--soft); }
.prose .note > :last-child { margin-bottom: 0; }
.table-wrap { margin: 0 0 1.4em; overflow-x: auto; border: 1px solid var(--edge); border-radius: 16px; }
.table-wrap.is-scroll { background: linear-gradient(to left, var(--night), transparent 28px) right / 28px 100% no-repeat local, linear-gradient(to left, rgba(169, 225, 255, 0.18), transparent 22px) right / 22px 100% no-repeat scroll; }
.table-hint { margin: -0.9em 0 1.4em; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.on-light .table-hint { margin-top: 10px; color: #4A4E60; }
.table-wrap table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.table-wrap th, .table-wrap td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--edge); }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap th { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); background: #12162A; }
.table-wrap td:first-child { color: var(--moon); font-weight: 500; }

.factcard { display: flex; flex-direction: column; gap: 16px; padding: 24px; border: 1px solid var(--edge); border-radius: 22px; background: var(--card); }
.factcard__title { margin: 0; font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sky); }
.factcard dl { margin: 0; display: flex; flex-direction: column; }
.factcard dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--edge); font-size: 14px; line-height: 1.4; }
.factcard dl div:last-child { border-bottom: 0; }
.factcard dt { color: var(--muted); }
.factcard dd { margin: 0; color: var(--moon); font-weight: 600; text-align: right; }
.factcard .pill { width: 100%; }
.factcard p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.factcard p a { color: var(--sky); }

.faq { border-top: 1px solid var(--edge); }
.faq .faq__item { border-bottom: 1px solid var(--edge); }
.faq .faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-size: 18px; font-weight: 500; line-height: 1.35; color: var(--moon); }
.faq .faq__item summary::after { content: "+"; flex: none; font-size: 26px; font-weight: 300; line-height: 1; color: var(--blush); transition: transform 0.2s; }
.faq .faq__item[open] summary::after { transform: rotate(45deg); }
.faq .faq__item > div { max-width: 70ch; padding: 0 0 24px; font-size: 16px; line-height: 1.7; color: var(--soft); }
.faq .faq__item > div p { margin: 0 0 0.8em; }
.faq .faq__item > div > :last-child { margin-bottom: 0; }
.faq .faq__item a { color: var(--sky); text-decoration: underline; text-underline-offset: 3px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--edge); border-radius: 20px; background: var(--card); color: var(--moon); transition: border-color 0.2s ease, opacity 0.16s ease; }
@media (hover: hover) { .card:hover { border-color: var(--field); } }
.card__kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sky); }
.card__title { font-family: var(--serif); font-size: 26px; line-height: 1.08; }
.card p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.card__more { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 600; color: var(--blush); }
.prose .cards { margin: 0 0 1.4em; }
.prose .card { text-decoration: none; color: var(--moon); }

.band { border-top: 1px solid var(--rule); }
.band--alt { background: var(--night-2); }
.band__in { max-width: 1200px; margin: 0 auto; padding: clamp(56px, 7vw, 96px) var(--gutter); display: flex; flex-direction: column; gap: 28px; }
.band__head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.band__title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4vw, 56px); line-height: 1; }
.band__title em { font-style: italic; color: var(--apricot); }
.band__head p { margin: 0; font-size: 17px; line-height: 1.65; color: var(--soft); }
.cta { border-top: 1px solid var(--rule); background: var(--night-2); }
.cta__in { max-width: 1200px; margin: 0 auto; padding: clamp(56px, 7vw, 96px) var(--gutter); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 48px; }
.cta__text { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.cta__title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4.4vw, 60px); line-height: 1; }
.cta__title em { font-style: italic; color: var(--blush); }
.cta__text p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--soft); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Calculator and eligibility check ─────────────────────────────────── */
.tool { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 20px; margin: 0 0 1.6em; }
.tool__panel { display: flex; flex-direction: column; gap: 22px; padding: clamp(22px, 3vw, 32px); border: 1px solid var(--edge); border-radius: 24px; background: var(--card); }
.tool__out { display: flex; flex-direction: column; gap: 18px; padding: clamp(22px, 3vw, 32px); border-radius: 24px; background: var(--moon); color: var(--night); }
.tool__out .tool__big { color: var(--night); font-family: var(--serif); font-size: clamp(48px, 6vw, 72px); line-height: 0.95; }
.tool__out dl { margin: 0; display: flex; flex-direction: column; }
.tool__out dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid #D9D4CA; font-size: 15px; }
.tool__out dl div:last-child { border-bottom: 0; }
.tool__out dt { color: #4A4E60; }
.tool__out dd { margin: 0; font-weight: 600; }
.tool__out strong { color: var(--night); }
.tool__out a:not(.pill) { color: var(--night); text-decoration: underline; text-underline-offset: 3px; }
.tool__out p { margin: 0; font-size: 13.5px; line-height: 1.55; color: #4A4E60; }
.tool__label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #4A4E60; }
.tool__panel .tool__label { color: var(--sky); }
.tool fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tool legend { padding: 0; margin-bottom: 10px; font-size: 15px; font-weight: 600; color: var(--moon); }
.tool .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tool .range-row { display: flex; align-items: center; gap: 14px; }
.tool input[type="range"] { flex: 1; min-width: 0; height: 44px; margin: 0; accent-color: var(--blush); touch-action: pan-y; cursor: pointer; }
.tool output { min-width: 96px; text-align: right; font-weight: 600; color: var(--moon); font-variant-numeric: tabular-nums; }
.tool .pill { align-self: flex-start; }
@media (max-width: 560px) {
  .tool .range-row { flex-direction: column; align-items: stretch; gap: 2px; }
  .tool .range-row input[type="range"] { flex: none; }
  .tool .range-row output { order: -1; min-width: 0; text-align: left; font-size: 20px; }
}
.tool__field { display: flex; flex-direction: column; gap: 10px; }
.tool__q { font-size: 15px; font-weight: 600; color: var(--moon); }
.choice-radio { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--field-strong); color: var(--soft); font-size: 14px; cursor: pointer; }
.choice-radio:has(input:checked) { border-color: var(--moon); background: var(--moon); color: var(--night); font-weight: 600; }
.choice-radio input { margin: 0; accent-color: var(--night); }
.prose .tool p, .prose .tool ul { margin: 0; }
.check__fail { margin: 0; padding-left: 1.2em; font-size: 14px; line-height: 1.55; }

/* ── Phone-width adjustments to the inline layouts ─────────────────────── */
@media (max-width: 600px) {
  .hero-art { height: 420px !important; }
  .hero-art .rb { width: 200px !important; height: 160px !important; left: auto !important; right: 0; }
  .hero-stats { grid-template-columns: 1fr 1fr 1fr !important; }
  .hero-stats > div { padding-left: 10px !important; padding-right: 10px !important; }
  .hero-stats > div:first-child { padding-left: 0 !important; }
}
