/* AI Summer — shared styles.
   Design system v3: ink for action, DietSnap sky blue as the single accent,
   gold only for highlights. Neutral borders, crisp low shadows, one radius scale. */

:root {
  --sky-50: #f2f9ff;
  --accent-soft: #e3f2ff;
  --sky-200: #c4e5ff;
  --accent-light: #6cc8ff;
  --accent: #1e7fd1;
  --accent-strong: #1565b8;
  --sky-900: #0b3a6b;
  --gold: #f2c14e;
  --gold-deep: #d99b14;
  --green: #1f9d55;
  --amber: #e08a00;
  --red: #d64545;

  --bg: #ffffff;
  --bg-soft: #f6f8fa;
  --surface: #ffffff;
  --surface-solid: #ffffff;
  --border: rgba(13, 27, 42, 0.09);
  --border-strong: rgba(13, 27, 42, 0.16);
  --text: #0d1b2a;
  --text-2: #475769;
  --text-3: #7f8c9b;
  --ink: #0d1b2a;
  --ink-hover: #1f3247;
  --on-ink: #ffffff;
  --shadow-xs: 0 1px 2px rgba(13, 27, 42, 0.05);
  --shadow: 0 1px 2px rgba(13, 27, 42, 0.04), 0 6px 16px -8px rgba(13, 27, 42, 0.12);
  --shadow-lg: 0 2px 4px rgba(13, 27, 42, 0.04), 0 28px 56px -20px rgba(13, 27, 42, 0.22);
  --hero: linear-gradient(180deg, #2b8ce0, #1e7fd1);
  --wash: radial-gradient(900px 480px at 80% -12%, #e3f1fd 0%, transparent 62%);

  --ok-bg: #e7f7ee;
  --warn-bg: #fff4e0;
  --bad-bg: #fde9e9;
  --none-bg: #eef2f6;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1420;
    --bg-soft: #0e1a28;
    --surface: #111e2d;
    --surface-solid: #111e2d;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --text: #e8eef5;
    --text-2: #a3b1c2;
    --text-3: #708096;
    --ink: #e8eef5;
    --ink-hover: #ffffff;
    --on-ink: #0a1420;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 20px -10px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.3), 0 28px 56px -20px rgba(0, 0, 0, 0.7);
    --wash: radial-gradient(900px 480px at 80% -12%, rgba(30, 127, 209, 0.22) 0%, transparent 62%);
    --ok-bg: rgba(31, 157, 85, 0.16);
    --warn-bg: rgba(224, 138, 0, 0.16);
    --bad-bg: rgba(214, 69, 69, 0.18);
    --none-bg: rgba(125, 141, 160, 0.16);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: tabular-nums;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }
h1, h2, h3, h4 { line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 0.5em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); letter-spacing: -0.04em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.015em; }
p { margin: 0 0 1em; text-wrap: pretty; }
::selection { background: rgba(30, 127, 209, 0.18); }
:focus-visible { outline: 3px solid var(--accent-light); outline-offset: 2px; border-radius: 6px; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-tight { padding: 48px 0; }
.center { text-align: center; }
.muted { color: var(--text-2); }
.small { font-size: 0.875rem; }
.tiny { font-size: 0.78rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.lead { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--text-2); max-width: 640px; }
.center .lead { margin-inline: auto; }
.gradient-text {
  background: var(--hero); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.gold-text { color: var(--gold-deep); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.08rem; color: var(--text); letter-spacing: -0.02em; }
.brand:hover { color: var(--text); }
.brand svg { width: 34px; height: 34px; }
.nav-links { display: flex; gap: 2px; margin-left: 8px; }
.nav-links a, .nav-actions a.link {
  position: relative; color: var(--text-2); font-weight: 500; font-size: 0.93rem; padding: 8px 12px; border-radius: 8px;
  transition: color .15s;
}
.nav-links a:hover, .nav-actions a.link:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-links a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -13px; height: 2px; border-radius: 2px; background: var(--text); transform: scaleX(0); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.nav-links a.active::after { transform: scaleX(1); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; color: var(--text); cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-links, .nav-actions { display: none; }
  .nav.open { flex-wrap: wrap; height: auto; padding: 14px 0; }
  .nav.open .nav-links, .nav.open .nav-actions {
    display: flex; flex-direction: column; align-items: stretch; width: 100%; margin: 0; gap: 2px;
  }
  .nav.open .nav-actions { padding-top: 10px; border-top: 1px solid var(--border); }
  .nav.open .nav-actions .btn { justify-content: center; }
  .nav-links a::after { display: none; }
  .nav.open .nav-links a.active { background: var(--bg-soft); }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font: inherit; font-weight: 600; font-size: 0.94rem; letter-spacing: -0.01em;
  padding: 11px 18px; border-radius: 12px; border: 1px solid transparent;
  cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--on-ink); box-shadow: var(--shadow-xs), inset 0 1px 0 rgba(255,255,255,.08); }
.btn-primary:hover { background: var(--ink-hover); color: var(--on-ink); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-strong); color: #fff; }
.btn-gold { background: var(--gold); color: #2b2000; box-shadow: var(--shadow-xs), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-gold:hover { background: #ebb73c; color: #2b2000; }
.btn-ghost { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { color: var(--text); background: var(--bg-soft); }
.btn-danger { background: transparent; border-color: rgba(214, 69, 69, 0.4); color: var(--red); }
.btn-sm { padding: 7px 13px; font-size: 0.86rem; border-radius: 10px; }
.btn-lg { padding: 14px 22px; font-size: 1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btn-row { justify-content: center; }

/* ---------- cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  padding: 24px;
}
.card-hover { transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, border-color .25s; }
.card-hover:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.icon-tile {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 16px;
}
@media (prefers-color-scheme: dark) { .icon-tile { background: rgba(108, 200, 255, 0.12); color: var(--accent-light); } }
.icon-tile svg { width: 24px; height: 24px; }
.icon-tile.gold { background: #fff4d6; color: var(--gold-deep); }
@media (prefers-color-scheme: dark) { .icon-tile.gold { background: rgba(242, 193, 78, 0.14); color: var(--gold); } }

/* ---------- hero ---------- */
.hero { padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 7vw, 88px); position: relative; overflow: hidden; background: var(--wash); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { margin-bottom: 20px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--border);
  font-size: 0.84rem; font-weight: 500; color: var(--text-2); margin-bottom: 26px; box-shadow: var(--shadow-xs);
}
a.pill:hover { color: var(--text); border-color: var(--border-strong); }
.pill b { background: var(--accent-soft); color: var(--accent-strong); padding: 2px 9px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; }
@media (prefers-color-scheme: dark) { .pill b { background: rgba(108,200,255,.14); color: var(--accent-light); } }
.trust { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 36px; color: var(--text-2); font-size: 0.9rem; }
.trust strong { display: block; font-size: 1.6rem; color: var(--text); letter-spacing: -0.02em; }

/* phone mockup */
.phone-wrap { position: relative; display: flex; justify-content: center; }
/* A soft contact shadow on the "table" instead of a coloured glow */
.phone-glow { position: absolute; left: 18%; right: 18%; bottom: -18px; height: 40px; border-radius: 50%; background: rgba(13, 27, 42, .28); filter: blur(18px); }
@media (prefers-color-scheme: dark) { .phone-glow { background: rgba(0,0,0,.6); } }
.phone {
  position: relative; width: min(318px, 100%); aspect-ratio: 9 / 19.3;
  border-radius: 52px; padding: 9px; background: #15191e;
  box-shadow: inset 0 0 0 1.5px #3a4049, inset 0 0 0 4px #0b0d10, 0 1px 1px rgba(255,255,255,.4), var(--shadow-lg);
}
.phone::before, .phone::after { content: ""; position: absolute; width: 3px; border-radius: 2px; background: #2a2f36; }
.phone::before { left: -3px; top: 118px; height: 54px; box-shadow: 0 70px 0 #2a2f36; }
.phone::after { right: -3px; top: 150px; height: 86px; }
.phone-screen {
  height: 100%; border-radius: 44px; overflow: hidden; background: #f4f7fa; color: #0d1b2a;
  display: flex; flex-direction: column; padding: 14px 16px 16px; gap: 11px; position: relative;
}
.phone-notch { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 92px; height: 27px; background: #000; border-radius: 20px; z-index: 2; }
.phone-status { display: flex; justify-content: space-between; align-items: center; padding: 2px 10px 8px 14px; font-size: .74rem; font-weight: 700; letter-spacing: -.01em; color: #0d1b2a; }
.phone-status svg { height: 11px; width: auto; display: block; }
.phone-status .icons { display: flex; gap: 5px; align-items: center; }
.phone-head { display: flex; justify-content: space-between; align-items: center; }
.phone-head b { font-size: 1.05rem; }
.phone-head img { width: 34px; height: 34px; border-radius: 10px; background: #fff; padding: 3px; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.phone-ring { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 20px; padding: 14px; box-shadow: 0 1px 2px rgba(13,27,42,.06); }
.phone-ring .ring { --size: 92px; }
.phone-meal { background: #fff; border-radius: 16px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; box-shadow: 0 1px 2px rgba(13,27,42,.06); font-size: 0.82rem; }
.phone-meal span { color: #4a5d73; display: block; font-size: 0.72rem; }
.phone-cta { margin-top: auto; background: #0d1b2a; color: #fff; border-radius: 16px; padding: 14px; text-align: center; font-weight: 600; font-size: 0.88rem; }

/* ---------- ring (conic) ---------- */
.ring {
  --size: 150px; --pct: 0; --track: var(--accent-soft); --fill: var(--accent);
  width: var(--size); height: var(--size); border-radius: 50%; flex: none;
  background:
    radial-gradient(closest-side, var(--surface-solid) 76%, transparent 77% 100%),
    conic-gradient(var(--fill) calc(var(--pct) * 1%), var(--track) 0);
  display: grid; place-items: center; text-align: center;
}
.phone .ring { background: radial-gradient(closest-side, #fff 76%, transparent 77% 100%), conic-gradient(var(--fill) calc(var(--pct) * 1%), #e3f2ff 0); }
@media (prefers-color-scheme: dark) { .ring { --track: rgba(108, 200, 255, 0.12); } }
.ring.gold { --fill: var(--gold); }
.ring.over { --fill: var(--red); }
.ring-value { font-weight: 800; font-size: calc(var(--size) * 0.2); line-height: 1; letter-spacing: -0.03em; }
.ring-label { font-size: calc(var(--size) * 0.085); color: var(--text-3); font-weight: 600; margin-top: 4px; }
.phone .ring-label { color: #7d8da0; }

/* ---------- verdict badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.suggested { background: var(--ok-bg); color: var(--green); }
.badge.not_suggested { background: var(--warn-bg); color: var(--amber); }
.badge.very_dangerous { background: var(--bad-bg); color: var(--red); }
.badge.unjudged { background: var(--none-bg); color: var(--text-3); }
.badge.plain::before { display: none; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font-size: 0.75rem; font-weight: 700; }
@media (prefers-color-scheme: dark) { .tag { background: rgba(108, 200, 255, 0.12); color: var(--accent-light); } }

.verdict-hero { border-radius: var(--radius); padding: 28px; color: #fff; position: relative; overflow: hidden; }
.verdict-hero.suggested { background: linear-gradient(135deg, #34c27a, #1f9d55); }
.verdict-hero.not_suggested { background: linear-gradient(135deg, #ffb340, #e08a00); }
.verdict-hero.very_dangerous { background: linear-gradient(135deg, #f06a6a, #c43b3b); }
.verdict-hero.unjudged { background: linear-gradient(135deg, #8fa1b5, #64788f); }
.verdict-hero h2 { margin: 4px 0 6px; font-size: clamp(1.8rem, 4vw, 2.4rem); }
.verdict-hero .conf { opacity: 0.9; font-weight: 600; }
.verdict-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.14); }

.bullets { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.bullets li { display: flex; gap: 10px; align-items: flex-start; }
.bullets li::before { content: ""; flex: none; margin-top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.bullets.swaps li::before { background: var(--gold); }

/* ---------- forms ---------- */
.form-grid { display: grid; gap: 18px; }
.field label, .field-label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 6px; }
.field .help, .helptext { display: block; color: var(--text-3); font-size: 0.8rem; margin-top: 6px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search],
input[type=datetime-local], select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--surface-solid);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(30, 127, 209, 0.15); }
textarea { resize: vertical; }
.errorlist { list-style: none; padding: 0; margin: 6px 0 0; color: var(--red); font-size: 0.85rem; font-weight: 600; }
.form-errors { background: var(--bad-bg); color: var(--red); padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.9rem; }
.form-errors ul { margin: 0; padding-left: 18px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips ul, .chips > div { display: contents; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  border: 1.5px solid var(--border); background: var(--surface-solid); font-weight: 600; cursor: pointer;
  transition: all 0.15s; user-select: none; font-size: 0.92rem;
}
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--accent-light); outline-offset: 2px; }

.item-rows { display: grid; gap: 10px; }
.item-row { display: grid; grid-template-columns: 1fr 110px 44px; gap: 10px; align-items: center; }
.item-row .remove { width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--surface-solid); color: var(--text-3); cursor: pointer; font-size: 1.2rem; }
.item-row .remove:hover { color: var(--red); border-color: rgba(214,69,69,.4); }
@media (max-width: 520px) { .item-row { grid-template-columns: 1fr 80px 44px; } }

/* ---------- messages ---------- */
.messages { position: fixed; top: 82px; right: 16px; z-index: 60; display: grid; gap: 10px; max-width: min(420px, calc(100% - 32px)); }
.message {
  padding: 14px 18px; border-radius: 14px; background: var(--surface-solid); border: 1px solid var(--border);
  box-shadow: var(--shadow-lg); font-weight: 600; font-size: 0.92rem; display: flex; gap: 10px; align-items: flex-start;
  animation: slide-in 0.3s ease;
}
.message.success { border-left: 4px solid var(--green); }
.message.info { border-left: 4px solid var(--accent); }
.message.error { border-left: 4px solid var(--red); }
.message button { margin-left: auto; background: none; border: 0; color: var(--text-3); cursor: pointer; font-size: 1.1rem; line-height: 1; }
@keyframes slide-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- sections ---------- */
.band { background: var(--bg-soft); border-block: 1px solid var(--border); }
.cta-band {
  border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 72px); color: #fff;
  background-color: #0d1b2a;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 32px 32px;
  position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
}
.cta-band::before { content: ""; position: absolute; left: clamp(40px, 6vw, 72px); top: 0; width: 56px; height: 3px; background: var(--gold); border-radius: 0 0 3px 3px; }
@media (prefers-color-scheme: dark) { .cta-band { border: 1px solid var(--border-strong); } }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.88); }
.cta-band > * { position: relative; }

.steps { counter-reset: step; }
.step { position: relative; padding-top: 56px; }
.step::before {
  counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0;
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 800; background: var(--hero); color: #fff;
}

.verdict-demo { display: grid; gap: 12px; }
.verdict-demo .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--surface-solid); border: 1px solid var(--border); }
.verdict-demo .row b { display: block; }
.verdict-demo .row span { color: var(--text-3); font-size: 0.82rem; }

.feature-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .feature-split { grid-template-columns: 1fr; gap: 32px; } }
.check-list { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list li::before {
  content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 0.8rem; margin-top: 2px;
}
@media (prefers-color-scheme: dark) { .check-list li::before { background: rgba(108,200,255,.14); color: var(--accent-light); } }

/* ---------- app shell ---------- */
.app-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.app-head h1 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin: 0; }
.app-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 28px; padding: 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); width: fit-content; max-width: 100%; overflow-x: auto; }
.app-tabs a { padding: 8px 16px; border-radius: 999px; color: var(--text-2); font-weight: 700; font-size: 0.9rem; white-space: nowrap; }
.app-tabs a.active { background: var(--ink); color: var(--on-ink); }
.week-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.week-day { text-align: center; padding: 10px 4px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface-solid); color: var(--text); }
.week-day:hover { color: var(--text); border-color: var(--accent-light); }
.week-day.current { background: var(--ink); color: var(--on-ink); border-color: transparent; }
.week-day small { display: block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; opacity: 0.75; }
.week-day b { display: block; font-size: 1.1rem; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--border); }
.dot.suggested { background: var(--green); }
.dot.not_suggested { background: var(--amber); }
.dot.very_dangerous { background: var(--red); }
.dot.unjudged { background: var(--text-3); }

