/* The website's front page.
   Colours: the app icon's teal for the dark bands, the app's paper for
   reading, the app's rust for actions, and the family member colours (as on
   the app's cards) to mark who and what. Type: Plus Jakarta Sans, the app's
   own. Devices: a titanium-edged phone with real screenshots. Motion: tied
   to the content (threads into the phone, reminders arriving, numbers
   counting, lists ticking), and all of it off with reduced motion. */

@font-face { font-family: "Plus Jakarta Sans"; src: url("fonts/plus-jakarta-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("fonts/plus-jakarta-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("fonts/plus-jakarta-sans-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --harbour: #123b47;
  --harbour-deep: #0b2830;
  --brand: #1e5f74;
  --paper: #fff8f3;
  --paper-2: #f9ece2;
  --ink: #2b1f19;
  --ink-soft: #6b574c;
  --rust: #b4461b;
  --rust-dark: #96380f;
  --coral: #e8592a;
  --on-dark: #eef6f8;
  --on-dark-soft: #a9c8d1;

  --blue: #2563eb; --purple: #7c3aed; --teal: #0d9488; --pink: #db2777; --orange: #ea580c; --indigo: #4338ca;

  --titanium: linear-gradient(140deg, #f6f3ee 0%, #b8b2a9 13%, #efebe5 27%, #8a847c 45%, #dcd6cd 61%, #7a746c 79%, #f1ede7 100%);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --step-1: 1.25rem;
  --step-3: 1.953rem;
  --step-4: clamp(2rem, 1.4rem + 2.6vw, 3.05rem);
  --step-5: clamp(2.45rem, 1.5rem + 4vw, 4.4rem);

  --header: 64px;
  --index: 60px;
  --page: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + var(--index) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* The tilted band and the drifting light reach past the screen's edges:
   clip them here, not on body (a phone sizes the page by what body holds). */
main { overflow-x: clip; }

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 8px;
  background: var(--paper); color: var(--ink); font-weight: 600;
}
.skip:focus { top: 12px; }

/* Scroll progress, in the family's colours -------------------------------- */

.progress { position: fixed; inset: 0 0 auto; z-index: 60; height: 3px; pointer-events: none; }
.progress span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--purple), var(--pink), var(--orange), var(--teal));
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
}

/* Buttons ------------------------------------------------------------------ */

.button {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 12px 28px;
  border: 2px solid var(--rust); border-radius: 999px;
  background: var(--rust); color: #fff;
  font-weight: 600; font-size: 1.0625rem; text-decoration: none;
  overflow: hidden; isolation: isolate;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 250ms ease, transform 250ms var(--ease-out);
}
.button:hover { background: var(--rust-dark); border-color: var(--rust-dark); box-shadow: 0 14px 30px -12px rgba(180, 70, 27, 0.7); }
.button:active { transform: translateY(1px) scale(0.98); }
.button-small { min-height: 42px; padding: 8px 20px; font-size: 1rem; }

