/* Borough Bites — Liberty blue and statue green from the app icon; grade colours match the app. */
:root {
  --bg: #FBF8F1;
  --surface: #FFFFFF;
  --ink: #15202E;
  --ink-muted: #586374;
  --teal: #2F66A6;
  --teal-deep: #24589A;
  --teal-tint: #E3ECF6;
  --green: #8FCB85;
  --green-tint: #E5F3DF;
  --grade-a: #2E8B47;
  --grade-b: #D9822B;
  --grade-c: #CC3D35;
  --grade-p: #7A828C;
  --hairline: #E7E1D4;
  --shadow: 0 1px 2px rgba(21, 32, 46, .04), 0 8px 24px rgba(21, 32, 46, .06);

  --display: ui-serif, "New York", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 20px;
  --wrap: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1522;
    --surface: #162030;
    --ink: #EDF1F6;
    --ink-muted: #9AA6B6;
    --teal: #6E9FD8;
    --teal-deep: #8DB5E6;
    --teal-tint: #1C2C44;
    --green-tint: #1C3024;
    --grade-a: #5BC27A;
    --grade-b: #F0A257;
    --grade-c: #F07468;
    --grade-p: #A3ABB5;
    --hairline: #24324A;
    --shadow: none;
  }
}

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

body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }

img, svg { display: block; max-width: 100%; }
a { color: var(--teal-deep); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--grade-b); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(40px, 6.4vw, 68px); }
h2 { font-size: clamp(30px, 4vw, 44px); }
h3 { font-size: 21px; }
p { margin: 0; }
.accent { color: var(--teal-deep); }

