:root {
  --brand: #1657ff;
  --brand-dark: #0e3fc4;
  --brand-tint: #e8efff;
  --brand-surface: #f3f6ff;
  --ink: #1b2333;
  --muted: #5d667a;
  --line: #e4e8f1;
  --bg: #ffffff;
  --alert: #e5412d;
  --alert-tint: #fdeae6;
  --green: #1f9d63;
  --radius: 18px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--brand);
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(36px, 5.4vw, 60px);
  font-weight: 800;
}

h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
}

h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 24px rgba(22, 87, 255, 0.28);
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 14px;
  border-radius: 10px;
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a:not(.btn) {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.nav-links a:not(.btn):hover {
  color: var(--brand);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--ink);
}

/* ---- Hero ---- */
.hero {
  background: radial-gradient(1100px 500px at 85% -10%, var(--brand-tint), transparent 60%), linear-gradient(180deg, #fff, var(--brand-surface));
  padding: 72px 0 88px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  background: var(--brand-tint);
  color: var(--brand);
  font-weight: 700;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  color: var(--brand);
}

.lead {
  font-size: 20px;
  color: var(--muted);
  margin-top: 22px;
  max-width: 560px;
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.hero-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}

/* ---- Phone mock-ups (pure CSS) ---- */
.phones {
  position: relative;
  height: 520px;
}

.phone {
  position: absolute;
  width: 250px;
  height: 500px;
  border-radius: 38px;
  background: #0d1426;
  padding: 10px;
  box-shadow: 0 30px 60px rgba(13, 20, 38, 0.28);
}

.phone-a {
  left: 6%;
  top: 20px;
  transform: rotate(-5deg);
}

.phone-b {
  right: 2%;
  top: 0;
  transform: rotate(4deg);
}

.screen {
  width: 100%;
  height: 100%;
  border-radius: 29px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 44px 20px 26px;
  color: #fff;
}

.screen-calm {
  background: linear-gradient(180deg, #2c6bff, #1657ff 60%, #0e3fc4);
}

.screen-alert {
  background: linear-gradient(180deg, #f0543f, #d63a27 60%, #b02a1a);
}

.screen .clock {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.screen .kicker {
  margin-top: 26px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.8;
}

.screen .title {
  margin-top: 6px;
  font-size: 22px;
  font-weight: 800;
}

.screen .sub {
  margin-top: 8px;
  font-size: 13px;
  opacity: 0.88;
  line-height: 1.45;
}

.screen .chip {
  margin-top: auto;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
  width: 100%;
}

.screen .chip small {
  display: block;
  font-weight: 500;
  opacity: 0.85;
  margin-top: 2px;
}

/* ---- Sections ---- */
section {
  padding: 88px 0;
}

.section-head {
  max-width: 680px;
  margin-bottom: 48px;
}

.section-head p {
  margin-top: 14px;
  font-size: 18px;
  color: var(--muted);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.alt {
  background: var(--brand-surface);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  margin-bottom: 18px;
}

.step.is-alert::before {
  background: var(--alert);
}

.step p {
  margin-top: 8px;
  color: var(--muted);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  background: #fff;
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature:hover {
  box-shadow: 0 14px 36px rgba(22, 40, 90, 0.1);
  transform: translateY(-3px);
}

.feature .icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--brand-tint);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.feature p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15.5px;
}

/* Privacy */
.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.panel {
  border-radius: var(--radius);
  padding: 30px;
  border: 1px solid var(--line);
  background: #fff;
}

.panel h3 {
  margin-bottom: 14px;
}

.panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.panel li {
  padding-left: 30px;
  position: relative;
  color: var(--muted);
}

.panel li::before {
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}

.panel.never {
  background: #f0faf5;
  border-color: #cfeadb;
}

.panel.never li::before {
  content: "✕";
  background: #d6f1e3;
  color: var(--green);
}

.panel.keep li::before {
  content: "•";
  background: var(--brand-tint);
  color: var(--brand);
  font-size: 18px;
}

/* Pricing */
.billing-toggle {
  display: inline-flex;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  margin-top: 24px;
}

.billing-toggle button {
  border: none;
  background: none;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--muted);
}

.billing-toggle button.on {
  background: var(--brand);
  color: #fff;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.plan {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.plan.featured {
  border: 2px solid var(--brand);
  box-shadow: 0 18px 44px rgba(22, 87, 255, 0.16);
  position: relative;
}

.plan .tag {
  position: absolute;
  top: -13px;
  left: 28px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
}

.plan .price {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 16px 0 2px;
}

.plan .price small {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
}

.plan .per {
  color: var(--muted);
  font-size: 14px;
  min-height: 22px;
}

.plan ul {
  list-style: none;
  padding: 0;
  margin: 22px 0 26px;
  display: grid;
  gap: 10px;
  flex: 1;
}

.plan li {
  padding-left: 26px;
  position: relative;
  font-size: 15.5px;
}

.plan li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 800;
}

.fineprint {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin-top: 22px;
}

/* FAQ */
.faq {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px 22px;
}

summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 17px;
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  color: var(--brand);
  font-size: 22px;
  line-height: 1;
}

details[open] summary::after {
  content: "–";
}

details p {
  color: var(--muted);
  padding-bottom: 18px;
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  border-radius: 28px;
  padding: 56px 40px;
  text-align: center;
}

.cta-band p {
  margin: 14px auto 28px;
  max-width: 560px;
  opacity: 0.9;
  font-size: 18px;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--brand);
  box-shadow: none;
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 36px;
  background: #fff;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.foot-grid h4 {
  margin: 0 0 12px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.foot-grid a {
  display: block;
  color: var(--ink);
  text-decoration: none;
  padding: 4px 0;
  font-size: 15px;
}

.foot-grid a:hover {
  color: var(--brand);
}

.foot-grid p {
  color: var(--muted);
  font-size: 15px;
  margin-top: 12px;
  max-width: 320px;
}

.legal-line {
  border-top: 1px solid var(--line);
  margin-top: 32px;
  padding-top: 20px;
  color: var(--muted);
  font-size: 13px;
}

/* ---- Document pages (privacy, terms, contact) ---- */
.page-hero {
  background: linear-gradient(180deg, #fff, var(--brand-surface));
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line);
}

.page-hero p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 18px;
}