/* A band of light that crosses the button now and then, and on hover. */
.button-shine::after {
  content: ""; position: absolute; inset: -2px; z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.45) 48%, transparent 66%);
  transform: translateX(-120%);
  animation: shine 5.5s ease-in-out 2.4s infinite;
}
.button-shine:hover::after { animation-duration: 1.2s; animation-delay: 0s; }
@keyframes shine { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

.button-ghost { background: transparent; border-color: rgba(238, 246, 248, 0.55); color: var(--on-dark); }
.button-ghost:hover { background: rgba(238, 246, 248, 0.1); border-color: var(--on-dark); box-shadow: none; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header ------------------------------------------------------------------- */

.top {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  height: var(--header); padding: 0 var(--gutter);
  color: var(--on-dark);
  transition: background-color 250ms ease, box-shadow 250ms ease, height 250ms ease;
}
.top.is-solid {
  height: calc(var(--header) - 6px);
  background: rgba(18, 59, 71, 0.9);
  box-shadow: 0 10px 30px -18px rgba(5, 20, 25, 0.6);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.125rem; letter-spacing: -0.01em; text-decoration: none; }
.brand img { border-radius: 9px; }
.top-links { display: flex; gap: 26px; margin-left: auto; }
.top-links a { position: relative; color: var(--on-dark-soft); font-weight: 600; text-decoration: none; transition: color 150ms ease; }
.top-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px;
  background: var(--coral); transform: scaleX(0); transform-origin: left; transition: transform 300ms var(--ease-out);
}
.top-links a:hover { color: var(--on-dark); }
.top-links a:hover::after { transform: scaleX(1); }

/* Words that rise into place (headings) ----------------------------------- */

.js [data-split]:not(.is-split) { visibility: hidden; }
.word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.word > span {
  display: inline-block;
  transform: translateY(105%) rotate(4deg);
  transform-origin: left bottom;
  transition: transform 900ms var(--ease-out);
  transition-delay: calc(var(--w, 0) * 55ms);
}
[data-split].is-in .word > span { transform: none; }

/* Things that arrive as you reach them ------------------------------------ */

.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 800ms var(--ease-out), transform 900ms var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

.js .enter { opacity: 0; transform: translateY(18px); animation: enter 900ms var(--ease-out) var(--at, 0ms) forwards; }
@keyframes enter { to { opacity: 1; transform: none; } }

/* Hero ---------------------------------------------------------------------- */

.hero {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center;
  gap: clamp(24px, 4vw, 64px);
  min-height: min(100vh, 900px);
  padding: calc(var(--header) + 48px) var(--gutter) 120px;
  background: var(--harbour); color: var(--on-dark);
  overflow: hidden; isolation: isolate;
}

/* Soft light in the family's colours, drifting. */
.aurora { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.aurora i {
  position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%;
  filter: blur(70px); opacity: 0.42; mix-blend-mode: screen;
  animation: drift 22s ease-in-out infinite alternate;
}
.aurora i:nth-child(1) { background: var(--brand); top: -18vmax; right: -10vmax; }
.aurora i:nth-child(2) { background: var(--purple); bottom: -26vmax; right: 14vmax; opacity: 0.26; animation-duration: 28s; animation-delay: -6s; }
.aurora i:nth-child(3) { background: var(--teal); top: 10vmax; left: -24vmax; opacity: 0.22; animation-duration: 34s; animation-delay: -12s; }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(6vmax, 4vmax, 0) scale(1.12); }
  100% { transform: translate3d(-4vmax, -3vmax, 0) scale(0.94); }
}

