/* ==========================================================================
   CarbZen — homepage experience stylesheet (index.html only).
   Subpages keep style.css; this file is loaded by the homepage alone.

   System: "calm precision instrument" — deep teal-charcoal canvas, mint
   signal color, capture-ring motif, mono data labels.
   Type: Clash Display (display) · Switzer (body) · Fragment Mono (data).

   Progressive enhancement contract:
   - Everything is visible by default (no-JS = complete page).
   - JS adds .js to <html>; reduced motion adds .reduce.
   - Animation-prep states (opacity/transform) apply ONLY under
     html.js:not(.reduce) so content can never be stranded hidden.
   ========================================================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #060c0b;
  --bg-2: #0a1412;
  --bg-3: #0d1815;
  --bg-card: #0b1513;
  --line: rgba(233, 242, 238, 0.08);
  --line-2: rgba(233, 242, 238, 0.15);
  --mint: #3ecf8e;
  --mint-hi: #62ffb8;
  --mint-dim: rgba(62, 207, 142, 0.12);
  --mint-soft: rgba(62, 207, 142, 0.25);
  --mint-glow: rgba(62, 207, 142, 0.35);
  --on-mint: #04130c;
  --ink: #eef6f2;       /* primary text — ~16:1 on --bg */
  --ink-2: #a9bcb4;     /* muted — ~7.5:1 */
  --ink-3: #7e948b;     /* faint, large/secondary only — ~4.6:1 */
  --amber: #f3c46f;
  --f-display: "Clash Display", "Avenir Next", "Helvetica Neue", sans-serif;
  --f-body: "Switzer", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --f-mono: "Fragment Mono", "SF Mono", ui-monospace, Menlo, monospace;
  --w: 1240px;
  --pad: clamp(20px, 4vw, 44px);
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 26px;
  --nav-h: 72px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-deep: 0 40px 90px -30px rgba(0, 0, 0, 0.75);
}

html { scroll-behavior: smooth; }
html.reduce { scroll-behavior: auto; }

body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--mint); color: var(--on-mint); }

h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.04;
  text-wrap: balance;
}
h4 { font-family: var(--f-body); font-weight: 600; }

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
  border-radius: 6px;
}
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }

.mono {
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -100%; left: 16px; z-index: 300;
  padding: 10px 18px; border-radius: 10px;
  background: var(--mint); color: var(--on-mint);
  font-weight: 600; font-size: 14px;
}
.skip-link:focus { top: 14px; }

/* Film grain — one subtle layer over everything */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.035;
  mix-blend-mode: overlay;
}

/* Pointer-following glow (desktop, JS-positioned) */
#glow {
  position: fixed; z-index: 0; pointer-events: none;
  width: 720px; height: 720px; border-radius: 50%;
  left: 0; top: 0; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(62, 207, 142, 0.07) 0%, transparent 62%);
  opacity: 0;
  transition: opacity 0.6s ease;
}
html.js #glow.on { opacity: 1; }
@media (hover: none), (max-width: 820px) { #glow { display: none; } }

.container { max-width: var(--w); margin: 0 auto; padding-inline: var(--pad); }

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: clamp(18px, 3vw, 36px);
  transition: background 0.4s ease, border-color 0.4s ease, height 0.4s var(--ease-out);
  border-bottom: 1px solid transparent;
  background: transparent;
}
.nav.scrolled {
  height: 60px;
  background: rgba(6, 12, 11, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: var(--line);
}
.nav-logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-weight: 600; font-size: 19px;
}
.nav-logo img {
  width: 28px; height: 28px; border-radius: 8px;
  box-shadow: 0 2px 12px -2px var(--mint-glow);
}
.nav-links { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 30px); }
.nav-links > a:not(.nav-cta) {
  position: relative;
  color: var(--ink-2); font-size: 14.5px; font-weight: 500;
  transition: color 0.2s;
  padding: 6px 2px;
}
.nav-links > a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1.5px; background: var(--mint);
  transition: right 0.3s var(--ease-out);
}
.nav-links > a:not(.nav-cta):hover { color: var(--ink); }
.nav-links > a:not(.nav-cta):hover::after { right: 0; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 12px;
  background: var(--mint); color: var(--on-mint);
  font-weight: 600; font-size: 14.5px;
  box-shadow: 0 10px 26px -10px var(--mint-glow);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s, background 0.2s;
}
.nav-cta:hover { background: var(--mint-hi); transform: translateY(-1px); box-shadow: 0 14px 34px -10px var(--mint-glow); }
.nav-cta svg { width: 15px; height: 15px; }
@media (max-width: 820px) {
  .nav-links > a:not(.nav-cta) { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 64px;
  overflow: hidden;
}
/* CSS atmosphere — always present; the three.js wave layers on top of it */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 70% 55% at 72% 12%, rgba(62, 207, 142, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 55% 45% at 12% 78%, rgba(62, 207, 142, 0.06) 0%, transparent 65%),
    linear-gradient(180deg, #081110 0%, var(--bg) 70%);
}
#wave {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 1.6s ease;
}
#wave.on { opacity: 1; }
/* fade the wave into the page bottom so the seam never shows */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%;
  z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--bg));
}

