/* =====================================================================
   US AGAIN — shared promo site styles
   Palette + tokens copied straight from Theme.swift
   ===================================================================== */
:root {
  --bg:           #F6F1E9;
  --bg-deep:      #ECE2D3;
  --surface:      #FFFBF3;
  --surface-warm: #FBF1DD;
  --ink:          #3E2B1F;
  --ink-soft:     #694F3F;
  --ink-mute:     #746057;
  --coral:        #A84F39;
  --coral-soft:   #8D5F45;
  --sage:         #65764F;
  --rose:         #9F5F59;
  --gold:         #8A651C;
  --on-accent:    #FFFBF3;

  --tint-coral: rgba(168,79,57,.08);
  --tint-sage:  rgba(101,118,79,.10);
  --tint-rose:  rgba(159,95,89,.10);
  --tint-gold:  rgba(138,101,28,.10);

  --r-card: 28px;
  --r-soft: 22px;
  --r-pill: 999px;

  --shadow-card:  0 18px 40px -12px rgba(62,43,31,.18), 0 4px 10px -2px rgba(62,43,31,.08);
  --shadow-soft:  0 10px 28px -10px rgba(62,43,31,.18);
  --shadow-tight: 0 4px 14px -4px rgba(62,43,31,.18);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:           #181512;
    --bg-deep:      #211A15;
    --surface:      #2E231A;
    --surface-warm: #342821;
    --ink:          #F6E9D5;
    --ink-soft:     #CFB59A;
    --ink-mute:     #8E7A66;
    --coral:        #EA8F72;
    --coral-soft:   #6B4533;
    --sage:         #A9B894;
    --rose:         #D89C95;
    --gold:         #E5C284;
    --on-accent:    #2A1A12;

    --tint-coral: rgba(234,143,114,.10);
    --tint-sage:  rgba(169,184,148,.10);
    --tint-rose:  rgba(216,156,149,.10);
    --tint-gold:  rgba(229,194,132,.10);

    --shadow-card:  0 24px 50px -16px rgba(0,0,0,.55), 0 4px 14px -4px rgba(0,0,0,.4);
    --shadow-soft:  0 14px 30px -12px rgba(0,0,0,.5);
    --shadow-tight: 0 6px 16px -6px rgba(0,0,0,.5);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background:
    radial-gradient(80% 60% at 78% 0%, var(--tint-gold), transparent 60%),
    radial-gradient(60% 50% at 8% 14%, var(--tint-rose), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
  min-height: 100dvh;
  overflow-x: hidden;
}

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

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); margin: 0; line-height: 1.08; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 6.6vw, 4.6rem); font-weight: 600; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 600; }
h3 { font-size: 1.35rem; font-weight: 600; }
p  { margin: 0; color: var(--ink-soft); }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.script {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--ink-soft);
}

/* nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  border-bottom: 1px solid color-mix(in oklab, var(--ink) 7%, transparent);
}
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 600; font-size: 1.1rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .mark { width: 30px; height: 22px; }
.nav-links { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.nav-links a { color: var(--ink-soft); padding: 8px 12px; border-radius: var(--r-pill); font-size: .94rem; }
.nav-links a:hover { background: var(--surface); color: var(--ink); text-decoration: none; }
.nav-cta {
  background: var(--coral);
  color: var(--on-accent) !important;
  padding: 9px 16px !important;
  font-weight: 600;
  box-shadow: var(--shadow-tight);
}
.nav-cta:hover { filter: brightness(1.04); }
@media (max-width: 720px) { .nav-links a:not(.nav-cta) { display: none; } }

/* buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--bg);
  padding: 14px 22px;
  border-radius: var(--r-pill);
  font-weight: 600; font-size: 1rem;
  box-shadow: var(--shadow-card);
  transition: transform .2s ease;
}
.btn-primary:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary svg { width: 22px; height: 22px; }

/* sections */
section { padding: clamp(48px, 7vw, 96px) 0; }
.section-head { max-width: 720px; margin-bottom: 32px; }
.section-head h2 { margin-top: 12px; }
.section-head p  { margin-top: 14px; max-width: 60ch; }

