:root {
  --bg: #f7fafc;
  --surface: #ffffff;
  --surface-2: #f0f5f8;
  --surface-3: #eaf2f7;
  --text: #18222b;
  --muted: #64727c;
  --muted-2: #82909a;
  --line: #dce6ec;
  --blue: #4f7fa3;
  --blue-2: #6d9dbc;
  --blue-dark: #27465b;
  --navy: #14212c;
  --navy-2: #1b2b37;
  --gold: #d3ad55;
  --success: #5f8c69;
  --shadow-sm: 0 10px 30px rgba(24, 34, 43, .06);
  --shadow-md: 0 24px 70px rgba(24, 34, 43, .10);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; }
a { color: inherit; }
::selection { background: #d7e8f2; color: var(--navy); }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.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; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(220,230,236,.85);
  background: rgba(247,250,252,.88);
  backdrop-filter: blur(18px) saturate(1.2);
}
.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--blue-dark);
  font-size: 1.28rem;
  font-weight: 900;
  letter-spacing: -.045em;
  white-space: nowrap;
}
.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: block;
  line-height: 0;
}
.brand-mark img,
.footer-mark img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
}
.nav-right { display: flex; align-items: center; gap: 22px; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a {
  color: var(--muted);
  font-size: .92rem;
  font-weight: 750;
  text-decoration: none;
  transition: color .18s ease;
}
.nav-links a:hover { color: var(--blue-dark); }
.nav-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.72);
  font-size: .76rem;
  font-weight: 800;
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(95,140,105,.12); }

.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 102px;
}
.hero::before {
  content: "";
  position: absolute;
  width: 720px;
  height: 720px;
  right: -210px;
  top: -250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,127,163,.16), rgba(79,127,163,0) 68%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1.04fr) minmax(360px,.96fr);
  gap: 76px;
  align-items: center;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--blue-dark);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.kicker-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
h1 {
  max-width: 760px;
  margin: 20px 0 24px;
  font-size: clamp(3.5rem, 6.7vw, 6.2rem);
  line-height: .96;
  letter-spacing: -.072em;
  font-weight: 900;
}
.hero-copy > p {
  max-width: 650px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 1.13rem;
  line-height: 1.72;
}
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 15px;
  font-size: .94rem;
  font-weight: 850;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.button:hover { transform: translateY(-1px); }