.hero-grid {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(40px, 5vw, 84px);
  align-items: center;
  width: 100%;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px 7px 11px;
  border: 1px solid var(--mint-soft);
  border-radius: 999px;
  background: var(--mint-dim);
  font-family: var(--f-mono); font-size: 12.5px; color: var(--mint);
  margin-bottom: 28px;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.eyebrow-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(62, 207, 142, 0.16);
}
html:not(.reduce) .eyebrow-dot { animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(62, 207, 142, 0.16); }
  50% { box-shadow: 0 0 0 8px rgba(62, 207, 142, 0.05); }
}

.hero h1 {
  font-size: clamp(46px, 7.2vw, 96px);
  font-weight: 600;
  line-height: 0.99;
  letter-spacing: -0.025em;
  margin-bottom: 26px;
}
.hero h1 .line { display: block; }
/* overflow-clip wrappers so GSAP can slide lines up into view */
html.js:not(.reduce) .hero h1 .line { overflow: hidden; }
html.js:not(.reduce) .hero h1 .line > span { display: block; transform: translateY(110%); }
.hero h1 em {
  font-style: normal; color: var(--mint);
  text-shadow: 0 0 44px rgba(62, 207, 142, 0.35);
}

.hero-sub {
  max-width: 560px;
  color: var(--ink-2);
  font-size: clamp(16px, 1.4vw, 18.5px);
  line-height: 1.6;
}
.hero-sub strong { color: var(--ink); font-weight: 600; }
.hero-new {
  margin-top: 12px;
  color: var(--ink-3); font-size: 14.5px;
}
.hero-new .mono { color: var(--mint); font-size: 12.5px; margin-right: 6px; }

.hero-actions {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 18px;
  margin-top: 34px;
}
.store-badge { height: 52px; width: auto; transition: transform 0.25s var(--ease-out), filter 0.25s; }
a:hover > .store-badge { transform: translateY(-2px); filter: brightness(1.12); }
.hero-qr {
  /* "scan with your phone" makes no sense ON a phone */
  display: flex; align-items: center; gap: 12px;
  padding: 9px 14px;
  border: 1px solid var(--line); border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}