/* prose pages (privacy, support) */
.prose {
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-soft);
  padding: clamp(32px, 5vw, 56px);
  border: 1px solid color-mix(in oklab, var(--ink) 5%, transparent);
}
.prose h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 8px; }
.prose .effective {
  display: inline-block;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 28px;
  font-weight: 500;
}
.prose h2 {
  font-size: 1.4rem;
  margin: 32px 0 10px;
  letter-spacing: -.005em;
}
.prose h3 {
  font-size: 1.05rem;
  margin: 24px 0 6px;
  font-family: var(--serif);
}
.prose p, .prose li {
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.65;
}
.prose p + p { margin-top: 14px; }
.prose ul {
  margin: 12px 0 16px;
  padding-left: 22px;
}
.prose ul li { margin: 6px 0; }
.prose ul li::marker { color: var(--coral); }
.prose a {
  color: var(--coral);
  border-bottom: 1px solid color-mix(in oklab, var(--coral) 35%, transparent);
}
.prose a:hover { text-decoration: none; border-bottom-color: var(--coral); }
.prose hr {
  border: 0;
  height: 1px;
  background: color-mix(in oklab, var(--ink) 8%, transparent);
  margin: 36px 0 28px;
}
.prose .back {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 40px;
  font-size: .94rem; color: var(--ink-soft);
}
.prose .back svg { width: 14px; height: 14px; }

.page-hero {
  text-align: center;
  padding: clamp(48px, 7vw, 96px) 0 clamp(24px, 4vw, 48px);
}
.page-hero .eyebrow { color: var(--coral); }
.page-hero h1 { margin-top: 14px; }
.page-hero p { margin: 18px auto 0; max-width: 56ch; font-size: 1.04rem; }

/* footer */
footer { padding: 56px 0 80px; color: var(--ink-mute); font-size: .9rem; }
footer .row { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
footer .row .spacer { flex: 1; }
footer a { color: var(--ink-soft); }
footer .closer { margin-top: 28px; font-family: var(--serif); font-style: italic; color: var(--ink-soft); }

.divider { height: 1px; width: 100%; background: color-mix(in oklab, var(--ink) 8%, transparent); margin: 0; }
::selection { background: color-mix(in oklab, var(--coral) 35%, transparent); color: var(--ink); }

/* ---------- accessibility ---------- */
.skip {
  position: absolute;
  left: -9999px; top: auto;
  background: var(--ink); color: var(--bg);
  padding: 10px 14px; border-radius: 8px;
  font-weight: 600; z-index: 100;
}
.skip:focus { left: 16px; top: 12px; }

:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
  border-radius: 6px;
}
.btn-primary:focus-visible,
.nav-cta:focus-visible { outline-offset: 4px; }

/* nav: indicate current page */
.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: var(--surface);
}

/* ---------- shared brand mark ---------- */
.brand .mark {
  width: 34px; height: 34px;
  border-radius: 8px;
  box-shadow: 0 2px 8px -2px rgba(62,43,31,.18);
}
@media (prefers-color-scheme: dark) {
  .brand .mark { box-shadow: 0 2px 10px -2px rgba(0,0,0,.5); }
}

/* ===================================================================
   Phone frame — used in hero and screenshot showcase
   =================================================================== */
.phone {
  position: relative;
  background: linear-gradient(155deg, #2a2420 0%, #15110d 60%, #0c0805 100%);
  border-radius: 50px;
  padding: 12px;
  box-shadow:
    0 30px 60px -20px rgba(62,43,31,.45),
    0 10px 24px -8px rgba(62,43,31,.25),
    inset 0 0 0 1.5px rgba(255,255,255,.06),
    inset 0 0 0 3px rgba(0,0,0,.6);
  width: 100%;
  max-width: 300px;
  aspect-ratio: 300 / 610;
  margin: 0 auto;
}
@media (max-width: 540px) {
  .phone { max-width: 260px; }
}
.phone::before {
  /* outer rim sheen */
  content: "";
  position: absolute; inset: 0;
  border-radius: 50px;
  background: linear-gradient(180deg, rgba(255,255,255,.10), transparent 24%, transparent 76%, rgba(255,255,255,.06));
  pointer-events: none;
}
.phone .island {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 26px;
  background: #050402;
  border-radius: 999px;
  z-index: 4;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}
.phone .screen {
  position: relative;
  height: 100%;
  width: 100%;
  background: var(--bg);
  border-radius: 36px;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.04);
}
.phone .status {
  height: 50px;
  padding: 18px 26px 0;
  display: flex; align-items: flex-start; justify-content: space-between;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
  z-index: 3;
}
.phone .status .right {
  display: inline-flex; gap: 6px; align-items: center;
}
.phone .status svg { display: block; }

