/* Sugar Pulse marketing site.
   Colours mirror the app's design system (docs/specs/initial-prompt.md §4):
   Berry is the brand, Indigo is for information, and the glucose status
   colours are used only to show glucose state, always with a word and icon. */

@font-face { font-family: "Plus Jakarta Sans"; src: url("/assets/fonts/PlusJakartaSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("/assets/fonts/PlusJakartaSans-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("/assets/fonts/PlusJakartaSans-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("/assets/fonts/PlusJakartaSans-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --berry-50: #FBEFF7; --berry-100: #F5D7EA; --berry-200: #EBB0D6; --berry-300: #DE87C0;
  --berry-500: #A9488D; --berry-600: #8A3A7A; --berry-700: #6E2D61; --berry-800: #52214A; --berry-900: #381632;
  --indigo-50: #EEF0FB; --indigo-100: #D6DAF5; --indigo-300: #8490E0; --indigo-500: #4350C2; --indigo-600: #3540A3; --indigo-800: #1E2561;

  --background: #FAFBFC;
  --surface: #FFFFFF;
  --surface-variant: #F4F6F8;
  --surface-elevated: #FFFFFF;
  --border: #D5DCE3;
  --divider: #E9EDF1;
  --text: #12171C;
  --text-2: #4C5763;
  --text-3: #66727F;
  --primary: #8A3A7A;
  --primary-hover: #6E2D61;
  --on-primary: #FFFFFF;
  --primary-container: #FBEFF7;
  --on-primary-container: #52214A;
  --secondary: #3540A3;
  --secondary-container: #EEF0FB;
  --on-secondary-container: #1E2561;
  --error: #B4232C;
  --success: #17784F;

  /* Glucose status: text tone / soft background */
  --g-vlow: #8A1820;  --g-vlow-bg: #F7D0D5;  --g-vlow-dot: #9E1B24;
  --g-low: #B4232C;   --g-low-bg: #FDECEF;   --g-low-dot: #E5484D;
  --g-in: #17784F;    --g-in-bg: #E8F7EE;    --g-in-dot: #22A06B;
  --g-high: #A15C00;  --g-high-bg: #FFF5E0;  --g-high-dot: #F5A524;
  --g-vhigh: #B23F04; --g-vhigh-bg: #FFEFE5; --g-vhigh-dot: #E8590C;

  --glow-1: rgba(201, 96, 166, .16);
  --glow-2: rgba(95, 109, 211, .13);
  --shadow-phone: 0 40px 80px -30px rgba(56, 22, 50, .45), 0 18px 36px -18px rgba(18, 23, 28, .25);
  --shadow-card: 0 18px 40px -22px rgba(18, 23, 28, .28);
  --bezel: #14171B;

  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --background: #0B0F12; --surface: #12171C; --surface-variant: #1A2026; --surface-elevated: #232B33;
    --border: #36404A; --divider: #232B33;
    --text: #F4F6F8; --text-2: #B6C1CC; --text-3: #8B98A6;
    --primary: #EBB0D6; --primary-hover: #F5D7EA; --on-primary: #381632;
    --primary-container: #52214A; --on-primary-container: #F5D7EA;
    --secondary: #8490E0; --secondary-container: #1E2561; --on-secondary-container: #D6DAF5;
    --error: #F2787C; --success: #4CC38A;
    --g-vlow: #FFA3A5;  --g-vlow-bg: #4F1418;  --g-vlow-dot: #FF5257;
    --g-low: #F2787C;   --g-low-bg: #3A1518;   --g-low-dot: #F2787C;
    --g-in: #4CC38A;    --g-in-bg: #10301F;    --g-in-dot: #4CC38A;
    --g-high: #FFBE4D;  --g-high-bg: #3A2A0A;  --g-high-dot: #FFBE4D;
    --g-vhigh: #FF8A4C; --g-vhigh-bg: #3A1C0C; --g-vhigh-dot: #FF8A4C;
    --glow-1: rgba(201, 96, 166, .14);
    --glow-2: rgba(95, 109, 211, .14);
    --shadow-phone: 0 40px 90px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .06);
    --shadow-card: 0 18px 40px -22px rgba(0, 0, 0, .7);
    --bezel: #2A3038;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #0B0F12; --surface: #12171C; --surface-variant: #1A2026; --surface-elevated: #232B33;
  --border: #36404A; --divider: #232B33;
  --text: #F4F6F8; --text-2: #B6C1CC; --text-3: #8B98A6;
  --primary: #EBB0D6; --primary-hover: #F5D7EA; --on-primary: #381632;
  --primary-container: #52214A; --on-primary-container: #F5D7EA;
  --secondary: #8490E0; --secondary-container: #1E2561; --on-secondary-container: #D6DAF5;
  --error: #F2787C; --success: #4CC38A;
  --g-vlow: #FFA3A5;  --g-vlow-bg: #4F1418;  --g-vlow-dot: #FF5257;
  --g-low: #F2787C;   --g-low-bg: #3A1518;   --g-low-dot: #F2787C;
  --g-in: #4CC38A;    --g-in-bg: #10301F;    --g-in-dot: #4CC38A;
  --g-high: #FFBE4D;  --g-high-bg: #3A2A0A;  --g-high-dot: #FFBE4D;
  --g-vhigh: #FF8A4C; --g-vhigh-bg: #3A1C0C; --g-vhigh-dot: #FF8A4C;
  --glow-1: rgba(201, 96, 166, .14);
  --glow-2: rgba(95, 109, 211, .14);
  --shadow-phone: 0 40px 90px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .06);
  --shadow-card: 0 18px 40px -22px rgba(0, 0, 0, .7);
  --bezel: #2A3038;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--secondary); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { text-wrap: balance; margin: 0; line-height: 1.12; letter-spacing: -0.025em; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--secondary); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--berry-200); color: var(--berry-900); }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.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; left: 16px; top: -60px; z-index: 100; background: var(--primary); color: var(--on-primary); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--background) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--divider); }
.nav { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--text-2); font-weight: 500; font-size: .95rem; text-decoration: none; }
.nav-links a:hover { color: var(--text); background: var(--surface-variant); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: 12px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); cursor: pointer;
}
.icon-btn:hover { background: var(--surface-variant); }
.icon-btn .icon { width: 20px; height: 20px; }
.menu-btn { display: none; }