.hero-qr img { width: 56px; height: 56px; border-radius: 8px; background: #fff; padding: 4px; }
.hero-qr-text { font-size: 12.5px; line-height: 1.45; color: var(--ink-3); max-width: 150px; }
.hero-qr-text strong { display: block; color: var(--ink-2); font-weight: 600; }

@media (max-width: 640px) { .hero-qr { display: none; } }

.hero-proof {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  margin-top: 30px;
  font-size: 13.5px; color: var(--ink-3);
}
.hero-proof .divider { width: 1px; height: 14px; background: var(--line-2); }
.hero-proof .mono { color: var(--mint); }

/* --- hero device --------------------------------------------------------- */
.hero-device-wrap {
  position: relative;
  display: flex; justify-content: center;
  perspective: 1200px;
}
.device {
  position: relative;
  width: min(340px, 78vw);
  border-radius: clamp(38px, 6vw, 54px);
  padding: 11px;
  background: linear-gradient(165deg, #1a2421, #0c1412 55%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.09),
    var(--shadow-deep),
    0 0 120px -30px var(--mint-glow);
}
.device-screen {
  position: relative;
  overflow: hidden;
  border-radius: clamp(28px, 4.6vw, 44px);
  aspect-ratio: 1320 / 2868;
  background: #0a0f0e;
}
.device-screen img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}

/* scanning sweep + reticle on the hero phone */
.scan-line {
  position: absolute; left: 4%; right: 4%; top: 0; height: 2px; z-index: 4;
  background: linear-gradient(90deg, transparent, var(--mint-hi), transparent);
  box-shadow: 0 0 18px 2px var(--mint-glow);
  opacity: 0;
}
html:not(.reduce) .scan-line { animation: scan 5.2s var(--ease-out) infinite; animation-delay: 1.4s; }
@keyframes scan {
  0%   { top: 12%; opacity: 0; }
  6%   { opacity: 0.95; }
  38%  { top: 62%; opacity: 0.95; }
  46%  { top: 64%; opacity: 0; }
  100% { top: 64%; opacity: 0; }
}
.reticle { position: absolute; inset: 16% 9% 30%; z-index: 3; pointer-events: none; }
.reticle i {
  position: absolute; width: 26px; height: 26px;
  border: 2.5px solid rgba(98, 255, 184, 0.9);
  filter: drop-shadow(0 0 6px rgba(62, 207, 142, 0.5));
}
.reticle i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0; }
.reticle i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 8px 0 0; }
.reticle i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 8px; }
.reticle i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 8px 0; }
html:not(.reduce) .reticle { animation: reticle-breathe 5.2s ease-in-out infinite 1.4s; }
@keyframes reticle-breathe {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  20% { transform: scale(0.97); opacity: 1; }
  45% { transform: scale(1); opacity: 0.85; }
}

.chip {
  position: absolute; z-index: 5;
  display: flex; flex-direction: column; gap: 1px;
  padding: 12px 18px;
  border-radius: 16px;
  background: rgba(10, 20, 18, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-deep);
  white-space: nowrap;
}
.chip strong {
  font-family: var(--f-mono); font-size: 21px; font-weight: 400;
  color: var(--mint-hi); line-height: 1.2;
}
.chip small { font-size: 11.5px; color: var(--ink-3); letter-spacing: 0.02em; }
.chip-time { top: 16%; left: max(-72px, -8vw); }
.chip-result { bottom: 21%; right: max(-86px, -9vw); border-color: var(--mint-soft); }

.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 4;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--ink-3); font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
}
.scroll-cue::after {
  content: ""; width: 1px; height: 44px;
  background: linear-gradient(180deg, var(--mint), transparent);
}
html:not(.reduce) .scroll-cue::after { animation: cue 2.2s ease-in-out infinite; }
@keyframes cue {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (max-width: 1024px) {
  .hero { min-height: auto; padding-bottom: 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-copy { max-width: 640px; }
  .chip-time { left: 0; }
  .chip-result { right: 0; }
  .scroll-cue { display: none; }
}

/* ==========================================================================
   Marquee — real USDA values from the food library
   ========================================================================== */
.marquee {
  position: relative;
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  padding: 18px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; gap: 44px; width: max-content;
  padding-right: 44px;
}
html:not(.reduce) .marquee-track { animation: marquee 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-item {
  display: inline-flex; align-items: baseline; gap: 9px;
  font-size: 14.5px; color: var(--ink-2); white-space: nowrap;
}
.marquee-item .mono { color: var(--mint); font-size: 14px; }
.marquee-item small { color: var(--ink-3); font-size: 12px; }
.marquee-note {
  text-align: center; padding-top: 10px;
  font-family: var(--f-mono); font-size: 10.5px; color: var(--ink-3);
  letter-spacing: 0.14em; text-transform: uppercase;
}

/* ==========================================================================
   Section scaffolding
   ========================================================================== */
.section { position: relative; padding-block: clamp(90px, 11vw, 150px); }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 76px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 12px; color: var(--mint);
  letter-spacing: 0.16em; text-transform: uppercase;
  margin-bottom: 18px;
}
.section-label::before { content: ""; width: 22px; height: 1px; background: var(--mint); }
.section-head.center .section-label::after { content: ""; width: 22px; height: 1px; background: var(--mint); }
.section-title { font-size: clamp(34px, 4.6vw, 60px); letter-spacing: -0.02em; margin-bottom: 18px; }
.section-sub { color: var(--ink-2); font-size: clamp(16px, 1.3vw, 18px); max-width: 640px; }
.section-head.center .section-sub { margin-inline: auto; }

/* generic reveal-prep (JS only) */
html.js:not(.reduce) .rv { opacity: 0; transform: translateY(34px); }

/* ==========================================================================
   Scan story — pinned phone, three acts
   ========================================================================== */
.story-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 110px); align-items: start; }
.story-stage {
  position: sticky; top: calc(50vh - min(330px, 36vh));
  display: flex; justify-content: center;
}
.story-stage .device { width: min(310px, 30vw); }
.story-screens img { opacity: 0; transition: opacity 0.45s ease; }
.story-screens img.active { opacity: 1; }
.story-progress {
  position: absolute; left: -34px; top: 12%; bottom: 12%;
  width: 2px; background: var(--line);
  border-radius: 2px; overflow: hidden;
}
.story-progress i {
  position: absolute; inset: 0;
  background: var(--mint);
  transform: scaleY(0); transform-origin: top;
}
.story-steps { display: flex; flex-direction: column; gap: clamp(56px, 14vh, 150px); padding-block: 8vh; }
.story-step { max-width: 470px; transition: opacity 0.4s ease; }
html.js:not(.reduce) .story-step { opacity: 0.3; }
html.js:not(.reduce) .story-step.active { opacity: 1; }
.story-num {
  font-family: var(--f-mono); font-size: 13px; color: var(--mint);
  letter-spacing: 0.14em;
  display: block; margin-bottom: 14px;
}
.story-step h3 { font-size: clamp(26px, 2.8vw, 38px); margin-bottom: 14px; }
.story-step p { color: var(--ink-2); }
.story-step .step-shot { display: none; }

