/* ==========================================================================
   Heard by Buzzy — site styles
   Brand lives in :root. Rebrand by changing these tokens, not the rules below.
   Light only, warm neutrals + gold, no blue (Buzzy family rules).
   ========================================================================== */

:root {
  --paper: #FFFFFF;
  --paper-warm: #FBF8F2;
  --ink: #2B2A26;
  --ink-70: rgba(43, 42, 38, 0.70);
  --ink-55: rgba(43, 42, 38, 0.55);
  --ink-line: rgba(43, 42, 38, 0.10);
  --ink-line-firm: rgba(43, 42, 38, 0.18);

  --gold: #E8A825;
  --gold-hover: #D4991F;
  --gold-deep: #B8830F;
  --gold-label: #8A6210;            /* the only gold that passes as text on white */
  --gold-a16: rgba(232, 168, 37, 0.16);
  --gold-a30: rgba(232, 168, 37, 0.30);
  --gold-a45: rgba(232, 168, 37, 0.45);

  /* Kitchen status colors, used only on chips */
  --out: #A63A24;
  --out-bg: #FBEAE5;
  --low: #8A6210;
  --low-bg: #FCF1DA;
  --prep: #3F5B3A;
  --prep-bg: #EAF0E6;

  --font-head: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(60, 45, 10, 0.06), 0 12px 32px -12px rgba(60, 45, 10, 0.18);
  --shadow-lift: 0 2px 4px rgba(60, 45, 10, 0.06), 0 22px 44px -14px rgba(60, 45, 10, 0.26);
  --wrap: 1120px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--ink-55); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 28px; } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 8px;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-label);
  margin-bottom: 14px;
}
.sub { color: var(--ink-70); font-size: 18px; max-width: 46ch; margin-top: 16px; }
.grad-word {
  background: linear-gradient(100deg, var(--gold-deep) 0%, var(--gold) 55%, #F2C25A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 600; text-decoration: none;
  border-radius: 999px; border: 1px solid transparent;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn-sm { font-size: 15px; padding: 9px 16px; }
.btn-lg { font-size: 17px; padding: 15px 26px; }
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 6px 18px -8px var(--gold-a45); }
.btn-gold:hover { background: var(--gold-hover); transform: translateY(-1px) scale(1.01); }
.btn-ghost { background: var(--paper); color: var(--ink); border-color: var(--ink-line-firm); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-1px); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--ink-line);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: baseline; gap: 8px; text-decoration: none; }
.brand img { align-self: center; }
.brand-word { font-family: var(--font-head); font-weight: 700; font-size: 22px; letter-spacing: -0.03em; }
.brand-by { font-family: var(--font-mono); font-size: 12px; color: var(--ink-55); }
.nav-links { display: none; gap: 28px; }
.nav-links a { text-decoration: none; color: var(--ink-70); font-size: 15px; }
.nav-links a:hover { color: var(--ink); }
@media (min-width: 820px) { .nav-links { display: flex; } }
@media (max-width: 380px) { .brand-by { display: none; } }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 56px 0 72px;
  background:
    radial-gradient(60% 50% at 85% 20%, var(--gold-a16), transparent 70%),
    radial-gradient(40% 40% at 10% 90%, rgba(232, 168, 37, 0.08), transparent 70%);
}
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) {
  .hero { padding: 96px 0 112px; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 64px; }
}
.hero h1 { font-size: clamp(42px, 7.2vw, 76px); font-weight: 700; letter-spacing: -0.035em; }
.lede { font-size: 19px; color: var(--ink-70); margin-top: 22px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.cta-row.center { justify-content: center; }
.micro { font-size: 14px; color: var(--ink-55); margin-top: 14px; }
@media (max-width: 420px) { .cta-row .btn { width: 100%; } }

/* the board mock */
.hero-board { position: relative; }
.ticket {
  background: var(--paper);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift), 0 0 0 6px var(--gold-a16);
  padding: 18px;
}
@media (min-width: 640px) { .ticket { padding: 22px; } }
.ticket-head {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 1px dashed var(--ink-line-firm);
}
.ticket-head .muted { margin-left: auto; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--gold-a30); }
.convo { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.say { display: grid; gap: 4px; max-width: 88%; }
.say p { padding: 10px 14px; border-radius: 14px; font-size: 16px; line-height: 1.45; }
.who { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-55); }
.say-cook { justify-self: end; text-align: right; }
.say-cook p { background: var(--ink); color: var(--paper); border-bottom-right-radius: 4px; }
.say-heard p { background: var(--paper-warm); border: 1px solid var(--gold-a30); border-bottom-left-radius: 4px; }
.board-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--ink-line-firm); }
.chip { font-family: var(--font-mono); font-size: 12.5px; padding: 6px 10px; border-radius: 999px; }
.chip-out { background: var(--out-bg); color: var(--out); }
.chip-low { background: var(--low-bg); color: var(--low); }
.chip-prep { background: var(--prep-bg); color: var(--prep); }
.board-note { font-size: 12px; color: var(--ink-55); text-align: center; margin-top: 14px; }

