:root {
  --bg: #ffffff;
  --fg: #0a0a0c;
  --muted: #6b6b75;
  --tint: #007aff;
  --accent-bg: #f5f6f8;
  --border: rgba(0, 0, 0, 0.08);
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  --hero-bg: #0a0d12;
  --hero-fg: #f6f7fa;
  --hero-muted: rgba(246, 247, 250, 0.55);
  --hero-dim: rgba(246, 247, 250, 0.32);
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Slightly lighter than --hero-bg so the landing-page sections under the
       hero have visible contrast against it. */
    --bg: #141823;
    --fg: #f1f2f4;
    --muted: #a0a4ae;
    --tint: #4ea0ff;
    --accent-bg: #1c2230;
    --border: rgba(255, 255, 255, 0.08);
    --card: #1c2230;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.4);
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--tint); text-decoration: none; }
a:hover { text-decoration: underline; }

/* =========================================================================
   Sub-pages (privacy, support) — kept as the original simple layout.
   ========================================================================= */

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

header.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

header.brand .badge {
  width: 44px;
  height: 44px;
  background: var(--tint);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

header.brand .badge .card {
  width: 26px;
  height: 18px;
  background: white;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}

header.brand .badge .card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--tint);
}

header.brand h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

header.brand .tagline {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 2px;
}

h1.page-title {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}

p.lead {
  font-size: 19px;
  color: var(--muted);
  margin: 0 0 32px;
}

main h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 40px 0 12px;
}

main h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 28px 0 6px;
}

main p { margin: 0 0 16px; }

main ul { padding-left: 20px; margin: 0 0 16px; }
main ul li { margin-bottom: 6px; }

.card-block {
  background: var(--accent-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 20px 0 24px;
}

.card-block p:last-child { margin-bottom: 0; }

.faq-q {
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 4px;
}

main > footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
}

main > footer nav { display: flex; gap: 16px; }

@media (max-width: 480px) {
  main { padding: 36px 18px 64px; }
  h1.page-title { font-size: 28px; }
  p.lead { font-size: 17px; }
}

/* =========================================================================
   Landing page (index.html) — dark hero, phone mockup, then light sections.
   All classes prefixed `.lp-` so they don't bleed into privacy/support pages.
   ========================================================================= */

body.landing { background: var(--hero-bg); }

.lp-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.lp-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--hero-fg);
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.lp-brand:hover { text-decoration: none; }

.lp-brand .badge {
  width: 36px;
  height: 36px;
  background: var(--tint);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lp-brand .badge .card {
  width: 22px;
  height: 14px;
  background: white;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.lp-brand .badge .card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--tint);
}

.lp-soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: var(--hero-fg);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.lp-soon::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34c759;
  box-shadow: 0 0 0 4px rgba(52, 199, 89, 0.18);
}

/* ── Hero ──────────────────────────────────────────────────────────────── */

.lp-hero {
  background: var(--hero-bg);
  color: var(--hero-fg);
  padding: 24px 32px 80px;
  position: relative;
  overflow: hidden;
}

.lp-hero::before {
  /* Subtle radial glow under the phone mockup — gives the dark hero some depth. */
  content: "";
  position: absolute;
  top: 30%; right: -10%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(0, 122, 255, 0.18) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.lp-hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 60px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.lp-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tint);
  margin: 0 0 24px;
}

.lp-headline {
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 0 28px;
  color: var(--hero-fg);
}

.lp-headline em {
  display: block;
  font-style: italic;
  font-weight: 400;
  color: var(--hero-muted);
  margin-top: 6px;
}

.lp-sub {
  font-size: 19px;
  line-height: 1.6;
  color: var(--hero-muted);
  margin: 0 0 24px;
  max-width: 560px;
}

.lp-audience {
  font-size: 14px;
  color: var(--hero-dim);
  margin: 0;
  max-width: 540px;
  line-height: 1.55;
}

.lp-audience strong {
  color: var(--hero-muted);
  font-weight: 600;
}

/* ── Phone mockups (CSS-only) ──────────────────────────────────────────── */

