/* Odakz — pre-launch feedback site
   PACKAGING THEME (2026-11-28): matched to the founder's carton mockup — the brand icy blue everywhere with two
   overlapping outlined honeycombs, navy text and thin navy outlines, outlined pill badges, the hand-lettered logo
   (Amatic SC) for headings and flavor names, and DM Sans for text, buttons and spaced-capital labels.
   The real gummy cubes are the only other colour. Navy on icy is ~13:1; navy on --paper ~15:1. */

:root {
  --navy: #011e3e;      /* the box's navy (and the logo's) */
  --navy-deep: #00142b;
  --icy: #a9e5fd;       /* the box's background */
  --hex: #94cce4;       /* the honeycomb lines */
  --cream: var(--icy);  /* page background (old name kept so existing rules follow) */
  --paper: #dcf4fe;     /* lighter panel inside outlined cards, like the panels on the box */
  --white: #ffffff;
  --ink: var(--navy);
  --muted: #2f4d6c;
  --line: color-mix(in srgb, var(--navy) 38%, transparent); /* idle outlines; active ones are full navy */
  --accent: #3f4aa3;    /* deeper version of the drawings' periwinkle ink, for the odd highlighted word */
  --rust: #9b3b28;      /* rgb(155, 59, 40): "Zero Sugar" in the sweetener section (founder's pick, 2026-11-29) */

  --font-display: 'Amatic SC', 'Arial Narrow', sans-serif; /* the hand-lettered face from the logo and flavor pills */
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; /* the box's clean sans for everything else */

  --radius: 22px;
  --radius-sm: 16px;
  --rule: 2px;          /* outline weight, like the box's panel lines */
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);

  --fx: var(--navy); --fx-tint: var(--paper); --fx-hero: var(--icy); --fx-deep: var(--navy); --fx-mark: var(--icy);
  color-scheme: light;
}

/* Flavor themes: the box is one colour for every flavor (the flavor shows only on the cube and its name pill),
   so every [data-flavor] block now resolves to the same icy + navy */
[data-flavor] { --fx: var(--navy); --fx-tint: var(--paper); --fx-hero: var(--icy); --fx-deep: var(--navy); --fx-mark: var(--icy); }

/* The honeycomb background, everywhere the box shows it */
.hexes { background-color: var(--icy); background-image: url(/images/patterns/hex-double.svg); background-size: 107.39px 186px; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--icy) url(/images/patterns/hex-double.svg) 0 0 / 107.39px 186px repeat; /* the box's double honeycomb */
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
/* Gummy cubes face different ways (orient.js): mirrored with --g-flip, tilted with --g-tilt / --g-sign; always upright */
.gummy { scale: var(--g-flip, 1) 1; rotate: var(--g-tilt, 0deg); }
/* Amatic SC is tall and narrow, so headings run ~1.4× the size a regular face would need */
h1, h2, h3 { font-family: var(--font-display); color: var(--navy); margin: 0; line-height: 1; letter-spacing: .02em; text-wrap: balance; font-weight: 700; }
h2 { font-size: clamp(54px, 7vw, 84px); }
/* Turkish words keep lang="tr" for screen readers, but the hand-lettered font then swaps in a dotted capital İ
   (e.g. "TÜRKİYE"); turn that swap off so it reads like the rest of the lettering */
[lang="tr"] { font-feature-settings: "locl" 0; }
h3 { font-size: clamp(32px, 3.4vw, 38px); line-height: 1.05; }
p { margin: 0; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
.num { font-variant-numeric: tabular-nums; }

.wrap { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 12px; top: -80px; z-index: 100;
  background: var(--navy); color: var(--cream); padding: 12px 18px; border-radius: 999px;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Two-tone focus ring: readable on cream, flavor colors and navy alike */
/* Focus ring: follows each element's own shape (no forced radius), icy on dark surfaces */
:root { --ring: var(--ink); }
.on-dark, .nav, .footer { --ring: var(--icy); }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; }
a:not(.btn):focus-visible { border-radius: 6px; }

/* Spaced capitals, like "CAFFEINATED GUMMIES" on the box, after a small outlined hexagon */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--navy);
}
.eyebrow::before { content: ""; flex: none; width: 13px; height: 13px; background: currentColor; -webkit-mask: url(/images/patterns/hex.svg) center / contain no-repeat; mask: url(/images/patterns/hex.svg) center / contain no-repeat; }
.lead { font-size: clamp(19px, 2vw, 23px); line-height: 1.5; color: var(--ink); }
.fine { font-size: 14px; color: var(--muted); }

/* ---------- Buttons ---------- */
/* Flat pills like the badges on the box: navy-filled for the main action, navy-outlined for the rest */
.btn {
  --btn-bg: var(--navy); --btn-fg: var(--icy); --btn-line: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px; border: var(--rule) solid var(--btn-line); border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-body); font-weight: 700; font-size: 17px; letter-spacing: .01em;
  position: relative; text-decoration: none; cursor: pointer;
  --lip: 0px;
  transition: transform .18s var(--spring), background-color .2s var(--ease), color .2s var(--ease);
}
.btn .i { width: 22px; height: 22px; transition: transform .25s var(--spring); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .i { transform: translateX(3px); }
/* Survey buttons: the arrow turns to point up and away when you hover or tap */
.btn--go:hover .i, .btn--go:focus-visible .i, .btn--go:active .i { transform: translate(2px, -1px) rotate(-45deg); }
.btn:active { transform: translateY(1px); }
/* The ring sits an even 3px outside the pill */
.btn:focus-visible { outline: none; }
.btn:focus-visible::after {
  content: ""; position: absolute; inset: -7px; border: 3px solid var(--ring); border-radius: 999px; pointer-events: none;
}
.btn--lg { min-height: 60px; padding: 14px 32px; font-size: 19px; }
.btn--sm { min-height: 44px; padding: 8px 18px; font-size: 15px; }
.btn--light { --btn-bg: transparent; --btn-fg: var(--navy); }
.btn--light:hover { --btn-bg: color-mix(in srgb, var(--navy) 8%, transparent); }
.btn--accent { --btn-bg: var(--navy); --btn-fg: var(--icy); }
.btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }

/* Outlined pill badge, like "STRAWBERRY" and "100 MG CAFFEINE / BAG" on the box */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 4px 18px; border: var(--rule) solid var(--navy); border-radius: 999px; color: var(--navy); }
.pill--caps { font-family: var(--font-body); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; padding: 6px 16px; }