/* conversation plays in once (main.js adds .play); static if JS or motion is off */
.js .say { opacity: 0; transform: translateY(8px); }
.js .play .say { animation: say-in .5s ease forwards; }
.js .play .say[data-step="2"] { animation-delay: .9s; }
.js .play .say[data-step="3"] { animation-delay: 2.4s; }
.js .play .say[data-step="4"] { animation-delay: 3.3s; }
@keyframes say-in { to { opacity: 1; transform: none; } }

/* ---------- sections ---------- */
section { scroll-margin-top: 72px; }
.section-head { margin-bottom: 40px; }
.section-head h2, .control h2, .demo-band h2, .faq h2, .closer h2 { font-size: clamp(32px, 4.6vw, 48px); font-weight: 700; }

/* roles */
.roles { padding: 24px 0 64px; }
.role-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 820px) { .role-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.role { padding: 24px; border-radius: var(--radius); background: var(--paper-warm); border: 1px solid var(--ink-line); }
.role-tag { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-label); }
.role h3 { font-size: 24px; margin: 8px 0 8px; }
.role p { color: var(--ink-70); }

/* features */
.features { padding: 64px 0 80px; }
.feature-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .feature-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.card {
  position: relative;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--ink-line);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--gold-a45); }
.card-icon {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--gold-a16); margin-bottom: 16px;
}
.card-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--gold-deep); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { color: var(--ink-70); font-size: 16px; }

/* shift timeline */
.shift {
  padding: 80px 0;
  background: linear-gradient(180deg, transparent, var(--paper-warm) 18%, var(--paper-warm) 82%, transparent);
}
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; max-width: 760px; }
.timeline li {
  display: grid; grid-template-columns: 92px 1fr; gap: 20px;
  padding: 22px 0; border-top: 1px solid var(--ink-line);
}
.timeline li:last-child { border-bottom: 1px solid var(--ink-line); }
.time { font-size: 14px; color: var(--gold-label); padding-top: 4px; }
.timeline h3 { font-size: 21px; margin-bottom: 6px; }
.timeline p { color: var(--ink-70); }
@media (max-width: 480px) { .timeline li { grid-template-columns: 1fr; gap: 6px; } }

/* control */
.control { padding: 88px 0; }
.control-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .control-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li {
  position: relative; padding: 16px 18px 16px 52px;
  border-radius: var(--radius-sm); border: 1px solid var(--ink-line); background: var(--paper);
}
.checks li::before {
  content: ""; position: absolute; left: 18px; top: 19px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%232B2A26' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* name */
.name { padding: 40px 0 88px; }
.name-quote { margin: 0 auto; max-width: 720px; text-align: center; }
.name-big { font-size: clamp(56px, 11vw, 120px); font-weight: 700; letter-spacing: -0.05em; line-height: 1; }
.name-small { font-size: 20px; color: var(--ink-70); margin-top: 18px; }
.name-small em { font-style: normal; color: var(--ink); font-weight: 600; }

/* demo band */
.demo-band { padding: 0 0 88px; }
.demo-inner {
  display: grid; gap: 28px; align-items: center;
  padding: 36px 24px; border-radius: 24px;
  background:
    radial-gradient(80% 120% at 100% 0%, var(--gold-a30), transparent 60%),
    var(--paper-warm);
  border: 1px solid var(--gold-a30);
}
@media (min-width: 860px) { .demo-inner { grid-template-columns: 1fr auto; padding: 52px 56px; } }

/* faq */
.faq { padding: 24px 0 88px; }
.faq-wrap { max-width: 800px; }
.faq h2 { margin-bottom: 24px; }
.faq details { border-top: 1px solid var(--ink-line); }
.faq details:last-of-type { border-bottom: 1px solid var(--ink-line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative;
  font-weight: 600; font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 22px; color: var(--gold-deep); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-70); max-width: 62ch; }

/* closer */
.closer {
  padding: 96px 0 104px; text-align: center;
  background: radial-gradient(50% 70% at 50% 100%, var(--gold-a16), transparent 70%);
}
.closer .sub { margin: 14px auto 0; }

/* footer */
.footer { background: var(--ink); color: var(--paper); padding: 48px 0 28px; }
.footer a { color: rgba(255, 255, 255, 0.82); text-decoration: none; }
.footer a:hover { color: var(--gold); }
.footer-grid { display: grid; gap: 24px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1fr auto; align-items: end; } }
.footer-brand .brand-by { color: rgba(255, 255, 255, 0.6); }
.footer-tag { color: rgba(255, 255, 255, 0.72); margin-top: 6px; }
.footer-links { display: grid; gap: 6px; }
@media (min-width: 720px) { .footer-links { justify-items: end; } }
.footer-small { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 14px; color: rgba(255, 255, 255, 0.6); }

/* scroll reveal (main.js adds .js to <html> and .in to elements) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .say { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; }
  .btn, .card { transition: none; }
}

/* 404 */
.page-404 { min-height: 100vh; display: grid; place-items: center; }
.page-404 h1 { font-size: clamp(40px, 7vw, 72px); }