.doc {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 24px 88px;
}

.doc h2 {
  font-size: 24px;
  margin: 40px 0 12px;
}

.doc p,
.doc li {
  color: #38405a;
  margin-bottom: 12px;
}

.doc ul {
  padding-left: 22px;
}

.doc .updated {
  color: var(--muted);
  font-size: 14px;
}

.callout {
  background: var(--brand-surface);
  border: 1px solid var(--brand-tint);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 24px 0;
}

.callout.warn {
  background: #fff8e8;
  border-color: #f6e2b0;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 8px;
}

.notfound {
  text-align: center;
  padding: 120px 24px;
}

.notfound h1 {
  color: var(--brand);
}

/* ---- Small screens ---- */
@media (max-width: 960px) {
  .hero-grid,
  .privacy-grid,
  .steps,
  .features,
  .plans,
  .contact-cards {
    grid-template-columns: 1fr;
  }

  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .phones {
    height: 480px;
    max-width: 440px;
    margin: 0 auto;
    width: 100%;
  }

  section {
    padding: 64px 0;
  }

  .hero {
    padding: 48px 0 56px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 16px 24px 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .nav-links.open {
    display: flex;
  }
}

@media (max-width: 520px) {
  .phone {
    width: 200px;
    height: 410px;
  }

  .phones {
    height: 420px;
  }

  .screen .clock {
    font-size: 40px;
  }

  .cta-band {
    padding: 40px 22px;
  }

  .foot-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================================================================
   Motion
   Everything below is decoration: it's all switched off for visitors who
   ask their system for reduced motion (see the last block).
   ===================================================================== */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes phonesIn {
  from { opacity: 0; transform: translateX(60px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

@keyframes floatA {
  0%, 100% { transform: rotate(-5deg) translateY(0); }
  50% { transform: rotate(-5deg) translateY(-12px); }
}

@keyframes floatB {
  0%, 100% { transform: rotate(4deg) translateY(0); }
  50% { transform: rotate(4deg) translateY(10px); }
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.12); }
}

/* One 12-second story, looping: the reminder rings, the grace period runs
   down on the left phone, then the right phone turns red. */
@keyframes graceDown {
  0% { transform: scaleX(1); }
  66% { transform: scaleX(0); }
  96% { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

@keyframes alertOn {
  0%, 65% { opacity: 0; }
  70%, 94% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes ringOut {
  0%, 66% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
  68% { opacity: 0.55; }
  86% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-3px); }
  40%, 80% { transform: translateX(3px); }
}

@keyframes pop {
  0% { transform: scale(0.4); }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

@keyframes sheen {
  to { transform: translateX(220%) skewX(-18deg); }
}

@keyframes swap {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ---- Hero: staggered entrance ---- */
.hero .eyebrow,
.hero h1,
.hero .lead,
.hero .cta-row,
.hero .hero-note {
  animation: riseIn 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero .eyebrow { animation-delay: 0.05s; }
.hero h1 { animation-delay: 0.15s; }
.hero .lead { animation-delay: 0.3s; }
.hero .cta-row { animation-delay: 0.45s; }
.hero .hero-note { animation-delay: 0.6s; }

.phones {
  animation: phonesIn 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s both;
}

.phone-a { animation: floatA 7s ease-in-out infinite; }
.phone-b { animation: floatB 8s ease-in-out infinite; }

/* Soft drifting colour behind the hero. */
.hero {
  position: relative;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}

.hero::before {
  width: 360px;
  height: 360px;
  background: rgba(22, 87, 255, 0.16);
  top: -80px;
  right: 8%;
  animation: drift 16s ease-in-out infinite;
}

.hero::after {
  width: 300px;
  height: 300px;
  background: rgba(229, 65, 45, 0.1);
  bottom: -90px;
  left: 4%;
  animation: drift 20s ease-in-out infinite reverse;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

/* The two-layer right phone, and the story animations. */
.phone-b .screen + .screen {
  position: absolute;
  inset: 10px;
  width: auto;
  height: auto;
}

.phone-b {
  position: absolute;
}

.alert-layer {
  opacity: 0;
  animation: alertOn 12s ease-in-out infinite;
}

.alert-layer .title {
  animation: shake 0.5s ease-in-out infinite;
  animation-delay: 8.2s;
  animation-iteration-count: 1;
}

.grace {
  width: 100%;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 700;
  opacity: 0.95;
}

.grace .bar {
  margin-top: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
}

.grace .bar i {
  display: block;
  height: 100%;
  background: #fff;
  border-radius: 999px;
  transform-origin: left center;
  animation: graceDown 12s linear infinite;
}

.pulse-ring {
  position: absolute;
  left: 72%;
  top: 46%;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  border: 3px solid var(--alert);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.5);
  animation: ringOut 12s ease-out infinite;
  pointer-events: none;
}

.pulse-ring.r2 {
  animation-delay: 0.45s;
}

/* ---- Buttons ---- */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: rgba(255, 255, 255, 0.35);
  transform: skewX(-18deg);
  opacity: 0;
}

.btn-primary:hover::after {
  opacity: 1;
  animation: sheen 0.7s ease;
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

/* ---- Header gains a shadow once you scroll ---- */
.site-header {
  transition: box-shadow 0.25s, background 0.25s;
}

.site-header.scrolled {
  box-shadow: 0 6px 24px rgba(20, 30, 60, 0.08);
}

/* ---- Scroll reveal (only when JavaScript is on, so nothing is ever hidden without it).
   An animation, not a transition, so the hover effects on the same cards keep working. ---- */
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: none; }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: none; }
}

.js .reveal {
  opacity: 0;
}

.js .reveal.in {
  opacity: 1;
  animation: riseIn 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
  animation-delay: var(--d, 0s);
}

.js .reveal.from-left.in {
  animation-name: slideInLeft;
}

.js .reveal.from-right.in {
  animation-name: slideInRight;
}

/* Step numbers pop in as each step arrives. */
.js .step.reveal::before {
  transform: scale(0);
}

.js .step.reveal.in::before {
  animation: pop 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) calc(var(--d, 0s) + 0.25s) both;
}

/* A billing switch swaps only the price text. */
.plan .price.swap,
.plan .per.swap {
  animation: swap 0.35s ease both;
}

/* ---- Cards ---- */
.feature .icon {
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), background 0.3s, color 0.3s;
}

.feature:hover .icon {
  transform: scale(1.12) rotate(-6deg);
  background: var(--brand);
  color: #fff;
}

.step {
  transition: box-shadow 0.25s, transform 0.25s;
}

.step:hover {
  box-shadow: 0 14px 36px rgba(22, 40, 90, 0.1);
}

.plan {
  transition: box-shadow 0.25s, transform 0.25s;
}

.plan:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(22, 40, 90, 0.12);
}

.plan.featured:hover {
  box-shadow: 0 24px 56px rgba(22, 87, 255, 0.24);
}

/* ---- FAQ: the + turns into a x ---- */
details[open] summary::after {
  content: "+";
}

summary::after {
  transition: transform 0.25s;
}

details[open] summary::after {
  transform: rotate(45deg);
}

/* ---- Call to action: a slowly shifting gradient ---- */
.cta-band {
  background: linear-gradient(120deg, var(--brand), var(--brand-dark), #2a6bff, var(--brand-dark));
  background-size: 300% 300%;
  animation: gradientShift 14s ease-in-out infinite;
}

/* ---- For anyone who asks their device for less motion ---- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
  }

  .js .step.reveal::before {
    transform: none;
  }

  /* Show the story's end state: the red alert. */
  .alert-layer {
    opacity: 1;
  }

  .pulse-ring {
    display: none;
  }

  .phone-a {
    transform: rotate(-5deg);
  }

  .phone-b {
    transform: rotate(4deg);
  }
}

/* =====================================================================
   BIG MOTION
   Everything that moves is keyed to the `fx` class on <html>, which the
   script adds only when the visitor hasn't asked for reduced motion. Without
   it, every section below is a normal, static, readable layout.
   ===================================================================== */

/* ---- Top progress bar ---- */
.scroll-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 100;
  pointer-events: none;
}