.text-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 6px;
  background: none; border: 0; color: var(--navy); font-family: var(--font-body); font-weight: 700; cursor: pointer; text-decoration: none;
}
.text-btn .i { width: 20px; height: 20px; }
.text-btn:hover span { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Header (floating pill: the box's icy with a navy outline and the navy logo) ---------- */
.nav { position: fixed; top: 12px; left: 0; right: 0; z-index: 50; pointer-events: none; }
.nav-pill {
  pointer-events: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 7px 7px 7px 20px; border-radius: 999px; /* 7px + the 2px outline keeps the bar at its locked 62px on phones */
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.2) blur(12px); backdrop-filter: saturate(1.2) blur(12px);
  border: var(--rule) solid var(--navy);
  box-shadow: 0 12px 28px -18px rgba(1, 30, 62, .5);
}
.nav-logo { display: block; border-radius: 8px; }
.nav-logo img { height: 42px; width: auto; } /* hand-lettered v4 logo: tall and narrow, so it runs taller than the old wordmark */
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links .text-btn { font-size: 15px; font-weight: 700; padding: 0 12px; color: var(--navy); }
.nav .btn { --btn-bg: var(--navy); --btn-fg: var(--icy); }
.nav-links .text-btn[aria-current="page"] span { text-decoration: underline; text-underline-offset: 4px; }

/* Phone menu: ☰ button in the middle of the bar opens a popover list of pages */
.nav-menu-btn { display: none; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--navy); cursor: pointer; }
.nav-menu-btn:hover { background: color-mix(in srgb, var(--navy) 8%, transparent); }
.nav-menu-btn .i { width: 26px; height: 26px; }
.nav-menu-btn .i-close, .nav-menu-btn[aria-expanded="true"] .i-open { display: none; }
.nav-menu-btn[aria-expanded="true"] .i-close { display: block; }
.nav-menu {
  pointer-events: auto; /* the header itself ignores taps outside the pill */
  position: fixed; inset: 84px var(--gutter) auto; width: auto; max-width: none; margin: 0;
  padding: 10px; border: var(--rule) solid var(--navy); border-radius: 24px;
  background: var(--paper); color: var(--navy); box-shadow: 0 24px 50px -24px rgba(1, 30, 62, .55);
}
.nav-menu:popover-open { animation: menu-in .22s var(--ease); }
.nav-menu::backdrop { background: linear-gradient(to bottom, transparent 0 76px, rgba(1, 30, 62, .28) 140px); } /* dims the page but fades out behind the bar, so ✕ stays bright */
.nav-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nav-menu a { display: flex; align-items: center; min-height: 52px; padding: 6px 16px; border-radius: 16px; font-family: var(--font-display); font-weight: 700; font-size: 32px; line-height: 1; color: var(--navy); text-decoration: none; }
.nav-menu a:hover { background: color-mix(in srgb, var(--navy) 7%, transparent); }
.nav-menu a[aria-current="page"] { background: var(--icy); }
.nav-menu .nav-menu-social { display: flex; flex-wrap: wrap; gap: 0 18px; margin-top: 8px; padding: 6px 16px 0; border-top: 1px solid var(--line); }
.nav-menu .nav-menu-social a { min-height: 44px; padding: 0; font-family: var(--font-body); font-size: 15px; font-weight: 700; color: var(--navy); }
@supports not selector(:popover-open) { .nav-menu:not(.is-open) { display: none; } } /* older browsers: nav.js toggles .is-open */
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

@media (max-width: 640px) {
  .nav-pill { padding-left: 16px; }
  .nav-logo img { height: 36px; }
  .nav-links .text-btn.hide-sm { display: none; }
  /* logo left · ☰ centred · Give feedback right */
  .nav-pill--menu { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; padding-left: 8px; } /* even padding so ☰ sits dead centre */
  .nav-pill--menu .nav-logo { justify-self: start; margin-left: 8px; }
  .nav-pill--menu .nav-menu-btn { display: grid; }
  .nav-pill--menu .nav-links { justify-self: end; }
}
@media (min-width: 641px) { .nav-menu { display: none; } }
@media (max-width: 640px) { .nav-pill--menu .btn--sm { padding-inline: 14px; font-size: 15px; white-space: nowrap; } } /* one size on every phone, never wraps */
@media (max-width: 380px) { .nav-pill--menu .btn--sm { font-size: 14px; } } /* narrow phones: a touch smaller so ☰ stays centred */
@media (max-width: 340px) { .nav-pill--menu .nav-logo img { height: 32px; } .nav-pill--menu { gap: 4px; } }

/* ---------- Hero / flavor switcher ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(104px, 12vw, 132px) 0 clamp(48px, 6vw, 80px); /* sits straight on the page's honeycomb, like the box front */
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  grid-template-areas: "intro stage" "body stage";
  grid-template-rows: auto auto; column-gap: clamp(24px, 4vw, 56px); row-gap: 22px; align-items: center;
}
.hero-intro { grid-area: intro; align-self: end; }
.hero-body { grid-area: body; align-self: start; }
.stage { grid-area: stage; }

.hero h1 { margin-top: 0; font-size: clamp(64px, 10.4vw, 138px); line-height: .92; letter-spacing: .015em; }
/* "Boost." is underlined with the founder's hand-drawn brush stroke (stops just before the full stop) */
.hl { position: relative; z-index: 0; display: inline-block; line-height: 1; }
.hl::after {
  content: ""; position: absolute; z-index: -1; left: -.02em; right: .16em; bottom: -.02em; height: .13em;
  background: url(/images/drawings/underline.webp) center / 100% 100% no-repeat;
}

/* The three selling points: big, scannable, nothing competing with them */
.usps { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 12px; }
.usps li {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 3.6vw, 46px); line-height: 1; letter-spacing: .02em; color: var(--navy);
}
/* Each selling-point icon sits in an outlined hexagon badge, from the box's honeycomb */
.usp-icon {
  position: relative; flex: none; width: 56px; height: 56px; display: grid; place-items: center; color: var(--navy);
}
.usp-icon::before { content: ""; position: absolute; inset: 0; background: var(--navy); -webkit-mask: url(/images/patterns/hex.svg) center / contain no-repeat; mask: url(/images/patterns/hex.svg) center / contain no-repeat; }
.usp-icon::after { content: ""; position: absolute; inset: 2.5px; background: var(--paper); -webkit-mask: url(/images/patterns/hex.svg) center / contain no-repeat; mask: url(/images/patterns/hex.svg) center / contain no-repeat; }
.usp-icon .i { position: relative; z-index: 1; width: 28px; height: 28px; }
.usp-icon .knock { stroke: var(--paper); stroke-width: 4.2; } /* clean gap around the "no" slash */

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.btn--explain:hover .i { transform: translateY(3px); }

/* Stage: label → the gummy cube (it cycles through the flavors on its own, home.js) → flavor name */
.stage {
  --bear-h: clamp(220px, 27vw, 320px);
  position: relative; display: grid; justify-items: center;
}
.flavor-pick-head { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 10px; }
.flavor-pick-label { font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--navy); }
.bear-zone { position: relative; z-index: 1; padding-top: 22px; }