.hero-copy { max-width: 36rem; margin-left: max(0px, calc((100vw - var(--page)) / 2 - var(--gutter))); }
.hero h1 { font-size: var(--step-5); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
.hero-lead { margin-top: 24px; max-width: 34rem; color: var(--on-dark-soft); font-size: var(--step-1); line-height: 1.55; }
.hero .actions { margin-top: 32px; }
.hero-note { margin-top: 28px; max-width: 30rem; color: var(--on-dark-soft); font-size: 0.9375rem; }

.hero-stage { position: relative; width: 100%; max-width: 560px; aspect-ratio: 600 / 660; justify-self: center; }

.threads { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.thread {
  fill: none; stroke: var(--c); stroke-width: 7; stroke-linecap: round;
  stroke-dasharray: 520; stroke-dashoffset: 520;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--c) 60%, transparent));
  animation: draw 1300ms var(--ease-out) forwards;
  animation-delay: calc(200ms + var(--d));
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.pulses { opacity: 0; animation: appear 600ms ease 1.9s forwards; }
.pulses circle { filter: drop-shadow(0 0 6px #fff); }
@keyframes appear { to { opacity: 0.95; } }

.tilt { position: absolute; inset: 0; transition: transform 500ms var(--ease-out); }
.layer { position: absolute; transition: transform 600ms var(--ease-out); will-change: transform; }
.layer-phone { top: 0; right: 0; width: 50%; }
.layer-note { top: 18%; left: 22%; z-index: 3; }
.layer-money { top: 66%; left: 8%; z-index: 3; }

.float { opacity: 0; transform: translateY(40px) rotate(2deg); animation: rise 1100ms var(--ease-out) 600ms forwards, bob 7s ease-in-out 1.8s infinite; }
@keyframes rise { to { opacity: 1; transform: translateY(0) rotate(2deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(2deg); } 50% { transform: translateY(-12px) rotate(1.2deg); } }

/* Phones: a polished titanium edge, a thin black bezel, glass ------------- */

.phone {
  --r: 28px; --band: 3px; --bezel: 7px;
  position: relative; margin: 0; padding: var(--band);
  border-radius: var(--r);
  background: var(--titanium);
  box-shadow:
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.7),
    0 2px 1px -1px rgba(255, 255, 255, 0.4),
    0 50px 70px -36px rgba(8, 26, 32, 0.6),
    0 24px 30px -24px rgba(8, 26, 32, 0.55);
}
/* Side buttons: power on the right; action and volume on the left. */
.phone::before, .phone::after {
  content: ""; position: absolute; width: 3px; border-radius: 2px;
  background: linear-gradient(90deg, #77716a, #e6e1da 60%, #9c968e);
}
.phone::before { right: -2.5px; top: 24%; height: 11%; }
.phone::after {
  left: -2.5px; top: 17%; height: 22%;
  background:
    linear-gradient(90deg, #77716a, #e6e1da 60%, #9c968e) 0 0 / 100% 18% no-repeat,
    linear-gradient(90deg, #77716a, #e6e1da 60%, #9c968e) 0 37% / 100% 26% no-repeat,
    linear-gradient(90deg, #77716a, #e6e1da 60%, #9c968e) 0 100% / 100% 26% no-repeat;
}
.screen {
  position: relative; padding: var(--bezel);
  border-radius: calc(var(--r) - var(--band));
  background: #030405;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.display {
  position: relative; container-type: inline-size;
  aspect-ratio: 540 / 1260;
  border-radius: calc(var(--r) - var(--band) - var(--bezel) + 2px);
  overflow: hidden; background: #fff8f3;
}
.display img { width: 100%; height: 100%; object-fit: cover; }
/* The camera cut-out, over the status bar drawn in the screenshot. */
.display::before {
  content: ""; position: absolute; z-index: 3; top: 1.9cqw; left: 50%;
  width: 27cqw; height: 7.6cqw; border-radius: 99px; transform: translateX(-50%);
  background: radial-gradient(circle at 80% 50%, #1d2b3c 0 1.3cqw, #090c11 1.4cqw 1.9cqw, transparent 2cqw), #000;
}
/* Glass: a soft reflection, and a streak of light that passes now and then. */
.display::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.04) 22%, transparent 38%),
    linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, 0.22) 50%, transparent 60%) 0 0 / 300% 100% no-repeat;
  background-position: 0 0, 160% 0;
  animation: glass 9s ease-in-out 3s infinite;
}
@keyframes glass { 0%, 78% { background-position: 0 0, 160% 0; } 100% { background-position: 0 0, -60% 0; } }

.phone-hero { --r: 32px; }

/* Notes around the hero phone: glass cards -------------------------------- */

.note {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 18px 10px 10px;
  border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 18px;
  background: rgba(255, 255, 255, 0.84); color: var(--ink);
  -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: 0 24px 40px -20px rgba(5, 20, 25, 0.65);
  opacity: 0; transform: translateY(16px) scale(0.94);
  animation: pop 700ms var(--ease-spring) forwards;
}
.note-cycle { animation-delay: 1500ms; min-width: 230px; }
.note-money { animation-delay: 1850ms; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 18px; min-width: 200px; }
@keyframes pop { to { opacity: 1; transform: none; } }

.note-icon {
  flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  background: var(--c); transition: background-color 400ms ease;
}
.note-icon img { border-radius: 6px; }
.note-text { display: grid; line-height: 1.3; transition: opacity 260ms ease, transform 360ms var(--ease-out); }
.note-text strong { font-weight: 600; font-size: 0.9375rem; }
.note-text span { color: var(--ink-soft); font-size: 0.875rem; }
.note-cycle.is-changing .note-text { opacity: 0; transform: translateY(-8px); }

.note-label { color: var(--ink-soft); font-size: 0.8125rem; font-weight: 600; }
.count { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; color: #2e7d32; font-variant-numeric: tabular-nums; }
.mini-bars { display: flex; align-items: flex-end; gap: 5px; height: 28px; margin-top: 6px; }
.mini-bars i {
  width: 14px; height: var(--h); border-radius: 4px 4px 2px 2px; background: var(--c);
  transform: scaleY(0); transform-origin: bottom;
  animation: grow 800ms var(--ease-out) forwards;
}
.mini-bars i:nth-child(1) { animation-delay: 2.1s; } .mini-bars i:nth-child(2) { animation-delay: 2.2s; }
.mini-bars i:nth-child(3) { animation-delay: 2.3s; } .mini-bars i:nth-child(4) { animation-delay: 2.4s; }
.mini-bars i:nth-child(5) { animation-delay: 2.5s; }
@keyframes grow { to { transform: scaleY(1); } }

/* Ticker: what families keep track of ------------------------------------- */

.ticker {
  position: relative; z-index: 5;
  margin: -46px -3vw 0; padding: 14px 0;
  background: var(--harbour-deep);
  transform: rotate(-2deg);
  box-shadow: 0 20px 40px -20px rgba(5, 20, 25, 0.5);
  overflow: hidden;
}
.ticker-row { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.ticker-row-back { animation-direction: reverse; animation-duration: 56s; margin-top: 10px; }
.ticker:hover .ticker-row { animation-play-state: paused; }
.ticker ul { display: flex; gap: 10px; margin: 0; padding: 0 5px; list-style: none; }
.ticker li {
  display: inline-flex; align-items: center; gap: 9px; flex: none;
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid rgba(238, 246, 248, 0.14);
  background: rgba(238, 246, 248, 0.05);
  color: var(--on-dark); font-weight: 600; font-size: 0.9375rem; white-space: nowrap;
}
.ticker li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Modules ------------------------------------------------------------------ */

.modules { position: relative; padding: 120px var(--gutter) 64px; }

.modules-intro, .module-layout, .extras, .privacy-inner, .steps, .closing-inner {
  max-width: var(--page); margin-left: auto; margin-right: auto;
}

.modules-intro h2, .extras h2, .privacy h2, .closing h2, .steps h2, .devices h2 {
  font-size: var(--step-4); font-weight: 800; letter-spacing: -0.03em; text-wrap: balance;
}
.modules-intro p { margin-top: 18px; max-width: 40rem; color: var(--ink-soft); font-size: var(--step-1); line-height: 1.55; }

.module-index {
  position: sticky; top: calc(var(--header) - 6px); z-index: 20;
  display: flex; gap: 8px;
  max-width: var(--page); margin: 40px auto 0; padding: 10px 0;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  overflow-x: auto; scrollbar-width: none;
}
.module-index::-webkit-scrollbar { display: none; }
.module-index a {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 6px 16px 6px 12px;
  border: 1.5px solid #e9d9cd; border-radius: 999px;
  color: var(--ink); font-weight: 600; font-size: 0.9375rem; text-decoration: none;
  transition: background-color 250ms ease, color 250ms ease, border-color 250ms ease, transform 300ms var(--ease-spring);
}
.module-index a::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); transition: background-color 250ms ease, transform 300ms var(--ease-spring); }
.module-index a:hover { border-color: var(--c); transform: translateY(-1px); }
.module-index a.is-active { background: var(--c); border-color: var(--c); color: #fff; box-shadow: 0 10px 20px -12px var(--c); }
.module-index a.is-active::before { background: #fff; transform: scale(1.15); }

.module-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: clamp(32px, 6vw, 96px); align-items: start; }

.module {
  min-height: 80vh; padding: 72px 0;
  display: flex; flex-direction: column; justify-content: center;
  max-width: 36rem;
  transition: opacity 450ms ease;
}
.module h3 { font-size: var(--step-3); font-weight: 800; }
.module h3::before {
  content: ""; display: block; width: 56px; height: 7px; margin-bottom: 20px; border-radius: 7px;
  background: var(--c); transform-origin: left;
}
.module-lead { margin-top: 10px; font-size: var(--step-1); font-weight: 600; color: var(--ink); }
.module > p:not(.module-lead) { margin-top: 16px; color: var(--ink-soft); }

.benefits { display: grid; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.benefits li { position: relative; padding-left: 32px; }
.benefits li::before {
  content: ""; position: absolute; left: 0; top: 0.3em; width: 20px; height: 20px; border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat,
    var(--c);
}

/* Reading a part on a computer: its bar grows, its benefits arrive. */
@media (min-width: 1001px) {
  .module-list.is-tracking .module { opacity: 0.45; }
  .module-list.is-tracking .module.is-active { opacity: 1; }
  .module-list.is-tracking .module h3::before { transform: scaleX(0.3); transition: transform 700ms var(--ease-out); }
  .module-list.is-tracking .module.is-active h3::before { transform: none; }
  .module-list.is-tracking .benefits li { opacity: 0.6; transform: translateX(-6px); transition: opacity 500ms ease, transform 600ms var(--ease-out); }
  .module-list.is-tracking .module.is-active .benefits li { opacity: 1; transform: none; }
  .module-list.is-tracking .module.is-active .benefits li:nth-child(2) { transition-delay: 80ms; }
  .module-list.is-tracking .module.is-active .benefits li:nth-child(3) { transition-delay: 160ms; }
  .module-list.is-tracking .module.is-active .benefits li:nth-child(4) { transition-delay: 240ms; }
  .module .shot { display: none; }
}

/* The phone beside the text (computers) ------------------------------------ */

.module-stage { position: sticky; top: calc(var(--header) + var(--index) + 2vh); padding: 2vh 0; perspective: 1400px; }
.stage-inner { position: relative; }

.phone-stage {
  --c: var(--orange); --r: 34px;
  width: min(100%, calc((100vh - var(--header) - var(--index) - 10vh) * 0.43));
  margin-left: auto;
  transition: box-shadow 500ms ease;
  box-shadow:
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.7),
    0 60px 100px -40px var(--c),
    0 26px 34px -24px rgba(8, 26, 32, 0.55);
}
.phone-stage.is-turning { animation: turn 900ms var(--ease-out); }
@keyframes turn {
  0% { transform: rotateY(0deg); }
  35% { transform: rotateY(calc(var(--dir, 1) * -9deg)) rotateX(2deg) translateY(-6px); }
  100% { transform: none; }
}

.phone-stage .display img {
  position: absolute; inset: 0;
  opacity: 0; filter: blur(6px);
  transform: translateY(calc(var(--dir, 1) * 16%)) scale(0.97);
  transition: opacity 500ms ease, transform 750ms var(--ease-out), filter 600ms ease;
}
.phone-stage .display img.is-active { opacity: 1; filter: none; transform: none; z-index: 1; }
.phone-stage .display img.is-leaving { opacity: 0; filter: blur(4px); transform: translateY(calc(var(--dir, 1) * -10%)) scale(0.97); }

/* Cards beside the phone: one per part, matching its screen. */
.stage-callouts { position: absolute; top: 54%; right: calc(100% - 118px); z-index: 4; width: 250px; }
.stage-callouts .callout {
  position: absolute; right: 0; top: 0;
  opacity: 0; transform: translateX(24px) scale(0.92); pointer-events: none;
  transition: opacity 400ms ease, transform 600ms var(--ease-spring);
}
.stage-callouts .callout.is-active { opacity: 1; transform: none; transition-delay: 250ms; }

.callout {
  display: grid; gap: 4px; width: max-content; max-width: 250px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.9); border-radius: 18px;
  background: rgba(255, 255, 255, 0.92); color: var(--ink);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 28px 50px -24px rgba(40, 25, 15, 0.45), 0 2px 0 rgba(255, 255, 255, 0.8) inset;
  font-size: 0.9375rem; line-height: 1.35;
}
.callout strong { font-weight: 800; letter-spacing: -0.01em; }
.callout > span:not([class]) { color: var(--ink-soft); font-size: 0.875rem; }
.callout-label { color: var(--ink-soft); font-size: 0.8125rem; font-weight: 600; }

.checks { display: grid; gap: 7px; margin: 6px 0 0; padding: 0; list-style: none; }
.checks li { position: relative; padding-left: 28px; font-weight: 600; transition: color 400ms ease; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 19px; height: 19px; border-radius: 6px;
  border: 2px solid color-mix(in srgb, var(--c) 55%, #d8c8bc);
  background: #fff;
}
.checks li::after {
  content: ""; position: absolute; left: 0; top: 1px; width: 19px; height: 19px; border-radius: 6px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 6.5' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 17px no-repeat,
    var(--c);
  transform: scale(0); transition: transform 450ms var(--ease-spring);
}

.people { display: flex; margin-bottom: 4px; }
.people i {
  display: grid; place-items: center; width: 30px; height: 30px; margin-right: -8px;
  border: 2px solid #fff; border-radius: 50%;
  background: var(--c); color: #fff; font-style: normal; font-weight: 800; font-size: 0.8125rem;
}

.callout-ring { grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; position: relative; }
.ring { width: 64px; height: 64px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: #f0e5dc; stroke-width: 4.5; }
.ring .ring-fill { stroke: var(--c); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1400ms var(--ease-out); }
.ring-days { position: absolute; left: 18px; top: 50%; width: 64px; transform: translateY(-50%); display: grid; justify-items: center; line-height: 1; }
.ring-days strong { font-size: 1.25rem; }
.ring-days span { font-size: 0.6875rem; color: var(--ink-soft); }
.ring-text { display: grid; }
.ring-text span { color: var(--ink-soft); font-size: 0.875rem; }

.count.big { font-size: 2rem; }
.flow { display: grid; gap: 5px; margin-top: 6px; min-width: 190px; }
.flow i {
  display: block; width: var(--w); padding: 3px 8px; border-radius: 6px;
  font-style: normal; font-size: 0.75rem; font-weight: 600; color: #fff; white-space: nowrap;
  background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform 900ms var(--ease-out);
}
.flow i:nth-child(2) { background: var(--orange); transition-delay: 150ms; }

.goal-bar { position: relative; display: block; width: 210px; height: 12px; margin: 6px 0 4px; border-radius: 6px; background: #efe3d9; overflow: hidden; }
.goal-bar i { position: absolute; inset: 0 auto 0 0; width: 22%; border-radius: 6px; background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform 1200ms var(--ease-out); }
.goal-bar::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), rgba(255, 255, 255, 0.9) calc(25% - 1px) 25%); }

/* A card plays when it's shown: beside the phone (.is-active) or under a
   phone in the text (.shot.is-in). */
.is-active .checks li::after, .is-in .checks li::after { transform: scale(1); transition-delay: calc(500ms + var(--i) * 420ms); }
.is-active .checks li, .is-in .checks li { color: var(--ink-soft); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--c) 70%, transparent); transition-delay: calc(650ms + var(--i) * 420ms); }
.is-active .ring .ring-fill, .is-in .ring .ring-fill { stroke-dashoffset: 43; transition-delay: 300ms; }
.is-active .flow i, .is-in .flow i { transform: none; }
.is-active .goal-bar i, .is-in .goal-bar i { transform: none; transition-delay: 300ms; }

