:root {
  --primary: #254652;
  --primary-2: #2f5866;
  --primary-light: #52869c;
  --accent: #caf3ef;
  --accent-soft: #e6f8f6;
  --paper: #f3f4f6;
  --white: #ffffff;
  --ink: #0e0f0c;
  --ink-2: #454745;
  --line: rgba(14, 15, 12, 0.12);
  --orange: #ffd7c7;
  --pink: #ffd7ef;
  --blue: #a0e1e1;
  --yellow: #ffeb69;
  --plum: #260a2f;
  --maroon: #320707;
  --gold: #3a341c;
  --charcoal: #21231d;
  --corgi: #f0aa4f;
  --navy: #1f2560;
  --tongue: #db4d8f;
  --display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --body: "Figtree", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --gutter: clamp(16px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 8px; }

/* ---------- type ---------- */
.display, .display-md {
  font-family: var(--display);
  font-variation-settings: "wdth" 75, "opsz" 96;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  line-height: 0.86;
  color: var(--primary);
}
.display { font-size: clamp(50px, 10.5vw, 168px); }
.cta .display { font-size: clamp(46px, 7.4vw, 124px); }
.display-md { font-size: clamp(44px, 6.6vw, 104px); }
.display-md.light { color: var(--white); }
.hl { color: var(--primary); background: var(--accent); padding: 0 0.08em; border-radius: 0.12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hl-accent { color: var(--accent); }
.lede { font-size: clamp(18px, 1.5vw, 21px); color: var(--ink-2); max-width: 34em; font-weight: 500; }
.def { font-size: 15px; line-height: 1.5; color: var(--ink-2); max-width: 34em; margin-top: 14px; opacity: 0.85; }
.lede.light { color: rgba(255, 255, 255, 0.78); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--primary); background: var(--accent); padding: 8px 14px; border-radius: 999px;
}
.eyebrow.dark { background: var(--primary); color: var(--accent); }
.eyebrow.accent { background: var(--accent); color: var(--primary); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); animation: pulse 1.8s infinite; }
.fine { font-size: 14px; color: var(--ink-2); }