.hero-bear { position: relative; height: var(--bear-h); aspect-ratio: 181 / 189; }
.hero-bear img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 14px 14px rgba(20, 20, 15, .14)); }
.hero-bear img.is-out { animation: bear-out .17s ease-in forwards; }
.hero-bear img.is-in { animation: bear-in .62s var(--spring); }
.shadow-blob {
  position: relative; z-index: 1;
  width: clamp(110px, 14vw, 180px); height: 18px; margin-top: 2px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(20, 20, 15, .22), transparent);
}
/* The flavor's name in an outlined pill, exactly like "STRAWBERRY" on the box */
.flavor-name { position: relative; z-index: 1; margin-top: 10px; display: grid; justify-items: center; gap: 6px; text-align: center; }
#flavor-name { min-width: 4.6em; padding: 2px 24px 0; border: var(--rule) solid var(--navy); border-radius: 999px; font-family: var(--font-display); font-weight: 700; font-size: 34px; line-height: 1.25; letter-spacing: .06em; color: var(--navy); }
.flavor-name small { display: block; font-family: var(--font-body); font-size: 12px; font-weight: 700; color: var(--navy); letter-spacing: .16em; text-transform: uppercase; }

@media (max-width: 899px) {
  /* Phones/tablets: headline → selling points → gummy → buttons */
  .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "usps" "stage" "cta"; }
  .hero-intro { align-self: auto; }
  .hero-body { display: contents; }
  .usps { grid-area: usps; margin-bottom: 6px; }
  .cta-row { grid-area: cta; margin-top: 4px; }
  .hero { padding-top: 96px; }
  .hero-grid { row-gap: 16px; }
  .stage { --bear-h: clamp(170px, 46vw, 240px); }
}
@media (max-width: 520px) {
  .cta-row .btn { flex: 1 1 100%; }
  .usps { gap: 10px; margin-bottom: 26px; }
  .usp-icon { width: 48px; height: 48px; }
  .usp-icon .i { width: 23px; height: 23px; }
}

/* ---------- Meet the name: how to say it (where "What is Odakz?" lands) ----------
   One wide navy card: the name on the left, how to say it on the right (stacked on phones). */
