/* The www.noshchat.com landing page. Tokens are the stats site's (stats.noshchat.com), plus Avo's greens for the calls to action. */
:root {
  color-scheme: light;
  --bg: #f3f2ee;
  --surface: #fcfcfb;
  --text: #0b0b0b;
  --text-2: #52514e;
  --muted: #6f6e69;
  --line: #e2e0d9;
  --link: #1c5cab;
  --protein: #2a78d6;
  --carbs: #eb6834;
  --fat: #1baf7a;
  --fiber: #8a5cc2;
  --accent: #2e6a2a;
  --accent-text: #ffffff;
  --accent-soft: #e4efd2;
  --radius: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #121211;
    --surface: #1a1a19;
    --text: #f0efec;
    --text-2: #c3c2b7;
    --muted: #9b9a92;
    --line: #2f2f2c;
    --link: #86b6ef;
    --protein: #3987e5;
    --carbs: #d95926;
    --fat: #199e70;
    --fiber: #9d74d1;
    --accent: #a9d05c;
    --accent-text: #10210d;
    --accent-soft: #24301b;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121211;
  --surface: #1a1a19;
  --text: #f0efec;
  --text-2: #c3c2b7;
  --muted: #9b9a92;
  --line: #2f2f2c;
  --link: #86b6ef;
  --protein: #3987e5;
  --carbs: #d95926;
  --fat: #199e70;
  --fiber: #9d74d1;
  --accent: #a9d05c;
  --accent-text: #10210d;
  --accent-soft: #24301b;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 68px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--font); }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .45em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5.5vw, 3.2rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 .9em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.lede { color: var(--text-2); font-size: 1.12rem; max-width: 60ch; }
.muted { color: var(--muted); }
.eyebrow { font-size: .8rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: .5em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 56px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.brand img { display: block; }
.top nav { display: flex; align-items: center; gap: 2px; }
.top nav a { color: var(--text-2); text-decoration: none; padding: 6px 10px; border-radius: 8px; white-space: nowrap; }
.top nav a:hover { color: var(--text); background: var(--bg); }
.top nav a[aria-current] { color: var(--text); background: var(--bg); font-weight: 600; }
.top nav .btn { margin-left: 6px; padding: 7px 14px; }
@media (max-width: 720px) { .top nav .wide { display: none; } }
@media (max-width: 440px) { .top-row { gap: 8px; } .top nav a { padding: 6px 7px; } .top nav a.btn-primary { margin-left: 2px; padding: 7px 12px; } .brand { font-size: 1.05rem; } }
@media (max-width: 359px) { .brand { font-size: 0; gap: 0; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-weight: 650; text-decoration: none; padding: 11px 20px; border-radius: 999px; border: 1px solid transparent; line-height: 1.2; }
.top nav a.btn-primary, .btn-primary { background: var(--accent); color: var(--accent-text); }
.top nav a.btn-primary:hover, .btn-primary:hover { background: var(--accent); filter: brightness(1.08); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 10px; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

/* Hero */
.hero { padding: 48px 0 24px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.hero .avo { width: 220px; }
.hero .note { font-size: .92rem; color: var(--muted); }
@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; padding-top: 28px; }
  .hero .avo { width: 120px; grid-row: 1; }
}
.macros { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.macros li { font-size: .82rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); display: flex; align-items: center; gap: 6px; }
.macros i { width: 9px; height: 9px; border-radius: 3px; background: var(--text); }
.macros .p i { background: var(--protein); }
.macros .c i { background: var(--carbs); }
.macros .f i { background: var(--fat); }
.macros .fb i { background: var(--fiber); }

/* Screenshots, framed as a browser window */
.shot { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 12px 32px -18px rgb(0 0 0 / .35); }
.shot::before { content: ""; display: block; height: 22px; border-bottom: 1px solid var(--line); background:
  radial-gradient(circle at 14px 11px, var(--line) 4px, transparent 5px),
  radial-gradient(circle at 28px 11px, var(--line) 4px, transparent 5px),
  radial-gradient(circle at 42px 11px, var(--line) 4px, transparent 5px); }
.shot img { display: block; width: 100%; }
.shot-plain::before { display: none; }
.hero-shot { margin: 8px 0 0; }
.shot-tall { max-width: 520px; justify-self: center; }
.shot-tall img { max-height: 560px; object-fit: cover; object-position: top; -webkit-mask-image: linear-gradient(#000 80%, transparent); mask-image: linear-gradient(#000 80%, transparent); }

/* Sections */
section { padding: 56px 0; }
section + section { border-top: 1px solid var(--line); }
.section-head { max-width: 68ch; margin-bottom: 28px; }
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: center; margin: 0 0 56px; }
.feature:last-child { margin-bottom: 0; }
.feature:nth-of-type(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature:nth-of-type(even) .text { order: 2; }
.feature .text p { color: var(--text-2); }
.feature q { font-style: italic; }
@media (max-width: 820px) {
  .feature, .feature:nth-of-type(even) { grid-template-columns: 1fr; gap: 16px; }
  .feature:nth-of-type(even) .text { order: 0; }
}
.say { list-style: none; padding: 0; margin: 12px 0 1em; display: flex; flex-wrap: wrap; gap: 6px; }
.say li { background: var(--accent-soft); color: var(--text); border-radius: 14px 14px 14px 4px; padding: 5px 12px; font-size: .9rem; }

.extras { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.extras li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.extras h3 { font-size: 1rem; margin-bottom: .3em; }
.extras p { margin: 0; color: var(--text-2); font-size: .94rem; }
.extras-lead { margin-top: 0; }
.extras q { font-style: italic; }
.more { margin: 20px 0 0; font-weight: 600; }
.page-top { padding-top: 40px; }

/* Mascot notes: a character beside a speech bubble, as on the stats site */
.mascot-note { display: flex; align-items: flex-end; gap: 6px; margin: 16px 0; }
.mascot { flex: none; width: auto; height: 150px; }
.bubble { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-bottom: 36px; color: var(--text-2); }
.bubble::before { content: ""; position: absolute; left: -8px; bottom: 22px; width: 14px; height: 14px; background: var(--surface); border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: rotate(45deg); }
.bubble > :last-child { margin-bottom: 0; }
.bubble h2, .bubble h3 { color: var(--text); }
@media (max-width: 560px) { .mascot { height: 96px; } .bubble { margin-bottom: 20px; } }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.about ul { padding-left: 1.2em; margin: 0; color: var(--text-2); }
.about li { margin-bottom: .6em; }
.about li strong { color: var(--text); }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } }
.cast { display: flex; gap: 12px; align-items: flex-end; margin-top: 16px; }
.cast figure { margin: 0; text-align: center; font-size: .85rem; color: var(--muted); }
.cast img { height: 140px; width: auto; display: block; margin: 0 auto 6px; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 820px; }
@media (max-width: 680px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--accent); }
.plan h3 { font-size: 1.05rem; color: var(--text-2); font-weight: 650; }
.price { font-size: 2.6rem; font-weight: 750; letter-spacing: -.02em; line-height: 1; margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.price small { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan ul { padding-left: 1.2em; margin: 14px 0 20px; color: var(--text-2); }
.plan li { margin-bottom: .4em; }
.plan .btn { margin-top: auto; }
.fine { font-size: .88rem; color: var(--muted); max-width: 70ch; margin-top: 18px; }

/* Stats and videos */
.stats-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-top: 8px; }
.stats-links a { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; color: var(--text); text-decoration: none; }
.stats-links a:hover { border-color: var(--muted); }
.stats-links strong { display: block; font-size: 1.1rem; margin-bottom: 4px; }
.stats-links span { color: var(--text-2); font-size: .94rem; }
.stats-links .go { color: var(--link); font-weight: 600; margin-top: 8px; display: block; }

/* FAQ */
.faq details { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 8px 0 0; color: var(--text-2); }

/* Closing call to action */
.cta { text-align: center; }
.cta .actions { justify-content: center; }
.cta .lede { margin: 0 auto; }

/* Footer */
.foot { color: var(--muted); font-size: .88rem; padding-top: 32px; padding-bottom: 40px; border-top: 1px solid var(--line); }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 14px; }
.foot nav a { color: var(--text-2); }
.foot p { max-width: 80ch; }

/* Privacy and terms */
.legal { padding: 48px 16px 56px; max-width: 760px; }
.legal h1 { font-size: clamp(1.8rem, 4.5vw, 2.5rem); }
.legal h2 { font-size: 1.3rem; margin-top: 1.8em; }
.legal h3 { font-size: 1.05rem; margin-top: 1.4em; }
.legal p, .legal li { color: var(--text-2); }
.legal ul { padding-left: 1.2em; }
.legal li { margin: .35em 0; }
.legal strong { color: var(--text); }
.legal .updated { color: var(--muted); font-size: .92rem; }
.legal .summary { border: 1px solid var(--line); border-radius: 12px; padding: 4px 20px; margin: 24px 0; background: var(--accent-soft); }

/* 404 */
.lost { padding: 64px 0; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.lost img { height: 180px; width: auto; }