@media (max-width: 920px) {
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 72px;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px;
    background: var(--background); border-bottom: 1px solid var(--divider);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 14px 8px; font-size: 1.05rem; }
  .menu-btn { display: inline-grid; }
  .nav-actions { margin-left: auto; }
  .nav-actions .btn-small { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: var(--radius-sm);
  font: 600 1rem/1 var(--font); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-outline:hover { background: var(--surface-variant); }
.btn-small { min-height: 44px; padding: 0 16px; font-size: .95rem; }

/* Store badges */
.store-row { display: flex; flex-wrap: wrap; gap: 12px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 60px; padding: 8px 20px 8px 16px; border-radius: 14px;
  background: #000; color: #fff; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .18);
  transition: transform .15s ease, box-shadow .15s ease;
}
.store-badge:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .5); }
.store-badge svg { width: 28px; height: 28px; flex: none; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.1; }
.store-badge small { font-size: .7rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; opacity: .85; }
.store-badge strong { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
.store-badge.is-soon { cursor: default; background: #1d1f22; position: relative; }
.store-badge.is-soon:hover { transform: none; box-shadow: none; }
.store-badge.is-soon svg { opacity: .8; }
.soon-pill {
  position: absolute; top: -10px; right: -8px;
  background: var(--secondary-container); color: var(--on-secondary-container);
  font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--background);
}

/* ---------- Chips & badges ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--primary); font-weight: 600; font-size: .9rem; letter-spacing: .02em;
  padding: 6px 12px; border-radius: 999px; background: var(--primary-container);
}
.eyebrow .icon { width: 16px; height: 16px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px; font-size: .9rem; font-weight: 500;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2);
}
.chip .icon { width: 16px; height: 16px; color: var(--secondary); }

.status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-weight: 600; font-size: .9rem; white-space: nowrap; }
.status b { font-weight: 700; }
.status--vlow { color: var(--g-vlow); background: var(--g-vlow-bg); }
.status--low { color: var(--g-low); background: var(--g-low-bg); }
.status--in { color: var(--g-in); background: var(--g-in-bg); }
.status--high { color: var(--g-high); background: var(--g-high-bg); }
.status--vhigh { color: var(--g-vhigh); background: var(--g-vhigh-bg); }

/* ---------- Phone frame ---------- */
.phone {
  --w: 300px;
  position: relative; width: var(--w); flex: none;
  padding: calc(var(--w) * .032);
  border-radius: calc(var(--w) * .16);
  background: var(--bezel);
  box-shadow: var(--shadow-phone);
  container-type: inline-size;
}
.phone::after { /* Dynamic Island */
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  top: calc(var(--w) * .032 + 2.6cqw); width: 29cqw; height: 8.4cqw;
  background: #000; border-radius: 999px; z-index: 6; pointer-events: none;
}
.phone picture, .phone img { display: block; width: 100%; height: auto; aspect-ratio: 1170 / 2532; border-radius: calc(var(--w) * .128); background: var(--surface); object-fit: cover; }
.phone--report img { object-position: top; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 96px); overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(10px); }
.hero::before { width: 760px; height: 760px; right: -180px; top: -160px; background: radial-gradient(closest-side, var(--glow-1), transparent); }
.hero::after { width: 640px; height: 640px; left: -240px; bottom: -260px; background: radial-gradient(closest-side, var(--glow-2), transparent); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); letter-spacing: -0.035em; margin: 20px 0 20px; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero .lede { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--text-2); max-width: 36ch; margin-bottom: 32px; }
.hero .store-row { margin-bottom: 28px; }
.hero-note { font-size: .9rem; color: var(--text-3); margin-top: 6px; }

