/* ==========================================================================
   Flora web: the design system, direction A (Chris's pick, 2026-11-14).
   Editorial and calm: Flora's own serif (Fraunces) set light and large at
   display size, Instrument Sans for everything else, one cream ground, text on
   one left-aligned grid, hairlines instead of decoration. Plain sentences: no
   two-line slogans, no coloured or italic accent words, no chips, no ticker.
   The fonts come from Google Fonts (the <link> in each page); the app's own
   serif is kept only for the numbers drawn on the app's screens (js/phone.js).
   ========================================================================== */

@font-face { font-family: 'Flora App Serif'; font-weight: 600; font-display: swap; src: url('../fonts/Fraunces_600SemiBold.ttf') format('truetype'); }

:root {
  --page: #F7F3EB;
  --page2: #F1ECE1;
  --card: #FFFFFF;
  --app-bg: #EEF1F5;
  --ink: #15191E;
  --ink2: #4B545D;
  --ink3: #6E7680;
  --line: rgba(21, 25, 30, 0.09);
  --line2: rgba(21, 25, 30, 0.15);
  --green: #0DA057;
  --green2: #14A465;
  --greenDeep: #0A7A46;
  --greenInk: #086A3C;
  --mint: #E6F4EC;
  --forest: #0E3A2B;      /* the action colour: every main button */
  --forest2: #17513D;     /* its hover */
  --forestDeep: #0B2E22;
  --cream: #FBF8F1;       /* what sits on forest */
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 12' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 6h15.5M11.5 1.5 16.5 6l-5 4.5'/%3E%3C/svg%3E");
  --amber: #F5A524;
  --amberBg: #FDF2DC;
  --goldDeep: #755B1E;
  --coral: #F0533F;
  --coralBg: #FCE7E3;
  --coralDeep: #B8341F;
  --gold: #C2A24E;
  --gold2: #E4CB86;
  /* older names the quiz pages still use */
  --cream1: var(--page);
  --cream2: var(--page2);
  --cream3: #ECE5D7;
  /* shadows sit close and fall off fast, the way an object on a table does */
  --sh-1: 0 1px 1px rgba(21, 25, 30, 0.03), 0 14px 34px -16px rgba(21, 25, 30, 0.14);
  --sh-2: 0 1px 2px rgba(21, 25, 30, 0.04), 0 26px 60px -24px rgba(21, 25, 30, 0.2);
  --sh-3: 0 2px 4px rgba(21, 25, 30, 0.05), 0 46px 96px -36px rgba(21, 25, 30, 0.28);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1200px;
  --gutter: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (min-width: 760px) { :root { --gutter: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; color: var(--ink); background: var(--page);
  font-family: var(--sans); font-weight: 400; font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
.section { overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; border-radius: 6px; }
section[id], div[id] { scroll-margin-top: 92px; }
::selection { background: rgba(13, 160, 87, 0.18); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.nw { white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- type ---------- */
h1, h2, h3 { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; font-variation-settings: 'opsz' 144; color: var(--ink); }
h1 { font-size: clamp(42px, 11vw, 56px); line-height: 1.03; letter-spacing: -0.014em; text-wrap: balance; }
h2 { font-size: clamp(32px, 8.2vw, 42px); line-height: 1.08; letter-spacing: -0.01em; text-wrap: pretty; }
@media (min-width: 940px) {
  h1 { font-size: clamp(56px, 5.4vw, 80px); }
  h2 { font-size: clamp(40px, 3.9vw, 56px); }
}
/* direction A has no accent words: anything still marked up as one reads as the sentence */
h1 .g, h2 .g, h1 em, h2 em { color: inherit; font-style: normal; display: inline; }
h3 { font-family: var(--sans); font-weight: 600; font-size: 18px; line-height: 1.35; letter-spacing: -0.005em; }
p { margin: 0; text-wrap: pretty; }
.lede { font-size: clamp(17px, 1.4vw, 19.5px); line-height: 1.6; color: var(--ink2); }
.lede b { color: var(--ink); font-weight: 600; }
.label, .eyebrow { display: block; font-family: var(--sans); font-size: 12px; font-weight: 600; line-height: 1.2; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink3); }
.label { margin-bottom: 18px; }
.num { font-family: var(--serif); font-weight: 400; font-variation-settings: 'opsz' 144; letter-spacing: -0.02em; font-variant-numeric: lining-nums tabular-nums; }

/* ---------- buttons and links ----------
   Shape and size come from six premium sites measured on 2026-11-14 (Seed, ZOE,
   Oura, Function, Eight Sleep, Aesop): a pill, 47 to 54px tall, 24 to 32px at
   the sides, a label that is never heavy, one deep brand colour on cream.
   The finish is Chris's ask (2026-11-16): "polished… premium depth and a slight
   glow that makes you want to click". So each main button is lit from above (a
   soft light at the top, a hairline rim, a shade at its foot), rests on a close
   shadow, and carries a quiet glow that breathes. On hover it lifts, the glow
   opens and a sheen crosses it once.
   The breathing is a second, wider glow laid over the first and faded in and
   out (--btn-glow on ::before), so the button itself is never redrawn for it
   and a page full of them costs nothing while you scroll.
   A variant only sets the --btn-* values. Every shadow list has the same seven
   layers in the same order, so the states melt into each other. */
.btn {
  --h: 54px; --px: 28px;
  --btn-sheen: linear-gradient(105deg, rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 58%);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: var(--h); padding: 0 var(--px); border: 0; border-radius: 999px; cursor: pointer;
  font-family: var(--sans); font-weight: 550; font-size: 16px; line-height: 1; letter-spacing: -0.006em; text-decoration: none; white-space: nowrap;
  -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none;
  color: var(--btn-fg, inherit);
  background-image: var(--btn-sheen), var(--btn-bg); background-repeat: no-repeat;
  background-size: 260% 100%, 100% 100%, 100% 100%; background-position: 130% 0, 0 0, 0 0;
  box-shadow: var(--btn-shadow);
  transition: transform 0.35s var(--ease), box-shadow 0.4s var(--ease), filter 0.35s var(--ease), background-position 0s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--btn-shadow-hover); filter: brightness(1.06); background-position: -30% 0, 0 0, 0 0; transition: transform 0.35s var(--ease), box-shadow 0.4s var(--ease), filter 0.35s var(--ease), background-position 0.95s var(--ease); }
.btn:active { transform: translateY(0) scale(0.985); box-shadow: var(--btn-shadow-press, var(--btn-shadow)); filter: brightness(0.98); transition-duration: 0.12s; }
.btn:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; border-radius: 999px; }
.btn[disabled] { opacity: 0.4; pointer-events: none; animation: none; }

/* the main button: a forest pill, lit from above, with a green glow that breathes */
.btn-primary {
  --btn-fg: var(--cream);
  --btn-bg: radial-gradient(120% 130% at 50% -45%, rgba(130, 226, 178, 0.34) 0%, rgba(130, 226, 178, 0) 62%), linear-gradient(180deg, #1B5A45 0%, #0F4131 52%, #0B3328 100%);
  --btn-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 -12px 18px -12px rgba(0, 0, 0, 0.42), 0 1px 2px rgba(6, 30, 22, 0.5), 0 8px 18px -8px rgba(9, 54, 38, 0.55), 0 14px 34px -10px rgba(13, 160, 87, 0.4), 0 0 0 0 rgba(13, 160, 87, 0);
  --btn-glow: 0 16px 46px -8px rgba(13, 160, 87, 0.42);
  --btn-shadow-hover: inset 0 1px 0 rgba(255, 255, 255, 0.34), inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 -12px 18px -12px rgba(0, 0, 0, 0.36), 0 2px 4px rgba(6, 30, 22, 0.45), 0 14px 26px -10px rgba(9, 54, 38, 0.55), 0 20px 54px -8px rgba(13, 160, 87, 0.7), 0 0 0 5px rgba(13, 160, 87, 0.11);
  --btn-shadow-press: inset 0 2px 5px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.05), inset 0 -8px 14px -12px rgba(0, 0, 0, 0.4), 0 1px 1px rgba(6, 30, 22, 0.5), 0 3px 8px -4px rgba(9, 54, 38, 0.5), 0 6px 18px -8px rgba(13, 160, 87, 0.4), 0 0 0 0 rgba(13, 160, 87, 0);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.28);
}
/* the same button where the ground is dark or green: cream, with a warm light under it */
.btn-white, .spin-pin.is-green .spin-cta {
  --btn-fg: var(--forest);
  --btn-sheen: linear-gradient(105deg, rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, 0.95) 50%, rgba(255, 255, 255, 0) 58%);
  --btn-bg: radial-gradient(120% 130% at 50% -45%, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 62%), linear-gradient(180deg, #FFFEFB 0%, #F6F1E5 55%, #EAE3D2 100%);
  --btn-shadow: inset 0 1px 0 rgba(255, 255, 255, 1), inset 0 0 0 1px rgba(255, 255, 255, 0.5), inset 0 -12px 18px -12px rgba(120, 100, 60, 0.3), 0 1px 2px rgba(0, 0, 0, 0.35), 0 10px 22px -10px rgba(0, 0, 0, 0.5), 0 14px 38px -10px rgba(255, 246, 220, 0.36), 0 0 0 0 rgba(255, 246, 220, 0);
  --btn-glow: 0 16px 50px -8px rgba(255, 246, 220, 0.4);
  --btn-shadow-hover: inset 0 1px 0 rgba(255, 255, 255, 1), inset 0 0 0 1px rgba(255, 255, 255, 0.6), inset 0 -12px 18px -12px rgba(120, 100, 60, 0.26), 0 2px 4px rgba(0, 0, 0, 0.3), 0 16px 28px -12px rgba(0, 0, 0, 0.5), 0 20px 58px -8px rgba(255, 246, 220, 0.66), 0 0 0 5px rgba(255, 246, 220, 0.14);
  --btn-shadow-press: inset 0 2px 5px rgba(120, 100, 60, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.5), inset 0 -8px 14px -12px rgba(120, 100, 60, 0.3), 0 1px 1px rgba(0, 0, 0, 0.35), 0 4px 10px -6px rgba(0, 0, 0, 0.5), 0 6px 18px -8px rgba(255, 246, 220, 0.3), 0 0 0 0 rgba(255, 246, 220, 0);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}
.btn-white:focus-visible { outline-color: var(--cream); }
.btn-dark {
  --btn-fg: var(--cream);
  --btn-bg: radial-gradient(120% 130% at 50% -45%, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 62%), linear-gradient(180deg, #2A3038 0%, #181C22 55%, #101318 100%);
  --btn-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.05), inset 0 -12px 18px -12px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 18px -8px rgba(21, 25, 30, 0.5), 0 14px 30px -12px rgba(21, 25, 30, 0.35), 0 0 0 0 rgba(21, 25, 30, 0);
  --btn-shadow-hover: inset 0 1px 0 rgba(255, 255, 255, 0.26), inset 0 0 0 1px rgba(255, 255, 255, 0.07), inset 0 -12px 18px -12px rgba(0, 0, 0, 0.45), 0 2px 4px rgba(0, 0, 0, 0.36), 0 14px 26px -10px rgba(21, 25, 30, 0.5), 0 20px 44px -12px rgba(21, 25, 30, 0.45), 0 0 0 5px rgba(21, 25, 30, 0.07);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}
/* the quiet second button: paper with an edge */
.btn-ghost {
  --btn-fg: var(--ink);
  --btn-sheen: linear-gradient(105deg, rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, 0.95) 50%, rgba(255, 255, 255, 0) 58%);
  --btn-bg: radial-gradient(120% 130% at 50% -45%, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 62%), linear-gradient(180deg, #FFFFFF 0%, #F8F4EC 60%, #F1ECE1 100%);
  --btn-shadow: inset 0 1px 0 rgba(255, 255, 255, 1), inset 0 0 0 1px rgba(21, 25, 30, 0.13), inset 0 -10px 16px -12px rgba(120, 100, 60, 0.18), 0 1px 2px rgba(21, 25, 30, 0.07), 0 8px 16px -10px rgba(21, 25, 30, 0.22), 0 0 0 0 rgba(21, 25, 30, 0), 0 0 0 0 rgba(21, 25, 30, 0);
  --btn-shadow-hover: inset 0 1px 0 rgba(255, 255, 255, 1), inset 0 0 0 1px rgba(21, 25, 30, 0.26), inset 0 -10px 16px -12px rgba(120, 100, 60, 0.16), 0 2px 3px rgba(21, 25, 30, 0.08), 0 14px 24px -12px rgba(21, 25, 30, 0.3), 0 0 0 0 rgba(21, 25, 30, 0), 0 0 0 4px rgba(21, 25, 30, 0.04);
  --btn-shadow-press: inset 0 2px 4px rgba(21, 25, 30, 0.14), inset 0 0 0 1px rgba(21, 25, 30, 0.22), inset 0 -8px 14px -12px rgba(120, 100, 60, 0.16), 0 1px 1px rgba(21, 25, 30, 0.06), 0 3px 8px -6px rgba(21, 25, 30, 0.2), 0 0 0 0 rgba(21, 25, 30, 0), 0 0 0 0 rgba(21, 25, 30, 0);
}
/* the glow breathes on the main buttons (never on the small ones, never while pressed or hovered) */
.btn-primary::before, .btn-white::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: var(--btn-glow); opacity: 0; animation: btn-breathe 3.8s ease-in-out infinite; }
.btn:hover::before, .btn:active::before, .btn-sm::before, .btn[disabled]::before { animation: none; }
@keyframes btn-breathe { 50% { opacity: 1; } }
/* the arrow on the main buttons: thin, and it leans in on hover */
.btn-primary::after, .btn-white::after {
  content: ''; flex: 0 0 auto; width: 18px; height: 12px; margin-right: -4px; background: currentColor;
  -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat;
  transition: transform 0.45s var(--ease);
}
.btn-primary:hover::after, .btn-white:hover::after { transform: translateX(4px); }
/* a small play mark for "watch" buttons */
.btn-play::before { content: ''; flex: 0 0 auto; width: 9px; height: 11px; margin-left: -2px; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
/* the small button (nav, sticky bar): the same finish, closer to the surface */
.btn-sm { --h: 42px; --px: 19px; font-size: 14.5px; }
.btn-sm::after { display: none; }
.btn-primary.btn-sm {
  --btn-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), inset 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 -9px 13px -10px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(6, 30, 22, 0.45), 0 5px 12px -6px rgba(9, 54, 38, 0.5), 0 8px 20px -8px rgba(13, 160, 87, 0.36), 0 0 0 0 rgba(13, 160, 87, 0);
  --btn-shadow-hover: inset 0 1px 0 rgba(255, 255, 255, 0.32), inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 -9px 13px -10px rgba(0, 0, 0, 0.34), 0 2px 3px rgba(6, 30, 22, 0.4), 0 9px 16px -8px rgba(9, 54, 38, 0.5), 0 12px 30px -8px rgba(13, 160, 87, 0.6), 0 0 0 4px rgba(13, 160, 87, 0.1);
}
.btn .arr { display: none; }
.textlink { font-weight: 550; color: var(--forest); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: rgba(14, 58, 43, 0.3); transition: text-decoration-color 0.3s ease; }
.textlink:hover { text-decoration-color: currentColor; }
.textlink.go::after { content: ''; display: inline-block; width: 15px; height: 10px; margin-left: 8px; background: currentColor; -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; transition: transform 0.45s var(--ease); }
.textlink.go:hover::after { transform: translateX(4px); }

