/* IntelEat website. Colors and fonts match the app. */
:root {
  --stone: #D7D1C4;
  --paper: #EEEAE0;
  --ink: #23281F;
  --ink-soft: #4E5547;
  --ink-faint: #6C7264;
  --sage: #52705A;
  --forest: #34462F;
  --gold: #93764F;
  --line: rgba(35, 40, 31, 0.16);
  --line-strong: #23281F;
  --on-forest: #F3F0E6;
  --focus: #93764F;
  --radius-lg: 22px;
  --radius-sm: 10px;
  color-scheme: light;
}
/* Dark mode: follows the device until the person picks with the switch (data-theme). */
:root[data-theme="dark"] {
  --stone: #121310;
  --paper: #1C1E19;
  --ink: #ECE8DD;
  --ink-soft: #C3C0B5;
  --ink-faint: #9A988E;
  --sage: #8FB093;
  --forest: #2B3A28;
  --gold: #C7AD82;
  --line: rgba(236, 232, 221, 0.16);
  --line-strong: #ECE8DD;
  --on-forest: #ECE8DD;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --stone: #121310;
    --paper: #1C1E19;
    --ink: #ECE8DD;
    --ink-soft: #C3C0B5;
    --ink-faint: #9A988E;
    --sage: #8FB093;
    --forest: #2B3A28;
    --gold: #C7AD82;
    --line: rgba(236, 232, 221, 0.16);
    --line-strong: #ECE8DD;
    --on-forest: #ECE8DD;
    color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--stone); color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.6;
}
a { color: var(--sage); text-underline-offset: 3px; }
a:hover { color: var(--forest); }
:root[data-theme="dark"] a:hover { color: var(--gold); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) a:hover { color: var(--gold); } }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--paper); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 16px; }

h1, h2, h3, .brand, .amount, .label-title {
  font-family: "Fraunces", Georgia, serif; font-weight: 600; letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 6vw, 3.9rem); line-height: 1.05; margin: 0 0 18px; }