/* Phones in the text (phones and tablets) ---------------------------------- */

.shot { position: relative; perspective: 1200px; }
.phone-inline { display: block; width: min(290px, 74%); margin: 28px 0 12px; --r: 30px; }
.shot .callout { position: absolute; right: max(0px, calc(26% - 150px)); bottom: 14%; z-index: 3; }
.js .shot[data-reveal] { transform: none; }
.js .shot[data-reveal] .phone-inline { transform: rotateY(-24deg) rotateX(6deg) translateY(30px); transition: transform 1100ms var(--ease-out); }
.js .shot[data-reveal].is-in .phone-inline { transform: none; }
.js .shot[data-reveal] .callout { opacity: 0; transform: translateY(16px) scale(0.92); transition: opacity 500ms ease 450ms, transform 700ms var(--ease-spring) 450ms; }
.js .shot[data-reveal].is-in .callout { opacity: 1; transform: none; }

/* On a computer too ---------------------------------------------------------- */

.devices {
  position: relative; max-width: var(--page); margin: 0 auto; padding: 56px var(--gutter) 112px;
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 72px); align-items: center;
}
.devices p { margin-top: 16px; color: var(--ink-soft); max-width: 30rem; }
.devices-art { position: relative; padding-bottom: 6%; perspective: 1600px; }
.js .devices-art[data-reveal] { transform: none; }