/* ---------- nav: one floating glass bar ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; z-index: 60; width: min(calc(100% - 24px), 1180px); height: 60px; transform: translateX(-50%);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 9px 0 24px; border-radius: 999px;
  background: rgba(255, 253, 249, 0.74); backdrop-filter: saturate(180%) blur(22px); -webkit-backdrop-filter: saturate(180%) blur(22px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75), 0 0 0 1px rgba(21, 25, 30, 0.05), 0 16px 36px -20px rgba(21, 25, 30, 0.24);
  transition: transform 0.5s var(--ease);
}
.nav.hide { transform: translate(-50%, -160%); }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--serif); font-weight: 500; font-variation-settings: 'opsz' 72; font-size: 24px; letter-spacing: -0.01em; color: var(--ink); }
.brand img { width: 20px; height: 20px; }
.nav-links { display: none; gap: 36px; font-size: 15px; font-weight: 500; }
.nav-links a { text-decoration: none; color: var(--ink2); transition: color 0.25s ease; }
.nav-links a:hover { color: var(--ink); }
@media (min-width: 940px) { .nav-links { display: flex; } }

/* ---------- sections ---------- */
.section { position: relative; padding: 88px 0; }
@media (min-width: 940px) { .section { padding: 148px 0; } }
.section + .section { box-shadow: inset 0 1px 0 var(--line); }
.head-split { display: grid; gap: 20px; margin-bottom: 44px; }
.head-split .lede { max-width: 30em; }
.split { display: grid; gap: 26px; }
.prose p { font-size: clamp(17px, 1.4vw, 19.5px); line-height: 1.65; color: var(--ink2); max-width: 34em; }
.prose p + p { margin-top: 18px; }
.prose b { color: var(--ink); font-weight: 600; }
@media (min-width: 940px) {
  .head-split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 72px; align-items: end; margin-bottom: 64px; }
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; }
  .problem .prose { padding-top: 34px; }
}
.panel { position: relative; background: var(--card); border-radius: 24px; box-shadow: inset 0 0 0 1px var(--line), var(--sh-1); }