/* small mock-screen sizing tweaks for showcase phones */
.showcase .phone { max-width: 260px; aspect-ratio: 260/562; border-radius: 40px; padding: 10px; }
.showcase .phone .screen { border-radius: 30px; background: #181512; }
.showcase .phone .island { width: 64px; height: 19px; top: 16px; }
.showcase .phone .status { font-size: 10px; padding: 14px 20px 0; height: 38px; }

/* phones that use a real screenshot — the screenshot includes its own
   status bar and dynamic island, so suppress the fake ones */
.phone.shot .island,
.phone.shot .status { display: none; }
.phone.shot .screen { padding: 0; }
.phone.shot .screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* ===================================================================
   Mock screens (rendered with CSS; no real screenshots needed)
   =================================================================== */
.mock {
  flex: 1;
  display: flex; flex-direction: column;
  padding: 4px 18px 18px;
  position: relative;
}
.showcase .mock { padding: 2px 14px 14px; }

.mock .greet {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
  margin: 6px 0 4px;
  letter-spacing: -0.01em;
  font-weight: 500;
}
.mock .sub {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-mute);
  margin-bottom: 12px;
}
.mock .hero-card {
  background: var(--surface);
  border-radius: 18px;
  padding: 14px 14px 16px;
  box-shadow: var(--shadow-tight);
  margin-bottom: 12px;
  border: 1px solid color-mix(in oklab, var(--ink) 5%, transparent);
}
.mock .hero-card .lab {
  font-size: 9px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--coral); font-weight: 700;
}
.mock .hero-card .pp {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.32;
  margin-top: 6px;
}
.mock .row-h { font-size: 10px; color: var(--ink-mute); letter-spacing: .12em; text-transform: uppercase; font-weight: 600; margin: 6px 0 8px; }
.mock .deck-row { display: flex; gap: 8px; overflow: hidden; }
.mock .mini-deck {
  flex: 0 0 auto;
  width: 78px;
  background: var(--surface);
  border-radius: 12px;
  padding: 10px 10px 12px;
  box-shadow: var(--shadow-tight);
  border: 1px solid color-mix(in oklab, var(--ink) 5%, transparent);
}
.mock .mini-deck .sw { width: 100%; height: 28px; border-radius: 8px; margin-bottom: 6px; }
.mock .mini-deck .nm { font-size: 9px; color: var(--ink); font-weight: 600; line-height: 1.2; }
.mock .mini-deck .bl { font-size: 8px; color: var(--ink-mute); margin-top: 2px; line-height: 1.2; }

