/* Landing page. Colours and surfaces copy the app's v5 dark tokens (apps/mobile/src/theme/tokens.ts: pv, authPv). */
:root {
  --bg: #1c1b19;
  --bg2: #262421;
  --deep: #0e0d0c;
  --ink: #f4efe6;
  --mut: #aaa295;
  --acc: #dcbd85;
  --acc-tint: rgba(220, 189, 133, 0.16);
  --gain: #10b981;
  --loss: #ef4444;
  --hair: rgba(244, 239, 230, 0.1);
  --hair2: rgba(244, 239, 230, 0.28);
  --felt: #1f5a3c;
  --gold: linear-gradient(145deg, #e6cd9a, #c6a066);
  --on-gold: #1a1512;
  --raise: linear-gradient(145deg, #33302c, #262421);
  --sh-raise: 6px 6px 14px rgba(0, 0, 0, 0.5), -4px -4px 12px rgba(255, 255, 255, 0.07);
  --sh-inset: inset 4px 4px 10px rgba(0, 0, 0, 0.5), inset -3px -3px 8px rgba(255, 255, 255, 0.06);
  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1120px;
  --gutter: 20px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--acc); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.05; margin: 0; letter-spacing: -0.01em; }
h1 em, h2 em { font-style: italic; color: var(--acc); }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.eyebrow {
  font: 600 12px/1 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--acc);
  margin-bottom: 18px;
}
.lede { color: var(--mut); font-size: 18px; max-width: 34ch; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--gutter);
  background: rgba(14, 13, 12, 0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hair);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 24px/1 var(--serif); }
.brand-chip { width: 28px; height: 28px; }
.nav nav { display: none; gap: 28px; }
.nav nav a { color: var(--mut); text-decoration: none; font-size: 14px; transition: color 0.2s ease; }
.nav nav a:hover { color: var(--ink); }

/* Hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--deep);
  padding: 56px var(--gutter) 0;
  display: grid; gap: 48px;
}
.hero-glow {
  position: absolute; inset: -20% -30% auto; height: 120%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 45% at 50% 70%, rgba(31, 90, 60, 0.55), transparent 70%),
    radial-gradient(40% 30% at 70% 20%, rgba(220, 189, 133, 0.12), transparent 70%);
}
.hero-glow--low { inset: auto -30% -40%; height: 110%; }
.hero-copy { max-width: 680px; }
.hero h1 { font-size: clamp(48px, 13vw, 96px); margin-bottom: 22px; }

/* Coming soon: an inset field like the app's auth fields (authPv.field), with a live gold dot. Not a button. */
.soon { margin-top: 30px; }
.soon-badge {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 0 22px;
  border-radius: 999px;
  background: #121110;
  box-shadow: inset 5px 5px 12px rgba(0, 0, 0, 0.7), inset -4px -4px 10px rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hair);
  color: var(--ink); font: 500 16px/1.2 var(--sans);
}
.soon-dot {
  flex: none; width: 10px; height: 10px; border-radius: 50%;
  background: var(--acc); box-shadow: 0 0 0 0 rgba(220, 189, 133, 0.55);
  animation: soon-pulse 2.4s ease-out infinite;
}
@keyframes soon-pulse {
  0% { box-shadow: 0 0 0 0 rgba(220, 189, 133, 0.55); }
  70%, 100% { box-shadow: 0 0 0 10px rgba(220, 189, 133, 0); }
}
.soon-note { margin-top: 14px; font-size: 14px; color: #8d8578; }
.soon--center { text-align: center; }

/* Nav tag: states the launch, not a control. */
.tag {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px;
  border: 1px solid rgba(220, 189, 133, 0.45); border-radius: 999px;
  color: var(--acc); font: 600 12px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .soon-dot { animation: none; }
}

/* Phones: device frames around the v5 screen exports (docs/design/screens, 393 x 852). */
.phone {
  margin: 0; width: 100%; max-width: 300px;
  aspect-ratio: 393 / 852;
  border-radius: 46px; padding: 9px;
  background: linear-gradient(145deg, #2c2a27, #0b0b0a);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 80px rgba(0, 0, 0, 0.55), 0 10px 24px rgba(0, 0, 0, 0.4);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 38px; }

.hero-phones { position: relative; height: 470px; margin: 0 auto; width: 100%; max-width: 560px; }
.hero-phones .phone { position: absolute; left: 50%; top: 0; width: 232px; }
.phone--front { transform: translateX(-50%); z-index: 2; }
.phone--left { transform: translateX(-118%) translateY(48px) rotate(-7deg); opacity: 0.8; }
.phone--right { transform: translateX(18%) translateY(48px) rotate(7deg); opacity: 0.8; }

/* Napkin line */
.napkin { max-width: 760px; margin: 0 auto; padding: 96px var(--gutter); text-align: center; }
.napkin-line { font: italic 400 clamp(26px, 5vw, 38px)/1.25 var(--serif); color: var(--ink); }
.napkin-answer { margin-top: 22px; color: var(--mut); font-size: 18px; }

/* Sections */
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2, .feature h2, .final h2 { font-size: clamp(38px, 7vw, 60px); }
.how, .trust, .faq { max-width: var(--wrap); margin: 0 auto; padding: 72px var(--gutter); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.steps li, .card {
  padding: 28px 26px; border-radius: 26px;
  background: var(--raise); box-shadow: var(--sh-raise);
}
.step-num { font: 500 italic 40px/1 var(--serif); color: var(--acc); }
.steps h3, .card h3 { font-size: 30px; margin: 14px 0 10px; }
.steps p, .card p { color: var(--mut); }

.feature {
  max-width: var(--wrap); margin: 0 auto; padding: 72px var(--gutter);
  display: grid; gap: 44px; justify-items: center; align-items: center;
}
.feature-copy { max-width: 460px; }
.feature-copy p:not(.eyebrow) { margin-top: 18px; color: var(--mut); font-size: 18px; }
.feature .phone { max-width: 280px; }

.trust-grid { display: grid; gap: 18px; }
.card svg { width: 30px; height: 30px; fill: none; stroke: var(--acc); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.faq-list { max-width: 720px; margin: 0 auto; border-top: 1px solid var(--hair); }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 64px; padding: 14px 0;
  font: 500 23px/1.2 var(--serif);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 300 26px/1 var(--sans); color: var(--acc); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--mut); max-width: 60ch; }

.final {
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: 40px; padding: 110px var(--gutter) 120px;
  text-align: center; background: var(--deep);
}
.final .lede { margin: 16px auto 0; }

.foot {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 26px var(--gutter); border-top: 1px solid var(--hair);
  color: #8d8578; font-size: 14px; background: var(--deep);
}
.foot a { color: var(--mut); }

/* Reveal on scroll (main.js adds .is-in). */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
[data-reveal].is-in { opacity: 1; transform: none; }

@media (min-width: 720px) {
  :root { --gutter: 40px; }
  .nav nav { display: flex; }
  .steps, .trust-grid { grid-template-columns: repeat(3, 1fr); }
  .feature { grid-template-columns: 1fr 1fr; gap: 64px; }
  .feature--flip .feature-copy { order: 2; }
  .hero-phones { height: 560px; }
  .hero-phones .phone { width: 260px; }
}

@media (min-width: 1040px) {
  .hero {
    grid-template-columns: 1.25fr 1fr; align-items: center;
    padding: 80px max(var(--gutter), calc((100vw - var(--wrap)) / 2)) 60px;
    min-height: min(820px, 100vh);
  }
  .hero h1 { font-size: clamp(64px, 5.6vw, 84px); }
  .hero-phones { height: 620px; }
  .hero-phones .phone { width: 270px; }
}

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

/* Privacy page */
.legal { max-width: 680px; margin: 0 auto; padding: 72px var(--gutter) 96px; }
.legal h1 { font-size: clamp(42px, 8vw, 64px); }
.legal h2 { font-size: 28px; margin: 40px 0 10px; }
.legal p { color: var(--mut); }
.legal code { font-size: 0.9em; color: var(--ink); }
.legal-date { margin-top: 10px; font-size: 14px; }
.legal-note { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--hair); font-size: 15px; }
