:root {
  --bg: #ffffff;
  --bg-tint: #f4f7fd;
  --ink: #0b1b3f;
  --text: #4a5878;
  --muted: #7a87a3;
  --blue: #1f6bff;
  --blue-dark: #1556d6;
  --blue-soft: #eaf1ff;
  --line: #e6ebf5;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(11, 27, 63, .04), 0 8px 24px rgba(11, 27, 63, .06);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3 { color: var(--ink); margin: 0; letter-spacing: -.02em; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 800; letter-spacing: -.03em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0; }
.accent { color: var(--blue); }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid rgba(31, 107, 255, .45); outline-offset: 2px; border-radius: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 26px; border-radius: 999px; border: 0;
  font: 600 1rem var(--font); cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(31, 107, 255, .28); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { background: var(--blue-soft); color: var(--blue); }
.btn-ghost:hover { background: #dce8ff; }
.btn-sm { height: 40px; padding: 0 18px; font-size: .92rem; box-shadow: none; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .8);
  backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 1.1rem; letter-spacing: -.01em; }
.logo img { border-radius: 7px; }
.nav nav { display: flex; align-items: center; gap: 28px; }
.nav nav a:not(.btn) { color: var(--text); font-size: .95rem; font-weight: 500; }
.nav nav a:not(.btn):hover { color: var(--ink); }

/* Hero */
.hero {
  padding: 64px 0 96px;
  background:
    radial-gradient(900px 500px at 85% 20%, #e3edff 0%, transparent 60%),
    radial-gradient(700px 400px at 0% 0%, #f1f6ff 0%, transparent 60%);
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--blue-soft); color: var(--blue); font-size: .88rem; font-weight: 600;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(31, 107, 255, .18); }
.hero h1 { margin: 22px 0 20px; }
.hero h1 .accent { display: block; }
.lead { font-size: 1.15rem; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.fine { margin-top: 16px; font-size: .88rem; color: var(--muted); }

.hero-visual { position: relative; height: 600px; }
.phone {
  background: #0d0f14; padding: 9px; border-radius: 46px;
  box-shadow: 0 0 0 1.5px #c9ced8, 0 30px 60px -20px rgba(11, 27, 63, .35), 0 12px 24px -12px rgba(11, 27, 63, .2);
}
.phone img { width: 100%; height: auto; border-radius: 37px; }
.hero-visual .phone { position: absolute; top: 50%; left: 50%; }
.phone-front { width: 290px; transform: translate(-50%, -50%); z-index: 2; }
.phone-back { width: 240px; opacity: .97; }
.phone-left { transform: translate(-112%, -46%) rotate(-6deg); }
.phone-right { transform: translate(12%, -46%) rotate(6deg); }

/* Sections */
.section { padding: 112px 0; }
.section-tint { background: var(--bg-tint); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head p:last-child:not(.eyebrow) { margin-top: 16px; font-size: 1.1rem; }
.eyebrow { color: var(--blue); font-weight: 600; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px !important; }
.grid { display: grid; gap: 20px; }

/* Features */
.features { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(11, 27, 63, .04), 0 16px 36px rgba(11, 27, 63, .09); }
.card h3 { margin: 20px 0 8px; }
.card p { font-size: .98rem; }
.icon {
  width: 48px; height: 48px; border-radius: 14px; background: var(--blue-soft);
  display: grid; place-items: center;
}
.icon svg { width: 24px; height: 24px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-lg { width: 64px; height: 64px; border-radius: 20px; }
.icon-lg svg { width: 30px; height: 30px; }

/* App preview */
.screens {
  display: flex; gap: 40px; justify-content: center;
  padding: 8px 24px 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.screens::-webkit-scrollbar { display: none; }
.screens figure { margin: 0; flex: 0 0 240px; scroll-snap-align: center; text-align: center; }
.screens figure:nth-child(even) { margin-top: 48px; }
.screens figcaption { margin-top: 22px; color: var(--muted); font-size: .95rem; }
.screens figcaption strong { display: block; color: var(--ink); font-size: 1.05rem; }

/* How it works */
.steps { grid-template-columns: repeat(3, 1fr); list-style: none; padding: 0; margin: 0; gap: 32px; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 32px; left: 16%; right: 16%;
  border-top: 2px dashed #c8d7f5; z-index: 0;
}
.step { text-align: center; position: relative; }
.step .icon { margin: 0 auto; position: relative; z-index: 1; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.step-num {
  position: absolute; top: -8px; left: calc(50% + 18px); z-index: 2;
  width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff;
  font-size: .85rem; font-weight: 700; display: grid; place-items: center;
}
.step h3 { margin: 24px 0 8px; }
.step p { max-width: 280px; margin: 0 auto; }

/* Waitlist */
#waitlist { padding-top: 0; }
.waitlist {
  text-align: center; padding: 72px 32px; border-radius: 32px;
  background: linear-gradient(160deg, #1f6bff 0%, #3b82ff 55%, #5b9bff 100%); color: #dfe9ff;
  box-shadow: 0 30px 60px -30px rgba(31, 107, 255, .6);
}
.waitlist h2 { color: #fff; }
.waitlist > p { max-width: 520px; margin: 16px auto 32px; font-size: 1.1rem; }
.waitlist-form { display: flex; gap: 10px; max-width: 480px; margin: 0 auto; }
.waitlist-form input[type="email"] {
  flex: 1; min-width: 0; height: 52px; padding: 0 22px; border-radius: 999px; border: 0;
  font: 400 1rem var(--font); color: var(--ink); background: #fff;
}
.waitlist-form input[type="email"]:focus { outline: 3px solid rgba(255, 255, 255, .55); }
.waitlist-form .btn { background: var(--ink); box-shadow: none; }
.waitlist-form .btn:hover { background: #172a55; }
.waitlist-form .btn:disabled { opacity: .7; cursor: default; }
.form-status { min-height: 1.6em; margin-top: 12px; color: #fff; font-weight: 500; }
.form-consent { max-width: 480px; margin: 14px auto 0; font-size: .85rem; line-height: 1.5; color: rgba(255, 255, 255, .8); }
.form-consent a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0; font-size: .95rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-inner p { color: var(--muted); margin-top: 6px; }
.footer nav { display: flex; gap: 24px; }
.footer nav a { color: var(--text); }
.footer nav a:hover { color: var(--blue); }
.footer .copy { width: 100%; font-size: .85rem; margin: 0; }

/* Reveal animation (only when JS is on and motion is allowed) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Responsive */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { max-width: 640px; margin: 0 auto; }
  .lead { margin: 0 auto; }
  .cta-row { justify-content: center; }
  .hero-visual { height: 560px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .screens { justify-content: flex-start; }
}
@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .nav nav a:not(.btn) { display: none; }
  .hero { padding: 40px 0 64px; }
  .hero-visual { height: 470px; }
  .phone-front { width: 230px; }
  .phone-back { width: 190px; }
  .phone-left { transform: translate(-98%, -46%) rotate(-6deg); }
  .phone-right { transform: translate(-2%, -46%) rotate(6deg); }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 40px; }
  .features, .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .screens { gap: 24px; padding: 8px 16px 24px; }
  .screens figure { flex-basis: 220px; }
  .screens figure:nth-child(even) { margin-top: 0; }
  .waitlist { padding: 56px 20px; border-radius: 26px; }
  .waitlist-form { flex-direction: column; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer nav { flex-direction: column; gap: 8px; }
}

/* Legal pages */
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(2.2rem, 4.5vw, 3rem); margin-bottom: 12px; }
.legal h2 { font-size: 1.45rem; margin: 48px 0 14px; letter-spacing: -.02em; }
.legal h3 { font-size: 1.05rem; margin: 24px 0 8px; }
.legal p, .legal ul { margin: 0 0 14px; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal-back { margin-top: 48px !important; }
