@font-face {
  font-family: "Big Shoulders";
  src: url("/fonts/big-shoulders.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/fonts/hanken-grotesk.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #f3f5f4;
  --card: #ffffff;
  --ink: #1c2024;
  --muted: #59626a;
  --line: #d6dbde;
  --navy: #12213b;
  --navy-2: #1a2d4e;
  --on-navy: #eef2f6;
  --on-navy-muted: #a9b6c8;
  --red: #d3262e;
  --blue: #2459c2;
  --yellow: #f0be1a;
  --green: #1e8a4c;
  --display: "Big Shoulders", "Oswald", "Arial Narrow", Impact, sans-serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #15191d;
    --card: #1d2227;
    --ink: #e8ecee;
    --muted: #9ba5ad;
    --line: #2c3238;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #15191d;
  --card: #1d2227;
  --ink: #e8ecee;
  --muted: #9ba5ad;
  --line: #2c3238;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.55;
  font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--display); font-weight: 800; margin: 0; letter-spacing: 0.005em; }
p { margin: 0; }
a { color: inherit; }
img, svg { display: block; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--yellow); color: #1c2024; padding: 10px 14px; border-radius: 6px; z-index: 10; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px;
  border: 0; border-radius: 10px;
  background: var(--yellow); color: #1c2024;
  font: 700 1.05rem/1 var(--body);
  text-decoration: none; cursor: pointer;
  transition: transform .12s ease, background-color .12s ease;
}
.btn:hover { background: #ffd23d; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-small { min-height: 44px; padding: 0 16px; font-size: .95rem; }

/* Header */
.top { background: var(--navy); color: var(--on-navy); position: sticky; top: 0; z-index: 5; border-bottom: 1px solid rgba(255,255,255,.06); }
.top-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.wordmark { font-family: var(--display); font-weight: 900; font-size: 2rem; letter-spacing: .06em; text-decoration: none; line-height: 1; }
.wordmark-small { font-size: 1.5rem; }
.nav { display: none; gap: 28px; margin-left: auto; }
.nav a { color: var(--on-navy-muted); text-decoration: none; font-weight: 600; font-size: 1rem; }
.nav a:hover { color: var(--on-navy); }
.top .btn-small { margin-left: auto; }
@media (min-width: 820px) {
  .nav { display: flex; }
  .top .btn-small { margin-left: 8px; }
}

/* Hero */
.hero { background: var(--navy); color: var(--on-navy); padding: 56px 0 0; overflow: hidden; }
.hero-copy { max-width: 760px; }
.hero-kicker { color: var(--yellow); font-weight: 700; font-size: 1rem; margin-bottom: 14px; }
.hero h1 { font-size: clamp(3rem, 2rem + 5.4vw, 6rem); line-height: .92; font-weight: 800; }
.hero-sub { margin-top: 22px; max-width: 34em; color: var(--on-navy-muted); font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); }
@media (min-width: 720px) { .hero { padding-top: 88px; } }