.hero-visual { position: relative; display: flex; justify-content: center; min-height: 600px; }
.hero-visual .phone--front { --w: clamp(240px, 26vw, 310px); z-index: 2; transform: translateX(-12%); }
.hero-visual .phone--back { --w: clamp(210px, 22vw, 268px); position: absolute; right: 0; top: 56px; z-index: 1; transform: rotate(5deg); opacity: .98; }
.float-card {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: var(--radius);
  background: var(--surface-elevated); border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  font-size: .92rem; line-height: 1.3;
}
.float-card strong { display: block; font-weight: 700; color: var(--text); }
.float-card span { color: var(--text-3); font-size: .82rem; }
.float-card .fc-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--secondary-container); color: var(--secondary); }
.float-card .fc-icon .icon { width: 20px; height: 20px; }
.float-card--sync { left: 0; top: -1%; }
.float-card--tir { left: -4%; bottom: 0; flex-direction: column; align-items: stretch; width: 230px; }
.float-card--offline { right: -2%; bottom: 14%; }
.tir-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; gap: 2px; }
.tir-bar i { display: block; }
.tir-legend { display: flex; justify-content: space-between; font-size: .78rem; color: var(--text-3); }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .hero .lede { margin-inline: auto; }
  .hero .store-row, .hero .chip-row { justify-content: center; }
  .hero-visual { min-height: 0; padding: 24px 0 0; }
}
@media (max-width: 560px) {
  .hero-visual .phone--back { display: none; }
  .hero-visual .phone--front { transform: none; --w: min(72vw, 280px); }
  .float-card--sync { left: 0; top: 10%; }
  .float-card--tir { display: none; }
  .float-card--offline { right: 0; bottom: 8%; }
  .float-card { padding: 10px 12px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section--tint { background: var(--surface); border-block: 1px solid var(--divider); }
.section-head { max-width: 720px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section-head h2 { font-size: clamp(2rem, 3.8vw, 3rem); margin: 16px 0 16px; }
.section-head p { color: var(--text-2); font-size: 1.125rem; }

/* Highlights strip */
.highlights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.highlight { padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.highlight .h-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--primary-container); color: var(--primary); margin-bottom: 16px; }
.highlight .h-icon .icon { width: 24px; height: 24px; }
.highlight h3 { font-size: 1.125rem; margin-bottom: 6px; letter-spacing: -0.01em; }
.highlight p { color: var(--text-2); font-size: .975rem; }
@media (max-width: 960px) { .highlights { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .highlights { grid-template-columns: 1fr; } }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.feature + .feature { margin-top: clamp(96px, 12vw, 160px); }
.feature--flip .feature-copy { order: 2; }
.feature-copy { min-width: 0; }
.feature-copy h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin: 18px 0 18px; }
.feature-copy > p { color: var(--text-2); font-size: 1.125rem; margin-bottom: 24px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); }
.ticks li::before {
  content: ""; flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 8px;
  background: var(--secondary-container) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233540A3' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
:root[data-theme="dark"] .ticks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238490E0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ticks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238490E0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); } }
.ticks strong { font-weight: 600; }
.ticks span { color: var(--text-2); }
.note {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 24px;
  padding: 14px 16px; border-radius: var(--radius); background: var(--surface-variant);
  color: var(--text-2); font-size: .95rem; border: 1px solid var(--divider);
}
.note .icon { color: var(--secondary); margin-top: 2px; }

