/* ===========================================================
   City Angle — marketing site stylesheet
   Editorial / warm-paper system, derived from the app's tokens.
   Fonts: Fraunces (display serif) + Inter (UI/body sans)
   =========================================================== */

:root {
  /* surfaces */
  --bg:        #F4F4F2;   /* warm paper canvas */
  --bg-grad:   radial-gradient(120% 80% at 50% -8%, #FFFFFF 0%, #F2F2F0 62%);
  --surface:   #FFFFFF;
  --surface2:  #FBFBFA;
  --ink-card:  #15161C;   /* dark card (daily-hero motif) */

  /* ink */
  --ink:       #1A1A1F;
  --ink2:      #55555E;
  --muted:     #86868F;
  --faint:     #AEAEB6;

  /* hairlines */
  --hair:      rgba(20,20,30,0.08);
  --hair2:     rgba(20,20,30,0.13);

  /* brand */
  --blue:      #2E66E8;
  --blue-ink:  #1E4FBE;
  --blue-soft: rgba(46,102,232,0.10);
  --red:       #E14B43;
  --green:     #1FA871;
  --green-soft:rgba(31,168,113,0.12);
  --amber:     #E0922F;
  --ring:      #C9C9CF;

  /* shadows */
  --sh-sm: 0 1px 2px rgba(18,18,30,0.06), 0 2px 8px rgba(18,18,30,0.05);
  --sh:    0 1px 2px rgba(18,18,30,0.05), 0 10px 28px rgba(18,18,30,0.08);
  --sh-lg: 0 2px 8px rgba(18,18,30,0.06), 0 24px 60px rgba(18,18,30,0.14);

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, system-ui, sans-serif;
  --mono:  'ui-monospace', 'SF Mono', Menlo, monospace;

  --radius-card: 24px;
  --maxw: 1120px;
}

* { box-sizing: border-box; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-weight: 420;
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.tabnums { font-variant-numeric: tabular-nums; }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: 92px 0; }
.section--tight { padding: 64px 0; }
.center { text-align: center; }
.muted { color: var(--muted); }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-ink);
}
.eyebrow--muted { color: var(--muted); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--ink); letter-spacing: -0.02em; margin: 0; }
h2.display { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.04; }
h3.sub { font-size: 21px; letter-spacing: -0.01em; }
p { margin: 0; }
.lede { font-size: 18px; color: var(--ink2); line-height: 1.6; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244,244,242,0.78);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.nav.scrolled { border-bottom-color: var(--hair); }
.nav__in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__mark { width: 32px; height: 32px; flex-shrink: 0; }
.brand__name { font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { font-size: 14.5px; font-weight: 500; color: var(--ink2); transition: color .15s ease; }
.nav__links a:hover { color: var(--ink); }
.nav__cta { display: inline-flex; }
@media (max-width: 760px) { .nav__links { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: 9999px;
  font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: 0.005em;
  cursor: pointer; border: 1px solid transparent; transition: transform .12s ease, background .16s ease, box-shadow .16s ease;
}
.btn:active { transform: scale(0.975); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(46,102,232,0.22), 0 1px 2px rgba(0,0,0,0.08); }
.btn--primary:hover { background: #2a5fda; }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--hair2); box-shadow: var(--sh-sm); }
.btn--ghost:hover { background: var(--surface2); }
.btn--sm { height: 40px; padding: 0 16px; font-size: 14px; }

/* App Store badge (official black pill) */
.appstore {
  display: inline-flex; align-items: center; gap: 11px;
  height: 56px; padding: 0 22px 0 19px; border-radius: 13px;
  background: #15161C; color: #fff;
  transition: transform .12s ease, background .16s ease;
}
.appstore:hover { background: #22232b; }
.appstore:active { transform: scale(0.98); }
.appstore svg { width: 26px; height: 26px; flex-shrink: 0; }
.appstore__txt { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; line-height: 1.12; }
.appstore__txt small { font-size: 11px; font-weight: 500; letter-spacing: 0.01em; opacity: 0.82; white-space: nowrap; }
.appstore__txt strong { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.appstore--sm { height: 44px; padding: 0 16px 0 14px; border-radius: 10px; }
.appstore--sm svg { width: 20px; height: 20px; }
.appstore--sm .appstore__txt small { font-size: 9px; }
.appstore--sm .appstore__txt strong { font-size: 15px; }

/* ---------- chips / pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  height: 32px; padding: 0 13px; border-radius: 9999px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.01em;
  background: rgba(20,20,30,0.05); color: var(--ink2);
}
.pill--blue { background: var(--blue-soft); color: var(--blue-ink); }
.pill--green { background: var(--green-soft); color: var(--green); }
.pill svg { width: 15px; height: 15px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 72px 0 36px; background: var(--bg-grad); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5vw, 62px); line-height: 1.04; letter-spacing: -0.03em; margin: 22px 0 0; }
.hero h1 em { font-style: italic; color: var(--blue); font-weight: 500; }
.hero__lede { margin-top: 26px; max-width: 30em; }
.hero__cta { margin-top: 34px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero__meta { margin-top: 18px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; font-weight: 500; }
.hero__meta .dot { width: 3px; height: 3px; border-radius: 9999px; background: var(--faint); }
.stars { display: inline-flex; gap: 2px; color: var(--amber); }
.stars svg { width: 15px; height: 15px; }
@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .hero__art { order: -1; }
  .hero__cta { justify-content: flex-start; }
}

/* ---------- phone mockup ---------- */
.phone-stage { display: flex; justify-content: center; perspective: 1600px; }
.phone {
  position: relative; width: 300px; height: 624px;
  border-radius: 52px; background: #0d0d10;
  padding: 11px;
  box-shadow: var(--sh-lg), inset 0 0 0 1px rgba(255,255,255,0.06);
}
.phone--tilt { transform: rotateY(-13deg) rotateX(3deg) rotate(0.5deg); }
.phone__screen {
  position: relative; width: 100%; height: 100%;
  border-radius: 42px; overflow: hidden;
  background: var(--bg-grad);
}
.phone__island {
  position: absolute; top: 13px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 26px; background: #0d0d10; border-radius: 9999px; z-index: 6;
}
.statusbar {
  position: absolute; top: 0; left: 0; right: 0; height: 52px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 26px; z-index: 5;
  font-size: 13px; font-weight: 650; color: var(--ink);
}
.statusbar .sb-icons { display: flex; align-items: center; gap: 6px; }
.statusbar .sb-icons svg { width: 16px; height: 12px; }

/* compass diagram (static, on-brand) */
.diagram { position: relative; width: 100%; aspect-ratio: 1 / 1; }
.diagram svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.node {
  position: absolute; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; gap: 2px;
  background: var(--surface); border: 1px solid var(--hair);
  border-radius: 13px; padding: 6px 9px; box-shadow: var(--sh-sm);
  white-space: nowrap;
}
.node__top { display: flex; align-items: center; gap: 6px; }
.node__name { font-size: 12px; font-weight: 650; color: var(--ink); letter-spacing: -0.01em; }
.node__km { font-size: 10px; font-weight: 500; color: var(--muted); }
.flag { width: 15px; height: 11px; border-radius: 2.5px; flex-shrink: 0; box-shadow: inset 0 0 0 0.5px rgba(0,0,0,0.16); overflow: hidden; }
.center-node {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 78px; height: 78px; border-radius: 9999px;
  background: var(--surface); border: 2px solid var(--ring);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.center-node small { font-family: var(--sans); font-size: 9px; font-weight: 700; letter-spacing: 0.14em; color: var(--muted); }
.center-node b { font-family: var(--serif); font-size: 40px; font-weight: 500; font-style: italic; color: var(--blue); line-height: 0.8; }

.phone__field {
  position: absolute; left: 16px; right: 16px; bottom: 86px;
  height: 48px; border-radius: 9999px; background: var(--surface);
  border: 1px solid var(--hair2); box-shadow: var(--sh-sm);
  display: flex; align-items: center; gap: 9px; padding: 0 16px;
  font-size: 14px; color: var(--faint); font-weight: 450;
}
.phone__submit {
  position: absolute; left: 16px; right: 16px; bottom: 28px;
  height: 48px; border-radius: 9999px; background: var(--blue);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 15px; font-weight: 600;
  box-shadow: 0 8px 18px rgba(46,102,232,0.28);
}

/* ---------- "in numbers" strip ---------- */
.strip { border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); background: var(--surface2); }
.strip__in { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 24px; text-align: center; border-right: 1px solid var(--hair); }
.stat:last-child { border-right: none; }
.stat b { display: block; font-family: var(--serif); font-size: 38px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; line-height: 1; }
.stat span { display: block; margin-top: 8px; font-size: 13px; font-weight: 500; color: var(--muted); }
@media (max-width: 720px) { .strip__in { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(2) { border-right: none; } .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--hair); } }

/* ---------- section heading block ---------- */
.head { max-width: 640px; }
.head--center { margin: 0 auto; text-align: center; }
.head .eyebrow { display: block; margin-bottom: 16px; }
.head p { margin-top: 16px; font-size: 17px; color: var(--ink2); }

/* ---------- how to play ---------- */
.steps { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step {
  background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius-card);
  padding: 24px 22px 26px; box-shadow: var(--sh-sm); position: relative;
}
.step__n {
  font-family: var(--serif); font-size: 15px; font-weight: 600; font-style: italic;
  color: var(--blue); margin-bottom: 50px; display: block;
}
.step__icon {
  position: absolute; top: 22px; right: 22px; width: 40px; height: 40px;
}
.step h3 { font-size: 18.5px; letter-spacing: -0.01em; }
.step p { margin-top: 8px; font-size: 14px; color: var(--ink2); line-height: 1.5; }
@media (max-width: 920px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } .step__n { margin-bottom: 12px; } }

/* ---------- modes ---------- */
.modes { margin-top: 52px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.mode {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--hair); border-radius: 20px;
  padding: 22px 22px; box-shadow: var(--sh-sm);
}
.mode__ic {
  width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0;
  background: var(--blue-soft); display: flex; align-items: center; justify-content: center;
}
.mode__ic svg { width: 23px; height: 23px; stroke: var(--blue); }
.mode--green .mode__ic { background: var(--green-soft); }
.mode--green .mode__ic svg { stroke: var(--green); }
.mode h3 { font-size: 18px; }
.mode p { margin-top: 5px; font-size: 14px; color: var(--ink2); }
@media (max-width: 720px) { .modes { grid-template-columns: 1fr; } }

/* cadence trio (daily / weekly / practice) */
.cadence { margin-top: 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cad {
  border-radius: 20px; padding: 22px; border: 1px solid var(--hair);
  background: var(--surface); box-shadow: var(--sh-sm);
}
.cad__k { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-ink); }
.cad h3 { margin-top: 10px; font-size: 22px; }
.cad p { margin-top: 6px; font-size: 14px; color: var(--ink2); }
@media (max-width: 720px) { .cadence { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { margin-top: 48px; max-width: 780px; margin-left: auto; margin-right: auto; }
.faq details {
  border-bottom: 1px solid var(--hair); padding: 6px 0;
}
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 4px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .q-ic { width: 22px; height: 22px; flex-shrink: 0; color: var(--muted); transition: transform .2s ease; }
.faq details[open] summary .q-ic { transform: rotate(45deg); color: var(--blue); }
.faq__a { padding: 0 4px 22px; font-size: 15.5px; color: var(--ink2); line-height: 1.62; max-width: 64ch; }

/* ---------- CTA band ---------- */
.cta-band { padding: 0 0 96px; }
.cta-card {
  position: relative; overflow: hidden; border-radius: 32px;
  background: var(--ink-card); color: #fff;
  padding: 64px 56px;
  background-image: radial-gradient(120% 130% at 88% -10%, var(--blue) 0%, #15161C 56%);
  box-shadow: var(--sh-lg);
  display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.cta-card h2 { color: #fff; font-size: clamp(28px, 4vw, 42px); line-height: 1.05; max-width: 14ch; }
.cta-card p { margin-top: 14px; color: rgba(255,255,255,0.78); font-size: 16px; max-width: 34ch; }
.cta-card .compass-lg { position: absolute; right: -40px; bottom: -50px; width: 280px; height: 280px; opacity: 0.16; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--hair); background: var(--surface2); padding: 64px 0 40px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer__brand .brand { margin-bottom: 14px; }
.footer__brand p { font-size: 14px; color: var(--muted); max-width: 28ch; }
.footer__brand .appstore { margin-top: 20px; }
.footer col, .fcol { display: block; }
.fcol h4 { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
.fcol a { display: block; font-size: 14.5px; color: var(--ink2); padding: 6px 0; transition: color .15s ease; }
.fcol a:hover { color: var(--blue); }
.footer__base {
  margin-top: 52px; padding-top: 26px; border-top: 1px solid var(--hair);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted);
}
.footer__base a { color: var(--muted); }
.footer__base a:hover { color: var(--ink2); }
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; } .footer__brand { grid-column: 1 / -1; } }

/* ===========================================================
   Article pages (Privacy / Terms / Support)
   =========================================================== */
.page-hero { padding: 64px 0 36px; background: var(--bg-grad); border-bottom: 1px solid var(--hair); }
.page-hero .eyebrow { display: block; margin-bottom: 14px; }
.page-hero h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.04; }
.page-hero p { margin-top: 16px; font-size: 16px; color: var(--ink2); max-width: 52ch; }
.page-hero .updated { margin-top: 18px; font-size: 13px; color: var(--muted); font-family: var(--mono); letter-spacing: 0.04em; }

.article { padding: 56px 0 88px; }
.article__in { display: grid; grid-template-columns: 220px 1fr; gap: 56px; align-items: start; }
.toc { position: sticky; top: 96px; }
.toc h4 { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.toc a { display: block; font-size: 14px; color: var(--ink2); padding: 7px 0; border-left: 2px solid transparent; padding-left: 14px; margin-left: -16px; transition: color .15s ease, border-color .15s ease; }
.toc a:hover { color: var(--ink); }
.toc a.active { color: var(--blue); border-left-color: var(--blue); font-weight: 600; }
@media (max-width: 860px) { .article__in { grid-template-columns: 1fr; gap: 0; } .toc { display: none; } }

.prose { max-width: 720px; }
.prose .note {
  background: var(--blue-soft); border: 1px solid rgba(46,102,232,0.18); border-radius: 14px;
  padding: 16px 18px; font-size: 14px; color: var(--blue-ink); margin-bottom: 40px;
  display: flex; gap: 11px; align-items: flex-start;
}
.prose .note svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.prose section { margin-bottom: 44px; scroll-margin-top: 96px; }
.prose h2 { font-size: 25px; letter-spacing: -0.015em; margin-bottom: 14px; }
.prose h3 { font-family: var(--sans); font-size: 16px; font-weight: 650; color: var(--ink); margin: 26px 0 10px; letter-spacing: -0.005em; }
.prose p { font-size: 15.5px; color: var(--ink2); line-height: 1.68; margin-bottom: 14px; }
.prose ul { margin: 0 0 14px; padding-left: 0; list-style: none; }
.prose li { position: relative; padding-left: 24px; font-size: 15.5px; color: var(--ink2); line-height: 1.62; margin-bottom: 9px; }
.prose li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 6px; height: 6px; border-radius: 9999px; background: var(--blue); }
.prose a.inline { color: var(--blue-ink); font-weight: 550; border-bottom: 1px solid rgba(46,102,232,0.3); }
.prose a.inline:hover { border-bottom-color: var(--blue); }
.prose .placeholder { color: var(--faint); font-style: italic; }

/* support specific */
.help-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 40px 0 8px; }
.help-card {
  background: var(--surface); border: 1px solid var(--hair); border-radius: 18px;
  padding: 24px; box-shadow: var(--sh-sm);
}
.help-card .h-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--blue-soft); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.help-card .h-ic svg { width: 21px; height: 21px; stroke: var(--blue); }
.help-card h3 { font-size: 17px; }
.help-card p { margin-top: 6px; font-size: 14px; color: var(--ink2); }
.contact-card {
  background: var(--ink-card); color: #fff; border-radius: 24px; padding: 40px;
  background-image: radial-gradient(120% 130% at 90% -20%, var(--blue) 0%, #15161C 58%);
  box-shadow: var(--sh-lg);
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.contact-card h2 { color: #fff; font-size: 27px; }
.contact-card p { margin-top: 8px; color: rgba(255,255,255,0.78); font-size: 15px; }
.contact-card .email { font-family: var(--mono); font-size: 15px; }
@media (max-width: 620px) { .help-grid { grid-template-columns: 1fr; } }