.scroll-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--brand), #6a8dff, var(--alert));
  transform-origin: left center;
  transform: scaleX(var(--scroll, 0));
}

/* ---- Words that slide up out of a mask ---- */
.fx [data-split] .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}

.fx [data-split] .wi {
  display: inline-block;
  transform: translateY(115%) rotate(4deg);
  transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 0.06s + var(--base, 0s));
}

.fx [data-split].split-go .wi,
.fx .reveal.in [data-split] .wi {
  transform: none;
}

/* ---- Hero, bigger ---- */
.hero h1 {
  font-size: clamp(44px, 7.2vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.hero {
  padding: 56px 0 96px;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: center;
}

.hero .wrap {
  width: 100%;
}

.hero-grid {
  grid-template-columns: 1.15fr 0.85fr;
}

.phones {
  height: 640px;
  perspective: 1500px;
}

.phone {
  width: 280px;
  height: 560px;
  border-radius: 44px;
}

.screen {
  border-radius: 34px;
}

.tilt {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.fx .tilt {
  transform: rotateY(calc(var(--mx, 0) * 16deg)) rotateX(calc(var(--my, 0) * -12deg));
  transition: transform 0.25s ease-out;
}

.fx .phone-a {
  transform: rotate(-5deg) translateZ(40px);
}

.fx .phone-b {
  transform: rotate(4deg) translateZ(-20px);
}

/* The whole hero reddens when the alert fires (same 12s story as the phones). */
.hero-flood {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 78% 50%, rgba(229, 65, 45, 0.55), rgba(229, 65, 45, 0.2) 42%, transparent 72%);
}

.fx .hero-flood {
  animation: alertOn 12s ease-in-out infinite;
}

.hero-glow {
  position: absolute;
  z-index: 0;
  width: 520px;
  height: 520px;
  left: 0;
  top: 0;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(22, 87, 255, 0.2), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s;
  transform: translate(calc(var(--gx, 50vw) - 260px), calc(var(--gy, 30vh) - 260px));
}

.fx .hero-glow {
  opacity: 1;
}

/* ---- Word strip: huge outlined type that slides with the scroll ---- */
.marquee {
  overflow: hidden;
  background: #fff;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.marquee-row {
  white-space: nowrap;
  transform: translateX(calc(var(--mq, 0) * -1px));
}

.marquee-row.alt-row {
  transform: translateX(calc(-30% + var(--mq, 0) * 1px));
}

.marquee-track {
  display: inline-flex;
  gap: 48px;
  padding-right: 48px;
  font-size: clamp(54px, 10vw, 140px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--brand);
}

.marquee-track span {
  -webkit-text-stroke: 2px var(--brand);
  color: transparent;
}

.marquee-track span:nth-child(3n + 2) {
  color: var(--brand);
  -webkit-text-stroke: 0;
}

.alt-row .marquee-track {
  font-size: clamp(34px, 6vw, 84px);
  color: var(--ink);
}

.alt-row .marquee-track span {
  -webkit-text-stroke: 1.5px var(--ink);
  opacity: 0.85;
}

.alt-row .marquee-track span:nth-child(3n + 2) {
  color: var(--ink);
}

.fx .marquee-track {
  animation: marqueeDrift 40s linear infinite;
}

@keyframes marqueeDrift {
  to { transform: translateX(-25%); }
}

/* ---- The pinned scroll story ----
   Without `fx` it is a plain stacked layout. */
.story {
  position: relative;
  background: #0b1226;
  color: #fff;
  padding: 80px 0;
}

.story-pin {
  position: relative;
}

.story-bg,
.story-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.story-bg {
  background: #0b1226;
  transition: background 0.9s;
}

.story-glow {
  background: radial-gradient(circle at 75% 50%, rgba(22, 87, 255, 0.45), transparent 55%);
  transition: background 0.9s;
}

.story[data-scene="2"] .story-bg,
.story[data-scene="3"] .story-bg {
  background: #2a0a07;
}

.story[data-scene="2"] .story-glow,
.story[data-scene="3"] .story-glow {
  background: radial-gradient(circle at 72% 50%, rgba(229, 65, 45, 0.75), rgba(229, 65, 45, 0.15) 50%, transparent 72%);
}

.story-grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 40px;
  align-items: center;
}

.story-text {
  position: relative;
}

.story-step {
  margin-bottom: 40px;
}

.story-step .num {
  display: block;
  font-size: clamp(64px, 9vw, 120px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.35);
  margin-bottom: 12px;
}

.story-step h2 {
  font-size: clamp(30px, 4.2vw, 54px);
  color: #fff;
}

.story-step p {
  margin-top: 16px;
  font-size: 19px;
  color: rgba(255, 255, 255, 0.72);
  max-width: 480px;
}

.story-dots,
.story-progress {
  display: none;
}

/* Visual: two big phones. */
.story-visual {
  position: relative;
  height: 640px;
  perspective: 1500px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.sp {
  width: 280px;
  height: 560px;
  flex: none;
  position: relative;
}

.sp-in {
  width: 100%;
  height: 100%;
  border-radius: 44px;
  background: #060b18;
  padding: 10px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45);
  transform-style: preserve-3d;
}

.sp-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: linear-gradient(180deg, #2c6bff, #1657ff 60%, #0e3fc4);
  color: #fff;
  text-align: center;
}

.sp-red {
  background: linear-gradient(180deg, #f0543f, #d63a27 60%, #b02a1a);
}

.pa,
.pb {
  position: absolute;
  inset: 0;
  padding: 46px 22px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sp .clock {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.sp .kicker {
  margin-top: 22px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.8;
}

.sp .title {
  margin-top: 6px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
}

.sp .title.small {
  font-size: 19px;
}

.sp .sub {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.45;
  opacity: 0.9;
}

.sp .chip {
  margin-top: auto;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  width: 100%;
}

.bell {
  margin: 26px 0 4px;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
}

.ring {
  position: relative;
  width: 190px;
  height: 190px;
  margin: 24px 0 18px;
}

.ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring circle {
  fill: none;
  stroke-width: 7;
}

.ring-bg {
  stroke: rgba(255, 255, 255, 0.22);
}

.ring-fg {
  stroke: #fff;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: calc(283px * var(--ring, 1));
}

.timer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 40px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* Map for scene 4 */
.map {
  position: absolute;
  inset: 0 0 74px 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px) 0 0 / 36px 36px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px) 0 0 / 36px 36px,
    #8c1f12;
  overflow: hidden;
}

.road {
  position: absolute;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 6px;
}

.road.r1 { left: -10%; right: -10%; top: 62%; height: 10px; transform: rotate(-20deg); }
.road.r2 { left: 30%; top: -10%; bottom: -10%; width: 10px; transform: rotate(14deg); }
.road.r3 { left: -10%; right: -10%; top: 28%; height: 8px; transform: rotate(8deg); }

.me,
.pin {
  position: absolute;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
}

.me {
  left: 78%;
  top: 22%;
}

.me i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fff;
  border: 4px solid #1657ff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6);
}

.pin {
  left: calc(14% + var(--t, 0) * 58%);
  top: calc(82% - var(--t, 0) * 52%);
}

.pin i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fff;
  border: 4px solid #e5412d;
  position: relative;
}