.feature-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 560px; }
.feature-visual::before {
  content: ""; position: absolute; inset: 8% 6%; z-index: -1; border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%;
  background: radial-gradient(circle at 30% 30%, var(--glow-1), transparent 60%), radial-gradient(circle at 70% 70%, var(--glow-2), transparent 60%);
}
.phones { display: flex; align-items: center; justify-content: center; }
.phones .phone { --w: clamp(220px, 22vw, 280px); }
.phones .phone + .phone { margin-left: calc(var(--w) * -0.28); }
.phones .phone:nth-child(1) { z-index: 2; }
.phones .phone:nth-child(2) { z-index: 1; transform: translateY(40px) scale(.9); }
.phones--three .phone:nth-child(1) { z-index: 1; transform: translateY(40px) scale(.86); }
.phones--three .phone:nth-child(2) { z-index: 3; transform: none; }
.phones--three .phone:nth-child(3) { z-index: 1; transform: translateY(40px) scale(.86); }
.phones--three .phone { --w: clamp(200px, 19vw, 260px); }

@media (max-width: 960px) {
  .feature { grid-template-columns: 1fr; }
  .feature--flip .feature-copy { order: 0; }
  .feature-visual { min-height: 0; }
}
@media (max-width: 560px) {
  .phones .phone { --w: 62vw; }
  .phones .phone + .phone { display: none; }
  .phones--three .phone { display: none; }
  .phones--three .phone:nth-child(2) { display: block; --w: 66vw; }
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; counter-reset: step; }
.step { padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); font-size: .92rem; color: var(--text-2); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; margin-bottom: 10px; background: var(--primary-container); color: var(--primary); font-weight: 700; font-size: .85rem; }
.step strong { display: block; color: var(--text); font-weight: 600; margin-bottom: 2px; }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Status legend */
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }

/* Food ticker */
.ticker { margin-top: 28px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker-track { display: flex; gap: 8px; width: max-content; animation: ticker 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker .chip { white-space: nowrap; }
.ticker .chip.is-lowgi::after { content: "Low GI"; margin-left: 4px; padding: 1px 7px; border-radius: 999px; font-size: .72rem; font-weight: 600; background: var(--secondary-container); color: var(--on-secondary-container); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Stat grid (insights) */
.mini-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 24px; }
.mini-stat { padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.mini-stat strong { display: block; font-size: 1rem; font-weight: 600; }
.mini-stat span { font-size: .9rem; color: var(--text-2); }

/* Compare slider */
.compare-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.compare { justify-self: center; }
.compare .phone { --w: clamp(250px, 26vw, 320px); }
.compare-screen { --pos: 50%; position: relative; border-radius: calc(var(--w) * .128); overflow: hidden; }
.compare-screen img { border-radius: 0; }
.compare-screen .layer-dark { position: absolute; inset: 0; height: 100%; clip-path: inset(0 0 0 var(--pos)); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--berry-300); z-index: 4; pointer-events: none; }
.compare .handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%);
  border-radius: 50%; background-color: var(--berry-600); border: 2px solid #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, .3);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18-6-6 6-6M15 6l6 6-6 6'/%3E%3C/svg%3E");
  background-size: 22px; background-repeat: no-repeat; background-position: center;
}
.compare input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; z-index: 5; margin: 0; }
.compare-labels { display: flex; justify-content: space-between; margin-top: 18px; font-size: .9rem; font-weight: 600; color: var(--text-3); }
.compare-labels span { display: inline-flex; align-items: center; gap: 6px; }
.a11y-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 28px; }
.a11y-item { display: flex; gap: 14px; }
.a11y-item .h-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--secondary-container); color: var(--secondary); }
.a11y-item h3 { font-size: 1rem; letter-spacing: -0.01em; margin-bottom: 4px; }
.a11y-item p { font-size: .93rem; color: var(--text-2); }
@media (max-width: 960px) { .compare-wrap { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .a11y-grid { grid-template-columns: 1fr; } .compare .phone { --w: 70vw; } }

/* Meters table */
.meter-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; font-size: .975rem; }
.meter-table th, .meter-table td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--divider); vertical-align: top; }
.meter-table tr:last-child td { border-bottom: 0; }
.meter-table thead th { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); font-weight: 600; background: var(--surface-variant); }
.meter-table td:first-child { font-weight: 600; }
.meter-table td:first-child small { display: block; font-weight: 400; color: var(--text-3); font-size: .85rem; }
.meter-table td { color: var(--text-2); }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .82rem; font-weight: 600; white-space: nowrap; }
.tag .icon { width: 14px; height: 14px; }
.tag--tested { background: var(--primary-container); color: var(--on-primary-container); }
.tag--standard { background: var(--secondary-container); color: var(--on-secondary-container); }
.tag--import { background: var(--surface-variant); color: var(--text-2); border: 1px solid var(--border); }
.table-scroll { overflow-x: auto; border-radius: var(--radius-lg); }
.fineprint { margin-top: 16px; font-size: .85rem; color: var(--text-3); text-align: center; }
@media (max-width: 720px) {
  .meter-table thead { display: none; }
  .meter-table, .meter-table tbody, .meter-table tr, .meter-table td { display: block; width: 100%; }
  .meter-table tr { padding: 14px 18px; border-bottom: 1px solid var(--divider); }
  .meter-table tr:last-child { border-bottom: 0; }
  .meter-table td { padding: 4px 0; border: 0; }
}