@media (max-width: 820px) {
  .story-wrap { grid-template-columns: 1fr; }
  .story-stage { display: none; }
  .story-steps { gap: 64px; padding-block: 0; }
  html.js:not(.reduce) .story-step { opacity: 1; }
  .story-step .step-shot {
    display: block; margin-top: 24px;
    border-radius: var(--r-lg); overflow: hidden;
    border: 1px solid var(--line-2);
    box-shadow: var(--shadow-deep);
    max-width: 280px;
  }
}

/* ==========================================================================
   Anatomy — annotated result
   ========================================================================== */
.anatomy-wrap {
  display: grid; grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(44px, 6vw, 100px); align-items: center;
}
.anatomy-device { display: flex; justify-content: center; }
.anatomy-device .device { width: min(330px, 80vw); }
.anatomy-list { display: flex; flex-direction: column; gap: 16px; }
.anatomy-item {
  position: relative;
  display: grid; grid-template-columns: auto 1fr; gap: 16px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg-card);
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}
.anatomy-item:hover { border-color: var(--mint-soft); transform: translateX(6px); }
.anatomy-item .mono { font-size: 13px; color: var(--mint); padding-top: 3px; }
.anatomy-item h4 { font-size: 16.5px; margin-bottom: 4px; }
.anatomy-item p { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
/* connector tick that grows in from the card toward the phone */
.anatomy-item::before {
  content: ""; position: absolute; top: 50%; left: -36px;
  width: 36px; height: 1px; background: var(--mint-soft);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.5s var(--ease-out) 0.15s;
}
.anatomy-item.lit::before { transform: scaleX(1); }
@media (max-width: 1024px) {
  .anatomy-wrap { grid-template-columns: 1fr; }
  .anatomy-item::before { display: none; }
}

/* ==========================================================================
   New in 1.2 — log it any way
   ========================================================================== */
.ways-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.way-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-card);
  padding: 26px 24px 28px;
  overflow: hidden;
  transition: border-color 0.35s, box-shadow 0.35s, transform 0.35s var(--ease-out);
  transform-style: preserve-3d;
}
.way-card:hover {
  border-color: var(--mint-soft);
  box-shadow: 0 30px 70px -36px rgba(0, 0, 0, 0.9), 0 0 60px -28px var(--mint-glow);
}
.way-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(62, 207, 142, 0.08), transparent 55%);
  opacity: 0; transition: opacity 0.4s;
}
.way-card:hover::after { opacity: 1; }
.way-tag {
  font-family: var(--f-mono); font-size: 11px; color: var(--mint);
  letter-spacing: 0.16em; text-transform: uppercase;
}
.way-card h3 { font-size: 21px; margin: 10px 0 8px; }
.way-card > p { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; min-height: 4.6em; }

