:root {
  color-scheme: light;
  --bg: #F6F8FB;
  --panel: #FFFFFF;
  --panel-2: #EEF3FA;
  --glass: rgba(255, 255, 255, .62);
  --edge: rgba(30, 70, 140, .11);
  --edge-2: rgba(30, 70, 140, .2);
  --text: #0B1F3A;
  --muted: #4F607A;
  --dim: #8391A7;
  --ice: #1A93E6;
  --ice-soft: #7CD4FF;
  --ice-2: #2E63F0;
  --navy: #0B1F3A;
  --red: #D7222B;
  --red-deep: #A3161D;
  --green: #12A36B;
  --display: "Unbounded", "Arial Black", sans-serif;
  --body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; background: var(--bg); }
body {
  margin: 0;
  color: var(--text);
  font: 400 1.0625rem/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; }
button { font: inherit; color: inherit; }
::selection { background: rgba(26, 147, 230, .2); }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 6px; }

/* A faint engineering grid at the top of the page; no colour washes */
.aurora { position: absolute; inset: 0 0 auto; height: 900px; z-index: -1; pointer-events: none; }
.aurora i { display: none; }
.aurora::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(11, 31, 58, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 31, 58, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, #000, transparent);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent);
}

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

h1, h2 { font-family: var(--display); font-weight: 800; letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.7rem); line-height: 1.04; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.75rem); line-height: 1.08; }
h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.3; }
.lede { font-size: clamp(1.0625rem, 1.5vw, 1.2rem); color: var(--muted); max-width: 36em; }

/* Glass surface with a cursor-following edge light (--mx/--my set by JS) */
.glass {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, .6));
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 0 0 1px var(--edge), 0 20px 40px -28px rgba(20, 50, 110, .35);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
}
.glass::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, -999px) var(--my, -999px), rgba(26, 147, 230, .85), rgba(124, 212, 255, .4) 40%, transparent 65%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity .3s;
}
.glass:hover::before { opacity: 1; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px;
  font: 600 1rem/1 var(--body);
  text-decoration: none; border-radius: 12px; border: 0; cursor: pointer;
  transition: background-color .2s, transform .2s var(--ease), box-shadow .25s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-red { background: linear-gradient(180deg, #E5313A, var(--red-deep)); color: #fff; box-shadow: 0 0 0 1px rgba(163, 22, 29, .3) inset, 0 12px 28px -12px rgba(215, 34, 43, .7); }
.btn-red:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(163, 22, 29, .3) inset, 0 18px 36px -12px rgba(215, 34, 43, .85); }
.btn-ghost { background: var(--glass); color: var(--text); box-shadow: inset 0 0 0 1px var(--edge-2); backdrop-filter: blur(10px); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--ice), 0 8px 24px -10px rgba(26, 147, 230, .5); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .9375rem; }

.js [data-r] { opacity: 0; transform: translateY(22px); filter: blur(6px); transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-r].in { opacity: 1; transform: none; filter: none; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 248, 251, .6);
  backdrop-filter: saturate(1.5) blur(16px);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  transition: box-shadow .3s, background-color .3s;
}
.top.scrolled { background: rgba(246, 248, 251, .82); box-shadow: 0 1px 0 var(--edge), 0 10px 30px -22px rgba(20, 50, 110, .4); }
.top-row { display: flex; align-items: center; gap: 24px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.05rem/1 var(--display); letter-spacing: -0.01em; margin-right: auto; }
.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 6px 16px -6px rgba(11, 31, 58, .5); }
.nav { display: none; gap: 26px; }
.nav a { text-decoration: none; font-weight: 500; font-size: .9688rem; color: var(--muted); position: relative; padding: 6px 0; transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--ice-2), var(--ice)); box-shadow: 0 0 10px rgba(26, 147, 230, .6); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover, .nav a.on { color: var(--text); }
.nav a.on::after { transform: scaleX(1); }
@media (min-width: 1000px) { .nav { display: flex; margin: 0 auto; } .brand { margin-right: 0; } }
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--ice-2), var(--ice-soft)); box-shadow: 0 0 12px rgba(26, 147, 230, .7); transform-origin: left; transform: scaleX(0); }

