/* ═══════════════════════════════════════════════════════════════════
   CurbCue — website styles.
   iOS semantic tokens, dark theme primary, light toggle.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  /* Backgrounds */
  --bg:        #000000;
  --card:      #1C1C1E;
  --card-2:    #2C2C2E;
  --card-3:    #3A3A3C;
  /* Separators */
  --sep:       rgba(84, 84, 88, 0.55);
  --sep-inset: rgba(84, 84, 88, 0.34);
  /* Text */
  --label:     #FFFFFF;
  --sec:       rgba(235, 235, 245, 0.60);
  --ter:       rgba(235, 235, 245, 0.30);
  --quat:      rgba(235, 235, 245, 0.18);
  /* Fills */
  --fill:      rgba(118, 118, 128, 0.24);
  /* Chrome */
  --chrome:    rgba(22, 22, 24, 0.72);
  /* Accent + palette */
  --accent:    #30D158;
  --blue:      #0A84FF;
  --indigo:    #5E5CE6;
  --orange:    #FF9F0A;
  --red:       #FF453A;
  --gray:      #8E8E93;
  /* Hairline */
  --hair:      0.5px;

  --font: -apple-system, system-ui, 'SF Pro Text', 'SF Pro Display', 'Helvetica Neue', sans-serif;
}

:root[data-theme="light"] {
  --bg:        #F2F2F7;
  --card:      #FFFFFF;
  --card-2:    #F2F2F7;
  --card-3:    #E5E5EA;
  --sep:       rgba(60, 60, 67, 0.29);
  --sep-inset: rgba(60, 60, 67, 0.12);
  --label:     #000000;
  --sec:       rgba(60, 60, 67, 0.60);
  --ter:       rgba(60, 60, 67, 0.30);
  --quat:      rgba(60, 60, 67, 0.18);
  --fill:      rgba(118, 118, 128, 0.12);
  --chrome:    rgba(249, 249, 249, 0.72);
}

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

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--label);
  line-height: 1.45;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .25s ease, color .25s ease;
}

a { color: inherit; text-decoration: none; }

a:focus-visible,
button:focus-visible,
[role="link"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 1000;
  transform: translateY(-160%);
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

::selection { background: rgba(48, 209, 88, 0.25); }

/* ── Layout helpers ─────────────────────────────────────────────── */
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 24px; }

.section-label {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--accent);
}

/* ═══════════ HEADER / NAV ═══════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--chrome);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: var(--hair) solid var(--sep);
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
  cursor: pointer;
}
.app-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.app-mark svg { display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-link {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--sec);
  padding: 7px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--label); background: var(--fill); }
.nav-link.active { color: var(--label); }

.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: 8px; }

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: none;
  background: var(--fill);
  color: var(--label);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .2s;
  flex-shrink: 0;
}
.icon-btn:hover { background: var(--card-3); }

.hamburger { display: none; }

/* ═══════════ BUTTONS ═══════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  border: none;
  font-family: inherit;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: 0;
  cursor: pointer;
  transition: filter .2s, background .2s, color .2s, transform .12s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(1.07); }
.btn-secondary { background: var(--fill); color: var(--label); }
.btn-secondary:hover { background: var(--card-3); }

/* App Store-style button */
.appstore {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  height: 54px;
  padding: 0 20px 0 17px;
  border-radius: 14px;
  background: var(--label);
  color: var(--bg);
  cursor: pointer;
  transition: filter .2s, transform .12s;
}
.appstore:active { transform: scale(0.98); }
.appstore:hover { filter: brightness(0.92); }
:root[data-theme="light"] .appstore:hover { filter: brightness(1.6); }
.appstore .as-glyph {
  width: 26px; height: 26px; flex-shrink: 0;
}
.appstore .as-text { display: flex; flex-direction: column; line-height: 1.1; }
.appstore .as-text small { font-size: 11px; font-weight: 500; opacity: 0.7; letter-spacing: 0; }
.appstore .as-text b { font-size: 18px; font-weight: 600; letter-spacing: 0; }

/* ═══════════ PAGES (routing) ═══════════ */
.page { display: none; }
.page.active { display: block; }