.meet { padding: clamp(40px, 6vw, 72px) 0 0; }
.say-card {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px clamp(32px, 6vw, 80px);
  padding: clamp(26px, 4vw, 48px) clamp(26px, 5vw, 64px); border-radius: var(--radius); background: var(--paper); color: var(--navy); border: var(--rule) solid var(--navy);
}
.say-name, .say-how { display: grid; gap: 10px; }
.say-word { margin: 4px 0 0; line-height: 0; }
.say-word img { height: clamp(96px, 11vw, 132px); width: auto; }
.say-phon { font-family: var(--font-display); font-weight: 700; font-size: clamp(60px, 7.6vw, 92px); line-height: .95; letter-spacing: .03em; color: var(--navy); }
.say-phon b { color: var(--accent); } /* the stressed syllable */
.say-like { font-weight: 700; font-size: 19px; color: var(--navy); } /* the plain-words version under oh-DAHKS */
.say-from { font-size: 16px; color: var(--muted); }
@media (max-width: 699px) { .say-card { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Concept ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.concept { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.concept h2 { margin-top: 12px; }
.concept .lead + .lead { margin-top: 18px; } /* "Odakz fixes that" reads at the same size and colour as the problem above it */
@media (max-width: 799px) { .concept { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Highlight cards ---------- */
.highlights { list-style: none; padding: 0; margin: clamp(40px, 6vw, 64px) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
/* Outlined panels like the box's back panel: lighter icy inside, a navy frame with a heavy top rule */
.hl-card {
  position: relative; padding: 24px 22px 22px; border-radius: var(--radius-sm);
  background: var(--paper); color: var(--navy); border: var(--rule) solid var(--navy); border-top-width: 8px;
  display: flex; flex-direction: column; gap: 6px; min-height: 160px; justify-content: flex-end;
  transition: transform .3s var(--spring);
}
.hl-card:hover { transform: translateY(-4px); }
.hl-big { font-family: var(--font-display); font-weight: 700; font-size: clamp(54px, 5.4vw, 70px); line-height: .95; letter-spacing: .02em; color: var(--navy); }
.hl-big .plus { color: var(--accent); }
.hl-big--word { font-size: clamp(40px, 4vw, 54px); }
.hl-small { font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); }
.hl-card:not(:first-child) .hl-small { font-weight: 500; font-size: 16px; letter-spacing: 0; text-transform: none; } /* the ingredient lines read as sentences */
.highlights + .fine { margin-top: 18px; }
/* Narrower: the 100 mg card runs full width, with L-theanine and citicoline side by side under it */
@media (max-width: 899px) { .highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hl-card:first-child { grid-column: 1 / -1; min-height: 0; } }
@media (max-width: 420px) {
  .hl-card { padding: 20px 14px 18px; min-height: 140px; } .hl-card:not(:first-child) .hl-small { font-size: 15px; }
  .hl-big--word { font-size: min(36px, 8.6vw); white-space: nowrap; letter-spacing: 0; } /* keeps "+ L-theanine" on one line on small phones */
}

/* ---------- "Read the full story" link + ✓/✕ marks (used on the story page) ---------- */
.story-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 6px 0; font-weight: 700; color: var(--navy); text-underline-offset: 4px; }
.story-more .i { width: 20px; height: 20px; transition: transform .25s var(--spring); }
.story-more:hover .i { transform: translateX(3px); }
.mark { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; }
.mark svg { width: 16px; height: 16px; }
.mark--no { background: var(--navy); color: var(--icy); }
.mark--yes { background: var(--icy); color: var(--navy); }

/* ---------- Sweetener story: bold flat color block ("Zero sugar. Still sweet.") ---------- */
.sweet { padding-top: 0; }
.sweet-card {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center;
  gap: 28px 44px; padding: clamp(28px, 5vw, 60px); border-radius: var(--radius); background: var(--paper); color: var(--ink); border: var(--rule) solid var(--navy);
}
.sweet-card h2 { font-weight: 700; font-size: clamp(66px, 10.5vw, 128px); line-height: .88; letter-spacing: .02em; color: var(--navy); }
.sweet-card h2 span { display: block; }
.sweet-accent { color: var(--accent); }
.sweet-zero { color: var(--rust); } /* the founder's pick, 2026-11-29: rgb(155, 59, 40) */
.sweet-sub { margin: 18px 0 14px; font-weight: 700; font-size: clamp(19px, 2vw, 23px); line-height: 1.35; color: var(--navy); max-width: 30em; }
.sweet-copy p + p { margin-top: 12px; }
.sweet-copy p:not(.sweet-sub) { max-width: 36em; font-size: 17px; }
.sweet-side { display: grid; justify-items: center; gap: 18px; }
/* Set like the Supplement Facts table on the back of the box: heavy rule on top, thin rules between rows */
.sweet-facts { list-style: none; margin: 0; padding: 0; display: grid; width: 100%; border-top: 8px solid var(--navy); border-bottom: 4px solid var(--navy); }
.sweet-facts li { display: grid; gap: 2px; padding: 12px 2px; }
.sweet-facts li + li { border-top: 1px solid var(--navy); }
.sweet-key { font-family: var(--font-body); font-weight: 800; font-size: 20px; line-height: 1.15; color: var(--navy); }
.sweet-facts li span:last-child { font-size: 15px; }
@media (max-width: 799px) { .sweet-card { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Homepage scroll trail (trail.js): small hand-drawn balloons down the left, joined by a line ----------
   Grey until you reach a balloon's section, then it colours in with a pop; the line fills in as you scroll. */
#main { position: relative; }
.trail { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.trail-track, .trail-fill { position: absolute; left: calc(var(--x) - 1px); top: var(--y0); height: var(--len); width: 0; }
.trail-track { border-left: 2px dashed color-mix(in srgb, var(--navy) 28%, transparent); }
.trail-fill { border-left: 2px solid var(--navy); transform: scaleY(var(--p, 0)); transform-origin: top; }
.trail-balloon {
  position: absolute; left: var(--x); top: var(--y); width: var(--bw); height: auto; translate: -50% -50%;
  filter: hue-rotate(var(--hue, 0deg)) grayscale(1) opacity(.4) drop-shadow(0 4px 5px rgba(0, 32, 81, 0));
  transition: filter .5s var(--ease);
}
.trail-balloon.is-lit { filter: hue-rotate(var(--hue, 0deg)) grayscale(0) opacity(1) drop-shadow(0 4px 5px rgba(0, 32, 81, .22)); animation: balloon-pop .6s var(--spring); }
@keyframes balloon-pop { 0% { scale: .6; } 60% { scale: 1.2; } 100% { scale: 1; } }

/* ---------- Bands ---------- */
/* Closing call-to-action bands: an outlined panel on the honeycomb, like the box's back panel */
.band { position: relative; padding: clamp(48px, 7vw, 96px) 0; }
.band > .wrap { position: relative; z-index: 1; }
.band--blue > .wrap, .band--lime > .wrap {
  padding: clamp(32px, 5vw, 64px) clamp(20px, 4vw, 56px); border-radius: var(--radius);
  background: var(--paper); border: var(--rule) solid var(--navy); border-top-width: 8px;
}
.band--blue, .band--lime { color: var(--navy); --ring: var(--navy); }
.band--blue h2, .band--blue p { color: var(--navy); }
.band-center { display: grid; justify-items: center; text-align: center; }
.band-center h2 { max-width: 16em; }
.band-center p { margin: 18px auto 30px; font-size: clamp(18px, 1.8vw, 21px); max-width: 34em; }
.band-center .band-note { margin: 16px auto 0; font-size: 15px; font-weight: 500; color: var(--muted); }
.band-center .eyebrow { margin: 0 0 14px; font-size: 13px; }

/* ---------- Where it comes from: origin note + the founder's hand-drawn Blue Mosque (shown as drawn) ---------- */
.origin { padding: clamp(8px, 2vw, 24px) 0 clamp(16px, 3vw, 32px); overflow: hidden; }
.origin-head { display: grid; justify-items: center; text-align: center; }
.origin-head h2 { margin: 12px 0 22px; }
.origin-facts { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; row-gap: 14px; }
.origin-facts > div { display: grid; gap: 2px; padding: 0 22px; }
.origin-facts > div + div { border-left: 1px solid color-mix(in srgb, var(--navy) 22%, transparent); }
.origin-facts dt { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.origin-facts dd { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1.1; letter-spacing: .02em; color: var(--navy); }
/* the honeycomb fades out behind the drawing so its lines read; the ink is deepened a little toward the box's navy line art */
.origin { background: linear-gradient(to bottom, transparent 0, var(--icy) clamp(260px, 30vw, 380px)); }
.origin-art { width: min(760px, 94%); margin: clamp(28px, 4vw, 44px) auto 0; }
.origin-art img { width: 100%; height: auto; filter: brightness(.68) saturate(1.15); }
@media (max-width: 600px) {
  .origin-facts { flex-direction: column; }
  .origin-facts > div + div { border-left: 0; }
}

/* ---------- Final CTA ---------- */
.band--lime h2, .band--lime .ab-cta-text, .band--lime .ab-follow, .band--lime .ab-closer { color: var(--navy); }
.final { display: grid; justify-items: center; text-align: center; gap: 18px; }
.final h2 + .btn { margin-top: 8px; }
.final-note { font-size: 16px; font-weight: 500; color: var(--muted); }

/* ---------- Footer (navy, with the icy logo: the one dark block, so the page has a clear end) ---------- */
.footer { background: var(--navy); color: var(--white); padding: 56px 0 40px; }
.footer-grid { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; }
.footer-logo img { height: 64px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 22px; list-style: none; padding: 0; margin: 0; }
.footer-links a { display: inline-block; padding: 10px 0; color: var(--white); font-weight: 500; text-underline-offset: 4px; }
.footer-fine { margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(169, 229, 253, .22); display: grid; gap: 6px; font-size: 14px; color: #c9dbee; }

/* ---------- Survey ---------- */
.survey-page { min-height: 100vh; min-height: 100dvh; } /* on the body's honeycomb */
.survey-main { padding: 96px 0 56px; }
.survey-shell { width: min(720px, 100% - 2 * var(--gutter)); margin-inline: auto; }

.meter { margin: 0 0 16px; display: grid; gap: 10px; }
.meter[hidden] { display: none; }
.meter-row { display: flex; justify-content: flex-end; }
.meter-text { font-family: var(--font-body); font-weight: 700; font-size: 14px; letter-spacing: .14em; color: var(--navy); white-space: nowrap; }
.meter-bar { height: 10px; border-radius: 999px; border: var(--rule) solid var(--navy); background: var(--paper); overflow: hidden; }
.meter-bar span { display: block; height: 100%; width: var(--p, 0%); border-radius: inherit; background: var(--navy); transition: width .6s var(--spring); }

.q-card {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--paper); border-radius: var(--radius); padding: clamp(24px, 5vw, 52px);
  border: var(--rule) solid var(--navy); border-top-width: 8px;
}
.screen { outline: none; }
.screen.is-entering { animation: screen-in .42s var(--ease) both; }
.screen.is-entering.from-left { animation-name: screen-in-left; }
.screen.is-leaving { animation: screen-out .18s ease-in both; }
.screen.is-leaving.to-right { animation-name: screen-out-right; }

.q-eyebrow { font-weight: 700; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--navy); }
.q-title { margin-top: 10px; font-size: clamp(40px, 6vw, 58px); line-height: 1; outline: none; }
.q-hint { margin-top: 12px; color: var(--muted); font-size: 16px; }

/* Single-select rows: outlined, and filled navy once picked */
.opts-rows { display: grid; gap: 10px; margin-top: 26px; }
.opt { position: relative; display: block; cursor: pointer; }
.opt input, .chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.opt-ui {
  display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 14px 18px;
  border: var(--rule) solid var(--line); border-radius: var(--radius-sm); background: var(--white);
  font-weight: 500; font-size: 18px; line-height: 1.3;
  transition: border-color .18s, background-color .18s, color .18s, transform .2s var(--spring);
}
.opt-mark { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; transition: border-color .18s; }
.opt-mark::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--icy); transform: scale(0); transition: transform .35s var(--spring); }
.opt:hover .opt-ui { border-color: var(--navy); }
.opt:active .opt-ui { transform: scale(.985); }
.opt input:checked + .opt-ui { border-color: var(--navy); background: var(--navy); color: var(--icy); animation: pop .38s var(--spring); }
.opt input:checked + .opt-ui .opt-mark { border-color: var(--icy); }
.opt input:checked + .opt-ui .opt-mark::after { transform: scale(1); }
.opt input:focus-visible + .opt-ui, .chip input:focus-visible + .chip-ui { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 3px var(--paper); }

/* Multi-select chips */
.opts-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip { position: relative; display: inline-flex; max-width: 100%; cursor: pointer; }
.chip-ui {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; max-width: 100%;
  padding: 9px 18px 9px 13px; border-radius: 26px;
  border: var(--rule) solid var(--line); background: var(--white);
  font-weight: 500; font-size: 17px; line-height: 1.25;
  transition: border-color .18s, background-color .2s, color .2s, transform .2s var(--spring);
}
.chip-ui .i { flex: none; width: 22px; height: 22px; color: var(--fx-deep); transition: color .2s; }
.chip-ui .chip-check { width: 0; height: 18px; flex: none; opacity: 0; margin-left: -10px; transition: width .25s var(--spring), opacity .2s, margin .25s; }
.chip-bear { flex: none; height: 26px; width: auto; margin: -2px 0; transition: transform .35s var(--spring); }
.chip:hover .chip-ui { border-color: var(--navy); }
.chip:active .chip-ui { transform: scale(.96); }
.chip input:checked + .chip-ui { background: var(--navy); border-color: var(--navy); color: var(--icy); animation: pop .4s var(--spring); }
.chip input:checked + .chip-ui .i { color: var(--icy); }
.chip input:checked + .chip-ui .chip-check { width: 18px; opacity: 1; margin-left: 0; }
.chip-bear { border-radius: 10px; padding: 3px; box-sizing: content-box; height: 24px; }
.chip input:checked + .chip-ui .chip-bear { transform: rotate(-10deg) scale(1.08); background: var(--paper); } /* keeps dark gummies visible on their own color */

/* "Other" field + free text */
.field { margin-top: 18px; display: grid; gap: 8px; }
.field[hidden] { display: none; }
.field.is-revealed { animation: reveal-field .3s var(--ease); }
.field label { font-weight: 700; font-size: 15px; color: var(--navy); }
.field label .opt-note { font-weight: 500; color: var(--muted); }
.input, .textarea {
  width: 100%; border: var(--rule) solid var(--line); border-radius: 16px; background: var(--white);
  padding: 14px 16px; font-size: 17px; line-height: 1.5; transition: border-color .18s;
}
.textarea { min-height: 190px; resize: vertical; border-radius: 22px; }
.input:focus, .textarea:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--navy) 18%, transparent); }
.counter { justify-self: end; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }

.q-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 32px; scroll-margin-bottom: 24px; }
.q-nav .btn { margin-left: auto; }
.limit-note { margin-top: 12px; color: var(--fx-deep); font-weight: 700; font-size: 15px; }
.limit-note:empty { display: none; }
.need { margin-top: 12px; text-align: right; color: var(--fx-deep); font-weight: 700; font-size: 15px; min-height: 1.5em; }

/* "Here's the idea" card (survey intro, and a compact reminder before the concept questions) */
.concept-card { margin: 2px 0 4px; padding: 18px 20px 20px; border-radius: var(--radius-sm); background: var(--icy); color: var(--navy); border: var(--rule) solid var(--navy); display: grid; gap: 10px; }
.concept-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; font-family: var(--font-body); font-weight: 700; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--navy); }
.concept-head img { height: 38px; width: auto; }
.concept-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.concept-points li { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1.05; letter-spacing: .02em; }
.concept-points .i { flex: none; width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--navy); color: var(--icy); box-sizing: content-box; }
.concept-facts { font-size: 14px; color: var(--muted); }
.concept-card--compact { margin: 0 0 20px; padding: 12px 16px 14px; gap: 6px; border-radius: 14px; }
.concept-card--compact .concept-head { font-size: 12px; }
.concept-card--compact .concept-head img { height: 30px; }
.concept-card--compact .concept-points { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.concept-card--compact .concept-points li { font-size: 24px; gap: 7px; }
.concept-card--compact .concept-points .i { width: 14px; height: 14px; padding: 2px; }
.concept-card--compact .concept-facts { font-size: 13px; }

/* Intro + review */
.intro { display: grid; gap: 14px; }
.intro .q-title { margin-top: 0; font-size: clamp(48px, 7.4vw, 68px); }
.promise { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 10px; }
.promise li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; }
.promise .i { flex: none; width: 24px; height: 24px; padding: 3px; border-radius: 50%; background: var(--navy); color: var(--icy); box-sizing: content-box; }

