/* KetoMenu's website. The app's own palette (src/lib/theme.ts) and type (Plus Jakarta Sans).
   The look: the counter. Big read-aloud words, the lime marker on the carb words, the app's
   die-cut food stickers. No sticky notes. */
:root {
  --bg: #FAF6EC; --bg-deep: #F2ECDC; --surface: #FFFFFF; --ink: #22261A; --ink-2: #3A3E2E; --muted: #565A47;
  --dim: #6F7159; --line: #E7E0CF; --line-strong: #D7CEB8; --brand: #55742A; --brand-deep: #45601F;
  --on-brand: #FFFFFF; --marker: #E3EE7E; --stamp: #A8D46A; --trap: #B8482F; --fit: #2A7E3B;
  --phone: #22261A; --screen: #FFFEF8; --shadow: 0 1px 0 rgba(34, 38, 26, .04), 0 24px 60px -24px rgba(34, 38, 26, .35);
  --hard: 6px 6px 0 #22261A;
  --display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15170F; --bg-deep: #0E0F09; --surface: #1E2016; --ink: #F3F0E4; --ink-2: #DAD7C8; --muted: #B4B3A0;
    --dim: #9A9985; --line: #303324; --line-strong: #3E412F; --brand: #A3C65A; --brand-deep: #8DB043;
    --on-brand: #15170F; --marker: #4A5A1C; --stamp: #A3C65A; --trap: #E07A5F; --fit: #7CC48A;
    --phone: #0B0C07; --screen: #1E2016; --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7); --hard: 6px 6px 0 #A3C65A;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #15170F; --bg-deep: #0E0F09; --surface: #1E2016; --ink: #F3F0E4; --ink-2: #DAD7C8; --muted: #B4B3A0;
  --dim: #9A9985; --line: #303324; --line-strong: #3E412F; --brand: #A3C65A; --brand-deep: #8DB043;
  --on-brand: #15170F; --marker: #4A5A1C; --stamp: #A3C65A; --trap: #E07A5F; --fit: #7CC48A;
  --phone: #0B0C07; --screen: #1E2016; --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7); --hard: 6px 6px 0 #A3C65A;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--display); overflow-x: hidden; }
a { color: var(--brand); }
img, svg { max-width: 100%; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
.mark { background: linear-gradient(transparent 12%, var(--marker) 12%, var(--marker) 88%, transparent 88%); padding: 0 .12em; border-radius: 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* ── top bar ── */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.logo img { width: 36px; height: 36px; border-radius: 9px; }
.top nav { display: flex; align-items: center; gap: 20px; }
.top nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; }
.pill { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 10px 18px; font-weight: 700; font-size: 15px; background: var(--ink); color: var(--bg) !important; text-decoration: none; white-space: nowrap; }

/* ── hero ── */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; padding-block: 28px 64px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.kicker::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--brand); }
h1 { font-size: clamp(44px, 7vw, 82px); line-height: .98; letter-spacing: -.045em; font-weight: 800; margin: 18px 0 22px; text-wrap: balance; }
h1 .soft { color: var(--muted); }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); max-width: 30ch; margin: 0 0 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store { display: inline-flex; align-items: center; gap: 12px; padding: 14px 24px 14px 20px; border-radius: 16px; background: var(--ink); color: var(--bg); text-decoration: none; box-shadow: var(--hard); border: 2px solid var(--ink); }
.store svg { width: 26px; height: 26px; fill: currentColor; }
.store small { display: block; font-size: 12px; font-weight: 600; opacity: .75; line-height: 1.1; }
.store b { display: block; font-size: 19px; line-height: 1.15; letter-spacing: -.01em; }
.fine { margin-top: 18px; font-size: 14px; color: var(--dim); }

