/* ==========================================================================
   TakeParcel — landing page styles
   Brand: Saffron Night · Gloock (display) + Figtree (text)
   No frameworks. All colours, spacing and motion live here (CSP-safe:
   no inline style attributes are used in the HTML).
   ========================================================================== */

/* ---------- Fonts (self-hosted, OFL) ---------- */
@font-face {
  font-family: "Gloock";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/gloock-latin-400-normal.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: "Gloock";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/gloock-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/figtree-latin-wght-normal.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: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/figtree-latin-ext-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/figtree-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --saffron: #F5B53F;
  --saffron-hi: #FFD27F;
  --aubergine: #2A1430;
  --plum: #3D2244;
  --blush: #F8E9E1;
  --ember: #E9785E;
  --mist: #C7B3C9;

  --paper: #FBF3EE;       /* form label card */
  --white: #FFFFFF;
  --line-dark: #5A3A60;   /* borders on aubergine */
  --line-plum: #4A2D52;   /* tracks / contours */
  --line-light: #E0CCC1;  /* borders on blush */
  --text-soft: #E3D0D6;   /* body copy on aubergine (11.6:1) */
  --ink-soft: #4E3550;    /* body copy on blush (8.9:1) */
  --ink-muted: #5E4660;   /* small text on paper (7.0:1) */
  --border-field: #7A6280;/* field borders (4.6:1 on white) */
  --error: #A1301C;       /* error text on paper (6.4:1) */

  --font-display: "Gloock", Georgia, "Times New Roman", serif;
  --font-text: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: 28px;
  --container: 1280px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.2, .75, .2, 1);
  --header-h: 80px;

  interpolate-size: allow-keywords;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--aubergine);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--aubergine);
  color: var(--blush);
  font-family: var(--font-text);
  font-size: 18px;
  line-height: 1.6;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;            /* fallback */
  overflow-x: clip;              /* keeps sticky header working */
}
img, svg { display: block; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { overflow-wrap: break-word; text-wrap: balance; }
p { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--saffron); }
a:hover { color: var(--saffron-hi); }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 10px; }
.on-light :focus-visible { outline-color: var(--aubergine); }
main:focus { outline: none; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--saffron); color: var(--aubergine); font-weight: 800;
  padding: 12px 20px; border-radius: 999px; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--aubergine); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section-pad { padding-block: 112px; }
.stack-44, .stack-52, .stack-56 { display: flex; flex-direction: column; }
.stack-44 { gap: 44px; }
.stack-52 { gap: 52px; }
.stack-56 { gap: 56px; }

.section-dark { background: var(--aubergine); color: var(--blush); }
.section-blush { background: var(--blush); color: var(--aubergine); }
.section-saffron { background: var(--saffron); color: var(--aubergine); overflow: hidden; }
.section-plum { background: var(--plum); color: var(--blush); }
.section-blush :focus-visible, .section-saffron :focus-visible { outline-color: var(--aubergine); }

/* ---------- Type ---------- */
.display-xl, .display-lg, .display-sm, .display-waitlist, .hero-title {
  font-family: var(--font-display); font-weight: 400; line-height: 1;
}
.display-xl { font-size: clamp(42px, 6vw, 92px); max-width: 1180px; }
.display-lg { font-size: clamp(38px, 4.6vw, 68px); }
.display-sm { font-size: clamp(30px, 3vw, 44px); line-height: 1.08; }
.display-waitlist { font-size: clamp(44px, 5.6vw, 84px); line-height: .98; }
.kicker { font-size: 13px; font-weight: 800; letter-spacing: .16em; line-height: 1.5; color: var(--saffron); }
.kicker-dark { color: var(--aubergine); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 46px; padding: 12px 22px; border-radius: 999px; border: 0;
  font-weight: 700; font-size: 16px; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s, background-color .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 0, 0, .22); }