.review { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.review li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 10px 12px 14px; border-radius: var(--radius-sm); background: var(--white); border: var(--rule) solid var(--line); }
.review-num { position: relative; isolation: isolate; display: grid; place-items: center; width: 34px; height: 34px; font-weight: 700; font-size: 15px; color: var(--icy); font-variant-numeric: tabular-nums; }
.review-num::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--navy); -webkit-mask: url(/images/patterns/hex.svg) center / contain no-repeat; mask: url(/images/patterns/hex.svg) center / contain no-repeat; } /* numbered navy hexagon, from the box's honeycomb */
.review-q { font-size: 14px; color: var(--muted); line-height: 1.35; }
.review-a { margin-top: 2px; font-weight: 500; overflow-wrap: anywhere; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.review-a.is-empty { color: var(--muted); font-style: italic; font-weight: 400; }
.review .text-btn { font-size: 15px; }
.send-error { margin-top: 18px; padding: 14px 16px; border-radius: 16px; background: #fde7e5; color: #8a1410; font-weight: 500; }
.send-error[hidden] { display: none; }
.send-note { margin-top: 16px; text-align: center; }
.send-note a { color: var(--navy); font-weight: 700; }
.load-error { text-align: center; display: grid; gap: 16px; justify-items: center; }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 520px) {
  .survey-main { padding-top: 84px; }
  .opt-ui { font-size: 17px; min-height: 56px; }
  .chip-ui { font-size: 16px; min-height: 48px; }
  .q-nav { margin-top: 26px; }
  .q-nav .btn { padding-inline: 22px; }
}
@media (max-width: 360px) { .meter-text { font-size: 13px; } }

/* ---------- Thank you ---------- */
.thanks-page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; } /* on the body's honeycomb */
.thanks { flex: 1; display: grid; place-items: center; padding: 110px 0 64px; text-align: center; }
.thanks-inner { display: grid; justify-items: center; gap: 18px; max-width: 680px; }
.thanks h1 { font-size: clamp(58px, 9.6vw, 104px); }
.thanks .lead { color: var(--navy); font-weight: 500; }
.thanks p.small { color: var(--navy); max-width: 32em; }
/* The three next steps (email · share · follow), kept together so they fit on one screen */
.thanks-actions { width: 100%; display: grid; justify-items: center; gap: 14px; margin: 6px 0 4px; }
.thanks-actions > section { margin: 0; }
@media (min-width: 980px) {
  .thanks-inner { max-width: 1120px; }
  .thanks-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
  .thanks-actions > section { max-width: none; align-content: start; }
  .thanks-actions .signup-form { flex-direction: column; }
  .thanks-actions .follow-links { grid-template-columns: minmax(0, 1fr); }
}
/* Phones: tighter cards (headings and buttons only, plus the privacy note) so all three fit on the screen */
@media (max-width: 600px) {
  .thanks-actions { gap: 8px; }
  .thanks-actions > section { padding: 14px 14px 16px; gap: 10px; }
  .thanks-actions > section h2 { font-size: 30px; line-height: 1; letter-spacing: 0; } /* one line each, so all three cards fit on the screen */
  .thanks-actions > section { border-width: 1.5px; }
  .thanks { padding-top: 96px; }
  .thanks-actions > section > p:not(.fine):not([role="status"]) { display: none; }
  .thanks-actions .btn, .thanks-actions .input { min-height: 48px; }
  .thanks-actions .signup-form { gap: 8px; margin-top: 0; }
  .thanks-actions .fine { font-size: 13px; line-height: 1.45; }
  .thanks-actions .share-actions { margin-top: 0; gap: 8px; }
  .thanks-actions .follow-links { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 0; }
  .thanks-actions .follow-link { flex-direction: column; gap: 2px; min-height: 58px; padding: 8px 4px; border-radius: 18px; font-size: 15px; }
}
@media (min-width: 360px) and (max-width: 600px) { /* "Share the link" and "Copy link" side by side */
  .thanks-actions .share-actions { flex-wrap: nowrap; }
  .thanks-actions .share-actions .btn { flex: 1 1 0; min-width: 0; padding-inline: 10px; gap: 6px; font-size: 16px; white-space: nowrap; }
  .thanks-actions .share-actions .i { width: 19px; height: 19px; }
}
/* Launch email sign-up (thank-you page) */
.signup {
  width: 100%; max-width: 560px; margin: 6px 0 4px; padding: clamp(22px, 4vw, 30px); border-radius: var(--radius);
  background: var(--paper); border: var(--rule) solid var(--navy); display: grid; gap: 12px;
}
.signup h2 { font-size: clamp(36px, 4.4vw, 44px); }
.signup p { color: var(--ink); }
.signup-form { display: flex; gap: 10px; margin-top: 4px; }
.signup-form[hidden] { display: none; }
.signup-form .input { flex: 1; min-width: 0; min-height: 52px; }
.signup-form .btn { flex: none; }
.signup-msg { font-weight: 700; color: var(--navy); }
.signup-msg:empty { display: none; }
.signup-msg.is-error { color: #a3140f; }
.signup .fine a { color: var(--navy); font-weight: 700; }
@media (max-width: 520px) { .signup-form { flex-direction: column; } .signup-form .btn { width: 100%; } }
/* Share (thank-you page): native share sheet + copy link */
.share {
  width: 100%; max-width: 560px; margin: 0; padding: clamp(22px, 4vw, 30px); border-radius: var(--radius);
  background: var(--paper); border: var(--rule) solid var(--navy); display: grid; justify-items: center; gap: 12px;
}
.share h2 { font-size: clamp(36px, 4.4vw, 44px); }
.share p { color: var(--ink); }
.share-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: 100%; margin-top: 4px; }
.share-actions .btn { flex: 1 1 200px; }
.share-actions .btn[hidden] { display: none; }
.share-msg { font-weight: 700; color: var(--navy); }
.share-msg:empty { display: none; }
/* Follow along (thank-you page): navy card with the three social buttons */
.follow {
  width: 100%; max-width: 560px; margin: 0 0 4px; padding: clamp(22px, 4vw, 30px); border-radius: var(--radius);
  background: var(--paper); color: var(--navy); border: var(--rule) solid var(--navy); display: grid; gap: 12px;
}
.follow h2 { font-size: clamp(36px, 4.4vw, 44px); color: var(--navy); }
.follow p { color: var(--navy); }
.follow p strong { color: var(--navy); }
.follow-links { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.follow-link {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 10px 14px; border-radius: 999px;
  background: var(--navy); color: var(--icy); font-family: var(--font-body); font-weight: 700; font-size: 16px; text-decoration: none;
  transition: transform .18s var(--spring);
}
.follow-link:hover { transform: translateY(-2px); }
.follow-link .i { width: 20px; height: 20px; flex: none; }
/* Smallest phones: keep the whole "youreawesome@example.com" hint visible (typed text stays 17px) */
@media (max-width: 359px) { .signup-form .input { padding-inline: 12px; } .signup-form .input::placeholder { font-size: 15px; } }
/* Thank-you celebration: the founder's hot-air balloons rise from below the screen and are gone in ~4.5 s.
   thanks.js sets each one's spot, width, colour (hue shift), speed, delay, drift and tilt. */
.balloons { position: fixed; inset: 0; z-index: 60; pointer-events: none; overflow: hidden; }
.balloons img {
  position: absolute; top: 100%; left: var(--x); width: var(--w); height: auto; translate: -50% 0;
  filter: hue-rotate(var(--hue)) drop-shadow(0 10px 14px rgba(0, 32, 81, .18));
  animation: rise var(--d) cubic-bezier(.3, .15, .5, 1) var(--delay) both;
}

/* ---------- Legal / 404 ---------- */
.page-main { padding: 120px 0 80px; }
.legal { width: min(720px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.legal { padding: clamp(24px, 4vw, 44px); border-radius: var(--radius); background: var(--paper); border: var(--rule) solid var(--navy); }
.legal h1 { font-size: clamp(56px, 8.4vw, 84px); margin: 10px 0 18px; }
.legal h2 { font-size: clamp(34px, 4.2vw, 42px); margin: 40px 0 12px; }
.legal p, .legal li { color: var(--ink); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 1.2em; display: grid; gap: 6px; margin: 12px 0 0; }
.legal a { color: var(--navy); font-weight: 700; text-underline-offset: 3px; }
.notfound { text-align: center; display: grid; justify-items: center; gap: 18px; }
.notfound img { height: 170px; width: auto; rotate: 18deg; }

/* ---------- Survey invite popup (landing page) ---------- */
.invite { width: min(440px, 100% - 32px); max-width: none; max-height: none; margin: auto; padding: 0; border: 0; background: transparent; color: var(--ink); overflow: visible; }
.invite::backdrop { background: rgba(1, 30, 62, .45); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.invite[open] { animation: invite-in .32s var(--ease); }
.invite[open]::backdrop { animation: invite-fade .32s var(--ease); }
.invite-card {
  position: relative; display: grid; justify-items: center; gap: 10px; padding: 30px 26px 24px; border-radius: var(--radius);
  background: var(--paper); text-align: center; border: var(--rule) solid var(--navy); border-top-width: 8px; box-shadow: 0 30px 70px -30px rgba(1, 30, 62, .6);
}
.invite-close {
  position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: transparent; color: var(--navy); cursor: pointer;
}
.invite-close:hover { background: color-mix(in srgb, var(--navy) 8%, transparent); }
.invite-close .i { width: 20px; height: 20px; }
.invite h2 { font-size: clamp(48px, 9vw, 58px); }
.invite h2:focus { outline: none; } /* focus lands on the title when it opens, so no ring flashes on the button */
.invite p { max-width: 30em; color: var(--ink); }
.invite-actions { display: grid; justify-items: center; gap: 4px; width: 100%; margin-top: 8px; }
.invite-actions .btn { width: 100%; }
/* Flat pill in the popup (no 3D bottom edge), so the button and its focus ring line up exactly */
.invite-actions .btn, .invite-actions .btn:active { --lip: 0px; }
@keyframes invite-in { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes invite-fade { from { opacity: 0; } to { opacity: 1; } }
/* Phones: a bottom sheet instead of a centered box, so it never covers the whole screen */
@media (max-width: 520px) {
  .invite { width: 100%; margin: auto 0 0; }
  .invite-card { padding: 26px 20px calc(18px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; border-bottom: 0; }
  .invite[open] { animation-name: invite-up; }
  @keyframes invite-up { from { transform: translateY(100%); } to { transform: none; } }
}

/* ---------- Private results page (admin.html) ---------- */
.admin-page { background: var(--icy); } /* plain icy (no honeycomb) so the numbers stay easy to read */
.admin-main { padding: 108px 0 64px; display: grid; gap: 18px; align-content: start; }
.admin-tag { color: var(--navy); font-weight: 700; font-size: 14px; padding: 0 10px; }
.admin-card {
  background: var(--paper); border-radius: var(--radius); padding: clamp(20px, 3vw, 28px); border: var(--rule) solid var(--navy);
}
.admin-card h2 { font-size: clamp(34px, 3.8vw, 40px); }
.admin-narrow { width: 100%; max-width: 460px; margin: 5vh auto 0; }
.admin-narrow h1 { font-size: clamp(48px, 6vw, 58px); margin-bottom: 6px; }
.kpi, .chart-card, .response-card { border: var(--rule) solid var(--line); }
.admin-sub { color: var(--muted); margin-top: 6px; }
.admin-form { display: grid; gap: 8px; margin-top: 18px; }
.admin-form label { margin-top: 6px; font-weight: 700; font-size: 15px; color: var(--navy); }
.admin-form .btn { margin-top: 12px; }
.admin-error { padding: 10px 14px; border-radius: 12px; background: #fde7e5; color: #8a1410; font-weight: 500; }
.admin-error.is-info { background: var(--fx-tint); color: var(--navy); }
.admin-error[hidden] { display: none; }
.admin-code { margin: 12px 0; padding: 12px 16px; border-radius: 12px; background: var(--navy); color: var(--icy); overflow-x: auto; font-size: 15px; }
.admin-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.admin-head h1 { font-size: clamp(52px, 7vw, 72px); }
.admin-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.admin-filters label { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--navy); }
.admin-filters select, .response-card select {
  min-height: 40px; padding: 6px 12px; border: 2px solid var(--line); border-radius: 12px;
  background: var(--white); color: var(--ink); font: inherit; font-weight: 500;
}
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px; }
.kpi { padding: 16px 18px; border-radius: 20px; background: var(--paper); }
.kpi-label { font-size: 14px; font-weight: 700; color: var(--muted); }
.kpi-value { margin-top: 4px; font-family: var(--font-body); font-weight: 700; font-size: 34px; line-height: 1.1; color: var(--navy); }
.kpi-sub { margin-top: 2px; font-size: 13px; color: var(--muted); }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.admin-tabs [role="tab"] {
  min-height: 40px; padding: 6px 16px; border: 0; border-radius: 999px; background: transparent;
  color: var(--navy); font-weight: 700; cursor: pointer;
}
.admin-tabs [role="tab"]:hover { background: color-mix(in srgb, var(--navy) 7%, transparent); }
.admin-tabs [role="tab"][aria-selected="true"] { background: var(--navy); color: var(--white); }
.admin-panel { display: grid; gap: 14px; }
.admin-panel[hidden] { display: none; }
.is-loading .admin-panel, .is-loading .kpis { opacity: .55; transition: opacity .2s; }
.admin-empty { text-align: center; color: var(--muted); }

/* Charts: one series per chart → one color; value printed at every bar; tooltip on hover/focus */
.charts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 14px; }
.chart-card { display: grid; align-content: start; padding: 18px 20px 20px; border-radius: 22px; background: var(--paper); }
.chart-q { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.chart-card h3 { margin-top: 4px; font-family: var(--font-body); font-weight: 700; font-size: 17px; line-height: 1.3; color: var(--navy); }
.chart-n { margin-top: 4px; font-size: 13px; color: var(--muted); }
.bars { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 2px; }
.bar-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 4px 10px;
  margin: 0 -6px; padding: 6px; border-radius: 10px;
}
.bar-row:hover, .bar-row:focus-visible { background: color-mix(in srgb, var(--navy) 6%, transparent); }
.bar-label { font-size: 14px; color: var(--ink); }
.bar-row.is-top .bar-label { font-weight: 700; }
.bar-value { font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bar-value small { font-weight: 500; color: var(--muted); }
.bar-track { grid-column: 1 / -1; height: 10px; border-radius: 0 4px 4px 0; background: color-mix(in srgb, var(--navy) 8%, transparent); }
.bar-fill { display: block; width: var(--w, 0%); height: 100%; border-radius: 0 4px 4px 0; background: var(--navy); transition: width .4s var(--ease); }
.chart-tip {
  position: fixed; z-index: 80; max-width: 240px; padding: 8px 10px; border-radius: 10px; pointer-events: none;
  background: var(--paper); color: var(--ink); font-size: 13px; box-shadow: 0 8px 24px -8px rgba(0, 32, 81, .45);
}
.chart-tip[hidden] { display: none; }
.chart-tip strong { display: block; font-size: 16px; color: var(--navy); }
.open-list { list-style: none; margin: 14px 0 6px; padding: 0; display: grid; gap: 10px; }
.open-list blockquote, .resp-open { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.open-list blockquote { padding: 10px 12px; border-left: 3px solid var(--navy); border-radius: 0 10px 10px 0; background: var(--cream); font-size: 15px; }

/* Individual responses */
.response-card { display: grid; gap: 12px; padding: 18px 20px; border-radius: 22px; background: var(--paper); }
.response-card header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.resp-date { font-weight: 700; color: var(--navy); }
.resp-id { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.resp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.saved { min-width: 4.5em; font-size: 13px; color: var(--muted); }
.resp-open { padding: 12px 14px; border-radius: 14px; background: var(--fx-tint); font-size: 16px; }
.resp-open.muted, .answers dd.muted { color: var(--muted); font-style: italic; }
.answers { display: grid; grid-template-columns: minmax(0, 14em) minmax(0, 1fr); gap: 6px 16px; margin: 0; font-size: 15px; }
.answers dt { color: var(--muted); }
.answers dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.text-btn.danger { color: #a3140f; }

/* Launch list + downloads */
.btn-row, .downloads { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.downloads { list-style: none; padding: 0; }
.table-wrap { overflow-x: auto; }
.email-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.email-table th { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; font-size: 13px; font-weight: 700; color: var(--muted); }
.email-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.email-table td:nth-child(2) { white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
  .answers { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .answers dd { margin-bottom: 8px; }
  .kpi-value { font-size: 28px; }
  .admin-tag { display: none; }
}

/* ---------- About / Our Story ---------- */
/* Hero: big centered line straight on the honeycomb, like the box front */
.ab-hero {
  position: relative;
  padding: clamp(120px, 14vw, 170px) 0 clamp(24px, 4vw, 48px); text-align: center;
}
.ab-hero .wrap { position: relative; z-index: 2; display: grid; justify-items: center; gap: 18px; }
.ab-hero h1 { font-size: clamp(64px, 11.6vw, 150px); line-height: .9; max-width: 12em; }
.ab-hero-sub { max-width: 34em; }

/* The sticker: a navy hexagon seal (from the box's honeycomb) with the logo in the middle. It turns only while you scroll (spin.js). */
.ab-sticker { position: relative; width: clamp(150px, 17vw, 196px); aspect-ratio: 1; margin: 6px 0 0; filter: drop-shadow(0 16px 20px rgba(1, 30, 62, .25)); }
.ab-sticker-ring { position: absolute; inset: 0; width: 100%; height: 100%; rotate: calc(-12deg + var(--spin, 0deg)); }
.ab-sticker-bg { fill: var(--navy); }
.ab-sticker-line { fill: none; stroke: var(--icy); stroke-width: 1.5; opacity: .5; }
.ab-sticker-text { fill: var(--icy); font-family: var(--font-body); font-weight: 700; font-size: 12.5px; letter-spacing: .08em; }

.ab-arch > .wrap { position: relative; z-index: 1; }

.ab-center { max-width: 760px; margin-inline: auto; display: grid; justify-items: center; text-align: center; }
.ab-center h2 { margin: 12px 0 18px; }
.ab-center-more { margin-top: 16px; max-width: 38em; font-size: 18px; }
/* The story reads as one centred column on every screen (the phone layout, on desktop too) */
.ab-row { max-width: 680px; margin-inline: auto; }
.ab-row + .ab-row, .lanterns + .ab-row { margin-top: clamp(48px, 7vw, 80px); }
.ab-copy h3 { font-size: clamp(42px, 5vw, 58px); margin: 10px 0 14px; }
.ab-copy p + p { margin-top: 14px; }
.ab-copy p:not(.eyebrow):not(.lead) { font-size: 18px; }

/* The founder's hand-drawn lanterns, hanging from a rope pinned at both ends. Each lantern image starts at the
   top of its chain, so a top margin of (rope height × the rope's sag at that spot) hooks it onto the rope.
   Sag of the rope path M0 8 Q500 72 1000 8 at t: (8 + 128·t·(1−t)) / 100. */
.lanterns { --rope: clamp(34px, 5vw, 60px); --ink: #585d8b; position: relative; /* rope + pins in the lanterns' deepened ink (below) */ display: flex; justify-content: space-between; align-items: flex-start; max-width: 820px; margin: clamp(36px, 6vw, 64px) auto 0; padding: 0 3%; }
.lanterns::before, .lanterns::after { content: ""; position: absolute; top: calc(var(--rope) * .08 - 5px); width: 10px; height: 10px; border-radius: 50%; background: var(--ink); } /* the two pins */
.lanterns::before { left: -5px; }
.lanterns::after { right: -5px; }
.lanterns-rope { position: absolute; left: 0; top: 0; width: 100%; height: var(--rope); overflow: visible; fill: none; stroke: var(--ink); stroke-width: 2.5px; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.lanterns img { position: relative; width: auto; height: clamp(120px, 19vw, 210px); margin-top: calc(var(--rope) * var(--sag, 0) - 3px); filter: brightness(.68) saturate(1.15); } /* same deepened ink as the mosque */
.lanterns img:nth-of-type(1), .lanterns img:nth-of-type(7) { --sag: .16; }
.lanterns img:nth-of-type(2), .lanterns img:nth-of-type(6) { --sag: .29; }
.lanterns img:nth-of-type(3), .lanterns img:nth-of-type(5) { --sag: .372; }
.lanterns img:nth-of-type(4) { --sag: .40; }
@media (max-width: 520px) { /* five lanterns on phones, so each stays big enough to see */
  .lanterns { padding: 0 2%; }
  .lanterns img { height: 112px; }
  .lanterns img:nth-of-type(2), .lanterns img:nth-of-type(6) { display: none; }
  .lanterns img:nth-of-type(1), .lanterns img:nth-of-type(7) { --sag: .17; }
  .lanterns img:nth-of-type(3), .lanterns img:nth-of-type(5) { --sag: .342; }
}

.ab-narrow { max-width: 820px; }
.ab-never { list-style: none; margin: clamp(26px, 4vw, 40px) 0 0; padding: 0; display: grid; gap: 12px; }
.ab-never li { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-radius: var(--radius-sm); background: var(--paper); border: var(--rule) solid var(--navy); font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 3.4vw, 38px); line-height: 1.05; letter-spacing: .02em; color: var(--navy); }

.ab-cta-text { max-width: 34em; font-size: clamp(18px, 1.8vw, 21px); }
.ab-follow { display: inline-block; padding: 8px 0; font-weight: 700; color: var(--navy); text-underline-offset: 4px; }
.ab-closer { font-weight: 600; font-size: 17px; color: var(--navy); }

/* ---------- Scroll reveal (only when JS can finish it) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes bear-out { to { transform: scale(.8) rotate(-10deg); opacity: 0; } }
@keyframes bear-in {
  0% { transform: translateY(26px) scale(.72) rotate(8deg); opacity: 0; }
  55% { transform: translateY(-6px) scale(1.07, .94); opacity: 1; }
  78% { transform: scale(.97, 1.03); }
  100% { transform: none; opacity: 1; }
}
@keyframes pop { 0% { transform: scale(.94); } 60% { transform: scale(1.04); } 100% { transform: scale(1); } }
@keyframes rise {
  0% { transform: translate(0, 0) rotate(var(--r0)); }
  50% { transform: translate(calc(var(--dx) * .6), -55vh) rotate(calc(var(--r0) * -1)); }
  100% { transform: translate(var(--dx), calc(-100vh - 100% - 40px)) rotate(var(--r0)); }
}
@keyframes screen-in { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes screen-in-left { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@keyframes screen-out { to { opacity: 0; transform: translateX(-22px); } }
@keyframes screen-out-right { to { opacity: 0; transform: translateX(22px); } }
@keyframes reveal-field { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
