/* steph.life. Colours are the app's palette (apps/mobile/src/theme/palette.json). Headings in
   Newsreader (a calm editorial serif), text in Inter: trustworthy for money, still warm. */
:root {
  --bg: #FBF7F0; --bg-alt: #F5EFE4; --surface: #FFFFFF; --text: #1F1C17; --muted: #6E6659; --border: #E9E1D4;
  --tint: #1E5A47; --tint-deep: #143F32; --on-tint: #FFFFFF; --accent: #E9783A; --accent-soft: #FDEBDC;
  --sage: #DCEBDD; --peach: #FCE3D3; --butter: #FBF0C9; --lilac: #E8E2F4;
  --band: #143F32; --on-band: #F3EEE6; --on-band-muted: #B9CBBF;
  --serif: Newsreader, Georgia, 'Times New Roman', serif;
  --sans: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16130F; --bg-alt: #1C1814; --surface: #221E19; --text: #F3EEE6; --muted: #A69D8F; --border: #353029;
    --tint: #7CC9A9; --tint-deep: #9AD8BD; --on-tint: #0D2A20; --accent: #F5B07A; --accent-soft: #3D2A1C;
    --sage: #25352A; --peach: #3D2A20; --butter: #38321C; --lilac: #2C2738;
    --band: #0F2E24;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--tint); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.015em; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(42px, 6vw, 68px); }
h2 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 40px; max-width: 18em; }
h3 { font-size: 18px; font-weight: 600; margin: 0 0 6px; letter-spacing: -.005em; }
p { margin: 0; }
.muted { color: var(--muted); }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }

/* buttons */
.btn {
  display: inline-block; background: var(--tint); color: var(--on-tint); text-decoration: none;
  font-weight: 600; font-size: 16px; padding: 14px 24px; border-radius: 10px; transition: background .15s, transform .15s;
}
.btn:hover { background: var(--tint-deep); }
.btn-small { padding: 9px 16px; font-size: 15px; }
.btn-light { background: var(--on-band); color: var(--band); }
.btn-light:hover { background: #FFFFFF; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow:hover span { margin-left: 4px; }
.link-arrow span { transition: margin .15s; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav-row { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--text); font-family: var(--sans); font-weight: 700; font-size: 23px; letter-spacing: -.045em; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--tint); }

/* hero */
.hero { padding: 72px 0 88px; background:
  radial-gradient(600px 400px at 85% 20%, var(--accent-soft), transparent 70%),
  radial-gradient(500px 380px at 70% 90%, var(--sage), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--tint);
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; margin-bottom: 24px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px transparent; } }
.lede { font-size: 20px; color: var(--muted); margin: 24px 0 32px; max-width: 32em; }
.cta-row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.ticks { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 15px; color: var(--muted); }
.ticks li::before { content: "✓"; color: var(--tint); font-weight: 700; margin-right: 8px; }

/* app preview */
.preview { justify-self: center; width: 100%; max-width: 360px; }
.phone { background: var(--bg); border: 1px solid var(--border); border-radius: 36px; padding: 28px 18px 22px;
  box-shadow: 0 30px 60px -20px rgba(60, 45, 20, .25), 0 0 0 8px var(--surface); display: grid; gap: 12px; }
.p-hello { font-family: var(--serif); font-size: 24px; font-weight: 500; padding: 0 6px 4px; }
.p-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 14px 16px; display: grid; gap: 10px; }
.p-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.p-row { display: flex; gap: 12px; align-items: center; }
.p-row b, .p-pay b { font-weight: 600; font-size: 15px; display: block; }
.p-row small, .p-muted { color: var(--muted); font-size: 13px; }
.p-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; color: var(--text); flex: none; }
.p-ic.peach { background: var(--peach); } .p-ic.lilac { background: var(--lilac); } .p-ic.sage { background: var(--sage); }
.p-needs { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.p-pay { display: flex; justify-content: space-between; align-items: baseline; }
.p-pay b { font-family: var(--serif); font-size: 26px; font-weight: 600; }
.preview-note { text-align: center; font-size: 12px; color: var(--muted); margin-top: 18px; }

/* sections */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.band { background: var(--band); color: var(--on-band); padding: 80px 0; }
.band .kicker { color: #F5B07A; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.facts p { color: var(--on-band-muted); font-size: 16px; }
.facts > div { border-top: 1px solid rgba(255,255,255,.18); padding-top: 20px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 28px; }
.steps p { color: var(--muted); font-size: 16px; }
.num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--tint); color: var(--on-tint);
  font-family: var(--serif); font-weight: 600; font-size: 18px; margin-bottom: 18px; }

.groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.group { border-radius: 20px; padding: 26px 24px; }
.group.sage { background: var(--sage); } .group.peach { background: var(--peach); }
.group.butter { background: var(--butter); } .group.lilac { background: var(--lilac); }
.group ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; font-size: 15px; }
.group li { padding-left: 22px; position: relative; }
.group li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--tint); }

.promise { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.promise > div { border-top: 2px solid var(--tint); padding-top: 18px; }
.promise p { color: var(--muted); font-size: 16px; }

.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; }
.faq details { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq details:first-child { border-top: 1px solid var(--border); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--tint); font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); margin-top: 12px; max-width: 40em; }

.closing { background: var(--band); color: var(--on-band); padding: 96px 0; text-align: center; }
.closing-inner { display: grid; justify-items: center; gap: 18px; }
.closing-mark { width: 72px; height: 72px; }
.closing h2 { margin: 0; }
.closing p { color: var(--on-band-muted); font-size: 18px; max-width: 30em; margin-bottom: 12px; }

.foot { border-top: 1px solid var(--border); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
.foot-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot-row .brand { font-size: 18px; margin-right: auto; }
.foot a:not(.brand) { color: var(--muted); }

/* privacy and 404 */
.prose { padding: 64px 24px 96px; max-width: 760px; }
.prose h1 { font-size: 48px; margin-bottom: 28px; }
.prose p { margin-bottom: 16px; color: var(--muted); }

@media (max-width: 960px) {
  .hero-grid, .faq-wrap { grid-template-columns: 1fr; gap: 48px; }
  .groups, .promise { grid-template-columns: 1fr 1fr; }
  .facts, .steps { grid-template-columns: 1fr; gap: 20px; }
  .nav-links { display: none; }
  .nav-row { justify-content: space-between; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 40px 0 64px; }
  .section, .closing { padding: 64px 0; }
  .groups, .promise { grid-template-columns: 1fr; }
  .lede { font-size: 18px; }
}