.btn:active { transform: translateY(0); }
.btn-saffron, .btn-saffron:hover { background: var(--saffron); color: var(--aubergine); }
.btn-ink, .btn-ink:hover { background: var(--aubergine); color: var(--blush); }
.btn-outline { background: transparent; color: var(--blush); border: 1.5px solid #8C7590; font-weight: 700; }
.btn-outline:hover { color: var(--blush); border-color: var(--blush); }
.btn-lg { font-size: 18px; padding: 18px 32px; min-height: 58px; }
.btn-block { display: flex; width: 100%; }
.btn-arrow { flex: none; transition: transform .25s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(5px); }
.text-link { font-weight: 700; font-size: 18px; text-underline-offset: 6px; text-decoration-thickness: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(42, 20, 48, .94);
  border-bottom: 1px solid rgba(90, 58, 96, .6);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header { background: rgba(42, 20, 48, .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
}
.header-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; }
.brand {
  display: inline-flex; align-items: baseline; gap: .2em;
  font-family: var(--font-display); font-size: 30px; line-height: 1.2;
  color: var(--blush); text-decoration: none; white-space: nowrap;
}
.brand:hover { color: var(--blush); }
.brand-icon { display: inline-block; height: .74em; height: 1cap; width: auto; flex: none; }
.header-actions { display: flex; align-items: center; gap: 10px 28px; }
.nav-desktop ul { display: flex; align-items: center; gap: 6px 28px; }
.nav-link { display: inline-block; color: var(--blush); text-decoration: none; font-size: 16px; font-weight: 500; padding: 10px 2px; }
.nav-link:hover { color: var(--saffron); }
.menu-btn {
  display: none; align-items: center; justify-content: center;
  width: 46px; height: 46px; padding: 0; border-radius: 50%;
  border: 1.5px solid var(--line-dark); background: transparent; color: var(--blush);
}
.menu-btn .icon-close { display: none; color: var(--saffron); }
.menu-btn[aria-expanded="true"] .icon-open { display: none; }
.menu-btn[aria-expanded="true"] .icon-close { display: block; }
.nav-mobile { display: none; border-top: 1px solid var(--plum); padding-block: 4px 22px; }
.nav-mobile-link {
  display: block; padding: 14px 0; border-bottom: 1px solid var(--plum);
  font-family: var(--font-display); font-size: 28px; line-height: 1.25;
  color: var(--blush); text-decoration: none;
}
.nav-mobile-link:hover { color: var(--saffron); }
.nav-mobile .btn { margin-top: 18px; min-height: 52px; font-size: 17px; }
.no-js .menu-btn { display: none !important; }

@media (max-width: 820px) {
  .nav-desktop { display: none; }
  .js .menu-btn { display: inline-flex; }
  .nav-mobile:not([hidden]) { display: block; animation: fadeUp .4s var(--ease) both; }
  .header-cta { padding: 10px 16px; min-height: 44px; font-size: 15px; }
}
@media (max-width: 520px) {
  .js .header-cta { display: none; }
}

/* ---------- Hero ---------- */
.hero-grid {
  display: grid; align-items: center; gap: 56px;
  grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
  padding-block: 72px 80px;
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; min-width: 0; }
.eyebrow-chip {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--line-dark); border-radius: 999px; padding: 7px 16px 7px 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .16em; line-height: 1.4;
}
.eyebrow-chip svg { flex: none; }
.hero-title { font-size: clamp(50px, 6.8vw, 106px); letter-spacing: -.012em; }
.hero-title .accent { color: var(--saffron); }
.hero-title .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0 .02em .22em; margin-bottom: -.22em; }
.hero-title .w > span { display: inline-block; }
.hero-lede { font-size: 21px; line-height: 1.6; color: var(--text-soft); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.hero-note { font-size: 15px; color: var(--mist); max-width: 460px; }

.scene {
  position: relative; width: 100%; max-width: 600px; justify-self: center;
  background: var(--plum); border-radius: 36px; overflow: hidden;
}
.scene-svg { width: 100%; height: auto; }
.scene-label { font-family: var(--font-text); font-size: 20px; font-weight: 800; letter-spacing: 3px; fill: var(--mist); }
.chip-text { font-family: var(--font-text); font-size: 21px; font-weight: 800; fill: var(--aubergine); }
.motion-btn {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px;
  font-size: 13px; font-weight: 700; line-height: 1.2; color: var(--blush);
  background: rgba(42, 20, 48, .82); border: 1px solid #6B4C70; border-radius: 999px;
}
.motion-btn:hover { border-color: var(--mist); }
.motion-btn .icon-play { display: none; }
.motion-btn[aria-pressed="true"] .icon-play { display: block; }
.motion-btn[aria-pressed="true"] .icon-pause { display: none; }
.no-js .motion-btn { display: none; }

/* ---------- Ticker ---------- */
.ticker {
  background: var(--saffron); color: var(--aubergine); overflow: hidden;
  border-block: 2px solid var(--aubergine);
}
.ticker-track { display: flex; width: max-content; }
.ticker-group {
  display: flex; align-items: center; gap: 36px; padding: 18px;
  font-family: var(--font-display); font-size: 28px; line-height: 1.2; white-space: nowrap;
}
.ticker-group svg { flex: none; }

/* ---------- Value ---------- */
#why .section-pad { padding-block: 120px 112px; }
.fill-text { color: var(--blush); }
.why-grid {
  display: grid; align-items: start; gap: 32px 72px;
  grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
}
.equation { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; font-size: 16px; font-weight: 700; line-height: 1.3; }
.eq-chip { border: 1.5px solid var(--line-dark); border-radius: 999px; padding: 10px 18px; }
.eq-chip-solid { background: var(--saffron); border-color: var(--saffron); color: var(--aubergine); }
.eq-op { font-family: var(--font-text); font-size: 26px; font-weight: 800; line-height: 1; color: var(--saffron); }
.why-copy { font-size: 22px; line-height: 1.6; color: var(--text-soft); }

/* ---------- Two modes ---------- */
.modes-grid {
  display: grid; align-items: center; gap: 48px 72px;
  grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr));
}
.modes-intro { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.mode-toggle {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  width: min(360px, 100%); padding: 6px;
  background: var(--white); border: 1.5px solid var(--line-light); border-radius: 999px;
}
.mode-slider {
  position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc(50% - 6px);
  border-radius: 999px; background: var(--aubergine);
  transition: transform .45s var(--ease-out);
}
.mode-toggle[data-mode="travel"] .mode-slider { transform: translateX(100%); }
.mode-btn {
  position: relative; z-index: 1; min-height: 48px; border: 0; border-radius: 999px; background: transparent;
  font-weight: 800; font-size: 15px; letter-spacing: .14em; color: var(--aubergine);
  transition: color .3s;
}
.mode-btn[aria-pressed="true"] { color: var(--blush); }
.no-js .mode-toggle { display: none; }
.modes-note { font-family: var(--font-display); font-size: clamp(22px, 2vw, 28px); line-height: 1.4; max-width: 520px; }
.mode-panels { display: grid; gap: 24px; min-height: 420px; min-width: 0; }
.mode-card {
  display: flex; flex-direction: column; gap: 20px; min-height: 420px;
  padding: 48px; border-radius: 36px;
}
.js .mode-card { animation: fadeUp .55s var(--ease) both; }
.mode-card-send { background: var(--white); color: var(--aubergine); box-shadow: 0 30px 70px rgba(42, 20, 48, .12); }
.mode-card-travel { background: var(--aubergine); color: var(--blush); box-shadow: 0 30px 70px rgba(42, 20, 48, .25); }
.mode-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.mode-card-top svg { flex: none; }
.mode-tag { font-size: 14px; font-weight: 800; letter-spacing: .18em; }
.mode-card-travel .mode-tag { color: var(--saffron); }
.mode-title { margin-top: auto; font-family: var(--font-display); font-weight: 400; font-size: clamp(32px, 3vw, 46px); line-height: 1.05; }
.mode-copy { font-size: 19px; color: var(--ink-soft); }
.mode-card-travel .mode-copy { color: var(--text-soft); }

/* ---------- How it works ---------- */
.section-head { display: flex; flex-direction: column; gap: 16px; }
.steps-wrap { position: relative; }
.steps-track {
  position: absolute; left: 22px; right: 22px; top: 21px; height: 3px;
  background: var(--line-plum); border-radius: 3px; overflow: hidden;
}
.track-fill { height: 100%; background: var(--saffron); transform-origin: left center; }
.steps { position: relative; display: grid; gap: 32px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step { display: flex; flex-direction: column; gap: 16px; }
.step-num {
  display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--saffron); color: var(--aubergine); font-family: var(--font-display); font-size: 20px; line-height: 1;
  box-shadow: 0 0 0 8px var(--aubergine);
}
.step-num-pin { background: var(--blush); }
.step-title { font-size: 22px; font-weight: 800; line-height: 1.25; }
.step-copy { font-size: 17px; color: var(--text-soft); }
@media (max-width: 1111px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
  .steps-track { display: none; }
}
@media (max-width: 600px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Principles ---------- */
.principles-title { max-width: 900px; }
.cards { display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  display: flex; flex-direction: column; gap: 18px; padding: 40px; border-radius: 30px; background: var(--white);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.card:hover { transform: translateY(-8px); box-shadow: 0 26px 60px rgba(42, 20, 48, .16); }
.card-icon {
  display: flex; align-items: center; justify-content: center; width: 64px; height: 64px;
  border-radius: 18px; background: var(--saffron);
  transition: transform .5s cubic-bezier(.3, 1.5, .5, 1);
}
.card:hover .card-icon { transform: rotate(-8deg) scale(1.08); }
.card-title { font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1.1; }
.card-copy { color: var(--ink-soft); }
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Waitlist ---------- */
#waitlist .section-pad { padding-block: 112px 120px; }
.waitlist-grid {
  display: grid; align-items: center; gap: 56px 80px;
  grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
}
.waitlist-intro { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; min-width: 0; }
.badge-text { font-family: var(--font-text); font-size: 15px; font-weight: 800; letter-spacing: 3.78px; fill: var(--aubergine); }
.waitlist-copy { font-size: 21px; max-width: 480px; }

.label-card {
  min-width: 0; background: var(--paper); color: var(--aubergine);
  border: 2px solid var(--aubergine); border-radius: 24px; overflow: hidden;
  box-shadow: 12px 12px 0 var(--aubergine);
}
.label-strip {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px;
  padding: 14px 24px; background: var(--aubergine); color: var(--blush);
  font-size: 12px; font-weight: 800; letter-spacing: .16em; line-height: 1.5;
}
.label-strip span { white-space: nowrap; }
.label-strip-accent { color: var(--saffron); }
.label-body { display: flex; flex-direction: column; gap: 22px; padding: 28px 28px 8px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field-label { padding: 0; font-size: 13px; font-weight: 800; letter-spacing: .1em; line-height: 1.45; }
legend.field-label { margin-bottom: 12px; }
.field-input {
  width: 100%; min-height: 54px; padding: 14px 16px;
  font-size: 18px; line-height: 1.3; color: var(--aubergine); background: var(--white);
  border: 1.5px solid var(--border-field); border-radius: 12px;
  -webkit-appearance: none; appearance: none;
  transition: border-color .2s, box-shadow .2s;
}
.field-input::placeholder { color: #7A6280; opacity: 1; }
.field-input:focus { outline: none; border-color: var(--aubergine); box-shadow: 0 0 0 4px rgba(42, 20, 48, .16); }
.field-input:focus-visible { outline: 3px solid var(--aubergine); outline-offset: 2px; }
.field-input[aria-invalid="true"] { border-color: var(--error); }
.field-help { font-size: 15px; line-height: 1.45; color: var(--ink-muted); }
.field-error { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; font-weight: 700; line-height: 1.4; color: var(--error); }
.field-error::before { content: "!"; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--error); color: var(--white); font-size: 12px; font-weight: 900; }
.perforation { margin: 0; border: 0; border-top: 2px dashed #D9C2B8; }

.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px 18px;
  font-size: 16px; font-weight: 600; line-height: 1.3; cursor: pointer;
  background: var(--white); color: var(--aubergine);
  border: 1.5px solid var(--border-field); border-radius: 999px;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.pill:hover { border-color: var(--aubergine); }
.pill input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--aubergine); }
.pill input:focus-visible { outline: none; }
/* Selected state: background AND text change together, so it is always readable */
.pill.is-checked, .pill:has(input:checked) { background: var(--aubergine); color: var(--blush); border-color: var(--aubergine); }
.pill.is-checked input, .pill:has(input:checked) input { accent-color: var(--saffron); }
.pill.has-focus, .pill:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--aubergine); }
.pills.is-invalid .pill { border-color: var(--error); }

.consent { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; line-height: 1.45; cursor: pointer; }
.consent input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--aubergine); }
.consent input[aria-invalid="true"] { outline: 2px solid var(--error); outline-offset: 2px; }