h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); line-height: 1.2; margin: 0 0 16px; }
h3 { font-size: 1.15rem; line-height: 1.3; margin: 0 0 6px; }
p { margin: 0 0 14px; }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 36em; }
.fine { font-size: 0.875rem; color: var(--ink-faint); }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 28px; } }
.narrow { max-width: 760px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 1.3rem; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #B0916A, #7C6242); color: #34462F; }
.main-nav { display: flex; align-items: center; gap: 18px; }
.main-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.main-nav a:not(.btn):hover, .main-nav a[aria-current="page"] { color: var(--sage); text-decoration: underline; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--sage); color: #fff; text-decoration: none; font-weight: 600;
  border-radius: 100px; padding: 13px 24px; border: 1.5px solid var(--sage); font-size: 1rem;
}
.btn:hover { background: var(--forest); border-color: var(--forest); color: #fff; }
.btn-small { padding: 8px 16px; font-size: 0.9rem; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--line-strong); }
.btn-light { background: var(--on-forest); color: #34462F; border-color: var(--on-forest); }
.btn-light:hover { background: #fff; color: #34462F; border-color: #fff; }
:root[data-theme="dark"] .btn { color: #121310; } :root[data-theme="dark"] .btn:hover { color: #ECE8DD; }
:root[data-theme="dark"] .btn-ghost { color: var(--ink); } :root[data-theme="dark"] .btn-light { color: #1C1E19; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn { color: #121310; } :root:not([data-theme="light"]) .btn:hover { color: #ECE8DD; }
  :root:not([data-theme="light"]) .btn-ghost { color: var(--ink); } :root:not([data-theme="light"]) .btn-light { color: #1C1E19; }
}

/* Hero */
.hero { padding: 56px 0 64px; }
.hero-grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 64px; } .hero { padding: 84px 0 92px; } }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 14px; }

/* The food-label panel: the page's one bold element. */
.label {
  margin: 0; background: #FBF9F3; color: #1A1D17; border: 3px solid #1A1D17;
  padding: 14px 16px 12px; max-width: 420px; width: 100%; justify-self: center;
  box-shadow: 10px 10px 0 var(--forest);
  font-size: 0.95rem;
}
.label-head { border-bottom: 10px solid #1A1D17; padding-bottom: 6px; margin-bottom: 2px; }
.label-title { font-size: 2.1rem; line-height: 1; margin: 0 0 6px; }
.label-sub { margin: 0; font-size: 0.85rem; }
.label-row { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px solid #1A1D17; }
.label-row span:first-child { font-weight: 700; }
.label-row span:last-child { text-align: right; }
.label-thick { border-bottom-width: 5px; }
.label-last { border-bottom: 6px solid #1A1D17; }
.label .grade { background: #3A5240; color: #fff; padding: 1px 9px; border-radius: 4px; font-weight: 700; }
.label .ok { color: #3A5240; font-weight: 600; }
.label figcaption { font-size: 0.78rem; color: #4E5547; margin-top: 8px; }

/* Sections */
.section { padding: 64px 0; border-top: 1px solid var(--line); }
.section-tight { padding-top: 8px; border-top: 0; }
.section-alt { background: var(--paper); }
.section-lede { color: var(--ink-soft); max-width: 40em; margin-bottom: 28px; }
.page-head { padding: 56px 0 28px; }
.page-head h1 { font-size: clamp(2.1rem, 5vw, 3.1rem); }

/* Features as a definition list, two columns on wide screens */
.features { display: grid; gap: 28px 48px; margin: 28px 0 0; }
@media (min-width: 760px) { .features { grid-template-columns: 1fr 1fr; } }
.features div { border-left: 3px solid var(--gold); padding-left: 16px; }
.features dt { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.2rem; margin-bottom: 4px; }
.features dd { margin: 0; color: var(--ink-soft); }

/* Plans */
.plans { display: grid; gap: 18px; }
@media (min-width: 860px) { .plans { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.plan { background: var(--stone); border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 26px 24px; display: flex; flex-direction: column; }
.section-alt .plan { background: var(--stone); }
.plan h3 { font-size: 1.4rem; margin-bottom: 8px; }
.price { margin: 0 0 6px; display: flex; align-items: baseline; gap: 8px; }
.amount { font-size: 2.6rem; line-height: 1; }
.per { color: var(--ink-faint); font-size: 0.95rem; }
.plan-tag { color: var(--ink-soft); min-height: 3.2em; }
.checks { list-style: none; padding: 0; margin: 8px 0 24px; flex: 1; }
.checks li { position: relative; padding: 6px 0 6px 28px; border-top: 1px solid var(--line); }
.checks li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 11px; height: 6px; border-left: 2px solid var(--sage); border-bottom: 2px solid var(--sage); transform: rotate(-45deg); }
.plan .btn { width: 100%; }
.plan-featured { background: var(--forest) !important; color: var(--on-forest); border-color: var(--forest); }
.plan-featured .per, .plan-featured .plan-tag { color: rgba(243, 240, 230, 0.78); }
.plan-featured .checks li { border-top-color: rgba(243, 240, 230, 0.2); }
.plan-featured .checks li::before { border-color: #C7AD82; }
.plan-badge { display: inline-block; align-self: flex-start; background: #C7AD82; color: #2B2A1F; font-size: 0.8rem; font-weight: 700; padding: 3px 10px; border-radius: 100px; margin-bottom: 12px; }
.center-note { margin-top: 22px; }

/* Long-form pages */
.prose h2 { margin-top: 40px; font-size: 1.45rem; scroll-margin-top: 16px; }
.prose h3 { margin-top: 24px; }
.prose p, .prose li { color: var(--ink-soft); max-width: 68ch; }
.prose ul { padding-left: 22px; margin: 0 0 16px; }
.prose li { margin-bottom: 8px; }
.toc { background: var(--paper); border-radius: var(--radius-sm); padding: 18px 20px; margin: 8px 0 12px; }
.toc-title { font-weight: 700; margin: 0 0 8px; color: var(--ink); }
.toc ol { list-style: none; padding: 0; margin: 0; columns: 1; }
@media (min-width: 640px) { .toc ol { columns: 2; column-gap: 28px; } }
.toc li { margin: 0 0 6px; break-inside: avoid; font-size: 0.93rem; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 28px; margin-top: 24px; }
.footer-row { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; }
.brand-footer { font-size: 1.15rem; margin-bottom: 10px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: flex-start; max-width: 520px; }
.footer-nav a { color: var(--ink); font-size: 0.93rem; }
.footer-nav a[aria-current="page"] { color: var(--sage); }
.copy { margin-top: 18px; }

@media (max-width: 520px) {
  .main-nav { gap: 14px; }
  .label { box-shadow: 6px 6px 0 var(--forest); }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
html { scroll-behavior: smooth; }

/* =========================================================
   HOME PAGE MOTION (only on the home page: body.home)
   Everything is readable without JavaScript and with
   "reduce motion" on; animations only add to it.
   ========================================================= */
.eyebrow { font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.hero-title .accent { color: var(--sage); }
.home .hero { position: relative; overflow: hidden; }
.home .hero::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; right: -160px; top: -180px; background: radial-gradient(circle, rgba(82,112,90,.22), transparent 70%); animation: drift 14s ease-in-out infinite alternate; pointer-events: none; }
.home .hero::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; left: -140px; bottom: -200px; background: radial-gradient(circle, rgba(147,118,79,.18), transparent 70%); animation: drift 18s ease-in-out infinite alternate-reverse; pointer-events: none; }
@keyframes drift { to { transform: translate(-40px, 30px) scale(1.08); } }

/* Hero text: words rise in one after another */
.word, .rise { display: inline-block; opacity: 0; transform: translateY(18px); animation: rise .8s cubic-bezier(.16,1,.3,1) forwards; animation-delay: var(--d, 0s); }
.rise { display: block; }
.hero-actions.rise { display: flex; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Hero label: scanned row by row */
.hero-visual { position: relative; justify-self: center; width: 100%; max-width: 420px; }
.hero-visual { padding: 18px 0; }
.label-live { position: relative; overflow: hidden; animation: labelIn .9s cubic-bezier(.16,1,.3,1) .3s backwards; }
@keyframes labelIn { from { opacity: 0; transform: translateY(30px) rotate(-2deg); } }
.label-live .label-row { opacity: 0; transform: translateX(-10px); animation: rowIn .5s ease forwards; animation-delay: calc(.9s + var(--i) * .16s); }
@keyframes rowIn { to { opacity: 1; transform: none; } }
.label-live .grade { display: inline-block; animation: pop .5s cubic-bezier(.3,1.6,.5,1) 1.15s backwards; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
.scanline { position: absolute; left: 0; right: 0; height: 3px; top: 0; background: linear-gradient(90deg, transparent, #52705A, transparent); box-shadow: 0 0 14px 3px rgba(82,112,90,.5); animation: scan 3.2s ease-in-out .6s infinite; z-index: 2; }
@keyframes scan { 0% { top: 0; opacity: 0; } 10% { opacity: 1; } 50% { top: calc(100% - 3px); } 90% { opacity: 1; } 100% { top: 0; opacity: 0; } }
.float-chip { position: absolute; background: var(--paper); color: var(--ink); border: 1.5px solid var(--line); border-radius: 100px; padding: 6px 12px; font-size: .8rem; font-weight: 600; white-space: nowrap; box-shadow: 0 8px 24px rgba(0,0,0,.12); opacity: 0; animation: chipIn .6s ease forwards, bob 5s ease-in-out infinite; }
.chip-a { top: -18px; left: 18px; animation-delay: 2.4s, 3s; }
.chip-b { bottom: -18px; left: 18px; animation-delay: 2.7s, 3.3s; }
.chip-c { top: -18px; right: 6px; animation-delay: 3s, 3.6s; }
@keyframes chipIn { from { opacity: 0; transform: translateY(10px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes bob { 50% { transform: translateY(-7px); } }
@media (max-width: 420px) { .chip-a { left: 6px; } .chip-c { right: 0; } .float-chip { font-size: .72rem; padding: 5px 10px; } }

/* Moving feature strip */
.ticker { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--forest); color: var(--on-forest); padding: 13px 0; }
.ticker-track { display: flex; gap: 0; width: max-content; animation: ticker 40s linear infinite; }
.ticker-track span { font-family: "Fraunces", Georgia, serif; font-size: 1.05rem; padding: 0 22px; white-space: nowrap; }
.ticker-track span::after { content: "✦"; margin-left: 44px; color: #C7AD82; font-size: .8rem; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Scroll reveal */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.js .reveal.in { opacity: 1; transform: none; }

/* How it works */
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; position: relative; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.step { background: var(--paper); border-radius: var(--radius-lg); padding: 24px; position: relative; transition: transform .3s ease, box-shadow .3s ease; }
.step:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.08); }
.step p { color: var(--ink-soft); margin: 0; }
.step-num { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--sage); color: #fff; font-weight: 700; margin-bottom: 14px; }
.js .steps .step { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.js .steps.in .step { opacity: 1; transform: none; }
.js .steps.in .step:nth-child(2) { transition-delay: .18s; } .js .steps.in .step:nth-child(3) { transition-delay: .36s; }
.steps.in .step-num { animation: pulseNum 2.4s ease-out 1; }
@keyframes pulseNum { 0% { box-shadow: 0 0 0 0 rgba(82,112,90,.6); } 100% { box-shadow: 0 0 0 16px rgba(82,112,90,0); } }

/* Feature spotlights */
.spot { display: grid; gap: 28px; align-items: center; padding: 34px 0; border-top: 1px solid var(--line); }
.spot:first-of-type { border-top: 0; }
@media (min-width: 900px) { .spot { grid-template-columns: 1.05fr .95fr; gap: 56px; padding: 48px 0; } .spot-flip .spot-copy { order: 2; } }
.spot h3 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); margin-bottom: 10px; }
.spot-copy > p { color: var(--ink-soft); }
.spot-tag { font-size: .8rem; font-weight: 700; color: var(--sage); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.spot-tag-gold { color: var(--gold); }
.benefits { list-style: none; padding: 0; margin: 14px 0 0; }
.benefits li { position: relative; padding: 5px 0 5px 26px; color: var(--ink); }
.benefits li::before { content: ""; position: absolute; left: 3px; top: 12px; width: 11px; height: 6px; border-left: 2px solid var(--sage); border-bottom: 2px solid var(--sage); transform: rotate(-45deg); }
.js .spot .benefits li { opacity: 0; transform: translateX(-8px); transition: opacity .5s ease, transform .5s ease; }
.js .spot.in .benefits li { opacity: 1; transform: none; }
.js .spot.in .benefits li:nth-child(2) { transition-delay: .12s; } .js .spot.in .benefits li:nth-child(3) { transition-delay: .24s; } .js .spot.in .benefits li:nth-child(4) { transition-delay: .36s; }
.demo { background: var(--stone); border-radius: var(--radius-lg); padding: 24px; min-height: 250px; display: flex; flex-direction: column; justify-content: center; gap: 14px; position: relative; overflow: hidden; border: 1.5px solid var(--line); }
.spot-hero .demo { background: var(--forest); border-color: var(--forest); }

/* Demo: barcode */
.phone { background: var(--paper); border-radius: 18px; padding: 18px; display: grid; gap: 14px; }
.barcode { position: relative; color: var(--ink); background: #fff; border-radius: 10px; padding: 6px; }
.barcode svg { width: 100%; height: 90px; display: block; color: #1A1D17; }
.laser { position: absolute; left: 4%; right: 4%; height: 2px; top: 50%; background: #D9534F; box-shadow: 0 0 10px 2px rgba(217,83,79,.7); }
.spot.in .laser { animation: laser 1.6s ease-in-out infinite; }
@keyframes laser { 0%,100% { top: 18%; } 50% { top: 82%; } }
.result-pop { display: flex; gap: 12px; align-items: center; opacity: 0; transform: translateY(12px); }
.spot.in .result-pop { animation: rise .7s cubic-bezier(.16,1,.3,1) 1.2s forwards; }
.result-pop small { display: block; color: var(--ink-faint); font-size: .8rem; }
.ring { position: relative; width: 52px; height: 52px; flex-shrink: 0; }
.ring svg { width: 52px; height: 52px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 4; }
.ring-bg { stroke: var(--line); }
.ring-fg { stroke: var(--sage); stroke-linecap: round; stroke-dasharray: 100.5; stroke-dashoffset: 100.5; }
.spot.in .ring-fg { animation: ringFill 1.2s ease 1.5s forwards; }
@keyframes ringFill { to { stroke-dashoffset: 28; } }
.ring span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; }

/* Demo: plate */
.demo-plate { align-items: center; }
.plate { width: 170px; height: 170px; border-radius: 50%; background: #FBF9F3; border: 10px solid #E4DFD2; position: relative; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.food { position: absolute; border-radius: 45%; }
.f1 { width: 70px; height: 46px; background: #B9804A; top: 34px; left: 26px; transform: rotate(-12deg); }
.f2 { width: 64px; height: 56px; background: #E9DFC2; top: 76px; left: 76px; border-radius: 50%; }
.f3 { width: 52px; height: 40px; background: #5E8A4F; top: 30px; left: 92px; border-radius: 40% 60% 50% 50%; }
.sweep { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(82,112,90,.35) 50%, transparent 60%); transform: translateY(-100%); }
.spot.in .sweep { animation: sweep 2.2s ease-in-out 2 forwards; }
@keyframes sweep { to { transform: translateY(100%); } }
.tags { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 290px; }
.tag { background: var(--paper); border: 1.5px solid var(--line); border-radius: 12px; padding: 8px 12px; font-size: .88rem; font-weight: 500; opacity: 0; transform: translateX(16px); }
.tag s { color: var(--ink-faint); }
.tag-go { background: var(--sage); color: #fff; border-color: var(--sage); text-align: center; font-weight: 700; }
.spot.in .t1 { animation: slideTag .5s ease 1.4s forwards; } .spot.in .t2 { animation: slideTag .5s ease 1.9s forwards; }
.spot.in .t3 { animation: slideTag .5s ease 2.4s forwards; } .spot.in .t4 { animation: slideTag .5s ease 3s forwards, glow 2s ease 3.6s infinite; }
@keyframes slideTag { to { opacity: 1; transform: none; } }
@keyframes glow { 50% { box-shadow: 0 0 0 6px rgba(82,112,90,.25); } }

/* Demo: typing */
.type-box { background: var(--paper); border-radius: 14px; padding: 16px; min-height: 84px; font-size: 1.02rem; border: 1.5px solid var(--line); }
.caret { display: inline-block; width: 2px; height: 1.1em; background: var(--sage); vertical-align: -3px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.type-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tc { background: var(--sage); color: #fff; border-radius: 100px; padding: 6px 12px; font-size: .85rem; font-weight: 600; opacity: 0; transform: scale(.8); }
.spot.in .c1 { animation: popIn .45s cubic-bezier(.3,1.6,.5,1) 2.6s forwards; } .spot.in .c2 { animation: popIn .45s cubic-bezier(.3,1.6,.5,1) 2.85s forwards; } .spot.in .c3 { animation: popIn .45s cubic-bezier(.3,1.6,.5,1) 3.1s forwards; }
@keyframes popIn { to { opacity: 1; transform: none; } }

/* Demo: results */
.res-card { background: var(--paper); color: var(--ink); border-radius: 18px; padding: 18px; }
.res-label { font-size: .72rem; font-weight: 700; color: var(--sage); letter-spacing: .06em; margin: 0 0 4px; }
.res-head { font-family: "Fraunces", Georgia, serif; font-size: 1.15rem; margin: 0 0 8px; }
.res-head b { color: var(--sage); }
.res-line { width: 100%; height: 70px; display: block; }
.res-line path { fill: none; stroke: var(--sage); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.spot.in .res-line path { animation: draw 1.8s ease .3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.week { display: flex; gap: 6px; margin: 10px 0 8px; }
.week span { flex: 1; height: 8px; border-radius: 4px; background: var(--line); }
.week span.on { background: var(--sage); transform: scaleX(0); transform-origin: left; }
.spot.in .week span.on { animation: fillBar .4s ease forwards; }
.spot.in .week span:nth-child(1) { animation-delay: 1.2s; } .spot.in .week span:nth-child(3) { animation-delay: 1.4s; } .spot.in .week span:nth-child(4) { animation-delay: 1.6s; } .spot.in .week span:nth-child(6) { animation-delay: 1.8s; }
@keyframes fillBar { to { transform: scaleX(1); } }
.res-sub { font-size: .85rem; color: var(--ink-soft); margin: 0 0 8px; }
.res-insight { font-size: .88rem; font-weight: 600; color: var(--sage); margin: 0; opacity: 0; }
.spot.in .res-insight { animation: rise .6s ease 2.3s forwards; transform: translateY(8px); }

/* Demo: stamp */
.demo-stamp { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px; }
.stamp { text-align: center; }
.stamp svg { width: 140px; height: 140px; color: var(--ink); }
.spot.in .stamp svg { animation: stampDown .6s cubic-bezier(.3,1.5,.5,1) .3s backwards; }
@keyframes stampDown { from { transform: scale(1.6) rotate(-12deg); opacity: 0; } }
.st-ring { fill: none; stroke: currentColor; stroke-width: 3; } .st-ring.thin { stroke-width: 1.5; }
.st-arc { font-size: 7.4px; font-weight: 700; fill: currentColor; letter-spacing: .4px; }
.st-est { font-size: 12px; font-weight: 700; fill: currentColor; } .st-num { font-size: 22px; font-weight: 800; fill: currentColor; font-family: "Fraunces", Georgia, serif; }
.stamp-note { font-size: .75rem; color: var(--ink-faint); margin: 4px 0 0; }
.plant { background: var(--paper); border-radius: 16px; padding: 14px 16px; display: grid; gap: 3px; font-size: .88rem; min-width: 210px; opacity: 0; transform: translateX(20px); border: 1.5px solid var(--line); }
.plant span { color: var(--ink-soft); }
.spot.in .plant { animation: slideTag .6s ease 1.2s forwards; }
.pchips { display: flex; gap: 6px; margin-top: 4px; }
.pchips i { font-style: normal; font-size: .75rem; font-weight: 700; color: var(--sage); background: rgba(82,112,90,.14); padding: 2px 9px; border-radius: 100px; }

/* Demo: chat */
.demo-chat { gap: 10px; }
.bub { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: .92rem; line-height: 1.5; opacity: 0; transform: translateY(10px); }
.bub.me { align-self: flex-end; background: var(--sage); color: #fff; border-bottom-right-radius: 4px; }
.bub.ai { align-self: flex-start; background: var(--paper); border-bottom-left-radius: 4px; border: 1.5px solid var(--line); }
.spot.in .bub.me { animation: rise .5s ease .3s forwards; }
.spot.in .bub.dots { animation: rise .4s ease 1s forwards, hide .2s ease 2.6s forwards; display: flex; gap: 5px; }
.bub.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); animation: think 1s ease-in-out infinite; }
.bub.dots i:nth-child(2) { animation-delay: .15s; } .bub.dots i:nth-child(3) { animation-delay: .3s; }
@keyframes think { 50% { transform: translateY(-4px); opacity: .5; } }
@keyframes hide { to { opacity: 0; height: 0; padding: 0; margin: 0; border-width: 0; } }
.spot.in .bub.answer { animation: rise .6s ease 2.8s forwards; }

/* More grid */
.mini-grid { display: grid; gap: 16px; margin-top: 24px; }
@media (min-width: 640px) { .mini-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .mini-grid { grid-template-columns: repeat(3, 1fr); } }
.mini { background: var(--paper); border-radius: var(--radius-lg); padding: 22px; transition: transform .3s ease, box-shadow .3s ease; }
.mini:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 14px 30px rgba(0,0,0,.08); }
.mini p { color: var(--ink-soft); margin: 0; }
.mini-ic { width: 42px; height: 42px; border-radius: 12px; background: rgba(82,112,90,.14); color: var(--sage); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 12px; transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.mini:hover .mini-ic { transform: scale(1.15) rotate(-8deg); }
.js .mini-grid .mini { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease, box-shadow .3s ease; }
.js .mini-grid.in .mini { opacity: 1; transform: none; }
.js .mini-grid.in .mini:nth-child(2) { transition-delay: .08s; } .js .mini-grid.in .mini:nth-child(3) { transition-delay: .16s; } .js .mini-grid.in .mini:nth-child(4) { transition-delay: .24s; } .js .mini-grid.in .mini:nth-child(5) { transition-delay: .32s; } .js .mini-grid.in .mini:nth-child(6) { transition-delay: .4s; }

/* Benefits band */
.section-forest { background: var(--forest); color: var(--on-forest); border-top: 0; }
.section-forest h2 { color: var(--on-forest); }
.why { display: grid; gap: 22px 40px; margin-top: 24px; }
@media (min-width: 760px) { .why { grid-template-columns: repeat(3, 1fr); } }
.why div { border-top: 2px solid #C7AD82; padding-top: 14px; }
.why h3 { color: var(--on-forest); }
.why p { color: rgba(243,240,230,.8); margin: 0; }
.js .why div { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .why.in div { opacity: 1; transform: none; }
.js .why.in div:nth-child(2) { transition-delay: .1s; } .js .why.in div:nth-child(3) { transition-delay: .2s; } .js .why.in div:nth-child(4) { transition-delay: .3s; } .js .why.in div:nth-child(5) { transition-delay: .4s; } .js .why.in div:nth-child(6) { transition-delay: .5s; }

/* Plans and buttons */
.home .plan { transition: transform .3s ease, box-shadow .3s ease; }
.home .plan:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(0,0,0,.12); }
.btn { transition: background .2s ease, transform .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-shine { position: relative; overflow: hidden; }
.btn-shine::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); animation: shine 3.5s ease-in-out 2s infinite; }
@keyframes shine { 0% { left: -60%; } 40%, 100% { left: 130%; } }
.cta-band { text-align: center; background: var(--paper); }
.center { text-align: center; }
.cta-band p { color: var(--ink-soft); }

/* Reduce motion: show everything, still and complete */
@media (prefers-reduced-motion: reduce) {
  .home *, .home *::before, .home *::after { animation: none !important; transition: none !important; }
  .word, .rise, .label-live .label-row, .float-chip, .result-pop, .tag, .tc, .plant, .bub, .res-insight, .js .reveal, .js .steps .step, .js .spot .benefits li, .js .mini-grid .mini, .js .why div { opacity: 1 !important; transform: none !important; }
  .bub.dots, .scanline, .laser, .sweep { display: none !important; }
  .res-line path, .ring-fg { stroke-dashoffset: 0 !important; }
  .week span.on { transform: none !important; }
}

/* Light / dark switch in the top bar */
body { transition: background-color .4s ease, color .4s ease; }
.theme-toggle { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; transition: transform .3s ease, background-color .4s ease, border-color .4s ease; }
.theme-toggle:hover { transform: rotate(-12deg) scale(1.06); border-color: var(--sage); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .i-sun { display: none; }
.is-dark .theme-toggle .i-sun { display: block; animation: spinIn .5s cubic-bezier(.3,1.5,.5,1); }
.is-dark .theme-toggle .i-moon { display: none; }
.theme-toggle .i-moon { animation: spinIn .5s cubic-bezier(.3,1.5,.5,1); }
@keyframes spinIn { from { transform: rotate(-90deg) scale(.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .theme-toggle svg { animation: none !important; } body { transition: none; } }
.theme-toggle { flex-shrink: 0; }
.btn-small { white-space: nowrap; }
@media (max-width: 520px) {
  .header-row { position: relative; }
  .main-nav .theme-toggle { position: absolute; top: 12px; right: 16px; }
  .main-nav { gap: 14px; font-size: .92rem; }
}
@media (max-width: 370px) { .main-nav { gap: 11px; } .main-nav a:not(.btn) { font-size: .88rem; } .btn-small { padding: 8px 13px; } }

/* Limited-time offer card (shown only during the offer dates). */
.promo { border: 2px solid var(--sage); background: var(--paper); border-radius: var(--radius-lg); padding: 24px; margin: 0 0 28px; }
.promo[hidden] { display: none; }
.promo-kicker { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sage); margin: 0 0 6px; }
.promo h3 { margin: 0 0 10px; }
.promo-prices { color: var(--ink-soft); margin: 0 0 12px; }
.promo-code { font-weight: 600; margin: 0 0 12px; }
.promo-code .code { display: inline-block; border: 1.5px dashed var(--sage); border-radius: var(--radius-sm); padding: 4px 14px; letter-spacing: .14em; font-weight: 700; margin-left: 4px; background: var(--stone); }
.promo-fine { font-size: .88rem; color: var(--ink-faint); margin: 0 0 16px; line-height: 1.55; }

/* ---------- Opening scan (intro.js) ---------- */
/* html.intro is set in the head before the page draws, so nothing flashes first. */
html.intro { overflow: hidden; }
html.intro body { overflow: hidden; }
html.intro::before { content: ""; position: fixed; inset: 0; background: #fff; z-index: 9998; }
/* Hold the hero's own entrance until the page is revealed, and show the hero card
   finished so the intro card lands on it. */
html.intro .hero .word, html.intro .hero .rise, html.intro .float-chip { animation-play-state: paused; }
html.intro-run .hero-visual .label-live, html.intro-run .hero-visual .label-live .label-row, html.intro-run .hero-visual .label-live .grade, html.intro-done .hero-visual .label-live, html.intro-done .hero-visual .label-live .label-row, html.intro-done .hero-visual .label-live .grade { animation: none; opacity: 1; transform: none; }
html.intro-run .hero-visual .label-live { visibility: hidden; }
.ie-intro { position: fixed; inset: 0; z-index: 9999; background: #fff; display: flex; align-items: center; justify-content: center; transition: background-color .9s ease; }
.ie-intro.leaving { background: rgba(255,255,255,0); pointer-events: none; }
.ie-intro-scan { position: relative; width: min(300px, 72vw); padding: 26px 22px; animation: ieCodeIn .5s cubic-bezier(.16,1,.3,1) both; transition: opacity .25s ease, transform .3s ease; }
.ie-intro.scanned .ie-intro-scan { opacity: 0; transform: scale(.92); }
.ie-intro-code { display: block; width: 100%; height: auto; }
.ie-intro-scan .c { position: absolute; width: 28px; height: 28px; border: 3.5px solid #93764F; }
.ie-intro-scan .tl { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 8px; }
.ie-intro-scan .tr { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 8px; }
.ie-intro-scan .bl { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 8px; }
.ie-intro-scan .br { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 8px; }
.ie-intro-laser { position: absolute; left: 10px; right: 10px; top: 18%; height: 2.5px; border-radius: 2px; background: #D64545; box-shadow: 0 0 10px 2px rgba(214,69,69,.55); opacity: 0; animation: ieLaser .9s ease-in-out .35s both; }
@keyframes ieCodeIn { from { opacity: 0; transform: scale(.9); } }
@keyframes ieLaser { 0% { top: 15%; opacity: 0; } 12% { opacity: 1; } 50% { top: 82%; } 88% { opacity: 1; } 100% { top: 45%; opacity: 1; } }
.ie-intro-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.ie-intro.scanned .ie-intro-flash { animation: ieFlash .45s ease-out; }
@keyframes ieFlash { 0% { opacity: 0; background: #FFF6DA; } 25% { opacity: 1; } 100% { opacity: 0; } }
.ie-intro-card { position: fixed; left: 50%; top: 50%; width: min(420px, 88vw); margin: 0; box-sizing: border-box; translate: -50% -50%; opacity: 0; transform: scale(.94); transform-origin: center; transition: opacity .35s ease, transform .95s cubic-bezier(.65,0,.35,1); }
.ie-intro-card.show { opacity: 1; transform: none; }
.ie-intro.leaving .ie-intro-card { transition: transform .9s cubic-bezier(.65,0,.35,1), opacity .5s ease; }
.ie-intro-card .label-row { opacity: 0; transform: translateX(-10px); }
.ie-intro-card.show .label-row { animation: rowIn .4s ease forwards; animation-delay: calc(.15s + var(--i) * .12s); }
.ie-intro-card.show .grade { display: inline-block; animation: pop .5s cubic-bezier(.3,1.6,.5,1) .35s backwards; }
.ie-intro-skip { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 2; border: 0; background: transparent; color: #6C7264; font: 600 14px Inter, Arial, sans-serif; padding: 10px 12px; cursor: pointer; }
.ie-intro.leaving .ie-intro-skip { opacity: 0; }
@media (prefers-reduced-motion: reduce) { html.intro::before { display: none; } }