/* ═══════════ HERO ═══════════ */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding: 84px 0 92px;
}
.hero-copy { max-width: 480px; }
.hero h1 {
  font-size: 52px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.05;
  margin: 18px 0 0;
  text-wrap: balance;
}
.hero .sub {
  font-size: 18px;
  font-weight: 400;
  color: var(--sec);
  line-height: 1.5;
  margin-top: 18px;
  max-width: 420px;
  text-wrap: pretty;
}
.hero-cta { display: flex; align-items: center; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero-note { font-size: 13px; color: var(--ter); margin-top: 16px; }

/* ── iPhone mockup ── */
.phone-stage { display: flex; justify-content: center; }
.phone {
  position: relative;
  width: 304px;
  height: 630px;
  border-radius: 58px;
  padding: 9px;
  background: linear-gradient(150deg, #5c5c61 0%, #2a2a2d 17%, #19191b 50%, #2d2d31 83%, #5c5c61 100%);
  box-shadow:
    0 0 0 1.5px rgba(0,0,0,0.55),
    0 50px 90px -34px rgba(0,0,0,0.75),
    inset 0 1px 1.5px rgba(255,255,255,0.22);
  flex-shrink: 0;
}
:root[data-theme="light"] .phone {
  background: linear-gradient(150deg, #ededf2 0%, #c4c4ca 20%, #aeaeb4 50%, #cacad0 80%, #ededf2 100%);
  box-shadow: 0 0 0 1.5px rgba(0,0,0,0.16), 0 50px 90px -38px rgba(0,0,0,0.5), inset 0 1px 1.5px rgba(255,255,255,0.7);
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 50px;
  background: var(--bg);
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 0 2px #000;
}
.dynamic-island {
  position: absolute;
  top: 13px; left: 50%; transform: translateX(-50%);
  width: 98px; height: 30px;
  background: #000;
  border-radius: 999px;
  z-index: 6;
  box-shadow: 0 0 0 0.75px rgba(255,255,255,0.13), inset 0 1px 2px rgba(255,255,255,0.05);
}
.dynamic-island::after {
  content: ""; position: absolute; right: 9px; top: 50%; transform: translateY(-50%);
  width: 9px; height: 9px; border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, #2a3a55 0%, #0a0d14 70%);
  box-shadow: inset 0 0 0 0.5px rgba(140,160,200,0.3);
}
.side-btn {
  position: absolute; z-index: 0;
  background: linear-gradient(180deg, #4a4a4e, #29292c);
}
:root[data-theme="light"] .side-btn { background: linear-gradient(180deg, #bcbcc2, #9a9aa0); }
.side-btn.action  { left: -2.5px; top: 116px; width: 3px; height: 26px; border-radius: 3px 0 0 3px; }
.side-btn.vol-up  { left: -2.5px; top: 158px; width: 3px; height: 46px; border-radius: 3px 0 0 3px; }
.side-btn.vol-down{ left: -2.5px; top: 214px; width: 3px; height: 46px; border-radius: 3px 0 0 3px; }
.side-btn.power   { right: -2.5px; top: 176px; width: 3px; height: 64px; border-radius: 0 3px 3px 0; }
.phone-content { padding: 56px 16px 16px; }

/* Official-style App Store badge */
.appstore-badge {
  display: inline-flex; align-items: center; gap: 10px;
  height: 54px; padding: 0 18px 0 15px;
  border-radius: 12px;
  background: #000; color: #fff;
  border: 1px solid rgba(255,255,255,0.30);
  cursor: pointer;
  transition: filter .2s, transform .12s;
}
.appstore-badge:active { transform: scale(0.98); }
.appstore-badge:hover { filter: brightness(1.25); }
.appstore-badge[aria-disabled="true"] {
  cursor: default;
  opacity: .72;
}
.appstore-badge[aria-disabled="true"]:hover { filter: none; }
.appstore-badge[aria-disabled="true"]:active { transform: none; }
.appstore-badge .ab-logo { width: 23px; height: 27px; fill: #fff; flex-shrink: 0; margin-bottom: 2px; }
.appstore-badge .ab-text { display: flex; flex-direction: column; line-height: 1; text-align: left; }
.appstore-badge .ab-text small { font-size: 11px; font-weight: 400; letter-spacing: 0.2px; }
.appstore-badge .ab-text b { font-size: 20px; font-weight: 600; letter-spacing: 0; margin-top: 3px; }

/* Status bar (faux) */
.statusbar {
  position: absolute; top: 0; left: 0; right: 0; height: 44px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px;
  font-size: 13px; font-weight: 600; color: var(--label);
  z-index: 4;
}
.statusbar .sb-right { display: flex; gap: 5px; align-items: center; }

/* App title row inside phone */
.app-title-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 0 2px 14px;
}
.app-title-row .t { font-size: 26px; font-weight: 700; letter-spacing: 0; }
.app-title-row .loc { display: inline-flex; align-items: center; gap: 4px; color: var(--sec); font-size: 12.5px; font-weight: 500; padding-bottom: 4px; }

/* Status card (recreated from app) */
.status-card { background: var(--card); border-radius: 16px; padding: 16px; }
.sc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px 5px 9px; border-radius: 999px;
  background: rgba(48, 209, 88, 0.16);
  font-size: 12.5px; font-weight: 600; color: var(--accent);
}
.pill .dot { width: 7px; height: 7px; border-radius: 99px; background: var(--accent); }
.sc-reminder { display: inline-flex; align-items: center; gap: 5px; color: var(--ter); font-size: 12px; font-weight: 500; }
.sc-street { font-size: 22px; font-weight: 700; letter-spacing: 0; }
.sc-side { font-size: 13px; color: var(--sec); margin-top: 3px; }

.ring-wrap { position: relative; width: 168px; height: 168px; margin: 16px auto; }
.ring-center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.ring-center .big { font-size: 34px; font-weight: 600; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.ring-center .lbl { font-size: 12.5px; font-weight: 500; color: var(--ter); margin-top: 6px; }

.moveby {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  color: var(--sec); font-size: 13px; font-weight: 500; margin-bottom: 16px;
}
.moveby b { color: var(--label); font-weight: 600; }

.unpark {
  width: 100%; height: 48px; border-radius: 14px; border: none;
  background: var(--fill); color: var(--label);
  font-family: inherit; font-size: 15.5px; font-weight: 600; letter-spacing: 0;
  display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
}

.detail-label { font-size: 12px; letter-spacing: 0.4px; text-transform: uppercase; color: var(--sec); margin: 20px 0 7px 14px; }
.detail-card { background: var(--card); border-radius: 14px; overflow: hidden; }
.detail-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 16px; font-size: 14.5px;
  border-bottom: var(--hair) solid var(--sep-inset);
}
.detail-row:last-child { border-bottom: none; }
.detail-row .v { color: var(--sec); }

/* ═══════════ SECTION SHELL ═══════════ */
.section { padding: 64px 0; border-top: var(--hair) solid var(--sep); }
.section-head { max-width: 560px; }
.section-head h2 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.1;
  margin-top: 12px;
  text-wrap: balance;
}
.section-head p {
  font-size: 16.5px; color: var(--sec); line-height: 1.5; margin-top: 14px; text-wrap: pretty;
}

/* Feature cards */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.feature {
  background: var(--card);
  border-radius: 16px;
  padding: 24px;
  border: var(--hair) solid var(--sep-inset);
}
.feature .ftile {
  width: 44px; height: 44px; border-radius: 11px;
  display: grid; place-items: center; margin-bottom: 18px;
}
.feature h3 { font-size: 18px; font-weight: 600; letter-spacing: 0; }
.feature p { font-size: 14.5px; color: var(--sec); line-height: 1.5; margin-top: 8px; text-wrap: pretty; }

/* Two-up info card (local trust, manual, responsible) */
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 16px; }
.info-card {
  background: var(--card);
  border-radius: 16px;
  padding: 28px;
  border: var(--hair) solid var(--sep-inset);
}
.info-card .itile {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center; margin-bottom: 16px;
}
.info-card h3 { font-size: 19px; font-weight: 600; letter-spacing: 0; }
.info-card p { font-size: 15px; color: var(--sec); line-height: 1.5; margin-top: 10px; text-wrap: pretty; }
.info-card .fine { font-size: 13px; color: var(--ter); margin-top: 14px; line-height: 1.5; }

/* Support preview banner */
.cta-band {
  background: var(--card);
  border-radius: 18px;
  padding: 40px;
  border: var(--hair) solid var(--sep-inset);
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.cta-band h2 { font-size: 26px; font-weight: 700; letter-spacing: 0; }
.cta-band p { font-size: 15.5px; color: var(--sec); margin-top: 8px; max-width: 420px; }

/* ═══════════ PAGE HEADER (sub-pages) ═══════════ */
.page-head { padding: 64px 0 32px; }
.page-head h1 { font-size: 44px; font-weight: 700; letter-spacing: 0; line-height: 1.05; margin-top: 10px; }
.page-head p { font-size: 17px; color: var(--sec); margin-top: 14px; max-width: 540px; line-height: 1.5; }
.page-head .updated { font-size: 13px; color: var(--ter); margin-top: 16px; }

/* ═══════════ LEGAL ═══════════ */
.legal-body { padding-bottom: 80px; }
.legal-note {
  background: var(--card);
  border-radius: 14px;
  padding: 16px 18px;
  border: var(--hair) solid var(--sep-inset);
  font-size: 14px; color: var(--sec); line-height: 1.5;
  margin-bottom: 36px;
  display: flex; gap: 12px; align-items: flex-start;
}
.legal-note svg { flex-shrink: 0; margin-top: 1px; }
.legal h2 {
  font-size: 20px; font-weight: 600; letter-spacing: 0;
  margin: 34px 0 12px;
  padding-top: 6px;
}
.legal h2:first-of-type { margin-top: 0; }
.legal p { font-size: 15.5px; color: var(--sec); line-height: 1.6; margin-bottom: 12px; max-width: 660px; }
.legal ul { margin: 4px 0 14px 0; padding-left: 0; list-style: none; max-width: 660px; }
.legal li {
  font-size: 15.5px; color: var(--sec); line-height: 1.55; padding: 5px 0 5px 22px; position: relative;
}
.legal li::before {
  content: ""; position: absolute; left: 4px; top: 13px;
  width: 5px; height: 5px; border-radius: 99px; background: var(--accent);
}
.legal strong { color: var(--label); font-weight: 600; }
/* TOC for legal */
.legal-layout { display: grid; grid-template-columns: 200px 1fr; gap: 48px; align-items: start; }
.toc { position: sticky; top: 80px; }
.toc-label { font-size: 12px; letter-spacing: 0.4px; text-transform: uppercase; color: var(--ter); margin-bottom: 12px; }
.toc a {
  display: block; font-size: 13.5px; color: var(--sec); padding: 6px 0; line-height: 1.35;
  transition: color .2s; cursor: pointer;
}
.toc a:hover { color: var(--label); }

/* ═══════════ SUPPORT / CONTACT cards ═══════════ */
.list-card { background: var(--card); border-radius: 14px; overflow: hidden; border: var(--hair) solid var(--sep-inset); }
.list-row {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 18px;
  border-bottom: var(--hair) solid var(--sep-inset);
}
.list-row:last-child { border-bottom: none; }
.list-row .ltile { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; flex-shrink: 0; }
.list-row .lmain { flex: 1; min-width: 0; }
.list-row .lmain .lt { font-size: 15.5px; font-weight: 500; }
.list-row .lmain .ls { font-size: 13.5px; color: var(--sec); margin-top: 2px; }
.list-row .lval { font-size: 14.5px; color: var(--accent); font-weight: 500; }

/* Contact rows clickable */
a.list-row { transition: background .2s; }
a.list-row:hover { background: var(--fill); }

/* ═══════════ FAQ ═══════════ */
.faq-list { margin-top: 12px; }
.faq-item {
  border-bottom: var(--hair) solid var(--sep);
}
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%;
  padding: 20px 4px;
  border: none;
  background: transparent;
  color: var(--label);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  font-size: 17px; font-weight: 600; letter-spacing: 0;
}
.faq-q .chev { color: var(--ter); transition: transform .25s ease; flex-shrink: 0; }
.faq-item.open .faq-q .chev { transform: rotate(90deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease, opacity .25s ease, padding .25s ease;
  opacity: 0;
}
.faq-item.open .faq-a { max-height: 320px; opacity: 1; padding: 0 4px 22px; }
.faq-a p { font-size: 15.5px; color: var(--sec); line-height: 1.6; max-width: 640px; }

/* ═══════════ FOOTER ═══════════ */
.footer {
  border-top: var(--hair) solid var(--sep);
  padding: 56px 0 48px;
  background: var(--bg);
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { font-size: 14px; color: var(--sec); line-height: 1.5; max-width: 280px; }
.footer-brand .email { font-size: 14px; color: var(--accent); margin-top: 14px; display: inline-block; }
.footer-col h4 { font-size: 12px; letter-spacing: 0.4px; text-transform: uppercase; color: var(--ter); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 14.5px; color: var(--sec); padding: 6px 0; cursor: pointer; transition: color .2s; }
.footer-col a:hover { color: var(--label); }
.footer-bottom {
  margin-top: 44px; padding-top: 24px; border-top: var(--hair) solid var(--sep-inset);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer-bottom .copy { font-size: 13px; color: var(--ter); }
.footer-bottom .tag { font-size: 13px; color: var(--ter); }

/* ═══════════ MOBILE MENU ═══════════ */
.mobile-menu {
  display: none;
  position: fixed; inset: 56px 0 0 0; z-index: 99;
  background: var(--chrome);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  padding: 18px 24px;
  flex-direction: column;
  gap: 2px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 17px; font-weight: 500; color: var(--label);
  padding: 14px 8px; border-bottom: var(--hair) solid var(--sep-inset);
  cursor: pointer;
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 56px 0 64px; text-align: center; }
  .hero h1 { font-size: 46px; }
  .hero-copy { max-width: none; margin: 0 auto; }
  .hero .sub { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .section-head h2 { font-size: 32px; }
  .page-head h1 { font-size: 40px; }
  .features { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .legal-layout { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .hamburger { display: grid; }
  .appstore-nav { display: none; }
}

@media (max-width: 480px) {
  .wrap, .wrap-narrow { padding: 0 18px; }
  .nav-inner { padding: 0 18px; }
  .hero h1 { font-size: 38px; }
  .section-head h2 { font-size: 30px; }
  .page-head h1 { font-size: 34px; }
  .cta-band { padding: 28px; }
  .info-card, .feature { padding: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta .appstore-badge, .hero-cta .btn { width: 100%; justify-content: center; }
}