.hp-field { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.btn-submit {
  position: relative; width: 100%; min-height: 58px; padding: 18px 28px;
  border-radius: 14px; font-size: 18px; font-weight: 800; line-height: 1.25; white-space: normal;
}
.btn-submit:disabled { cursor: progress; opacity: .85; transform: none; box-shadow: none; }
.spinner {
  display: none; width: 18px; height: 18px; flex: none;
  border: 2.5px solid rgba(248, 233, 225, .35); border-top-color: var(--saffron); border-radius: 50%;
  animation: spin .8s linear infinite;
}
.btn-submit.is-loading .spinner { display: inline-block; }
.btn-submit.is-loading .btn-arrow { display: none; }

.form-status:empty { display: none; }
.form-status { font-size: 16px; line-height: 1.5; border-radius: 14px; padding: 14px 16px; }
.form-status:focus { outline: none; }
.form-status.is-success { background: var(--aubergine); color: var(--blush); }
.form-status.is-success strong { color: var(--saffron); }
.form-status.is-error { background: #FBE3DC; color: #7E2414; border: 1.5px solid var(--error); }
.form-privacy { font-size: 14px; line-height: 1.5; color: var(--ink-muted); }
.form-privacy a, .label-card a { color: var(--aubergine); font-weight: 700; text-underline-offset: 3px; }

.label-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px 16px; padding: 10px 28px 20px; }
.barcode { max-width: 100%; height: auto; }
.label-foot-text { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: .16em; color: var(--ink-muted); }
.label-foot-text svg { display: inline-block; }

/* ---------- Share ---------- */
.share-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px 48px; padding-block: 72px; }
.share-copy { display: flex; flex-direction: column; gap: 8px; max-width: 700px; }
.share-copy p { color: var(--text-soft); font-size: 18px; }
.share-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.share-actions .btn { min-height: 52px; padding: 14px 26px; font-size: 16px; font-weight: 800; }
.share-status { flex-basis: 100%; font-size: 15px; color: var(--saffron); min-height: 1.5em; }