/* split words: masked rise */
.split > span { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.04em; }
.split > span > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 70ms); }
.split.in > span > span { transform: none; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.reveal-media { clip-path: inset(12% 12% 12% 12% round 40px); transition: clip-path 1.3s var(--ease); }
.reveal-media.in { clip-path: inset(0 0 0 0 round 40px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 700; font-size: 17px; text-decoration: none;
  transition: transform 0.35s var(--spring), background 0.2s, box-shadow 0.3s;
  will-change: transform;
}
.btn:active, .store-btn:active { transform: scale(0.96) !important; }
.btn-accent { background: var(--accent); color: var(--primary); }
.btn-accent:hover { background: #b4ebe5; }
.btn-ghost { color: var(--primary); box-shadow: inset 0 0 0 2px var(--primary); }
.btn-ghost:hover { background: var(--primary); color: var(--accent); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 16px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 60px; padding: 0 26px 0 20px; border-radius: 999px;
  background: var(--primary); color: var(--white); text-decoration: none;
  transition: transform 0.35s var(--spring), box-shadow 0.3s;
  box-shadow: 0 10px 30px -12px rgba(37, 70, 82, 0.6);
}
.store-btn span { display: flex; flex-direction: column; font-weight: 700; font-size: 20px; line-height: 1.05; }
.store-btn small { font-size: 12px; font-weight: 500; opacity: 0.8; }
.store-btn.dark { background: var(--primary); }
.store-btn:hover { box-shadow: 0 16px 40px -12px rgba(37, 70, 82, 0.8); }

/* ---------- progress + nav ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 60; }
.progress span { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.nav {
  position: fixed; top: 14px; left: 50%; z-index: 50;
  transform: translateX(-50%);
  width: min(1240px, calc(100% - 24px));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 10px 10px 18px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: 0 1px 0 var(--line), 0 12px 40px -24px rgba(0, 0, 0, 0.35);
  transition: transform 0.5s var(--ease);
}
.nav.hide { transform: translate(-50%, -140%); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--primary); font-variation-settings: "wdth" 85; letter-spacing: -0.01em; }
.brand img { border-radius: 10px; background: var(--white); }
.nav-links { display: flex; gap: 4px; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 14px; border-radius: 999px; transition: background 0.2s; }
.nav-links a:hover { background: var(--accent-soft); }

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center; gap: clamp(24px, 4vw, 64px);
  padding: 130px var(--gutter) 70px;
  max-width: 1440px; margin: 0 auto;
}
.hero-copy { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 600; color: var(--ink-2); }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points svg, .chip svg { width: 20px; height: 20px; fill: none; stroke: var(--primary); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; background: var(--accent); border-radius: 50%; padding: 3px; }

.hero-stage { position: relative; aspect-ratio: 1 / 1.02; }
.hero-media {
  position: absolute; inset: 0 0 8% 10%;
  border-radius: 40px; overflow: hidden; background: var(--primary);
}
.hero-video { width: 100%; height: 100%; object-fit: cover; object-position: 68% 50%; transform: scale(1.04); }
.media-tag {
  position: absolute; left: 18px; bottom: 18px;
  display: flex; align-items: center; gap: 8px;
  background: rgba(14, 15, 12, 0.55); color: var(--white); backdrop-filter: blur(10px);
  font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 999px;
}
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s infinite; }
.phone-hero { position: absolute; left: -6%; bottom: -4%; width: clamp(170px, 15vw, 230px); z-index: 2; }
.chip {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 8px;
  background: var(--white); color: var(--primary); font-weight: 700; font-size: 15px;
  padding: 10px 16px 10px 10px; border-radius: 999px;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.4);
}
.chip-a { right: -10px; top: 12%; }
.chip-b { right: 8%; bottom: 0; padding-left: 14px; background: var(--accent); }

/* ---------- phone ---------- */
.phone {
  /* Thin bezel like a current iPhone; height follows the screen's real aspect. */
  background: #0b0c0a; border-radius: 13.5% / 6.3%; padding: 8px;
  box-shadow:
    inset 0 0 0 1.5px #3a3d38,
    0 0 0 1.5px #b9bdb5,
    0 0 0 2.5px #6f736c,
    0 40px 80px -30px rgba(14, 15, 12, 0.55);
}
.phone.phone-hero { padding: 5px; }
.phone-screen {
  position: relative; width: 100%; aspect-ratio: 1206 / 2622; overflow: hidden;
  border-radius: 12% / 5.6%; background: var(--white);
  container-type: inline-size;
}
.island { position: absolute; top: 2.2%; left: 50%; width: 32%; height: 4.4%; transform: translateX(-50%); background: #000; border-radius: 99px; z-index: 5; }

.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; display: block; }
.shot-b { animation: shotfade 9s ease-in-out infinite; }
.banner {
  position: absolute; top: 6%; left: 4%; right: 4%; z-index: 6;
  display: flex; align-items: center; gap: 3cqi; text-align: left;
  background: rgba(255, 255, 255, 0.92); color: var(--ink); border-radius: 7cqi; padding: 4cqi;
  font-size: 4cqi; line-height: 1.3;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4cqi 8cqi -4cqi rgba(37, 70, 82, 0.35);
  animation: banner 6s var(--spring) infinite;
}
.banner img { width: 10cqi; height: 10cqi; border-radius: 2.6cqi; background: var(--white); flex: none; }
.banner div { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.banner b { font-weight: 700; }
.banner span { color: var(--ink-2); }
.banner em { font-style: normal; color: var(--ink-2); font-size: 3.4cqi; align-self: flex-start; }

/* ---------- marquee ---------- */
.marquee { background: var(--primary); color: var(--accent); overflow: hidden; padding: 22px 0; transform: rotate(-1.4deg) scale(1.03); margin: 30px 0 0; }
.marquee-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 75; text-transform: uppercase; font-size: clamp(28px, 3.4vw, 48px); white-space: nowrap; line-height: 1; }
.marquee i { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); flex: none; }

/* ---------- section heads ---------- */
.section-head { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }

/* ---------- how ---------- */
.how { padding: clamp(100px, 12vw, 180px) 0 clamp(80px, 8vw, 120px); }
.how-grid {
  max-width: 1240px; margin: clamp(40px, 6vw, 80px) auto 0; padding: 0 var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(24px, 6vw, 100px);
}
.how-steps { list-style: none; padding: 0; margin: 0; }
.step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; gap: 14px; opacity: 0.82; transition: opacity 0.5s var(--ease); }
.step.active { opacity: 1; }
.step-num { font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--primary); background: var(--accent); width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; }
.step h3 { font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 80; text-transform: uppercase; font-size: clamp(32px, 3.6vw, 52px); line-height: 0.92; color: var(--primary); max-width: 12em; }
.step p { font-size: 19px; color: var(--ink-2); max-width: 26em; }
.how-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; justify-content: center; gap: 24px; }
.phone-how { width: min(320px, 100%); transition: transform 0.8s var(--ease); }
.how-dots { display: flex; flex-direction: column; gap: 10px; }
.how-dots span { width: 10px; height: 10px; border-radius: 99px; background: var(--line); transition: height 0.5s var(--spring), background 0.3s; }