.pin i::after {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  animation: locPulse 1.4s ease-out infinite;
}

@keyframes locPulse {
  from { transform: scale(0.5); opacity: 1; }
  to { transform: scale(1.7); opacity: 0; }
}

.mapbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 74px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.35);
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: center;
  gap: 2px 10px;
  font-size: 12px;
  text-align: left;
}

.mapbar strong {
  font-size: 20px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.mapbar > span:last-child {
  grid-column: 1 / -1;
  opacity: 0.85;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
  50% { opacity: 0.2; }
}

@keyframes bellRing {
  0%, 100% { transform: rotate(0); }
  10%, 30%, 50% { transform: rotate(-14deg); }
  20%, 40%, 60% { transform: rotate(14deg); }
  70% { transform: rotate(0); }
}

/* Static fallback: show the second phone in its red alert, the first on its countdown. */
.pa-0,
.pb-3 {
  display: none;
}

.pa-1 {
  display: flex;
}

/* ---- Story: pinned, animated version ---- */
.fx .story {
  height: 520vh;
  padding: 0;
}

.fx .story-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.fx .story-grid {
  height: 100%;
}

.fx .story-text {
  height: 360px;
}

.fx .story-step {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.6s, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.fx .story[data-scene="0"] .story-step[data-i="0"],
.fx .story[data-scene="1"] .story-step[data-i="1"],
.fx .story[data-scene="2"] .story-step[data-i="2"],
.fx .story[data-scene="3"] .story-step[data-i="3"] {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.fx .story-step .num {
  -webkit-text-stroke-color: rgba(255, 255, 255, 0.5);
}

.fx .story-dots {
  display: flex;
  gap: 10px;
  position: absolute;
  left: 0;
  bottom: -70px;
}

.story-dots i {
  width: 34px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.22);
  transition: background 0.4s, width 0.4s;
}

.fx .story[data-scene="0"] .story-dots i:nth-child(1),
.fx .story[data-scene="1"] .story-dots i:nth-child(2),
.fx .story[data-scene="2"] .story-dots i:nth-child(3),
.fx .story[data-scene="3"] .story-dots i:nth-child(4) {
  background: #fff;
  width: 64px;
}

.fx .story-progress {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
}

.fx .story-progress i {
  display: block;
  height: 100%;
  background: #fff;
  transform-origin: left center;
  transform: scaleX(var(--p, 0));
}

/* Phones move between scenes. */
.fx .story-visual {
  height: 100%;
}

.fx .sp {
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -280px 0 0 -140px;
  transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.8s;
}

.fx .sp-in {
  transform: rotateY(calc((var(--p, 0) - 0.5) * 26deg)) rotateX(calc((0.5 - var(--p, 0)) * 8deg));
}

.fx .sp-a {
  transform: translateX(0) scale(1.08);
}

.fx .sp-b {
  transform: translateX(300px) scale(0.9);
  opacity: 0;
}

.fx .story[data-scene="2"] .sp-a,
.fx .story[data-scene="3"] .sp-a {
  transform: translateX(-190px) scale(0.78) rotate(-6deg);
  opacity: 0.6;
}

.fx .story[data-scene="2"] .sp-b,
.fx .story[data-scene="3"] .sp-b {
  transform: translateX(110px) scale(1.12);
  opacity: 1;
}

.fx .pa,
.fx .pb {
  opacity: 0;
  transition: opacity 0.5s;
  display: flex;
}

.fx .story[data-scene="0"] .pa-0,
.fx .story:not([data-scene="0"]) .pa-1,
.fx .story[data-scene="2"] .pb-2,
.fx .story[data-scene="3"] .pb-3 {
  opacity: 1;
}

.fx .story[data-scene="0"] .bell {
  animation: bellRing 1.4s ease-in-out infinite;
}

.fx .story[data-scene="2"] .sp-b .sp-in {
  animation: shake 0.5s ease-in-out 0.9s 2;
}

/* ---- Statement: words light up as you scroll ---- */
.statement {
  position: relative;
  /* clip, not hidden: `hidden` would turn this into a scroll container and stop the pinned text from sticking */
  overflow: visible;
  overflow: clip;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  padding: 120px 0;
  text-align: center;
}

.statement .wrap {
  position: relative;
  z-index: 1;
}

.statement-text {
  font-size: clamp(40px, 7.6vw, 108px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.04em;
  max-width: 1000px;
  margin: 0 auto;
}

.statement-sub {
  margin-top: 28px;
  font-size: clamp(18px, 2.2vw, 26px);
  opacity: 0.85;
}

.statement .blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.statement .b1 {
  width: 520px;
  height: 520px;
  right: -140px;
  top: -160px;
  background: rgba(255, 255, 255, 0.1);
}

.statement .b2 {
  width: 380px;
  height: 380px;
  left: -120px;
  bottom: -140px;
  background: rgba(229, 65, 45, 0.28);
}

.fx .statement {
  height: 260vh;
  padding: 0;
}

.fx .statement-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
}

.fx .statement-pin .wrap {
  width: 100%;
}

.fx .sw {
  opacity: 0.18;
  transition: opacity 0.35s, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: inline-block;
  transform: translateY(8px);
}

.fx .sw.lit {
  opacity: 1;
  transform: none;
}

.fx .statement-sub {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s, transform 0.6s;
}

.fx .statement.done .statement-sub {
  opacity: 0.9;
  transform: none;
}

/* ---- Big numbers ---- */
.numbers {
  background: #fff;
  padding: 110px 0;
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.bignum strong {
  display: block;
  font-size: clamp(72px, 10vw, 150px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  color: var(--brand);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.bignum strong small {
  font-size: 0.32em;
  letter-spacing: 0;
  margin-left: 6px;
  color: var(--ink);
}

.bignum p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 17px;
  max-width: 240px;
}

/* ---- Section colour: the features block goes dark, cards glow ---- */
.fx #features {
  background: #0b1226;
  color: #fff;
}

.fx #features .section-head p {
  color: rgba(255, 255, 255, 0.7);
}

.fx #features .feature {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.fx #features .feature p {
  color: rgba(255, 255, 255, 0.68);
}

.fx #features .feature .icon {
  background: rgba(22, 87, 255, 0.25);
  color: #8fb0ff;
}