/* ---------- FAQ ---------- */
.faq-grid {
  display: grid; align-items: start; gap: 40px 80px;
  grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
}
.faq-list { display: flex; flex-direction: column; border-top: 2px solid var(--aubergine); min-width: 0; }
.faq-item { border-bottom: 1px solid var(--line-light); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: 26px; line-height: 1.2;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ""; }
.faq-item summary:hover { color: var(--plum); }
.faq-icon {
  position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--aubergine);
  transition: transform .35s var(--ease);
}
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2.4px; border-radius: 2px;
  background: var(--saffron); transform: translate(-50%, -50%);
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-item p { padding-bottom: 24px; color: var(--ink-soft); max-width: 640px; }
.faq-item::details-content {
  block-size: 0; overflow: clip;
  transition: block-size .4s var(--ease), content-visibility .4s allow-discrete;
}
.faq-item[open]::details-content { block-size: auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--aubergine); overflow: hidden; }
.footer-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; padding-top: 64px; }
.brand-footer { font-size: 34px; }
.footer-legal { display: flex; flex-direction: column; gap: 4px; font-size: 15px; text-align: right; }
.footer-legal .muted { color: var(--mist); }
.footer-legal a { color: var(--blush); text-underline-offset: 3px; }
.footer-legal a:hover { color: var(--saffron); }
.footer-wordmark {
  padding-top: 40px; margin-bottom: -.12em; text-align: center; white-space: nowrap;
  font-family: var(--font-display); font-size: clamp(44px, 16.5vw, 250px); line-height: .82;
  color: transparent; -webkit-text-stroke: 1.5px var(--line-dark);
  -webkit-user-select: none; user-select: none;
}
@supports not (-webkit-text-stroke: 1px black) {
  .footer-wordmark { color: var(--plum); }
}

