/* Circular Chef marketing site.
   Hand-written and dependency-free on purpose: the whole reason this exists
   separately from the Flutter app is that the app ships ~3.8 MB of canvas
   renderer before painting a pixel, which crawlers cannot read and visitors
   should not have to download to find out what the product is. Adding a
   framework here would give that back. Keep it small. */

:root {
  /* The app's own palette, so the two read as one product. --brand is the
     resolved ColorScheme.fromSeed(seedColor: Colors.green).primary, which is
     also the app bar, the PWA splash, and the icon background. */
  --brand: #3b6939;
  --brand-dark: #2a5029;
  --brand-container: #bcf0b4;
  --surface: #f7fbf1;
  --card: #ffffff;
  --text: #1a1c18;
  --text-muted: #43483f;
  --border: #dde5d6;
  --radius: 14px;
  --page: 1060px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.wrap {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 20px;
}

a { color: var(--brand); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.05rem; }

/* ---- header ---- */

.site-header {
  background: var(--brand);
  color: #fff;
  padding: 14px 0;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  /* Safety net: every child below is nowrap, so if a very narrow screen can't
     fit brand + button on one line the button drops to a second row rather
     than the bar overflowing or words breaking mid-phrase. */
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  /* The mark carries the size; the wordmark stays close to body scale so it
     never wraps to two lines. Both shrink with the viewport. */
  font-size: clamp(1.05rem, 4.2vw, 1.3rem);
  white-space: nowrap;
}
.brand img {
  width: clamp(38px, 11vw, 46px);
  height: clamp(38px, 11vw, 46px);
  border-radius: 10px;
  display: block;
  flex: none;
}
.site-header nav { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.site-header nav a { color: #fff; text-decoration: none; opacity: .92; font-size: .95rem; white-space: nowrap; }
.site-header nav a:hover { opacity: 1; text-decoration: underline; }

/* ---- buttons ---- */

.btn {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 650;
  text-decoration: none;
  border: 2px solid transparent;
  font-size: 1rem;
  /* A button label that breaks across two lines is the single ugliest thing
     that happens to this layout on a phone. Let the row wrap, never the words. */
  white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-secondary { background: transparent; color: var(--brand); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--brand); }
.site-header .btn {
  background: #fff;
  color: var(--brand);
  padding: 9px 18px;
  font-size: .95rem;
}

/* ---- hero ---- */

.hero { padding: 72px 0 56px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
}
.hero p.lede {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin: 0 0 28px;
  max-width: 46ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art {
  background: var(--brand);
  border-radius: 24px;
  padding: 36px;
  display: grid;
  place-items: center;
}
.hero-art img { width: 100%; max-width: 260px; height: auto; display: block; }

.pill {
  display: inline-block;
  background: var(--brand-container);
  color: var(--brand-dark);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: .82rem;
  font-weight: 650;
  margin-bottom: 18px;
}

/* ---- generic section ---- */

section { padding: 56px 0; }
section.alt { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-lede { color: var(--text-muted); max-width: 60ch; margin: 0 0 36px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
section.alt .card { background: var(--surface); }
.card p { margin: 0; color: var(--text-muted); font-size: .97rem; }
.step-n {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: 12px;
}

/* ---- coverage page ---- */

.page-head { padding: 48px 0 28px; }
.page-head h1 { margin-bottom: .35em; }
.coverage-meta { color: var(--text-muted); font-size: .95rem; margin: 0; }

.area h3 { margin-bottom: 2px; }
.area-state { font-weight: 500; color: var(--text-muted); }
.area-zip {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: .9rem;
  font-variant-numeric: tabular-nums;
}
.store-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; }
.store-tags li {
  background: var(--brand-container);
  color: var(--brand-dark);
  border-radius: 999px;
  padding: 3px 11px;
  font-size: .84rem;
  font-weight: 600;
}
/* A town on the scrape list but with no flyers indexed yet. Muted rather than
   hidden: it is real planned coverage, and saying so beats either silence or
   claiming it works. */
.area-soon { border-style: dashed; }
.area-soon h3, .area-soon .area-zip { color: var(--text-muted); }
.soon { margin: 0; font-size: .9rem; color: var(--text-muted); }

/* ---- stores ---- */

.stores { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.stores li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 18px;
  font-weight: 600;
  font-size: .95rem;
}
section.alt .stores li { background: var(--surface); }

/* ---- closing CTA ---- */

.cta {
  background: var(--brand);
  color: #fff;
  border-radius: 24px;
  padding: 48px 36px;
  text-align: center;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.88); max-width: 52ch; margin: 0 auto 26px; }
.cta .btn-primary { background: #fff; color: var(--brand); }
.cta .btn-primary:hover { background: var(--brand-container); }
.cta .btn-secondary { color: #fff; border-color: rgba(255,255,255,.55); }
.cta .btn-secondary:hover { border-color: #fff; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---- footer ---- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 48px;
  color: var(--text-muted);
  font-size: .92rem;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.site-footer nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }

/* ---- long-form pages (privacy, support) ---- */

.doc { max-width: 760px; padding: 56px 20px 72px; margin: 0 auto; }
.doc h1 { margin-bottom: .2em; }
.doc .updated { color: var(--text-muted); font-size: .92rem; margin: 0 0 36px; }
.doc h2 { margin-top: 1.8em; font-size: 1.25rem; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: .4em; }
.doc code {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: .9em;
}

@media (max-width: 760px) {
  .site-header { padding: 11px 0; }
  .site-header .wrap { gap: 12px; }
  .site-header nav { gap: 12px; }
  .site-header nav a.nav-link { display: none; }
  .site-header .btn { padding: 9px 15px; }

  .hero { padding: 36px 0 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  /* The art is the same logo the header already shows, so on a phone it stops
     leading the page - the headline does - and the panel shrinks to a divider
     between the hero and the first section. */
  .hero-art { padding: 24px; }
  .hero-art img { max-width: 132px; }
  .hero p.lede { font-size: 1.08rem; }
  .hero-actions .btn { flex: 1 1 auto; text-align: center; }

  section { padding: 40px 0; }
  .section-lede { margin-bottom: 26px; }
  .grid { gap: 14px; }
  .card { padding: 20px; }

  .cta { padding: 32px 20px; border-radius: 20px; }
  .cta-actions .btn { width: 100%; }

  /* Right-aligned links under a left-aligned copyright reads as a mistake at
     this width; stack them instead. */
  .site-footer { padding: 26px 0 36px; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; gap: 14px; }
  .site-footer nav { margin-left: 0; gap: 18px; }

  .doc { padding: 36px 20px 56px; }
}

/* Smallest phones still in circulation (~320px). Measured: without this the
   header needs 298px of content against 280px available and the button drops
   to a second row, doubling the bar height. */
@media (max-width: 360px) {
  .wrap { padding: 0 16px; }
  .brand { gap: 10px; }
  .site-header .btn { padding: 8px 13px; font-size: .9rem; }
}

.more-link { margin: 22px 0 0; font-weight: 600; }
