/* ── Sofra House marketing site — design tokens ──────────────────────
   Palette: warm off-white ground, deep cocoa text, Sofra orange accent —
   lifted from the app's own brand (palette.ts / intro-splash.tsx).
   Type: Fraunces (display/headlines) + Work Sans (body/UI). */

:root {
  --bg: #FBF9F6;
  --surface: #FFFFFF;
  --surface-alt: #F3EEE6;
  --text: #241A12;
  --text-muted: #6B5D4F;
  --text-faint: #9B8C7A;
  --accent: #FF6B35;
  --accent-dark: #C2410C;
  --accent-soft: #FFE7DB;
  --border: #E8E0D6;
  --success: #2F9E58;
  color-scheme: light;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Work Sans', system-ui, -apple-system, sans-serif;

  --max-width: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1B1611;
    --surface: #241D17;
    --surface-alt: #2C241C;
    --text: #F3EDE4;
    --text-muted: #C2B4A2;
    --text-faint: #8C7D6B;
    --accent: #FF8257;
    --accent-dark: #FFA87D;
    --accent-soft: #3A2A20;
    --border: #3A2F25;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-inline: 24px;
}

/* ── Header ──────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
  text-decoration: none;
}

.brand img { width: 34px; height: 34px; border-radius: 9px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.15s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--accent-dark); }

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 700 !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; stroke: var(--text); }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 24px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 2px; border-radius: 8px; }
  .nav-cta { text-align: center; margin-top: 6px; }
}

/* ── Hero ────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: 72px 56px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../assets/hero-bg.jpg') center/cover;
  opacity: 0.16;
  z-index: 0;
}
.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  margin-bottom: 18px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent-dark);
}

.hero p.lede {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 48ch;
  margin-bottom: 30px;
}

.store-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--text);
  color: #fff;
  padding: 11px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.store-badge svg { width: 20px; height: 20px; flex-shrink: 0; }
.store-badge .store-badge-text { display: flex; flex-direction: column; line-height: 1.2; }
.store-badge .store-badge-text small { font-size: 10.5px; opacity: 0.75; font-weight: 500; }

.hero-art {
  display: flex;
  justify-content: center;
}
.hero-art img {
  width: 100%;
  max-width: 300px;
  filter: drop-shadow(0 24px 48px rgba(36, 26, 18, 0.18));
}

/* ── Sections ────────────────────────────────────────────────────── */

section { padding-block: 64px; }
section.alt { background: var(--surface-alt); }

.section-head {
  max-width: 640px;
  margin: 0 auto 44px;
  text-align: center;
}
.section-head .eyebrow { display: block; width: fit-content; margin: 0 auto 14px; }
.section-head h2 { font-size: clamp(26px, 4vw, 36px); margin-bottom: 12px; }
.section-head p { color: var(--text-muted); font-size: 16.5px; }

/* How it works steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 22px;
}
.step .step-num {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--text-muted); margin: 0; }

/* Feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 860px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

.feature {
  padding: 24px;
  border-radius: 14px;
}
.feature .icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature .icon-wrap svg { width: 22px; height: 22px; stroke: var(--accent-dark); }
.feature h3 { font-size: 16.5px; margin-bottom: 6px; }
.feature p { font-size: 14.5px; color: var(--text-muted); margin: 0; }

/* Chef CTA band */
.chef-band {
  background: var(--text);
  color: #fff;
  border-radius: 22px;
  padding: 44px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
  align-items: center;
}
@media (max-width: 760px) {
  .chef-band { grid-template-columns: 1fr; text-align: left; padding: 32px 24px; }
}
.chef-band h2 { color: #fff; font-size: clamp(22px, 3.5vw, 30px); margin-bottom: 10px; }
.chef-band p { color: rgba(255,255,255,0.78); margin-bottom: 0; font-size: 15.5px; max-width: 46ch; }
.chef-band .btn { margin-top: 0; }

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 860px) { .testimonials { grid-template-columns: 1fr; } }
.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}
.testimonial .stars { color: var(--accent); font-size: 14px; margin-bottom: 12px; letter-spacing: 2px; }
.testimonial p.quote { font-size: 15px; color: var(--text); margin-bottom: 16px; }
.testimonial .who { font-size: 13px; color: var(--text-faint); font-weight: 600; }

/* Final CTA */
.final-cta { text-align: center; padding-block: 72px; }
.final-cta h2 { font-size: clamp(28px, 4.5vw, 40px); margin-bottom: 14px; }
.final-cta p { color: var(--text-muted); margin-bottom: 30px; }
.final-cta .store-badges { justify-content: center; }

/* ── Buttons ─────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 14.5px;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
}
.btn-solid { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-light { border-color: rgba(255,255,255,0.5); color: #fff; }

/* ── Footer ──────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 48px 28px;
  background: var(--surface-alt);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-brand .brand { margin-bottom: 10px; }
.footer-brand p { color: var(--text-muted); font-size: 14px; max-width: 32ch; }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { text-decoration: none; font-size: 14.5px; color: var(--text-muted); }
.footer-col a:hover { color: var(--accent-dark); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-faint);
}

/* ── Legal / content pages (privacy, terms, delete-account, support) */

.page-head {
  padding-block: 56px 20px;
  text-align: center;
}
.page-head h1 { font-size: clamp(30px, 5vw, 42px); margin-bottom: 10px; }
.page-head .updated { color: var(--text-faint); font-size: 13.5px; }

.doc {
  max-width: 720px;
  margin: 0 auto;
  padding-block: 20px 72px;
}
.doc .intro {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  color: var(--text-muted);
  font-size: 15.5px;
  margin-bottom: 36px;
}
.doc section { padding-block: 0; margin-bottom: 30px; }
.doc h2 {
  font-size: 15px;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--accent-dark);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
.doc p { margin: 0 0 12px; color: var(--text); font-size: 15.5px; max-width: 64ch; }
.doc p:last-child { margin-bottom: 0; }
.doc a.inline-link { color: var(--accent-dark); font-weight: 600; text-decoration: underline; }

/* FAQ accordion (support page) */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 20px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
}
.faq-q svg { width: 18px; height: 18px; flex-shrink: 0; stroke: var(--text-faint); transition: transform 0.2s; }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.6;
  transition: max-height 0.2s ease, padding 0.2s ease;
}
.faq-item.open .faq-a { padding: 0 20px 18px; max-height: 400px; }

.faq-cat {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 36px 0 14px;
}
.faq-cat:first-child { margin-top: 0; }

/* Contact page */
.contact-grid {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 22px;
  text-align: center;
}
.contact-card .icon-wrap {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.contact-card .icon-wrap svg { width: 22px; height: 22px; stroke: var(--accent-dark); }
.contact-card h3 { font-size: 15.5px; margin-bottom: 6px; }
.contact-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 10px; }
.contact-card a.value { font-weight: 700; color: var(--accent-dark); text-decoration: none; font-size: 14.5px; }

.support-note {
  max-width: 640px;
  margin: 44px auto 0;
  text-align: center;
  background: var(--accent-soft);
  border-radius: 14px;
  padding: 20px 24px;
  color: var(--accent-dark);
  font-size: 14.5px;
  font-weight: 600;
}