/* Hero */
.hero { position: relative; padding: clamp(28px, 5vw, 64px) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.hero-glow { display: none; }
.hero-grid { position: relative; display: grid; gap: clamp(40px, 6vw, 64px); align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } }
.hero-copy { display: grid; gap: 22px; justify-items: start; }
.live {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px; border-radius: 999px;
  background: var(--glass); box-shadow: inset 0 0 0 1px var(--edge-2), 0 6px 20px -12px rgba(20, 50, 110, .35);
  backdrop-filter: blur(10px);
  font-size: .9375rem; font-weight: 500; color: var(--muted);
}
.live time { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--text); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(18, 163, 107, .7); position: relative; flex: none; }
.pulse::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--green); opacity: 0; animation: ping 2s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.4); opacity: .8; } 100% { transform: scale(1.4); opacity: 0; } }
.hero h1 {
  font-size: clamp(1.9rem, 3.7vw, 3.1rem);
  animation: rise 1s var(--ease) .1s both;
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(10px); } }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.fine { font-size: .9375rem; color: var(--dim); max-width: 30em; }

/* Phone */
.hero-phone { display: grid; justify-items: center; gap: 18px; position: relative; }
.phone {
  width: min(360px, 100%); height: 620px;
  background: linear-gradient(160deg, #FFFFFF, #D9E3F1); border-radius: 46px; padding: 11px;
  display: grid; grid-template-rows: auto auto 1fr auto;
  box-shadow: 0 0 0 1px rgba(11, 31, 58, .14), inset 0 0 0 1px #fff, 0 50px 90px -40px rgba(11, 31, 58, .45);
  position: relative;
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-10px); } }
.phone > * { background: #FFFFFF; }
.phone-bar {
  border-radius: 35px 35px 0 0; height: 40px; padding: 0 26px;
  display: flex; align-items: center; justify-content: space-between;
  font: 600 .875rem/1 var(--body); font-variant-numeric: tabular-nums;
}
.notch { width: 92px; height: 24px; border-radius: 14px; background: var(--navy); }
.ph-icons { width: 40px; height: 10px; background: linear-gradient(90deg, var(--navy) 0 22px, transparent 22px 26px, var(--navy) 26px); border-radius: 3px; opacity: .85; }
.ph-head { display: flex; align-items: center; gap: 12px; padding: 8px 18px 12px; border-bottom: 1px solid var(--edge); }
.ph-head b { display: block; font-weight: 600; line-height: 1.2; }
.ph-head small { color: var(--muted); font-size: .8125rem; transition: color .2s; }
.ph-head small.typing-on { color: var(--ice); }
.ph-av { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--ice-2), var(--navy)); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.ph-chat {
  background: #F1F4F8;
  padding: 14px 12px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 7px;
  overflow: hidden; min-height: 0;
}
.ph-input { border-radius: 0 0 35px 35px; padding: 12px 16px 18px; display: flex; align-items: center; gap: 10px; }
.ph-input span { flex: 1; background: var(--panel-2); border-radius: 20px; padding: 9px 14px; color: var(--dim); font-size: .875rem; }
.ph-input i { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(180deg, #E5313A, var(--red-deep)); box-shadow: 0 6px 14px -4px rgba(215, 34, 43, .6); }

.b {
  max-width: 84%; padding: 8px 12px 7px; border-radius: 16px;
  font-size: .9063rem; line-height: 1.42; position: relative;
  animation: pop .38s var(--ease) both;
  flex: none;
}
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.96); filter: blur(4px); } }
.b.c { align-self: flex-end; background: linear-gradient(135deg, #2E63F0, #1A93E6); color: #fff; border-bottom-right-radius: 5px; box-shadow: 0 8px 20px -10px rgba(46, 99, 240, .7); }
.b.a { align-self: flex-start; background: #FFFFFF; color: var(--text); border-bottom-left-radius: 5px; box-shadow: 0 0 0 1px var(--edge), 0 6px 16px -10px rgba(20, 50, 110, .35); }
.src {
  display: flex; align-items: center; gap: 6px; margin-top: 5px;
  font-size: .75rem; font-weight: 600; color: var(--ice);
}
.src::before { content: ""; width: 6px; height: 6px; background: var(--red); box-shadow: 0 0 6px rgba(215, 34, 43, .6); flex: none; }
.b.hand .src { color: #C26A06; }
.b.hand .src::before { background: #E58A1F; box-shadow: 0 0 6px rgba(229, 138, 31, .6); }
.typing { align-self: flex-start; background: #FFFFFF; box-shadow: 0 0 0 1px var(--edge); border-radius: 16px; border-bottom-left-radius: 5px; padding: 12px 14px; display: flex; gap: 5px; animation: pop .3s var(--ease) both; flex: none; }
.typing i { width: 7px; height: 7px; background: var(--navy); animation: dot 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; background: var(--red); }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
.photos { display: grid; grid-template-columns: repeat(3, 56px); gap: 4px; margin: 2px 0 6px; }
.photos span { height: 70px; border-radius: 8px; background: linear-gradient(160deg, #3A3F4A, #15181E); position: relative; overflow: hidden; }
.photos span::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 30px; height: 54px; margin-left: -15px; border-radius: 15px 15px 4px 4px; background: #0B0D12; box-shadow: 0 -16px 0 -8px #C9A98E; }
.photos span:nth-child(2) { background: linear-gradient(160deg, #6E6A66, #2B2A29); }
.photos span:nth-child(3) { background: linear-gradient(160deg, #B9B2A8, #6A645C); }
.file { display: flex; align-items: center; gap: 10px; }
.doc { width: 28px; height: 34px; border-radius: 4px; background: #fff; position: relative; flex: none; box-shadow: 0 0 0 1px var(--edge); }
.doc::after { content: ""; position: absolute; left: 6px; right: 6px; top: 8px; height: 14px; background: repeating-linear-gradient(#B8C4D6 0 2px, transparent 2px 5px); }

.scn-tabs { display: flex; gap: 6px; padding: 5px; background: var(--glass); border-radius: 14px; box-shadow: inset 0 0 0 1px var(--edge-2), 0 10px 30px -18px rgba(20, 50, 110, .4); flex-wrap: wrap; justify-content: center; position: relative; backdrop-filter: blur(12px); }
.scn-tabs button {
  border: 0; background: transparent; cursor: pointer;
  padding: 9px 14px; border-radius: 10px; font-weight: 600; font-size: .875rem; color: var(--muted);
  position: relative; overflow: hidden; transition: color .2s, background-color .2s;
}
.scn-tabs button:hover { color: var(--text); }
.scn-tabs button[aria-selected="true"] { background: var(--navy); color: #fff; }
.scn-tabs button[aria-selected="true"]::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--ice-soft); box-shadow: 0 0 8px var(--ice-soft); transform-origin: left; transform: scaleX(var(--p, 0));
}

/* Marquee */
.marquee { border-block: 1px solid var(--edge); padding: 18px 0; display: grid; gap: 12px; overflow: hidden; background: rgba(255, 255, 255, .5); backdrop-filter: blur(10px); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.mq-row { display: flex; width: max-content; }
.mq-track { display: flex; gap: 12px; padding-right: 12px; animation: mq 48s linear infinite; }
.mq-rev .mq-track { animation-direction: reverse; animation-duration: 56s; }
.marquee:hover .mq-track { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(-100%); } }
.mq-track span { white-space: nowrap; padding: 9px 16px; border-radius: 16px 16px 16px 5px; background: #fff; box-shadow: 0 0 0 1px var(--edge); font-weight: 500; font-size: .9375rem; color: var(--muted); }
.mq-rev .mq-track span { background: linear-gradient(135deg, #2E63F0, #1A93E6); color: #fff; box-shadow: none; border-radius: 16px 16px 5px 16px; }

/* Sections */
.sec { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.sec-head { display: grid; gap: 16px; max-width: 44rem; margin-bottom: clamp(36px, 5vw, 60px); }
.dark { background: #fff; border-block: 1px solid var(--edge); }
.dark .wrap { position: relative; }


.center { margin-inline: auto; text-align: center; justify-items: center; }
.assure { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9375rem; color: var(--muted); }
.assure li { display: flex; align-items: center; gap: 7px; }
.assure li::before { content: ""; width: 16px; height: 16px; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312A36B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5 9.5 18 20 6.5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.btn-lg { min-height: 62px; padding: 0 34px; font-size: 1.0625rem; }

/* Night story: words light up as they cross the middle of the screen */
.night { padding-block: clamp(80px, 12vw, 160px); }
.reveal-text {
  font: 700 clamp(1.75rem, 4.4vw, 3.4rem)/1.18 var(--body); letter-spacing: -0.02em;
  max-width: 22em; text-wrap: pretty;
}
.reveal-text .wd { color: rgba(11, 31, 58, .14); transition: color .35s var(--ease); }
.reveal-text .wd.lit { color: var(--text); }
.reveal-text .sting .wd.lit { color: var(--red); }
.no-split .reveal-text .wd { color: inherit; }

/* Week grid */
.week-grid { display: grid; gap: 40px; align-items: center; }
.week-grid > * { min-width: 0; }
@media (min-width: 980px) { .week-grid { grid-template-columns: .9fr 1.1fr; gap: 64px; } }
.week-copy { display: grid; gap: 20px; }
.week-legend { display: grid; gap: 10px; margin: 8px 0 0; }
.week-legend div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--edge); }
.week-legend dt { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 500; }
.week-legend dd { margin: 0; color: var(--muted); }
.week-legend b { font: 800 1.6rem/1 var(--display); color: var(--text); font-variant-numeric: tabular-nums; }
.week-legend div:nth-child(2) b { color: var(--red); }
.week-legend div:nth-child(3) b { color: var(--ice); }
.week-legend i { width: 14px; height: 14px; border-radius: 4px; }
.k-h { background: var(--navy); }
.k-gap { background: rgba(215, 34, 43, .18); box-shadow: inset 0 0 0 1.5px var(--red); }
.k-ai { background: linear-gradient(135deg, var(--ice-soft), var(--ice-2)); }
.week { border-radius: 24px; padding: clamp(14px, 2.5vw, 26px); display: grid; gap: 8px; }
.wk-hours { display: flex; justify-content: space-between; padding-left: 24px; font-size: .75rem; color: var(--dim); font-variant-numeric: tabular-nums; }
.wk { display: grid; grid-template-columns: 22px repeat(24, minmax(0, 1fr)); gap: clamp(1px, .4vw, 3px); }
.wk .day { font-size: .75rem; font-weight: 600; color: var(--muted); align-self: center; }
.wk .c { aspect-ratio: 1; border-radius: 3px; background: rgba(30, 70, 140, .07); transition: background-color .4s, box-shadow .4s, transform .4s var(--ease); }
.wk.p1 .c.h { background: var(--navy); }
.wk.p2 .c:not(.h) { background: rgba(215, 34, 43, .14); box-shadow: inset 0 0 0 1px rgba(215, 34, 43, .5); }
.wk.p3 .c { background: linear-gradient(135deg, var(--ice-soft), var(--ice-2)); box-shadow: 0 0 8px -2px rgba(26, 147, 230, .7); }
.wk .c { transition-delay: calc(var(--k) * 4ms); }

/* Calculator */
.calc { border-radius: 28px; display: grid; overflow: hidden; max-width: 1040px; margin-inline: auto; }
@media (min-width: 900px) { .calc { grid-template-columns: 1.1fr 1fr; } }
.calc-in { padding: clamp(22px, 4vw, 40px); display: grid; gap: 26px; }
.rng { display: grid; gap: 12px; }
.rng-top { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; font-weight: 500; }
.rng-top > span { color: var(--muted); }
.rng output { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; --fill: 30%; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--ice-2), var(--ice) var(--fill), rgba(30, 70, 140, .12) var(--fill)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: rgba(30, 70, 140, .12); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--ice-2), var(--ice)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--ice), 0 4px 12px -2px rgba(26, 147, 230, .6); transition: transform .15s; }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--ice), 0 4px 12px -2px rgba(26, 147, 230, .6); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 2px var(--ice), 0 0 0 6px rgba(26, 147, 230, .25); }

.calc-out {
  padding: clamp(26px, 4vw, 44px); display: grid; gap: 12px; align-content: center; justify-items: start;
  color: #fff; position: relative; overflow: hidden;
  background: var(--navy);
}
.calc-label { color: #B7C6DC; font-weight: 500; }
.calc-sum { white-space: nowrap; font: 800 clamp(2rem, 4.2vw, 3.2rem)/1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.calc-sum small { font-size: .4em; letter-spacing: 0; color: #B7C6DC; }
.calc-sub { color: #B7C6DC; margin-bottom: 14px; }
.calc-sub b { color: #FF9AA0; }
.calc-note { font-size: .8125rem; color: #8798B4; margin-top: 6px; }
.calc-sum.bump { animation: bump .35s var(--ease); }
@keyframes bump { 40% { transform: scale(1.04); } }

/* Mobile dock */
.dock {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60;
  transform: translateY(140%); transition: transform .45s var(--ease);
}
.dock.show { transform: none; }
@media (min-width: 1000px) { .dock { display: none; } }

/* Story */
.story-grid { display: grid; gap: 32px; }
.story-grid > * { min-width: 0; }
.stage-wrap { position: sticky; top: 84px; z-index: 2; height: calc(540px * var(--s, 1)); align-self: start; }
.stage { width: 640px; height: 540px; position: relative; transform: scale(var(--s, 1)); transform-origin: top left; }
@media (min-width: 1000px) {
  .story-grid { grid-template-columns: 640px 1fr; gap: 64px; }
  .stage-wrap { top: calc(50vh - 270px); }
}
@media (max-width: 999px) {
  .stage-wrap { top: 70px; padding-top: 14px; height: calc(540px * var(--s, 1) + 26px); overflow: clip; background: rgba(246, 248, 251, .92); backdrop-filter: blur(12px); padding-bottom: 12px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
}
.wire { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 3; }
.wire path { fill: none; stroke: var(--ice); stroke-width: 2; stroke-dasharray: 6 6; opacity: 0; transition: opacity .3s; filter: drop-shadow(0 0 4px rgba(26, 147, 230, .6)); }
.wire path.on { opacity: 1; animation: march 1s linear infinite; }
@keyframes march { to { stroke-dashoffset: -24; } }

.s-phone {
  position: absolute; left: 0; top: 0; width: 262px; height: 500px;
  background: linear-gradient(160deg, #FFFFFF, #D9E3F1); border-radius: 36px; padding: 10px;
  display: grid; grid-template-rows: auto 1fr;
  box-shadow: 0 0 0 1px rgba(11, 31, 58, .14), 0 40px 70px -40px rgba(11, 31, 58, .45);
}
.s-head { background: #fff; border-radius: 27px 27px 0 0; padding: 14px 14px 10px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--edge); }
.s-head .ph-av { width: 32px; height: 32px; font-size: .875rem; }
.s-head b { font-size: .9375rem; }
.s-head time { margin-left: auto; font-size: .8125rem; font-weight: 600; color: var(--muted); }
.s-chat { background: #F1F4F8; border-radius: 0 0 27px 27px; padding: 12px 10px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; overflow: hidden; }
.s-chat > * { display: none; }
.s-chat > .on { display: flex; }
.s-chat .b { font-size: .8438rem; flex-direction: column; }
.s-chat .b.file { flex-direction: row; }
.s-chat .b.ok { box-shadow: inset 0 0 0 1.5px var(--green), 0 6px 18px -8px rgba(18, 163, 107, .6); }

.s-col { position: absolute; left: 330px; top: 0; width: 310px; display: grid; gap: 14px; }
.s-card { background: rgba(255, 255, 255, .88); backdrop-filter: blur(12px); border-radius: 18px; padding: 14px 16px; box-shadow: 0 0 0 1px var(--edge), 0 18px 36px -26px rgba(20, 50, 110, .4); transition: opacity .5s var(--ease), transform .5s var(--ease), box-shadow .4s; }
.s-title { font-size: .75rem; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.cat-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 7px 8px; border-radius: 10px; font-size: .8438rem; transition: background-color .4s, box-shadow .4s; }
.cat-row span:nth-child(2) { font-weight: 600; font-variant-numeric: tabular-nums; }
.cat-row .sz { grid-column: 1 / -1; font-size: .75rem; color: var(--dim); letter-spacing: .04em; }
.stage.s2 .cat-row.hit { background: rgba(26, 147, 230, .09); box-shadow: inset 0 0 0 1.5px var(--ice), 0 0 22px -6px rgba(26, 147, 230, .6); }
.stage.s2 .cat-row.hit .sz { color: var(--muted); }
.stage.s2 .cat-row.hit .sz b { color: #fff; background: var(--red); padding: 0 4px; border-radius: 3px; }
.s-order, .s-group { opacity: 0; transform: translateY(14px) scale(.98); }
.stage.s3 .s-order, .stage.s4 .s-group { opacity: 1; transform: none; }
.ord-row { display: flex; justify-content: space-between; gap: 10px; font-size: .875rem; margin-bottom: 10px; }
.ord-row b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.chips { position: relative; height: 26px; }
.chip { position: absolute; left: 0; top: 0; padding: 5px 10px; border-radius: 8px; font-size: .75rem; font-weight: 600; transition: opacity .4s, transform .4s var(--ease); }
.chip.wait { background: #FFF2DC; color: #9A5B00; }
.chip.paid { background: #DCF5EA; color: var(--green); opacity: 0; transform: translateY(6px); }
.stage.s5 .chip.wait { opacity: 0; transform: translateY(-6px); }
.stage.s5 .chip.paid { opacity: 1; transform: none; }
.s-group { background: var(--navy); color: #fff; box-shadow: 0 0 0 1px rgba(124, 212, 255, .35), 0 24px 44px -24px rgba(11, 31, 58, .7), 0 0 40px -20px rgba(124, 212, 255, .8); }
.s-group .s-title { color: #A9B8D0; }
.grp-row { display: flex; gap: 12px; align-items: center; font-size: .875rem; line-height: 1.35; margin-bottom: 12px; }
.grp-btns { display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px; }
.grp-btns span { text-align: center; padding: 9px 6px; border-radius: 10px; font-size: .8125rem; font-weight: 600; background: rgba(255, 255, 255, .1); transition: transform .2s, background-color .3s, color .3s, box-shadow .3s; }
.grp-btns .yes { background: #fff; color: var(--navy); }
.stage.s5 .grp-btns .yes { background: var(--green); color: #fff; box-shadow: 0 0 20px -4px rgba(18, 163, 107, .9); animation: press .5s var(--ease); }
@keyframes press { 40% { transform: scale(.93); } }
.grp-done { font-size: .75rem; color: #7FE3B6; margin-top: 8px; height: 0; opacity: 0; transition: opacity .4s .2s; }
.stage.s5 .grp-done { opacity: 1; height: auto; }

.steps { display: grid; position: relative; }
.steps li { min-height: 62vh; display: grid; align-content: center; gap: 8px; padding-left: 28px; position: relative; opacity: .28; transition: opacity .5s var(--ease); }
.steps li::before { content: ""; position: absolute; left: 0; top: calc(50% - 40px); width: 3px; height: 80px; border-radius: 2px; background: var(--edge-2); transition: background-color .5s, box-shadow .5s; }
.steps li.on { opacity: 1; }
.steps li.on::before { background: linear-gradient(180deg, var(--ice-soft), var(--ice-2)); box-shadow: 0 0 14px rgba(26, 147, 230, .6); }
.steps time { font: 800 .875rem/1 var(--display); color: var(--ice); font-variant-numeric: tabular-nums; }
.steps h3 { font-family: var(--display); font-weight: 800; font-size: clamp(1.35rem, 2.4vw, 1.75rem); letter-spacing: -0.02em; }
.steps p { color: var(--muted); max-width: 26em; }
@media (max-width: 999px) {
  .steps li { min-height: 72vh; align-content: end; padding-bottom: 6vh; }
  .steps li::before { top: auto; bottom: calc(6vh + 10px); }
}

/* Try it */
.try-grid { display: grid; gap: 40px; align-items: center; }
.try-grid > div:first-child { display: grid; gap: 20px; }
@media (min-width: 980px) { .try-grid { grid-template-columns: 1fr 1fr; gap: 72px; } }
.try { border-radius: 24px; padding: 14px; display: grid; gap: 14px; }
.try-chat { background: #F1F4F8; border-radius: 16px; height: 360px; padding: 14px 12px; display: flex; flex-direction: column; justify-content: flex-end; gap: 7px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--edge); }
.try-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.try-chips button {
  border: 0; cursor: pointer; padding: 10px 14px; border-radius: 12px;
  background: #fff; box-shadow: 0 0 0 1px var(--edge-2), 0 4px 12px -8px rgba(20, 50, 110, .4); color: var(--text); font-weight: 500; font-size: .9375rem;
  transition: background-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.try-chips button:hover { box-shadow: 0 0 0 1.5px var(--ice), 0 8px 20px -8px rgba(26, 147, 230, .6); transform: translateY(-2px); }
.try-chips button:disabled { opacity: .45; cursor: default; transform: none; }

/* Setup timeline */
.setup-grid { display: grid; gap: 48px; }
.setup-copy { display: grid; gap: 20px; justify-items: start; align-content: start; }
@media (min-width: 980px) { .setup-grid { grid-template-columns: 1fr 1.2fr; gap: 72px; } .setup-copy { position: sticky; top: 120px; } }
.tl { display: grid; gap: 44px; position: relative; padding-left: 64px; counter-reset: tl; }
.tl::before, .tl::after { content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 2px; background: var(--edge-2); }
.tl::after { background: linear-gradient(180deg, var(--ice-soft), var(--ice-2)); box-shadow: 0 0 12px rgba(26, 147, 230, .6); transform-origin: top; transform: scaleY(var(--fill, 0)); }
.tl li { display: grid; gap: 8px; position: relative; counter-increment: tl; }
.tl li::before {
  content: counter(tl); position: absolute; left: -64px; top: -6px; z-index: 1;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  font: 800 1rem/1 var(--display); background: #fff; color: var(--dim);
  box-shadow: 0 0 0 1px var(--edge-2); transition: background-color .4s, box-shadow .4s, color .4s;
}
.tl li.lit::before { background: var(--navy); color: #fff; box-shadow: 0 0 0 4px rgba(124, 212, 255, .35), 0 0 22px -2px rgba(26, 147, 230, .7); }
.tl h3 { font-size: 1.25rem; }
.tl p { color: var(--muted); max-width: 30em; }

/* FAQ */
.faq-grid { display: grid; gap: 32px; }
@media (min-width: 980px) { .faq-grid { grid-template-columns: 1fr 1.5fr; gap: 72px; } }
.faq { border-radius: 20px; overflow: hidden; }
.faq details { border-top: 1px solid var(--edge); }
.faq details:first-child { border-top: 0; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; position: relative; font-weight: 600; transition: background-color .2s; }
.faq summary:hover { background: rgba(26, 147, 230, .05); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 14px; height: 2px; margin-top: -1px; background: var(--ice); transition: transform .3s var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { padding: 0 22px 22px; color: var(--muted); max-width: 40em; }
.faq details[open] p { animation: pop .35s var(--ease); }

/* CTA: the one navy panel, so the last ask stands out */
.cta { padding: 0 0 clamp(72px, 10vw, 120px); }
.cta-in {
  display: grid; gap: 22px; justify-items: center; text-align: center;
  border-radius: 32px; padding: clamp(48px, 8vw, 96px) var(--gutter);
  max-width: calc(var(--wrap) - 2 * var(--gutter));
  position: relative; overflow: hidden; color: #fff;
  background: var(--navy);
  box-shadow: 0 40px 80px -40px rgba(11, 31, 58, .6);
}
.cta-in::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(160, 200, 255, .1) 1px, transparent 1px), linear-gradient(90deg, rgba(160, 200, 255, .1) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at 50% 100%, #000, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 50% 100%, #000, transparent 70%);
}
.cta-in > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; }
.cta .lede { color: #B7C6DC; }
.big-dots { display: flex; gap: 14px; }
.big-dots i { width: 22px; height: 22px; background: #fff; box-shadow: 0 0 18px rgba(255, 255, 255, .5); animation: dot 1.2s infinite ease-in-out; }
.big-dots i:nth-child(2) { animation-delay: .15s; }
.big-dots i:nth-child(3) { background: var(--red); box-shadow: 0 0 20px var(--red); animation-delay: .3s; }
@media (max-width: 700px) { .cta .wrap.cta-in { margin-inline: var(--gutter); } }

.foot { padding: 0 0 40px; color: var(--dim); font-size: .9375rem; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.foot nav { display: flex; gap: 20px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-r] { opacity: 1; transform: none; filter: none; }
  .reveal-text .wd { color: inherit; }
  .mq-track { animation: none !important; }
}
