/* Colours, fonts and radii are the app's own (brand in apps/<app>/src/theme.ts, see build.mjs). */
:root {
  --bg: #F4F2FB;
  --ink: #1D1A33;
  --muted: #5B5775;
  --surface: #FFFFFF;
  --accent: #FF8466;
  --line: color-mix(in srgb, var(--ink) 12%, transparent);
  --radius: 24px;
  --display: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --body: "Figtree", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --shadow: 0 8px 18px color-mix(in srgb, var(--ink) 8%, transparent);
  --wrap: 1120px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
h1, h2, h3, .brand, .faq summary { font-family: var(--display); }
h1, h2 { text-wrap: balance; }
em.d, .d { font-style: normal; color: var(--accent); }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px;
  background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 700; font-size: 16px; border: 0;
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.small { padding: 10px 16px; font-size: 14px; }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn.soon { background: var(--surface); color: var(--ink); cursor: default; }

/* hero */
.hero { padding: 48px 0 24px; text-align: center; overflow: hidden; }
.eyebrow { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 600; margin-bottom: 20px; }
.hero h1 { font-size: clamp(40px, 7vw, 76px); line-height: 1.02; letter-spacing: -0.035em; margin: 0 auto 18px; max-width: 18ch; font-weight: 800; }
.hero .lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 34ch; margin: 0 auto 28px; }
.invite[hidden] { display: none; }
.invite { display: table; margin: 0 auto 20px; padding: 12px 18px; border-radius: 16px; background: var(--surface); font-weight: 600; }
.phones { display: flex; justify-content: center; align-items: flex-end; margin-top: 40px; }
/* Photoreal iPhone renders with their own shadow (scripts/web/devices.mjs): no frame drawn here. */
.phone { width: min(34vw, 340px); flex: none; }
.phones .phone:nth-child(1) { margin-right: -5%; transform: translateY(24px); }
.phones .phone:nth-child(3) { margin-left: -5%; transform: translateY(24px); }
.phones .phone:nth-child(2) { z-index: 1; }

/* sections */
section { padding: 72px 0; }
.kicker { text-align: center; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: 13px; margin: 0 0 10px; }
h2 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.05; letter-spacing: -0.03em; text-align: center; margin: 0 auto 40px; max-width: 22ch; font-weight: 800; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { background: var(--surface); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--bg); font-weight: 700; margin-bottom: 16px; }
.step h3, .feature h3 { font-size: 22px; letter-spacing: -0.015em; margin: 0 0 6px; }
.step p, .feature p { margin: 0; color: var(--muted); }

.features { display: grid; gap: 20px; }
.feature { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 24px; border-radius: calc(var(--radius) * 1.5); padding: 40px 48px 0; overflow: hidden; }
.feature:nth-child(even) .copy { order: 2; }
.feature .copy { padding-bottom: 40px; }
.feature h3 { font-size: clamp(26px, 3vw, 36px); line-height: 1.1; }
.feature p { color: color-mix(in srgb, var(--ink) 72%, transparent); font-size: 18px; }
/* The capture inside Apple's iPhone bezel (scripts/web/devices.mjs), cut off at the card's bottom edge. */
.feature .shot { justify-self: center; width: min(100%, 320px); aspect-ratio: 735 / 1040; overflow: hidden; filter: drop-shadow(0 18px 28px color-mix(in srgb, var(--ink) 18%, transparent)); }
.feature .shot img { width: 100%; }

.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.review { background: var(--surface); border-radius: var(--radius); padding: 24px; margin: 0; box-shadow: var(--shadow); }
.review p { margin: 0 0 12px; font-size: 18px; }
.review cite { color: var(--muted); font-style: normal; font-size: 14px; }

.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 4px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 26px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); margin: 10px 0 0; }

.cta { text-align: center; background: var(--ink); color: var(--bg); border-radius: calc(var(--radius) * 1.5); padding: 64px 24px; }
.cta h2 { color: var(--bg); margin-bottom: 14px; }
.cta p { color: color-mix(in srgb, var(--bg) 75%, transparent); margin: 0 auto 28px; max-width: 40ch; font-size: 19px; }
.cta .btn { background: var(--bg); color: var(--ink); }
.cta .btn.soon { background: color-mix(in srgb, var(--bg) 15%, transparent); color: var(--bg); }
.cta img.mascot { width: 160px; margin: 0 auto 8px; }

footer { padding: 40px 0 56px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* legal + support pages */
.doc { max-width: 760px; margin: 0 auto; padding: 32px 20px 24px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); letter-spacing: -0.03em; line-height: 1.05; margin: 8px 0 6px; }
.doc h2 { text-align: left; font-size: 23px; letter-spacing: -0.01em; margin: 40px 0 8px; max-width: none; }
.doc .muted { color: var(--muted); }
.doc .lead { font-size: 20px; color: var(--muted); }
.doc a { color: var(--ink); }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--surface); border-radius: 18px; overflow: hidden; }
.doc td, .doc th { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.doc tr:last-child td { border-bottom: 0; }
.doc .card { background: var(--surface); border-radius: 22px; padding: 22px 24px; margin: 24px 0; }

@media (max-width: 760px) {
  .hero { padding-top: 28px; }
  .phones { margin-top: 28px; }
  .phone { width: 44vw; }
  .phones .phone:nth-child(1), .phones .phone:nth-child(3) { width: 36vw; }
  section { padding: 52px 0; }
  .steps { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; padding: 32px 24px 0; text-align: center; }
  .feature:nth-child(even) .copy { order: 0; }
  .feature .copy { padding-bottom: 8px; }
  .feature .shot { width: min(78%, 280px); }
  .doc table, .doc tbody, .doc tr, .doc td, .doc th { display: block; }
  .doc tr:first-child { display: none; }
  .doc td { border: 0; padding: 4px 16px; }
  .doc td:first-child { padding-top: 14px; font-weight: 600; }
  .doc tr { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