.laptop { position: relative; }
.laptop-lid { transform-origin: 50% 100%; transition: transform 1400ms var(--ease-out) 150ms; }
.js .devices-art[data-reveal] .laptop-lid { transform: rotateX(-82deg); }
.js .devices-art[data-reveal].is-in .laptop-lid { transform: none; }
.laptop-screen {
  position: relative; padding: 12px 12px 16px; border-radius: 16px 16px 0 0;
  background: linear-gradient(#1b1f22, #0b0d0e);
  box-shadow: inset 0 0 0 1.5px #3a3f44, 0 40px 80px -40px rgba(12, 42, 51, 0.6);
}
.laptop-screen::before { content: ""; position: absolute; top: 5px; left: 50%; width: 5px; height: 5px; border-radius: 50%; background: #25303a; transform: translateX(-50%); }
.laptop-screen img { border-radius: 4px; width: 100%; }
.laptop-base {
  position: relative; height: 16px; width: 114%; margin-left: -7%;
  border-radius: 2px 2px 18px 18px;
  background: linear-gradient(#f2f3f4, #c7cbcf 45%, #9aa0a5);
  box-shadow: 0 24px 30px -18px rgba(12, 42, 51, 0.5);
}
.laptop-base::before { content: ""; position: absolute; top: 0; left: 50%; width: 16%; height: 6px; border-radius: 0 0 8px 8px; background: #b3b8bc; transform: translateX(-50%); }

.phone-small { --r: 18px; --band: 2px; --bezel: 4px; position: absolute; right: -5%; bottom: -2%; width: 24%; }
.phone-small::before, .phone-small::after { width: 2px; }
.js .devices-art[data-reveal] .phone-small { opacity: 0; transform: translateX(40px) rotate(6deg); transition: opacity 600ms ease 900ms, transform 1000ms var(--ease-spring) 900ms; }
.js .devices-art[data-reveal].is-in .phone-small { opacity: 1; transform: none; }

/* Also in the app ------------------------------------------------------------ */

.extras { padding: 32px var(--gutter) 112px; }
.extras-list {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px clamp(24px, 4vw, 56px);
  margin: 44px 0 0; padding: 0; list-style: none;
}
.js .extras-list[data-reveal] { transform: none; opacity: 1; }
.extras-list li { transition: opacity 700ms ease, transform 800ms var(--ease-out); transition-delay: calc(var(--i) * 90ms); }
.js .extras-list[data-reveal]:not(.is-in) li { opacity: 0; transform: translateY(24px); }
.extra-icon {
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px;
  background: linear-gradient(145deg, #fff, var(--paper-2));
  box-shadow: 0 1px 0 #fff inset, 0 16px 30px -18px rgba(30, 95, 116, 0.55);
  transition: transform 400ms var(--ease-spring), box-shadow 400ms ease;
}
.extras-list li:hover .extra-icon { transform: translateY(-4px) rotate(-4deg); box-shadow: 0 1px 0 #fff inset, 0 22px 36px -16px rgba(30, 95, 116, 0.7); }
.extra-icon svg { width: 30px; height: 30px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.extra-icon path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .extras-list[data-reveal]:not(.is-in) .extra-icon path { stroke-dashoffset: 1; }
.extras-list.is-in .extra-icon path { animation: stroke 1300ms var(--ease-out) both; animation-delay: calc(250ms + var(--i) * 120ms); }
@keyframes stroke { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.extras-list h3 { margin-top: 16px; font-size: var(--step-1); font-weight: 800; letter-spacing: -0.01em; }
.extras-list p { margin-top: 8px; color: var(--ink-soft); }

/* Dark bands with a light that follows the pointer ---------------------------- */

.spotlight { position: relative; isolation: isolate; overflow: hidden; }
.spotlight::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, 70%) var(--my, 20%), rgba(64, 160, 190, 0.22), transparent 65%);
}

.privacy { padding: 112px var(--gutter); background: var(--harbour); color: var(--on-dark); }
.privacy h2 { max-width: 22ch; }
.privacy-points { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px clamp(24px, 4vw, 48px); margin: 52px 0 0; }
.js .privacy-points[data-reveal] { transform: none; opacity: 1; }
.privacy-points div { position: relative; padding-top: 20px; transition: opacity 700ms ease, transform 800ms var(--ease-out); transition-delay: calc(var(--i) * 110ms); }
.privacy-points div::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--on-dark-soft), var(--brand));
  transform-origin: left; transition: transform 900ms var(--ease-out); transition-delay: calc(150ms + var(--i) * 110ms);
}
.js .privacy-points[data-reveal]:not(.is-in) div { opacity: 0; transform: translateY(20px); }
.js .privacy-points[data-reveal]:not(.is-in) div::before { transform: scaleX(0); }
.privacy-points dt { font-weight: 800; font-size: var(--step-1); letter-spacing: -0.01em; }
.privacy-points dd { margin: 8px 0 0; color: var(--on-dark-soft); }

/* How to start -------------------------------------------------------------- */

.steps { padding: 112px var(--gutter); }
.steps-list {
  position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px);
  margin: 52px 0 0; padding: 0; list-style: none;
}
.js .steps-list[data-reveal] { transform: none; opacity: 1; }
/* The line joining the steps, drawn as you arrive. */
.steps-list::before {
  content: ""; position: absolute; top: 27px; left: 28px; right: calc(33% - 28px); height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--blue), var(--purple), var(--teal));
  transform-origin: left; transition: transform 1400ms var(--ease-out) 200ms;
}
.js .steps-list[data-reveal]:not(.is-in)::before { transform: scaleX(0); }
.steps-list li { position: relative; transition: opacity 700ms ease, transform 800ms var(--ease-out); transition-delay: calc(300ms + var(--i) * 260ms); }
.js .steps-list[data-reveal]:not(.is-in) li { opacity: 0; transform: translateY(26px); }
.step-number {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--c); color: #fff; font-weight: 800; font-size: 1.375rem;
  box-shadow: 0 0 0 6px var(--paper), 0 16px 30px -12px var(--c);
}
.steps-list h3 { margin-top: 22px; font-size: var(--step-1); font-weight: 800; letter-spacing: -0.01em; }
.steps-list p { margin-top: 8px; color: var(--ink-soft); max-width: 24rem; }

