/*
 * Let's Serve You landing page. Three looks share one layout; each look is just a set of colour
 * tokens, chosen by data-look on <html> (A dark, B cream with a navy logo spotlight, C bright).
 * Light content sections (how it works, why, for chefs) are the same in every look.
 *
 * Contrast (WCAG 2.x): field and ghost-button borders are at least 3:1 against the ground they sit on,
 * and the focus ring takes a colour per region (--focus) that is at least 3:1 against that region:
 *   light grounds  #a8361c  on #f6f4f1 5.96, #ffffff 6.54, #f1ece7 5.57, #efe6dd 5.31, #fdeee6 5.78
 *   navy grounds   #f0875a  on #0b111a 7.50          brick call to action (A, B)  #ffffff on #a8361c 6.54
 *   field borders  #857a71  on #f6f4f1 3.81, #ffffff 4.18, #fdeee6 3.70; look A #6a7a91 on #0b111a 4.33, #121b29 3.96
 */
:root,
[data-look="B"] {
  --page: #f6f4f1;
  --top-bg: #f6f4f1; --top-text: #1c1714; --top-body: #4a423c; --top-muted: #6b625b; --top-accent: #a8361c;
  --top-border: #e3dcd4; --field-bg: #ffffff; --field-border: #857a71; --btn-bg: #a8361c; --btn-text: #ffffff;
  --focus: #a8361c; --top-focus: #a8361c; --story-focus: #a8361c; --cta-focus: #ffffff; --foot-focus: #f0875a;
  --line-strong: #857a71;
  --logo-bg: #0b111a; --logo-border: #22304a; --ring-1: #2a374b; --ring-2: #1e2a3b; --logo-ink: #ffffff; --logo-accent: #f0875a; --logo-caption: #a9b3c2;
  --story-bg: #efe6dd; --story-text: #1c1714; --story-body: #4a423c; --story-muted: #6b625b; --story-accent: #a8361c;
  --story-card: #ffffff; --story-card-border: #e3dcd4; --story-dash: #c9bfb4;
  --cta-bg: #a8361c; --cta-text: #ffffff; --cta-sub: #fbe6dc; --cta-btn-bg: #0b111a; --cta-btn-text: #ffffff;
  --cta-chip-border: #f3b9a3; --cta-chip-text: #ffffff; --cta-field-border: transparent;
  --foot-bg: #0b111a; --foot-text: #a9b3c2; --foot-head: #ffffff; --foot-border: #1e2a3b;
}
[data-look="A"] {
  --top-bg: #0b111a; --top-text: #ffffff; --top-body: #c9d1dc; --top-muted: #a9b3c2; --top-accent: #f0875a;
  --top-border: #1e2a3b; --field-bg: #121b29; --field-border: #6a7a91; --btn-bg: #f0875a; --btn-text: #1b0d06;
  --top-focus: #f0875a; --story-focus: #f0875a;
  --logo-bg: #121b29;
  --story-bg: #0b111a; --story-text: #ffffff; --story-body: #d5dbe4; --story-muted: #a9b3c2; --story-accent: #f0875a;
  --story-card: #121b29; --story-card-border: #22304a; --story-dash: #3a4a63;
}
[data-look="C"] {
  --page: #ffffff;
  --top-bg: #ffffff;
  --logo-bg: #fdeee6; --logo-border: #f3d3c4; --ring-1: #d6cdc3; --ring-2: #e3dcd4; --logo-ink: #1c1714; --logo-accent: #a8361c; --logo-caption: #6b625b;
  --story-bg: #fbf7f3;
  --cta-bg: #fdeee6; --cta-text: #1c1714; --cta-sub: #5e5650; --cta-btn-bg: #a8361c; --cta-btn-text: #ffffff;
  --cta-chip-border: #c79a87; --cta-chip-text: #5e5650; --cta-field-border: #857a71; --cta-focus: #a8361c;
  --foot-focus: #a8361c;
  --foot-bg: #f6f4f1; --foot-text: #6b625b; --foot-head: #1c1714; --foot-border: #e3dcd4;
}