.mock .tab-bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 56px;
  background: color-mix(in oklab, var(--bg) 92%, var(--ink) 5%);
  border-top: 1px solid color-mix(in oklab, var(--ink) 7%, transparent);
  display: flex; justify-content: space-around; align-items: center;
}
.mock .tab-bar .t {
  font-size: 8px; color: var(--ink-mute); letter-spacing: .04em;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.mock .tab-bar .t.active { color: var(--coral); }
.mock .tab-bar .t .ico {
  width: 14px; height: 14px;
  border-radius: 4px;
  background: currentColor;
  opacity: .7;
}

.mock .swipe-card {
  margin: 18px 0;
  background: var(--surface-warm);
  border-radius: 18px;
  padding: 14px;
  height: 200px;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; justify-content: space-between;
  border: 1px solid color-mix(in oklab, var(--ink) 6%, transparent);
  transform: rotate(-1.5deg);
}
.mock .swipe-card .pp { font-family: var(--serif); font-size: 14px; font-weight: 500; color: var(--ink); line-height: 1.34; }
.mock .swipe-card .meta { font-size: 9px; color: var(--ink-mute); letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.mock .swipe-card .bottom { display: flex; justify-content: space-between; align-items: center; }
.mock .progress-bar {
  height: 3px; border-radius: 2px;
  background: color-mix(in oklab, var(--ink) 8%, transparent);
  overflow: hidden;
}
.mock .progress-bar::after {
  content: ""; display: block; height: 100%; width: 42%;
  background: linear-gradient(90deg, var(--coral), var(--gold));
}

.mock .note-row {
  background: var(--surface);
  border-radius: 10px;
  padding: 8px 10px;
  margin-top: 8px;
  border: 1px solid color-mix(in oklab, var(--ink) 5%, transparent);
}
.mock .note-row .qq {
  font-family: var(--serif); font-style: italic;
  font-size: 9px; color: var(--coral);
}
.mock .note-row .nt {
  font-size: 9px; color: var(--ink-soft); margin-top: 3px; line-height: 1.4;
}

.mock .settings-row {
  display: grid; grid-template-columns: 22px 1fr 22px;
  align-items: center; gap: 8px;
  padding: 9px 0;
  border-top: 1px solid color-mix(in oklab, var(--ink) 6%, transparent);
  font-size: 10px; color: var(--ink-soft);
}
.mock .settings-row:first-of-type { border-top: 0; }
.mock .settings-row .ico {
  width: 18px; height: 18px; border-radius: 5px;
  background: var(--tint-coral); color: var(--coral);
  display: grid; place-items: center;
}
.mock .settings-row .ico.s2 { background: var(--tint-sage);  color: var(--sage); }
.mock .settings-row .ico.s3 { background: var(--tint-rose);  color: var(--rose); }
.mock .settings-row .ico.s4 { background: var(--tint-gold);  color: var(--gold); }
.mock .settings-row .ico::after {
  content: ""; width: 8px; height: 8px; border-radius: 2px; background: currentColor;
}

/* swatches reused */
.sw-coral { background: linear-gradient(135deg, var(--coral), color-mix(in oklab, var(--coral) 70%, var(--gold))); }
.sw-sage  { background: linear-gradient(135deg, var(--sage),  color-mix(in oklab, var(--sage) 70%, var(--gold))); }
.sw-rose  { background: linear-gradient(135deg, var(--rose),  color-mix(in oklab, var(--rose) 70%, var(--gold))); }
.sw-gold  { background: linear-gradient(135deg, var(--gold),  color-mix(in oklab, var(--gold) 70%, var(--coral))); }

/* ===================================================================
   New marketing sections
   =================================================================== */

/* Screenshot showcase */
.showcase {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  align-items: end;
}
@media (max-width: 980px) { .showcase { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (max-width: 540px) { .showcase { grid-template-columns: 1fr 1fr; gap: 14px; } }

.showcase .shot { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.showcase .cap {
  font-family: var(--serif); font-style: italic;
  color: var(--ink-soft); font-size: .96rem;
  text-align: center;
  max-width: 22ch;
}

/* "What's NOT here" */
.opinion {
  background: var(--surface);
  border-radius: var(--r-card);
  padding: clamp(32px, 5vw, 56px);
  box-shadow: var(--shadow-soft);
  border: 1px solid color-mix(in oklab, var(--ink) 5%, transparent);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(28px, 4vw, 56px);
}
@media (max-width: 760px) { .opinion { grid-template-columns: 1fr; } }
.opinion h2 { margin-top: 12px; }
.opinion .lede { margin-top: 14px; }
.opinion ul {
  margin: 0; padding: 0; list-style: none;
  display: grid; gap: 10px;
}
.opinion li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
  padding: 10px 0;
  border-top: 1px solid color-mix(in oklab, var(--ink) 7%, transparent);
}
.opinion li:first-child { border-top: 0; }
.opinion li .x {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--tint-coral);
  color: var(--coral);
  display: grid; place-items: center;
  margin-top: 1px;
}
.opinion li .x::after { content: ""; width: 9px; height: 2px; background: currentColor; border-radius: 1px; }
.opinion li strong { color: var(--ink); font-weight: 600; }
.opinion li span { color: var(--ink-soft); }

/* FAQ — accordion */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--surface);
  border-radius: var(--r-soft);
  padding: 18px 22px;
  box-shadow: var(--shadow-tight);
  border: 1px solid color-mix(in oklab, var(--ink) 5%, transparent);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 12px; height: 12px;
  border-right: 2px solid var(--coral);
  border-bottom: 2px solid var(--coral);
  transform: rotate(45deg);
  transition: transform .25s ease;
  margin-right: 4px;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: .98rem;
  line-height: 1.65;
}

/* Phone hero stage uses a wrapper that aligns the phone */
.phone-stage {
  position: relative;
  display: flex; justify-content: center; align-items: center;
}
.phone-stage::before {
  content: "";
  position: absolute; inset: -10% -16% -6% -16%;
  background:
    radial-gradient(50% 50% at 70% 20%, var(--tint-gold), transparent 70%),
    radial-gradient(50% 50% at 20% 80%, var(--tint-rose), transparent 70%);
  filter: blur(8px);
  z-index: 0;
}
.phone-stage > * { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