/* ---------- the app's screen (inside the solid phone, js/device.js) ---------- */
.screen { position: relative; overflow: hidden; width: 100%; aspect-ratio: 1320 / 2868; border-radius: calc(var(--pw) * 0.135); background: var(--app-bg); isolation: isolate; }
.screen > img.full { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.screen .glass { position: absolute; inset: 0; pointer-events: none; z-index: 5; background: linear-gradient(160deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0) 26%); }
/* exact result screen layers (js/phone.js) */
.xs-head, .xs-foot, .xs-part { background-repeat: no-repeat; background-size: 100% auto; }
.xs-head { position: absolute; left: 0; right: 0; top: 0; z-index: 2; }
.xs-foot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; }
.xs-view { position: absolute; left: 0; right: 0; overflow: hidden; z-index: 1; }
.xs-content { position: absolute; left: 0; right: 0; top: 0; will-change: transform; }
.xs-part { position: relative; }
.xs-part svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.xs-lower { position: absolute; left: 0; width: 100%; }
.xs-cover { position: absolute; background: #fff; opacity: 0; pointer-events: none; z-index: 1; }
.xs-scan { position: absolute; left: 4%; right: 4%; height: 18%; z-index: 3; pointer-events: none; opacity: 0; background: linear-gradient(180deg, rgba(13, 160, 87, 0) 0%, rgba(13, 160, 87, 0.16) 70%, rgba(13, 160, 87, 0.75) 98%, rgba(13, 160, 87, 0) 100%); border-radius: 6px; }
.xs-mark { position: absolute; left: 1.5%; right: 1.5%; border-radius: 12px; z-index: 2; pointer-events: none; box-shadow: 0 0 0 2px rgba(240, 83, 63, 0.9), 0 0 0 7px rgba(240, 83, 63, 0.16); opacity: 0; transition: opacity 0.4s ease, top 0.6s var(--ease), height 0.6s var(--ease); }
.xs-mark.good { box-shadow: 0 0 0 2px rgba(13, 160, 87, 0.9), 0 0 0 7px rgba(13, 160, 87, 0.16); }
.screen .fade-swap { position: absolute; inset: 0; background: var(--app-bg); z-index: 6; opacity: 0; transition: opacity 0.45s ease; pointer-events: none; }
.screen .fade-swap.on { opacity: 1; }

/* ==========================================================================
   THE OPENING (js/scan.js): a shelf you can scan. Real products stand on a
   shelf; the phone held up to them is a window that shows the same shelf a
   touch closer, with each product's score. Scrolling moves through five
   moments (data-s on .scan-pin): 0 the shelf, 1 the label read line by line,
   2 the score, 3 the why, 4 the close. Every move between moments is a
   transform or opacity transition on its own clock, never dragged by the
   scroll. The html class says how it runs (set before first paint):
     .scroll  the section pins and the scroll picks the moment;
     .play    a frame as tall as the page: the moments play by themselves;
     .still   reduced motion: the first moment, nothing moves.
   No viewport units: js/scan.js measures and sets --fh and every position.
   ========================================================================== */
.scan { --colx: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))); --colw: min(540px, 42%); position: relative; }
.scan-pin { position: relative; overflow: hidden; padding: 112px 0 56px; --px: 0px; --py: 0px; --ps: 1; --sx: 0px; --shy: 0px; --ledge: -24px; }
.scan.live .scan-pin { height: var(--fh, 780px); padding: 0; }
.scroll .scan.live .scan-pin { position: sticky; top: 0; }
.scan.live .scan-pin::before { content: ''; position: absolute; left: 50%; top: 62%; width: 760px; height: 620px; margin: -310px 0 0 -380px; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0)); }
.scan-pin.snap, .scan-pin.snap * { transition: none !important; }