.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-deep); margin-bottom: 14px; }
.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--ink-muted); max-width: 32em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 20px; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink-muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--ink); }
@media (max-width: 760px) { .nav { display: none; } .header-inner .btn { margin-left: auto; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 14px; font: 600 16px/1 var(--sans); text-decoration: none; white-space: nowrap; }
.btn-store { background: var(--ink); color: var(--bg); }
.btn-store:hover { opacity: .9; }
.btn-store svg { width: 18px; height: 18px; fill: currentColor; }
.btn-store small { display: block; font-size: 11px; font-weight: 500; opacity: .75; margin-bottom: 3px; }
.btn-store .stack { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.btn-ghost { color: var(--teal-deep); border: 1.5px solid color-mix(in srgb, var(--teal) 55%, transparent); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 12px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 20px; text-wrap: balance; }
.hero .lede { margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 150px)); gap: 12px; margin-top: 28px; }
.stats div { background: var(--surface); border: 1px solid var(--hairline); border-radius: 16px; padding: 12px 16px; }
.stats b { display: block; font: 700 26px/1.1 var(--display); color: var(--teal-deep); }
.stats span { display: block; font-size: 14px; line-height: 1.4; color: var(--ink-muted); }
@media (max-width: 420px) { .stats { grid-template-columns: repeat(3, 1fr); gap: 8px; } .stats div { padding: 10px 12px; } .stats b { font-size: 22px; } .stats span { font-size: 12px; } }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- Phone mock (the Restaurants list, drawn in HTML) ---------- */
.hero-phone { display: flex; justify-content: center; position: relative; }
.hero-phone::before { content: ""; position: absolute; inset: 6% -10% -6% -10%; background: radial-gradient(closest-side, color-mix(in srgb, var(--green) 45%, transparent), transparent); }
.phone {
  position: relative; width: min(340px, 100%); aspect-ratio: 9 / 19;
  background: #F2F2F7; color: #111;
  border-radius: 46px; padding: 14px 0 0; border: 10px solid #15202E;
  box-shadow: 0 30px 60px -20px rgba(21, 32, 46, .45);
  overflow: hidden; display: flex; flex-direction: column;
}
@media (prefers-color-scheme: dark) { .phone { border-color: #34435C; box-shadow: 0 0 0 1px #46577A, 0 30px 60px -20px rgba(0, 0, 0, .8); } }
.phone-island { width: 96px; height: 26px; border-radius: 20px; background: #15202E; margin: 0 auto 12px; flex: none; }
.p-title { font: 700 25px/1.1 var(--sans); padding: 0 14px; margin-bottom: 8px; letter-spacing: -.01em; }
.p-search { margin: 0 14px 10px; background: #E3E3E8; border-radius: 10px; padding: 7px 9px; font-size: 11px; color: #8A8A8F; display: flex; align-items: center; gap: 6px; }
.p-search svg { width: 12px; height: 12px; stroke: #8A8A8F; fill: none; stroke-width: 2.4; stroke-linecap: round; }
.p-list { background: #fff; margin: 0 14px; border-radius: 12px; overflow: hidden; }
.p-row { padding: 7px 10px; border-top: 1px solid #ECECF0; }
.p-row:first-child { border-top: 0; }
.p-row div { display: flex; justify-content: space-between; gap: 8px; }
.l1 b { font-size: 11.5px; }
.l1 .g { font-size: 12px; }
.l2 { font-size: 9.5px; color: #6C6C70; }
.l3 { font-size: 8px; color: #6C6C70; }
.p-tabbar { margin-top: auto; padding: 8px 8px 18px; background: rgba(250,250,252,.96); border-top: 1px solid #E2E2E6; display: flex; justify-content: space-around; }
.p-tab { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 9px; color: #8A8A8F; }
.p-tab svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.p-tab.on { color: #0A7AFF; }
.p-badge { position: absolute; top: -4px; right: -6px; background: #FF3B30; color: #fff; font-size: 8px; font-weight: 700; border-radius: 99px; min-width: 13px; height: 13px; display: flex; align-items: center; justify-content: center; }

/* Grade letters */
.g { font-style: normal; font-weight: 800; }
.p-row .g.a { color: #34C759; }
.grades .g, .p-list .g { font-family: var(--sans); }

/* ---------- Sections ---------- */
section { padding: clamp(56px, 8vw, 96px) 0; }
.section-head { max-width: 40em; margin-bottom: 40px; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { color: var(--ink-muted); font-size: 18px; }
.alt { background: var(--surface); border-block: 1px solid var(--hairline); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--bg); border-radius: var(--radius); padding: 28px; border: 1px solid var(--hairline); }
.step-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--teal); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.step-icon svg { width: 24px; height: 24px; stroke: var(--bg); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.step .num { font: 700 13px var(--sans); color: var(--teal-deep); letter-spacing: .08em; display: block; margin-bottom: 6px; }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--ink-muted); }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }

/* Features */
.features { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; color: var(--ink-muted); }
.checks strong { color: var(--ink); }
.checks svg { flex: none; width: 22px; height: 22px; margin-top: 2px; stroke: var(--teal-deep); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.boroughs { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.borough { display: grid; grid-template-columns: 52px 1fr; column-gap: 12px; align-items: baseline; }
.borough b { font: 700 24px/1 var(--display); color: var(--teal-deep); grid-row: span 2; }
.borough span { font-weight: 600; }
.borough i { display: block; height: 8px; border-radius: 99px; background: var(--teal-tint); position: relative; margin-top: 6px; overflow: hidden; }
.borough i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--teal); border-radius: 99px; }
.boroughs-note { border-top: 1px solid var(--hairline); padding-top: 14px; font-size: 15px; color: var(--ink-muted); }
.boroughs-note strong { color: var(--ink); }
@media (max-width: 880px) { .features { grid-template-columns: 1fr; } }

/* Privacy */
.privacy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pcard { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 22px; }
.pcard svg { width: 26px; height: 26px; stroke: var(--teal-deep); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.pcard h3 { font-family: var(--sans); font-size: 17px; margin-bottom: 6px; letter-spacing: 0; }
.pcard p { color: var(--ink-muted); font-size: 15px; }
@media (max-width: 960px) { .privacy-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .privacy-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--hairline); padding: 18px 0; }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 18px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal-deep); font-size: 24px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-muted); margin-top: 10px; }

/* CTA + footer */
.cta { text-align: center; }
.cta img { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 22px; box-shadow: 0 12px 30px -10px rgba(21, 32, 46, .4); }
.cta h2 { margin-bottom: 12px; }
.cta p { color: var(--ink-muted); margin: 0 auto 26px; max-width: 30em; }
.cta .hero-cta { justify-content: center; }

.site-footer { border-top: 1px solid var(--hairline); padding: 32px 0 40px; font-size: 14px; color: var(--ink-muted); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--ink-muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

/* Grades explained */
.grades { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.grade-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); display: grid; gap: 14px; }
.grade-card .g { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font: 700 30px/1 var(--display); border: 1.5px solid; }
.grade-card .g.a { color: var(--grade-a); background: color-mix(in srgb, var(--grade-a) 12%, transparent); border-color: color-mix(in srgb, var(--grade-a) 35%, transparent); }
.grade-card .g.b { color: var(--grade-b); background: color-mix(in srgb, var(--grade-b) 12%, transparent); border-color: color-mix(in srgb, var(--grade-b) 35%, transparent); }
.grade-card .g.c { color: var(--grade-c); background: color-mix(in srgb, var(--grade-c) 12%, transparent); border-color: color-mix(in srgb, var(--grade-c) 35%, transparent); }
.grade-card .g.p { color: var(--grade-p); background: color-mix(in srgb, var(--grade-p) 12%, transparent); border-color: color-mix(in srgb, var(--grade-p) 35%, transparent); }
.grade-card b { display: block; font-size: 17px; }
.grade-card span { font-size: 15px; color: var(--ink-muted); }
.grades-note { margin-top: 24px; max-width: 46em; padding: 18px 20px; border-radius: 18px; background: var(--green-tint); font-size: 16px; }
@media (max-width: 960px) { .grades { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .grades { grid-template-columns: 1fr; } .grade-card { grid-template-columns: 56px 1fr; align-items: center; } }
