/* Munchl website styles. Shared by the Astro pages and the share-link
   edge function (netlify/edge-functions/share.ts), so keep it unhashed. */

:root {
  --orange: #ff6b35;
  --orange-deep: #e5531d;
  --orange-soft: #ffe5dc;
  --ink: #111111;
  --ink-2: #3a3a3a;
  --ink-3: #6b6b6b;
  --paper: #fbf8f4;
  --card: #ffffff;
  --line: #ebe5dd;
  --cream: #f4ede4;
  --gas: #ff6b35;
  --slop: #6b7a3a;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(17, 17, 17, .04), 0 12px 32px -12px rgba(17, 17, 17, .14);
  --max: 1160px;
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f6f2ec;
    --ink-2: #d6d0c8;
    --ink-3: #9d968d;
    --paper: #12100e;
    --card: #1c1916;
    --line: #2e2a25;
    --cream: #1f1b17;
    --orange-soft: #3a1d10;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 120px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.05; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 22px var(--display); letter-spacing: -0.03em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.audience-switch {
  display: flex; padding: 4px; border-radius: 999px; background: var(--cream);
  border: 1px solid var(--line); margin-left: auto;
}
.audience-switch a {
  text-decoration: none; font-size: 14px; font-weight: 600; padding: 7px 14px; border-radius: 999px; color: var(--ink-3);
  white-space: nowrap;
}
.audience-switch a[aria-current="page"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.header-cta { margin-left: 4px; }
@media (max-width: 640px) {
  .site-header .header-cta { display: none; }
  .brand span { display: none; }
  .audience-switch a { padding: 7px 12px; font-size: 13px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 16px var(--body); text-decoration: none; border: 0; cursor: pointer;
  padding: 14px 22px; border-radius: 999px; transition: transform .15s ease, background .15s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-deep); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn[aria-disabled="true"] { opacity: .55; cursor: default; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 56px; position: relative; }
.hero .eyebrow { margin-bottom: 18px; }
.hero h1 { font-size: clamp(44px, 8vw, 92px); font-weight: 800; max-width: 12ch; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero .lede { font-size: clamp(18px, 2.2vw, 22px); color: var(--ink-2); max-width: 38ch; margin: 24px 0 32px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding-top: 40px; } }
.note { font-size: 14px; color: var(--ink-3); margin-top: 14px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--orange);
}

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(32px, 5vw, 54px); font-weight: 750; margin: 12px 0 16px; }
.section-head p { color: var(--ink-2); font-size: 19px; }
.band { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dark-band { background: #141210; color: #f6f2ec; }
.dark-band .section-head p, .dark-band .muted { color: #b9b2a8; }

/* Problem: three apps */
.split3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 820px) { .split3 { grid-template-columns: 1fr; } }
.gap-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.gap-card .tag { font-size: 13px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.gap-card h3 { font-size: 24px; margin: 8px 0 10px; }
.gap-card p { color: var(--ink-2); font-size: 16px; }
.gap-card .lost { margin-top: 16px; font-size: 14px; color: var(--orange-deep); font-weight: 600; }

/* The loop */
.loop { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; position: relative; }
@media (max-width: 900px) { .loop { grid-template-columns: 1fr 1fr; gap: 16px; } }
@media (max-width: 560px) { .loop { grid-template-columns: 1fr; } }
.loop-step { padding: 28px 24px; border-left: 1px solid var(--line); position: relative; }
.loop-step:first-child { border-left: 0; }
@media (max-width: 900px) { .loop-step { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); } }
.loop-step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font: 800 15px var(--display); color: var(--orange); display: block; margin-bottom: 18px;
}
.loop-step .icon { font-size: 34px; line-height: 1; margin-bottom: 14px; }
.loop-step h3 { font-size: 26px; margin-bottom: 10px; }
.loop-step p { color: var(--ink-2); font-size: 16px; }

/* Feature rows */
.features { display: grid; gap: 20px; }
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 40px;
}
.feature:nth-child(even) .feature-visual { order: -1; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; padding: 24px; gap: 24px; }
  .feature .feature-visual { padding: 16px 8px; min-height: 0; }
  .feature:nth-child(even) .feature-visual { order: 0; }
}
.feature h3 { font-size: clamp(28px, 3.6vw, 38px); margin: 10px 0 14px; }
.feature > div > p { color: var(--ink-2); }
.feature ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.feature li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 16px; color: var(--ink-2); }
.feature li::before { content: ""; width: 8px; height: 8px; margin: 9px 0 0 6px; border-radius: 50%; background: var(--orange); }
.feature li b { color: var(--ink); font-weight: 600; }
.feature-visual {
  background: var(--cream); border-radius: var(--radius); min-height: 300px; padding: 28px;
  display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
}

