/* Munch marketing site. Dark-only, matches the app palette. */
:root {
  --bg: #151117; --surface: #1D171F; --surface-2: #241D26; --surface-3: #2E2531; --border: #3B303B;
  --text: #FFF8F5; --text-2: #B4A7B1; --text-3: #7E7279;
  --accent: #FF8066; --coral: #FF5945; --orange: #FF8A30; --yellow: #FFBE35; --pink: #FF1684;
  --cream: #FFF4E8; --success: #4CD7A4;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --max: 1160px; --gutter: 24px; --radius: 24px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body { margin: 0; font-family: var(--sans); background: var(--bg); color: var(--text); line-height: 1.55;
  -webkit-font-smoothing: antialiased; font-size: 17px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; display: block; }
button { font: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; font-variation-settings: "SOFT" 60, "opsz" 144; letter-spacing: -0.02em; line-height: 1.02; margin: 0; }
h2 { font-size: clamp(36px, 5vw, 60px); }
h3 { font-size: 24px; }
.em { font-style: italic; color: var(--accent); padding-right: .08em; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 0 rgba(255,89,69,.6); animation: ping 2.2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255,89,69,.55); } 70% { box-shadow: 0 0 0 12px rgba(255,89,69,0); } 100% { box-shadow: 0 0 0 0 rgba(255,89,69,0); } }
.sub { color: var(--text-2); font-size: 19px; max-width: 560px; margin: 16px 0 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: 999px;
  font-weight: 600; font-size: 16px; border: 1px solid transparent; white-space: nowrap; transition: transform .15s ease, background .15s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--cream); color: #1A1218; }
.btn-primary:hover { background: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--text-3); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.soon { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 14px; border-radius: 999px; border: 1px solid var(--border);
  color: var(--text); font-weight: 600; font-size: 14px; background: var(--surface-2); white-space: nowrap; }
.soon::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--success); }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: 72px; background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--text-2); font-weight: 500; font-size: 15px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); text-decoration: none; }
.nav .soon { margin-left: 4px; }
main { padding-top: 72px; }

