/* ==========================================================================
   ChefSmart — marketing site styles
   ========================================================================== */

:root {
  /* Brand: charcoal, gold, cream (from the ChefSmart logo) */
  --ink: #242424;
  --ink-2: #3d3a36;
  --muted: #6c655b;
  --cream: #f8f5ef;
  --paper: #ffffff;
  --tint: #efe9df;
  --line: #e4dccf;
  --gold: #c09a5f;          /* decorative gold */
  --gold-strong: #7c5c30;   /* gold for text on light backgrounds (AA) */
  --gold-light: #d8b983;    /* gold for text on dark backgrounds */
  --gold-soft: #f4ecdf;
  --green: #1f7a55;         /* from the Forest colourway */
  --green-soft: #e2f0e8;
  --danger: #b42318;

  --font-display: "Outfit", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(36, 36, 36, .06);
  --shadow: 0 12px 32px -12px rgba(36, 36, 36, .18), 0 2px 6px rgba(36, 36, 36, .05);
  --shadow-lg: 0 30px 60px -20px rgba(36, 36, 36, .35);
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.2rem; font-family: var(--font-body); font-weight: 650; letter-spacing: -0.01em; }

p { margin: 0 0 1em; }
a { color: var(--gold-strong); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
img, svg { display: block; max-width: 100%; }
code { font-size: .9em; background: rgba(36, 36, 36, .07); padding: .1em .35em; border-radius: 5px; }

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

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

.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;
}
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }

.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-strong);
  margin-bottom: .9em;
}
.eyebrow-light { color: var(--gold-light); }
.accent { color: var(--gold); }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 62ch; }
.center .lede { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: .65em 1.25em;
  border: 1.5px solid transparent; border-radius: 999px;
  font: 600 .98rem/1.2 var(--font-body);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 6px 16px -6px rgba(36, 36, 36, .45); }
.btn-primary:hover { background: var(--gold-strong); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); background: rgba(255, 255, 255, .6); }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .35); background: transparent; }
.btn-outline-light:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .08); }
.btn-sm { min-height: 36px; padding: .45em 1em; font-size: .9rem; }
.btn-lg { min-height: 52px; padding: .8em 1.6em; font-size: 1.05rem; }
.btn-block { width: 100%; }