.screen { position: absolute; inset: 0; opacity: 0; transform: translateY(6%) scale(0.98); transition: opacity 0.55s var(--ease), transform 0.7s var(--ease); pointer-events: none; }
[data-active="0"] .s0, [data-active="1"] .s1, [data-active="2"] .s2, [data-active="3"] .s3 { opacity: 1; transform: none; }

/* ---------- alerts ---------- */
.alerts { background: var(--primary); color: var(--white); padding: clamp(90px, 11vw, 160px) var(--gutter); border-radius: 48px; margin: 0 12px; }
.alerts-inner { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.alerts-copy { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.timeline { display: flex; flex-direction: column; margin-top: 12px; width: 100%; max-width: 520px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 73px; top: 14px; bottom: 14px; width: 2px; background: rgba(255,255,255,0.15); }
.timeline::after { content: ""; position: absolute; left: 73px; top: 14px; width: 2px; height: calc((100% - 28px) * var(--tl, 0)); background: var(--accent); transition: height 0.3s linear; }
.tl-row { display: grid; grid-template-columns: 56px 34px 1fr; align-items: center; gap: 0; padding: 12px 0; opacity: 0.72; transition: opacity 0.4s; }
.tl-row.on { opacity: 1; }
.tl-time { font-family: var(--display); font-weight: 700; font-size: 20px; font-variation-settings: "wdth" 85; color: var(--accent); }
.tl-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--primary); box-shadow: inset 0 0 0 2px rgba(255,255,255,0.4); justify-self: center; position: relative; z-index: 1; transition: background 0.3s, box-shadow 0.3s; }
.tl-row.on .tl-dot { background: var(--accent); box-shadow: 0 0 0 5px rgba(202, 243, 239, 0.2); }
.tl-row.hot.on .tl-dot { background: var(--orange); box-shadow: 0 0 0 6px rgba(255, 192, 145, 0.25); animation: pulse 1.4s infinite; }
.tl-row.hot.on .tl-text { color: var(--orange); font-weight: 700; }
.tl-text { font-size: 17px; padding-left: 12px; }
.alerts-media { position: relative; aspect-ratio: 3 / 4; border-radius: 40px; overflow: hidden; }
.alerts-media video { width: 100%; height: 100%; object-fit: cover; }
.toast {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  display: flex; gap: 12px; align-items: center;
  background: rgba(255,255,255,0.92); color: var(--ink); backdrop-filter: blur(12px);
  padding: 14px; border-radius: 22px; font-size: 15px; line-height: 1.3;
  transform: translateY(140%); transition: transform 0.9s var(--spring);
}
.toast.in { transform: none; }
.toast img { width: 42px; height: 42px; border-radius: 12px; }
.toast div { display: flex; flex-direction: column; }
.toast span { color: var(--ink-2); font-size: 14px; }

/* ---------- features bento ---------- */
.features { padding: clamp(100px, 12vw, 180px) 0; }
.bento {
  max-width: 1240px; margin: clamp(40px, 6vw, 72px) auto 0; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
}
.card {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 32px; padding: 28px;
  display: flex; flex-direction: column; gap: 14px; min-height: 340px;
  opacity: 0; transform: translateY(40px) scale(0.98);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0ms);
}
.card.in { opacity: 1; transform: none; }
.card.in:hover { transform: translateY(-6px); transition-delay: 0ms; transition-duration: 0.45s; }
.card.span-2 { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 22px; align-items: stretch; }
.card-copy { display: flex; flex-direction: column; gap: 14px; }
.card h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-variation-settings: "wdth" 78; font-size: clamp(26px, 2.3vw, 34px); line-height: 0.92; letter-spacing: -0.01em; }
.card p { font-size: 15.5px; line-height: 1.5; opacity: 0.85; }
.tag { align-self: flex-start; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; padding: 6px 11px; border-radius: 999px; background: rgba(255,255,255,0.55); }
.spot::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.35), transparent 60%);
  opacity: 0; transition: opacity 0.3s;
}
.spot:hover::before { opacity: 1; }