.button.primary { color: #fff; background: var(--blue-dark); border-color: var(--blue-dark); box-shadow: 0 12px 28px rgba(39,70,91,.18); }
.button.primary:hover { background: #203d50; box-shadow: 0 15px 34px rgba(39,70,91,.23); }
.button.secondary { color: var(--blue-dark); background: var(--surface); }
.button.secondary:hover { background: #fdfefe; box-shadow: var(--shadow-sm); }
.hero-microcopy { display: flex; gap: 14px 20px; flex-wrap: wrap; margin-top: 22px; color: var(--muted-2); font-size: .82rem; font-weight: 720; }
.hero-microcopy span::before { content: "✓"; color: var(--success); margin-right: 7px; font-weight: 900; }

.device-stage { position: relative; min-height: 650px; display: grid; place-items: center; }
.device-glow { position: absolute; width: 440px; height: 440px; border-radius: 50%; background: radial-gradient(circle, rgba(79,127,163,.20), rgba(79,127,163,0) 70%); filter: blur(2px); }
.phone {
  position: relative;
  width: min(342px, 86vw);
  padding: 11px;
  border-radius: 48px;
  background: linear-gradient(155deg,#1a2731,#101a22);
  box-shadow: 0 42px 95px rgba(25,45,59,.22), inset 0 0 0 1px rgba(255,255,255,.08);
  transform: rotate(1.5deg);
}
.phone::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid rgba(255,255,255,.08); pointer-events: none; }
.phone-screen {
  min-height: 620px;
  overflow: hidden;
  border-radius: 38px;
  background: linear-gradient(180deg,#fbfcfd 0%,#eef4f7 100%);
  padding: 23px 18px 21px;
}
.phone-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted-2); font-size: .7rem; }
.phone-wordmark { font-weight: 900; color: var(--blue-dark); letter-spacing: -.02em; }
.phone-date { margin-top: 23px; color: var(--muted); font-size: .72rem; font-weight: 700; }
.phone-title { margin-top: 2px; font-size: 1.7rem; font-weight: 900; letter-spacing: -.045em; }
.phone-sub { margin-top: 1px; color: var(--muted); font-size: .78rem; }
.metric-card { margin-top: 15px; padding: 17px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.96); box-shadow: 0 10px 24px rgba(24,34,43,.045); }
.metric-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.metric-label { color: var(--muted-2); font-size: .68rem; font-weight: 850; letter-spacing: .08em; }
.metric-chip { color: var(--blue-dark); background: var(--surface-3); border-radius: 999px; padding: 4px 7px; font-size: .62rem; font-weight: 850; }
.metric-big { margin-top: 4px; font-size: 2.02rem; line-height: 1; font-weight: 900; letter-spacing: -.045em; }
.metric-caption { margin-top: 5px; color: var(--muted); font-size: .72rem; }
.progress { height: 8px; margin-top: 12px; border-radius: 99px; background: #e7edf1; overflow: hidden; }
.progress span { display: block; width: 73%; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--blue),var(--blue-2)); }
.mini-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 10px; }
.mini { min-width: 0; padding: 10px 8px; border-radius: 13px; background: var(--surface-2); }
.mini strong { display: block; font-size: .92rem; }
.mini span { display: block; margin-top: 2px; color: var(--muted-2); font-size: .55rem; font-weight: 800; letter-spacing: .05em; }
.quick-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick-card { margin-top: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.quick-card .number { font-size: 1.35rem; font-weight: 900; letter-spacing: -.04em; }
.quick-card .label { color: var(--muted); font-size: .67rem; }
.floating-coach { position: absolute; right: -38px; bottom: 68px; width: 185px; padding: 13px 14px; border: 1px solid #d7e1e7; border-radius: 17px; background: rgba(255,255,255,.96); box-shadow: var(--shadow-md); }
.floating-coach strong { display: block; font-size: .83rem; }
.floating-coach span { display: block; margin-top: 3px; color: var(--muted); font-size: .68rem; line-height: 1.4; }

.trust-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.trust-grid { display: grid; grid-template-columns: repeat(3,1fr); }
.trust-item { padding: 25px 30px; text-align: center; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-item strong { display: block; color: var(--blue-dark); font-size: .91rem; }
.trust-item span { display: block; margin-top: 3px; color: var(--muted); font-size: .78rem; }

.section { padding: 96px 0; }
.section.white { background: var(--surface); }
.section.soft { background: linear-gradient(180deg,#f2f7fa,#edf4f7); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 42px; }
.eyebrow { color: var(--blue); font-size: .74rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.section h2, .legal h1 { margin: 10px 0 14px; font-size: clamp(2.35rem,4.8vw,4.1rem); line-height: 1.04; letter-spacing: -.058em; }
.section-head p, .section-copy { color: var(--muted); font-size: 1.04rem; }
.cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.card { min-height: 242px; padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-sm); }
.card-icon { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 14px; background: var(--surface-3); color: var(--blue-dark); font-size: .78rem; font-weight: 900; }
.card h3 { margin: 20px 0 8px; font-size: 1.08rem; letter-spacing: -.02em; }
.card p { margin: 0; color: var(--muted); font-size: .9rem; }

.flow { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; counter-reset: flow; }
.flow-step { position: relative; padding: 30px; border-radius: 24px; border: 1px solid var(--line); background: var(--surface); }
.flow-step::before { counter-increment: flow; content: "0" counter(flow); display: inline-flex; padding: 6px 9px; border-radius: 9px; background: var(--surface-3); color: var(--blue-dark); font-size: .7rem; font-weight: 900; letter-spacing: .08em; }
.flow-step h3 { margin: 24px 0 8px; font-size: 1.28rem; }
.flow-step p { margin: 0; color: var(--muted); font-size: .92rem; }

.premium-wrap { padding: 96px 0; background: var(--bg); }
.premium-card { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.04fr .96fr; gap: 52px; align-items: center; padding: 52px; border-radius: 30px; background: linear-gradient(140deg,#15232e,#1d3040); color: #f6f8fa; box-shadow: 0 32px 90px rgba(17,31,42,.18); }
.premium-card::after { content:""; position:absolute; width:420px; height:420px; right:-180px; top:-180px; border-radius:50%; background:radial-gradient(circle,rgba(211,173,85,.14),rgba(211,173,85,0) 68%); }
.premium-card > * { position: relative; z-index: 1; }
.eyebrow.gold { color: #e1bd68; }
.premium-card h2 { margin: 10px 0 14px; font-size: clamp(2.3rem,4vw,3.6rem); line-height: 1.04; letter-spacing: -.055em; }
.premium-card p { margin: 0; max-width: 590px; color: #b7c2ca; }
.premium-list { display: grid; gap: 11px; }
.premium-item { position: relative; padding: 15px 16px 15px 43px; border: 1px solid #304654; border-radius: 16px; background: rgba(255,255,255,.035); font-size: .9rem; font-weight: 760; }
.premium-item::before { content: "✓"; position: absolute; left: 16px; top: 13px; color: #e0ba61; font-weight: 900; }
.premium-note { margin-top: 16px !important; color: #8fa0ab !important; font-size: .78rem !important; }

.principles { display:grid; grid-template-columns:1fr 1fr; gap:20px; align-items:stretch; }
.principle-main { padding: 36px; border-radius: 26px; background: var(--blue-dark); color:#fff; }
.principle-main h3 { margin: 14px 0 12px; font-size: 2rem; line-height:1.08; letter-spacing:-.045em; }
.principle-main p { margin:0; color:#c8d5dd; }
.principle-list { display:grid; gap:12px; }
.principle-row { padding: 20px 22px; border:1px solid var(--line); border-radius:18px; background:#fff; }
.principle-row strong { display:block; font-size:.98rem; }
.principle-row span { display:block; margin-top:4px; color:var(--muted); font-size:.84rem; }

.launch-card { display:flex; align-items:center; justify-content:space-between; gap:32px; padding:34px 38px; border:1px solid var(--line); border-radius:26px; background:#fff; box-shadow:var(--shadow-sm); }
.launch-card h2 { margin:4px 0 8px; font-size:clamp(2rem,4vw,3rem); }
.launch-card p { margin:0; max-width:700px; color:var(--muted); }

.legal-wrap { padding: 72px 0 104px; }
.legal-shell { max-width: 900px; margin: 0 auto; }
.legal-hero { margin-bottom: 24px; padding: 34px 38px; border: 1px solid var(--line); border-radius: 26px; background: linear-gradient(135deg,#fff,#f1f6f9); box-shadow: var(--shadow-sm); }
.legal-hero h1 { margin-bottom: 6px; }
.legal-hero p { margin: 0; color: var(--muted); }
.legal { padding: 42px 44px; border: 1px solid var(--line); border-radius: 26px; background: #fff; box-shadow: var(--shadow-sm); }
.legal h2 { margin: 36px 0 8px; font-size: 1.25rem; letter-spacing: -.02em; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--muted); }
.legal a { color: var(--blue-dark); font-weight: 750; }
.updated { font-size: .84rem; color: var(--muted-2) !important; }
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.support-box { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface-2); }
.support-box h3 { margin: 0 0 6px; }
.support-box p { margin: 0; }
.support-box p + p { margin-top: 8px; }

footer { padding: 42px 0 52px; border-top: 1px solid var(--line); background: #f5f8fa; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 34px; align-items: end; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--blue-dark); font-weight: 900; letter-spacing: -.03em; }
.footer-mark { width: 30px; height: 30px; flex: 0 0 30px; display: block; line-height: 0; }
.footer-copy { max-width: 560px; margin-top: 9px; font-size: .83rem; }
.footer-links { display: flex; justify-content: flex-end; gap: 18px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; font-size: .84rem; font-weight: 720; }
.footer-links a:hover { color: var(--blue-dark); }
.copyright { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .76rem; }
.apple-trademarks { margin: 8px 0 0; max-width: 40rem; color: var(--muted); font-size: .76rem; font-weight: 500; line-height: 1.45; }

:focus-visible { outline: 3px solid rgba(79,127,163,.34); outline-offset: 3px; }

.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; }
.waitlist-form { max-width: 620px; margin-top: 28px; }
.waitlist-row { display:flex; gap:10px; padding:7px; border:1px solid var(--line); border-radius:19px; background:#fff; box-shadow:var(--shadow-sm); }
.waitlist-row input[type="email"] { min-width:0; flex:1; border:0; border-radius:13px; padding:0 14px; color:var(--text); background:#fff; font:inherit; font-size:.96rem; }
.waitlist-row input[type="email"]::placeholder { color:var(--muted-2); }
.waitlist-row input[type="email"]:focus { outline:0; box-shadow:inset 0 0 0 2px rgba(79,127,163,.28); }
.waitlist-row .button { border:0; cursor:pointer; white-space:nowrap; }
.waitlist-row .button:disabled { cursor:wait; opacity:.7; transform:none; }
.waitlist-honeypot { position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;opacity:0!important; }
.waitlist-status { min-height:20px; margin:10px 4px 0!important; font-size:.86rem!important; line-height:1.45!important; }
.waitlist-status[data-state="success"] { color:var(--success)!important; font-weight:750; }
.waitlist-status[data-state="error"] { color:#a64848!important; font-weight:750; }
.waitlist-privacy { margin:5px 4px 0!important; font-size:.72rem!important; color:var(--muted-2)!important; }
.waitlist-privacy a { color:var(--blue-dark); font-weight:750; }
.compact-button { min-height:44px; padding:0 17px; }
.beta-shell { max-width:1000px; }
.beta-guide { padding:34px; }
.beta-steps { display:grid; grid-template-columns:repeat(2,1fr); gap:14px; }
.beta-steps section { padding:24px; border:1px solid var(--line); border-radius:20px; background:var(--surface-2); }
.beta-steps section > span { display:inline-grid; place-items:center; width:36px; height:36px; border-radius:12px; background:var(--blue-dark); color:#fff; font-size:.72rem; font-weight:900; }
.beta-steps h2 { margin:17px 0 7px!important; font-size:1.1rem!important; }
.beta-steps p { margin:0; font-size:.9rem; }
.beta-contact { margin-top:18px; padding:20px 22px; border-radius:18px; background:#eaf2f7; }
.beta-contact p { margin:4px 0 0; }

/* App Store download CTA. Official Apple badge artwork: never recolor, crop,
   stretch or animate. Clear space around the badge >= 1/4 of its height;
   on-screen height stays >= 40px. */
.store-cta { margin-top: 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.app-store-badge { display: inline-block; flex: 0 0 auto; padding: 12px; margin: -12px; line-height: 0; border-radius: 12px; }
.app-store-badge img { display: block; height: 48px; width: auto; max-width: none; }
.app-store-badge:focus-visible { outline: 2px solid var(--blue); outline-offset: 0; }
.store-cta .app-store-badge { margin: 0 0 0 -12px; }
.store-cta-note { margin: 0 !important; color: var(--muted-2); font-size: .86rem; font-weight: 720; }
.launch-card .app-store-badge { margin: 0; }

@media (max-width: 960px) {
  .nav-status { display:none; }
  .hero { padding: 70px 0 82px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-copy { text-align: center; }
  .hero-copy > p { margin-inline: auto; }
  .cta-row, .hero-microcopy { justify-content: center; }
  .store-cta { align-items: center; }
  .store-cta .app-store-badge { margin: 0; }
  .device-stage { min-height: 610px; }
  .floating-coach { right: calc(50% - 220px); }
  .cards { grid-template-columns: repeat(2,1fr); }
  .premium-card { grid-template-columns: 1fr; gap: 32px; }
  .principles { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 28px, 1180px); }
  .waitlist-row { flex-direction:column; padding:8px; }
  .waitlist-row input[type="email"] { min-height:52px; }
  .waitlist-row .button { width:100%; }
  .beta-steps { grid-template-columns:1fr; }
  .beta-guide { padding:20px; }
  .nav { min-height: 68px; gap: 14px; }
  .brand { gap: 8px; font-size: 1.12rem; }
  .brand-mark { width: 37px; height: 37px; flex-basis: 37px; }
  .nav-right { gap: 12px; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: .82rem; }
  .nav-links a:not(:last-child) { display: none; }
  .hero { padding: 56px 0 68px; }
  h1 { margin-top: 17px; font-size: clamp(3rem,16vw,4.35rem); }
  .hero-copy > p { font-size: 1rem; line-height: 1.65; }
  .button { flex: 1 1 155px; min-height: 50px; padding: 0 17px; }
  .hero-microcopy { gap: 8px 14px; font-size: .74rem; }
  .device-stage { min-height: 555px; }
  .phone { width: min(310px,89vw); border-radius: 42px; transform: none; }
  .phone-screen { min-height: 560px; border-radius: 32px; }
  .floating-coach { right: 0; bottom: 24px; width: 170px; }
  .trust-grid { grid-template-columns: 1fr; padding: 7px 0; }
  .trust-item { padding: 16px 20px; }
  .trust-item + .trust-item { border-left: 0; border-top: 1px solid var(--line); }
  .section, .premium-wrap { padding: 70px 0; }
  .section-head { margin-bottom: 30px; }
  .cards, .flow { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .premium-card { padding: 30px 22px; border-radius: 24px; }
  .launch-card { align-items: flex-start; flex-direction: column; padding: 28px 24px; }
  .launch-card .app-store-badge { margin-left: -12px; }
  .legal-wrap { padding: 40px 0 72px; }
  .legal-hero, .legal { padding: 28px 22px; border-radius: 22px; }
  .support-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; align-items: start; }
  .footer-links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