.link-button {
  background: none; border: 0; padding: 0; font: inherit; color: inherit;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.link-button.danger { color: var(--danger); font-size: .9rem; }

/* ---------- Flash messages ---------- */

.flash-wrap { padding-top: 24px; }
.flashes { display: grid; gap: 8px; margin-bottom: 16px; }
.flash {
  margin: 0; padding: 12px 16px; border-radius: 10px; font-size: .95rem; font-weight: 500;
  border: 1px solid transparent;
}
.flash-success { background: var(--green-soft); color: #1f4d38; border-color: #bfd9ca; }
.flash-error { background: #fdecea; color: #8a1c12; border-color: #f5c2bc; }
.flash-info { background: #fff6e5; color: #6b4a0d; border-color: #f3dcaa; }

/* ---------- Preview bar (admins, pre-launch) ---------- */

.preview-bar {
  display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; align-items: center;
  padding: 9px var(--gutter);
  background: var(--gold); color: var(--ink);
  font-size: .9rem; text-align: center;
}
.preview-bar a { color: var(--ink); font-weight: 600; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 245, 239, .88);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(230, 221, 207, .7);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font-size: 1.45rem;
}
.brand:hover { color: var(--ink); }
.brand em { font-family: var(--font-body); font-style: normal; font-weight: 500; font-size: .95rem; color: var(--muted); margin-left: 4px; }
.brand-light, .brand-light:hover { color: #fff; }
.logo-mark { width: 36px; height: 36px; flex: none; }
.wordmark { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em; }
.wordmark span { color: var(--gold); }
.brand-light .wordmark, .site-footer .wordmark { color: #fff; }
.brand-light .wordmark span, .site-footer .wordmark span { color: var(--gold-light); }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav > a {
  color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .98rem;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.site-nav > a:hover, .site-nav > a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold); }
.nav-actions { display: flex; gap: 10px; align-items: center; margin-left: 8px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--paper); cursor: pointer; position: relative;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  position: absolute; left: 12px; width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; left: 0; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav > a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .site-nav > a:hover, .site-nav > a[aria-current="page"] { border-bottom-color: var(--line); color: var(--gold-strong); }
  .nav-actions { margin: 16px 0 0; flex-direction: column; align-items: stretch; }
}

/* ---------- Sections ---------- */

.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-flush-top { padding-top: 0; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--ink); color: #f1ebe1; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 680px; margin-bottom: 48px; }

.page-hero { padding: clamp(64px, 9vw, 104px) 0 clamp(40px, 6vw, 64px); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }

/* ---------- Hero ---------- */

.hero {
  padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 112px);
  background:
    radial-gradient(700px 400px at 90% 10%, rgba(192, 154, 95, .22), transparent 70%),
    radial-gradient(600px 400px at 0% 100%, rgba(192, 154, 95, .10), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.center-actions { justify-content: center; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- App mock ---------- */

.app-mock {
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(36, 36, 36, .06);
  overflow: hidden;
  max-width: 480px; width: 100%; margin: 0 auto;
  transform: rotate(-1.2deg);
  color: var(--ink);
  font-size: .95rem;
}
.mock-top {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px; background: #f6f1e8; border-bottom: 1px solid var(--line);
}
.mock-top .dot { width: 10px; height: 10px; border-radius: 50%; background: #e2d7c6; }
.mock-title { margin-left: 8px; font-size: .82rem; font-weight: 600; color: var(--muted); }
.mock-body { padding: 18px; display: grid; gap: 14px; }
.mock-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mock-stat { background: var(--cream); border-radius: 12px; padding: 12px 14px; display: grid; gap: 2px; }
.mock-label { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.mock-value { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; line-height: 1.1; }
.mock-value small { font-size: .55em; color: var(--muted); margin-left: 2px; }
.mock-trend { font-size: .78rem; font-weight: 600; }
.mock-trend.down { color: var(--green); }
.mock-bar { height: 7px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: 6px; }
.mock-bar span { display: block; width: 75%; height: 100%; background: var(--green); border-radius: inherit; }
.mock-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mock-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 4px; border-bottom: 1px dashed var(--line); font-weight: 500;
}
.mock-list li:last-child { border-bottom: 0; }
.mock-list em { margin-left: auto; font-style: normal; color: var(--muted); font-size: .85rem; }
.mock-list .alert em { color: var(--danger); font-weight: 600; }
.tick { width: 18px; height: 18px; border-radius: 6px; border: 2px solid var(--line); flex: none; position: relative; }
.tick.done { background: var(--green); border-color: var(--green); }
.tick.done::after {
  content: ""; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.tick.warn { background: var(--gold-light); border-color: var(--gold-light); }
.mock-order {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 12px; background: var(--gold-soft);
  font-size: .88rem; font-weight: 500;
}
.mock-order strong { color: var(--gold-strong); white-space: nowrap; }

/* ---------- Feature cards ---------- */

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-card p { color: var(--muted); margin: 0; }
.feature-grid-dark .feature-card { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .1); box-shadow: none; }
.feature-grid-dark .feature-card p { color: #c9c0b3; }

.icon-badge {
  display: inline-grid; place-items: center;
  width: 48px; height: 48px; border-radius: 14px; margin-bottom: 18px;
  background: var(--gold-soft); color: var(--gold-strong);
}
.icon-badge svg { width: 24px; height: 24px; }
.feature-grid-dark .icon-badge { background: rgba(192, 154, 95, .16); color: var(--gold-light); }

@media (max-width: 960px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps li { border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 24px; }
.steps p { color: #c9c0b3; margin: 0; }
.step-num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--gold); color: var(--ink); font-weight: 700; margin-bottom: 16px;
}
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Split layouts ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-top { align-items: start; }
.split-reverse > :first-child { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split-reverse > :first-child { order: 0; }
}

.checklist { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 32px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green-soft);
}
.checklist li::after {
  content: ""; position: absolute; left: 7px; top: calc(.2em + 4px); width: 5px; height: 9px;
  border: solid var(--green); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.checklist-card {
  margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow);
}
.feature-detail .icon-badge { margin-bottom: 20px; }

.quote-card {
  background: var(--ink); color: #fff; border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow-lg);
}
.quote-mark { font-family: Georgia, serif; font-size: 5rem; line-height: .6; color: var(--gold-light); margin: 0 0 10px; }
.quote-text { font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.35; }
.quote-by { margin: 0; color: #c9c0b3; font-weight: 500; }

/* ---------- CTA + waitlist form ---------- */

.cta {
  background:
    radial-gradient(500px 260px at 50% 0%, rgba(192, 154, 95, .25), transparent 70%),
    var(--gold-soft);
}
.waitlist-form {
  display: flex; gap: 8px; max-width: 520px; margin: 24px auto 0;
  padding: 6px; background: var(--paper); border-radius: 999px; border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.waitlist-form input[type="email"] {
  flex: 1; min-width: 0; border: 0; background: transparent;
  padding: 0 18px; font: inherit; color: var(--ink);
}
.waitlist-form input[type="email"]:focus { outline: none; }
.waitlist-form:focus-within { outline: 3px solid var(--gold-light); outline-offset: 2px; }
.cta .flashes { max-width: 520px; margin: 20px auto 0; }
.form-note { font-size: .9rem; margin-top: 12px; }

@media (max-width: 520px) {
  .waitlist-form { flex-direction: column; border-radius: 20px; padding: 8px; }
  .waitlist-form input[type="email"] { min-height: 48px; }
}

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 12px; margin-top: 32px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600;
  display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--gold-strong); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); padding-bottom: 6px; }

/* ---------- About ---------- */

.values { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.value { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.value h3 { color: var(--gold-strong); margin-bottom: .3em; }
.value p { margin: 0; color: var(--muted); }
@media (max-width: 520px) { .values { grid-template-columns: 1fr; } }

/* ---------- Forms & cards ---------- */

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow-sm);
}
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--cream);
  transition: border-color .15s, background-color .15s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: var(--paper); }
.field textarea { resize: vertical; min-height: 140px; }

.contact-aside h2 { font-size: 1.5rem; }
.contact-aside p { color: var(--ink-2); }

.error-page { min-height: 50vh; display: grid; align-items: center; }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: #c9c0b3; padding: 64px 0 28px; font-size: .95rem; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer a { color: #e9e1d4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-brand p { max-width: 36ch; }
.footer-heading {
  font-family: var(--font-body); font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold-light); margin-bottom: 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-base {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .88rem;
}
.footer-base form { margin: 0; }
.footer-base .link-button { color: #e9e1d4; }
.powered-by { white-space: nowrap; }
.powered-by:hover { color: var(--gold-light) !important; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ==========================================================================
   Coming soon page
   ========================================================================== */

body.bare { background: var(--cream); }

.cs {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  background:
    radial-gradient(900px 600px at 85% 20%, rgba(192, 154, 95, .35), transparent 65%),
    radial-gradient(700px 500px at 10% 90%, rgba(192, 154, 95, .18), transparent 70%),
    var(--ink);
  color: #efe8dc;
  overflow: hidden;
}
.cs-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 24px; padding-bottom: 24px; }
.cs-main {
  flex: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px);
  align-items: center; padding-top: 24px; padding-bottom: 48px;
}
.cs h1 { color: #fff; font-size: clamp(2.6rem, 6.5vw, 4.8rem); }
.cs .accent { color: var(--gold-light); }
.cs-lede { font-size: 1.15rem; color: #d6cdbf; max-width: 54ch; }
.cs-form { margin-top: 28px; max-width: 520px; }
.cs-form .waitlist-form { margin: 0; border-color: transparent; }
.cs-form .form-note { color: #b6ab9b; }
.cs-pills { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; }
.cs-pills li {
  font-size: .85rem; font-weight: 500; padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16); color: #e4dccf; background: rgba(255, 255, 255, .04);
}
.cs-visual .app-mock { transform: rotate(2deg); }
.cs-footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 20px; padding-bottom: 24px; font-size: .88rem; color: #a99e8e;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.cs-footer a { color: #d6cdbf; }

.countdown { display: flex; gap: 12px; margin-top: 28px; }
.countdown > div {
  display: grid; justify-items: center; min-width: 72px; padding: 12px 10px;
  border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
}
.countdown span { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; color: #fff; line-height: 1.1; }
.countdown small { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: #b6ab9b; }

@media (max-width: 900px) {
  .cs-main { grid-template-columns: 1fr; }
  .cs-visual { order: 2; }
}
@media (max-width: 520px) {
  .countdown > div { min-width: 0; flex: 1; }
}

/* ==========================================================================
   Admin
   ========================================================================== */

.auth { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 32px 16px; }
.auth-card {
  width: 100%; max-width: 420px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 40px); box-shadow: var(--shadow);
}
.auth-card .brand { margin-bottom: 28px; }
.auth-card h1 { font-size: 2rem; margin-bottom: .2em; }
.auth-card .form { margin-top: 20px; }
.back-link { display: inline-block; margin-top: 24px; font-size: .92rem; color: var(--muted); }

.admin-body { background: #f6f2ea; }
.admin-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.admin-header-actions { display: flex; gap: 8px; align-items: center; }
.admin-header-actions form { margin: 0; }
.admin-main { padding-top: 40px; padding-bottom: 64px; display: grid; gap: 24px; }
.admin-intro h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: .2em; }
.admin-intro p { margin: 0; }

.admin-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 20px; }
.launch-card { display: flex; flex-direction: column; justify-content: space-between; gap: 20px; border-left: 5px solid var(--gold-light); }
.launch-card.is-live { border-left-color: var(--green); }
.launch-card h2 { font-size: 1.5rem; margin-bottom: .3em; }
.launch-card p { margin: 0; }
.launch-card form { margin: 0; }
.status-pill {
  display: inline-block; margin-bottom: 12px !important;
  font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: #fff3dc; color: #7a4f06;
}
.is-live .status-pill { background: var(--green-soft); color: #1f4d38; }
.stat-card { display: grid; align-content: center; gap: 4px; }
.stat-value { font-family: var(--font-display); font-size: 3rem; font-weight: 600; line-height: 1; }

@media (max-width: 860px) {
  .admin-grid { grid-template-columns: 1fr 1fr; }
  .launch-card { grid-column: 1 / -1; }
}

.admin-section-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.admin-section-head h2 { font-size: 1.5rem; margin: 0; }
.empty { margin: 0; }

.table-wrap { overflow-x: auto; margin: 0 -8px; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
td.actions { text-align: right; }
td form { margin: 0; }
td a { word-break: break-all; }

.messages { display: grid; gap: 14px; }
.message { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--cream); }
.message header { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin-bottom: 10px; }
.message-date { margin-left: auto; font-size: .85rem; }
.message p { white-space: normal; overflow-wrap: anywhere; }
.message form { margin: 0; }

/* ==========================================================================
   Product imagery, badges & app mock additions
   ========================================================================== */

.product-photo {
  width: 100%; height: auto; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); object-fit: cover; background: var(--tint);
}
.hero-visual .product-photo { aspect-ratio: 4 / 5; max-height: 620px; }
.split-media .product-photo { aspect-ratio: 4 / 3; }
.cs-visual .product-photo { aspect-ratio: 4 / 5; max-height: 72vh; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); }

.badges { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 28px 0 0; padding: 0; }
.badges li { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; color: var(--ink-2); }
.badges-light li { color: #e7e0d4; }
.badge-icon {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--gold-soft); color: var(--gold-strong);
  font: 700 .72rem/1 var(--font-display); letter-spacing: .02em;
}
.badges-light .badge-icon { background: rgba(192, 154, 95, .16); color: var(--gold-light); }
.badge-icon svg { width: 18px; height: 18px; }
.badge-ai { border: 1.5px solid currentColor; background: transparent; }
.badges-light .badge-ai { background: transparent; }

.mock-top { justify-content: flex-start; }
.mock-wifi { width: 14px; height: 14px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.mock-live {
  margin-left: auto; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--green); background: var(--green-soft); padding: 3px 8px; border-radius: 99px;
}
.mock-recipe { display: grid; gap: 2px; }
.mock-recipe strong { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; }
.mock-recipe .muted { font-size: .85rem; }
.mock-ring {
  display: grid; place-items: center; align-content: center; gap: 2px;
  width: 132px; height: 132px; margin: 4px auto; border-radius: 50%;
  background: conic-gradient(var(--gold) 0 68%, var(--line) 68% 100%);
  position: relative;
}
.mock-ring::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--paper); }
.mock-ring > * { position: relative; }
.mock-ring-value { font-family: var(--font-display); font-size: 2.1rem; font-weight: 600; line-height: 1; }
.mock-ring-value small { font-size: .45em; color: var(--muted); margin-left: 2px; }

/* ---------- Recipe menu (/menu) ---------- */

.menu-hero { padding-bottom: clamp(24px, 4vw, 40px); }
.menu-hero .eyebrow a { color: inherit; text-decoration: none; }
.menu-filters { display: grid; gap: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 22px; box-shadow: var(--shadow-sm); }
.menu-filters fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.menu-filters legend { float: left; width: 100%; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-block; padding: .35em .85em; border: 1px solid var(--line); border-radius: 99px; font-size: .9rem; background: var(--cream); color: var(--ink-2); transition: background .15s, border-color .15s; }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--gold-light); outline-offset: 2px; }
.menu-filter-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.menu-qr-link { margin-left: auto; font-size: .92rem; }
.menu-count { margin: 22px 0 14px; font-weight: 600; }
.menu-count.muted { margin-top: -8px; font-weight: 400; font-size: .92rem; }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.menu-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.menu-card-media { display: block; aspect-ratio: 2 / 1; background: var(--tint); }
.menu-card-media img { width: 100%; height: 100%; object-fit: cover; }
.menu-card-placeholder { display: grid; place-items: center; height: 100%; font-family: var(--font-display); font-size: 3rem; color: var(--gold); }
.menu-card-body { padding: 16px 18px 18px; display: grid; gap: 8px; align-content: start; }
.menu-card h3 { margin: 0; font-size: 1.15rem; }
.menu-card h3 a { color: var(--ink); text-decoration: none; }
.menu-card h3 a:hover { color: var(--gold-strong); }
.menu-meta { margin: 0; color: var(--muted); font-size: .92rem; }
.menu-badges { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.center-badges { justify-content: center; margin-top: 10px; }
.badge { font-size: .75rem; font-weight: 600; padding: .2em .65em; border-radius: 99px; background: var(--gold-soft); color: var(--gold-strong); }
.badge-vegetarian, .badge-vegan { background: var(--green-soft); color: #1f4d38; }
.menu-label { display: block; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.menu-allergens, .menu-check { margin: 0; font-size: .94rem; }
.menu-allergens strong { color: var(--ink); }
.menu-allergens.is-unknown { color: #6b4a0d; background: #fff6e5; border-radius: 10px; padding: 8px 10px; font-size: .9rem; }
.menu-check.is-flagged { color: #8a1c12; background: #fdecea; border-radius: 10px; padding: 8px 10px; }
.menu-card details { border-top: 1px solid var(--line); padding-top: 8px; }
.menu-card summary { cursor: pointer; font-weight: 600; font-size: .94rem; }
.menu-ingredients { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; font-size: .94rem; }
.menu-ingredients li span { display: inline-block; min-width: 4.6em; margin-right: 6px; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.nutrition { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: .92rem; background: var(--paper); }
.nutrition th, .nutrition td { padding: 5px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.nutrition thead th { border-bottom: 2px solid var(--ink); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.nutrition .num { text-align: right; white-space: nowrap; }
.nutrition tr.sub th { padding-left: 18px; font-weight: 400; color: var(--ink-2); }
.nutrition tbody th { font-weight: 600; }
.nutrition-note, .menu-note { font-size: .82rem; color: var(--muted); margin-top: 8px; }
.menu-note { margin-top: 32px; max-width: 80ch; }
.menu-empty { padding: 32px 0; text-align: center; color: var(--muted); }
.menu-recipe { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.menu-recipe-img { width: 100%; border-radius: var(--radius-lg); margin-bottom: 8px; }
.menu-h { font-size: 1.25rem; margin: 22px 0 8px; }
.menu-recipe-qr { margin-top: 28px; display: flex; gap: 16px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.menu-recipe-qr p { margin: 0; color: var(--muted); font-size: .92rem; }
.qr { flex: none; border-radius: 6px; }
.qr-sheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.qr-tile { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; justify-items: center; gap: 8px; text-align: center; break-inside: avoid; }
.qr-tile figcaption { display: grid; gap: 2px; font-size: .9rem; }
.qr-tile figcaption span { font-size: .72rem; color: var(--muted); word-break: break-all; }
.qr-tile-main { grid-column: 1 / -1; grid-template-columns: auto 1fr; justify-items: start; align-items: center; text-align: left; gap: 22px; }
.qr-tile-main figcaption { font-size: 1.15rem; }
@media (max-width: 760px) {
  .menu-recipe { grid-template-columns: 1fr; }
  .menu-qr-link { margin-left: 0; }
  .qr-tile-main { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}
@media print {
  .site-header, .site-footer, .preview-bar, .no-print, .skip-link { display: none !important; }
  body { background: #fff; }
  .section { padding: 0; }
  .qr-sheet { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .qr-tile { border-color: #ccc; box-shadow: none; }
}
.nutrition tbody th { text-transform: none; letter-spacing: 0; font-size: .92rem; color: var(--ink); }
.menu-card-media, .menu-card-media:hover { text-decoration: none; }