.join { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; max-width: 560px; }
.join input[type="email"] {
  flex: 1 1 240px; min-height: 52px; padding: 0 16px;
  border-radius: 10px; border: 2px solid transparent;
  background: #fff; color: #1c2024;
  font: 500 1.05rem var(--body);
}
.join input[type="email"]::placeholder { color: #7d868d; }
.join input[type="email"]:focus { outline: none; border-color: var(--yellow); }
.join .btn { flex: 0 0 auto; }
.join-note { flex-basis: 100%; font-size: .95rem; color: var(--on-navy-muted); min-height: 1.5em; }
.join-note.ok { color: #8fe0ad; font-weight: 600; }
.join-note.err { color: #ffb4b4; font-weight: 600; }
@media (max-width: 480px) { .join .btn { flex: 1 1 100%; } }

/* Barbell */
.bar { width: min(1200px, 116%); margin: 48px auto -2px; position: relative; left: 50%; transform: translateX(-50%); overflow: visible; }
.bar .pl { font: 800 15px var(--display); fill: #fff; text-anchor: middle; dominant-baseline: middle; }
.bar .pl-dark { fill: #3a2f05; }
.side-r { --from: 170px; }
.side-l { --from: -170px; }
.js .bar .plate { opacity: 0; transform: translateX(var(--from)); }
.js .bar.loaded .plate {
  animation: load .55s cubic-bezier(.22, 1.2, .36, 1) forwards;
  animation-delay: calc(var(--i) * 110ms);
}
@media (max-width: 600px) { .bar { width: 128%; margin-top: 36px; } }
@keyframes load { to { opacity: 1; transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) {
  .js .bar .plate, .js .bar.loaded .plate { opacity: 1; transform: none; animation: none; }
}

/* Sources band */
.band { padding: 88px 0; }
.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } }
.split-copy h2, .tabs-title, .vibes-copy h2, .private h2, .faq h2, .final h2 { font-size: clamp(2.3rem, 1.6rem + 2.8vw, 3.6rem); line-height: .98; }
.split-copy p { margin-top: 18px; max-width: 34em; color: var(--muted); }
.split-copy p:first-of-type { margin-top: 22px; }

.receipt { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(18, 33, 59, .35); }
.receipt-said { font-size: 1.02rem; color: var(--muted); font-style: italic; padding-bottom: 18px; border-bottom: 1px dashed var(--line); }
.receipt-rows { list-style: none; margin: 0; padding: 6px 0; }
.receipt-rows li, .receipt-total { display: grid; grid-template-columns: 1fr auto 3.2em; gap: 12px; align-items: center; padding: 12px 0; }
.receipt-rows li + li { border-top: 1px solid var(--line); }
.r-name { font-weight: 600; }
.r-kcal { text-align: right; font-weight: 700; }
.r-src { font-size: .8rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.src-menu { color: var(--green); background: color-mix(in srgb, var(--green) 13%, transparent); }
.src-est { color: #6b5200; background: color-mix(in srgb, var(--yellow) 32%, transparent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .src-est { color: var(--yellow); } :root:not([data-theme="light"]) .src-menu { color: #5fd08f; } }
:root[data-theme="dark"] .src-est { color: var(--yellow); }
:root[data-theme="dark"] .src-menu { color: #5fd08f; }
.receipt-total { border-top: 2px solid var(--ink); margin-top: 4px; font-weight: 800; }
.r-macros { font-size: .9rem; color: var(--muted); font-weight: 600; }
.receipt figcaption { margin-top: 14px; font-size: .92rem; color: var(--muted); }

/* Tabs */
.tabs-section { padding: 24px 0 40px; }
.tabs-lede { margin-top: 18px; max-width: 36em; color: var(--muted); }
.feature { padding: 72px 0; border-top: 1px solid var(--line); }
.feature:first-of-type { margin-top: 56px; }
.feature-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 860px) {
  .feature-grid { grid-template-columns: 1.1fr .9fr; gap: 64px; }
  .flip .feature-copy { order: 2; }
}
.feature h3 { display: flex; align-items: center; gap: 12px; font-size: 2.6rem; line-height: 1; }
.disc { width: 30px; height: 30px; color: var(--c); flex: none; }
.feature-lead { margin-top: 18px; font-size: clamp(1.3rem, 1.1rem + .7vw, 1.6rem); font-weight: 600; line-height: 1.3; max-width: 22em; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 26px; color: var(--muted); max-width: 32em; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 10px; border-radius: 2px; background: var(--c); }

/* Phone mockups (light screens in both themes) */
.phone {
  justify-self: center;
  width: min(300px, 82vw);
  aspect-ratio: 9 / 19;
  background: #15181b;
  border-radius: 46px;
  padding: 11px;
  box-shadow: 0 30px 60px -30px rgba(18, 33, 59, .55), inset 0 0 0 2px #2b3035;
}
.screen {
  height: 100%; border-radius: 36px; overflow: hidden;
  background: #f7f8f8; color: #1c2024;
  padding: 14px 16px 18px; position: relative;
  font-size: 13px; line-height: 1.35;
}
.s-status { display: flex; justify-content: space-between; font-weight: 700; font-size: 12px; padding: 2px 8px 12px; }
.s-dots { width: 52px; height: 10px; border-radius: 4px; background: linear-gradient(90deg, #1c2024 0 30%, transparent 30% 40%, #1c2024 40% 62%, transparent 62% 72%, #1c2024 72%); opacity: .8; }
.s-title { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; }
.s-meta { color: #6a737a; font-size: 12px; margin: 4px 0 12px; }
.s-card { background: #fff; border-radius: 16px; padding: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 0 0 1px #e6e9eb; margin-bottom: 10px; }
.s-card-quiet { opacity: .75; }
.s-ex { font-weight: 800; font-size: 14px; }
.s-last { color: #7a838a; font-size: 11.5px; margin-top: 2px; }
.sets { margin-top: 10px; display: grid; gap: 6px; }
.set { display: grid; grid-template-columns: 26px 1fr 1fr 24px; gap: 6px; align-items: center; }
.set > span:not(.tag) { background: #f1f3f4; border-radius: 8px; padding: 6px 8px; font-weight: 700; text-align: center; }
.set .tag { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-weight: 800; font-size: 11px; background: #eceff1; color: #59626a; }
.set .tag-w { background: color-mix(in srgb, var(--yellow) 40%, #fff); color: #5e4800; }
.set i { width: 22px; height: 22px; border-radius: 7px; border: 2px solid #c7cdd1; }
.set.done i { background: var(--c); border-color: var(--c); position: relative; }
.set.done i::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.set.ghost > span:not(.tag) { color: #b2b9be; font-weight: 600; }
.kcal { display: flex; align-items: baseline; gap: 8px; }
.kcal b { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1; }
.kcal span { color: #6a737a; font-size: 12px; }
.meter { height: 9px; border-radius: 9px; background: #eceff1; margin-top: 10px; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: inherit; background: var(--c); }
.meter.thin { height: 5px; margin-top: 4px; }
.macros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.macros span { display: block; color: #6a737a; font-size: 11px; }
.macros b { font-size: 13px; }
.s-list p { display: flex; justify-content: space-between; padding: 6px 0; }
.s-list p + p { border-top: 1px solid #eef0f1; }
.s-list span { color: #59626a; }
.s-fab { position: absolute; left: 16px; right: 16px; bottom: 18px; background: var(--yellow); color: #1c2024; text-align: center; border-radius: 14px; padding: 13px; font-weight: 800; }
.spark { width: 100%; height: auto; margin-top: 8px; color: #1c2024; }
.rate { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; margin-top: 6px; }
.rate-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.chat { display: grid; gap: 8px; }
.msg { max-width: 86%; padding: 9px 12px; border-radius: 16px; font-size: 12.5px; }
.msg-in { background: #fff; box-shadow: 0 0 0 1px #e6e9eb; border-bottom-left-radius: 5px; }
.msg-out { background: var(--c); color: #fff; justify-self: end; border-bottom-right-radius: 5px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chips span { border: 1.5px solid var(--c); color: var(--c); border-radius: 999px; padding: 6px 10px; font-weight: 700; font-size: 11.5px; }

/* Vibes */
.vibes { background: var(--navy); color: var(--on-navy); padding: 96px 0; }
.vibes-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .vibes-grid { grid-template-columns: 1fr 1fr; gap: 72px; } }
.vibes-copy p { margin-top: 18px; color: var(--on-navy-muted); max-width: 32em; }
.vibe-picker { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.vibe-picker button {
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.28); background: transparent; color: var(--on-navy);
  font: 600 1rem var(--body); cursor: pointer;
}
.vibe-picker button:hover { border-color: rgba(255,255,255,.6); }
.vibe-picker button[aria-checked="true"] { background: var(--on-navy); color: var(--navy); border-color: var(--on-navy); }

.vibe-stage {
  --v-bg: #c79f72; --v-card: #e0c39b; --v-ink: #2b2118; --v-sub: #6b5236; --v-acc: #2b2118; --v-acc-ink: #e0c39b;
  --v-font: var(--display); --v-radius: 4px;
  min-height: 380px; border-radius: 22px; padding: 40px 24px;
  display: grid; place-items: center;
  background: var(--v-bg); transition: background-color .35s ease;
  position: relative; overflow: hidden;
}
.vibe-card {
  width: min(330px, 100%); background: var(--v-card); color: var(--v-ink);
  border-radius: var(--v-radius); padding: 22px; position: relative;
  transition: background-color .35s ease, color .35s ease, border-radius .35s ease, box-shadow .35s ease;
}
.v-label { font-size: .85rem; color: var(--v-sub); font-weight: 700; }
.v-big { font-family: var(--v-font); font-size: 2.6rem; font-weight: 800; line-height: 1; margin: 4px 0 14px; }
.v-row { display: flex; justify-content: space-between; padding: 9px 0; border-top: 1px solid color-mix(in srgb, var(--v-ink) 18%, transparent); font-size: 1rem; }
.v-btn { margin-top: 16px; background: var(--v-acc); color: var(--v-acc-ink); text-align: center; padding: 13px; font-weight: 800; border-radius: calc(var(--v-radius) * .8); }

.vibe-stage[data-stage="cardboard"] .vibe-card { transform: rotate(-1.2deg); box-shadow: 2px 3px 0 rgba(43,33,24,.25); }
.vibe-stage[data-stage="cardboard"] .vibe-card::before { content: ""; position: absolute; top: -12px; left: 50%; width: 92px; height: 24px; transform: translateX(-50%) rotate(2deg); background: rgba(240, 232, 205, .82); }
.vibe-stage[data-stage="cloud"] { --v-bg: #cfe3f7; --v-card: #ffffff; --v-ink: #24425f; --v-sub: #6e8aa6; --v-acc: #4f8fd8; --v-acc-ink: #fff; --v-font: var(--body); --v-radius: 26px; }
.vibe-stage[data-stage="cloud"] .vibe-card { box-shadow: 0 20px 40px -20px rgba(36,66,95,.45); }
.vibe-stage[data-stage="christmas"] { --v-bg: #133d2a; --v-card: #fbf8f2; --v-ink: #1f2a22; --v-sub: #a2252c; --v-acc: #b3202a; --v-acc-ink: #fff; --v-radius: 14px; }
.vibe-stage[data-stage="christmas"]::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(#fff 1.4px, transparent 1.6px), radial-gradient(#fff 1px, transparent 1.2px); background-size: 46px 46px, 29px 29px; background-position: 0 0, 13px 19px; opacity: .55; }
.vibe-stage[data-stage="riso"] { --v-bg: #f4e3d0; --v-card: #fff7ee; --v-ink: #1d3f8f; --v-sub: #ff4b9a; --v-acc: #ff4b9a; --v-acc-ink: #fff7ee; --v-radius: 2px; }
.vibe-stage[data-stage="riso"] .vibe-card { box-shadow: 7px 7px 0 #ff4b9a; border: 2px solid #1d3f8f; }
.vibe-stage[data-stage="track"] { --v-bg: #b4432d; --v-card: #f6f4ef; --v-ink: #1c2024; --v-sub: #b4432d; --v-acc: #1c2024; --v-acc-ink: #fff; --v-radius: 8px; }
.vibe-stage[data-stage="track"]::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 62px, rgba(255,255,255,.75) 62px 66px); }
.vibe-stage[data-stage="neon"] { --v-bg: #0d0a1c; --v-card: #171230; --v-ink: #f2ecff; --v-sub: #2ef2ff; --v-acc: #ff2fd0; --v-acc-ink: #0d0a1c; --v-radius: 12px; }
.vibe-stage[data-stage="neon"] .vibe-card { box-shadow: 0 0 0 1.5px #ff2fd0, 0 0 28px rgba(255, 47, 208, .45); }
.vibe-stage[data-stage="neon"] .v-big { text-shadow: 0 0 14px rgba(46, 242, 255, .7); }
@media (prefers-reduced-motion: reduce) { .vibe-stage, .vibe-card { transition: none; } }

/* Privacy */
.band-quiet { padding: 88px 0; }
.private > * { max-width: 860px; }
.private p { margin-top: 18px; color: var(--muted); max-width: 38em; font-size: 1.2rem; }

/* FAQ */
.faq { padding: 24px 0 96px; }
.faq-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: .7fr 1.3fr; gap: 72px; } }
.faq-list { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; font-weight: 700; font-size: 1.15rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; border-right: 2.5px solid var(--muted); border-bottom: 2.5px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 40em; }

/* Final */
.final { background: var(--navy); color: var(--on-navy); padding: 96px 0; }
.final-inner > * { max-width: 760px; }
.final-inner .join { max-width: 560px; }
.final p { margin-top: 16px; color: var(--on-navy-muted); font-size: 1.2rem; }

/* Footer */
.foot { padding: 36px 0 44px; border-top: 1px solid var(--line); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.foot-links { display: flex; gap: 22px; }
.foot-links a { color: var(--muted); text-decoration: none; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.foot-links a:hover { color: var(--ink); }
.foot-legal { flex-basis: 100%; color: var(--muted); font-size: .9rem; }

/* Simple text pages (privacy, terms, 404) */
.page { padding: 72px 0 96px; min-height: 60vh; }
.page-inner > * { max-width: 760px; }
.page h1 { font-size: clamp(2.6rem, 1.8rem + 3vw, 4rem); line-height: .98; margin-bottom: 24px; }
.page p { margin-top: 14px; color: var(--muted); max-width: 38em; }
.page p a:not(.btn) { color: var(--ink); font-weight: 600; }
.page .btn { margin-top: 12px; }