.lp-hero-mock {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Two-phone composition: focus-card phone in front, lock-screen phone tilted
   behind it. Tells the whole product story in one visual. */
.phone-stack {
  position: relative;
  width: 360px;
  height: 600px;
}

.phone-stack .phone-focus {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
}

.phone-stack .phone-lockscreen {
  position: absolute;
  right: -8px;
  top: 80px;
  z-index: 1;
  transform: rotate(8deg);
  opacity: 0.97;
}

.phone {
  width: 260px;
  height: 540px;
  background: linear-gradient(160deg, #2a2e36 0%, #14171c 100%);
  border-radius: 42px;
  padding: 8px;
  box-shadow:
    0 40px 80px -20px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  position: relative;
}

.phone-sm {
  width: 220px;
  height: 460px;
  border-radius: 38px;
}

.phone::before {
  /* Dynamic Island */
  content: "";
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 28px;
  background: #000;
  border-radius: 20px;
  z-index: 3;
}

.phone-sm::before {
  top: 14px;
  width: 78px;
  height: 24px;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 34px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-sm .phone-screen { border-radius: 30px; }

.phone-stripe {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--tint);
  z-index: 2;
}

.phone-card-text {
  color: white;
  font-size: 36px;
  font-weight: 600;
  text-align: center;
  letter-spacing: -0.015em;
  line-height: 1.12;
  padding: 0 22px;
}

.phone-pause {
  position: absolute;
  bottom: 32px;
  left: 0; right: 0;
  font-size: 9px;
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.22);
  text-align: center;
}

/* Lock screen mockup ── time + Live Activity card */

.phone-lockscreen .phone-screen {
  background: linear-gradient(165deg, #1c2433 0%, #0a0f1a 100%);
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 56px;
  flex-direction: column;
}

.ls-time {
  width: 100%;
  text-align: center;
  color: white;
  font-size: 56px;
  font-weight: 200;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-top: 4px;
}

.ls-date {
  width: 100%;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  margin-top: 6px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.live-activity {
  position: absolute;
  bottom: 56px;
  left: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 12px 14px;
  display: flex;
  gap: 10px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.la-stripe {
  width: 3px;
  background: var(--tint);
  border-radius: 2px;
  flex-shrink: 0;
}

.la-content { flex: 1; min-width: 0; }

.la-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.la-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--tint);
}

.la-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tint);
  display: inline-block;
}

.la-timer {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
}

.la-title {
  color: white;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.005em;
}

/* ── Light sections under hero ─────────────────────────────────────────── */

.lp-section {
  background: var(--bg);
  color: var(--fg);
  padding: 96px 32px;
}

.lp-section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.lp-section-title {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 48px;
  color: var(--fg);
}

/* How it works — 4 numbered cards */

.lp-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.lp-step {
  background: var(--accent-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lp-step-num {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--tint);
  color: white;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.lp-step h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.lp-step p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
}

/* Why this works */

.lp-why-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 720px;
}

.lp-research {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.lp-research li {
  background: var(--accent-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 22px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
}

.lp-research li strong {
  display: block;
  color: var(--fg);
  font-size: 15px;
  margin-bottom: 6px;
  font-weight: 600;
}

/* From my desk — story section with photos */

.lp-story-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 64px;
}

.lp-story-grid:last-child { margin-bottom: 0; }

.lp-story-grid.reverse { grid-template-columns: 1fr 1.1fr; }
.lp-story-grid.reverse .lp-photo { order: -1; }

.lp-story p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg);
  margin: 0 0 18px;
  max-width: 520px;
}

.lp-story p:last-child { margin-bottom: 0; }

.lp-story p em {
  font-style: italic;
  color: var(--muted);
}

.lp-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--accent-bg);
  border: 1px dashed var(--border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  overflow: hidden;
  margin: 0;
}

.lp-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  position: absolute;
  inset: 0;
}

.lp-photo-hint {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.5;
}

.lp-photo-hint code {
  display: block;
  margin-top: 6px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--muted);
  font-weight: 400;
}

.lp-story-callout {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.lp-story-callout p {
  font-size: 18px;
  font-style: italic;
  color: var(--muted);
  margin: 0 auto;
  max-width: 600px;
}

/* Footer */

.lp-footer {
  background: var(--bg);
  color: var(--muted);
  padding: 32px 32px 56px;
  border-top: 1px solid var(--border);
  font-size: 14px;
}

.lp-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}

.lp-footer nav { display: flex; gap: 18px; }

/* ── Responsive ───────────────────────────────────────────────────────── */

@media (max-width: 880px) {
  .lp-hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 32px;
  }
  /* Text first, phones after — on mobile the headline needs to lead. */
  /* Convert the phone-stack from absolute-overlap to a flex column so both
     phones stack cleanly without the tilt that only reads well at desktop sizes. */
  .phone-stack {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }
  .phone-stack .phone-focus,
  .phone-stack .phone-lockscreen {
    position: static;
    transform: none;
    margin: 0;
  }
  .phone { width: 240px; height: 500px; }
  .phone-sm { width: 220px; height: 460px; }
  .phone-card-text { font-size: 32px; }
  .lp-steps { grid-template-columns: repeat(2, 1fr); }
  .lp-research { grid-template-columns: 1fr; }
  .lp-section { padding: 64px 24px; }
  .lp-hero { padding: 16px 24px 56px; }
  .lp-story-grid,
  .lp-story-grid.reverse {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 48px;
  }
  .lp-story-grid.reverse .lp-photo { order: 0; }
}

@media (max-width: 520px) {
  .lp-nav { padding: 16px 20px; }
  .lp-soon { font-size: 12px; padding: 6px 12px; }
  .lp-steps { grid-template-columns: 1fr; }
  .lp-headline { font-size: 38px; }
  .lp-sub { font-size: 17px; }
}
