:root {
  --bg: #0b0f19; --surface: #131824; --raised: #1c2436; --border: #334060;
  --text: #f5f5f7; --muted: #94a3b8; --faint: #64748b;
  --amber: #f59e0b; --mint: #34d399; --cyan: #38bdf8;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 500 17px/1.6 "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--text); text-decoration-color: var(--border); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--amber); }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }

/* Header */
header.top { position: sticky; top: 0; z-index: 10; background: rgb(11 15 25 / 82%); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgb(255 255 255 / 6%); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -0.4px; }
.brand img { width: 26px; height: 26px; }
nav a { color: var(--muted); text-decoration: none; font-size: 15px; margin-left: 22px; }
nav a:hover { color: var(--text); }

/* Hero: real product on the right (Partiful / Jeton / Bevel pattern) */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding: 72px 0 96px; }
h1 { font-size: clamp(42px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -2.2px; font-weight: 800; margin: 0 0 22px; }
.lede { color: var(--muted); font-size: clamp(18px, 2vw, 21px); max-width: 34ch; margin: 0 0 32px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 22px; border-radius: 14px; font-weight: 700; text-decoration: none; }
.btn.primary { background: var(--amber); color: #0b0f19; }
.soon { color: var(--faint); font-size: 14px; }

/* Phone frame around real screenshots */
.phone { position: relative; width: min(100%, 330px); margin: 0 auto; border-radius: 46px; padding: 10px; background: #1a2030;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 7%), 0 40px 80px -30px rgb(0 0 0 / 70%); }
.phone img { display: block; width: 100%; height: auto; border-radius: 37px; }
.glow { position: relative; }
.glow::before { content: ""; position: absolute; inset: 10% -10% -5%; background: radial-gradient(closest-side, rgb(245 158 11 / 16%), transparent); filter: blur(10px); z-index: -1; }

/* Feature rows: alternating text and screen */
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 72px 0; border-top: 1px solid rgb(255 255 255 / 6%); }
.row.flip .copy { order: 2; }
.row h2 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -1.2px; line-height: 1.08; margin: 0 0 16px; }
.row p { color: var(--muted); font-size: 18px; margin: 0 0 14px; max-width: 40ch; }
.facts { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.facts li { color: #cbd5e1; font-size: 16px; padding-left: 22px; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }

/* Readiness instrument (echoes the app's Today card) */
.instrument { background: var(--surface); border-radius: 24px; padding: 26px; display: grid; gap: 22px; max-width: 420px; margin: 0 auto; width: 100%; }
.instrument .verdict { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); display: inline-block; }
.metric small { display: block; color: var(--muted); font-size: 13px; }
.metric b { display: block; font-size: 22px; margin: 2px 0 10px; }
.track { position: relative; height: 6px; border-radius: 3px; background: var(--raised); }
.track i { position: absolute; left: 35%; width: 30%; top: 0; bottom: 0; border-radius: 3px; background: var(--border); }
.track em { position: absolute; top: -3px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--text); border: 2px solid var(--surface); }
.metric .norm { color: var(--faint); font-size: 12px; margin-top: 8px; }

/* Support */
.support { padding: 72px 0 96px; border-top: 1px solid rgb(255 255 255 / 6%); }
.support h2 { font-size: 32px; letter-spacing: -0.8px; margin: 0 0 12px; }
.support p { color: var(--muted); max-width: 56ch; margin: 0; }
h2 { letter-spacing: -1px; }

/* Footer */
footer { border-top: 1px solid rgb(255 255 255 / 6%); padding: 32px 0 48px; color: var(--faint); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
footer a { color: var(--muted); text-decoration: none; margin-right: 18px; }

/* Legal pages */
.legal { padding: 56px 0 80px; max-width: 760px; }
.legal h1 { font-size: clamp(34px, 5vw, 48px); max-width: none; margin-bottom: 6px; }
.legal .meta { color: var(--faint); font-size: 14px; margin: 0 0 36px; }
.legal h2 { font-size: 22px; letter-spacing: -0.3px; margin: 40px 0 10px; }
.legal p, .legal li { color: #cbd5e1; font-size: 16px; }
.legal ul { padding-left: 20px; }
.legal .note { background: var(--surface); border-radius: 14px; padding: 16px 18px; color: var(--muted); font-size: 15px; }

@media (max-width: 820px) {
  .hero, .row { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 48px 0 64px; }
  .row { padding: 56px 0; }
  .row.flip .copy { order: 0; }
  .phone { width: min(100%, 290px); }
  nav a:not(.keep) { display: none; }
}