/* Device frame */
.device { position: relative; width: var(--w, 300px); aspect-ratio: 506 / 1100; padding: 11px; border-radius: 50px; background: #0C090D;
  border: 1px solid rgba(255,255,255,.12); box-shadow: 0 50px 100px -30px rgba(255,89,69,.45), 0 40px 80px -20px rgba(0,0,0,.7), inset 0 0 0 2px #1C1620; }
.device img { position: absolute; inset: 11px; width: calc(100% - 22px); height: calc(100% - 22px); object-fit: cover; border-radius: 40px; }
.device::after { content: ""; position: absolute; top: 24px; left: 50%; width: 32%; height: 24px; transform: translateX(-50%); border-radius: 999px; background: #000; }
.device.stack img { opacity: 0; transition: opacity .45s ease; }
.device.stack img.is-on { opacity: 1; }

/* Hero */
.hero { position: relative; padding: clamp(56px, 9vh, 120px) 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(60px, 9.6vw, 128px); font-weight: 500; line-height: .94; margin: 20px 0 24px; font-variation-settings: "SOFT" 100, "opsz" 144; }
.hero h1 .w { display: inline-block; }
.hero .lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--text-2); max-width: 520px; margin: 0 0 32px; }
.hero .actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero .fine { display: block; margin-top: 18px; font-size: 14px; color: var(--text-3); }
.hero-visual { position: relative; justify-self: center; padding: 40px 0 70px; }
.hero-visual .device { --w: min(320px, 72vw); }
.bubble { position: absolute; z-index: 2; width: 240px; padding: 12px 16px; border-radius: 18px; font-size: 15px; line-height: 1.35; box-shadow: 0 20px 40px rgba(0,0,0,.4); }
.bubble.you { right: calc(100% - 56px); top: 150px; background: var(--cream); color: #1A1218; border-bottom-right-radius: 6px; }
.bubble.munch { left: calc(100% - 64px); bottom: 130px; background: var(--surface-3); color: var(--text); border: 1px solid var(--border); border-bottom-left-radius: 6px; }
.bubble b { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .6; margin-bottom: 4px; font-weight: 600; }
.glow { position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(40% 35% at 70% 30%, rgba(255,89,69,.22), transparent 70%), radial-gradient(30% 30% at 20% 80%, rgba(255,22,132,.12), transparent 70%); }

/* Ticker */
.ticker { border-block: 1px solid var(--border); padding: 18px 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker-track { display: flex; gap: 14px; width: max-content; animation: ticker 48s linear infinite; }
.ticker span { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: 15px; color: var(--text-2); white-space: nowrap; }
.ticker span::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, var(--orange), var(--pink)); flex: none; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Sections */
section { padding: clamp(80px, 10vw, 140px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 64px); }

/* How it works */
.how .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.how .sticky { position: sticky; top: 100px; display: grid; place-items: center; padding: 20px 0 60px; }
.how .sticky .device { --w: min(300px, 70vw); }
.step { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; opacity: .3; transition: opacity .4s ease; }
.step.is-active { opacity: 1; }
.step:last-child { min-height: 50vh; }
.step .n { font-family: var(--display); font-style: italic; font-size: 20px; color: var(--accent); margin-bottom: 12px; }
.step h3 { font-size: clamp(30px, 3.4vw, 42px); margin-bottom: 14px; }
.step p { color: var(--text-2); font-size: 18px; max-width: 440px; margin: 0; }
.step .quote { margin-top: 18px; padding: 14px 18px; border-left: 2px solid var(--coral); color: var(--text); font-style: italic; font-family: var(--display); font-size: 20px; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 10px; min-height: 280px; }
.tile.w3 { grid-column: span 3; } .tile.w2 { grid-column: span 2; } .tile.w4 { grid-column: span 4; }
.tile h3 { font-size: 26px; }
.tile p { margin: 0; color: var(--text-2); font-size: 16px; max-width: 420px; }
.tile .ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-3); color: var(--accent); margin-bottom: 8px; }
.tile .ico svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile .art { margin-top: auto; padding-top: 22px; }
.convo { display: flex; flex-direction: column; gap: 8px; }
.convo div { padding: 10px 14px; border-radius: 14px; font-size: 15px; max-width: 85%; }
.convo .u { align-self: flex-end; background: var(--cream); color: #1A1218; border-bottom-right-radius: 4px; }
.convo .m { align-self: flex-start; background: var(--surface-3); color: var(--text); border-bottom-left-radius: 4px; }
.ring { display: flex; align-items: center; gap: 20px; }
.ring svg { width: 112px; height: 112px; transform: rotate(-90deg); }
.ring .track { stroke: var(--surface-3); }
.ring .arc { stroke: url(#ringGrad); stroke-dasharray: 289; stroke-dashoffset: 289; }
.ring .num { font-family: var(--display); font-size: 34px; line-height: 1; }
.ring .num small { display: block; font-family: var(--sans); font-size: 13px; color: var(--text-2); margin-top: 6px; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 96px; }
.bars i { flex: 1; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--orange), var(--coral)); transform-origin: bottom; }
.bars i:nth-child(6) { background: linear-gradient(180deg, var(--pink), var(--coral)); }
.avatars { display: flex; align-items: center; }
.avatars span { width: 48px; height: 48px; border-radius: 50%; border: 3px solid var(--surface); margin-left: -12px; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: #1A1218; background: var(--cream); }
.avatars span:first-child { margin-left: 0; }
.avatars span:nth-child(2) { background: var(--yellow); } .avatars span:nth-child(3) { background: var(--accent); } .avatars span:nth-child(4) { background: var(--success); }
.avatars em { margin-left: 14px; font-style: normal; color: var(--text-2); font-size: 14px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--text-2); font-size: 15px; }
.checks li { display: flex; gap: 10px; align-items: center; }
.checks li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none; background: var(--success); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/70% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/70% no-repeat; }
.tile .shot { position: absolute; right: -40px; bottom: -120px; width: 240px; border-radius: 28px; border: 1px solid var(--border); box-shadow: 0 30px 60px rgba(0,0,0,.5); }
.tile.has-shot p { max-width: 55%; }

/* Gallery */
.gallery { overflow: hidden; padding-bottom: 0; }
.gallery .section-head { padding-bottom: 8px; }
.gallery-track { display: flex; gap: 40px; align-items: flex-start; padding: 24px var(--gutter) 120px; width: max-content; }
.gallery-track figure { margin: 0; display: flex; flex-direction: column; gap: 18px; align-items: center; }
.gallery-track .device { --w: 280px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.04); }
.gallery-track figcaption { color: var(--text-2); font-size: 15px; }