/* shared vignette stage */
.viz {
  position: relative; margin-top: 22px; height: 168px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 50% 110%, rgba(62, 207, 142, 0.07), transparent 60%),
    var(--bg-2);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

/* — barcode */
.viz-barcode .bars {
  display: flex; align-items: flex-end; gap: 4px; height: 74px;
}
.viz-barcode .bars i { background: var(--ink-2); width: 3px; height: 100%; border-radius: 1px; }
.viz-barcode .bars i:nth-child(2n) { width: 6px; opacity: 0.65; }
.viz-barcode .bars i:nth-child(3n) { width: 2px; opacity: 0.85; }
.viz-barcode .bars i:nth-child(5n) { width: 9px; opacity: 0.5; }
.viz-barcode .laser {
  position: absolute; left: 14%; right: 14%; height: 2px; top: 50%;
  background: linear-gradient(90deg, transparent, var(--mint-hi), transparent);
  box-shadow: 0 0 16px 2px var(--mint-glow);
}
html:not(.reduce) .viz-barcode .laser { animation: laser 2.8s ease-in-out infinite; }
@keyframes laser {
  0%, 100% { transform: translateY(-34px); opacity: 0.4; }
  50% { transform: translateY(34px); opacity: 1; }
}

/* — describe (typed) */
.viz-describe { flex-direction: column; gap: 12px; padding: 18px; align-items: stretch; justify-content: center; }
.viz-field {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line-2); border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 14px;
  font-size: 13px; color: var(--ink);
  min-height: 46px;
}
.viz-field .caret {
  display: inline-block; width: 1.5px; height: 15px;
  background: var(--mint); vertical-align: -2px;
}
html:not(.reduce) .viz-field .caret { animation: caret 1.1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.viz-mic {
  flex: none; margin-left: auto;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--mint-dim); color: var(--mint);
}
.viz-mic svg { width: 15px; height: 15px; }
html:not(.reduce) .viz-mic { animation: mic-pulse 2.4s ease-in-out infinite; }
@keyframes mic-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(62, 207, 142, 0.25); }
  50% { box-shadow: 0 0 0 7px rgba(62, 207, 142, 0); }
}
.viz-send {
  align-self: center;
  font-size: 12.5px; font-weight: 600; color: var(--on-mint);
  background: var(--mint); border-radius: 9px; padding: 8px 18px;
}

