:root {
  --white: oklch(99% 0.004 285);
  --ink: oklch(22% 0.02 285);
  --muted: oklch(48% 0.02 285);
  --violet: oklch(55% 0.19 285);
  --violet-dark: oklch(42% 0.17 285);
  --pink: oklch(68% 0.17 345);
  --violet-bg: oklch(95% 0.035 285);
  --pink-bg: oklch(95% 0.035 345);
  --border: oklch(90% 0.02 300);
  --gradient: linear-gradient(135deg, oklch(56% 0.19 285), oklch(68% 0.18 345));
  --radius-pill: 999px;
  --radius-card: 18px;
  --radius-section: 32px;
  --shadow-card: 0 16px 40px oklch(22% 0.02 285 / 0.08);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --container: 1180px;
}

* { box-sizing: border-box; }

html { background: var(--white); color-scheme: light; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Helvetica Neue", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, .brand, .btn, .step-label {
  font-family: "Sora", "Helvetica Neue", -apple-system, system-ui, sans-serif;
}

button, input, a { font: inherit; -webkit-tap-highlight-color: transparent; }
button, a { color: inherit; }
button { border: 0; background: none; cursor: pointer; }
a { text-decoration: none; }
img, svg { display: block; max-width: 100%; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.icon-fill { fill: currentColor; stroke: none; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
h1, h2, h3, p { margin-top: 0; }
.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; }

/* ---------- Header ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: oklch(99% 0.004 285 / 0.72);
  border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
}
.topbar-inner {
  width: min(calc(100% - 48px), var(--container));
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar-start {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.brand img { display: block; }
.brand span {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-sm span { font-size: 18px; }

/* ---------- Buttons ---------- */
.btn {
  min-height: 46px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--gradient); box-shadow: 0 10px 26px oklch(55% 0.19 285 / 0.28); color: #fff; }
.btn-primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 14px 32px oklch(55% 0.19 285 / 0.34); }
.btn-white { background: #fff; color: var(--violet-dark); }
.btn-white:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 10px 24px oklch(22% 0.02 285 / 0.18); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 13.5px; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 15px; }

/* ---------- Layout helpers ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; position: relative; }
.section-panel { padding: clamp(48px, 6vw, 72px) 0; }
.section-inner { width: min(calc(100% - 48px), var(--container)); margin: 0 auto; }
.section-inner-narrow { max-width: 660px; }
.section-title { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; letter-spacing: -0.02em; text-align: center; margin-bottom: clamp(28px, 4vw, 44px); }

.panel-violet {
  width: min(calc(100% - 48px), 1280px);
  margin: 0 auto;
  border-radius: var(--radius-section);
  background: var(--violet-bg);
}
.panel-violet .section-inner { width: min(calc(100% - 64px), calc(var(--container) - 32px)); }

/* ---------- Hero ---------- */
.hero { padding: clamp(64px, 10vw, 120px) 0 clamp(48px, 6vw, 72px); position: relative; }
.hero-inner {
  width: min(calc(100% - 48px), var(--container));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}
.hero-copy { flex: 1 1 420px; min-width: 0; }
.hero-copy h1 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; margin-bottom: 20px; color: var(--ink); }
.hero-lead { font-size: 17px; color: var(--muted); max-width: 480px; margin-bottom: 30px; }

/* ---------- Phone mockup / story carousel ---------- */
/* The source images are already full phone mockups (frame + notch + status bar
   baked in), so no extra device chrome is added here — that would double the
   border. The image itself fills the slide; only the progress bar sits outside it. */
.hero-phone { flex: 0 1 300px; display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; max-width: 300px; margin: 0 auto; }
.phone-progress {
  width: 100%;
  max-width: clamp(200px, 20vw, 260px);
  display: flex;
  gap: 6px;
}
.progress-bar { flex: 1; height: 3px; border-radius: 999px; background: var(--border); overflow: hidden; }
.progress-bar::after { content: ""; display: block; width: 0; height: 100%; background: var(--gradient); transition: width 260ms var(--ease); }
.progress-bar.is-done::after, .progress-bar.is-active::after { width: 100%; }

.phone-track {
  width: 100%;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: pointer;
}
.phone-track::-webkit-scrollbar { display: none; }
.phone-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-slide img { width: 100%; height: auto; display: block; }

