/* Earby site. One stylesheet for every page. Palette, type and motion notes: DESIGN-NOTES.md. */

@font-face {
  font-family: "Bricolage";
  src: url("/fonts/bricolage-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: optional;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif-italic-latin.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: optional;
}
/* Metric-matched fallbacks so the webfont swap does not move text. */
@font-face { font-family: "Bricolage Fallback"; src: local("Arial"); size-adjust: 104%; ascent-override: 92%; descent-override: 26%; line-gap-override: 0%; }
@font-face { font-family: "Serif Fallback"; src: local("Georgia Italic"), local("Georgia"); font-style: italic; size-adjust: 92%; }

:root {
  --night: #0B1030;
  --night-2: #161D4A;
  --cobalt: #2340FF;
  --lime: #D4FF3A;
  --chalk: #F3F1EA;
  --apricot: #FFB27A;
  --mist: #DCE1FF;
  --white: #FFFFFF;
  --ink: #0B1030;
  --plate: #FFFFFF;
  --hairline-stroke: 3;
  --muted: #474C6B;
  --line: rgba(11, 16, 48, 0.14);
  --err: #B3261E;
  --display: "Bricolage", "Bricolage Fallback", system-ui, sans-serif;
  --serif: "Instrument Serif", "Serif Fallback", Georgia, serif;
  --spring: cubic-bezier(0.32, 0.72, 0, 1);
  --pop: cubic-bezier(0.34, 1.56, 0.64, 1);
  --gutter: 16px;
  --max: 1240px;
  --focus: var(--cobalt);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--chalk); color: var(--ink);
  font-family: var(--display); font-size: 1.0625rem; line-height: 1.55; font-variation-settings: "opsz" 14;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
h1, h2, h3 { margin: 0; line-height: 1; font-weight: 800; letter-spacing: -0.035em; font-variation-settings: "opsz" 96; text-wrap: balance; }
p { margin: 0; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 30; background: var(--lime); color: var(--night); padding: 10px 16px; border-radius: 999px; font-weight: 700; }
.skip:focus { top: 16px; }
.text-white { color: #fff; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 40px; } }

/* ---------- header: a floating island ---------- */
.top { position: fixed; inset: 12px 0 auto; z-index: 20; pointer-events: none; }
.top-in {
  pointer-events: auto; display: flex; align-items: center; gap: 16px; justify-content: space-between;
  max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding: 0 var(--gutter);
}
.top-in > * { position: relative; }
.top-in::before {
  content: ""; position: absolute; inset: 0 calc(var(--gutter) - 8px); border-radius: 999px;
  background: rgba(11, 16, 48, 0.82); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 12px 40px -12px rgba(11, 16, 48, 0.5);
}
.mark { display: inline-flex; align-items: center; gap: 8px; padding: 12px 4px 12px 8px; color: var(--chalk); text-decoration: none; font-weight: 800; font-size: 1.5rem; letter-spacing: -0.05em; }
.mark-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(212, 255, 58, 0.25); }
.nav { display: none; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 8px 12px; border-radius: 999px; color: var(--mist); text-decoration: none; font-weight: 500; font-size: 0.9375rem; transition: background-color 0.3s var(--spring), color 0.3s var(--spring); }
.nav a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.top .btn-sm { margin: 6px 0; }
@media (min-width: 960px) { .nav { display: block; } }

/* ---------- buttons: pills, the arrow nested in its own circle ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px;
  padding: 12px 26px; border: 0; border-radius: 999px; font: inherit; font-weight: 700; font-size: 1.0625rem;
  line-height: 1.1; text-decoration: none; cursor: pointer; letter-spacing: -0.01em;
  transition: transform 0.5s var(--spring), background-color 0.3s var(--spring), box-shadow 0.5s var(--spring);
}
.btn:has(.btn-ic) { padding-right: 8px; }
.btn:active { transform: scale(0.97); }
.btn-ic {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--night); color: var(--lime); transition: transform 0.5s var(--pop);
}
.btn:hover .btn-ic { transform: translate(3px, -1px) scale(1.08); }
.btn-lime { background: var(--lime); color: var(--night); box-shadow: 0 10px 30px -10px rgba(212, 255, 58, 0.7); }
.btn-lime:hover { box-shadow: 0 16px 40px -10px rgba(212, 255, 58, 0.9); }
.btn-ink { background: var(--night); color: var(--chalk); }
.btn-ink .btn-ic { background: var(--lime); color: var(--night); }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px #fff; }
.btn-soft { background: #E4E1D6; color: var(--night); }
.btn-gold { background: var(--lime); color: var(--night); }
.btn-danger { background: var(--err); color: #fff; }
.btn-sm { min-height: 44px; padding: 8px 18px; font-size: 0.9375rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.6; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- shared type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; padding: 7px 14px; border-radius: 999px;
  background: rgba(11, 16, 48, 0.07); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.eyebrow-lime { background: var(--lime); color: var(--night); }
.h2 { font-size: clamp(2.5rem, 1.15rem + 5.2vw, 5.75rem); }
.sec { padding-block: clamp(80px, 10vw, 140px); }
.sec-head { max-width: 52rem; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-lede { margin-top: 24px; font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); color: var(--muted); max-width: 36em; }
.note { margin-top: 24px; font-size: 0.9375rem; color: var(--muted); }
.ln-fx { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size 0.4s var(--spring); }
.ln-fx:hover { background-size: 100% 2px; }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--cobalt); color: #fff; padding: 112px 0 72px; overflow: clip; }
.hero::after { /* a soft light pooling behind the art */
  content: ""; position: absolute; width: 70vw; aspect-ratio: 1; right: -20vw; top: 10%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(220, 225, 255, 0.28), transparent); pointer-events: none;
}
.hero-in { position: relative; z-index: 1; display: grid; gap: 40px; }
.hero-h { font-size: clamp(3.4rem, 1.2rem + 7.6vw, 8.75rem); line-height: 0.92; letter-spacing: -0.045em; }
.ln { display: block; padding-bottom: 0.06em; }
.ln > span { display: inline-block; }
.ln-2 { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; color: var(--lime); font-size: 1.08em; }
.hero-lede { margin-top: 28px; max-width: 34em; font-size: clamp(1.125rem, 1rem + 0.45vw, 1.375rem); color: var(--mist); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.chips li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); font-weight: 600; font-size: 0.9375rem; }
.chips li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--cobalt); }
.hero-art { position: relative; display: grid; place-items: center; min-height: 0; }
@media (max-width: 999px) {
  .hero-in { row-gap: 0; }
  .hero-copy { display: contents; }
  .hero-copy > .eyebrow { justify-self: start; }
  .hero-art { order: 1; margin: 20px auto 8px; width: min(100%, 520px); }
  .hero-lede, .ctas, .chips { order: 2; }
}
.blob { position: absolute; border-radius: 50%; }
.blob-a { width: 78%; aspect-ratio: 1; background: var(--mist); left: 2%; top: 4%; }
.blob-b { width: 44%; aspect-ratio: 1; background: var(--apricot); right: 0; bottom: 4%; }
.fig { position: relative; margin: 0; width: 100%; color: var(--ink); --hairline-plate: var(--plate); }
.fig img { width: 100%; height: auto; }
.fig-hero { z-index: 1; max-width: 640px; }
.meter {
  position: absolute; z-index: 2; left: 0; bottom: 6%; display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 12px; border-radius: 999px; background: var(--night); color: var(--chalk); font-weight: 700; font-size: 0.875rem;
  box-shadow: 0 18px 40px -16px rgba(11, 16, 48, 0.7);
}
.rec { width: 10px; height: 10px; border-radius: 50%; background: var(--lime); }
.wave { display: inline-flex; align-items: center; gap: 3px; height: 20px; }
.wave i { width: 3px; height: 100%; border-radius: 2px; background: var(--lime); transform: scaleY(0.35); transform-origin: 50% 50%; }
.wave i:nth-child(3n+1) { transform: scaleY(0.7); }
.wave i:nth-child(4n+2) { transform: scaleY(0.95); }
.wave i:nth-child(5n) { transform: scaleY(0.5); }
@media (min-width: 1000px) {
  .hero { padding: 136px 0 104px; }
  .hero-in { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: end; column-gap: 24px; row-gap: 0; }
  .hero-lede { margin-top: 36px; }
  .hero-copy { display: contents; }
  .hero-copy > .eyebrow, .hero-h { grid-column: 1 / -1; }
  .hero-copy > :not(.eyebrow, .hero-h) { grid-column: 1; }
  .hero-h { margin-bottom: -8px; }
  .hero-art { grid-column: 2; grid-row: 3 / span 3; align-self: start; margin-top: -170px; }
  .hero-copy > .eyebrow { justify-self: start; }
  .eyebrow + .hero-h { margin-top: 0; }
  .ctas, .chips, .hero-lede { align-self: start; }
}

