:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --accent: #6C5CE7;
  --accent-ink: #ffffff;
  --maxw: 1040px;
  --readw: 720px;
  --radius: 16px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0b0b0d; --bg-alt: #161618; --ink: #f5f5f7; --muted: #9a9aa0; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* Brand lockup */
.brand { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--ink); font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand-mark { border-radius: 7px; }
.brand-name { letter-spacing: -0.01em; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 1rem;
  padding: 0.7rem clamp(1rem, 4vw, 2rem);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
}
.nav nav { margin-left: auto; display: flex; gap: 1.1rem; flex-wrap: wrap; }
.nav nav a { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 720px) { .nav nav { display: none; } }

/* Buttons */
.btn { display: inline-block; padding: 0.72rem 1.3rem; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn:hover { text-decoration: none; opacity: 0.92; }
.btn-ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn-small { padding: 0.45rem 0.9rem; font-size: 0.9rem; }
.btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }

/* Sections */
.band { padding: clamp(3rem, 7vw, 5.5rem) clamp(1rem, 4vw, 2rem); }
.band > :not(.step):not(.grid):not(.hero-copy):not(.hero-shot) { max-width: var(--readw); margin-inline: auto; }
.band-alt { background: var(--bg-alt); }
.section-title { font-size: clamp(1.6rem, 4vw, 2.3rem); letter-spacing: -0.01em; text-align: center; margin: 0 auto 1.5rem; }
.band-lede { font-size: 1.08rem; color: var(--muted); }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(1.5rem, 5vw, 3.5rem);
  align-items: center; max-width: var(--maxw); margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 4vw, 2rem);
}
.eyebrow { color: var(--muted); margin: 0 0 0.5rem; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.5rem); line-height: 1.07; margin: 0.2rem 0 1rem; letter-spacing: -0.02em; }
h1 em { color: var(--accent); font-style: normal; }
.lede { font-size: clamp(1.05rem, 2.3vw, 1.25rem); color: var(--muted); }
.cta-row { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 1.5rem 0 0.75rem; }
.fineprint { color: var(--muted); font-size: 0.85rem; }
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .cta-row { justify-content: center; }
  .hero-shot { order: -1; }
}

/* Phone frame */
.phone {
  margin: 0 auto; max-width: 300px; border-radius: 38px; overflow: hidden;
  background: #000; padding: 8px;
  box-shadow: 0 30px 60px -20px rgba(40, 30, 90, 0.45), 0 0 0 1px rgba(0,0,0,0.06);
}
.phone img { border-radius: 30px; }
.phone-sm { max-width: 260px; }

/* How it works — alternating steps (grouped centrally, not pushed to the edges) */
.step {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  max-width: 840px; margin: 0 auto;
  padding: clamp(1.5rem, 3.5vw, 2.5rem) 0;
}
.step-text { flex: 1 1 340px; max-width: 420px; }
.step-reverse .step-text { order: 2; }
.step .phone-sm { flex: 0 0 auto; }
.step-num {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 700; margin-bottom: 0.7rem;
}
.step-text h3 { font-size: clamp(1.55rem, 3vw, 1.95rem); margin: 0 0 0.5rem; letter-spacing: -0.01em; }
.step-text p { color: var(--muted); margin: 0; font-size: 1.14rem; line-height: 1.6; }
@media (max-width: 820px) {
  .step { flex-direction: column; text-align: center; }
  .step-reverse .step-text { order: 0; }
  .step-text { max-width: 460px; }
  .step-text p { margin-inline: auto; }
}

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; max-width: var(--maxw); margin-inline: auto; }
.grid article { background: var(--bg); border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); border-radius: var(--radius); padding: 1.25rem; }
.grid h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.grid p { color: var(--muted); margin: 0; }

/* Science / lists */
.checks { list-style: none; padding: 0; display: grid; gap: 0.75rem; }
.checks li { padding-left: 1.6rem; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.note { color: var(--muted); font-size: 0.95rem; border-left: 3px solid var(--accent); padding-left: 1rem; margin-top: 1.25rem; }

.cta-band { text-align: center; }
.cta-band .btn { margin: 0.5rem 0; }

footer { padding: 2.5rem 1rem; text-align: center; color: var(--muted); font-size: 0.9rem; display: grid; gap: 0.5rem; place-items: center; }
footer .brand { color: var(--muted); }
footer a { color: var(--muted); text-decoration: underline; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