/* Small grid of extras */
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .mini-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .mini-grid { grid-template-columns: 1fr; } }
.mini { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.dark-band .mini { background: #1d1a17; border-color: #2e2a25; }
.mini .icon { font-size: 28px; margin-bottom: 12px; }
.mini h4 { font-size: 21px; margin-bottom: 8px; }
.mini p { font-size: 15.5px; color: var(--ink-2); }
.dark-band .mini p { color: #b9b2a8; }

/* Promise list */
.promises { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
@media (max-width: 760px) { .promises { grid-template-columns: 1fr; } }
.promise { padding: 22px 0; border-top: 1px solid #2e2a25; }
.promise h4 { font-size: 20px; margin-bottom: 6px; }

/* FAQ */
.faq details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font: 650 20px var(--display); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange); font-size: 26px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; color: var(--ink-2); max-width: 64ch; }

/* CTA */
.cta-block {
  background: var(--orange); color: #fff; border-radius: 32px; padding: clamp(32px, 6vw, 64px);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
}
@media (max-width: 820px) { .cta-block { grid-template-columns: 1fr; } }
.cta-block h2 { font-size: clamp(32px, 5vw, 56px); }
.cta-block p { opacity: .92; margin-top: 12px; font-size: 18px; }
.cta-block .btn-dark { background: #111; color: #fff; }
.cta-block .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }

/* ---------- Visual mockups (illustrative, not app screenshots) ---------- */
.stack { position: relative; width: 100%; max-width: 360px; }
.vcard {
  background: var(--card); border-radius: 18px; box-shadow: var(--shadow); border: 1px solid var(--line);
  padding: 14px; display: flex; gap: 12px; align-items: center;
}
.vcard + .vcard { margin-top: 10px; }
.vthumb { width: 54px; height: 54px; border-radius: 12px; flex: none; background: linear-gradient(135deg, #ffb38f, #ff6b35); display: grid; place-items: center; font-size: 26px; }
.vcard .t { font-weight: 650; font-size: 15px; color: var(--ink); line-height: 1.3; }
.vcard .s { font-size: 13px; color: var(--ink-3); line-height: 1.35; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 650; padding: 4px 10px; border-radius: 999px; background: var(--orange-soft); color: var(--orange-deep); }
.chip.dark { background: var(--ink); color: var(--paper); }
.chip.green { background: #e3f1dc; color: #2f6b1d; }
@media (prefers-color-scheme: dark) { .chip.green { background: #1f3318; color: #a8d995; } .chip { color: #ffb08f; } }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }

.hero-visual { position: relative; min-height: 460px; display: grid; place-items: center; }
@media (max-width: 900px) { .hero-visual { min-height: 380px; } }
.post-tile {
  width: 250px; aspect-ratio: 9/14; border-radius: 26px; position: relative; overflow: hidden; box-shadow: var(--shadow);
  background: linear-gradient(160deg, #3b2316 0%, #8f3d17 45%, #ff8a55 100%);
  color: #fff; padding: 18px; display: flex; flex-direction: column; justify-content: flex-end;
}
.post-tile .big { font-size: 96px; position: absolute; top: 18%; left: 50%; transform: translateX(-50%); filter: drop-shadow(0 12px 24px rgba(0,0,0,.35)); }
.post-tile .who { font-size: 13px; opacity: .9; }
.post-tile .cap { font-weight: 650; font-size: 16px; line-height: 1.3; margin-top: 4px; }
.post-tile .actions { position: absolute; right: 12px; bottom: 90px; display: grid; gap: 14px; font-size: 22px; text-align: center; }
.post-tile .actions span { display: block; font-size: 11px; font-weight: 600; }
.float { position: absolute; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 10px 14px; font-size: 14px; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.float small { display: block; font-weight: 500; color: var(--ink-3); font-size: 12px; }
.float.f1 { top: 8%; left: 2%; transform: rotate(-4deg); }
.float.f2 { top: 44%; right: 0; transform: rotate(3deg); }
.float.f3 { bottom: 6%; left: 6%; transform: rotate(-2deg); }
@media (max-width: 480px) { .float.f1 { left: 0; } .float.f2 { right: -4px; } }

.ticket { width: 100%; max-width: 330px; background: var(--card); border-radius: 18px; box-shadow: var(--shadow); border: 1px solid var(--line); padding: 20px; font-size: 14px; }
.ticket .row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.ticket .row:last-of-type { border-bottom: 0; }
.ticket .head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.ticket .head b { font: 700 20px var(--display); }
.ticket .alert { margin-top: 12px; background: #fff3cd; color: #6b4e00; border-radius: 10px; padding: 8px 10px; font-weight: 600; font-size: 13px; }
@media (prefers-color-scheme: dark) { .ticket .alert { background: #3a2f0f; color: #f3d779; } }
.ticket .via { margin-top: 10px; color: var(--ink-3); font-size: 12.5px; }

.badge-gas { display: inline-flex; align-items: center; gap: 4px; background: var(--gas); color: #fff; font-weight: 800; padding: 4px 10px; border-radius: 999px; font-size: 14px; }
.badge-slop { display: inline-flex; background: var(--slop); color: #fff; font-weight: 800; padding: 4px 10px; border-radius: 999px; font-size: 14px; }
.badge-star { display: inline-flex; background: var(--cream); color: var(--ink); font-weight: 700; padding: 4px 10px; border-radius: 999px; font-size: 14px; border: 1px solid var(--line); }

.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
@media (max-width: 640px) { .stat-strip { grid-template-columns: 1fr; } }
.stat { border-top: 2px solid var(--ink); padding-top: 14px; }
.stat b { font: 800 40px var(--display); display: block; letter-spacing: -0.03em; }
.stat span { color: var(--ink-2); font-size: 15px; }

/* ---------- Steps (for places) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--paper); font: 800 16px var(--display); margin-bottom: 16px; }
.step h4 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 15.5px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.form input, .form textarea, .form select {
  font: 400 16px var(--body); color: var(--ink); background: var(--paper); border: 1.5px solid var(--line);
  border-radius: 12px; padding: 12px 14px; width: 100%;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--orange); }
.form textarea { min-height: 120px; resize: vertical; }
.form .hidden { display: none; }
.cta-block .form { color: var(--ink); }

/* ---------- Prose (legal) ---------- */
.prose { padding-top: 56px; padding-bottom: 80px; }
.prose h1 { font-size: clamp(36px, 6vw, 56px); margin-bottom: 8px; }
.prose .updated { color: var(--ink-3); font-size: 15px; margin-bottom: 36px; }
.prose h2 { font-size: 26px; margin: 40px 0 12px; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 22px; display: grid; gap: 8px; margin: 12px 0; }
.prose a { color: var(--orange-deep); }
.callout { background: var(--orange-soft); border-radius: var(--radius-sm); padding: 16px 18px; margin: 20px 0; color: var(--ink); }

/* ---------- Share pages ---------- */
.share { padding-top: 32px; padding-bottom: 72px; }
.share-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 860px) { .share-grid { grid-template-columns: 1fr; gap: 24px; } }
.share-media { border-radius: 26px; overflow: hidden; background: var(--cream); box-shadow: var(--shadow); }
.share-media img, .share-media video { width: 100%; max-height: 78vh; object-fit: cover; }
.share-media.empty { aspect-ratio: 4/3; display: grid; place-items: center; font-size: 80px; }
.credit { font-size: 12px; color: var(--ink-3); margin-top: 8px; }
.share h1 { font-size: clamp(34px, 5vw, 54px); margin: 10px 0 12px; }
.share .meta { color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-bottom: 18px; }
.share .desc { color: var(--ink-2); margin-bottom: 24px; }
.open-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 24px 0; }
.open-box h3 { font-size: 22px; margin-bottom: 6px; }
.open-box p { color: var(--ink-2); font-size: 15.5px; margin-bottom: 16px; }
.hours { width: 100%; border-collapse: collapse; font-size: 15px; }
.hours td { padding: 6px 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; color: var(--ink-2); }
.hours tr.today td { font-weight: 700; color: var(--ink); }
.menu-cat { margin-top: 22px; }
.menu-cat h4 { font-size: 18px; margin-bottom: 6px; }
.menu-item { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.menu-item span:last-child { white-space: nowrap; color: var(--ink-2); }
.sub-h { font: 700 22px var(--display); margin: 32px 0 8px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; margin-top: 40px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }
.site-footer h5 { font: 700 13px var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; color: var(--ink-2); }
.site-footer a:hover { color: var(--orange); }
.site-footer .fine { color: var(--ink-3); font-size: 13px; margin-top: 32px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* =====================================================================
   Detailed pages (features, platform, trust, developers, pro)
   ===================================================================== */
:root { --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; --code-bg: #15120f; }

/* Section sub-navigation under the header */
.subnav { border-top: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 4px; height: 44px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a { text-decoration: none; font-size: 14px; font-weight: 550; color: var(--ink-3); padding: 6px 12px; border-radius: 8px; white-space: nowrap; }
.subnav a:hover { color: var(--ink); background: var(--cream); }
.subnav a[aria-current="page"] { color: var(--ink); background: var(--cream); box-shadow: inset 0 -2px 0 var(--orange); border-radius: 8px 8px 0 0; }
.subnav .subnav-ext { margin-left: auto; color: var(--orange-deep); }
@media (max-width: 640px) { .subnav .subnav-ext { margin-left: 0; } }

/* Labels and icon tiles */
.kicker { font: 600 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.kicker b { color: var(--orange); font-weight: 600; }
.ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange-deep); flex: none; }
@media (prefers-color-scheme: dark) { .ic { color: #ffab85; } }
.dark-band .ic { background: #2a1c14; color: #ffab85; }
.mini .ic { margin-bottom: 14px; }
.more-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 600; font-size: 15px; color: var(--orange-deep); text-decoration: none; }
.more-link:hover { text-decoration: underline; }
.dark-band .more-link { color: #ffab85; }

/* Fact strip under a hero */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.facts > div { padding: 20px 22px; border-left: 1px solid var(--line); display: grid; gap: 6px; }
.facts > div:first-child { border-left: 0; }
.facts b { font: 700 17px/1.25 var(--display); letter-spacing: -0.01em; }
.facts span { font-size: 14px; color: var(--ink-3); line-height: 1.45; }
@media (max-width: 900px) { .facts { grid-template-columns: 1fr 1fr; } .facts > div:nth-child(3) { border-left: 0; } .facts > div:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } .facts > div { border-left: 0; } .facts > div + div { border-top: 1px solid var(--line); } }
section.facts-wrap { padding: 0 0 24px; }

/* Page intro for reference pages */
.page-intro { padding: 56px 0 32px; border-bottom: 1px solid var(--line); }
.page-intro h1 { font-size: clamp(38px, 6vw, 64px); font-weight: 800; margin: 14px 0 16px; max-width: 18ch; }
.page-intro p.lede { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); max-width: 62ch; }
.page-intro .btn-row { margin-top: 24px; }

/* Doc layout: sticky contents + modules */
.doc > * { min-width: 0; }
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; padding-top: 40px; padding-bottom: 72px; }
.toc { position: sticky; top: 128px; align-self: start; display: grid; gap: 2px; font-size: 14px; }
.toc .kicker { margin-bottom: 10px; }
.toc a { text-decoration: none; color: var(--ink-3); padding: 6px 10px; border-left: 2px solid var(--line); }
.toc a:hover { color: var(--ink); border-color: var(--orange); }
@media (max-width: 960px) {
  .doc { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 24px; }
  .toc { position: static; display: flex; overflow-x: auto; gap: 8px; padding-bottom: 6px; scrollbar-width: none; }
  .toc::-webkit-scrollbar { display: none; }
  .toc .kicker { display: none; }
  .toc a { border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; padding: 6px 12px; background: var(--card); }
}
.module { padding: 0 0 56px; margin-bottom: 56px; border-bottom: 1px solid var(--line); scroll-margin-top: 130px; }
.module:last-child { border-bottom: 0; margin-bottom: 0; }
.module-head { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; margin-bottom: 28px; }
.module-head h2 { font-size: clamp(28px, 3.6vw, 38px); font-weight: 750; margin: 8px 0 10px; }
.module-head p { color: var(--ink-2); max-width: 64ch; }
@media (max-width: 560px) { .module-head { grid-template-columns: 1fr; gap: 12px; } }

.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 720px) { .fgrid { grid-template-columns: 1fr; } }
.fcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.fcard h3 { font: 700 18px/1.25 var(--display); letter-spacing: -0.01em; }
.fcard p, .fcard li { font-size: 15px; color: var(--ink-2); line-height: 1.55; }
.fcard ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.fcard .tech { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); font: 500 12.5px/1.5 var(--mono); color: var(--ink-3); }
.fcard.wide { grid-column: 1 / -1; }

/* Spec table (term / value) */
.spec { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.spec th, .spec td { text-align: left; padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.spec tr:first-child th, .spec tr:first-child td { border-top: 0; }
.spec th { width: 34%; font-weight: 600; color: var(--ink); }
.spec td { color: var(--ink-2); }
.spec thead th { background: var(--cream); font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); width: auto; }
.spec code, .fcard code, .prose code, .module code { font: 500 .88em var(--mono); background: var(--cream); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; color: var(--ink); white-space: nowrap; }
.table-scroll { overflow-x: auto; border-radius: var(--radius-sm); }
.table-scroll .spec { min-width: 560px; }
.spec + .spec, .table-scroll + .fgrid, .fgrid + .table-scroll, .spec + .fgrid, .fgrid + .spec { margin-top: 14px; }

/* Code blocks */
.code { background: var(--code-bg); color: #efe8df; border-radius: var(--radius-sm); padding: 18px 20px; font: 500 13.5px/1.65 var(--mono); overflow-x: auto; margin: 14px 0; white-space: pre; }
.code .c { color: #8c8379; }
.code .k { color: #ff9a6b; }
.code .s { color: #b6d98e; }
.code-label { font: 600 12px var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; margin-top: 20px; }

/* Endpoints */
.endpoints { display: grid; gap: 8px; }
.endpoint { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 14px; align-items: baseline; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.endpoint .m { font: 700 12px var(--mono); padding: 3px 0; border-radius: 6px; text-align: center; background: #e3f1dc; color: #2f6b1d; }
.endpoint .m.post { background: var(--orange-soft); color: var(--orange-deep); }
@media (prefers-color-scheme: dark) { .endpoint .m { background: #1f3318; color: #a8d995; } .endpoint .m.post { color: #ffab85; } }
.endpoint .p { font: 600 14.5px var(--mono); overflow-wrap: anywhere; }
.endpoint .d { grid-column: 2; font-size: 14.5px; color: var(--ink-2); }

/* Flow diagram */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: fl; }
.flow > div { position: relative; padding: 20px 18px 20px 0; }
.flow > div::before { counter-increment: fl; content: counter(fl, decimal-leading-zero); font: 600 12px var(--mono); color: var(--orange); display: block; margin-bottom: 12px; }
.flow > div::after { content: ""; position: absolute; top: 26px; left: 30px; right: 12px; height: 1px; background: linear-gradient(90deg, var(--line), var(--orange)); }
.flow > div:last-child::after { display: none; }
.flow h4 { font: 700 17px/1.25 var(--display); margin-bottom: 6px; }
.flow p { font-size: 14.5px; color: var(--ink-2); }
.dark-band .flow p { color: #b9b2a8; }
.dark-band .flow > div::after { background: linear-gradient(90deg, #2e2a25, var(--orange)); }
@media (max-width: 900px) { .flow { grid-template-columns: 1fr; } .flow > div { padding: 0 0 22px 24px; border-left: 1px solid var(--line); } .flow > div::after { display: none; } .dark-band .flow > div { border-color: #2e2a25; } }

/* Plans */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.plan.featured { border: 2px solid var(--orange); }
.plan h3 { font-size: 28px; }
.plan .price { font: 800 40px var(--display); letter-spacing: -0.03em; }
.plan .price small { font: 500 15px var(--body); color: var(--ink-3); letter-spacing: 0; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.plan li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 15.5px; color: var(--ink-2); }
.plan li svg { color: var(--orange); margin-top: 3px; }
.plan .btn { margin-top: auto; }
.yes { color: #2f8a1d; font-weight: 700; }
.no { color: var(--ink-3); }
@media (prefers-color-scheme: dark) { .yes { color: #8fd479; } }

/* Callouts */
.note-box { border: 1px solid var(--line); border-left: 3px solid var(--orange); background: var(--card); border-radius: 10px; padding: 14px 16px; font-size: 15px; color: var(--ink-2); margin-top: 14px; }
.note-box b { color: var(--ink); }
.dark-band .note-box { background: #1d1a17; border-color: #2e2a25; border-left-color: var(--orange); color: #b9b2a8; }
.dark-band .note-box b { color: #f6f2ec; }

/* Two column prose + aside */
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .cols2 { grid-template-columns: 1fr; gap: 24px; } }
.checklist { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--ink-2); font-size: 16px; }
.checklist li svg { color: var(--orange); margin-top: 3px; }
.dark-band .checklist li { color: #b9b2a8; }

/* ---------- Ad-style pitch pages (/ and /for-places/) ---------- */
.pitch-hero { padding: 84px 0 64px; text-align: center; }
.pitch-hero .eyebrow { margin-bottom: 18px; }
.pitch-hero h1 { font-size: clamp(50px, 9vw, 116px); font-weight: 800; line-height: .96; letter-spacing: -.035em; }
.pitch-hero h1 em, .ad h2 em, .pitch-head h2 em { font-style: normal; color: var(--orange); }
.pitch-hero .lede { font-size: clamp(19px, 2.4vw, 23px); color: var(--ink-2); max-width: 32ch; margin: 24px auto 32px; }
.pitch-hero .btn-row { justify-content: center; }
.pitch-hero .note { margin-top: 18px; color: var(--ink-3); font-size: 15px; }

.ad { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 76px 0; border-top: 1px solid var(--line); }
.ad.flip .ad-copy { order: 2; }
.ad h2 { font-size: clamp(40px, 6vw, 74px); font-weight: 800; line-height: .98; letter-spacing: -.03em; }
.ad .eyebrow { margin-bottom: 14px; }
.ad p.say { font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); margin: 20px 0 24px; max-width: 30ch; }
.ad .proof { display: flex; flex-wrap: wrap; gap: 28px; }
.ad .proof b { display: block; font: 800 32px/1 var(--display); letter-spacing: -.02em; }
.ad .proof span { font-size: 14px; color: var(--ink-3); }

.stage { background: var(--cream); border-radius: 32px; min-height: 440px; display: grid; place-items: center; position: relative; overflow: hidden; padding: 32px 20px; }
.stage.hot { background: linear-gradient(150deg, #ff8a55, #e5531d); }
.stage.night { background: #161310; }
.stage.green { background: linear-gradient(150deg, #9fd38a, #3f7a2e); }
.stage.plum { background: linear-gradient(150deg, #6b4ab0, #2b1d55); }

.phone { width: 236px; height: 440px; border-radius: 36px; background: #0d0d0d; padding: 9px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); position: relative; z-index: 1; }
.screen { width: 100%; height: 100%; border-radius: 28px; overflow: hidden; position: relative; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; font-size: 14px; line-height: 1.35; }
.screen.light { background: #fbf8f4; color: #111; justify-content: flex-start; }
.scr-ramen { background: linear-gradient(170deg, #3b2316, #8f3d17 55%, #ffb38f); }
.scr-pasta { background: linear-gradient(170deg, #1e2a1a, #4e7a3a 60%, #b7e4a8); }
.scr-night { background: linear-gradient(170deg, #120e24, #3a2470 60%, #b48cff); }
.screen .emoji { position: absolute; top: 20%; left: 50%; transform: translateX(-50%); font-size: 92px; line-height: 1; }
.screen .who { font-size: 12px; opacity: .9; }
.screen .cap { font-weight: 700; margin: 4px 0 12px; }
.orderbar { background: var(--orange); color: #fff; border-radius: 14px; padding: 11px 12px; font-weight: 700; display: flex; justify-content: space-between; gap: 8px; white-space: nowrap; font-size: 13px; }
.live { position: absolute; top: 14px; left: 14px; background: #e11d48; color: #fff; font: 800 11px var(--body); padding: 4px 9px; border-radius: 6px; letter-spacing: .04em; }
.bubble { position: absolute; z-index: 2; background: #fff; color: #111; border-radius: 16px; padding: 10px 14px; font-weight: 700; font-size: 14px; line-height: 1.3; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .35); max-width: 220px; }
.bubble small { display: block; font-weight: 500; color: #777; font-size: 12px; }
.big-num { font: 800 clamp(96px, 14vw, 140px)/1 var(--display); color: #fff; letter-spacing: -.05em; text-align: center; }
.big-sub { color: #ffe1d3; font-weight: 600; text-align: center; margin-top: 10px; font-size: 18px; }

.panel { background: #fff; color: #111; border-radius: 20px; padding: 18px; width: 100%; max-width: 300px; font-size: 14px; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .45); position: relative; z-index: 1; }
.panel + .panel { margin-top: 12px; }
.panel .t { font: 700 17px var(--display); }
.panel .s { color: #6b6b6b; font-size: 13px; }
.panel .row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed #ebe5dd; }
.panel .row:last-child { border-bottom: 0; }
.panel .warn { background: #fff3cd; color: #6b4e00; border-radius: 8px; padding: 7px 9px; font-weight: 700; margin-top: 10px; }
.panel .tag { display: inline-block; background: #f4ede4; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 600; margin: 3px 3px 0 0; }
.panel .tag.ok { background: #e3f4dc; color: #2f6a1f; }
.panel .tag.hot { background: var(--orange); color: #fff; }
.panel .gas { background: var(--gas); color: #fff; border-radius: 999px; padding: 2px 9px; font-weight: 800; font-size: 12px; }
.stack-col { display: flex; flex-direction: column; align-items: center; width: 100%; }

.chatline { border-radius: 16px; padding: 10px 13px; margin-bottom: 8px; max-width: 88%; font-size: 13px; }
.chatline.me { background: var(--orange); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.chatline.bot { background: #efe9e1; color: #111; border-bottom-left-radius: 4px; }

.pitch-head { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.pitch-head h2 { font-size: clamp(38px, 6vw, 70px); font-weight: 800; line-height: .98; letter-spacing: -.03em; margin: 12px 0 16px; }
.pitch-head p { font-size: 20px; color: var(--ink-2); }
.dark-band .pitch-head p { color: #b9b2a8; }

.vs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.vs > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.vs > div.us { background: var(--orange); color: #fff; border-color: var(--orange); }
.vs h3 { font-size: 26px; margin-bottom: 8px; }
.vs p { color: var(--ink-2); }
.vs .us p { color: #fff; }
.vs .label { font: 700 12px var(--body); letter-spacing: .1em; text-transform: uppercase; opacity: .7; display: block; margin-bottom: 10px; }

.replaces { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.replaces > div { background: #1d1a17; border: 1px solid #2e2a25; border-radius: var(--radius-sm); padding: 22px; }
.replaces .ic { color: var(--orange); }
.replaces h4 { font-size: 21px; margin: 12px 0 6px; color: #f6f2ec; }
.replaces p { color: #b9b2a8; font-size: 15px; }
.replaces .was { display: block; font-size: 12px; color: #8b847a; margin-top: 10px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }

.also { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 900px; margin: 0 auto; }
.also span { display: inline-flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; font-weight: 600; font-size: 15px; }
.also svg { color: var(--orange); flex: none; }

@media (max-width: 860px) {
  .ad { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 56px 0; }
  .ad.flip .ad-copy { order: 0; }
  .stage { min-height: 380px; }
  .vs, .replaces { grid-template-columns: minmax(0, 1fr); }
  .pitch-hero { padding: 56px 0 44px; }
}
@media (max-width: 420px) {
  .bubble { max-width: 170px; font-size: 13px; }
}