/* ---------- moments: cards that stack as you scroll ---------- */
.moments { padding-bottom: 40px; }
.stack { list-style: none; margin: clamp(40px, 6vw, 72px) 0 0; padding: 0; display: grid; gap: 20px; }
.card {
  position: sticky; top: calc(88px + var(--i, 0) * 16px); min-height: 220px; padding: clamp(28px, 4vw, 56px);
  border-radius: 36px; display: grid; align-content: space-between; gap: 32px;
  box-shadow: 0 -2px 0 rgba(255, 255, 255, 0.25) inset, 0 30px 60px -30px rgba(11, 16, 48, 0.45);
}
.card:nth-child(2) { --i: 1; } .card:nth-child(3) { --i: 2; } .card:nth-child(4) { --i: 3; }
.card h3 { font-size: clamp(1.9rem, 1rem + 3vw, 3.5rem); max-width: 16em; }
.card p { font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem); max-width: 34em; margin-top: 14px; }
.card-n { font-family: var(--serif); font-style: italic; font-size: clamp(3rem, 2rem + 3vw, 5rem); line-height: 0.8; }
.c-cobalt { background: var(--cobalt); color: #fff; } .c-cobalt p { color: var(--mist); } .c-cobalt .card-n { color: var(--lime); }
.c-lime { background: var(--lime); color: var(--night); }
.c-apricot { background: var(--apricot); color: var(--night); }
.c-night { background: var(--night); color: var(--chalk); } .c-night .card-n { color: var(--lime); }
@media (min-width: 768px) {
  .card { grid-template-columns: minmax(120px, 1fr) 3fr; grid-template-rows: 1fr auto; align-content: stretch; row-gap: 0; min-height: 340px; }
  .card-n { grid-row: 1 / span 2; }
  .card h3 { grid-column: 2; align-self: end; }
  .card p { grid-column: 2; }
  .card:nth-child(odd) { rotate: -1.2deg; } .card:nth-child(even) { rotate: 1deg; }
}

/* ---------- how ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: s; }
.step { position: relative; padding: 8px; border-radius: 36px; background: rgba(11, 16, 48, 0.05); box-shadow: inset 0 0 0 1px var(--line); }
.step > * { position: relative; }
.step::before { content: ""; position: absolute; inset: 8px; border-radius: 28px; background: var(--white); box-shadow: inset 0 1px 1px #fff, 0 20px 40px -28px rgba(11, 16, 48, 0.35); }
.step-n { display: grid; place-items: center; width: 64px; height: 64px; margin: 24px 24px 0; border-radius: 50%; background: var(--cobalt); color: #fff; font-weight: 800; font-size: 1.75rem; }
.step h3 { margin: 28px 24px 0; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.25rem); }
.step p { margin: 12px 24px 28px; color: var(--muted); }
.step:nth-child(2) .step-n { background: var(--lime); color: var(--night); }
.step:nth-child(3) .step-n { background: var(--apricot); color: var(--night); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } .step:nth-child(2) { translate: 0 40px; } }

/* ---------- sheets: sections that slide over the one before ---------- */
.promise, .care, .partners, .wl, .foot { position: relative; border-radius: 40px 40px 0 0; margin-top: -40px; }

/* ---------- promise: honest numbers ---------- */
.promise { background: var(--night); color: var(--chalk); }
.promise .eyebrow { margin-bottom: 20px; }
.promise .sec-lede { color: #B9BEDD; }
.bento { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tile { display: grid; align-content: space-between; gap: 24px; min-height: 200px; padding: clamp(20px, 3vw, 36px); border-radius: 32px; background: var(--night-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.tile:nth-child(1), .tile:nth-child(6) { grid-column: span 2; }
.num { font-weight: 800; font-size: clamp(4.5rem, 2.4rem + 7vw, 9.5rem); line-height: 0.82; letter-spacing: -0.06em; color: var(--lime); }
.tl { font-weight: 600; font-size: clamp(1rem, 0.95rem + 0.3vw, 1.25rem); line-height: 1.3; max-width: 18em; }
.t-lime { background: var(--lime); color: var(--night); } .t-lime .num { color: var(--night); }
.t-apricot { background: var(--apricot); color: var(--night); } .t-apricot .num { color: var(--night); }
.t-cobalt { background: var(--cobalt); color: #fff; } .t-cobalt .num { color: #fff; }
.cta-row { margin-top: 48px; }
@media (min-width: 900px) { .bento { grid-template-columns: repeat(4, 1fr); } .tile { min-height: 260px; } }

/* ---------- split sections with a colour field behind the figure ---------- */
.split { display: grid; gap: 40px; align-items: center; }
.art { position: relative; display: grid; place-items: center; padding: clamp(16px, 4vw, 48px); border-radius: 40px; overflow: clip; }
.art::before { content: ""; position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; right: -12%; top: -14%; background: rgba(255, 255, 255, 0.35); }
.art .fig { max-width: 560px; }
.art-apricot { background: var(--apricot); }
.art-mist { background: var(--mist); }
.art-lime { background: transparent; padding: 0; } .art-lime::before { background: rgba(255, 255, 255, 0.4); }
@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1fr; gap: 72px; }
  .split-rev > :first-child { order: 0; }
}

/* ---------- money ---------- */
.kicker { margin-top: 20px; font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); line-height: 1.15; color: var(--cobalt); }
.facts { margin: 32px 0 0; display: grid; gap: 4px; }
.facts div { padding: 18px 0; border-top: 1.5px solid var(--line); }
.facts dt { font-weight: 700; font-size: 1.1875rem; letter-spacing: -0.01em; }
.facts dd { margin: 6px 0 0; color: var(--muted); }
@media (min-width: 1200px) { .facts { grid-template-columns: 1fr 1fr; column-gap: 32px; } }

/* ---------- safety ---------- */
.safety { background: var(--white); }
.checks { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 10px; counter-reset: c; }
.checks li { counter-increment: c; display: flex; gap: 14px; align-items: center; padding: 12px 16px 12px 12px; border-radius: 18px; background: var(--chalk); font-weight: 600; }
.checks li::before { content: "✓"; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--lime); color: var(--night); font-weight: 800; }
.rules { display: grid; gap: 12px; margin-top: clamp(48px, 7vw, 96px); }
.rule { padding: clamp(24px, 3vw, 36px); border-radius: 32px; background: var(--mist); }
.rule h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.rule p { margin-top: 10px; color: var(--muted); }
@media (min-width: 768px) { .rules { grid-template-columns: repeat(2, 1fr); } }

/* ---------- care ---------- */
.care { background: var(--night); color: var(--chalk); }
.care-in { display: grid; gap: 40px; }
.care-body { margin-top: 20px; font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); color: #B9BEDD; max-width: 30em; }
.help h3 { font-size: 1.25rem; letter-spacing: -0.01em; margin-bottom: 16px; }
.help-grid { display: grid; gap: 12px; }
.help-card { padding: 24px; border-radius: 28px; background: var(--night-2); }
.help-name { font-weight: 700; font-size: 1.25rem; }
.help-desc { color: #B9BEDD; margin-top: 2px; }
.help-nums { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; }
.help-nums a { white-space: nowrap; display: inline-flex; align-items: center; min-height: 48px; font-weight: 800; font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem); color: var(--lime); text-decoration: none; letter-spacing: -0.03em; }
.help-nums a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.help-note { margin-top: 16px; font-size: 0.9375rem; color: #B9BEDD; }
@media (min-width: 900px) { .care-in { grid-template-columns: 1fr 1fr; align-items: start; } .help-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- partners ---------- */
.partners { background: var(--lime); }
.partners .sec-lede, .partners .note { color: #2D3350; }
.partners .eyebrow { background: rgba(11, 16, 48, 0.1); }
.p-cols { display: grid; gap: 16px; margin-top: clamp(48px, 7vw, 88px); }
.p-col { padding: clamp(24px, 3vw, 40px); border-radius: 32px; background: rgba(255, 255, 255, 0.55); }
.p-col h3 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.25rem); margin-bottom: 20px; }
.p-steps, .p-pay { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; counter-reset: p; }
.p-steps li { counter-increment: p; display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; }
.p-steps li::before { content: counter(p); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--night); color: var(--lime); font-weight: 800; font-size: 0.9375rem; }
.p-pay li { padding-left: 22px; position: relative; }
.p-pay li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 10px; height: 10px; border-radius: 50%; background: var(--cobalt); }
.p-col .btn { margin-top: 24px; }
@media (min-width: 900px) { .p-cols { grid-template-columns: 1fr 1fr; } }

/* ---------- faq ---------- */
.faq-in { display: grid; gap: 32px; }
.qa details { border-top: 1.5px solid var(--line); }
.qa details:last-child { border-bottom: 1.5px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 22px 0; font-weight: 700; font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.5rem); letter-spacing: -0.02em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--night); color: var(--lime); font-size: 1.5rem; font-weight: 500; transition: transform 0.5s var(--pop), background-color 0.3s var(--spring); }
.qa details[open] summary::after { transform: rotate(135deg); background: var(--cobalt); color: #fff; }
.qa details p { padding: 0 56px 24px 0; color: var(--muted); max-width: 40em; }
@media (min-width: 900px) { .faq-in { grid-template-columns: 1fr 1.6fr; } }

/* ---------- waitlist ---------- */
.wl { background: var(--cobalt); }
.shell { padding: 8px; border-radius: 48px; background: rgba(255, 255, 255, 0.14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }
.panel { background: var(--chalk); color: var(--ink); border-radius: 40px; padding: clamp(24px, 5vw, 64px); box-shadow: inset 0 1px 1px #fff; }
.wl .panel { display: grid; gap: 40px; }
.panel-copy p:not(.eyebrow) { margin-top: 20px; font-size: 1.1875rem; color: var(--muted); max-width: 26em; }
.panel-sm { padding: clamp(20px, 4vw, 36px); border-radius: 28px; margin-top: 16px; }
@media (min-width: 960px) { .wl .panel { grid-template-columns: 1fr 1.1fr; column-gap: 64px; } .withdraw { grid-column: 2; } }

/* ---------- forms (waitlist and legal pages) ---------- */
.form { display: grid; gap: 22px; }
.fld { margin: 0; padding: 0; border: 0; min-width: 0; }
.lbl { display: block; font-weight: 700; margin-bottom: 8px; padding: 0; }
.form :where(input:not([type="radio"], [type="checkbox"]), select, textarea) {
  width: 100%; min-height: 56px; padding: 12px 16px; font: inherit; color: var(--ink); background: #fff;
  border: 2px solid rgba(11, 16, 48, 0.25); border-radius: 16px;
}
.form textarea { resize: vertical; }
.tel { display: flex; background: #fff; border: 2px solid rgba(11, 16, 48, 0.25); border-radius: 16px; overflow: hidden; transition: border-color 0.3s var(--spring); }
.tel:focus-within { border-color: var(--cobalt); outline: 3px solid rgba(35, 64, 255, 0.25); outline-offset: 1px; }
.form .tel input { border: 0; border-radius: 0; background: transparent; }
.form .tel input:focus-visible { outline: none; }
.tel-pre { display: flex; align-items: center; padding: 0 12px 0 16px; color: var(--muted); font-weight: 700; border-right: 1.5px solid rgba(11, 16, 48, 0.14); }
.tel-row { display: flex; flex-wrap: wrap; gap: 10px; }
.tel-row .tel { flex: 1 1 220px; }
.form [aria-invalid="true"]:not([type="radio"], [type="checkbox"]), .tel:has([aria-invalid="true"]) { border-color: var(--err); }
.opt { display: flex; align-items: flex-start; gap: 12px; padding: 8px 0; cursor: pointer; font-weight: 500; }
.opt input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--cobalt); }
.hint { font-size: 0.9375rem; color: var(--muted); margin-top: 8px; }
.hint a { color: var(--cobalt); font-weight: 600; }
.err { color: var(--err); font-weight: 600; font-size: 0.9375rem; margin-top: 6px; }
.err:empty { display: none; }
fieldset.fld legend { margin-bottom: 4px; }
.form .btn { justify-self: start; }
.status { font-weight: 700; min-height: 1.5em; }
.status.pop { animation: pop 0.5s var(--pop); }
.withdraw { border-top: 1.5px solid var(--line); padding-top: 16px; }
.withdraw summary { cursor: pointer; font-weight: 700; color: var(--cobalt); padding: 8px 0; }
.withdraw > p { margin: 8px 0 16px; color: var(--muted); }
.form-row { gap: 14px; }
.closed { padding: 12px 16px; border-radius: 14px; background: var(--mist); font-weight: 600; font-size: 0.9375rem; }

/* ---------- footer ---------- */
.foot { background: var(--night); color: #B9BEDD; padding-top: clamp(64px, 8vw, 104px); overflow: clip; }
.foot-grid { display: grid; gap: 32px; }
.foot-tag { color: var(--chalk); font-weight: 800; font-size: clamp(1.75rem, 1.2rem + 2vw, 3rem); letter-spacing: -0.035em; line-height: 1.05; max-width: 12em; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-links a { color: var(--chalk); font-weight: 600; }
.foot-entity { margin: 0; display: grid; gap: 14px; font-size: 0.9375rem; }
.foot-entity dt { font-weight: 700; color: var(--chalk); }
.foot-entity dd { margin: 4px 0 0; }
.foot-draft { margin-top: 40px; font-size: 0.875rem; }
.foot-word { margin: 24px 0 -0.24em; text-align: center; font-weight: 800; font-size: 31vw; line-height: 1; letter-spacing: -0.07em; color: var(--lime); user-select: none; }
.foot .ph { border-color: rgba(185, 190, 221, 0.5); color: #B9BEDD; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

/* ---------- legal pages (light, readable) ---------- */
.legal { display: grid; gap: 40px; padding-top: clamp(120px, 12vw, 168px); padding-bottom: clamp(96px, 12vw, 144px); }
.legal-head { grid-column: 1 / -1; }
.legal h1 { font-size: clamp(2.75rem, 1.4rem + 5vw, 5.5rem); }
.legal-head .btn { margin-top: 24px; }
.legal-404 { display: block; min-height: 60vh; }
.draft { margin-top: 28px; max-width: 44em; padding: 18px 22px; border-radius: 20px; background: var(--lime); }
.draft-t { font-weight: 800; margin-bottom: 4px; }
.toc { align-self: start; }
.toc-t { font-weight: 700; color: var(--muted); font-size: 0.9375rem; margin-bottom: 4px; }
.toc ol { margin: 0; padding-left: 1.5em; color: var(--muted); }
.toc li { padding: 5px 0; }
.toc a { text-decoration: none; } .toc a:hover { text-decoration: underline; }
.legal-body { max-width: 46em; min-width: 0; }
.legal-body section { padding: 28px 0; border-top: 1.5px solid var(--line); }
.legal-body h2 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.25rem); margin-bottom: 14px; }
.legal-body h3 { font-size: 1.25rem; margin: 32px 0 8px; letter-spacing: -0.01em; }
.legal-body p + p { margin-top: 12px; }
.legal-body .panel { background: var(--white); box-shadow: inset 0 0 0 1.5px var(--line); }
.pending { color: var(--muted); font-style: italic; }
.fields { margin: 0 0 16px; display: grid; gap: 12px; }
.fields div { display: grid; gap: 6px; }
.fields dt { font-weight: 700; }
.fields dd { margin: 0; }
.ph { display: inline-block; border: 1.5px dashed rgba(11, 16, 48, 0.35); border-radius: 10px; padding: 6px 12px; color: var(--muted); font-size: 0.9375rem; }
.facts-list { list-style: none; margin: 0; padding: 0; }
.facts-list li { position: relative; padding: 12px 0 12px 28px; border-top: 1.5px solid var(--line); }
.facts-list li::before { content: ""; position: absolute; left: 2px; top: 1.3em; width: 12px; height: 12px; border-radius: 50%; background: var(--cobalt); }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl caption { text-align: left; color: var(--muted); font-size: 0.9375rem; padding-bottom: 12px; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-top: 1.5px solid var(--line); }
.tbl thead th { color: var(--muted); font-size: 0.9375rem; }
.ph-cell { color: var(--muted); font-style: italic; }
@media (max-width: 699px) {
  .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tbl tr { display: block; border-top: 1.5px solid var(--line); padding: 12px 0; }
  .tbl th, .tbl td { display: block; border: 0; padding: 4px 0; }
  .tbl td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-weight: 700; }
}
@media (min-width: 700px) { .fields div { grid-template-columns: minmax(160px, 15em) 1fr; align-items: center; gap: 16px; } .fields-text div { align-items: start; } }
@media (min-width: 960px) { .legal { grid-template-columns: 240px minmax(0, 1fr); column-gap: 64px; } .toc { position: sticky; top: 112px; } }

/* ---------- motion (all of it lives here; reduced motion gets none of it) ---------- */
@keyframes rise { from { transform: translateY(0.45em) rotate(2deg); opacity: 0; } }
@keyframes fade-up { from { transform: translateY(24px); opacity: 0; } }
@keyframes drift-a { 50% { transform: translate(4%, -5%) scale(1.04); } }
@keyframes drift-b { 50% { transform: translate(-8%, 4%) scale(0.94); } }
@keyframes bar { 0%, 100% { transform: scaleY(0.25); } 50% { transform: scaleY(1); } }
@keyframes blink { 50% { opacity: 0.25; } }
@keyframes ping { to { box-shadow: 0 0 0 10px rgba(35, 64, 255, 0); } }
@keyframes rv { from { opacity: 0; transform: translateY(56px) scale(0.98); } }
@keyframes pop { 0% { transform: scale(0.96); } 60% { transform: scale(1.02); } }
@keyframes tick { from { transform: scale(0) rotate(-45deg); } }

@media (prefers-reduced-motion: no-preference) {
  .ln > span { animation: rise 0.9s var(--spring) both; }
  .ln-2 > span { animation-delay: 0.12s; }
  .hero-lede, .ctas, .chips { animation: fade-up 0.9s var(--spring) both; }
  .hero-lede { animation-delay: 0.2s; } .ctas { animation-delay: 0.28s; } .chips { animation-delay: 0.36s; }
  .hero-art { animation: fade-up 1.1s var(--spring) 0.15s both; }
  .blob-a { animation: drift-a 14s ease-in-out infinite; }
  .blob-b { animation: drift-b 11s ease-in-out infinite; }
  .wave i { animation: bar 1.1s ease-in-out infinite; }
  .wave i:nth-child(2n) { animation-duration: 0.8s; } .wave i:nth-child(3n) { animation-duration: 1.4s; }
  .wave i:nth-child(4n+1) { animation-delay: -0.3s; } .wave i:nth-child(5n+2) { animation-delay: -0.6s; }
  .rec { animation: blink 1.2s steps(2, jump-none) infinite; }
  .pulse { animation: ping 1.6s var(--spring) infinite; box-shadow: 0 0 0 0 rgba(35, 64, 255, 0.6); }
  .tile:hover, .rule:hover, .help-card:hover { transform: translateY(-4px); }
  .tile, .rule, .help-card { transition: transform 0.6s var(--spring); }
  /* JS fallback for browsers without scroll timelines (js/main.js adds .rv-wait / .in) */
  .rv-wait { opacity: 0; transform: translateY(56px); }
  .rv-wait.in { opacity: 1; transform: none; transition: opacity 0.9s var(--spring), transform 0.9s var(--spring); }
  .checks .rv-wait.in::before { animation: tick 0.6s var(--pop) 0.2s both; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .rv { animation: rv linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    .checks li::before { animation: tick linear both; animation-timeline: view(); animation-range: entry 40% entry 100%; }
    .num { animation: rise linear both; animation-timeline: view(); animation-range: entry 10% entry 90%; }
    .card { animation: card-in linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
    [data-page="index"] .top-in::before { animation: island linear both; animation-timeline: scroll(root); animation-range: 0 240px; }
  }
}
@keyframes card-in { from { transform: translateY(80px) scale(0.94); } }
@keyframes island { from { background: rgba(11, 16, 48, 0.35); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