/* ---------- Simple pages (privacy, thank-you, 404) ---------- */
.page { padding-block: 88px 112px; }
.page-narrow { max-width: 820px; }
.page h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(42px, 6vw, 72px); line-height: 1.02; margin-bottom: 20px; }
.page h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 3vw, 34px); line-height: 1.15; margin: 44px 0 12px; }
.page p, .page li { color: var(--text-soft); }
.page p + p { margin-top: 14px; }
.page ul { list-style: disc; padding-left: 1.3em; margin-top: 10px; }
.page li + li { margin-top: 6px; }
.page .lede { font-size: 21px; }
.page .meta { font-size: 15px; color: var(--mist); }
.page .btn { margin-top: 32px; }

/* ==========================================================================
   Motion
   ========================================================================== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { transform: translateY(110%); } to { transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { transform: scale(0); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes bob { 50% { transform: translateY(-9px); } }
@keyframes drift { to { transform: translateX(-36px); } }
@keyframes ripple { 0%, 57% { opacity: 0; transform: scale(.55); } 62% { opacity: .9; } 88%, 100% { opacity: 0; transform: scale(1.6); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes spinBadge { to { transform: rotate(360deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fillText { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (prefers-reduced-motion: no-preference) {
  /* Hero entrance */
  .hero-title .w > span { animation: rise .9s var(--ease-out) both; }
  .hero-title .w:nth-child(1) > span { animation-delay: .10s; }
  .hero-title .w:nth-child(2) > span { animation-delay: .18s; }
  .hero-title .w:nth-child(3) > span { animation-delay: .26s; }
  .hero-title .w:nth-child(4) > span { animation-delay: .34s; }
  .hero-title .w:nth-child(5) > span { animation-delay: .42s; }
  .hero-title .w:nth-child(6) > span { animation-delay: .54s; }
  .hero-title .w:nth-child(7) > span { animation-delay: .62s; }
  .fade-in { animation: fadeUp .8s var(--ease) both; }
  .fade-in[data-delay="1"] { animation-delay: .05s; }
  .fade-in[data-delay="2"] { animation-delay: .25s; }
  .fade-in[data-delay="5"] { animation-delay: .85s; }
  .fade-in[data-delay="6"] { animation-delay: 1s; }
  .fade-in[data-delay="7"] { animation-delay: 1.15s; }

  /* Hero scene */
  .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.5s .7s cubic-bezier(.6, .05, .25, 1) forwards; }
  .pop { transform-box: fill-box; transform-origin: 50% 90%; animation: pop .55s 2s cubic-bezier(.3, 1.7, .5, 1) both; }
  .bob { animation: bob 4.6s ease-in-out infinite; }
  .bob-late { animation-delay: 1.3s; }
  .contours { animation: drift 18s ease-in-out infinite alternate; }
  .ripple { transform-box: fill-box; transform-origin: center; opacity: 0; animation: ripple 7s 2.2s ease-out infinite; }
  .chip { animation: fadeUp .7s 2.4s var(--ease) both; }

  /* Ticker + badge */
  .ticker-track { animation: marquee 42s linear infinite; }
  .ticker:hover .ticker-track { animation-play-state: paused; }
  .badge-spin { transform-box: fill-box; transform-origin: center; animation: spinBadge 26s linear infinite; }

  /* Pause control (WCAG 2.2.2) */
  .motion-paused .bob, .motion-paused .contours, .motion-paused .ripple,
  .motion-paused .ticker-track, .motion-paused .badge-spin { animation-play-state: paused; }
  .motion-paused .parcel { display: none; }

  /* Scroll-linked reveals — native where supported (Chrome/Edge) */
  @supports (animation-timeline: view()) {
    .reveal { animation: fadeUp linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
    .fill-text {
      background: linear-gradient(90deg, var(--blush) 0 50%, #7A5E7E 50% 100%);
      background-size: 200% 100%; background-position: 0 0;
      -webkit-background-clip: text; background-clip: text; color: transparent;
      animation: fillText linear both; animation-timeline: view(); animation-range: entry 35% cover 55%;
    }
    .track-fill { animation: grow linear both; animation-timeline: view(); animation-range: entry 30% cover 50%; }
  }

  /* Fallback for Safari/Firefox: script.js adds .io-ready and reveals with IntersectionObserver.
     Nothing is hidden unless the script has run, so content never gets stuck invisible. */
  .io-ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .io-ready .reveal.is-in { opacity: 1; transform: none; }
  .io-ready .track-fill { transform: scaleX(0); transition: transform 1.4s var(--ease); }
  .io-ready .track-fill.is-in { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .parcel, .ripple, .motion-btn { display: none !important; }
  .spinner { animation: none; border-color: var(--saffron); }
}

/* ==========================================================================
   Small screens
   ========================================================================== */
@media (max-width: 560px) {
  :root { --gutter: 20px; --header-h: 76px; }
  .section-pad, #why .section-pad, #waitlist .section-pad { padding-block: 76px; }
  .hero-grid { padding-block: 44px 56px; gap: 44px; }
  .eyebrow-chip { font-size: 12px; letter-spacing: .1em; }
  .scene { border-radius: 26px; }
  .card { padding: 30px 26px; border-radius: 24px; }
  .mode-card { padding: 30px 26px; min-height: 360px; border-radius: 28px; }
  .mode-panels { min-height: 360px; }
  .label-card { box-shadow: 6px 6px 0 var(--aubergine); }
  .label-strip { padding: 12px 18px; }
  .label-body { padding: 22px 18px 6px; }
  .label-foot { padding: 8px 18px 18px; }
  .faq-item summary { font-size: 22px; padding: 20px 0; }
  .footer-legal { text-align: left; }
  .share-bar { padding-block: 60px; }
}
@media (max-width: 400px) {
  .btn-submit { padding: 16px 18px; font-size: 17px; gap: 10px; }
  .brand { font-size: 27px; }
}

/* ---------- Windows high contrast ---------- */
@media (forced-colors: active) {
  .pill.is-checked, .pill:has(input:checked) { border: 3px solid Highlight; }
  .btn, .menu-btn, .motion-btn, .mode-btn { border: 1px solid ButtonText; }
  .mode-btn[aria-pressed="true"] { outline: 2px solid Highlight; }
  .footer-wordmark { color: CanvasText; -webkit-text-stroke: 0; }
}

/* ---------- Print ---------- */
@media print {
  html, body, .section-dark, .section-blush, .section-saffron, .section-plum, .site-footer, .label-card { background: #fff !important; color: #000 !important; box-shadow: none !important; }
  .site-header { position: static; }
  .header-actions, .ticker, .scene, .motion-btn, .share-bar, .footer-wordmark, .mode-toggle, .label-foot, .skip-link { display: none !important; }
  .mode-card[hidden] { display: flex !important; }
  .reveal, .fade-in { opacity: 1 !important; transform: none !important; animation: none !important; }
  .faq-item p { color: #000; }
  .section-pad { padding-block: 24px; }
}

/* ---------- Simple page header / footer ---------- */
.page-back { font-weight: 700; }
.footer-bar-simple { padding-block: 40px 48px; }
.footer-bar-simple .footer-legal { text-align: left; }
.page .kicker { margin-bottom: 14px; }
.page a:not(.btn) { color: var(--saffron); }
@media (max-width: 400px) { .page-back { display: none; } }