/* — widget */
.viz-widget-tile {
  width: 142px; height: 142px;
  border-radius: 30px;
  background: linear-gradient(160deg, #0f1b18, #091210);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-deep);
  padding: 17px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.viz-widget-tile .w-label { font-size: 10.5px; color: var(--ink-3); letter-spacing: 0.04em; }
.viz-widget-tile .w-carbs { font-family: var(--f-mono); font-size: 27px; color: var(--mint-hi); line-height: 1; }
.viz-widget-tile .w-carbs small { font-size: 13px; color: var(--mint); }
.viz-widget-tile .w-left { font-size: 10.5px; color: var(--ink-2); }
.viz-widget-tile .w-left b { color: var(--ink); font-weight: 600; }

/* — watch */
.viz-watch { gap: 0; }
.watch-body {
  position: relative;
  width: 118px; height: 142px;
  border-radius: 34px;
  background: linear-gradient(165deg, #222b28, #0c1311 60%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.1), var(--shadow-deep);
  padding: 9px;
}
.watch-body::before {
  content: ""; position: absolute; right: -5px; top: 38px;
  width: 5px; height: 26px; border-radius: 0 4px 4px 0;
  background: #1c2522;
}
.watch-screen {
  width: 100%; height: 100%;
  border-radius: 26px;
  background: #050a09;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.watch-screen .w-label { font-size: 9.5px; color: var(--ink-3); letter-spacing: 0.06em; text-transform: uppercase; }
.watch-screen .w-carbs { font-family: var(--f-mono); font-size: 23px; color: var(--mint-hi); }
.watch-screen .w-carbs small { font-size: 11px; color: var(--mint); }
.watch-mic {
  margin-top: 4px;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--mint-dim); color: var(--mint);
}
.watch-mic svg { width: 12px; height: 12px; }
html:not(.reduce) .watch-mic { animation: mic-pulse 2.4s ease-in-out infinite 0.6s; }

@media (max-width: 1100px) { .ways-grid { grid-template-columns: repeat(2, 1fr); } .way-card > p { min-height: 0; } }
@media (max-width: 560px) { .ways-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Correction memory band
   ========================================================================== */
.memory-band {
  margin-top: clamp(60px, 8vw, 100px);
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 90px); align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(62, 207, 142, 0.06), transparent 55%),
    var(--bg-card);
  padding: clamp(32px, 5vw, 64px);
  overflow: hidden;
}
.memory-band h3 { font-size: clamp(26px, 3vw, 40px); margin-bottom: 16px; }
.memory-band p { color: var(--ink-2); max-width: 480px; }
.memory-quote {
  margin-top: 26px;
  display: inline-flex; flex-direction: column; gap: 2px;
  border: 1px solid var(--mint-soft);
  border-radius: 14px;
  background: var(--mint-dim);
  padding: 13px 18px;
}
.memory-quote strong { font-size: 14.5px; color: var(--ink); font-weight: 600; }
.memory-quote span { font-family: var(--f-mono); font-size: 12.5px; color: var(--mint); }
.memory-shot { display: flex; justify-content: center; }
.memory-shot .device { width: min(290px, 70vw); }
@media (max-width: 900px) { .memory-band { grid-template-columns: 1fr; } }

/* ==========================================================================
   Compare table
   ========================================================================== */
.compare-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-lg); }
.compare-table {
  width: 100%; min-width: 760px;
  border-collapse: separate; border-spacing: 0;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--bg-card);
  overflow: hidden;
  font-size: 14.5px;
}
.compare-table th, .compare-table td {
  padding: 16px 20px; text-align: left;
  border-bottom: 1px solid var(--line);
}
.compare-table thead th {
  font-family: var(--f-mono); font-size: 12px; font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-3);
  background: var(--bg-2);
}
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table tbody th { font-weight: 500; color: var(--ink-2); }
.compare-table td.us {
  background: rgba(62, 207, 142, 0.05);
  color: var(--ink); font-weight: 600;
  border-inline: 1px solid rgba(62, 207, 142, 0.18);
}
.compare-table thead th.us { color: var(--mint); border-inline: 1px solid rgba(62, 207, 142, 0.18); }
.compare-table td { color: var(--ink-3); }
.compare-table .yes { color: var(--mint); }
.compare-table .no { color: #d98a8a; }
.compare-table .meh { color: var(--amber); }

/* ==========================================================================
   Built for
   ========================================================================== */
.bf-main {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 90px); align-items: center;
}
.bf-main h3 { font-size: clamp(24px, 2.6vw, 34px); margin-bottom: 14px; }
.bf-main > div > p { color: var(--ink-2); margin-bottom: 22px; }
.bf-list { display: flex; flex-direction: column; gap: 12px; }
.bf-list li {
  display: flex; gap: 12px; align-items: flex-start;
  color: var(--ink-2); font-size: 15px;
}
.bf-list li::before {
  content: ""; flex: none; margin-top: 7px;
  width: 7px; height: 7px; border-radius: 2px;
  background: var(--mint); transform: rotate(45deg);
}
.bf-shot { display: flex; justify-content: center; }
.bf-shot .device { width: min(300px, 72vw); }
.bf-secondary {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  margin-top: clamp(40px, 5vw, 64px);
}
.bf-mini {
  padding: 22px 24px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--bg-card);
  transition: border-color 0.3s;
}
.bf-mini:hover { border-color: var(--mint-soft); }
.bf-mini strong { display: block; margin-bottom: 6px; font-weight: 600; }
.bf-mini span { color: var(--ink-2); font-size: 14.5px; }
@media (max-width: 900px) {
  .bf-main { grid-template-columns: 1fr; }
  .bf-secondary { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Founder
   ========================================================================== */
.founder { max-width: 780px; margin-inline: auto; text-align: center; }
.founder .ring-mark {
  width: 54px; height: 54px; border-radius: 50%;
  border: 3px solid var(--mint);
  box-shadow: 0 0 34px -6px var(--mint-glow), inset 0 0 18px -6px var(--mint-glow);
  margin: 0 auto 30px;
}
.founder h2 { font-size: clamp(30px, 4vw, 50px); margin-bottom: 30px; }
.founder p {
  color: var(--ink-2);
  font-size: clamp(16.5px, 1.5vw, 19px);
  line-height: 1.75;
  margin-bottom: 20px;
  text-wrap: pretty;
}
.founder .sig {
  margin-top: 12px;
  font-family: var(--f-mono); font-size: 13.5px; color: var(--mint);
  letter-spacing: 0.04em;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.quote-card {
  position: relative;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--bg-card);
  padding: 30px 30px 26px;
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}
.quote-card:hover { border-color: var(--mint-soft); transform: translateY(-4px); }
.quote-card::before {
  content: "\201C";
  font-family: var(--f-display); font-size: 64px; line-height: 1;
  color: var(--mint); opacity: 0.5;
  display: block; margin-bottom: 6px;
}
.quote-card p { color: var(--ink-2); font-size: 15.5px; line-height: 1.65; }
.quote-card p .hl { color: var(--ink); font-weight: 600; }
.quote-attr { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.quote-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--mint-dim); color: var(--mint);
  font-family: var(--f-display); font-weight: 600;
}
.quote-attr strong { display: block; font-size: 13.5px; font-weight: 600; }
.quote-attr span { font-size: 12.5px; color: var(--ink-3); }
.quotes-note { margin-top: 22px; text-align: center; font-size: 13px; color: var(--ink-3); }
@media (max-width: 820px) { .quotes { grid-template-columns: 1fr; } }

/* ==========================================================================
   Pricing
   ========================================================================== */
.price-toggle {
  position: relative;
  display: inline-grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--bg-card);
  padding: 4px;
  margin-top: 26px;
}
.price-toggle .thumb {
  position: absolute; top: 4px; bottom: 4px; left: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: var(--mint-dim);
  border: 1px solid var(--mint-soft);
  transition: transform 0.35s var(--ease-out);
}
.price-toggle[data-period="yearly"] .thumb { transform: translateX(100%); }
.price-toggle button {
  position: relative; z-index: 1;
  padding: 9px 22px;
  font-size: 14px; font-weight: 600; color: var(--ink-3);
  border-radius: 999px;
  transition: color 0.25s;
}
.price-toggle button[aria-pressed="true"] { color: var(--mint); }
.price-toggle .save {
  font-size: 11px; font-weight: 600;
  background: var(--mint); color: var(--on-mint);
  border-radius: 999px; padding: 2px 8px; margin-left: 6px;
}