/* Closing ------------------------------------------------------------------- */

.closing { padding: 120px var(--gutter) 128px; background: var(--harbour); color: var(--on-dark); }
.closing .aurora i { opacity: 0.3; }
.closing .aurora i:nth-child(1) { background: var(--purple); top: auto; bottom: -30vmax; right: -12vmax; }
.closing .aurora i:nth-child(2) { background: var(--teal); }
.closing .aurora i:nth-child(3) { background: var(--brand); }
.closing h2 { max-width: 18ch; }
.closing-inner > p { margin-top: 18px; max-width: 36rem; color: var(--on-dark-soft); font-size: var(--step-1); }
.closing .actions { margin-top: 32px; }
.closing-note { margin-top: 32px; max-width: 34rem; color: var(--on-dark-soft); font-size: 0.9375rem; }

/* Footer -------------------------------------------------------------------- */

.foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px;
  padding: 32px var(--gutter); background: var(--harbour-deep); color: var(--on-dark-soft); font-size: 0.9375rem;
}
.foot .brand { color: var(--on-dark); font-size: 1rem; }
.foot .to-app { margin-left: auto; color: var(--on-dark); font-weight: 600; }

/* Narrower screens ------------------------------------------------------------ */

@media (max-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: calc(var(--header) + 32px); padding-bottom: 104px; }
  .hero-copy { margin-left: 0; }
  .hero-stage { max-width: 460px; }

  .module-layout { grid-template-columns: minmax(0, 1fr); }
  .module-stage { display: none; }
  .module { min-height: 0; padding: 56px 0 8px; max-width: 40rem; }

  .devices { grid-template-columns: minmax(0, 1fr); padding-top: 24px; }
  .extras-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .privacy-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .steps-list { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .steps-list::before { top: 28px; bottom: 28px; left: 27px; right: auto; width: 3px; height: auto; transform-origin: top; }
  .steps-list li { padding-left: 80px; }
  .step-number { position: absolute; left: 0; top: 0; }
  .steps-list h3 { margin-top: 12px; }
}