/* Privacy cards */
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.p-card { padding: 28px 24px; border-radius: var(--radius-lg); background: var(--background); border: 1px solid var(--border); }
.p-card .h-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--secondary-container); color: var(--secondary); margin-bottom: 18px; }
.p-card .h-icon .icon { width: 24px; height: 24px; }
.p-card h3 { font-size: 1.1rem; margin-bottom: 8px; letter-spacing: -0.01em; }
.p-card p { color: var(--text-2); font-size: .95rem; }
.center-link { text-align: center; margin-top: 32px; }
@media (max-width: 960px) { .cards-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards-4 { grid-template-columns: 1fr; } }

/* Setup steps (onboarding) */
.setup { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: setup; }
.setup li { list-style: none; padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.setup li::before { counter-increment: setup; content: "0" counter(setup); display: block; font-weight: 700; font-size: .9rem; color: var(--primary); margin-bottom: 12px; letter-spacing: .04em; }
.setup h3 { font-size: 1.05rem; margin-bottom: 6px; letter-spacing: -0.01em; }
.setup p { color: var(--text-2); font-size: .95rem; }
.setup { padding: 0; margin: 0; }
@media (max-width: 960px) { .setup { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .setup { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 600; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 22px; height: 22px; margin-top: -11px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
  color: var(--primary); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 22px; color: var(--text-2); }

/* Disclaimer */
.disclaimer {
  display: flex; gap: 16px; align-items: flex-start; max-width: 820px; margin: 40px auto 0;
  padding: 20px 22px; border-radius: var(--radius); background: var(--secondary-container); color: var(--on-secondary-container);
}
.disclaimer .icon { width: 24px; height: 24px; margin-top: 2px; }
.disclaimer p { font-size: .975rem; }

/* CTA */
.cta {
  position: relative; overflow: hidden; border-radius: var(--radius-xl);
  padding: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center;
  background: linear-gradient(135deg, #6E2D61 0%, #8A3A7A 45%, #3540A3 130%); color: #fff;
}
.cta::after { content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -200px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .18), transparent); }
.cta h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin-bottom: 14px; }
.cta p { opacity: .9; font-size: 1.125rem; margin-bottom: 28px; max-width: 46ch; }
.cta .store-badge { border-color: rgba(255, 255, 255, .28); }
.cta-icon { justify-self: center; position: relative; z-index: 1; width: clamp(140px, 18vw, 220px); border-radius: 26%; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .2); }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; text-align: center; } .cta p { margin-inline: auto; } .cta .store-row { justify-content: center; } .cta-icon { order: -1; } }

/* ---------- Footer ---------- */
.site-footer { padding: 64px 0 40px; border-top: 1px solid var(--divider); margin-top: clamp(64px, 9vw, 120px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin-bottom: 14px; font-weight: 600; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a { color: var(--text-2); text-decoration: none; }
.footer-grid a:hover { color: var(--text); text-decoration: underline; }
.footer-about p { color: var(--text-2); font-size: .95rem; margin-top: 14px; max-width: 34ch; }
.footer-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--divider); display: grid; gap: 10px; font-size: .82rem; color: var(--text-3); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }

/* ---------- Legal & contact pages ---------- */
.page-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 4vw, 48px); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; z-index: -1; width: 700px; height: 700px; right: -200px; top: -300px; border-radius: 50%; background: radial-gradient(closest-side, var(--glow-1), transparent); }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin: 16px 0 14px; letter-spacing: -0.035em; }
.page-hero p { color: var(--text-2); font-size: 1.125rem; max-width: 60ch; }
.page-hero .meta { margin-top: 14px; font-size: .92rem; color: var(--text-3); }

.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.toc { position: sticky; top: 96px; font-size: .92rem; }
.toc h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin-bottom: 12px; font-weight: 600; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; counter-reset: toc; border-left: 2px solid var(--divider); }
.toc a { display: block; padding: 6px 12px; color: var(--text-2); text-decoration: none; margin-left: -2px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--text); }
.toc a.is-active { color: var(--primary); border-left-color: var(--primary); font-weight: 600; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.6rem; margin: 48px 0 16px; letter-spacing: -0.02em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; margin: 28px 0 10px; letter-spacing: -0.01em; }
.prose p, .prose li { color: var(--text-2); }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 1.2em; margin: 12px 0; display: grid; gap: 8px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose .summary-box { padding: 22px 24px; border-radius: var(--radius-lg); background: var(--primary-container); color: var(--on-primary-container); margin-bottom: 40px; }
.prose .summary-box h2 { margin: 0 0 12px; font-size: 1.15rem; color: inherit; }
.prose .summary-box ul { margin: 0; }
.prose .summary-box li { color: inherit; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border: 1px solid var(--border); vertical-align: top; color: var(--text-2); }
.prose th { background: var(--surface-variant); color: var(--text); font-weight: 600; }
.prose .callout { padding: 16px 18px; border-radius: var(--radius); background: var(--secondary-container); color: var(--on-secondary-container); margin: 16px 0; }
.prose .callout p { color: inherit; }
@media (max-width: 900px) { .legal-layout { grid-template-columns: 1fr; } .toc { display: none; } .prose table { display: block; overflow-x: auto; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 24px; align-items: start; }
.form-card { padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.field { display: grid; gap: 8px; margin-bottom: 20px; align-content: start; }
.field label { font-weight: 600; font-size: .95rem; }
.field .hint { font-size: .85rem; color: var(--text-3); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem/1.5 var(--font); color: var(--text);
  background: var(--surface-variant); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 14px 16px; min-height: 52px;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--primary); outline-offset: 0; border-color: transparent; }
.field .error-text { color: var(--error); font-size: .88rem; display: none; }
.field.has-error .error-text { display: block; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--error); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-card .btn { width: 100%; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--secondary-container); color: var(--on-secondary-container); font-size: .95rem; display: none; }
.form-status.is-visible { display: block; }
.form-status.is-error { background: var(--surface-variant); color: var(--text); border: 1px solid var(--error); }
.form-status:focus { outline: none; }
.form-card .btn:disabled { opacity: .7; cursor: progress; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.side-cards { display: grid; gap: 16px; }
.side-card { padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.side-card .h-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--primary-container); color: var(--primary); margin-bottom: 14px; }
.side-card h3 { font-size: 1.05rem; margin-bottom: 6px; letter-spacing: -0.01em; }
.side-card p { color: var(--text-2); font-size: .95rem; }
.side-card a { font-weight: 600; }
.side-card--care { background: var(--secondary-container); border-color: transparent; }
.side-card--care h3, .side-card--care p { color: var(--on-secondary-container); }
.side-card--care .h-icon { background: var(--surface); color: var(--secondary); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* 404 */
.notfound { text-align: center; padding: clamp(80px, 14vw, 160px) 0; }
.notfound h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin: 20px 0 14px; }
.notfound p { color: var(--text-2); margin-bottom: 28px; }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease-out, transform .6s ease-out; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .ticker-track { animation: none; flex-wrap: wrap; width: auto; }
  .ticker { mask-image: none; -webkit-mask-image: none; }
  .ticker-track .chip[aria-hidden="true"] { display: none; }
  * { transition-duration: 0s !important; }
}
