/* Golden Cheff — site styles. Tokens mirror apps/chef_ai_app/lib/app.dart (AppColors). */
:root {
  --bg: #0E0E10;
  --surface: #17171B;
  --line: #2A2A30;
  --gold: #C9A24B;
  --gold-soft: #E4C87A;
  --text: #F5F3EE;
  --text-2: #CFCBC2;
  --muted: #9A968C;
  --success: #4E9A6B;
  --error: #E07A6B;

  --display: "Bodoni Moda", "Bodoni 72", Didot, Georgia, serif;
  --body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --radius: 18px;
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Film grain over the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
.wrap { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 12px; }
.skip:focus { left: 16px; z-index: 200; background: var(--gold); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.04; letter-spacing: -.01em; margin: 0; }
h1 { font-size: clamp(44px, 6.4vw, 84px); }
h1 em, h2 em { font-style: italic; color: var(--gold-soft); }
h2 { font-size: clamp(34px, 4.4vw, 56px); max-width: 18ch; }
h3 { font-size: 24px; font-weight: 600; margin-bottom: 10px; }
.eyebrow, .kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow { margin-bottom: 28px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: pulse 2.4s ease-in-out infinite; }
.lede { font-size: clamp(18px, 1.6vw, 20px); color: var(--text-2); max-width: 34em; margin: 28px 0 36px; }
.fine { font-size: 14px; color: var(--muted); margin-top: 16px; }
.fine a { color: var(--text-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 17px 28px; border-radius: 999px; border: 1px solid var(--gold);
  background: var(--gold); color: var(--bg);
  font: 600 16px/1 var(--body); text-decoration: none; cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--gold-soft); border-color: var(--gold-soft); transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: transparent; border-color: var(--gold); }
.btn-sm { padding: 11px 18px; font-size: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 14, 16, .8);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 22px; font-weight: 600; }
.brand img { width: 28px; height: 28px; }
.nav nav { display: flex; gap: 28px; margin-left: auto; }
.nav nav a { color: var(--muted); font-size: 15px; text-decoration: none; transition: color .2s; }
.nav nav a:hover { color: var(--text); }
@media (max-width: 820px) {
  .nav nav { display: none; }
  .nav .btn-sm { margin-left: auto; }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; padding: 72px 0 104px; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(560px 420px at 78% 42%, rgba(201, 162, 75, .16), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 960px) {
  .hero { padding-top: 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
}

/* ---------- Phone mockup (mirrors cook_screen.dart) ---------- */
.hero-phone { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.phone {
  width: min(320px, 80vw); aspect-ratio: 9 / 19; padding: 12px; border-radius: 46px;
  background: linear-gradient(145deg, #2A2A30, #0B0B0D);
  box-shadow: 0 0 0 1px #34343B, 0 40px 80px -24px rgba(0, 0, 0, .85), 0 0 70px -12px rgba(201, 162, 75, .28);
  transform: rotate(-2deg);
}
.phone-screen {
  position: relative; height: 100%; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 48px 22px 22px; border-radius: 36px; background: var(--bg);
}
.phone-screen::before {
  content: ""; position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 88px; height: 24px; border-radius: 14px; background: #000;
}
.ps-progress { height: 4px; border-radius: 2px; background: var(--surface); overflow: hidden; }
.ps-progress span { display: block; height: 100%; background: var(--gold); }
.ps-step { font-size: 12px; color: var(--muted); margin: 8px 0 18px; }
.ps-instruction { font-size: 19px; line-height: 1.3; margin-bottom: 14px; }
.ps-safety { font-size: 12.5px; line-height: 1.45; color: var(--gold-soft); margin-bottom: 18px; }
.ps-timer { display: flex; align-items: baseline; gap: 14px; }
.ps-timer [data-countdown] { font-size: 34px; font-weight: 500; font-variant-numeric: tabular-nums; }
.ps-link { color: var(--gold); font-size: 14px; font-weight: 600; }
.ps-spacer { flex: 1; }
.ps-btn { padding: 14px; border-radius: 999px; background: var(--gold); color: var(--bg); text-align: center; font-size: 14px; font-weight: 600; }
.ps-back { margin-top: 10px; text-align: center; font-size: 13px; color: var(--muted); }
.hero-phone figcaption { font-size: 13px; letter-spacing: .02em; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 112px 0; border-top: 1px solid var(--line); }
.section-head { display: flex; flex-direction: column; gap: 18px; margin-bottom: 56px; }
.section-head > p { color: var(--muted); max-width: 36em; }
.num { display: block; margin-bottom: 28px; font-family: var(--display); font-style: italic; font-size: 20px; color: var(--gold); }

.pain-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.pain-grid article { background: var(--bg); padding: 32px 28px; }
.pain-grid p, .steps p, .feature p, .road-item p { color: var(--muted); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.steps li { border-top: 1px solid var(--gold); padding-top: 24px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; transition: border-color .25s;
}
.feature:hover { border-color: rgba(201, 162, 75, .5); }
.icon {
  width: 44px; height: 44px; margin-bottom: 24px; border-radius: 12px;
  display: grid; place-items: center; background: rgba(201, 162, 75, .1); color: var(--gold);
}
.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature.lead {
  grid-column: span 2; grid-row: span 2; padding: 48px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  background: linear-gradient(160deg, rgba(201, 162, 75, .12), var(--surface) 55%);
}
.feature.lead h3 { font-size: clamp(28px, 3vw, 40px); font-weight: 500; }
.feature.lead p { font-size: 18px; max-width: 30em; }
.resume-demo { display: grid; gap: 10px; max-width: 360px; font-size: 14px; }
.resume-demo span { display: flex; justify-content: space-between; padding: 12px 16px; border-radius: 12px; background: rgba(14, 14, 16, .6); border: 1px solid var(--line); color: var(--muted); }
.resume-demo strong { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--gold); color: var(--gold-soft); font-weight: 600; font-variant-numeric: tabular-nums; }

.roadmap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.road-item { padding: 28px; border: 1px dashed rgba(201, 162, 75, .35); border-radius: var(--radius); }
.tag {
  display: inline-block; margin-bottom: 20px; padding: 5px 10px; border-radius: 999px;
  border: 1px solid rgba(201, 162, 75, .4); color: var(--gold);
  font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}

@media (max-width: 960px) {
  .pain-grid, .steps, .roadmap { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature.lead { grid-row: auto; }
}
@media (max-width: 560px) {
  .section { padding: 80px 0; }
  .pain-grid, .steps, .roadmap, .feature-grid { grid-template-columns: 1fr; }
  .feature.lead { grid-column: auto; padding: 32px; }
}

/* ---------- Signup ---------- */
.signup {
  padding: 120px 0; border-top: 1px solid var(--line);
  background: radial-gradient(800px 420px at 50% 0%, rgba(201, 162, 75, .12), transparent 70%);
}
.signup-card { max-width: 720px; margin: 0 auto; text-align: center; }
.signup-card h2 { margin: 18px auto 20px; }
.signup-card > p { color: var(--text-2); }
.waitlist { margin-top: 40px; text-align: left; }
.field-row {
  display: flex; gap: 10px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  transition: border-color .2s;
}
.field-row:focus-within { border-color: var(--gold); }
.field-row input {
  flex: 1; min-width: 0; padding: 0 20px; border: 0; background: transparent;
  color: var(--text); font: inherit; font-size: 17px;
}
.field-row input::placeholder { color: #6E6A62; }
.field-row input:focus { outline: none; }
.check { display: flex; align-items: center; gap: 10px; margin-top: 20px; color: var(--text-2); font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--gold); }
.device label { display: block; margin-top: 16px; font-size: 14px; color: var(--muted); }
.device select {
  width: 100%; margin-top: 8px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit;
}
[data-status] { min-height: 1.5em; margin-top: 14px; font-size: 15px; }
[data-status][data-state="ok"] { color: var(--success); }
[data-status][data-state="warn"] { color: var(--gold-soft); }
[data-status][data-state="error"] { color: var(--error); }
@media (max-width: 560px) {
  .field-row { flex-direction: column; padding: 10px; border-radius: 20px; }
  .field-row input { padding: 14px 10px; }
}

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 24px 0; }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  list-style: none; cursor: pointer; font-family: var(--display); font-size: clamp(20px, 2.2vw, 24px);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--gold); font: 300 28px/1 var(--body); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 14px; max-width: 40em; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { padding: 64px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer-grid h4 { margin: 0 0 16px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--text); }
.footer-brand p { margin-top: 14px; max-width: 22em; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Landing page (/join) ---------- */
.lp-hero { display: flex; align-items: center; min-height: calc(100vh - 69px); padding: 56px 0 80px; }
.lp-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 12px; color: var(--text-2); }
.lp-list li { display: flex; gap: 12px; align-items: baseline; }
.lp-list li::before { content: "✓"; color: var(--gold); font-weight: 600; }
.lp-footer { padding: 28px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.lp-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.lp-footer a { margin-right: 18px; }

/* ---------- Legal pages + 404 ---------- */
.doc { padding: 80px 0 112px; }
.doc .wrap { width: min(100% - 40px, 760px); }
.doc h1 { font-size: clamp(40px, 5vw, 60px); margin-bottom: 12px; }
.doc .meta { margin-bottom: 40px; color: var(--muted); font-size: 15px; }
.doc h2 { max-width: none; margin: 44px 0 12px; font-size: 28px; }
.doc p, .doc li { color: var(--text-2); }
.doc p + p { margin-top: 12px; }
.doc ul { display: grid; gap: 8px; margin: 12px 0 0; padding-left: 20px; }
.doc ul + p { margin-top: 16px; }
.nav > .brand + .btn-sm { margin-left: auto; } /* header without nav links: push the CTA right */
.doc a { color: var(--gold-soft); }
.notfound { display: grid; place-items: center; min-height: calc(100vh - 160px); padding: 80px 0; text-align: center; }
.notfound p { margin: 16px 0 32px; color: var(--muted); }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(16px); animation: rise .8s cubic-bezier(.2, .7, .2, 1) forwards; }
.d1 { animation-delay: .08s; } .d2 { animation-delay: .18s; } .d3 { animation-delay: .28s; } .d4 { animation-delay: .4s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(201, 162, 75, .45); } 50% { box-shadow: 0 0 0 6px rgba(201, 162, 75, 0); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; animation: none; }
  .dot { animation: none; }
  .phone { transform: none; }
}