@media (max-width: 640px) {
  :root { --header: 58px; --index: 56px; }
  body { font-size: 1rem; }
  .top { gap: 12px; }
  .top-links { display: none; }
  .top .button-small { margin-left: auto; }
  .hero .actions .button, .closing .actions .button { flex: 1 1 100%; }
  .note-cycle { min-width: 0; }
  .note { padding-right: 14px; }
  .note-money { min-width: 0; padding: 10px 14px; }
  .count { font-size: 1.4rem; }
  .mini-bars { height: 20px; }
  .layer-note { left: 4%; top: 14%; }
  .layer-money { left: 0; top: 64%; }
  .modules { padding-top: 96px; }
  .shot .callout { right: 0; bottom: 10%; max-width: 210px; padding: 12px 14px; }
  .extras-list { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .privacy, .steps { padding: 80px var(--gutter); }
  .privacy-points { grid-template-columns: minmax(0, 1fr); }
  .closing { padding: 88px var(--gutter) 96px; }
  .foot .to-app { margin-left: 0; }
}

/* Less motion: everything shown as it ends --------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-split]:not(.is-split) { visibility: visible; }
  .word > span, .thread, .float, .note, .js .enter, .js [data-reveal], .mini-bars i,
  .js .shot[data-reveal] .phone-inline, .js .shot[data-reveal] .callout,
  .js .devices-art[data-reveal] .laptop-lid, .js .devices-art[data-reveal] .phone-small,
  .js .extras-list[data-reveal]:not(.is-in) li, .js .privacy-points[data-reveal]:not(.is-in) div,
  .js .steps-list[data-reveal]:not(.is-in) li {
    opacity: 1 !important; transform: none !important; stroke-dashoffset: 0 !important;
  }
  .float { transform: rotate(2deg) !important; }
  .js .steps-list[data-reveal]:not(.is-in)::before, .js .privacy-points[data-reveal]:not(.is-in) div::before { transform: none !important; }
  .js .extras-list[data-reveal]:not(.is-in) .extra-icon path { stroke-dashoffset: 0; }
  .pulses { display: none; }
  .ticker-row { flex-wrap: wrap; width: auto; }
  .ticker-row ul + ul { display: none; }
  .ticker { transform: none; }
  .ticker ul { flex-wrap: wrap; padding: 0 var(--gutter); }
  .phone-stage .display img:not(.is-active) { opacity: 0; }
  .checks li::after { transform: scale(1); }
  .ring .ring-fill { stroke-dashoffset: 43; }
  .flow i, .goal-bar i { transform: none; }
}