.c-scan { background: var(--accent); color: var(--primary); }
.c-family { background: var(--pink); color: var(--plum); }
.c-remind { background: var(--yellow); color: var(--gold); }
.c-food { background: var(--orange); color: var(--maroon); }
.c-logs { background: var(--white); color: var(--primary); box-shadow: inset 0 0 0 1px var(--line); }
.c-logs .tag { background: var(--accent-soft); }
.c-streak { background: var(--primary); color: var(--accent); }
.c-streak .tag { background: rgba(202, 243, 239, 0.16); }
.c-voice { background: var(--blue); color: var(--primary); }
.c-report { background: var(--plum); color: var(--pink); }
.c-report .tag { background: rgba(255,215,239,0.14); }
.c-lang { background: var(--charcoal); color: var(--yellow); }
.c-lang .tag { background: rgba(255,235,105,0.14); }
.c-theme { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); transition: background 0.5s var(--ease), color 0.5s var(--ease), opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.c-theme.dark { background: var(--ink); color: var(--white); }
.c-theme .tag { background: var(--paper); color: var(--ink); }

/* scanner visual */
.scan-vis { position: relative; border-radius: 22px; overflow: hidden; min-height: 280px; background: var(--primary); }
.scan-vis img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.scan-line { position: absolute; left: 8%; right: 8%; height: 3px; background: var(--primary-light); box-shadow: 0 0 18px 4px rgba(82, 134, 156, 0.8); top: 12%; animation: scan 2.8s var(--ease) infinite alternate; }
.scan-corners { position: absolute; inset: 8%; border-radius: 18px;
  background:
    linear-gradient(var(--primary-light), var(--primary-light)) top left / 28px 4px no-repeat,
    linear-gradient(var(--primary-light), var(--primary-light)) top left / 4px 28px no-repeat,
    linear-gradient(var(--primary-light), var(--primary-light)) top right / 28px 4px no-repeat,
    linear-gradient(var(--primary-light), var(--primary-light)) top right / 4px 28px no-repeat,
    linear-gradient(var(--primary-light), var(--primary-light)) bottom left / 28px 4px no-repeat,
    linear-gradient(var(--primary-light), var(--primary-light)) bottom left / 4px 28px no-repeat,
    linear-gradient(var(--primary-light), var(--primary-light)) bottom right / 28px 4px no-repeat,
    linear-gradient(var(--primary-light), var(--primary-light)) bottom right / 4px 28px no-repeat; }
.scan-out { position: absolute; left: 12px; right: 12px; bottom: 12px; background: rgba(255,255,255,0.94); border-radius: 16px; padding: 12px 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; color: var(--ink); }
.scan-out small { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-2); }
.scan-out b { font-size: 14px; line-height: 1.2; display: block; min-height: 1.2em; }
.scan-out b.typing::after { content: ""; display: inline-block; width: 2px; height: 1em; background: var(--primary); margin-left: 2px; vertical-align: -2px; animation: blink 0.7s steps(1) infinite; }

/* avatars */
.avatars { display: flex; margin: 8px 0; }
.av { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 26px; margin-right: -14px; box-shadow: 0 0 0 4px var(--pink); transition: transform 0.4s var(--spring); }
.c-family:hover .av { transform: translateX(calc(var(--k) * 8px)); }
.a1 { background: var(--corgi); color: var(--navy); --k: 0; }
.a2 { background: var(--blue); color: var(--primary); --k: 1; }
.a3 { background: var(--yellow); color: var(--gold); --k: 2; }
.av.add { background: var(--plum); color: var(--pink); --k: 3; }

/* clock */
.clock { width: 120px; height: 120px; border-radius: 50%; background: var(--white); position: relative; margin: 6px 0; box-shadow: inset 0 0 0 6px var(--gold); }
.clock .hand { position: absolute; left: 50%; bottom: 50%; transform-origin: 50% 100%; border-radius: 99px; background: var(--gold); }
.clock .h { width: 6px; height: 30px; margin-left: -3px; animation: spin 24s linear infinite; }
.clock .m { width: 4px; height: 44px; margin-left: -2px; animation: spin 2s linear infinite; }
.clock .pip { position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px; border-radius: 50%; background: var(--tongue); }
.c-remind.in .clock { animation: ring 2.4s var(--ease) infinite; }