/* the promise: live at first paint, whatever the script does */
.scan-open { position: relative; z-index: 4; padding: 0 var(--gutter); }
.scan-open h1 { max-width: 11.5em; }
.scan-open .lede { max-width: 31em; margin-top: 16px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.cta-note { margin: 12px 0 0; font-size: 13px; color: var(--ink3); }
.scan.live .scan-open { position: absolute; left: 0; right: 0; top: 96px; transition: opacity 0.45s ease 0.1s, transform 0.6s var(--ease) 0.1s, visibility 0s; }
.scroll .scan.live .scan-pin:not([data-s="0"]) .scan-open { opacity: 0; visibility: hidden; transform: translate3d(0, -34px, 0); transition: opacity 0.3s ease, transform 0.5s var(--ease), visibility 0s 0.5s; }
@media (max-width: 939px) {
  .scan.live .lede-more, .scan.live [data-scan-go] { display: none; }
  .scan.live .hero-ctas .btn { width: 100%; }
  .scan.live .cta-note { text-align: center; }
}
@media (min-width: 940px) {
  .scan.live .scan-pin::before { left: 72%; top: 54%; width: 980px; height: 820px; margin: -410px 0 0 -490px; }
  .scan.live .scan-open { left: var(--colx); right: auto; width: var(--colw); top: 86px; bottom: 24px; padding: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
  .scan-open .lede { margin-top: 22px; }
  .hero-ctas { margin-top: 30px; }
  .play .scan.live [data-scan-go] { display: none; }
}

/* the words for each moment (scroll mode), and the close */
.spanel, .scan-end { display: none; }
.scroll .scan.live .spanel, .scroll .scan.live .scan-end { display: block; position: absolute; z-index: 4; left: var(--gutter); right: var(--gutter); top: 50px; opacity: 0; visibility: hidden; transform: translate3d(0, 18px, 0); transition: opacity 0.3s ease, transform 0.5s var(--ease), visibility 0s 0.5s; }
.scroll .scan.live .spanel.past { transform: translate3d(0, -18px, 0); }
.scroll .scan.live .spanel.on, .scroll .scan.live .scan-end.on { opacity: 1; visibility: visible; transform: none; transition: opacity 0.45s ease 0.14s, transform 0.6s var(--ease) 0.14s, visibility 0s; }
.spanel .label, .scan-end .label { margin-bottom: 12px; }
.spanel h2, .scan-end h2 { font-size: 31px; line-height: 1.08; }
.spanel p { margin: 10px 0 0; color: var(--ink2); font-size: 15.5px; line-height: 1.5; max-width: 30em; }
.spanel p b { color: var(--ink); font-weight: 600; }
.scan-end .btn { margin-top: 16px; }
.scan-end .lede { display: none; }
.scan-hint { margin: 12px 0 0; font-size: 13px; font-weight: 500; color: var(--ink3); }
@media (max-width: 939px) { .scan-end .btn { width: 100%; } .scan-hint { text-align: center; } }
@media (min-width: 940px) {
  .scroll .scan.live .spanel, .scroll .scan.live .scan-end { left: var(--colx); right: auto; width: var(--colw); top: 96px; bottom: 96px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
  .scroll .scan.live .scan-end { bottom: 24px; }
  .spanel h2, .scan-end h2 { font-size: 50px; line-height: 1.04; }
  .spanel p { font-size: 18.5px; margin-top: 18px; }
  .scan-end .lede { display: block; margin-top: 18px; }
  .scan-end .btn { margin-top: 28px; }
}
@media (min-width: 940px) and (max-width: 1179px) { .spanel h2, .scan-end h2 { font-size: 42px; } }

/* a short phone screen (js/scan.js adds .tight): smaller words, so the scene keeps a good size */
@media (max-width: 939px) {
  .scan.tight .scan-open h1 { font-size: 36px; }
  .scan.tight .scan-open .lede { margin-top: 10px; font-size: 15.5px; line-height: 1.5; }
  .scan.tight .hero-ctas { margin-top: 16px; }
  .scan.tight .cta-note { margin-top: 8px; font-size: 12.5px; }
  .scan.tight .spanel .label, .scan.tight .scan-end .label { margin-bottom: 8px; }
  .scan.tight .spanel h2, .scan.tight .scan-end h2 { font-size: 27px; }
  .scan.tight .spanel p { margin-top: 8px; font-size: 14.5px; }
  .scan.tight .scan-end .btn { margin-top: 12px; }
  .scan.tight .scan-hint { margin-top: 8px; }
}

/* scroll mode: three bars of progress and a way out */
.scan-rail, .scan-skip { display: none; }
.scroll .scan.live .scan-rail { display: flex; position: absolute; z-index: 5; left: var(--gutter); right: calc(var(--gutter) + 58px); top: 22px; gap: 6px; opacity: 0; transition: opacity 0.3s ease; }
.scroll .scan.live .scan-rail.on { opacity: 1; }
.scan-rail i { flex: 1 1 0; height: 3px; border-radius: 3px; background: var(--line2); overflow: hidden; }
.scan-rail b { display: block; height: 100%; background: var(--forest); transform-origin: 0 50%; transform: scaleX(0); }
.scroll .scan.live .scan-skip { display: inline-block; position: absolute; z-index: 6; right: var(--gutter); top: 13px; font-size: 13.5px; font-weight: 600; color: var(--ink2); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line2); opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.scroll .scan.live .scan-skip.on { opacity: 1; pointer-events: auto; }
@media (min-width: 940px) {
  .scroll .scan.live .scan-rail { left: var(--colx); right: auto; width: min(300px, var(--colw)); top: auto; bottom: 52px; }
  .scroll .scan.live .scan-skip { top: auto; bottom: 44px; right: var(--colx); }
}

/* the scene */
.scan-stage { display: none; }
.scan.live .scan-stage { display: block; position: absolute; inset: 0; z-index: 2; }
/* the shelf: a box from 360px above the shelf line to 90px below it, so it can fade at the words' edge */
.scan .shelf { position: absolute; left: 0; width: 100%; top: -360px; height: 450px; transform: translate3d(0, var(--shy), 0); transition: opacity 0.4s ease, transform 0.8s var(--ease); }
@media (min-width: 940px) { .scan-stage > .shelf { -webkit-mask: linear-gradient(90deg, rgba(0, 0, 0, 0) var(--ledge), #000 calc(var(--ledge) + 90px)); mask: linear-gradient(90deg, rgba(0, 0, 0, 0) var(--ledge), #000 calc(var(--ledge) + 90px)); } }
.scan-pin[data-s="1"] .scan-stage > .shelf, .scan-pin[data-s="2"] .scan-stage > .shelf, .scan-pin[data-s="3"] .scan-stage > .shelf { opacity: 0; pointer-events: none; transform: translate3d(0, calc(var(--shy) + 28px), 0); }
.shelf-strip { position: absolute; left: 0; top: 360px; transform: translate3d(var(--sx), 0, 0); transition: transform 0.95s cubic-bezier(0.3, 0.08, 0.15, 1); will-change: transform; }
.shelf-item { position: absolute; display: block; margin: 0; padding: 0; border: 0; background: none; -webkit-tap-highlight-color: transparent; }
.shelf-item img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; }
.shelf-item::before { content: ''; position: absolute; left: 3%; right: 3%; bottom: -7px; height: 16px; border-radius: 50%; background: radial-gradient(closest-side, rgba(40, 28, 10, 0.5), rgba(40, 28, 10, 0)); }
.shelf-item::after { content: ''; position: absolute; left: -8%; right: -8%; bottom: -13px; height: 28px; border-radius: 50%; background: radial-gradient(closest-side, rgba(40, 28, 10, 0.16), rgba(40, 28, 10, 0)); }
button.shelf-item { cursor: pointer; transform-origin: 50% 100%; transition: transform 0.4s var(--ease); }
@media (hover: hover) { button.shelf-item:hover { transform: translate3d(0, -4px, 0) scale(1.03); } }
button.shelf-item:focus-visible { outline: 2px solid var(--forest); outline-offset: 5px; border-radius: 8px; }
.shelf-ledge { position: absolute; left: -24px; right: -24px; top: 360px; height: 18px; background: linear-gradient(180deg, #FDFBF5 0px, #F1EADC 3px, #E3DAC8 100%); box-shadow: inset 0 1px 0 #fff, 0 22px 30px -16px rgba(60, 45, 20, 0.34), 0 2px 3px rgba(60, 45, 20, 0.12); }

/* the phone: js sets --px --py --ps for each moment; it glides there */
.scan-phone { position: absolute; left: 0; top: 0; z-index: 3; width: var(--pw); height: calc(var(--pw) * 2.093); perspective: 1500px; transform-origin: 0 0; transform: translate3d(var(--px), var(--py), 0) scale(var(--ps)); transition: transform 0.85s var(--ease); will-change: transform; }
.scan-phone::before { content: ''; position: absolute; left: 7%; right: 7%; top: 10%; bottom: -2%; border-radius: 16%; background: rgba(21, 25, 30, 0.36); filter: blur(26px); transform: translate3d(0, 30px, 0); }
.scan .d3-body { transition: transform 0.85s var(--ease); }
.scan .screen { background: #E9E3D6; isolation: isolate; }
.scan .screen > .cam, .scan .screen > .read, .scan .screen > .res { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0s 0.4s; }
.scan-pin[data-s="0"] .cam, .scan-pin[data-s="4"] .cam, .scan-pin[data-s="1"] .read, .scan-pin[data-s="2"] .res, .scan-pin[data-s="3"] .res { opacity: 1; visibility: visible; transition: opacity 0.45s ease 0.1s, visibility 0s; }
.scan .res { background: var(--app-bg); }

/* the camera: the same shelf, closer, with the score */
.cam { overflow: hidden; background: radial-gradient(100% 70% at 50% 45%, #FBF7EE 0%, #EFE8DA 60%, #DDD4C1 100%); }
.cam::after { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; box-shadow: inset 0 0 60px rgba(40, 28, 10, 0.2); }
.cam-view { position: absolute; left: 0; top: 0; width: 100%; height: 0; transform-origin: 0 0; }
.cam-brk { position: absolute; z-index: 4; opacity: 0; transform: scale(1.12); transition: opacity 0.2s ease, transform 0.2s ease; }
.cam.locked .cam-brk { opacity: 1; transform: none; transition: opacity 0.3s ease, transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1); }
.cam-brk i { position: absolute; width: 22px; height: 22px; border: 3px solid #fff; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35)); }
.cam-brk i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; }
.cam-brk i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-radius: 0 10px 0 0; }
.cam-brk i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 10px; }
.cam-brk i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-radius: 0 0 10px 0; }
.cam-beam { position: absolute; left: 5%; right: 5%; top: 0; height: 100%; opacity: 0; background: linear-gradient(180deg, rgba(13, 160, 87, 0) 0%, rgba(124, 240, 180, 0.34) 46%, rgba(124, 240, 180, 0.9) 50%, rgba(124, 240, 180, 0.34) 54%, rgba(13, 160, 87, 0) 100%) 0 0 / 100% 26px no-repeat; }
.cam.locked .cam-beam { animation: camBeam 0.9s ease-in-out; }
@keyframes camBeam { 0% { opacity: 0; background-position: 0 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; background-position: 0 100%; } }
.cam-name { position: absolute; z-index: 5; left: 50%; top: calc(var(--pw) * 0.182); max-width: 84%; padding: 6px 12px; border-radius: 999px; transform: translateX(-50%); background: rgba(21, 25, 30, 0.62); color: #fff; font: 600 11px/1.15 var(--sans); letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cam-dial { position: absolute; z-index: 5; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: 0 1px 2px rgba(21, 25, 30, 0.1), 0 14px 24px -10px rgba(21, 25, 30, 0.5); opacity: 0; transform: scale(0.6); transition: opacity 0.15s ease, transform 0.15s ease; }
.cam.locked .cam-dial { opacity: 1; transform: none; transition: opacity 0.25s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
.cam-dial svg { grid-area: 1 / 1; width: 54px; height: 54px; }
.cam-dial .arc { stroke-dasharray: 0.001 100; }
.cam.locked .cam-dial .arc { transition: stroke-dasharray 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); }
.cam-dial b { grid-area: 1 / 1; font-family: var(--serif); font-weight: 500; font-variation-settings: 'opsz' 60; font-size: 23px; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: lining-nums tabular-nums; color: var(--ink); }
.cam-tier { position: absolute; z-index: 5; left: 50%; padding: 7px 13px; border-radius: 999px; transform: translateX(-50%); background: rgba(255, 255, 255, 0.96); font: 600 12.5px/1 var(--sans); white-space: nowrap; box-shadow: 0 10px 18px -10px rgba(21, 25, 30, 0.4); opacity: 0; transition: opacity 0.15s ease; }
.cam.locked .cam-tier { opacity: 1; transition: opacity 0.35s ease 0.25s; }

/* reading: the pack, and the ring filling as the lines are read */
.read { background: #F2F4F7; }
.read-pack { position: absolute; left: 7%; right: 7%; top: 13%; height: 25%; border-radius: calc(var(--pw) * 0.06); display: grid; place-items: center; background: #fff; box-shadow: 0 1px 2px rgba(21, 25, 30, 0.06); }
.read-pack img { display: block; width: auto; height: auto; max-width: 76%; max-height: 76%; }
.read-ring { position: absolute; left: 24%; top: 43%; width: 52%; aspect-ratio: 1; display: grid; place-items: center; }
.read-ring svg { grid-area: 1 / 1; width: 100%; height: 100%; }
.read-ring b { grid-area: 1 / 1; font-family: var(--serif); font-weight: 400; font-variation-settings: 'opsz' 144; font-size: calc(var(--pw) * 0.17); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: lining-nums tabular-nums; }
.read-cap, .read-count { position: absolute; left: 0; right: 0; text-align: center; }
.read-cap { top: 71%; font: 600 calc(var(--pw) * 0.05) / 1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink3); }
.read-count { top: 76.5%; font: 500 calc(var(--pw) * 0.055) / 1 var(--sans); color: var(--ink2); font-variant-numeric: tabular-nums; }

/* the label, read line by line: every ingredient gets its own score */
.scan-list { position: absolute; z-index: 2; left: 0; top: 0; display: flex; flex-direction: column; max-height: var(--lh, 420px); padding: 13px 13px 8px; border-radius: 4px 4px 16px 16px; background: #FFFEFB; box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(21, 25, 30, 0.06), 0 30px 44px -24px rgba(21, 25, 30, 0.45); opacity: 0; visibility: hidden; transform: translate3d(-14px, 12px, 0); transition: opacity 0.3s ease, transform 0.5s var(--ease), visibility 0s 0.5s; }
.scan-list::before { content: ''; position: absolute; left: 0; right: 0; top: -6px; height: 7px; background: radial-gradient(circle at 5px 7px, #FFFEFB 4.6px, rgba(255, 254, 251, 0) 5px) 0 0 / 10px 7px repeat-x; }
.scan-pin[data-s="1"] .scan-list { opacity: 1; visibility: visible; transform: none; transition: opacity 0.4s ease 0.16s, transform 0.6s var(--ease) 0.16s, visibility 0s; }
.scan-pin[data-s="2"] .scan-list, .scan-pin[data-s="3"] .scan-list, .scan-pin[data-s="4"] .scan-list { transform: translate3d(var(--fx, 0px), var(--fy, 0px), 0) scale(0.4); transition: opacity 0.3s ease 0.14s, transform 0.55s cubic-bezier(0.5, 0, 0.75, 0.4), visibility 0s 0.55s; }
.shead { flex: 0 0 auto; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 7px; font: 700 10px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; }
.shead em { font-style: normal; font-weight: 600; letter-spacing: 0.08em; color: var(--ink3); }
.sview { flex: 1 1 auto; min-height: 0; overflow: hidden; margin: 0 -8px; padding: 0 8px; }
.srows { position: relative; }
.srow { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; height: var(--rh, 27px); border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.2; }
.srow b { font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srow i { font-style: normal; min-width: 30px; height: 19px; border-radius: 6px; display: grid; place-items: center; font: 650 11.5px/1 var(--sans); font-variant-numeric: tabular-nums; }
.srow.bad i { background: var(--coralBg); color: var(--coralDeep); }
.srow.mid i { background: var(--amberBg); color: var(--goldDeep); }
.srow.good i { background: var(--mint); color: var(--greenDeep); }
.srow.bad b { color: var(--coralDeep); }
.scan-list.reading .srow b { animation: rowName 0.3s ease backwards; animation-delay: calc(var(--i) * 130ms + 300ms); }
.scan-list.reading .srow i { animation: rowChip 0.38s cubic-bezier(0.34, 1.56, 0.64, 1) backwards; animation-delay: calc(var(--i) * 130ms + 300ms); }
@keyframes rowName { from { color: #A9AEB4; } }
@keyframes rowChip { from { background: #F1EEE7; color: rgba(0, 0, 0, 0); transform: scale(0.7); } }
.sline { position: absolute; left: -8px; right: -8px; top: 0; height: var(--rh, 27px); border-radius: 8px; opacity: 0; pointer-events: none; background: linear-gradient(180deg, rgba(13, 160, 87, 0), rgba(13, 160, 87, 0.17) 45%, rgba(13, 160, 87, 0.17) 55%, rgba(13, 160, 87, 0)); box-shadow: inset 0 0 0 1px rgba(13, 160, 87, 0.28), 0 0 18px rgba(13, 160, 87, 0.25); }
.scan-list.reading .sline { animation: lineDown var(--dur, 2400ms) linear 0.26s both; }
@keyframes lineDown { 0% { opacity: 0; transform: translate3d(0, 0, 0); } 6% { opacity: 1; } 92% { opacity: 1; } 100% { opacity: 0; transform: translate3d(0, var(--trav, 300px), 0); } }
.scan-list.reading .srows { animation: listRoll var(--dur, 2400ms) linear 0.26s both; }
@keyframes listRoll { 0%, 28% { transform: translate3d(0, 0, 0); } 100% { transform: translate3d(0, calc(var(--ov, 0px) * -1), 0); } }
@media (min-width: 940px) {
  .scan-list { padding: 16px 16px 10px; }
  .srow { font-size: 15px; }
  .srow i { min-width: 36px; height: 22px; font-size: 13px; }
  .shead { font-size: 11px; margin-bottom: 9px; }
}

/* the why: the worst ingredient, pulled out and said plainly */
.scan-call { position: absolute; z-index: 5; left: 0; top: 0; padding: 14px 16px 15px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 26px 44px -22px rgba(21, 25, 30, 0.5); opacity: 0; visibility: hidden; transform: translate3d(-18px, 10px, 0) scale(0.96); transition: opacity 0.25s ease, transform 0.45s var(--ease), visibility 0s 0.45s; }
.scan-pin[data-s="3"] .scan-call { opacity: 1; visibility: visible; transform: none; transition: opacity 0.4s ease 0.55s, transform 0.6s var(--ease) 0.55s, visibility 0s; }
.scan-call .cap { display: block; font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.2; }
.scan-call .cap.bad { color: var(--coralDeep); }
.scan-call .cap.good { color: var(--greenDeep); }
.scan-call b { display: flex; align-items: center; gap: 8px; margin-top: 7px; font: 600 16px/1.25 var(--sans); }
.scan-call .chip { flex: 0 0 auto; font-style: normal; min-width: 30px; height: 20px; padding: 0 6px; border-radius: 6px; display: inline-grid; place-items: center; font: 650 12px/1 var(--sans); }
.scan-call .chip.bad { background: var(--coralBg); color: var(--coralDeep); }
.scan-call p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--ink2); }
.still .scan *, .still .scan *::before, .still .scan *::after { transition: none !important; animation: none !important; }
.scan.off .scan-stage, .scan.off .scan-rail, .scan.off .scan-skip { display: none; }

/* ---------- the problem ---------- */
.problem h2 { max-width: 12em; }

/* ==========================================================================
   THE SPINNING PHONE (js/spin.js): Chris's idea. The page's cream with green
   words; the phone turns a full 360, the words blow away as leaves, the green
   blooms out from behind the phone, and the next feature comes back in white.
   .scroll pins it and the scroll steps through the features; .play turns it on
   its own while on screen; .still lists the five features. The turn plays on a
   spring (js/spin.js), the leaves are drawn on one canvas, the bloom is one
   small circle scaled up. No viewport units (js/spin.js sets --fh).
   ========================================================================== */
.spin {
  --sg: #0A7A46;
  --colx: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
  position: relative; color: var(--sg); box-shadow: inset 0 1px 0 var(--line);
}
/* the markers js/spin.js reads the scroll from (no size on screen, nothing drawn) */
.spin-mark { display: none; }
.scroll .spin.live .spin-mark { display: block; position: absolute; left: 0; width: 1px; bottom: 0; visibility: hidden; pointer-events: none; }
.scroll .spin.live .spin-mark.range { top: 0; bottom: auto; }
.spin-pin { position: relative; overflow: hidden; padding: 88px 0; --pw: 250px; --gx: 50%; --gy: 60%; --gr: 900px; --rail: #0A7A46; --rail-line: rgba(10, 122, 70, 0.25); --rail-on: #fff; }
.spin-pin.is-green { --rail: #fff; --rail-line: rgba(255, 255, 255, 0.45); --rail-on: #0A7A46; }
.spin.live .spin-pin { height: var(--fh, 760px); padding: 0; }
.scroll .spin.live .spin-pin { position: sticky; top: 0; }
/* the ground and the bloom carry the same light, so the hand-off cannot be seen */
.spin-bg { position: absolute; inset: 0; background: var(--page); }
.spin.live .spin-bg[data-scheme="light"] { background: radial-gradient(circle var(--gr) at var(--gx) var(--gy), #FFFDF6 0%, #F0F2E7 26%, #F7F3EB 55%); }
.spin.live .spin-bg[data-scheme="green"] { background: radial-gradient(circle var(--gr) at var(--gx) var(--gy), #14B266 0%, #0DA057 30%, #0A7A46 100%); }
.spin-bloom { position: absolute; left: 0; top: 0; width: 240px; height: 240px; border-radius: 50%; transform: scale(0); will-change: transform; }
.spin-bloom[data-scheme="light"] { background: radial-gradient(closest-side, #FFFDF6 0%, #F0F2E7 26%, #F7F3EB 55%, #F7F3EB 100%); }
.spin-bloom[data-scheme="green"] { background: radial-gradient(closest-side, #14B266 0%, #0DA057 30%, #0A7A46 100%); }
.spin-leaves { display: none; }
.spin.live .spin-leaves { display: block; position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; }

.spin-copy { position: relative; z-index: 3; padding: 0 var(--gutter); }
.spin-texts { display: grid; gap: 56px; }
.spin.live .spin-texts { gap: 0; }
.spin.live .spin-texts > .stext { grid-area: 1 / 1; }
.spin.live .spin-copy { position: absolute; left: 0; right: 0; top: 22px; }
.play .spin.live .spin-copy { top: 56px; }
.stext { color: var(--sg); }
.stext .eb { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.8; }
.stext h2 { margin: 12px 0 12px; font-size: clamp(31px, 8.4vw, 40px); color: inherit; max-width: 12em; }
.stext p { font-size: 16px; line-height: 1.55; font-weight: 500; max-width: 27em; }
.spin.live .stext[data-scheme='green'] { color: #fff; }
.stext .w { white-space: nowrap; transition: color 0.18s ease; }
.stext .w.gone { color: transparent; }
@media (min-width: 940px) {
  .spin.live .spin-copy { left: var(--colx); right: auto; width: min(540px, 42%); top: 86px; bottom: 24px; padding: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
  .play .spin.live .spin-copy { top: 40px; }
  .stext h2 { margin: 18px 0 18px; font-size: clamp(40px, 3.9vw, 56px); }
  .stext p { font-size: clamp(17px, 1.4vw, 19px); }
}
@media (min-width: 940px) and (max-height: 780px) { .stext h2 { font-size: clamp(34px, 6.6vh, 50px); margin: 12px 0 12px; } }

.spin-rail { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 26px; }
.spin-rail button { border: 0; cursor: pointer; padding: 8px 14px; border-radius: 999px; background: transparent; font-weight: 600; font-size: 12.5px; color: var(--rail); box-shadow: inset 0 0 0 1px var(--rail-line); transition: background 0.35s var(--ease), color 0.35s ease, box-shadow 0.35s ease, width 0.35s var(--ease); }
.spin-rail button.on { background: var(--rail); color: var(--rail-on); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 6px 14px -8px rgba(9, 54, 38, 0.45); }
.spin-cta { margin-top: 30px; transition: transform 0.35s var(--ease), filter 0.35s var(--ease); }
.spin-cta:hover { transition: transform 0.35s var(--ease), filter 0.35s var(--ease), background-position 0.95s var(--ease); }
.spin-skip { display: none; }
.scroll .spin.live .spin-skip { display: inline-block; position: absolute; z-index: 5; right: var(--gutter); top: 14px; font-size: 13.5px; font-weight: 600; color: var(--rail); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--rail-line); }
@media (max-width: 939px) {
  .spin-rail { justify-content: flex-start; gap: 6px; margin-bottom: 14px; }
  .spin-rail button { width: 8px; height: 8px; padding: 0; font-size: 0; border-radius: 4px; background: var(--rail-line); box-shadow: none; }
  .spin-rail button.on { width: 24px; background: var(--rail); box-shadow: none; }
  .scroll .spin.live .spin-cta { display: none; }
  .play .spin.live .spin-cta { margin-top: 16px; --h: 48px; }
}
@media (min-width: 940px) { .scroll .spin.live .spin-skip { top: auto; bottom: 44px; right: var(--colx); } }
/* a short phone screen (js/spin.js adds .tight): smaller words, so the phone keeps a good size */
@media (max-width: 939px) {
  .spin.tight .stext h2 { margin: 8px 0 8px; font-size: 27px; }
  .spin.tight .stext p { font-size: 14.5px; line-height: 1.5; }
  .spin.tight .spin-rail { margin-bottom: 10px; }
  .play .spin.tight .spin-cta { margin-top: 12px; }
}

/* the phone: the solid model (js/device.js), turned by js/spin.js */
.spin-stage { position: relative; z-index: 2; width: var(--pw); height: calc(var(--pw) * 2.093); margin: 48px auto 0; perspective: 1800px; }
.spin.live .spin-stage { position: absolute; margin: 0; }
.spin-float { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.spin .screen { background: var(--app-bg); }
.spin .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; }
.spin .screen img.on { opacity: 1; }
.spin-shadow { position: absolute; left: 12%; right: 12%; bottom: -36px; height: 30px; border-radius: 50%; background: radial-gradient(closest-side, rgba(21, 25, 30, 0.2), rgba(21, 25, 30, 0)); will-change: transform, opacity; }

/* ---------- the small icon tile (js/icons.js), the quiz's own finish ---------- */
.ichip { flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; font-style: normal; color: var(--forest); background: linear-gradient(160deg, #F9F5EC, #EEE7D8); box-shadow: inset 0 0 0 1px rgba(14, 17, 22, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.85); }
.ichip .ic { display: block; width: 24px; height: 24px; }
.ichip.num { font-family: var(--serif); font-weight: 500; font-variation-settings: 'opsz' 60; font-size: 19px; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: lining-nums; }

/* ---------- also in the app ---------- */
.more-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 14px; }
.more-grid li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; align-items: start; padding: 20px 22px 21px 18px; border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line), var(--sh-1); }
.more-grid b { display: block; font-weight: 600; font-size: 17.5px; line-height: 1.3; letter-spacing: -0.005em; }
.more-grid p { margin-top: 5px; color: var(--ink2); font-size: 15.5px; line-height: 1.5; }
.more-grid p strong { color: var(--ink); font-weight: 600; }
@media (min-width: 700px) { .more-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (min-width: 1100px) {
  .more-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .more-grid li { grid-template-columns: 1fr; row-gap: 26px; padding: 26px 24px 30px; }
}

/* ---------- same shelf: two real products on one shelf; tap the one you think scores higher ----------
   The products are lifted off their white backgrounds (img/cut), stand on the
   shelf's top surface and throw a shadow on it; a soft shade drawn inside each
   product's own outline darkens it toward the shelf, so it sits in the light of
   the scene. The scores hang on the shelf's edge and stay hidden until a tap. */
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(21, 25, 30, 0.055); margin: 0 0 24px; }
.seg button { border: 0; cursor: pointer; padding: 10px 20px; border-radius: 999px; background: transparent; font-weight: 600; font-size: 14.5px; color: var(--ink3); transition: background 0.3s var(--ease), color 0.3s ease, box-shadow 0.3s ease; }
.seg button.on { background: linear-gradient(180deg, #FFFFFF 0%, #F8F5EE 100%); color: var(--ink); box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(21, 25, 30, 0.1), 0 6px 14px -8px rgba(21, 25, 30, 0.24); }
.vs-grid { display: grid; gap: 40px; }
.vs-main { min-width: 0; }
.duel { --hb: 164px; position: relative; overflow: hidden; padding: 30px 0 18px; border-radius: 28px; background: radial-gradient(120% 78% at 50% 0%, #FFFFFF 0%, #FCF9F2 48%, #F5EFE3 100%); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 #fff, var(--sh-2); }
/* the shelf: its top surface is the last 28px of this box, and the products stand 11px in from its front edge */
.duel-shelf { display: grid; grid-template-columns: 1fr 1fr; align-items: end; justify-items: center; height: calc(var(--hb) + 54px); padding: 0 6px 11px; background: linear-gradient(180deg, rgba(232, 223, 205, 0) 0, rgba(232, 223, 205, 0) calc(100% - 29px), rgba(206, 195, 174, 0.55) calc(100% - 29px), #EAE2D1 calc(100% - 27px), #F4EEE1 100%); }
.duel-ask { position: absolute; z-index: 2; left: 0; right: 0; top: 15px; text-align: center; font-size: 12.5px; font-weight: 600; line-height: 1.2; letter-spacing: 0.02em; color: var(--ink3); transition: opacity 0.3s ease; }
.duel.revealed .duel-ask { opacity: 0; }
.duel-item { position: relative; display: block; margin: 0; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; border-radius: 12px; }
.duel-item::before, .duel-item::after { content: ''; position: absolute; z-index: 0; border-radius: 50%; pointer-events: none; transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
.duel-item::before { left: 1%; right: 1%; bottom: -5px; height: 11px; background: radial-gradient(closest-side, rgba(40, 28, 10, 0.62), rgba(40, 28, 10, 0)); }
.duel-item::after { left: -11%; right: -11%; bottom: -11px; height: 24px; background: radial-gradient(closest-side, rgba(40, 28, 10, 0.26), rgba(40, 28, 10, 0)); }
.duel .pack { position: relative; z-index: 1; display: block; height: calc(var(--hb) * var(--tall, 1)); transform-origin: 50% 100%; transition: transform 0.55s var(--ease); }
.duel .pack img { display: block; width: auto; height: 100%; max-width: none; }
.duel .pack .shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 22%, rgba(28, 18, 4, 0) 58%, rgba(28, 18, 4, 0.3) 100%); -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
/* lifting one off the shelf: it rises, and its shadow lets go of it */
@media (hover: hover) {
  .duel:not(.revealed) .duel-item:hover .pack { transform: translate3d(0, -8px, 0) scale(1.03); }
  .duel:not(.revealed) .duel-item:hover::before { opacity: 0.4; transform: scale(0.84, 0.8); }
  .duel:not(.revealed) .duel-item:hover::after { opacity: 0.7; transform: scale(0.94, 0.9); }
}
.duel:not(.revealed) .duel-item:active .pack { transform: translate3d(0, -3px, 0) scale(0.985); }
.duel.revealed .duel-item, .duel.revealed .duel-col { cursor: default; }
.duel-tag { position: absolute; z-index: 2; left: 50%; bottom: 100%; margin-bottom: 11px; padding: 6px 11px 7px; border-radius: 999px; background: linear-gradient(180deg, #1B5A45, #0E3A2B); color: var(--cream); font: 600 11.5px/1 var(--sans); letter-spacing: 0.02em; white-space: nowrap; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 8px 14px -8px rgba(9, 54, 38, 0.7); opacity: 0; transform: translate3d(-50%, 8px, 0); transition: opacity 0.3s ease, transform 0.5s var(--ease); }
.duel-tag::after { content: ''; position: absolute; left: 50%; top: 100%; width: 8px; height: 8px; margin: -4.5px 0 0 -4px; border-radius: 1.5px; background: #0E3A2B; transform: rotate(45deg); }
.duel-item.pick .duel-tag { opacity: 1; transform: translate3d(-50%, 0, 0); }
.duel-ledge { position: relative; z-index: 1; display: block; height: 15px; background: linear-gradient(180deg, #FDFBF5 0px, #EFE8DA 3px, #DFD5C2 100%); box-shadow: inset 0 1px 0 #fff, 0 20px 28px -16px rgba(60, 45, 20, 0.36), 0 2px 3px rgba(60, 45, 20, 0.12); }
.duel-info { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; padding: 0 14px; }
.duel-col { min-width: 0; text-align: center; cursor: pointer; }
/* the score, hanging on the shelf's edge like a price tag */
.duel-dial { position: relative; display: grid; place-items: center; width: 60px; height: 60px; margin: -10px auto 0; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px rgba(21, 25, 30, 0.04), 0 1px 2px rgba(21, 25, 30, 0.1), 0 12px 20px -10px rgba(21, 25, 30, 0.45); }
.duel-dial svg { grid-area: 1 / 1; width: 52px; height: 52px; }
.duel-dial .arc { stroke: #C9CED6; stroke-dasharray: 0.001 100; transition: stroke-dasharray 0.95s var(--ease); }
.duel-dial b { grid-area: 1 / 1; font-family: var(--serif); font-weight: 500; font-variation-settings: 'opsz' 60; font-size: 22px; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: lining-nums tabular-nums; color: var(--ink); }
.duel:not(.revealed) .duel-dial { animation: dialAsk 2.6s ease-in-out infinite; }
.duel:not(.revealed) .duel-dial b { color: var(--ink3); }
.duel.revealed .duel-dial { animation: dialLand 0.7s var(--ease); }
@keyframes dialAsk { 0%, 100% { transform: none; } 50% { transform: scale(1.06); } }
@keyframes dialLand { 0% { transform: scale(0.86); } 55% { transform: scale(1.08); } 100% { transform: none; } }
.duel-col .nm { display: block; margin-top: 12px; font-weight: 600; font-size: 16px; line-height: 1.25; }
.duel-col .kind { display: block; margin-top: 2px; min-height: 2.7em; font-size: 13px; line-height: 1.35; color: var(--ink3); }
.duel-col .tier { position: relative; display: block; margin-top: 6px; font-weight: 600; font-size: 13.5px; line-height: 1.3; }
.duel-col .tier em { display: block; font-style: normal; }
.duel-col ul { list-style: none; margin: 10px 0 0; padding: 0; text-align: left; }
.duel-col li { position: relative; display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; column-gap: 8px; align-items: start; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; font-weight: 550; line-height: 1.3; }
.duel-col li > i { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-style: normal; }
.duel-col li > i .ic { width: 11px; height: 11px; stroke-width: 3; }
.duel-col li small { display: block; margin-top: 1px; font-weight: 400; font-size: 12px; color: var(--ink3); }
.duel-col li em { display: grid; place-items: center; min-width: 28px; height: 20px; padding: 0 5px; border-radius: 6px; font: 650 12px/1 var(--sans); font-style: normal; font-variant-numeric: tabular-nums; }
.duel-col .t-bad > i, .duel-col .t-bad > em { background: var(--coralBg); color: var(--coralDeep); }
.duel-col .t-mid > i, .duel-col .t-mid > em { background: var(--amberBg); color: var(--goldDeep); }
.duel-col .t-good > i { background: var(--mint); color: var(--greenDeep); }
/* until the tap, the answers are there but covered: soft bars where the words will be */
.duel-col .tier em, .duel-col li > * { transition: opacity 0.45s ease, transform 0.55s var(--ease); }
.duel:not(.revealed) .duel-col .tier em, .duel:not(.revealed) .duel-col li > * { opacity: 0; transform: translate3d(0, 5px, 0); transition: none; }
.duel-col .tier::before, .duel-col li::before { content: ''; position: absolute; left: 50%; top: 50%; width: 62%; height: 9px; margin: -4.5px 0 0 -31%; border-radius: 999px; background: rgba(21, 25, 30, 0.07); transition: opacity 0.3s ease; }
.duel-col li::before { left: 0; margin-left: 0; width: 78%; }
.duel-col li:nth-child(2)::before { width: 60%; }
.duel-col li:nth-child(3)::before { width: 70%; }
.duel.revealed .duel-col .tier::before, .duel.revealed .duel-col li::before { opacity: 0; }
.duel.revealed .duel-col .tier em { transition-delay: 0.3s; }
.duel.revealed .duel-col li:nth-child(1) > * { transition-delay: 0.45s; }
.duel.revealed .duel-col li:nth-child(2) > * { transition-delay: 0.56s; }
.duel.revealed .duel-col li:nth-child(3) > * { transition-delay: 0.67s; }
.duel-foot { display: flex; flex-wrap: wrap; align-items: center; align-content: center; justify-content: space-between; gap: 6px 20px; min-height: 70px; margin: 14px 16px 0; padding-top: 14px; border-top: 1px solid var(--line); }
.duel-note { font-size: 14.5px; line-height: 1.4; color: var(--ink2); }
.duel-note b { color: var(--ink); font-weight: 600; }
.duel-next { padding: 0; border: 0; background: none; cursor: pointer; font-size: 14.5px; }
.still .duel *, .still .duel *::before, .still .duel *::after { transition: none !important; animation: none !important; }
@media (min-width: 640px) {
  .duel { --hb: 216px; padding-top: 38px; }
  .duel-info { gap: 0 32px; padding: 0 32px; }
  .duel-col ul { max-width: 300px; margin-left: auto; margin-right: auto; }
  .duel-col li { font-size: 14.5px; }
  .duel-foot { min-height: 52px; margin: 18px 32px 0; }
  .duel-dial { width: 70px; height: 70px; margin-top: -14px; }
  .duel-dial svg { width: 61px; height: 61px; }
  .duel-dial b { font-size: 26px; }
  .duel-col .nm { font-size: 17px; }
}
@media (min-width: 940px) {
  .vs-grid { grid-template-columns: minmax(0, 1.34fr) minmax(0, 0.66fr); gap: 72px; align-items: center; }
  .duel { --hb: 250px; padding-top: 44px; }
}
/* every score shows its work: the note beside the shelf */
.vs-note h3 { font-size: 19px; }
.vs-note p { margin-top: 12px; max-width: 34em; font-size: 16px; line-height: 1.6; color: var(--ink2); }
.vs-note .textlink { display: inline-block; margin-top: 20px; font-size: 15px; }

/* ---------- reviews ---------- */
.sample-line { font-size: 14px; color: var(--ink3); max-width: 26em; }
.wall { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 700px) { .wall { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1040px) { .wall { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.review { margin: 0; padding: 28px 26px 24px; border-radius: 24px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line), var(--sh-1); }
.review .stars { display: inline-flex; gap: 3px; color: var(--gold); }
.review .stars svg { width: 15px; height: 15px; }
.review blockquote { margin: 14px 0 0; font-family: var(--serif); font-weight: 400; font-variation-settings: 'opsz' 36; font-size: 19px; line-height: 1.5; letter-spacing: -0.003em; color: var(--ink); }
.review .who { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.review .who .av { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-family: var(--sans); font-style: normal; font-weight: 600; font-size: 14px; color: var(--forest); background: var(--mint); }
.review .who .nm { display: block; font-weight: 600; font-size: 15px; line-height: 1.3; }
.review .who .dt { display: block; font-size: 13.5px; color: var(--ink3); line-height: 1.3; }
.reviews-hidden { display: none !important; }
/* on a phone the reviews are one row you swipe, so six of them are one screen tall, not six */
@media (max-width: 699px) {
  .wall { display: flex; gap: 14px; align-items: stretch; margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 28px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .wall::-webkit-scrollbar { display: none; }
  .wall .review { flex: 0 0 86%; scroll-snap-align: start; }
}

/* ---------- founder ---------- */
.founder { position: relative; display: grid; gap: 34px; align-items: center; }
.founder .photo { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 360px; border-radius: 28px; overflow: hidden; background: radial-gradient(120% 90% at 50% 100%, #DCEFE3 0%, #EAF3EC 45%, var(--page2) 100%); }
.founder .photo img { position: relative; width: min(300px, 78%); height: auto; }
.founder .txt { max-width: 36em; }
.founder blockquote { margin: 0; font-family: var(--serif); font-weight: 400; font-variation-settings: 'opsz' 72; font-size: clamp(22px, 2.3vw, 30px); line-height: 1.4; letter-spacing: -0.01em; color: var(--ink); }
.founder .sig { margin-top: 24px; }
.founder .sig b { display: block; font-size: 16px; font-weight: 600; }
.founder .sig span { display: block; font-size: 14.5px; color: var(--ink3); }
.founder .textlink { display: inline-block; margin-top: 18px; font-size: 15px; }
@media (min-width: 940px) { .founder { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 80px; } .founder .photo { min-height: 540px; } .founder .photo img { width: 340px; } }

/* ---------- peace of mind ---------- */
.assure { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; }
.assure li { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; row-gap: 4px; padding: 22px 0; box-shadow: inset 0 -1px 0 var(--line); }
.assure .ichip { grid-row: span 2; background: linear-gradient(160deg, #FFFFFF, #F1ECE1); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 #fff, 0 8px 16px -12px rgba(21, 25, 30, 0.4); }
.assure b { font-weight: 600; font-size: 17px; }
.assure li > span { color: var(--ink2); font-size: 15.5px; line-height: 1.5; }
@media (min-width: 760px) { .assure { grid-template-columns: repeat(2, 1fr); column-gap: 48px; } }
@media (min-width: 1100px) {
  .assure { grid-template-columns: repeat(4, 1fr); column-gap: 40px; }
  .assure li { grid-template-columns: 1fr; padding: 0 0 0 22px; box-shadow: inset 1px 0 0 var(--line); }
  .assure .ichip { grid-row: auto; margin: 0 0 16px; }
}

/* ---------- questions ---------- */
.faq-wrap { display: grid; gap: 34px; }
@media (min-width: 940px) { .faq-wrap { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 80px; align-items: start; } }
.faq { box-shadow: inset 0 1px 0 var(--line); }
.faq details { box-shadow: inset 0 -1px 0 var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 22px 0; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: 0 0 auto; width: 14px; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315191E' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 4v16M4 12h16'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform 0.35s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--ink2); max-width: 40em; }

/* ---------- final ---------- */
.final { position: relative; overflow: hidden; isolation: isolate; border-radius: 32px; padding: 60px 28px; color: var(--cream); background: radial-gradient(120% 130% at 88% -10%, #1F6A4E 0%, #124634 42%, var(--forestDeep) 100%); }
.final::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0.22; mix-blend-mode: overlay; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E"); }
.final h2 { color: var(--cream); max-width: 13em; }
.final .lede { color: rgba(251, 248, 241, 0.74); margin-top: 18px; max-width: 30em; }
.final .btn { margin-top: 30px; }
.flow { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 0; counter-reset: s; max-width: 860px; }
.flow li { counter-increment: s; display: flex; gap: 14px; align-items: baseline; padding: 14px 0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12); font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, 0.9); }
.flow li::before { content: counter(s, decimal-leading-zero); font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; color: var(--gold2); }
@media (min-width: 760px) { .final { padding: 88px 72px; } .flow { grid-template-columns: repeat(4, 1fr); gap: 24px; } .flow li { flex-direction: column; gap: 8px; } }

/* ---------- footer ---------- */
.footer { padding: 72px 0 84px; color: var(--ink3); font-size: 14.5px; box-shadow: inset 0 1px 0 var(--line); }
.foot-top { display: grid; gap: 34px; }
.foot-brand p { margin-top: 14px; max-width: 25em; font-size: 15px; line-height: 1.55; color: var(--ink2); }
.foot-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 32px; align-content: start; }
.foot-nav a { text-decoration: none; font-weight: 500; color: var(--ink2); transition: color 0.25s ease; }
.foot-nav a:hover { color: var(--ink); }
.footer .brand { color: var(--ink); }
.footer .disclaimer { margin-top: 48px; padding-top: 24px; box-shadow: inset 0 1px 0 var(--line); font-size: 12.5px; line-height: 1.65; color: var(--ink3); }
@media (min-width: 760px) {
  .foot-top { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 72px; }
  .foot-nav { grid-template-columns: repeat(3, max-content); justify-content: end; gap: 14px 56px; }
}

/* ---------- score ring (shared with the quiz) ---------- */
.ring { position: relative; width: 120px; height: 120px; }
.ring svg { width: 100%; height: 100%; }
.ring .num-in { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-family: var(--serif); font-weight: 400; font-variation-settings: 'opsz' 144; font-size: 40px; line-height: 1; letter-spacing: -0.02em; }
.ring .num-in small { display: block; font-family: var(--sans); font-size: 12px; font-weight: 500; color: var(--ink3); letter-spacing: 0.02em; margin-top: 4px; }

/* ---------- the sticky bar on phones ---------- */
.stickybar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 55; display: flex; align-items: center; gap: 12px; padding: 7px 7px 7px 22px; border-radius: 999px; background: rgba(255, 253, 249, 0.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px var(--line), 0 14px 36px rgba(21, 25, 30, 0.14); transform: translateY(150%); transition: transform 0.45s var(--ease); }
.stickybar.show { transform: none; }
.stickybar p { flex: 1; font-size: 14.5px; font-weight: 600; line-height: 1.25; }
@media (min-width: 940px) { .stickybar { display: none; } }
.play .stickybar { display: none !important; }

/* ---------- rise-in on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease), transform 0.7s var(--ease); transition-delay: var(--d, 0ms); }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn::before { animation: none !important; }
  .btn:hover { transform: none; background-position: 130% 0, 0 0, 0 0; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .duel *, .duel *::before, .duel *::after { transition: none !important; animation: none !important; }
}

/* ---------- the phone, as a solid object (js/device.js) ----------
   A glass front, a glass back with its camera island, and a metal band all the
   way round (four flats, four fans of short flats at the corners). Every piece
   faces outward and hides its back, so nothing shows through at any angle. The
   band's brightness is set per piece by js/device.js as the phone turns. */
.d3 { position: relative; width: var(--pw); height: calc(var(--pw) * 2.093); transform-style: preserve-3d; --dr: calc(var(--pw) * 0.165); --dt: calc(var(--pw) * 0.105); }
.d3-body { position: absolute; inset: 0; transform-style: preserve-3d; }
.d3-face, .d3-wall, .d3-back * { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.d3-face, .d3-wall { position: absolute; }
.d3-face { inset: 0; border-radius: var(--dr); }
.d3-front { transform: translateZ(calc(var(--dt) / 2)); padding: calc(var(--pw) * 0.034); background: #060708; box-shadow: inset 0 0 0 calc(var(--pw) * 0.007) #3B3E44, inset 0 0 0 calc(var(--pw) * 0.013) #0A0B0D; }
.d3-front .screen { width: 100%; height: 100%; aspect-ratio: auto; border-radius: calc(var(--pw) * 0.132); }
.d3-island { position: absolute; z-index: 4; left: 50%; top: calc(var(--pw) * 0.058); width: calc(var(--pw) * 0.3); height: calc(var(--pw) * 0.088); margin-left: calc(var(--pw) * -0.15); border-radius: 999px; background: #050607; }
.d3-island::after { content: ''; position: absolute; right: 16%; top: 50%; width: calc(var(--pw) * 0.03); height: calc(var(--pw) * 0.03); margin-top: calc(var(--pw) * -0.015); border-radius: 50%; background: radial-gradient(circle at 35% 35%, #2B3B55, #0A0E16 62%); }
.d3-sheen, .d3-glow { position: absolute; inset: 0; z-index: 6; border-radius: inherit; overflow: hidden; pointer-events: none; }
.d3-sheen { background: linear-gradient(128deg, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0.02) 22%, rgba(255, 255, 255, 0) 36%); }
.d3-sheen .band, .d3-glow .band { position: absolute; top: -10%; bottom: -10%; left: 0; width: 64%; background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.34) 46%, rgba(255, 255, 255, 0.1) 60%, rgba(255, 255, 255, 0) 100%); transform: translate3d(-130%, 0, 0) skewX(-14deg); opacity: 0; }
.d3-back { transform: rotateY(180deg) translateZ(calc(var(--dt) / 2)); transform-style: preserve-3d; background: linear-gradient(150deg, #353940 0%, #1A1C20 48%, #272B30 100%); box-shadow: inset 0 0 0 calc(var(--pw) * 0.007) #454950, inset 0 0 0 calc(var(--pw) * 0.013) rgba(0, 0, 0, 0.45); }
.d3-glow { z-index: 1; }
.d3-glow .band { background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.16) 46%, rgba(255, 255, 255, 0.04) 62%, rgba(255, 255, 255, 0) 100%); }
.d3-cam { position: absolute; z-index: 2; right: 6.2%; top: 2.9%; width: 44%; aspect-ratio: 1; transform-style: preserve-3d; }
.d3-cam i { position: absolute; }
.d3-cam .plate { inset: 0; border-radius: 27%; background: linear-gradient(145deg, #3B3F45, #1F2226); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.d3-cam .p1 { transform: translateZ(calc(var(--pw) * 0.004)); }
.d3-cam .p2 { transform: translateZ(calc(var(--pw) * 0.008)); }
.d3-cam .p3 { transform: translateZ(calc(var(--pw) * 0.012)); background: linear-gradient(145deg, #474B52 0%, #24272C 60%, #2E3237 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.22); }
.d3-cam .lens { width: 41%; aspect-ratio: 1; border-radius: 50%; transform: translateZ(calc(var(--pw) * 0.024)); background: radial-gradient(circle at 36% 32%, rgba(132, 160, 220, 0.6) 0%, rgba(40, 52, 84, 0.9) 15%, #090C12 40%, #040506 57%, #262A30 59%, #40454C 67%, #14161A 80%, #30343A 100%); box-shadow: 0 0 0 calc(var(--pw) * 0.004) #2A2D32, 0 calc(var(--pw) * 0.006) calc(var(--pw) * 0.014) rgba(0, 0, 0, 0.55); }
.d3-cam .a { left: 6%; top: 6%; }
.d3-cam .b { left: 6%; bottom: 6%; }
.d3-cam .c { right: 5%; top: 29.5%; }
.d3-cam .flash { right: 13.5%; top: 9.5%; width: 13%; aspect-ratio: 1; border-radius: 50%; transform: translateZ(calc(var(--pw) * 0.014)); background: radial-gradient(circle at 40% 35%, #FFF6D8, #D9C48E 60%, #8E7C4E); }
.d3-cam .mic { right: 18%; bottom: 13.5%; width: 4%; aspect-ratio: 1; border-radius: 50%; transform: translateZ(calc(var(--pw) * 0.014)); background: #0B0C0E; }
.d3-mark { position: absolute; z-index: 2; left: 50%; top: 46%; width: 15%; height: auto; margin-left: -7.5%; opacity: 0.92; transform: translateZ(1px); }
.d3-rim { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; }
.d3-wall { left: 50%; top: 50%; background-color: hsl(216 7% 30%); background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 15%, rgba(0, 0, 0, 0.1) 50%, rgba(255, 255, 255, 0) 85%, rgba(255, 255, 255, 0.26) 100%); }
.d3-wall b { position: absolute; }
.d3-wall .key { top: 23%; height: 54%; border-radius: 999px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.1) 42%, rgba(0, 0, 0, 0.14)); box-shadow: 0 0 0 0.6px rgba(0, 0, 0, 0.55); }
.d3-wall .power { left: 27%; width: 13.5%; }
.d3-wall .action { left: 76.5%; width: 4.6%; }
.d3-wall .up { left: 64%; width: 9%; }
.d3-wall .down { left: 52.5%; width: 9%; }
.d3-wall .seam { top: 0; bottom: 0; width: 1.2px; background: rgba(0, 0, 0, 0.32); }
.d3-wall .s1 { left: 8%; }
.d3-wall .s2 { left: 92%; }
.d3-wall .port { left: 50%; top: 31%; width: 14%; height: 38%; margin-left: -7%; border-radius: 999px; background: #0B0C0E; }
.d3-wall .grille { top: 39%; height: 22%; width: 15%; background: radial-gradient(circle, #0B0C0E 40%, rgba(0, 0, 0, 0) 46%) 0 0 / 20% 100%; }
.d3-wall .g1 { left: 20%; }
.d3-wall .g2 { left: 65%; }
