/* ============================================================
   TWO OF US — marketing site

   The tokens below are the app's own, lifted from
   app/Sources/Support/Theme.swift. Anyone arriving here from the
   App Store should feel they never left: warm near-black plum,
   blush and lilac blooms behind everything, New York for the
   lines that carry feeling and SF Pro for the lines that have a
   job to do.

   `ui-serif` resolves to New York on Apple devices — the same
   face Typo.display uses in the app — with Georgia behind it for
   everyone else.
   ============================================================ */

:root {
  /* Base — Palette.bgTop / bgBottom */
  --bg:          #0B080D;
  --bg-raised:   #171119;
  --bg-card:     rgba(255, 255, 255, 0.055);
  --bg-card-up:  rgba(255, 255, 255, 0.095);
  --hairline:    rgba(255, 255, 255, 0.105);

  /* Blooms */
  --bloom-warm:  #FF7A93;
  --bloom-cool:  #8F7BFF;

  /* Text */
  --text:        #FBF6F7;
  --text-dim:    #BCAFBA;
  --text-faint:  #7A6E7C;

  /* The pair. Warm is player one, cool is player two — the same
     rule as the app, so a reader learns it once. */
  --one:         #FF7E95;
  --one-deep:    #E8556F;
  --two:         #7FA8FF;
  --two-deep:    #5A81E8;

  /* CTA */
  --cta-top:     #FFC6A6;
  --cta-bottom:  #FF8FA3;
  --cta-ink:     #1A1218;

  --success:     #53D8A6;

  --font-display: ui-serif, "New York", Georgia, "Times New Roman", serif;
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;

  /* Radius — Radius.swift */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --r-pill: 999px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(20px, 5vw, 40px);
  --measure: 1160px;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: var(--one); color: var(--cta-ink); }
:focus-visible { outline: 2px solid var(--cta-bottom); outline-offset: 3px; border-radius: 6px; }

/* ─── The ground ───
   Two blooms, fixed, behind everything — the web equivalent of
   AmbientBackground. They are the reason the page never reads as
   flat black. */
body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
body::before {
  width: 60vw; height: 60vw;
  top: -22vw; left: -18vw;
  background: radial-gradient(circle, var(--bloom-warm) 0%, transparent 68%);
}
body::after {
  width: 55vw; height: 55vw;
  top: 34vh; right: -20vw;
  background: radial-gradient(circle, var(--bloom-cool) 0%, transparent 68%);
  opacity: 0.38;
}

main, nav, footer { position: relative; z-index: 1; }

/* ─── Type ─── */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.03;
}
.display-xl { font-size: clamp(46px, 7.4vw, 88px); }
.display-lg { font-size: clamp(34px, 4.6vw, 54px); }
.display-md { font-size: clamp(25px, 2.8vw, 34px); }
.display em { font-style: italic; color: var(--one); }

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

.lede { font-size: clamp(17px, 1.35vw, 20px); color: var(--text-dim); max-width: 54ch; }
.small { font-size: 14px; color: var(--text-faint); }

/* ─── Layout ─── */
.container { width: 100%; max-width: var(--measure); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 11vw, 148px) 0; }
.section__head { max-width: 60ch; margin-bottom: clamp(36px, 5vw, 64px); }
.section__head .eyebrow { display: block; margin-bottom: 16px; }
.section__head .lede { margin-top: 20px; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: var(--r-pill);
  font-size: 16px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), background 0.22s var(--ease);
  will-change: transform;
}
.btn--primary {
  background: linear-gradient(100deg, var(--cta-top), var(--cta-bottom));
  color: var(--cta-ink);
  box-shadow: 0 14px 40px -14px rgba(255, 143, 163, 0.75);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 20px 52px -14px rgba(255, 143, 163, 0.9); }
.btn--ghost {
  background: var(--bg-card);
  border-color: var(--hairline);
  color: var(--text);
  backdrop-filter: blur(20px);
}
.btn--ghost:hover { background: var(--bg-card-up); transform: translateY(-2px); }
.btn__icon { width: 18px; height: 18px; }