/* the phone + its stickers */
.stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.try { font-weight: 800; font-size: 18px; display: flex; align-items: center; gap: 10px; }
.try .arrow { width: 34px; height: 22px; color: var(--brand); }
.phone { position: relative; width: min(340px, 100%); aspect-ratio: 340 / 690; border-radius: 52px; background: var(--phone); padding: 12px; box-shadow: var(--shadow); }
.screen { position: relative; height: 100%; border-radius: 41px; background: var(--screen); overflow: hidden; display: flex; flex-direction: column; padding: 18px 20px 20px; }
.notch { align-self: center; width: 96px; height: 26px; border-radius: 20px; background: var(--phone); margin-bottom: 14px; flex: 0 0 auto; }
.at { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.at p { margin: 0; font-weight: 700; font-size: 14px; color: var(--muted); }
.at h3 { margin: 2px 0 0; font-size: 20px; line-height: 1.15; letter-spacing: -.02em; }
.num { flex: 0 0 auto; text-align: right; }
.num s { display: block; color: var(--trap); font-weight: 700; font-size: 14px; text-decoration-thickness: 2px; }
.num b { display: block; font-size: 38px; line-height: 1; letter-spacing: -.04em; color: var(--fit); font-variant-numeric: tabular-nums; }
.num i { display: block; font-style: normal; font-size: 12px; font-weight: 700; color: var(--fit); }
.say { margin: 14px 0 12px; font-size: 17px; line-height: 1.35; font-weight: 700; letter-spacing: -.01em; }
.say > span { display: block; }
.rows { border-top: 2px solid var(--ink); min-height: 0; overflow: hidden; }
.rows .head, .rows .row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; }
.rows .head { font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--dim); padding: 8px 0 4px; }
.rows .row { padding: 6px 0; border-top: 1px solid var(--line); font-size: 14px; align-items: baseline; }
.rows .row span:first-child { color: var(--muted); font-size: 13px; }
.rows .row span:last-child { font-weight: 700; }
.done { flex: 0 0 auto; margin-top: auto; border-radius: 14px; background: var(--ink); color: var(--bg); text-align: center; font-weight: 800; padding: 13px; font-size: 15px; }
.places { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 420px; }
.places button { font: inherit; font-weight: 700; font-size: 14px; border-radius: 999px; border: 2px solid var(--line-strong); background: var(--surface); color: var(--ink); padding: 8px 14px; cursor: pointer; min-height: 44px; }
.places button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.places button:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.stk { position: absolute; width: 96px; pointer-events: none; filter: drop-shadow(0 6px 10px rgba(34, 38, 26, .18)); }
.stk svg { width: 100%; height: auto; }
.s1 { top: 6%; left: -2%; transform: rotate(-12deg); }
.s2 { top: 30%; right: -4%; transform: rotate(9deg); width: 84px; }
.s3 { bottom: 20%; left: 0%; transform: rotate(8deg); width: 78px; }
.s4 { bottom: 34%; right: 2%; transform: rotate(-7deg); width: 70px; }
.fade { animation: fade .35s ease both; }
@keyframes fade { from { opacity: .2; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ── 2: the "uhh" moment ── */
section { padding-block: 72px; }
.band { background: var(--ink); color: var(--bg); }
.band .wrap { display: grid; gap: 28px; }
.label { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--stamp); }
.talk { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px 24px; align-items: baseline; }
.talk .who { font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .6; }
.talk .line { font-size: clamp(26px, 4.4vw, 52px); line-height: 1.08; letter-spacing: -.035em; font-weight: 800; }
.talk .uhh { opacity: .45; font-style: italic; }
.talk hr { grid-column: 1 / -1; border: 0; border-top: 2px dashed rgba(250, 246, 236, .25); margin: 10px 0; width: 100%; }
.talk .now { color: var(--stamp); }
.talk .line .g { display: inline-block; font-size: .5em; letter-spacing: -.02em; vertical-align: middle; margin-left: 10px; padding: 4px 12px; border-radius: 999px; background: var(--stamp); color: #15170F; }

/* ── 3: steps ── */
h2 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.02; letter-spacing: -.04em; font-weight: 800; margin: 0 0 36px; text-wrap: balance; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.step { background: var(--surface); border: 2px solid var(--ink); border-radius: 24px; padding: 22px; display: grid; gap: 12px; align-content: start; box-shadow: var(--hard); }
.step .n { font-size: 15px; font-weight: 800; color: var(--brand); }
.step h3 { margin: 0; font-size: 24px; letter-spacing: -.03em; line-height: 1.1; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.step .pic { height: 120px; display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--bg-deep); border-radius: 16px; }
.step .pic svg { width: 64px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; padding: 0 10px; }
.chips span { font-size: 13px; font-weight: 700; padding: 6px 10px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line-strong); }
.dial { font-size: 54px; font-weight: 800; letter-spacing: -.05em; color: var(--fit); line-height: 1; }
.dial small { font-size: 16px; letter-spacing: 0; color: var(--muted); margin-left: 4px; }
.mini { display: grid; grid-template-columns: auto auto; gap: 4px 14px; font-size: 15px; align-items: baseline; }
.mini span { color: var(--muted); font-size: 13px; }
.mini b { font-weight: 800; }
.quote { font-size: 17px; font-weight: 800; letter-spacing: -.01em; padding: 0 16px; text-align: center; line-height: 1.3; }

/* ── 4: the huh number ── */
.huh { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.big { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; font-weight: 800; letter-spacing: -.06em; line-height: .9; }
.big s { font-size: clamp(64px, 10vw, 128px); color: var(--trap); text-decoration-thickness: 8px; opacity: .85; }
.big b { font-size: clamp(88px, 14vw, 180px); color: var(--fit); }
.big i { font-style: normal; font-size: 22px; letter-spacing: 0; color: var(--muted); }
.huh p { font-size: 21px; margin: 0 0 8px; max-width: 26ch; }
.huh .src { font-size: 14px; color: var(--dim); }

/* ── 5: snap ── */
.snap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; }
.cam { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.cam img { width: 100%; height: 100%; object-fit: cover; }
.cam .corners { position: absolute; inset: 14%; }
.cam .corners i { position: absolute; width: 44px; height: 44px; border: 5px solid #FFFFFF; }
.cam .corners i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 18px; }
.cam .corners i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 18px; }
.cam .corners i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 18px; }
.cam .corners i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 18px; }
.cam .tag { position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%); background: #FFFFFF; color: #22261A; font-weight: 800; font-size: 15px; padding: 8px 16px; border-radius: 999px; white-space: nowrap; }
.snap p { color: var(--ink-2); font-size: 19px; max-width: 32ch; margin: 0; }

