/* NYCPee — teal from the app icon, ink line-art black. */
:root {
  --bg: #F3FAF8;
  --surface: #FFFFFF;
  --ink: #0F1F1B;
  --ink-muted: #52635E;
  --teal: #24BB9D;
  --teal-deep: #137A66;
  --teal-tint: #D9F3EC;
  --hairline: #DCEAE6;
  --shadow: 0 1px 2px rgba(15, 31, 27, .04), 0 8px 24px rgba(15, 31, 27, .06);

  --display: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-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: #0D1715;
    --surface: #15221F;
    --ink: #EAF3F0;
    --ink-muted: #94A8A2;
    --teal: #36CDAE;
    --teal-deep: #5ED8BF;
    --teal-tint: #173A33;
    --hairline: #233531;
    --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(--teal); 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.02em; 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; }
.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 List screen, 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(--teal) 30%, transparent), transparent); }
.phone {
  position: relative; width: min(340px, 100%); aspect-ratio: 9 / 19;
  background: #F6F8F8; color: #0F1F1B;
  border-radius: 46px; padding: 14px; border: 10px solid #0F1F1B;
  box-shadow: 0 30px 60px -20px rgba(15, 31, 27, .45);
  overflow: hidden; display: flex; flex-direction: column;
}
@media (prefers-color-scheme: dark) { .phone { border-color: #2E403B; box-shadow: 0 0 0 1px #3F544E, 0 30px 60px -20px rgba(0, 0, 0, .8); } }
.phone-island { width: 96px; height: 26px; border-radius: 20px; background: #0F1F1B; margin: 0 auto 14px; flex: none; }
.p-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 10px; }
.p-title { font: 700 22px/1.1 var(--display); }
.p-toggle { display: flex; align-items: center; gap: 5px; font-size: 9px; color: #52635E; }
.p-toggle i { width: 26px; height: 16px; border-radius: 99px; background: #D5DCDA; position: relative; }
.p-toggle i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.p-list { background: #fff; border-radius: 14px; overflow: hidden; }
.p-row { display: flex; align-items: center; gap: 9px; padding: 10px; border-top: 1px solid #EAEFEE; }
.p-row.first { border-top: 0; background: #E9F8F4; }
.p-pin { width: 28px; height: 28px; border-radius: 50%; background: #24BB9D; flex: none; display: flex; align-items: center; justify-content: center; }
.p-pin svg { width: 15px; height: 15px; stroke: #0F1F1B; fill: none; stroke-width: 2; }
.p-text { flex: 1; min-width: 0; }
.p-text b { display: block; font-size: 11.5px; line-height: 1.25; }
.p-acc { font-style: normal; font-size: 8px; font-weight: 700; color: #137A66; background: #D9F3EC; border-radius: 99px; padding: 1px 5px; margin-left: 3px; vertical-align: 1px; }
.p-text span { display: block; font-size: 9px; color: #52635E; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-dist { font: 700 13px/1 var(--display); text-align: right; color: #137A66; }
.p-dist small { display: block; font-size: 8px; font-weight: 600; color: #52635E; }
.p-go { margin-top: 12px; background: #24BB9D; color: #0F1F1B; border-radius: 12px; padding: 11px; font-weight: 700; font-size: 12px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.p-go svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.p-tabbar { margin: auto -14px -14px; padding: 8px 8px 18px; background: #fff; border-top: 1px solid #E2E8E6; display: flex; justify-content: space-around; }
.p-tab { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 9px; color: #52635E; }
.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: #137A66; font-weight: 700; }

/* ---------- 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: #0F1F1B; 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(--bg); 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(15, 31, 27, .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); }