* { box-sizing: border-box; }
/* `hidden` always wins, even over components that set display (cards, forms). */
[hidden] { display: none !important; }
body { margin: 0; font-family: 'Nunito Sans', system-ui, sans-serif; color: #1c1714; background: var(--page); }
a { color: #a8361c; } a:hover { color: #7d2814; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { margin: 0; font-weight: 800; font-size: 13px; letter-spacing: 0.14em; color: #a8361c; }
h1, h2, h3 { margin: 0; }
h2 { font-size: 46px; line-height: 52px; font-weight: 900; letter-spacing: -0.02em; }
h3 { font-size: 21px; line-height: 27px; font-weight: 800; }
p { margin: 0; }
.lede { font-size: 18px; line-height: 28px; color: #5e5650; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 14px; border: 0; font: inherit; font-weight: 800; font-size: 16px; text-decoration: none; cursor: pointer; }
/* One ring everywhere; its colour comes from the region (see the contrast note at the top). */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.top { --focus: var(--top-focus); }
.story { --focus: var(--story-focus); }
.cta { --focus: var(--cta-focus); }
.foot { --focus: var(--foot-focus); }
[tabindex="-1"]:focus { outline: none; }
.zip { position: relative; display: flex; gap: 10px; flex-wrap: wrap; }
.zip input { flex: 1 1 240px; min-height: 56px; padding: 0 18px; border-radius: 14px; font: inherit; font-size: 17px; }
.zip .btn { min-height: 56px; font-size: 17px; }
.zip label { flex: 1 0 100%; margin-bottom: -2px; font-weight: 700; font-size: 15px; text-align: left; }
.zip-result { flex: 1 0 100%; font-size: 16px; line-height: 24px; text-align: left; }
.zip-result[data-state="error"] { font-weight: 700; }
/* Kept in the accessibility tree while empty, so screen readers announce the answer when it arrives */
.zip-result:empty { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Logo: the colour version on light grounds, the white one on navy (which sections are navy depends on the look) */
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img, .logo-lockup img { height: auto; vertical-align: middle; }
.logo-white { display: none; }
[data-look="A"] .top .logo-color, .logo-panel .logo-color, .foot .logo-color { display: none; }
[data-look="A"] .top .logo-white, .logo-panel .logo-white, .foot .logo-white { display: block; }
[data-look="C"] .logo-panel .logo-color, [data-look="C"] .foot .logo-color { display: block; }
[data-look="C"] .logo-panel .logo-white, [data-look="C"] .foot .logo-white { display: none; }

/* Header and hero (the "top" of the page) */
.top { background: var(--top-bg); color: var(--top-text); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 24px; border-bottom: 1px solid var(--top-border); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--field-border); background: transparent; color: var(--top-text); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--top-body); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--top-text); }
.btn.primary { background: var(--btn-bg); color: var(--btn-text); }
.nav .btn { min-height: 44px; padding: 0 22px; font-size: 15px; }
.hero { padding: 88px 0 104px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.hero .eyebrow { color: var(--top-accent); }
.hero h1 { font-size: 68px; line-height: 70px; font-weight: 900; letter-spacing: -0.02em; }
.hero h1 span { color: var(--top-accent); }
.hero .sub { font-size: 20px; line-height: 30px; color: var(--top-body); max-width: 560px; }
.hero .zip input { border: 1px solid var(--field-border); background: var(--field-bg); color: var(--top-text); }
.hero .zip input::placeholder { color: var(--top-muted); }
.hero .zip label { color: var(--top-text); }
.hero .zip-result { color: var(--top-body); }
.hero .zip-result[data-state="error"] { color: var(--top-accent); }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--top-muted); font-size: 15px; padding: 0; margin: 0; list-style: none; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { stroke: var(--top-accent); }
.logo-panel { position: relative; display: flex; align-items: center; justify-content: center; min-height: 440px; border-radius: 32px; background: var(--logo-bg); border: 1px solid var(--logo-border); overflow: hidden; }
.logo-panel::before, .logo-panel::after { content: ''; position: absolute; border-radius: 999px; }
.logo-panel::before { inset: 40px; border: 1px dashed var(--ring-1); }
.logo-panel::after { inset: 96px; border: 1px solid var(--ring-2); }
.logo-lockup { position: relative; z-index: 1; width: min(420px, 80%); }
.logo-lockup img { width: 100%; }
.logo-caption { position: absolute; bottom: 28px; left: 0; right: 0; text-align: center; color: var(--logo-caption); font-size: 14px; letter-spacing: 0.12em; font-weight: 700; }

/* Light content sections */
.section { padding: 112px 0 96px; background: var(--page); }
.section.alt { background: #f1ece7; padding: 96px 0; }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 720px; margin-bottom: 48px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.card { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 22px; background: #ffffff; border: 1px solid #e3dcd4; }
.card p { font-size: 16px; line-height: 24px; color: #5e5650; }
.num { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 14px; background: #f7e3da; color: #a8361c; font-weight: 900; font-size: 18px; }
.why { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.why .card { flex-direction: row; gap: 18px; }
.why .card > div { display: flex; flex-direction: column; gap: 8px; }
.why svg { flex: none; stroke: #a8361c; }

/* Founder story */
.story { padding: 112px 0; background: var(--story-bg); color: var(--story-text); }
.story-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.story-side { display: flex; flex-direction: column; gap: 24px; }
.story .eyebrow { color: var(--story-accent); }
.story blockquote { margin: 8px 0 0; padding: 28px 30px; border-radius: 22px; background: var(--story-card); border: 1px solid var(--story-card-border); }
.story blockquote p { font-size: 30px; line-height: 38px; font-weight: 800; letter-spacing: -0.01em; }
.story blockquote span { color: var(--story-accent); }
.story blockquote footer { margin-top: 14px; color: var(--story-muted); font-size: 15px; }
.placeholder { display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; border-radius: 22px; border: 1px dashed var(--story-dash); color: var(--story-muted); font-size: 15px; }
.story .placeholder { height: 260px; }
.story-body { display: flex; flex-direction: column; gap: 20px; font-size: 18px; line-height: 30px; color: var(--story-body); }
.story-body strong { color: var(--story-text); }
.signature { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.signature b { color: var(--story-text); font-size: 18px; }
.signature span { color: var(--story-muted); font-size: 15px; }

/* For chefs */
.chef-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.chef-copy { display: flex; flex-direction: column; gap: 20px; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 17px; line-height: 26px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks svg { flex: none; margin-top: 2px; stroke: #a8361c; }
.btn.brick { background: #a8361c; color: #ffffff; }
.btn.ghost { background: transparent; border: 1px solid var(--line-strong); color: #1c1714; font-weight: 700; }
.chef-photo { margin: 0; min-height: 420px; border-radius: 28px; overflow: hidden; background: #f1ece7; }
.chef-photo picture, .chef-photo img { display: block; width: 100%; height: 100%; min-height: 420px; }
.chef-photo img { object-fit: cover; object-position: 55% center; }

/* Becoming a chef: how to apply and how vetting works */
.join-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.join-steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 12px; font-size: 16px; line-height: 24px; color: #5e5650; }
.join-steps b { color: #1c1714; }

/* Final call to action */
.cta { padding: 96px 0; background: var(--cta-bg); color: var(--cta-text); text-align: center; }
.cta .wrap { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.cta h2 { font-size: 50px; line-height: 56px; }
.cta p { font-size: 19px; line-height: 28px; color: var(--cta-sub); max-width: 620px; }
.cta .zip { width: 100%; max-width: 560px; justify-content: center; }
.cta .zip input { border: 1px solid var(--cta-field-border); background: #ffffff; color: #1c1714; }
.cta .zip label, .cta .zip-result { color: var(--cta-text); }
.cta .btn.dark { background: var(--cta-btn-bg); color: var(--cta-btn-text); }
.stores { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; list-style: none; margin: 8px 0 0; padding: 0; }
/* Not buttons yet: a dashed outline and quieter type, so they don't read as something to press */
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 20px 8px 16px; border-radius: 14px; border: 1.5px dashed var(--cta-chip-border); color: var(--cta-chip-text); font-weight: 700; font-size: 16px; line-height: 20px; cursor: default; }
.store span { display: flex; flex-direction: column; text-align: left; }
.store small { font-size: 11px; line-height: 14px; letter-spacing: 0.1em; text-transform: uppercase; }

/* Footer */
.foot { background: var(--foot-bg); color: var(--foot-text); padding: 64px 0 40px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-about { display: flex; flex-direction: column; gap: 16px; font-size: 15px; line-height: 23px; }
.foot nav { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.foot nav b { color: var(--foot-head); }
.foot nav a { color: var(--foot-text); text-decoration: none; }
.foot nav a:hover { color: var(--foot-head); }
.legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--foot-border); padding-top: 24px; margin-top: 40px; font-size: 14px; }

@media (max-width: 1200px) {
  .hero h1 { font-size: 56px; line-height: 60px; }
}
@media (max-width: 960px) {
  .hero-grid, .story-grid, .chef-grid, .join-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .steps, .why { grid-template-columns: minmax(0, 1fr); }
  /* Phone header: logo, Book a chef and a Menu button; the links open below. Without script they wrap to a row. */
  .nav { flex-wrap: wrap; height: auto; min-height: 72px; padding-top: 12px; padding-bottom: 12px; gap: 12px; }
  .nav-links { order: 3; flex-basis: 100%; gap: 20px; }
  .nav .btn { padding: 0 16px; }
  .nav.has-menu .menu-btn { display: inline-flex; }
  .nav.has-menu .nav-links { display: none; }
  .nav.has-menu.open .nav-links { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .nav.has-menu.open .nav-links a { display: flex; align-items: center; min-height: 48px; border-top: 1px solid var(--top-border); font-size: 17px; }
  .logo-panel { display: none; }
  .hero { padding: 56px 0 72px; }
  .hero h1 { font-size: 44px; line-height: 48px; }
  h2, .cta h2 { font-size: 34px; line-height: 40px; }
  .brand img { width: 104px; }
}
@media (prefers-reduced-motion: no-preference) {
  .top, .logo-panel, .story, .cta, .foot { transition: background-color 200ms ease, color 200ms ease; }
}

/* Placeholder legal pages (terms.html, privacy.html) */
.page-title { font-size: 46px; line-height: 52px; font-weight: 900; letter-spacing: -0.02em; }

/* Pre-launch waitlist forms (FR-WL-01). Only on the page when the API says the waitlist is open. */
.h3 { font-size: 21px; line-height: 27px; font-weight: 800; margin: 0; }
.waitlist-slot { margin-top: 24px; }
.waitlist { gap: 16px; max-width: 760px; text-align: left; color: #1c1714; }
.waitlist .field { display: flex; flex-direction: column; gap: 6px; }
.waitlist .field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.waitlist label { font-weight: 700; font-size: 15px; }
.waitlist .optional, .waitlist .field-hint { font-weight: 400; color: #5e5650; font-size: 14px; }
.waitlist input:not([type="checkbox"]) { min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid #857a71; background: #ffffff; color: #1c1714; font: inherit; font-size: 16px; }
.waitlist input[aria-invalid="true"] { border-color: #a8361c; border-width: 2px; }
.waitlist .check { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 4px 12px; align-items: start; }
.waitlist .check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: #a8361c; }
.waitlist .check label { font-weight: 400; font-size: 15px; line-height: 22px; color: #4a423c; }
.waitlist .check .field-error { grid-column: 2; }
.field-error { margin: 0; color: #a8361c; font-weight: 700; font-size: 14px; }
.field-error:empty { display: none; }
.waitlist .btn { align-self: flex-start; }
.form-status { font-size: 16px; line-height: 24px; }
.form-status[data-state="error"] { color: #a8361c; font-weight: 700; }
.form-status[data-state="ok"] { color: #1c1714; font-weight: 800; font-size: 18px; }
.form-status:empty { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* Honeypot: out of sight and out of the tab order; people never fill it, bots often do. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.join .waitlist-slot { margin: 0 0 24px; }

/* Results page: chefs.html?zip= (FR-DI-05) */
.results-hero { padding: 56px 0 48px; }
.results-hero .wrap { display: flex; flex-direction: column; gap: 14px; }
.results-hero .eyebrow { color: var(--top-accent); }
.results-hero h1 { font-size: 46px; line-height: 52px; font-weight: 900; letter-spacing: -0.02em; }
.results-price { font-size: 20px; font-weight: 800; color: var(--top-accent); }
.results-status { font-size: 17px; color: var(--top-body); }
.results-search { max-width: 560px; margin-top: 8px; }
.results-search input { border: 1px solid var(--field-border); background: var(--field-bg); color: var(--top-text); }
.results-search label { color: var(--top-text); }
.results-search .zip-result { color: var(--top-accent); }
.results { padding: 56px 0 72px; }
.chef-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.chef-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 22px; background: #ffffff; border: 1px solid #e3dcd4; }
.chef-head { display: flex; gap: 14px; align-items: center; }
.avatar { flex: none; width: 64px; height: 64px; border-radius: 999px; object-fit: cover; background: #f7e3da; }
.avatar.initials { display: inline-flex; align-items: center; justify-content: center; color: #a8361c; font-weight: 900; font-size: 22px; }
.chef-who { display: flex; flex-direction: column; gap: 2px; }
.chef-rating { color: #5e5650; font-size: 15px; font-weight: 700; }
.chef-cuisines { color: #a8361c; font-weight: 800; font-size: 15px; }
.chef-distance { display: inline-flex; align-self: flex-start; padding: 2px 10px; border-radius: 999px; background: #f1ece7; color: #4a423c; font-size: 14px; font-weight: 700; }
.chef-bio { color: #5e5650; font-size: 15px; line-height: 23px; flex: 1; }
.chef-book { align-self: stretch; min-height: 44px; font-size: 15px; margin-top: 4px; }
.skeleton { min-height: 220px; }
.skeleton .line { display: block; height: 14px; border-radius: 7px; background: #efe9e2; }
.skeleton .w40 { width: 40%; } .skeleton .w60 { width: 60%; } .skeleton .w80 { width: 80%; }
@media (prefers-reduced-motion: no-preference) {
  .skeleton .line, .skeleton .avatar { animation: pulse 1.2s ease-in-out infinite alternate; }
  @keyframes pulse { from { opacity: 1; } to { opacity: 0.45; } }
}
.results-error, .not-here { max-width: 760px; margin-top: 24px; }
.results .chef-list + .results-error, .chef-list[hidden] + .results-error { margin-top: 0; }
.results-page .foot { padding-top: 24px; }
.results-page .legal { margin-top: 0; }
.legal a { color: var(--foot-text); }
.legal a:hover { color: var(--foot-head); }
.results-error .btn { align-self: flex-start; }
.download { scroll-margin-top: 16px; }
.store.live { border-style: solid; padding: 0; }
.store.live a { display: inline-flex; align-items: center; min-height: 48px; padding: 8px 20px; color: inherit; text-decoration: none; }
.sticky-cta { display: none; }
@media (max-width: 960px) {
  .chef-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .chef-list, .waitlist .field-row { grid-template-columns: minmax(0, 1fr); }
  .results-hero h1 { font-size: 34px; line-height: 40px; }
  .results-hero { padding: 36px 0 32px; }
  .results { padding: 28px 0 48px; }
  /* Phone: a bar at the bottom keeps "Download the app to book" in reach while scrolling the list. */
  .results-page[data-state="results"] .sticky-cta { display: flex; position: sticky; bottom: 0; padding: 12px 16px; background: var(--page); border-top: 1px solid #e3dcd4; }
  .results-page .sticky-cta .btn { flex: 1; }
}