/* ── 6: questions ── */
.faq > * { max-width: 760px; }
.faq details { border-top: 1px solid var(--line-strong); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line-strong); }
.faq summary { cursor: pointer; font-weight: 800; font-size: 19px; letter-spacing: -.01em; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--brand); }
.faq details[open] summary::after { content: "\2212"; }
.faq p { color: var(--muted); margin: 10px 0 0; font-size: 16px; }

/* ── closing + footer ── */
.close { text-align: center; display: grid; justify-items: center; gap: 18px; }
.close img { width: 150px; height: 150px; }
.close h2 { margin: 0; }
footer { border-top: 1px solid var(--line); padding-block: 28px 40px; font-size: 14px; color: var(--dim); }
footer .wrap { display: grid; gap: 12px; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer nav a { color: var(--ink-2); font-weight: 700; text-decoration: none; }

/* ── text pages (privacy, terms, help) ── */
.doc { max-width: 720px; padding-block: 24px 72px; }
.doc h1 { font-size: clamp(36px, 6vw, 56px); margin: 12px 0 20px; }
.doc h2 { font-size: 24px; letter-spacing: -.02em; margin: 36px 0 8px; }
.doc h3 { font-size: 19px; margin: 24px 0 6px; }
.doc p, .doc li { color: var(--ink-2); }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; display: block; overflow-x: auto; }
.doc td, .doc th { border: 1px solid var(--line-strong); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc em { color: var(--muted); font-style: normal; }
.help-hero { display: flex; align-items: center; gap: 18px; }
.help-hero img { width: 96px; height: 96px; flex: 0 0 auto; }
.mail { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; text-decoration: none; padding: 14px 20px; border-radius: 16px; border: 2px solid var(--ink); background: var(--surface); color: var(--ink); box-shadow: var(--hard); word-break: break-all; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 28px; }
.tile { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 18px; padding: 16px 18px; }
.tile b { display: block; font-size: 17px; margin-bottom: 4px; }
.tile span { color: var(--muted); font-size: 15px; }

@media (max-width: 860px) {
  .hero, .huh, .snap { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 8px; gap: 48px; }
  .lede { max-width: none; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .top nav .hide-sm { display: none; }
}
@media (max-width: 480px) {
  .talk { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .talk .who { margin-top: 14px; }
  .stk { width: 64px; }
  .s1 { top: 44px; left: -4px; }
  .s2, .s3, .s4 { display: none; }
  .top nav .hide-xs { display: none; }
  .rows .head, .rows .row { grid-template-columns: 84px minmax(0, 1fr); }
  section { padding-block: 56px; }
}
@media (prefers-reduced-motion: reduce) { .fade { animation: none; } }
#order { display: flex; flex-direction: column; min-height: 0; }
