/*
  Ponder's site, in the app's own night: the Constellation Sky palette and
  Nunito, the app's face. One look, by choice: Ponder is an evening journal.
  Colours come from ponder-app/src/theme/tokens.ts and today/scenePalette.ts.
*/
:root {
  --night: #0B1026;
  --night-2: #1A2250;
  --night-3: #283068;
  --ink: #F8FAFC;
  --muted: #B4BEDA;
  --faint: #9AA5C8;
  --duck: #FCD34D;
  --duck-deep: #F5B93B;
  --on-duck: #0F172A;
  --sky-blue: #38BDF8;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-2: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.13);
  --font: 'Nunito', ui-rounded, 'SF Pro Rounded', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1120px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 46%, var(--night-3) 100%) fixed;
  -webkit-font-smoothing: antialiased;
}

/* A few faint stars, fixed behind everything, as in the app's backdrop. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1.5px 1.5px at 8% 12%, rgba(255, 255, 255, 0.55), transparent 60%),
    radial-gradient(1px 1px at 22% 38%, rgba(255, 255, 255, 0.4), transparent 60%),
    radial-gradient(1.5px 1.5px at 41% 8%, rgba(255, 255, 255, 0.5), transparent 60%),
    radial-gradient(1px 1px at 63% 26%, rgba(255, 255, 255, 0.35), transparent 60%),
    radial-gradient(1.5px 1.5px at 79% 14%, rgba(255, 255, 255, 0.5), transparent 60%),
    radial-gradient(1px 1px at 91% 44%, rgba(255, 255, 255, 0.4), transparent 60%),
    radial-gradient(1px 1px at 12% 71%, rgba(255, 255, 255, 0.3), transparent 60%),
    radial-gradient(1.5px 1.5px at 55% 62%, rgba(255, 255, 255, 0.3), transparent 60%),
    radial-gradient(1px 1px at 84% 82%, rgba(255, 255, 255, 0.35), transparent 60%),
    radial-gradient(1px 1px at 33% 90%, rgba(255, 255, 255, 0.3), transparent 60%);
}

a { color: var(--duck); text-underline-offset: 3px; }
a:hover { color: #FDE68A; }
:focus-visible { outline: 3px solid var(--duck); outline-offset: 3px; border-radius: 6px; }

.wrap {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

/* ------------------------------------------------------------------ header */
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 900; font-size: 22px; }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 6px 20px; font-weight: 700; font-size: 16px; }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current='page'] { color: var(--ink); }

/* -------------------------------------------------------------------- type */
h1, h2, h3 { line-height: 1.12; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(40px, 7vw, 68px); font-weight: 900; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 4.2vw, 40px); font-weight: 900; letter-spacing: -0.01em; }
h3 { font-size: 20px; font-weight: 800; }
p { margin: 0; }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--duck); }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 34ch; }
.muted { color: var(--muted); }
.fine { font-size: 15px; color: var(--faint); }

/* -------------------------------------------------------------------- hero */
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 48px;
  padding-block: 40px 72px;
}
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.hero-shot { justify-self: center; position: relative; width: min(330px, 100%); }
.hero-shot::before {
  content: '';
  position: absolute;
  inset: 10% -12% auto;
  height: 60%;
  background: radial-gradient(closest-side, rgba(252, 211, 77, 0.22), transparent);
  filter: blur(20px);
  pointer-events: none;
}
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-block: 24px 56px; }
  .hero-shot { width: min(300px, 86%); }
}

/* ----------------------------------------------------- the store buttons */
.stores { display: flex; flex-wrap: wrap; gap: 14px; }
.store-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 22px 10px 18px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--on-duck);
  text-decoration: none;
  font-weight: 800;
  line-height: 1.1;
  transition: transform 0.15s ease, background 0.15s ease;
}
.store:hover { color: var(--on-duck); background: #FFFFFF; transform: translateY(-1px); }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: flex; flex-direction: column; font-size: 19px; }
.store small { font-size: 12px; font-weight: 700; letter-spacing: 0.02em; opacity: 0.75; }
.store.is-soon { background: var(--surface-2); color: var(--muted); border: 1.5px solid var(--line); cursor: default; }
.store.is-soon:hover { transform: none; background: var(--surface-2); color: var(--muted); }
.soon-note { font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }

/* ------------------------------------------------------------- the phones */
.phone {
  position: relative;
  margin: 0;
  border-radius: 34px;
  padding: 8px;
  background: #2E3669;
  box-shadow: 0 24px 60px rgba(3, 6, 20, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
/* The captures carry the simulator's status bar; the frame crops it off. */
.phone .screen { border-radius: 27px; overflow: hidden; aspect-ratio: 506 / 1028; background: var(--night); }
.phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: bottom; }

/* ---------------------------------------------------------------- sections */
.band { padding-block: 72px; }
.band + .band { padding-top: 24px; }
.feature .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.feature .phone { width: min(300px, 100%); justify-self: center; }
.feature-copy { display: flex; flex-direction: column; gap: 16px; max-width: 46ch; }
.feature.flip .feature-copy { order: 2; }
@media (max-width: 820px) {
  .band { padding-block: 48px; }
  .feature .wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .feature.flip .feature-copy { order: 0; }
  .feature .phone { width: min(280px, 82%); }
}

.private .wrap { display: flex; flex-direction: column; gap: 28px; }
.private-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 700px) { .private-grid { grid-template-columns: minmax(0, 1fr); } }
.promise {
  display: flex;
  gap: 16px;
  padding: 22px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  min-width: 0;
}
.promise svg { width: 28px; height: 28px; flex: none; color: var(--duck); margin-top: 2px; }
.promise div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.promise p { color: var(--muted); font-size: 16px; }

.cta .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}
.cta .stores { justify-content: center; }

/* ------------------------------------------------------------------ footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 32px; }
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
  padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px));
  font-size: 15px;
  color: var(--faint);
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--muted); }

/* ---------------------------------------------------- policy and support */
.doc .wrap { max-width: 780px; display: flex; flex-direction: column; gap: 40px; padding-block: 32px 64px; }
.doc header { display: flex; flex-direction: column; gap: 14px; }
.doc section { display: flex; flex-direction: column; gap: 14px; }
.doc h2 { font-size: clamp(24px, 3.4vw, 30px); }
.doc p, .doc li { color: var(--muted); }
.doc strong { color: var(--ink); font-weight: 800; }
.doc ul, .doc ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.short {
  padding: 24px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.table-scroll { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 16px; }
th, td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
th { color: var(--ink); font-weight: 800; background: var(--surface); }
td { color: var(--muted); }
tr:last-child td { border-bottom: 0; }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details {
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 4px 20px;
}
.faq summary { cursor: pointer; font-weight: 800; font-size: 18px; padding-block: 14px; color: var(--ink); }
.faq details[open] summary { color: var(--duck); }
.faq details p { padding-bottom: 16px; }
.contact {
  padding: 24px;
  border-radius: 20px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.email { font-size: 20px; font-weight: 800; color: var(--ink); user-select: all; word-break: break-all; }