/* ─── Nav ─── */
.nav {
  position: sticky; top: 0; z-index: 50;
  padding: 14px 0;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(11, 8, 13, 0.72);
  backdrop-filter: blur(24px) saturate(160%);
  border-bottom-color: var(--hairline);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav__logo { display: flex; align-items: center; gap: 11px; }
.nav__wordmark {
  font-size: 13px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
}
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { font-size: 15px; color: var(--text-dim); transition: color 0.2s; }
.nav__links a:hover { color: var(--text); }
.nav .btn { padding: 11px 20px; font-size: 15px; }
@media (max-width: 760px) { .nav__links { display: none; } }

/* The mark: two prints, overlapping — the app icon's geometry. */
.mark { width: 30px; height: 30px; flex: none; }

/* ─── Hero ─── */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(64px, 9vw, 120px); }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.hero__headline { margin: 22px 0 24px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__note { margin-top: 18px; display: flex; align-items: flex-start; gap: 9px; max-width: 46ch; }
.hero__note .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); flex: none; margin-top: 8px; }

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 15px 8px 11px;
  border-radius: var(--r-pill);
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  font-size: 13px; font-weight: 500; color: var(--text-dim);
  backdrop-filter: blur(20px);
}
.pill__pair { display: flex; }
.pill__pair i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.pill__pair i:first-child { background: var(--one); }
.pill__pair i:last-child { background: var(--two); margin-left: -4px; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; text-align: left; }
  .hero__phone { margin: 8px auto 0; }
}

/* ─── The phone ───
   A frame rather than a mockup image, so the screenshots stay
   crisp at any density and the page stays light. */
.phone {
  position: relative;
  width: min(320px, 76vw);
  aspect-ratio: 402 / 874;
  margin-inline: auto;
  border-radius: 54px;
  padding: 11px;
  background: linear-gradient(160deg, #2A2230, #100C13 60%);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.12) inset,
    0 40px 90px -30px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}
.phone__screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 43px;
  overflow: hidden;
  background: var(--bg);
}
.phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.phone::after {
  content: "";
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 30%; height: 26px; border-radius: var(--r-pill);
  background: #050308;
  z-index: 2;
}
.phone--tall .phone__screen img { object-position: center; }

/* A floating glass caption beside a phone. */
.float {
  position: absolute;
  display: flex; align-items: center; gap: 11px;
  padding: 12px 16px;
  border-radius: var(--r-md);
  background: rgba(23, 17, 25, 0.82);
  border: 1px solid var(--hairline);
  backdrop-filter: blur(24px);
  box-shadow: 0 20px 50px -22px rgba(0, 0, 0, 0.9);
  font-size: 13.5px;
  line-height: 1.35;
  z-index: 3;
  max-width: 230px;
}
.float strong { display: block; font-size: 14px; font-weight: 600; }
.float span { color: var(--text-faint); }
.float--tl { top: 11%; left: -14%; }
.float--br { bottom: 14%; right: -16%; }
@media (max-width: 1080px) { .float { display: none; } }