/* food */
.food-vis { position: relative; border-radius: 22px; overflow: hidden; min-height: 280px; }
.food-vis img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.c-food:hover .food-vis img { transform: scale(1.06) rotate(2deg); }
.macro { position: absolute; background: var(--white); color: var(--maroon); font-size: 13px; font-weight: 600; padding: 8px 12px; border-radius: 999px; box-shadow: 0 10px 24px -12px rgba(0,0,0,0.5); opacity: 0; transform: scale(0.6); transition: opacity 0.4s, transform 0.6s var(--spring); }
.macro b { font-family: var(--display); font-size: 17px; font-weight: 800; }
.macro.m1 { left: 10px; top: 12px; background: var(--maroon); color: var(--orange); }
.macro.m2 { right: 10px; top: 32%; }
.macro.m3 { left: 14px; bottom: 26%; }
.macro.m4 { right: 16px; bottom: 12px; }
.c-food.in .macro { opacity: 1; transform: none; }
.c-food.in .m1 { transition-delay: 0.5s; } .c-food.in .m2 { transition-delay: 0.7s; } .c-food.in .m3 { transition-delay: 0.9s; } .c-food.in .m4 { transition-delay: 1.1s; }

/* chart */
.chart { display: flex; flex-direction: column; gap: 10px; background: var(--paper); border-radius: 22px; padding: 16px; }
.chart-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.chart-tabs span { font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 999px; background: var(--white); }
.chart-tabs .on { background: var(--primary); color: var(--accent); }
.chart svg { width: 100%; height: 170px; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; fill: none; }
.chart .line { fill: none; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 2s var(--ease); vector-effect: non-scaling-stroke; }
.chart .l1 { stroke: var(--primary); }
.chart .l2 { stroke: var(--primary-light); transition-delay: 0.3s; }
.c-logs.in .line { stroke-dashoffset: 0; }
.chart-legend { display: flex; gap: 16px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.chart-legend i { display: inline-block; width: 12px; height: 4px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.k1 { background: var(--primary); } .k2 { background: var(--primary-light); }

/* streak */
.streak-num { display: flex; align-items: center; gap: 8px; }
.streak-num b { font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 75; font-size: 120px; line-height: 0.8; }
.flame { display: inline-block; width: 16px; height: 20px; background: var(--maroon); clip-path: path("M8 0 C9 5 16 8 16 13 C16 17 12.5 20 8 20 C3.5 20 0 17 0 13 C0 9 4 7 4 3 C6 5 6 6 7 7 C7.5 4 7.6 2 8 0Z"); }
/* Hero chip: a live flame. Outer body and inner core flicker out of step. */
.chip-b .flame { position: relative; width: 18px; height: 23px; margin-top: -3px; clip-path: none; background: linear-gradient(to top, #e8430b 0%, #ff7a1a 45%, #ffb23f 100%); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 20%27%3E%3Cpath d=%27M8 0C9 5 16 8 16 13C16 17 12.5 20 8 20C3.5 20 0 17 0 13C0 9 4 7 4 3C6 5 6 6 7 7C7.5 4 7.6 2 8 0Z%27/%3E%3C/svg%3E") center bottom / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 20%27%3E%3Cpath d=%27M8 0C9 5 16 8 16 13C16 17 12.5 20 8 20C3.5 20 0 17 0 13C0 9 4 7 4 3C6 5 6 6 7 7C7.5 4 7.6 2 8 0Z%27/%3E%3C/svg%3E") center bottom / contain no-repeat; transform-origin: 50% 100%; animation: flame-dance 1.5s ease-in-out infinite; }
.chip-b .flame::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 0; height: 58%; background: linear-gradient(to top, #ffd23f, #fff4c2); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 20%27%3E%3Cpath d=%27M8 0C9 5 16 8 16 13C16 17 12.5 20 8 20C3.5 20 0 17 0 13C0 9 4 7 4 3C6 5 6 6 7 7C7.5 4 7.6 2 8 0Z%27/%3E%3C/svg%3E") center bottom / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 20%27%3E%3Cpath d=%27M8 0C9 5 16 8 16 13C16 17 12.5 20 8 20C3.5 20 0 17 0 13C0 9 4 7 4 3C6 5 6 6 7 7C7.5 4 7.6 2 8 0Z%27/%3E%3C/svg%3E") center bottom / contain no-repeat; transform-origin: 50% 100%; animation: flame-core 0.9s ease-in-out infinite alternate; }
.flame.big { width: 48px; height: 60px; background: var(--orange); clip-path: path("M24 0 C27 15 48 24 48 39 C48 51 37.5 60 24 60 C10.5 60 0 51 0 39 C0 27 12 21 12 9 C18 15 18 18 21 21 C22.5 12 22.8 6 24 0Z"); animation: flicker 1.4s ease-in-out infinite; transform-origin: 50% 100%; }

/* wave */
.wave { display: flex; align-items: center; gap: 5px; height: 80px; }
.wave i { flex: 1; max-width: 8px; height: 30%; background: var(--primary); border-radius: 99px; animation: wave 1.1s ease-in-out infinite; animation-delay: calc(var(--n) * -90ms); }

/* pages */
.pages { position: relative; height: 150px; margin-top: auto; }
.pg { position: absolute; bottom: 0; left: 50%; width: 120px; height: 150px; border-radius: 10px; background: var(--pink); }
.pg.p3 { transform: translateX(-50%) rotate(-12deg) translateX(-30px); opacity: 0.45; transition: transform 0.6s var(--spring); }
.pg.p2 { transform: translateX(-50%) rotate(8deg) translateX(26px); opacity: 0.7; transition: transform 0.6s var(--spring); }
.pg.p1 { transform: translateX(-50%); background: var(--white); padding: 16px 14px; display: flex; flex-direction: column; gap: 8px; }
.pg.p1 i { height: 6px; border-radius: 3px; background: var(--plum); opacity: 0.25; }
.pg.p1 i.bar { height: 34px; opacity: 1; background: linear-gradient(90deg, var(--accent) 0 70%, var(--orange) 70% 85%, var(--paper) 85%); }
.w60 { width: 60%; } .w90 { width: 90%; } .w75 { width: 75%; } .w50 { width: 50%; }
.c-report:hover .p3 { transform: translateX(-50%) rotate(-20deg) translateX(-50px); }
.c-report:hover .p2 { transform: translateX(-50%) rotate(16deg) translateX(46px); }

/* hello */
.hello { font-family: var(--display); font-weight: 800; font-size: 54px; line-height: 1.1; height: 1.2em; overflow: hidden; }
.hello span { display: inline-block; transition: transform 0.5s var(--ease), opacity 0.5s; }
.hello span.out { transform: translateY(-100%); opacity: 0; }
.hello span.pre { transform: translateY(100%); opacity: 0; transition: none; }

/* toggle */
.toggle { width: 96px; height: 54px; border-radius: 99px; border: 0; padding: 5px; background: var(--paper); cursor: pointer; position: relative; box-shadow: inset 0 0 0 2px var(--line); transition: background 0.4s; }
.toggle span { display: block; width: 44px; height: 44px; border-radius: 50%; background: var(--yellow); box-shadow: 0 4px 10px -4px rgba(0,0,0,0.4); transition: transform 0.5s var(--spring), background 0.4s, box-shadow 0.4s; }
.toggle[aria-pressed="true"] { background: #2b2d29; }
.toggle[aria-pressed="true"] span { transform: translateX(42px); background: #d8dcd2; box-shadow: inset -10px -4px 0 0 #8e938a; }

/* ---------- assistant ---------- */
.assistant { padding: clamp(80px, 10vw, 140px) var(--gutter); background: var(--accent); border-radius: 48px; margin: 0 12px; }
.assistant-inner { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.assistant-copy { display: flex; flex-direction: column; gap: 26px; align-items: flex-start; }
.assistant .lede { color: var(--primary); }
.assistant .fine { color: var(--primary); opacity: 0.8; }
.agent-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.agent-chips li { background: var(--primary); color: var(--accent); font-weight: 700; font-size: 14px; padding: 9px 15px; border-radius: 999px; transition: transform 0.3s var(--spring); }
.agent-chips li:hover { transform: translateY(-3px) rotate(-2deg); }
.phone-chat { width: min(330px, 100%); justify-self: center; transform: rotate(3deg); }
/* ---------- story ---------- */
.story {
  max-width: 1240px; margin: 0 auto; padding: clamp(100px, 12vw, 180px) var(--gutter);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; align-items: start;
}
.story-img { margin: 0; border-radius: 32px; overflow: hidden; }
.story-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12) translateY(var(--py, 0px)); }
.story-img.a { grid-column: 1 / span 5; grid-row: 1 / span 2; aspect-ratio: 4 / 5; }
.story-copy { grid-column: 7 / span 6; display: flex; flex-direction: column; gap: 24px; padding-top: 20px; }
.story-img.b { grid-column: 7 / span 3; aspect-ratio: 4 / 5; margin-top: 30px; }
.story-img.c { grid-column: 10 / span 3; aspect-ratio: 1 / 1; margin-top: 110px; }

/* ---------- faq ---------- */
.faq { padding: 0 0 clamp(90px, 10vw, 150px); }
.faq-list { max-width: 1240px; margin: 48px auto 0; padding: 0 var(--gutter); display: flex; flex-direction: column; gap: 12px; }
details { background: var(--white); border-radius: 26px; padding: 0 28px; transition: background 0.3s; }
details[open] { background: var(--accent-soft); }
summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-variation-settings: "wdth" 80; font-size: clamp(20px, 2vw, 28px); color: var(--primary); line-height: 1; }
summary::-webkit-details-marker { display: none; }
summary i { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--accent); position: relative; transition: transform 0.4s var(--spring), background 0.3s; }
summary i::before, summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2.5px; margin: -1.25px -7px; background: var(--primary); border-radius: 2px; }
summary i::after { transform: rotate(90deg); transition: transform 0.4s var(--ease); }
details[open] summary i { background: var(--primary); transform: rotate(180deg); }
details[open] summary i::before { background: var(--accent); }
details[open] summary i::after { transform: rotate(0); background: var(--accent); }
details p { padding: 0 0 26px; max-width: 46em; color: var(--ink-2); font-size: 17px; }

/* ---------- cta ---------- */
.cta { padding: 0 12px; }
.cta-inner { max-width: 1416px; margin: 0 auto; background: var(--accent); border-radius: 48px; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: center; }
.cta-copy { padding: clamp(48px, 7vw, 110px); display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.cta .lede { color: var(--primary); }
.cta-corgi { align-self: stretch; position: relative; min-height: 380px; }
.cta-corgi img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; padding: 24px 24px 0; animation: bob 4s ease-in-out infinite; }
.cta-corgi::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 18px; height: 26px; border-radius: 50%; background: radial-gradient(closest-side, rgba(37,70,82,0.28), transparent); z-index: 0; }

/* ---------- footer ---------- */
.footer { max-width: 1416px; margin: clamp(48px, 6vw, 80px) auto 0; padding: 56px var(--gutter) 36px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 36px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)) minmax(0, 1.1fr); gap: 32px 28px; align-items: start; }
.foot-brand { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.foot-tag { font-size: 15px; color: var(--ink-2); max-width: 22em; }
.foot-col ul, .social { list-style: none; margin: 0; padding: 0; }
.foot-h { font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 80; text-transform: uppercase; font-size: 16px; letter-spacing: 0.02em; color: var(--primary); margin-bottom: 12px; }
.foot-col ul { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.foot-col a:not(.foot-store) { display: inline-block; text-decoration: none; font-weight: 600; font-size: 15.5px; color: var(--ink-2); padding: 6px 0; transition: color 0.2s; }
.foot-col a:not(.foot-store):hover { color: var(--primary); text-decoration: underline; text-underline-offset: 4px; }
.foot-get ul { gap: 10px; }
.foot-store { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 20px 0 16px; border-radius: 999px; background: var(--primary); color: var(--white); text-decoration: none; font-weight: 700; font-size: 15.5px; transition: background 0.2s, transform 0.35s var(--spring); }
.foot-store:hover { background: var(--primary-2); transform: translateY(-2px); }
.social { display: flex; flex-wrap: wrap; gap: 10px; }
.social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--primary); transition: background 0.2s, color 0.2s, transform 0.35s var(--spring); }
.social a:hover { background: var(--primary); color: var(--accent); transform: translateY(-3px); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.foot-fine { font-size: 14px; color: var(--ink-2); max-width: 46em; }
.foot-copy { font-size: 14px; color: var(--ink-2); }

/* ---------- motion helpers ---------- */
.float { animation: float 6s ease-in-out infinite; }
.float-slow { animation: float 7.5s ease-in-out infinite -2s; }
.float-slower { animation: float 9s ease-in-out infinite -4s; }
.magnetic { transition: transform 0.35s var(--spring); }

@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(82,134,156,0.6); } 100% { box-shadow: 0 0 0 12px rgba(82,134,156,0); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes scan { from { top: 12%; } to { top: 58%; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ring { 0%, 80%, 100% { transform: none; } 84% { transform: rotate(-8deg); } 88% { transform: rotate(8deg); } 92% { transform: rotate(-5deg); } 96% { transform: rotate(4deg); } }
@keyframes wave { 0%, 100% { height: 18%; } 50% { height: 100%; } }
@keyframes flame-dance { 0%, 100% { transform: scale(1, 1) skewX(0deg); } 20% { transform: scale(0.96, 1.07) skewX(-4deg); } 45% { transform: scale(1.04, 0.95) skewX(3deg); } 70% { transform: scale(0.98, 1.05) skewX(-2deg); } }
@keyframes flame-core { 0% { transform: scale(0.9, 0.82) translateX(-4%); opacity: 0.85; } 100% { transform: scale(1.06, 1.12) translateX(4%); opacity: 1; } }
@keyframes flicker { 0%, 100% { transform: scale(1) rotate(-2deg); } 50% { transform: scale(1.08, 0.94) rotate(2deg); } }
@keyframes banner { 0%, 8% { transform: translateY(-140%); opacity: 0; } 14%, 62% { transform: none; opacity: 1; } 70%, 100% { transform: translateY(-140%); opacity: 0; } }
@keyframes shotfade { 0%, 40% { opacity: 0; } 50%, 90% { opacity: 1; } 100% { opacity: 0; } }
@keyframes bob { 0%, 100% { transform: translateY(0) scale(1.02); } 50% { transform: translateY(-12px) scale(1.04); } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 110px; min-height: auto; }
  .hero-stage { max-width: 560px; width: 100%; justify-self: center; margin-top: 10px; }
  .how-grid { grid-template-columns: 1fr; }
  .how-sticky { position: sticky; top: 70px; height: auto; padding: 20px 0; order: -1; z-index: 2; background: var(--paper); }
  .phone-how { width: 150px; padding: 4px; }
  .how-dots { display: none; }
  .step { min-height: 62vh; justify-content: flex-end; padding-bottom: 8vh; }
  .alerts-inner, .assistant-inner, .cta-inner { grid-template-columns: 1fr; }
  .alerts, .assistant { border-radius: 32px; margin: 0 8px; }
  .story-copy { grid-column: 1 / -1; order: -1; }
  .story-img.a { grid-column: 1 / -1; grid-row: auto; }
  .story-img.b { grid-column: 1 / span 6; margin-top: 0; }
  .story-img.c { grid-column: 7 / span 6; margin-top: 40px; }
  .cta-corgi { min-height: 320px; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .card.span-2 { grid-column: auto; grid-template-columns: 1fr; }
  .scan-out { grid-template-columns: 1fr; }
  .chip-a { right: 0; }
  .phone-hero { width: 150px; left: 0; padding: 4px; }
  .hero-media { inset: 0 0 10% 16%; }
  .timeline::before, .timeline::after { left: 62px; }
  .tl-row { grid-template-columns: 46px 34px 1fr; }
  details { padding: 0 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .split > span > span, .reveal, .card { transform: none !important; opacity: 1 !important; }
  .reveal-media { clip-path: none; }
  .banner { transform: none !important; opacity: 1 !important; }
  .shot-b { opacity: 0 !important; }
}

/* languages banner */
.card.span-4 { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; gap: 24px; min-height: 260px; }
.c-lang .hello { font-size: clamp(64px, 9vw, 150px); font-variation-settings: "wdth" 75; text-transform: uppercase; line-height: 1.05; height: 1.15em; text-align: right; color: var(--yellow); }
@media (max-width: 640px) { .card.span-4 { grid-template-columns: 1fr; } .c-lang .hello { text-align: left; } }

/* footer responsive */
@media (max-width: 1000px) {
  .foot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
  .foot-get { grid-column: 1 / -1; }
  .foot-get ul { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 720px) {
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer { padding-top: 40px; }
}