.stat { display: flex; flex-direction: column; gap: 2px; }
.stat .k { font-size: 0.78rem; color: var(--text-3); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.stat .v { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; }
.stat .v small { font-size: 0.9rem; color: var(--text-3); font-weight: 600; }

.bar { height: 10px; border-radius: 999px; background: var(--accent-soft); overflow: hidden; }
@media (prefers-color-scheme: dark) { .bar { background: rgba(108, 200, 255, 0.12); } }
.bar > i { display: block; height: 100%; border-radius: inherit; background: var(--hero); }
.bar.protein > i { background: linear-gradient(90deg, #6cc8ff, #1e7fd1); }
.bar.carbs > i { background: linear-gradient(90deg, #f8d77a, #d99b14); }
.bar.fat > i { background: linear-gradient(90deg, #ff9f9f, #d64545); }
.bar.warn > i { background: linear-gradient(90deg, #ffb340, #d64545); }
.macro { display: grid; gap: 6px; }
.macro-head { display: flex; justify-content: space-between; font-size: 0.88rem; font-weight: 700; }
.macro-head span { color: var(--text-3); font-weight: 600; }

.meal-list { display: grid; gap: 12px; }
.meal-row { display: flex; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 18px; background: var(--surface-solid); border: 1px solid var(--border); color: var(--text); }
.meal-row:hover { color: var(--text); border-color: var(--accent-light); }
.meal-time { width: 58px; flex: none; text-align: center; }
.meal-time b { display: block; font-size: 0.95rem; }
.meal-time small { color: var(--text-3); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; }
.meal-main { flex: 1; min-width: 0; }
.meal-main b { display: block; }
.meal-main span { display: block; color: var(--text-2); font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meal-kcal { text-align: right; flex: none; }
.meal-kcal b { display: block; }
@media (max-width: 560px) { .meal-row { flex-wrap: wrap; } .meal-kcal { width: 100%; display: flex; justify-content: space-between; align-items: center; text-align: left; } }

.empty { text-align: center; padding: 48px 24px; border: 2px dashed var(--border); border-radius: var(--radius); color: var(--text-2); }
.empty svg { width: 48px; height: 48px; color: var(--accent-light); margin: 0 auto 12px; }

.chart { display: flex; align-items: flex-end; gap: 6px; height: 222px; position: relative; padding-top: 20px; }
.chart .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 6px; min-width: 0; }
.chart .col i { display: block; width: 100%; max-width: 44px; border-radius: 10px 10px 4px 4px; background: var(--hero); min-height: 3px; }
.chart .col i.empty-bar { background: var(--border); }
.chart .col small { font-size: 0.68rem; line-height: 16px; height: 16px; color: var(--text-3); font-weight: 700; }
.chart .goal-line { position: absolute; left: 0; right: 0; border-top: 2px dashed var(--gold); pointer-events: none; }
.chart .goal-line span { position: absolute; right: 0; top: -22px; font-size: 0.72rem; font-weight: 800; color: var(--gold-deep); background: var(--surface-solid); padding: 0 6px; border-radius: 6px; }
.chart-wrap { padding-bottom: 22px; }

.table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.table th, .table td { padding: 10px 8px; text-align: left; border-bottom: 1px solid var(--border); }
.table th { color: var(--text-3); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
.table td.num, .table th.num { text-align: right; }

/* ---------- blog ---------- */
.post-card { display: flex; flex-direction: column; gap: 10px; color: var(--text); height: 100%; }
.post-card:hover { color: var(--text); }
.post-card h3 { margin: 0; }
.post-meta { color: var(--text-3); font-size: 0.82rem; font-weight: 600; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.prose { font-size: 1.08rem; line-height: 1.8; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose p { color: var(--text); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 32px; margin-top: 40px; background: var(--bg-soft); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--text-2); font-weight: 500; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--text-3); font-size: 0.85rem; }

.disclaimer { font-size: 0.8rem; color: var(--text-3); border-left: 3px solid var(--gold); padding: 8px 14px; background: var(--surface); border-radius: 0 10px 10px 0; }


/* ---------- videos ---------- */
.btn-yt { background: #ff0033; color: #fff; box-shadow: 0 10px 24px -10px rgba(255, 0, 51, 0.6); }
.btn-yt:hover { color: #fff; background: #e6002e; }
.video-card { padding: 0; overflow: hidden; color: var(--text); display: flex; flex-direction: column; }
.video-card:hover { color: var(--text); }
.video-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #111; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.video-card:hover .video-thumb img { transform: scale(1.04); }
.video-card:hover .play { transform: scale(1.08); }
.play { position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: #ff0033; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.3); transition: transform 0.2s; }
.play svg { width: 20px; height: 20px; margin-left: 2px; }
.video-body { padding: 16px 18px 18px; display: grid; gap: 6px; }
.video-body h3 { font-size: 1rem; margin: 0; line-height: 1.35; }
.channel-card { display: grid; gap: 16px; justify-items: start; }
.channel-card img { border-radius: 50%; box-shadow: var(--shadow); }
.brand img { border-radius: 50%; }

/* =====================================================================
   Motion. Everything here is decorative: the base styles above already
   show the final state, so "reduce motion" or no JS still looks complete.
   ===================================================================== */
@property --pct { syntax: "<number>"; inherits: false; initial-value: 0; }

@keyframes ring-fill { from { --pct: 0; } }
@keyframes bar-grow { from { width: 0; } }
@keyframes grow-up { from { height: 0; } }
@keyframes rise { from { opacity: 0; translate: 0 22px; } }
@keyframes slide-in-r { from { opacity: 0; translate: 26px 0; } }
@keyframes pop { 0% { scale: 0; } 70% { scale: 1.15; } 100% { scale: 1; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes text-sheen { from { background-position: 0% 50%; } to { background-position: 200% 50%; } }

.ring { animation: ring-fill 1.6s cubic-bezier(.2, .8, .2, 1) .25s both; }
.bar > i { animation: bar-grow 1.1s cubic-bezier(.2, .8, .2, 1) .3s both; }
.chart .col i { animation: grow-up .9s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 70ms + .2s); }

/* Hero copy enters line by line on load */
.hero-copy > * { animation: rise .8s cubic-bezier(.2, .8, .2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero-copy > :nth-child(5) { animation-delay: .32s; }
.hero-copy > :nth-child(6) { animation-delay: .4s; }
.hero .gradient-text { background-image: linear-gradient(100deg, #6cc8ff, #1e7fd1 30%, #1565b8 50%, #1e7fd1 70%, #6cc8ff); background-size: 200% 100%; animation: text-sheen 6s linear infinite; }

/* Living phone mockup */
.phone-wrap { perspective: 1200px; }
.phone { animation: float 6s ease-in-out infinite; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out; }
.phone-glow { animation: float 6s ease-in-out infinite reverse; }
.phone-meal { animation: slide-in-r .6s cubic-bezier(.2, .8, .2, 1) both; }
.phone-meal:nth-of-type(1) { animation-delay: .7s; }
.phone-meal:nth-of-type(2) { animation-delay: .9s; }
.phone-meal:nth-of-type(3) { animation-delay: 1.1s; }
.phone-meal .badge { animation: pop .45s cubic-bezier(.3, 1.6, .5, 1) both; }
.phone-meal:nth-of-type(1) .badge { animation-delay: 1.2s; }
.phone-meal:nth-of-type(2) .badge { animation-delay: 1.4s; }
.phone-meal:nth-of-type(3) .badge { animation-delay: 1.6s; }
.phone-cta { position: relative; overflow: hidden; }
.phone-cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.45) 50%, transparent 65%); background-size: 200% 100%; animation: shimmer 3.2s ease-in-out infinite; }

/* Scroll reveal (enabled by site.js only when motion is allowed) */
.js-motion [data-reveal] {
  opacity: 0; translate: 0 26px;
  transition: opacity .7s ease var(--rd, 0s), translate .8s cubic-bezier(.2, .8, .2, 1) var(--rd, 0s), transform .2s ease, box-shadow .2s ease;
}
.js-motion [data-reveal].is-visible { opacity: 1; translate: none; }
.js-motion [data-reveal]:not(.is-visible) *, .js-motion [data-reveal]:not(.is-visible) { animation-play-state: paused !important; }
.verdict-demo .row .badge { animation: pop .45s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(var(--rd, 0s) + .45s); }

/* ---------- snap demo: 10 s loop of snap → scan → detect → verdict ---------- */
.snap-demo { --T: 10s; display: grid; gap: 16px; max-width: 420px; margin-inline: auto; width: 100%; }
.snap-cam {
  position: relative; aspect-ratio: 4 / 3.4; border-radius: 28px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 40%, #1d3550 0%, #0b1624 70%); box-shadow: var(--shadow-lg);
}
.snap-cam .corner { position: absolute; width: 34px; height: 34px; border: 3px solid rgba(255,255,255,.85); z-index: 3; animation: sd-focus var(--T) ease-in-out infinite; }
.snap-cam .tl { top: 18px; left: 18px; border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; }
.snap-cam .tr { top: 18px; right: 18px; border-left: 0; border-bottom: 0; border-radius: 0 10px 0 0; }
.snap-cam .bl { bottom: 18px; left: 18px; border-right: 0; border-top: 0; border-radius: 0 0 0 10px; }
.snap-cam .br { bottom: 18px; right: 18px; border-left: 0; border-top: 0; border-radius: 0 0 10px 0; }
.snap-status { position: absolute; top: 22px; left: 50%; translate: -50% 0; z-index: 4; display: grid; place-items: center; padding: 6px 14px 6px 28px; border-radius: 999px; background: rgba(11, 22, 36, .7); backdrop-filter: blur(8px); color: #fff; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.snap-status i { position: absolute; left: 11px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: #34c27a; box-shadow: 0 0 0 4px rgba(52,194,122,.25); }
.snap-status span { grid-area: 1 / 1; }
.snap-status .s1, .snap-status .s2 { opacity: 0; }
.plate {
  position: absolute; inset: 20% 13% 19%; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #ffffff 0 52%, #e9eef4 53% 60%, #ffffff 61% 100%);
  box-shadow: 0 30px 50px -20px rgba(0,0,0,.6), inset 0 -6px 16px rgba(0,0,0,.08);
  animation: sd-plate var(--T) ease-in-out infinite;
}
.dish { position: absolute; line-height: 0; }
.dish svg { width: clamp(58px, 15vw, 78px); height: auto; display: block; }
.dish.d1 { left: 16%; top: 30%; }
.dish.d2 { right: 15%; top: 28%; }
.dish.d3 { left: 50%; bottom: 8%; translate: -50% 0; }
.dish .box {
  position: absolute; inset: -8px; border: 2.5px solid #6cc8ff; border-radius: 12px;
  box-shadow: 0 0 0 4px rgba(108, 200, 255, .2); animation: sd-box var(--T) cubic-bezier(.3, 1.4, .5, 1) infinite both;
}
.dish.d2 .box { animation-delay: .35s; }
.dish.d3 .box { animation-delay: .7s; }
.dish .box em {
  position: absolute; left: 50%; bottom: calc(100% + 6px); translate: -50% 0; white-space: nowrap;
  font: 700 .68rem/1 var(--font); font-style: normal; color: #0b1624; background: #6cc8ff; padding: 5px 8px; border-radius: 7px;
}
.dish.d3 .box em { bottom: auto; top: 50%; left: calc(100% + 10px); translate: 0 -50%; }
.scanline {
  position: absolute; left: 0; right: 0; top: 0; height: 90px; z-index: 2; opacity: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(108, 200, 255, .35) 80%, #6cc8ff);
  border-bottom: 2px solid #9fdcff; filter: drop-shadow(0 0 10px #6cc8ff);
  animation: sd-scan var(--T) ease-in-out infinite;
}
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; z-index: 5; pointer-events: none; animation: sd-flash var(--T) ease-out infinite; }
.shutter { position: absolute; bottom: 14px; left: 50%; translate: -50% 0; width: 46px; height: 46px; border-radius: 50%; border: 3px solid #fff; display: grid; place-items: center; z-index: 4; }
.shutter span { width: 34px; height: 34px; border-radius: 50%; background: #fff; animation: sd-shutter var(--T) ease-in-out infinite; }
.snap-result { display: grid; gap: 10px; animation: sd-result var(--T) cubic-bezier(.2, .8, .2, 1) infinite both; }
.snap-verdict { display: flex; gap: 16px; align-items: center; padding: 14px 18px; border-radius: 22px; background: var(--surface-solid); border: 1px solid var(--border); box-shadow: var(--shadow); }
.snap-verdict b { display: block; margin-top: 6px; }
.snap-verdict small { color: var(--text-3); font-weight: 600; }
.snap-verdict .ring { animation: sd-ring var(--T) cubic-bezier(.2, .8, .2, 1) infinite both; }
.snap-verdict .badge { animation: sd-badge var(--T) cubic-bezier(.3, 1.6, .5, 1) infinite both; }
.snap-reason { margin: 0; padding: 10px 16px; border-radius: 14px; background: var(--ok-bg); color: var(--green); font-weight: 700; font-size: .85rem; animation: sd-reason var(--T) ease infinite both; }
.snap-demo .snap-status .s1 { animation: sd-s1 var(--T) linear infinite; }
.snap-demo .snap-status .s2 { animation: sd-s2 var(--T) linear infinite; }
.snap-demo .snap-status .s3 { animation: sd-s3 var(--T) linear infinite; }
/* Hold everything at frame 0 until the demo scrolls into view */
.snap-demo:not(.is-playing) *, .snap-demo:not(.is-playing) { animation-play-state: paused !important; }

@keyframes sd-focus { 0%, 100% { scale: 1; } 4% { scale: .9; } 8% { scale: 1; } 10% { scale: .94; } 13% { scale: 1; } }
@keyframes sd-plate { 0%, 9% { scale: 1.06; filter: blur(1.5px); } 12%, 100% { scale: 1; filter: none; } }
@keyframes sd-shutter { 0%, 8.5% { scale: 1; } 10% { scale: .7; } 12%, 100% { scale: 1; } }
@keyframes sd-flash { 0%, 10% { opacity: 0; } 10.6% { opacity: .85; } 15%, 100% { opacity: 0; } }
@keyframes sd-scan { 0%, 13% { opacity: 0; top: -90px; } 15% { opacity: 1; } 25% { top: calc(100% - 90px); } 35% { top: -40px; opacity: 1; } 38%, 100% { opacity: 0; top: -90px; } }
@keyframes sd-box { 0%, 28% { opacity: 0; scale: 1.35; } 32% { opacity: 1; scale: 1; } 90% { opacity: 1; scale: 1; } 95%, 100% { opacity: 0; scale: 1; } }
@keyframes sd-s1 { 0%, 12% { opacity: 1; } 13%, 100% { opacity: 0; } }
@keyframes sd-s2 { 0%, 12% { opacity: 0; } 13%, 39% { opacity: 1; } 40%, 100% { opacity: 0; } }
@keyframes sd-s3 { 0%, 39% { opacity: 0; } 40%, 93% { opacity: 1; } 94%, 100% { opacity: 0; } }
@keyframes sd-result { 0%, 44% { opacity: 0; translate: 0 26px; scale: .97; } 50% { opacity: 1; translate: none; scale: 1; } 91% { opacity: 1; translate: none; } 97%, 100% { opacity: 0; translate: 0 14px; } }
@keyframes sd-ring { 0%, 47% { --pct: 0; } 60%, 100% { --pct: 26; } }
@keyframes sd-badge { 0%, 52% { scale: 0; } 56% { scale: 1.18; } 59%, 100% { scale: 1; } }
@keyframes sd-reason { 0%, 58% { opacity: 0; translate: 0 10px; } 63%, 91% { opacity: 1; translate: none; } 97%, 100% { opacity: 0; } }

.demo-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .demo-split { grid-template-columns: 1fr; gap: 32px; } }
.demo-steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.demo-steps li { display: flex; gap: 14px; align-items: flex-start; }
.demo-steps li b { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border-strong); color: var(--text); font-size: .82rem; box-shadow: var(--shadow-xs); }

@media (prefers-reduced-motion: reduce) {
  .phone { transform: none !important; }
}


/* =====================================================================
   Human touches: editorial serif, hand-drawn strokes, paper grain.
   ===================================================================== */
:root { --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif; --hand: "Caveat", "Bradley Hand", cursive; --ink: #0f2236; }
@media (prefers-color-scheme: dark) { :root { --ink: #eaf4ff; } }

/* Fine paper grain over the whole page; barely visible, kills the "flat render" look. */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) { body::after { opacity: .06; } }

.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--accent); }
h1 .serif, h2 .serif { font-size: 1.12em; line-height: .9; }
.cta-band .serif { color: #fff2c9; }

.hero-human h1 { font-size: clamp(2.8rem, 6.4vw, 5rem); letter-spacing: -0.035em; margin-bottom: 24px; }
.hero-human .lead { font-size: clamp(1.1rem, 1.9vw, 1.3rem); max-width: 520px; }
.hero-visual { position: relative; }

.scribble { position: relative; display: inline-block; white-space: nowrap; }
.scribble-svg { position: absolute; overflow: visible; pointer-events: none; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.scribble-svg path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.scribble-svg.underline { left: -2%; width: 104%; bottom: -.12em; height: .32em; stroke: var(--gold); stroke-width: 6; }
.scribble-svg.underline .second { stroke-width: 4; opacity: .7; }
.scribble-svg.arrow { width: 92px; height: 70px; stroke: var(--text-2); stroke-width: 2.4; }
.scribble-svg.circle { inset: -18% -10%; width: 120%; height: 136%; stroke: var(--gold); stroke-width: 3; }

.hand-note {
  position: absolute; left: -24%; top: 2%; z-index: 2; font-family: var(--hand); font-size: 1.55rem; line-height: 1.05;
  color: var(--text-2); rotate: -7deg; display: flex; flex-direction: column; align-items: flex-end;
}
.hand-note { flex-direction: column; align-items: flex-end; gap: 0; }
.hand-note .arrow { width: 64px; height: 50px; margin: 4px -52px 0 0; scale: -1 1; rotate: -18deg; }
@media (max-width: 1100px) { .hand-note { display: none; } }
.hand-aside { font-family: var(--hand); font-size: 1.45rem; color: var(--text-2); rotate: -3deg; margin: 18px 0 6px 6px; }

.facts { display: grid; grid-template-columns: repeat(3, auto); gap: 28px; margin: 40px 0 0; justify-content: start; }
.facts div { max-width: 150px; padding-left: 14px; border-left: 2px solid var(--border); }
.facts dt { font-family: var(--serif); font-size: 2.3rem; line-height: 1; color: var(--ink); }
.facts dd { margin: 6px 0 0; color: var(--text-3); font-size: .82rem; line-height: 1.4; }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr 1fr; } }

/* Section heads: numbered, left-aligned, like a printed magazine */
.sec-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.sec-num { font-family: var(--serif); font-style: italic; font-size: 1.5rem; letter-spacing: 0; text-transform: none; color: var(--accent); }
.sec-num::after { content: ""; display: inline-block; width: 36px; height: 1.5px; background: currentColor; opacity: .5; vertical-align: middle; margin-left: 12px; }
.split-title { max-width: 720px; margin-bottom: 36px; }

/* Buttons and links: arrow nudges on hover */
.arr { display: inline-block; transition: translate .25s cubic-bezier(.3, 1.5, .5, 1); }
a:hover .arr, .btn:hover .arr { translate: 4px 0; }
.link-arrow { font-weight: 700; color: var(--accent); display: inline-flex; gap: 6px; align-items: center; }
.btn-ghost.on-dark { color: #fff; border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.1); }

/* Dish ticker */
.ticker {
  overflow: hidden; border-block: 1px solid var(--border); background: var(--surface); padding: 14px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker ul { display: flex; list-style: none; margin: 0; padding: 0; }
.ticker li { white-space: nowrap; padding: 0 28px; font-weight: 600; color: var(--text-2); position: relative; }
.ticker li::after { content: "✳"; position: absolute; right: -6px; color: var(--gold); font-size: .8rem; top: 3px; }
.ticker small { color: var(--text-3); font-weight: 500; margin-left: 4px; }
@keyframes marquee { to { translate: -50% 0; } }

/* Goal switch: segmented control with a sliding indicator */
.goal-switch { position: relative; display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 5px; border-radius: 999px; background: var(--surface-solid); border: 1px solid var(--border); box-shadow: var(--shadow); }
.goal-switch button { position: relative; z-index: 1; font: inherit; font-weight: 700; font-size: .92rem; border: 0; background: none; color: var(--text-2); padding: 10px 18px; border-radius: 999px; cursor: pointer; transition: color .3s; }
.goal-switch button[aria-checked="true"] { color: var(--on-ink); }
.goal-indicator { position: absolute; z-index: 0; top: 5px; left: 5px; height: calc(100% - 10px); width: 0; border-radius: 999px; background: var(--ink); box-shadow: var(--shadow-xs); transition: translate .45s cubic-bezier(.3, 1.3, .5, 1), width .45s cubic-bezier(.3, 1.3, .5, 1), top .3s ease; }
.goal-switch:not(.ready) button[aria-checked="true"] { background: var(--ink); }

.toy-card { padding: 10px; }
.toy-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.toy-list li { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--surface-solid); border: 1px solid var(--border); transition: border-color .3s, background .3s; }
.toy-list li.changed { border-color: var(--accent-light); }
.toy-main { min-width: 0; }
.toy-main b { display: block; }
.toy-reason { display: block; font-size: .82rem; color: var(--text-3); line-height: 1.4; margin-top: 2px; }
.toy-list .badge { flex: none; }
.toy-list .badge.flip { animation: badge-flip .5s cubic-bezier(.3, 1.4, .5, 1) both; animation-delay: var(--fd, 0s); }
.toy-reason.fade { animation: reason-in .45s ease both; animation-delay: var(--fd, 0s); }
@keyframes badge-flip { 0% { transform: rotateX(90deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes reason-in { from { opacity: 0; translate: 0 4px; } }
.toy-split { align-items: start; }

/* What we make: asymmetric bento */
.make-grid { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; gap: 18px; }
.make-card {
  position: relative; display: flex; flex-direction: column; gap: 8px; padding: 26px; border-radius: 26px;
  background: var(--surface-solid); border: 1px solid var(--border); color: var(--text); overflow: hidden;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, border-color .3s;
}
.make-card:hover { color: var(--text); transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent-light); }
.make-card h3 { font-size: 1.45rem; margin: 6px 0 0; }
.make-card p { color: var(--text-2); margin: 0 0 8px; }
.make-card .link-arrow { margin-top: auto; }
.make-main { grid-row: span 2; display: grid; grid-template-columns: 1fr; gap: 24px; background: linear-gradient(160deg, var(--surface-solid) 40%, var(--accent-soft)); }
@media (prefers-color-scheme: dark) { .make-main { background: linear-gradient(160deg, var(--surface-solid) 40%, rgba(30,127,209,.18)); } }
.make-logo { background: #fff; border-radius: 16px; padding: 7px 8px; box-shadow: var(--shadow); width: 64px; height: auto; }
.make-logo.round { border-radius: 50%; padding: 0; width: 40px; }
.make-preview { display: grid; gap: 8px; align-self: end; }
.mini-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface-solid); border: 1px solid var(--border); font-size: .9rem; transition: translate .35s cubic-bezier(.2,.8,.2,1); }
.make-main:hover .mini-row:nth-child(1) { translate: 6px 0; }
.make-main:hover .mini-row:nth-child(2) { translate: 12px 0; transition-delay: .04s; }
.make-main:hover .mini-row:nth-child(3) { translate: 18px 0; transition-delay: .08s; }
@media (max-width: 760px) { .make-grid { grid-template-columns: 1fr; } .make-main { grid-row: auto; } }

/* Note from the maker */
.maker-note {
  margin: 0 auto; max-width: 760px; padding: clamp(28px, 5vw, 48px); border-radius: 6px; rotate: -.6deg;
  background: #fffdf5; color: #2b2a26; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 18px 40px -18px rgba(60, 50, 20, .35);
  background-image: repeating-linear-gradient(180deg, transparent 0 31px, rgba(30, 127, 209, .09) 31px 32px);
  position: relative;
}
.maker-note::before { content: ""; position: absolute; top: -12px; left: 50%; translate: -50% 0; rotate: 2deg; width: 120px; height: 26px; background: rgba(242, 193, 78, .55); }
.maker-note blockquote { margin: 0; }
.maker-note p { font-family: var(--serif); font-size: clamp(1.3rem, 2.6vw, 1.75rem); line-height: 1.4; margin: 0 0 .6em; }
.maker-note figcaption { display: flex; align-items: baseline; gap: 14px; margin-top: 10px; }
.maker-note .muted { color: #6b675c; }
.signature { font-family: var(--hand); font-size: 2.4rem; color: #1e5fa8; rotate: -4deg; display: inline-block; }

/* Writing list */
.post-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--border); }
.post-list a { display: grid; grid-template-columns: 70px 1fr auto 24px; gap: 20px; align-items: baseline; padding: 22px 4px; border-bottom: 1px solid var(--border); color: var(--text); }
.post-list a:hover { color: var(--text); background: linear-gradient(90deg, var(--accent-soft), transparent 70%); }
@media (prefers-color-scheme: dark) { .post-list a:hover { background: linear-gradient(90deg, rgba(30,127,209,.14), transparent 70%); } }
.post-list time { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--text-3); }
.pl-title { font-weight: 700; font-size: 1.15rem; }
.pl-title small { display: block; font-weight: 500; font-size: .88rem; color: var(--text-3); margin-top: 4px; }
.pl-tag { font-size: .78rem; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .1em; }
@media (max-width: 640px) { .post-list a { grid-template-columns: 1fr 24px; } .post-list time, .pl-tag { display: none; } }

/* Draw-on for hand strokes once visible (hero draws on load) */
.js-motion .scribble-svg path { stroke-dashoffset: 1; }
.js-motion .hero .scribble-svg path { animation: draw .9s cubic-bezier(.6, 0, .3, 1) .9s forwards; }
.js-motion .hero .scribble-svg .second { animation-delay: 1.25s; }
.js-motion .hero .hand-note { animation: rise .7s ease 1.6s both; }
.js-motion .hero .hand-note .scribble-svg path { animation-delay: 1.9s; }
.js-motion .hero .hand-note .scribble-svg .head { animation-delay: 2.5s; animation-duration: .4s; }
.js-motion [data-reveal].is-visible .scribble-svg path { animation: draw 1s cubic-bezier(.6, 0, .3, 1) .3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}


/* Three verdicts, like a traffic light laid on its side */
.verdict-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.vt { position: relative; padding: 28px 26px 24px; border-radius: 24px; background: var(--surface-solid); border: 1px solid var(--border); overflow: hidden; }
.vt h3 { font-family: var(--serif); font-weight: 400; font-size: 2.1rem; letter-spacing: -.01em; margin: 16px 0 8px; }
.vt p { color: var(--text-2); margin: 0 0 14px; }
.vt .vt-eg { font-size: .85rem; color: var(--text-3); margin: 0; padding-top: 12px; border-top: 1px dashed var(--border); }
.vt-light { position: absolute; top: -40px; right: -40px; width: 120px; height: 120px; border-radius: 50%; filter: blur(4px); opacity: .22; transition: opacity .4s, scale .4s; }
.vt.suggested .vt-light { background: var(--green); }
.vt.not_suggested .vt-light { background: var(--amber); }
.vt.very_dangerous .vt-light { background: var(--red); }
.vt:hover .vt-light { opacity: .4; scale: 1.25; }
@media (max-width: 860px) { .verdict-trio { grid-template-columns: 1fr; } }

/* Bento of real mini-interfaces */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.bento-cell { position: relative; grid-column: span 2; padding: 24px; border-radius: 24px; background: var(--surface-solid); border: 1px solid var(--border); overflow: hidden; display: flex; flex-direction: column; }
.bento-cell h3 { margin: auto 0 4px; font-size: 1.15rem; }
.bento-cell p { margin: 0; color: var(--text-2); font-size: .92rem; }
.b-detect { grid-column: span 4; }
.b-swap { grid-column: span 4; }
.b-week { grid-column: span 3; }
.b-private { grid-column: span 3; justify-content: flex-end; background: linear-gradient(120deg, var(--surface-solid) 55%, var(--accent-soft)); }
@media (prefers-color-scheme: dark) { .b-private { background: linear-gradient(120deg, var(--surface-solid) 55%, rgba(30,127,209,.18)); } }
.b-private h3 { margin-top: 0; }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr 1fr; } .bento-cell, .b-detect, .b-swap, .b-week, .b-private { grid-column: span 2; } }
.bento-ui { margin-bottom: 22px; min-height: 92px; display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }

/* Cursor spotlight on bento cells */
.spot::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(108, 200, 255, .16), transparent 60%);
}
.spot:hover::before { opacity: 1; }

.detect-ui .chip-d { display: inline-flex; gap: 8px; align-items: center; padding: 8px 12px; border-radius: 10px; border: 2px solid var(--accent-light); background: rgba(108, 200, 255, .1); font-weight: 700; font-size: .9rem; }
.detect-ui .chip-d i { font-style: normal; font-weight: 600; color: var(--text-3); font-size: .78rem; }
.detect-ui .chip-d.ghost { border-style: dashed; border-color: var(--border); background: none; color: var(--text-3); }
.exif-ui { flex-direction: column; gap: 2px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .8rem; color: var(--text-3); padding: 12px 14px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--border); }
.exif-ui b { color: var(--text); font-size: 1rem; }
.exif-ui em { font-style: normal; color: var(--green); font-weight: 700; }
.goals-ui span { padding: 7px 12px; border-radius: 999px; border: 1.5px solid var(--border); font-weight: 700; font-size: .82rem; color: var(--text-2); }
.goals-ui span.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.swap-ui { align-items: center; flex-wrap: nowrap; gap: 10px; }
.swap-ui span { padding: 10px 14px; border-radius: 12px; font-weight: 700; font-size: .9rem; white-space: nowrap; }
.swap-ui .from { background: var(--warn-bg); color: var(--amber); text-decoration: line-through; text-decoration-thickness: 2px; }
.swap-ui .from small { font-weight: 600; opacity: .8; }
.swap-ui .to { background: var(--ok-bg); color: var(--green); }
.swap-ui svg { width: 56px; flex: none; fill: none; stroke: var(--text-3); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.swap-ui svg path { stroke-dasharray: 1; }
.js-motion .swap-ui svg path { stroke-dashoffset: 1; }
.js-motion .is-visible .swap-ui svg path, .js-motion [data-reveal].is-visible.b-swap svg path { animation: draw .8s cubic-bezier(.6, 0, .3, 1) .5s forwards; }
.b-swap:hover .swap-ui .to { animation: pop .45s cubic-bezier(.3, 1.6, .5, 1); }
@media (max-width: 520px) { .swap-ui { flex-wrap: wrap; } }
.week-ui { align-items: flex-end; flex-wrap: nowrap; height: 92px; gap: 10px; }
.week-ui i { flex: 1; height: var(--h, 50%); border-radius: 8px 8px 3px 3px; background: var(--accent-soft); transition: height .5s cubic-bezier(.3, 1.4, .5, 1); }
@media (prefers-color-scheme: dark) { .week-ui i { background: rgba(108,200,255,.18); } }
.week-ui i.hi { background: var(--hero); }
.js-motion [data-reveal]:not(.is-visible) .week-ui i { height: 6%; }
.b-week:hover .week-ui i:nth-child(odd) { height: calc(var(--h, 50%) - 12%); }
.js-motion [data-reveal]:not(.is-visible) .detect-ui .chip-d { opacity: 0; scale: .85; }
.detect-ui .chip-d { transition: opacity .4s ease, scale .4s cubic-bezier(.3, 1.5, .5, 1); }
.detect-ui .chip-d:nth-child(2) { transition-delay: .12s; }
.detect-ui .chip-d:nth-child(3) { transition-delay: .24s; }
.detect-ui .chip-d:nth-child(4) { transition-delay: .5s; }


.h-compact h1, h1.h-compact { font-size: clamp(2.6rem, 5.4vw, 4.3rem); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