/* Coming soon band */
.band { background: var(--cream); color: #1A1218; border-radius: 32px; padding: clamp(40px, 6vw, 80px); display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.band h2 { color: #1A1218; }
.band p { color: #5C4F57; font-size: 18px; margin: 14px 0 0; }
.band .platforms { display: flex; gap: 10px; flex-wrap: wrap; justify-self: end; }
.band .platforms span { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 14px; background: #1A1218; color: var(--cream); font-weight: 600; font-size: 15px; }
.band .platforms span small { display: block; font-size: 11px; font-weight: 500; opacity: .7; line-height: 1; margin-bottom: 3px; }
.band .platforms svg { width: 22px; height: 22px; fill: currentColor; }
.disclaimer { font-size: 13px; color: var(--text-3); max-width: 720px; margin: 24px auto 0; text-align: center; }

/* Pricing */
.pricing-hero { padding-bottom: 24px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 880px; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 10px; }
.plan.pro { border-color: color-mix(in srgb, var(--coral) 60%, var(--border)); box-shadow: 0 30px 80px -30px rgba(255,89,69,.45); }
.plan .price { font-family: var(--display); font-size: 56px; line-height: 1; margin: 6px 0; }
.plan .price small { font-family: var(--sans); font-size: 16px; color: var(--text-2); }
.plan .tag { font-size: 14px; color: var(--accent); font-weight: 600; }
.plan .checks { margin-top: 10px; }
.plan .btn, .plan .soon { margin-top: auto; align-self: flex-start; }
.faq { max-width: 880px; margin-top: 40px; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 18px 22px; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--text-2); }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--text-2); margin: 10px 0 0; font-size: 15px; }

/* Docs */
.doc { max-width: 760px; margin: 0 auto; padding: 56px var(--gutter) 80px; }
.doc h1 { font-size: 48px; margin: 0 0 8px; }
.doc .meta { color: var(--text-2); margin-bottom: 36px; }
.doc h2 { font-size: 28px; margin: 40px 0 10px; }
.doc h3 { font-size: 20px; margin: 24px 0 6px; }
.doc p, .doc li { color: var(--text-2); font-size: 16px; }
.doc li { margin: 4px 0; }
.doc strong { color: var(--text); }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
.doc th, .doc td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.doc th { color: var(--text-2); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; }
.callout { background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px; margin: 16px 0; }
code { background: var(--surface-3); padding: 2px 6px; border-radius: 6px; font-size: .92em; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 36px 0 48px; color: var(--text-3); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
footer nav { display: flex; gap: 20px; margin-left: auto; }
footer nav a { color: var(--text-2); }

@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile.w3, .tile.w2, .tile.w4 { grid-column: span 1; }
  .tile.w4 { grid-column: span 2; }
}
@media (max-width: 860px) {
  .nav-links a.hide-sm { display: none; }
  .nav-links { gap: 16px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { order: -1; padding: 10px 0 50px; }
  .bubble.you { right: auto; left: -8px; top: 60px; width: 180px; }
  .bubble.munch { left: auto; right: -8px; bottom: 70px; width: 180px; }
  .how .grid { grid-template-columns: 1fr; gap: 24px; }
  .how .sticky { top: 80px; padding: 0 0 20px; z-index: 1; background: linear-gradient(var(--bg) 80%, transparent); }
  .how .sticky .device { --w: min(200px, 50vw); }
  .step { min-height: 46vh; }
  .gallery-track { overflow-x: auto; width: auto; gap: 24px; padding-bottom: 60px; scroll-snap-type: x mandatory; }
  .gallery-track figure { scroll-snap-align: center; }
  .gallery-track .device { --w: 220px; }
  .band { grid-template-columns: 1fr; }
  .band .platforms { justify-self: start; }
  .plans { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .nav .wrap { gap: 14px; }
  .brand { font-size: 20px; }
  .nav-links { gap: 12px; }
  .nav-links a.hide-xs { display: none; }
  .soon { height: 36px; padding: 0 12px; font-size: 13px; }
  .bento { grid-template-columns: 1fr; }
  .tile.w4 { grid-column: span 1; }
  .tile.has-shot p { max-width: 100%; }
  .tile .shot { position: static; width: 100%; margin-top: 16px; border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .eyebrow::before { animation: none; }
  .step { opacity: 1; }
}