.fx #features .feature:hover {
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 1px rgba(143, 176, 255, 0.5), 0 24px 60px rgba(22, 87, 255, 0.35);
}

.fx #features .feature:hover .icon {
  background: var(--brand);
  color: #fff;
}

/* Parallax shapes ride the scroll through `--py`, set by the script. */
[data-speed] {
  transform: translateY(calc(var(--py, 0) * 1px));
}

/* ---- Phones and layout on small screens ---- */
@media (max-width: 960px) {
  .hero {
    min-height: 0;
  }

  .phones {
    height: 520px;
  }

  .phone {
    width: 230px;
    height: 460px;
  }

  .hero h1 {
    font-size: clamp(40px, 11vw, 64px);
  }

  .story-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .fx .story-grid {
    grid-template-rows: auto 1fr;
    padding-top: 24px;
  }

  .fx .story-visual {
    order: -1;
    height: 100%;
    min-height: 0;
  }

  .fx .story-text {
    height: 250px;
    order: 1;
  }

  .fx .story-dots {
    bottom: -34px;
  }

  .story-visual {
    transform: scale(0.72);
    transform-origin: center top;
    height: 470px;
    margin-bottom: -120px;
  }

  .fx .story-visual {
    transform: scale(0.62);
    transform-origin: center center;
  }

  .fx .story[data-scene="2"] .sp-a,
  .fx .story[data-scene="3"] .sp-a {
    transform: translateX(-150px) scale(0.74) rotate(-6deg);
  }

  .fx .story[data-scene="2"] .sp-b,
  .fx .story[data-scene="3"] .sp-b {
    transform: translateX(70px) scale(1.1);
  }

  .story-step p {
    font-size: 16px;
  }

  .numbers-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 20px;
  }

  .statement {
    padding: 80px 0;
  }
}

@media (max-width: 520px) {
  .phone {
    width: 200px;
    height: 400px;
  }

  .phones {
    height: 440px;
  }

  .fx .story-visual {
    transform: scale(0.52);
  }

  .bignum p {
    font-size: 15px;
  }
}

/* Touch screens have no mouse to follow: the phones sway by themselves. */
@media (hover: none) {
  .fx .tilt {
    animation: sway 9s ease-in-out infinite;
  }
}

@keyframes sway {
  0%, 100% { transform: rotateY(-10deg) rotateX(3deg); }
  50% { transform: rotateY(10deg) rotateX(-3deg); }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-bar { display: none; }
  .hero-glow { display: none; }
}

/* Page can never scroll sideways from the big shapes. */
body {
  overflow-x: hidden;
  overflow-x: clip;
}

.fx #features .section-head h2 {
  color: #fff;
}

/* ---- The logo (an image now, not a coloured tile with an icon) ---- */
.logo-img {
  display: block;
  height: 36px;
  width: auto;
}

.site-footer .logo-img {
  height: 40px;
}