/* ---------- Steps ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: clamp(16px, 2vw, 24px); }
.step-card {
  background: #fff;
  border-radius: var(--radius-card);
  padding: clamp(22px, 2.4vw, 28px);
  box-shadow: var(--shadow-card);
}
.step-icon {
  width: 50px; height: 50px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-pill); background: var(--violet-bg); color: var(--violet); margin-bottom: 18px;
}
.step-icon svg { width: 22px; height: 22px; stroke-width: 2; }
.step-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--pink); margin-bottom: 8px; }
.step-card h3 { font-size: 18.5px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; color: var(--ink); }
.step-card p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ---------- Benefits ---------- */
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(16px, 2vw, 24px); }
.benefit-card { border-radius: var(--radius-card); padding: clamp(24px, 2.6vw, 32px); display: flex; align-items: center; }
.benefit-card p { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.35; margin: 0; color: var(--ink); }
.benefit-pink { background: var(--pink-bg); }
.benefit-violet { background: var(--violet-bg); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  padding: 4px 22px;
  transition: box-shadow 220ms var(--ease), border-color 220ms var(--ease);
}
.faq-item[open] { box-shadow: var(--shadow-card); border-color: oklch(90% 0.02 300 / 0.6); }
.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 19px 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { flex-shrink: 0; transition: transform 240ms var(--ease); color: var(--muted); }
.faq-item[open] summary svg { transform: rotate(180deg); color: var(--violet); }
.faq-item p { color: var(--muted); padding-bottom: 19px; font-size: 14.5px; margin: 0; }

/* ---------- Final CTA ---------- */
.final-cta {
  border-radius: var(--radius-section);
  background: var(--gradient);
  padding: clamp(48px, 7vw, 80px) clamp(24px, 5vw, 56px);
  text-align: center;
  color: #fff;
}
.final-cta h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; max-width: 640px; margin-inline: auto; }
.final-cta > p { color: oklch(100% 0 0 / 0.88); font-size: 15.5px; margin-bottom: 32px; }
.signup-field { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.signup-field label { font-size: 13px; font-weight: 700; color: #fff; }
.signup-row { display: flex; gap: 10px; flex-wrap: wrap; }
.signup-row input {
  min-height: 52px;
  min-width: 260px;
  padding: 0 18px;
  border: none;
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--ink);
  font-size: 15px;
}
.signup-row input::placeholder { color: oklch(48% 0.02 285 / 0.55); }
.signup-row input:focus { outline: 2px solid #fff; outline-offset: 2px; }
.signup-status { margin-top: 16px; min-height: 20px; font-size: 13.5px; font-weight: 650; color: #fff; }
.signup-status.is-error { color: oklch(92% 0.06 30); }

/* ---------- Footer ---------- */
.footer { padding: 40px 0 16px; }
.footer-inner {
  width: min(calc(100% - 48px), var(--container));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 14px; font-weight: 600; transition: color 200ms var(--ease); }
.footer-links a:hover { color: var(--violet); }
.footer-links svg { width: 16px; height: 16px; }
.footer-copy { width: min(calc(100% - 48px), var(--container)); margin: 20px auto 0; color: var(--muted); font-size: 13px; text-align: center; }

/* ---------- Responsive (fluid, no fixed breakpoints beyond wrap) ---------- */
@media (max-width: 980px) {
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 720px) {
  .panel-violet {
    width: min(calc(100% - 20px), 1280px);
  }

  .panel-violet .section-inner {
    width: min(calc(100% - 28px), calc(var(--container) - 32px));
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .step-card {
    padding: 20px 18px;
  }

  .step-card h3 {
    font-size: 17px;
  }

  .step-card p {
    font-size: 13.5px;
    line-height: 1.5;
  }
}

@media (max-width: 560px) {
  .topbar-inner { width: calc(100% - 32px); gap: 10px; }
  .topbar-start { gap: 10px; }
  .topbar-start .brand span { display: none; }
  .topbar .btn-sm { padding-inline: 14px; }
  .signup-field { align-items: stretch; width: 100%; }
  .signup-row { flex-direction: column; }
  .signup-row input { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .faq-item, .faq-item summary svg, .progress-bar::after { transition: none; }
}