/* ─── Cards ─── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 28px;
  backdrop-filter: blur(20px);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover { transform: translateY(-3px); background: var(--bg-card-up); border-color: rgba(255,255,255,0.18); }
.card__num {
  font-family: var(--font-display);
  font-size: 13px; letter-spacing: 0.1em;
  color: var(--text-faint);
}
.card h3 { font-family: var(--font-display); font-size: 25px; font-weight: 600; margin: 14px 0 10px; letter-spacing: -0.01em; }
.card p { color: var(--text-dim); font-size: 15.5px; }
.card__meta { margin-top: 18px; display: flex; gap: 8px; flex-wrap: wrap; }

.tag {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 11px; border-radius: var(--r-pill);
  background: rgba(255,255,255,0.06); color: var(--text-faint);
  border: 1px solid var(--hairline);
}
.tag--soon { color: var(--two); border-color: rgba(127,168,255,0.3); }

.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* ─── Split feature rows ─── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.split--flip .split__media { order: -1; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--flip .split__media { order: 0; }
}

/* ─── Steps ─── */
.steps { counter-reset: step; display: grid; gap: 2px; }
.step {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--hairline);
}
.step:last-child { border-bottom: 1px solid var(--hairline); }
.step__n {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--one);
  line-height: 1;
}
.step h4 { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.step p { color: var(--text-dim); font-size: 15.5px; }

/* ─── The honesty table ─── */
.ledger { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--hairline); }
.ledger__row {
  display: grid; grid-template-columns: 28px 1fr;
  gap: 14px; align-items: start;
  padding: 18px 22px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--hairline);
}
.ledger__row:last-child { border-bottom: 0; }
.ledger__row span { font-size: 15.5px; }
.ledger__row b { font-weight: 600; }
.ledger__mark { font-size: 15px; line-height: 1.5; }
.ledger__mark--yes { color: var(--success); }
.ledger__mark--no { color: var(--one); }

/* ─── Pricing ─── */
.price-card {
  border-radius: var(--r-xl);
  padding: clamp(30px, 4vw, 48px);
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(255, 122, 147, 0.16), transparent 60%),
    radial-gradient(120% 120% at 100% 100%, rgba(143, 123, 255, 0.16), transparent 60%),
    var(--bg-raised);
  border: 1px solid var(--hairline);
}
.price-card__figure { font-family: var(--font-display); font-size: clamp(38px, 5vw, 58px); line-height: 1.05; }
.price-card ul { margin-top: 26px; display: grid; gap: 13px; }
.price-card li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--text-dim); font-size: 16px; }
.price-card li::before { content: "✦"; color: var(--one); }

/* ─── FAQ ─── */
.faq { border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 0; cursor: pointer; font-size: 18px; font-weight: 600;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 24px; font-weight: 400; color: var(--text-faint);
  transition: transform 0.3s var(--ease);
  flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--text-dim); padding-bottom: 24px; max-width: 72ch; font-size: 16px; }

/* ─── Final CTA ─── */
.final {
  text-align: center;
  padding: clamp(80px, 12vw, 160px) 0;
}
.final .display { margin-bottom: 22px; }
.final .lede { margin: 0 auto 36px; }
.final .hero__ctas { justify-content: center; }

/* ─── Footer ─── */
.footer { border-top: 1px solid var(--hairline); padding: 46px 0 60px; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 22px; justify-content: space-between; align-items: center; }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer a { color: var(--text-faint); font-size: 14px; transition: color 0.2s; }
.footer a:hover { color: var(--text); }

/* ─── Legal pages ─── */
.legal { max-width: 760px; padding-top: 40px; padding-bottom: 96px; }
.legal h1 { font-family: var(--font-display); font-size: clamp(34px, 5vw, 48px); margin-bottom: 10px; }
.legal h2 { font-size: 20px; font-weight: 600; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--text-dim); margin-bottom: 14px; }
.legal ul { list-style: disc; padding-left: 22px; }
.legal .notice {
  border: 1px dashed rgba(255, 126, 149, 0.5);
  background: rgba(255, 126, 149, 0.07);
  border-radius: var(--r-md);
  padding: 18px 20px;
  margin: 26px 0 34px;
  color: var(--text);
  font-size: 15.5px;
}

/* ─── Motion ─── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ─── Legal pages, in detail ───
   The two documents are long by necessity, so the page does the work the prose
   can't: a summary anyone will actually read, a contents list that gets you to
   the clause you came for, and placeholders that are impossible to mistake for
   finished text. */

.legal__head { padding-top: 44px; }
.legal__meta {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  align-items: center; margin: 14px 0 0;
  font-size: 13.5px; color: var(--text-faint);
}
.legal__meta b { color: var(--text-dim); font-weight: 500; }