.price-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px; align-items: stretch;
}
.price-card {
  position: relative;
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--bg-card);
  padding: 30px 28px;
  transition: border-color 0.3s, transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.price-card:hover { transform: translateY(-5px); }
.price-card.featured {
  border-color: var(--mint-soft);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(62, 207, 142, 0.09), transparent 55%),
    var(--bg-card);
  box-shadow: 0 30px 80px -40px var(--mint-glow);
}
.price-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--mint); color: var(--on-mint);
  border-radius: 999px; padding: 5px 14px; font-weight: 600;
  white-space: nowrap;
}
.price-name { font-family: var(--f-mono); font-size: 13px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.12em; }
.price-amount {
  font-family: var(--f-display); font-weight: 600;
  font-size: 44px; letter-spacing: -0.02em;
  margin-top: 12px; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.price-amount small { font-size: 16px; color: var(--ink-3); font-family: var(--f-body); font-weight: 500; }
.price-amount .was {
  font-size: 17px; color: var(--ink-3); text-decoration: line-through;
  margin-right: 8px; font-weight: 400;
}
.price-anchor { margin-top: 6px; font-size: 13px; color: var(--ink-3); min-height: 1.5em; }
.price-desc { margin-top: 14px; font-size: 14.5px; color: var(--ink-2); }
.price-feats { margin: 20px 0 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.price-feats li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14px; color: var(--ink-2);
}
.price-feats li svg { flex: none; width: 15px; height: 15px; margin-top: 3px; color: var(--mint); }
.price-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 13px; padding: 13px 18px;
  font-size: 14.5px; font-weight: 600;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.price-cta.primary {
  background: var(--mint); color: var(--on-mint);
  box-shadow: 0 14px 34px -14px var(--mint-glow);
}
.price-cta.primary:hover { background: var(--mint-hi); transform: translateY(-2px); }
.price-cta.ghost { border: 1px solid var(--line-2); color: var(--ink); }
.price-cta.ghost:hover { border-color: var(--mint-soft); color: var(--mint); }
.price-period { display: none; }
.price-period.active { display: inline; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list { max-width: 820px; margin-inline: auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--bg-card);
  transition: border-color 0.3s;
}
.faq-item.open { border-color: var(--mint-soft); }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  text-align: left;
  padding: 20px 24px;
  font-size: 16.5px; font-weight: 600;
}
.faq-q .ind {
  flex: none; position: relative; width: 18px; height: 18px;
  color: var(--mint);
}
.faq-q .ind::before, .faq-q .ind::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  background: currentColor; border-radius: 2px;
}
.faq-q .ind::before { width: 14px; height: 2px; }
.faq-q .ind::after { width: 2px; height: 14px; transition: transform 0.3s var(--ease-out); }
.faq-item.open .faq-q .ind::after { transform: rotate(90deg); }
.faq-a {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease-out);
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 24px 22px; color: var(--ink-2); font-size: 15px; }
.faq-a a { color: var(--mint); }
.faq-a a:hover { text-decoration: underline; }
html.no-js .faq-a { grid-template-rows: 1fr; } /* no-JS: answers stay open */

