/* Postmatch landing page. Tokens mirror the app's "Cool Blue" palette
   (DesignSystem/Tokens.swift), light theme only. Legal pages keep using style.css. */

:root {
  color-scheme: light;
  --bg: #F0F1F2;
  --surface: #FFFFFF;
  --ink: #0F1E3D;
  --ink-2: #5E6E86;
  --ink-3: #8593A8;
  --divider: #DDE5F1;
  --accent: #1F5BE0;
  --accent-hover: #1A4FC4;
  --accent-soft: rgba(31, 91, 224, 0.09);
  --figure: #4070B0;
  --panel: linear-gradient(165deg, #E9EEF6 0%, #DCE4F0 100%);
  --card-shadow: 0 1px 2px rgba(15, 30, 61, 0.04), 0 10px 30px rgba(15, 30, 61, 0.06);
  --shot-shadow: 0 2px 6px rgba(15, 30, 61, 0.05), 0 30px 60px -18px rgba(15, 30, 61, 0.22);
  --radius: 22px;
  --gutter: 16px;
  --header-h: 56px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro", system-ui, sans-serif;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--accent); text-underline-offset: 3px; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  padding: 8px 14px;
  background: var(--surface);
  color: var(--ink);
  border-radius: 10px;
  z-index: 20;
}
.skip:focus { top: 8px; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

h1, h2, h3 { color: var(--ink); margin: 0; }
h1 {
  font-size: clamp(38px, 3.2vw + 12px, 60px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
h2 {
  font-size: clamp(28px, 1.6vw + 14px, 40px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.028em;
}
h3 { font-size: 22px; font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; }
p { margin: 0 0 14px; }

.eyebrow {
  margin: 0 0 14px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.fine { color: var(--ink-2); font-size: 14px; }

/* Header: translucent with blur, solid where backdrop-filter is missing */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(240, 241, 242, 0.72);
  -webkit-backdrop-filter: saturate(1.8) blur(20px);
  backdrop-filter: saturate(1.8) blur(20px);
  border-bottom: 1px solid rgba(15, 30, 61, 0.08);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: var(--bg); }
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: var(--header-h);
}
.lockup {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.mark { width: 26px; height: 26px; flex-shrink: 0; }
.header-end { display: flex; align-items: center; gap: 8px; }
.nav {
  display: flex;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  display: block;
  padding: 6px 12px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.2s var(--ease);
}
.nav a:hover { color: var(--ink); }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.2s var(--ease);
}
.pill:hover { background: var(--accent-hover); }
.pill .apple { width: 11px; height: 13px; margin-top: -2px; }
@media (max-width: 760px) {
  .nav { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { transform: scale(0.98); }
.btn .apple { width: 15px; height: 18px; margin-top: -2px; }

/* Hero */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 96px); }
.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) { .hero-grid { grid-template-columns: 6fr 5fr; } }
.hero-copy { max-width: 560px; margin: 0; }
.hero .lede {
  font-size: clamp(17px, 0.5vw + 13px, 20px);
  line-height: 1.45;
  color: var(--ink-2);
  margin: 20px 0 28px;
}
.hero .fine { margin-top: 18px; }

/* Screenshot panels */
.shot {
  margin: 0;
  display: grid;
  place-items: center;
  padding: clamp(24px, 4vw, 48px);
  border-radius: 28px;
  background: var(--panel);
}
.shot img {
  width: 100%;
  max-width: 300px;
  border-radius: 32px;
  box-shadow: var(--shot-shadow);
  background: var(--bg);
}
.shot-hero img { max-width: 340px; }
.shot-wide img { max-width: 440px; }

/* Sections */
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section + .section { border-top: 1px solid rgba(15, 30, 61, 0.06); }
.section-head {
  max-width: 640px;
  margin: 0 0 clamp(32px, 4vw, 48px);
}
.section-head .sub {
  margin: 16px 0 0;
  max-width: 560px;
  color: var(--ink-2);
  font-size: clamp(18px, 2vw, 21px);
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: clamp(24px, 3vw, 32px);
}
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--ink-2); }
.card p:last-child { margin-bottom: 0; }

/* Centered content blocks share one width */
.block { max-width: 640px; margin-left: 0; margin-right: auto; }

.split { display: grid; gap: 32px; }
@media (min-width: 900px) { .split { grid-template-columns: 5fr 7fr; align-items: start; } }
.split .section-head, .split .block { margin: 0; max-width: none; }

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.steps h3 { font-size: 19px; margin: 18px 0 8px; }
.steps p { font-size: 16px; }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Feature rows */
.feature {
  display: grid;
  gap: 32px;
  align-items: center;
  margin-bottom: clamp(48px, 6vw, 88px);
}
.feature-copy { max-width: 560px; }
.feature-copy h3 { font-size: clamp(22px, 1vw + 12px, 28px); letter-spacing: -0.025em; margin-bottom: 14px; }
.feature-copy p { color: var(--ink-2); font-size: 17px; max-width: 30em; }
@media (min-width: 860px) {
  .feature { grid-template-columns: 5fr 6fr; gap: clamp(48px, 6vw, 96px); }
  .feature.flip { grid-template-columns: 6fr 5fr; }
  .feature.flip .feature-copy { order: 2; }
}

.duo { display: grid; gap: 16px; }
@media (min-width: 820px) { .duo { grid-template-columns: 1fr 1fr; gap: 20px; } }

.ticks { list-style: none; margin: 6px 0 0; padding: 0; }
.ticks li {
  position: relative;
  padding-left: 30px;
  margin: 10px 0;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-soft);
}
.ticks li::after {
  content: "";
  position: absolute;
  left: 6.5px;
  top: calc(0.32em + 4px);
  width: 4px;
  height: 8px;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.block .ticks li { margin: 14px 0; }
.block > .fine { margin: 22px 0 0; }

/* Pricing */
.price-card { text-align: left; }
.price-card h3 { margin-bottom: 22px; }
.prices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
  text-align: left;
}
@media (max-width: 440px) { .prices { grid-template-columns: 1fr; } }
.price {
  border: 1px solid var(--divider);
  border-radius: 18px;
  padding: 18px 20px;
}
.price:first-child { border-color: var(--accent); background: var(--accent-soft); }
.price p { margin: 0; }
.price-label { font-weight: 600; color: var(--ink-2); font-size: 15px; }
.amount {
  font-size: 30px;
  font-weight: 700;
  color: var(--figure);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.amount span { font-size: 15px; font-weight: 500; color: var(--ink-2); letter-spacing: 0; }
.price-card .price-note { font-size: 14px; color: var(--ink-2); }
.price-card > p { max-width: 34em; margin-left: 0; margin-right: 0; }
.card .amount { color: var(--figure); font-size: 30px; }
.price-card > p.fine { max-width: none; }
.price-card .btn { margin-top: 10px; }

/* FAQ */
.faq details {
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--card-shadow);
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 52px 18px 22px;
  font-weight: 600;
  font-size: 17px;
  position: relative;
  border-radius: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 26px;
  top: 50%;
  width: 8px;
  height: 8px;
  border: solid var(--ink-3);
  border-width: 0 2px 2px 0;
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--ink-2); }

/* Footer */
.site-footer {
  border-top: 1px solid rgba(15, 30, 61, 0.08);
  padding: 28px 0 44px;
  color: var(--ink-2);
  font-size: 13px;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}
.footer-row p { margin: 0; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links a { color: var(--ink-2); }
.footer-links a:hover { color: var(--ink); }
.disclaimer { margin: 16px 0 0; }

/* Motion. Only active when the head script set .js (never under reduced
   motion), so content is always visible without JS. */
@keyframes rise {
  from { opacity: 0; transform: translateY(32px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
.js .hero-copy { animation: rise 0.8s var(--ease) both; }
.js .shot-hero { animation: rise 0.9s 0.15s var(--ease) both; }

/* One-shot reveal on first entry (IntersectionObserver adds .in) */
.js .reveal {
  opacity: 0;
  transform: translateY(32px) scale(0.985);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.js .reveal.in { opacity: 1; transform: none; }

/* Images fade in once decoded */
.js .shot img { opacity: 0; transition: opacity 0.6s var(--ease); }
.js .shot img.ok { opacity: 1; }

@media print, (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .shot img, .hero-copy, .shot-hero {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