/* The plain-English précis. Not a substitute for the terms, and it says so. */
.summary {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 26px 28px;
  margin: 32px 0 8px;
}
.summary h2 {
  font-family: var(--font-display);
  font-size: 21px; font-weight: 600;
  margin: 0 0 16px;
}
.summary ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.summary li {
  position: relative; padding-left: 19px;
  color: var(--text-dim); font-size: 15.5px; line-height: 1.6; margin: 0;
}
.summary li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 7px; height: 7px;
  border-radius: 50%; background: linear-gradient(135deg, var(--one), var(--two));
}
.summary p.small { margin: 18px 0 0; }

/* Contents. Two columns where there's room, one where there isn't. */
.toc {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 22px 0;
  margin: 38px 0 6px;
}
.toc h2 {
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-faint);
  margin: 0 0 14px;
}
.legal .toc ol {
  list-style: none; padding: 0; margin: 0;
  columns: 2; column-gap: 36px;
  counter-reset: toc;
}
.toc li { margin: 0 0 9px; break-inside: avoid; }
.toc a { color: var(--text-dim); font-size: 14.5px; transition: color 0.2s; }
.toc a:hover { color: var(--text); }
.toc a::before { content: counter(toc) ". "; color: var(--text-faint); }
.legal .toc li { counter-increment: toc; margin: 0 0 9px; }
@media (max-width: 640px) { .legal .toc ol { columns: 1; } }

/* Sections. scroll-margin so an anchor doesn't land under the sticky nav. */
.legal section { scroll-margin-top: 92px; }
.legal section > h2 {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 600;
  letter-spacing: -0.01em;
  margin: 52px 0 14px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
}
.legal h3 {
  font-size: 16px; font-weight: 600; color: var(--text);
  margin: 26px 0 10px;
}
.legal p, .legal li { font-size: 15.5px; line-height: 1.68; }
.legal ul, .legal ol { margin-bottom: 14px; }
.legal ol { list-style: decimal; padding-left: 22px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal a:not(.btn):not(.nav__logo) {
  color: var(--text); text-decoration: underline;
  text-decoration-color: rgba(255, 126, 149, 0.5);
  text-underline-offset: 3px;
}
.legal a:not(.btn):not(.nav__logo):hover { text-decoration-color: var(--one); }

/* The data table. Scrolls sideways on a phone rather than squashing. */
.table-wrap { overflow-x: auto; margin: 20px 0 24px; -webkit-overflow-scrolling: touch; }
table.data {
  width: 100%; min-width: 620px;
  border-collapse: collapse;
  font-size: 14.5px;
}
table.data th, table.data td {
  text-align: left; vertical-align: top;
  padding: 13px 16px 13px 0;
  border-bottom: 1px solid var(--hairline);
}
table.data th {
  font-size: 11px; font-weight: 600; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--text-faint);
  border-bottom-color: rgba(255, 255, 255, 0.2);
}
table.data td { color: var(--text-dim); }
table.data td:first-child { color: var(--text); font-weight: 500; width: 27%; }

/* A fact that isn't known yet. Deliberately loud: nothing here should ever be
   mistaken for a finished clause, and every one of these is listed in CLAUDE.md. */
.gap {
  display: inline-block;
  background: rgba(255, 198, 166, 0.14);
  border: 1px dashed rgba(255, 198, 166, 0.55);
  border-radius: 5px;
  padding: 1px 7px;
  margin: 0 1px;
  color: var(--cta-top);
  font-family: var(--font-ui);
  font-size: 0.92em;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* A promise strong enough to pull out of the paragraph it sits in. */
.pull {
  border-left: 2px solid var(--one);
  padding: 4px 0 4px 20px;
  margin: 22px 0;
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.5;
  color: var(--text);
}

/* Contents links carry their own numbering and sit in a list; the body-copy
   underline makes them read as a wall of links rather than a menu. */
.legal .toc a { text-decoration: none; }
.legal .toc a:hover { text-decoration: underline; text-decoration-color: var(--one); }