/* ==========================================================================
   Final CTA
   ========================================================================== */
.final {
  position: relative;
  padding-block: clamp(110px, 14vw, 190px);
  text-align: center;
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.final::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 70% at 50% 100%, rgba(62, 207, 142, 0.10), transparent 65%);
}
.final-ring {
  position: relative;
  width: clamp(120px, 14vw, 170px); height: clamp(120px, 14vw, 170px);
  margin: 0 auto 40px;
}
.final-ring .ring-outer {
  position: absolute; inset: 0; border-radius: 50%;
  border: 3px solid rgba(62, 207, 142, 0.35);
}
.final-ring .ring-core {
  position: absolute; inset: 14%; border-radius: 50%;
  background: radial-gradient(circle at 38% 30%, #6dffc0, var(--mint) 60%);
  box-shadow: 0 0 90px -10px var(--mint-glow);
}
html:not(.reduce) .final-ring .ring-outer { animation: ring-spread 3s ease-out infinite; }
@keyframes ring-spread {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.55); opacity: 0; }
}
.final h2 { position: relative; font-size: clamp(34px, 5vw, 64px); margin-bottom: 20px; }
.final > .container > p {
  position: relative;
  color: var(--ink-2); max-width: 560px; margin: 0 auto 40px;
  font-size: clamp(16px, 1.3vw, 18px);
}
.final-actions {
  position: relative;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 18px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: clamp(50px, 7vw, 80px) 0 40px;
}
.foot-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 32px;
  margin-bottom: 56px;
}
.foot-grid h4 {
  font-family: var(--f-mono); font-size: 11.5px; font-weight: 400;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 16px;
}
.foot-grid ul { display: flex; flex-direction: column; gap: 9px; }
.foot-grid a { color: var(--ink-2); font-size: 14px; transition: color 0.2s; }
.foot-grid a:hover { color: var(--mint); }
.foot-base {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.foot-logo { display: inline-flex; align-items: center; gap: 9px; font-family: var(--f-display); font-weight: 600; }
.foot-logo img { width: 24px; height: 24px; border-radius: 7px; }
.foot-base a[href^="mailto"] { color: var(--ink-2); font-size: 13.5px; }
.foot-base a[href^="mailto"]:hover { color: var(--mint); }
.foot-copy { margin-left: auto; color: var(--ink-3); font-size: 12.5px; }
@media (max-width: 1000px) { .foot-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) {
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-copy { margin-left: 0; }
}

/* ==========================================================================
   Motion safety
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
