/* Books Compass landing — the app's palette (navy + crimson) and type (Sora + Inter).
   Scroll-driven parts read --p (0→1) set by js/app.js. */
:root {
  --navy: oklch(0.28 0.11 268);
  --navy-900: oklch(0.17 0.06 268);
  --navy-800: oklch(0.21 0.08 268);
  --crimson: oklch(0.47 0.17 25);
  --crimson-300: oklch(0.72 0.12 25);
  --violet: oklch(0.62 0.13 300);
  --ink: oklch(0.2 0.06 268);
  --ink-2: oklch(0.42 0.03 268);
  --ink-3: oklch(0.58 0.025 268);
  --bg: oklch(0.99 0.003 270);
  --bg-2: oklch(0.972 0.006 270);
  --line: oklch(0.92 0.01 270);
  --ok: oklch(0.58 0.13 158);
  --amber: oklch(0.76 0.14 75);
  --sky: oklch(0.64 0.11 240);
  --grad: linear-gradient(120deg, var(--navy) 0%, oklch(0.36 0.15 330) 55%, var(--crimson) 100%);
  --shadow-sm: 0 1px 2px rgb(16 24 64 / 0.06), 0 1px 3px rgb(16 24 64 / 0.08);
  --shadow-md: 0 12px 32px -12px rgb(16 24 64 / 0.22);
  --shadow-xl: 0 40px 80px -24px rgb(16 24 64 / 0.35), 0 12px 24px -12px rgb(16 24 64 / 0.18);
  --font-display: "Sora", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0;
}
h2 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 700;
}
p {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
svg {
  width: 1em;
  height: 1em;
}
.sprite {
  position: absolute;
  width: 0;
  height: 0;
}
.container {
  width: min(1200px, 100% - 2.5rem);
  margin-inline: auto;
}
.muted {
  color: var(--ink-3);
}
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
}
:focus-visible {
  outline: 2px solid var(--crimson);
  outline-offset: 3px;
  border-radius: 6px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--crimson);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.eyebrow--light {
  color: var(--crimson-300);
}

/* Reading progress */
.progress {
  position: fixed;
  inset: 0 0 auto;
  height: 2px;
  z-index: 60;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--grad);
  transform-origin: left;
  transform: scaleX(var(--p, 0));
}

/* Buttons ------------------------------------------------------------------ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 999px;
  padding: 0.75rem 1.35rem;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    background 0.3s,
    color 0.3s;
  will-change: transform;
}
.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
}
.btn--lg {
  padding: 0.95rem 1.7rem;
  font-size: 1rem;
}
.btn--primary {
  color: #fff;
  background: var(--navy);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.18),
    0 8px 20px -8px color-mix(in oklab, var(--navy) 70%, transparent);
  overflow: hidden;
  isolation: isolate;
}
.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.btn--primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(100deg, transparent, rgb(255 255 255 / 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.8s var(--ease);
}
.btn--primary:hover::before {
  opacity: 1;
}
.btn--primary:hover::after {
  left: 130%;
}
.btn--primary:hover {
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.18),
    0 14px 30px -10px color-mix(in oklab, var(--crimson) 60%, transparent);
}
.btn--outline {
  color: var(--ink);
  background: rgb(255 255 255 / 0.7);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}
.btn--outline:hover {
  border-color: color-mix(in oklab, var(--navy) 30%, var(--line));
  transform: translateY(-2px);
}
.btn--light {
  color: var(--navy);
  background: #fff;
  box-shadow: 0 16px 40px -14px rgb(0 0 0 / 0.5);
}
.btn__arrow {
  transition: transform 0.4s var(--ease);
}
.btn:hover .btn__arrow {
  transform: translateX(4px);
}
.link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-2);
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
  transition: color 0.2s;
}
.link:hover {
  color: var(--ink);
}

/* Header ------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0.9rem;
  left: 0;
  right: 0;
  z-index: 50;
  pointer-events: none;
}
.nav__pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: min(1200px, 100% - 2rem);
  margin-inline: auto;
  padding: 0.55rem 0.6rem 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition:
    width 0.6s var(--ease),
    background 0.4s,
    border-color 0.4s,
    box-shadow 0.4s,
    padding 0.4s;
}
.nav.is-scrolled .nav__pill {
  width: min(980px, 100% - 2rem);
  background: rgb(255 255 255 / 0.72);
  border-color: rgb(255 255 255 / 0.8);
  box-shadow:
    0 10px 30px -12px rgb(16 24 64 / 0.25),
    inset 0 0 0 1px rgb(16 24 64 / 0.05);
  backdrop-filter: saturate(1.6) blur(18px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.6rem;
  background: var(--grad);
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 6px 14px -6px color-mix(in oklab, var(--crimson) 70%, transparent);
}
.nav__links {
  display: flex;
  gap: 0.25rem;
  margin-left: auto;
}
.nav__links a {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-2);
  transition:
    background 0.25s,
    color 0.25s;
}
.nav__links a:hover {
  background: rgb(16 24 64 / 0.05);
  color: var(--ink);
}
.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.nav__toggle {
  display: none;
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 999px;
  background: rgb(16 24 64 / 0.06);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav__toggle span {
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.35s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}
.nav__mobile {
  pointer-events: auto;
  display: grid;
  width: min(980px, 100% - 2rem);
  margin: 0.5rem auto 0;
  padding: 0.5rem;
  border-radius: 1.25rem;
  background: rgb(255 255 255 / 0.95);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
  animation: drop 0.4s var(--ease);
}
.nav__mobile[hidden] {
  display: none;
}
.nav__mobile a {
  padding: 0.8rem 1rem;
  border-radius: 0.8rem;
  font-weight: 500;
}
.nav__mobile a:hover {
  background: var(--bg-2);
}
@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

/* Hero --------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 10rem 0 0;
  overflow: hidden;
  isolation: isolate;
}
.hero__mesh {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.mesh {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: orbit 22s var(--ease-in-out) infinite alternate;
}
.mesh--1 {
  width: 46rem;
  height: 30rem;
  left: 50%;
  top: -14rem;
  margin-left: -30rem;
  background: oklch(0.86 0.06 268);
}
.mesh--2 {
  width: 30rem;
  height: 26rem;
  left: 55%;
  top: -6rem;
  background: oklch(0.88 0.07 25);
  animation-delay: -8s;
}
.mesh--3 {
  width: 26rem;
  height: 22rem;
  left: 22%;
  top: 6rem;
  background: oklch(0.9 0.06 300);
  animation-delay: -15s;
}
@keyframes orbit {
  50% {
    transform: translate(6rem, 2rem) scale(1.12);
  }
  100% {
    transform: translate(-4rem, 3rem) scale(0.95);
  }
}
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgb(16 24 64 / 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgb(16 24 64 / 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 20%, #000 30%, transparent 75%);
}
.hero__spot {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    600px circle at var(--x, 50%) var(--y, 20%),
    rgb(255 255 255 / 0.65),
    transparent 45%
  );
  pointer-events: none;
}
.hero__copy {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.3rem 0.8rem 0.3rem 0.3rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.75);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 0.86rem;
  color: var(--ink-2);
  backdrop-filter: blur(8px);
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s;
}
.badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.badge__tag {
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 600;
}
.hero__title {
  margin-top: 1.75rem;
  max-width: 16ch;
  font-size: clamp(2.8rem, 7.2vw, 5.6rem);
  font-weight: 800;
  letter-spacing: -0.045em;
}
.hero__title .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  /* Room for descenders (y) and letters that overhang their box (e, s),
     cancelled by negative margins so word spacing is unchanged. */
  padding: 0.06em 0.12em 0.26em;
  margin: -0.06em -0.12em -0.26em;
}
.hero__title .w > span {
  display: inline-block;
}
.hero__title .w--grad > span {
  /* The gradient only paints inside the box, so the box covers overhangs too. */
  padding: 0 0.12em 0.26em;
  margin: 0 -0.12em -0.26em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* The rotating first word: a masked slot that eases to each word's width */
.hero__title .w--rotor {
  /* Clip only top and bottom (for the rise), never the sides of a longer word. */
  overflow: visible;
  overflow-y: clip;
  overflow-clip-margin: 0;
  text-align: left;
  transition: width 0.5s var(--ease);
}
.rotor {
  position: relative;
  display: inline-block;
  height: 1.08em;
  vertical-align: top;
}
.rotor__word {
  position: absolute;
  /* Same room as the masks (descenders, overhangs); the glyphs stay at the slot's edge. */
  left: -0.12em;
  top: 0;
  padding: 0 0.12em 0.26em;
  white-space: nowrap;
  background: linear-gradient(
    100deg,
    var(--crimson) 0%,
    oklch(0.42 0.16 330) 60%,
    var(--navy) 120%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  transform: translateY(100%);
  filter: blur(8px);
  transition:
    transform 0.8s var(--ease),
    opacity 0.8s var(--ease),
    filter 0.8s var(--ease);
}
.rotor__word::after {
  content: "";
  position: absolute;
  left: 0.16em;
  right: 0.16em;
  bottom: 0.3em;
  height: 0.07em;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--crimson), oklch(0.42 0.16 330));
  opacity: 0.35;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s var(--ease) 0.2s;
}
.rotor__word.is-current {
  opacity: 1;
  transform: none;
  filter: none;
  /* The slot widens first, then the new word rises in. */
  transition-delay: 0.18s;
}
.rotor__word.is-current::after {
  transform: scaleX(1);
}
.rotor__word.is-leaving {
  opacity: 0;
  transform: translateY(-100%);
  filter: blur(8px);
  /* Out quickly, so a longer old word never lingers over the next word. */
  transition-duration: 0.35s;
}
.hero__lead {
  margin-top: 1.5rem;
  max-width: 40rem;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--ink-2);
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

/* Intro animation (on load) */
.js .intro {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(6px);
  animation: intro 1s var(--ease) forwards;
  animation-delay: calc(var(--d, 0) * 90ms + 150ms);
}
.js .hero__title .w > span {
  transform: translateY(105%);
  animation: word 1.1s var(--ease) forwards;
  animation-delay: calc(var(--d, 0) * 70ms + 220ms);
}
@keyframes intro {
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
@keyframes word {
  to {
    transform: none;
  }
}

/* Stage: the dashboard screen */
.stage {
  margin-top: 4.5rem;
  perspective: 2000px;
  padding-bottom: 6rem;
}
.screen {
  --p: 0;
  position: relative;
  transform-origin: 50% 0%;
  transform: rotateX(calc((1 - var(--p)) * 24deg)) scale(calc(0.9 + var(--p) * 0.1))
    translateY(calc((1 - var(--p)) * -2rem));
  will-change: transform;
}
.js .screen {
  opacity: 0;
  animation: intro 1.4s var(--ease) 0.9s forwards;
}
.screen__glow {
  position: absolute;
  inset: 8% 6% -4%;
  z-index: -1;
  border-radius: 2rem;
  background: var(--grad);
  filter: blur(60px);
  opacity: calc(0.25 + var(--p) * 0.2);
}
.screen__frame {
  padding: 0.6rem;
  border-radius: 1.4rem;
  background: rgb(255 255 255 / 0.55);
  border: 1px solid rgb(255 255 255 / 0.9);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(10px);
}
/* macOS-style window: traffic lights, back/forward and an address bar */
.window {
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
}
.window__bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 2.6rem;
  padding: 0 1rem;
  background: linear-gradient(180deg, oklch(0.975 0.004 270), oklch(0.955 0.006 270));
  border-bottom: 1px solid var(--line);
}
.lights {
  display: flex;
  gap: 0.5rem;
}
.light {
  position: relative;
  width: 0.78rem;
  height: 0.78rem;
  border-radius: 50%;
  box-shadow: inset 0 0 0 0.5px rgb(0 0 0 / 0.18);
}
.light--close {
  background: #ff5f57;
}
.light--min {
  background: #febc2e;
}
.light--max {
  background: #28c840;
}
/* The close / minimise / zoom glyphs appear on hover, as on a Mac. */
.light::after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 700 0.55rem/1 var(--font-sans);
  color: rgb(0 0 0 / 0.55);
  opacity: 0;
  transition: opacity 0.15s;
}
.light--close::after {
  content: "×";
}
.light--min::after {
  content: "–";
}
.light--max::after {
  content: "+";
}
.lights:hover .light::after {
  opacity: 1;
}
.window__nav {
  display: flex;
  gap: 0.6rem;
  color: var(--ink-3);
  font-size: 1.1rem;
  line-height: 1;
}
.window__nav i {
  font-style: normal;
}
.window__nav i:last-child {
  opacity: 0.45;
}
.window__address {
  flex: 1;
  max-width: 26rem;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 1.7rem;
  border-radius: 0.5rem;
  background: rgb(255 255 255 / 0.85);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.75rem;
}
.window__address svg {
  font-size: 0.7rem;
  color: var(--ok);
}
.window__spacer {
  width: 5.4rem;
}
/* The dashboard inside the window: a faithful copy of the app's Dashboard page.
   Parts animate in once .screen gets .is-live (js/app.js). */
.dash {
  --k1: oklch(0.3 0.12 268);
  --k2: oklch(0.5 0.19 25);
  --k3: oklch(0.62 0.12 235);
  --k4: oklch(0.72 0.15 55);
  --k5: oklch(0.58 0.1 290);
  display: grid;
  grid-template-columns: 222px 1fr;
  min-height: 560px;
  background: #fff;
  font-size: 0.72rem;
  text-align: left;
}
.d-side {
  display: flex;
  flex-direction: column;
  margin: 0.4rem 0 0.4rem 0.4rem;
  padding: 0.8rem 0.6rem;
  border-radius: 0.9rem;
  color: rgb(255 255 255 / 0.82);
  background: linear-gradient(
    180deg,
    var(--navy-900) 0%,
    var(--navy-800) 45%,
    oklch(0.4 0.17 25) 100%
  );
}
.d-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0 0.2rem 0.85rem;
}
.d-brand__logo {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  flex: none;
  border-radius: 0.55rem;
  background: #fff;
  color: var(--navy);
  font-size: 1.1rem;
}
.d-brand__text {
  min-width: 0;
  flex: 1;
  line-height: 1.2;
}
.d-brand__text b {
  display: block;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.74rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.d-brand__text small {
  color: rgb(255 255 255 / 0.6);
  font-size: 0.62rem;
}
.d-brand__toggle {
  flex: none;
  font-size: 0.85rem;
  opacity: 0.7;
}
.d-nav {
  display: grid;
  gap: 0.15rem;
}
.d-nav span {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.6rem;
  border-radius: 0.6rem;
  font-size: 0.74rem;
}
.d-nav svg {
  font-size: 0.95rem;
  flex: none;
}
.d-nav .is-on {
  color: #fff;
  font-weight: 600;
  background: linear-gradient(90deg, oklch(0.52 0.19 25), oklch(0.43 0.17 25));
  box-shadow: 0 8px 18px -10px oklch(0.5 0.19 25);
}
.d-foot {
  margin-top: auto;
  padding-top: 0.8rem;
  border-top: 1px solid rgb(255 255 255 / 0.12);
  display: grid;
  gap: 0.15rem;
}
.d-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  padding: 0.5rem;
  border-radius: 0.65rem;
  background: rgb(255 255 255 / 0.07);
  min-width: 0;
}
.d-user__avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.15);
  color: #fff;
  font-weight: 700;
}
.d-user span:last-child {
  min-width: 0;
  line-height: 1.25;
}
.d-user b {
  display: block;
  color: #fff;
  font-size: 0.66rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.d-user small {
  font-size: 0.56rem;
  letter-spacing: 0.06em;
  color: rgb(255 255 255 / 0.55);
}
.d-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.6rem;
  font-size: 0.72rem;
}
.d-link svg {
  font-size: 0.9rem;
}
.d-legal {
  margin-top: 0.4rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  text-align: center;
  font-size: 0.58rem;
  color: rgb(255 255 255 / 0.5);
}
.d-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.d-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.d-top b {
  font-family: var(--font-display);
  font-size: 0.95rem;
}
.d-demo {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 0.4rem;
  background: oklch(0.96 0.04 75);
  color: oklch(0.55 0.13 60);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.d-body {
  padding: 1rem 1.25rem 1.1rem;
  display: grid;
  gap: 0.8rem;
  background: oklch(0.99 0.003 270);
}
.d-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}
.d-head h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}
.d-head small {
  color: var(--ink-3);
}
.d-actions {
  display: flex;
  gap: 0.45rem;
}
.d-btn,
.d-select {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.8rem;
  border-radius: 0.55rem;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 600;
  white-space: nowrap;
}
.d-select {
  font-weight: 500;
  gap: 1.4rem;
}
.d-select svg {
  color: var(--ink-3);
}
.d-select--sm {
  padding: 0.3rem 0.55rem;
  font-size: 0.62rem;
  gap: 0.6rem;
}
.d-btn--dark {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(90deg, var(--navy) 60%, oklch(0.36 0.15 15));
}
.d-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
}
.d-card,
.d-kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  box-shadow: var(--shadow-sm);
}
.d-kpi {
  position: relative;
  padding: 0.8rem 0.9rem;
}
.d-kpi small {
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}
.d-kpi strong {
  display: block;
  margin: 0.2rem 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.d-kpi p {
  color: var(--ink-3);
  font-size: 0.64rem;
}
.d-kpi em {
  margin-right: 0.35rem;
  padding: 0.1rem 0.35rem;
  border-radius: 0.3rem;
  font-style: normal;
  font-weight: 600;
  color: var(--ok);
  background: color-mix(in oklab, var(--ok) 12%, transparent);
}
.d-kpi__ic {
  position: absolute;
  top: 0.75rem;
  right: 0.8rem;
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 0.5rem;
  background: var(--bg-2);
  color: var(--navy);
  font-size: 0.95rem;
}
.d-row {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 0.7rem;
}
.d-row--b {
  grid-template-columns: 1fr 1.25fr;
}
.d-card {
  padding: 0.9rem 1rem;
  min-width: 0;
}
.d-card h5 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.85rem;
}
.d-trend > small {
  color: var(--ink-3);
  font-size: 0.6rem;
}
.d-trend {
  display: flex;
  flex-direction: column;
}
.d-chart {
  flex: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem;
  margin-top: 0.7rem;
  min-height: 170px;
}
.d-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 1rem;
  font-size: 0.56rem;
  color: var(--ink-3);
  text-align: right;
}
.d-plot {
  position: relative;
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 1rem;
}
.d-grid {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px dashed oklch(0.92 0.01 270);
}
.d-grid--1 {
  top: 0;
}
.d-grid--2 {
  top: 25%;
}
.d-grid--3 {
  top: 50%;
}
.d-grid--4 {
  top: 75%;
}
.d-limit {
  position: absolute;
  left: 0;
  right: 0;
  top: 61%;
  border-top: 1.5px dashed oklch(0.62 0.17 25 / 0.55);
}
.d-bars {
  position: absolute;
  inset: 0 0.3rem;
  display: flex;
  align-items: flex-end;
  gap: 3px;
}
.d-bar {
  position: relative;
  flex: 1;
  height: var(--h);
  border-radius: 3px 3px 0 0;
  background: oklch(0.7 0.12 262);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.7s var(--ease);
  transition-delay: calc(var(--i) * 28ms + 900ms);
}
.d-bar.is-flag {
  background: oklch(0.4 0.17 265);
}
.d-bar::after {
  content: attr(data-day);
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%) translateY(0.25rem);
  font-size: 0.48rem;
  color: var(--ink-3);
}
.is-live .d-bar {
  transform: none;
}
.d-tip {
  position: absolute;
  left: var(--x, 66%);
  top: 0;
  transform: translate(-50%, calc(-100% - 6px)) scale(0.8);
  padding: 0.3rem 0.55rem;
  border-radius: 0.45rem;
  background: var(--navy-900);
  color: #fff;
  text-align: center;
  line-height: 1.25;
  white-space: nowrap;
  opacity: 0;
  transition:
    opacity 0.5s var(--ease) 2.1s,
    transform 0.5s var(--ease) 2.1s;
}
.d-tip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 8px;
  height: 8px;
  background: inherit;
  transform: translateX(-50%) rotate(45deg);
}
.d-tip small {
  display: block;
  font-size: 0.55rem;
  opacity: 0.75;
}
.d-tip b {
  font-size: 0.72rem;
}
.is-live .d-tip {
  opacity: 1;
  transform: translate(-50%, calc(-100% - 6px));
}
.d-cat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.d-donut {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0.6rem auto 0.4rem;
}
.d-donut svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  overflow: visible;
}
.d-seg {
  fill: none;
  stroke-width: 7;
  stroke-dasharray: 0 100;
  transition: stroke-dasharray 1.2s var(--ease);
}
.is-live .d-seg {
  stroke-dasharray: var(--len) 100;
  stroke-dashoffset: var(--off);
  transition-delay: 1.2s;
}
.d-seg--1 {
  stroke: var(--k1);
}
.d-seg--2 {
  stroke: var(--k2);
}
.d-seg--3 {
  stroke: var(--k3);
}
.d-seg--4 {
  stroke: var(--k4);
}
.d-seg--5 {
  stroke: var(--k5);
}
.d-donut__mid {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  line-height: 1.3;
}
.d-donut__mid b {
  font-family: var(--font-display);
  font-size: 0.82rem;
}
.d-donut__mid small {
  color: var(--ink-3);
  font-size: 0.56rem;
}
.d-pct {
  position: absolute;
  font-size: 0.58rem;
  font-weight: 600;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.5s var(--ease) 2s;
}
.is-live .d-pct {
  opacity: 1;
}
.d-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
  font-size: 0.64rem;
}
.d-legend li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.d-legend b {
  margin-left: auto;
  font-weight: 600;
}
.k1,
.k2,
.k3,
.k4,
.k5 {
  display: inline-block;
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
}
.k1 {
  background: var(--k1);
}
.k2 {
  background: var(--k2);
}
.k3 {
  background: var(--k3);
}
.k4 {
  background: var(--k4);
}
.k5 {
  background: var(--k5);
}
.d-budget__head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.d-budget__ic {
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  flex: none;
  border-radius: 50%;
  background: color-mix(in oklab, var(--crimson) 12%, #fff);
  color: var(--crimson);
  font-size: 1.05rem;
}
.d-budget__head small {
  font-weight: 600;
}
.d-budget__head p {
  color: var(--ink-3);
}
.d-budget__head p b {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
}
.d-more {
  margin-left: auto;
  align-self: flex-start;
  color: oklch(0.45 0.15 262);
  font-size: 0.62rem;
  font-weight: 600;
  white-space: nowrap;
}
.d-progress {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.8rem 0;
}
.d-progress::before {
  content: "";
  flex: 1;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--bg-2);
}
.d-progress span {
  position: absolute;
}
.d-progress {
  position: relative;
}
.d-progress span {
  left: 0;
  top: 50%;
  height: 0.45rem;
  width: calc((100% - 3rem) * 0.649);
  margin-top: -0.225rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--navy), oklch(0.4 0.15 265));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.3s var(--ease) 1.4s;
}
.is-live .d-progress span {
  transform: none;
}
.d-progress em {
  font-style: normal;
  font-size: 0.62rem;
  color: var(--ink-2);
}
.d-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.d-stats span {
  padding-inline: 0.6rem;
  border-left: 1px solid var(--line);
  line-height: 1.3;
}
.d-stats span:first-child {
  padding-left: 0;
  border-left: 0;
}
.d-stats b {
  display: block;
  font-size: 0.78rem;
}
.d-stats small {
  color: var(--ink-3);
  font-size: 0.6rem;
}
.d-table {
  margin-top: 0.6rem;
  font-size: 0.62rem;
}
.d-tr {
  display: grid;
  grid-template-columns: 0.9fr 1.8fr 1.4fr 0.9fr;
  gap: 0.5rem;
  align-items: center;
  padding: 0.38rem 0.5rem;
  border-top: 1px solid var(--line);
}
.d-tr span:nth-child(3) {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.d-tr span:last-child {
  text-align: right;
  font-weight: 600;
}
.d-tr--head {
  border-top: 0;
  border-radius: 0.4rem;
  background: var(--bg-2);
  color: var(--ink-2);
  font-weight: 600;
}
.js .d-tr:not(.d-tr--head) {
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.5s var(--ease),
    transform 0.5s var(--ease);
}
.is-live .d-tr:not(.d-tr--head) {
  opacity: 1;
  transform: none;
}
.is-live .d-tr:nth-child(2) {
  transition-delay: 1.8s;
}
.is-live .d-tr:nth-child(3) {
  transition-delay: 1.95s;
}
.is-live .d-tr:nth-child(4) {
  transition-delay: 2.1s;
}
.is-live .d-tr:nth-child(5) {
  transition-delay: 2.25s;
}
.chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.95rem;
  border-radius: 1rem;
  background: rgb(255 255 255 / 0.9);
  border: 1px solid rgb(255 255 255 / 0.9);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(12px);
  font-size: 0.8rem;
  transform: translateY(calc((1 - var(--p)) * 2.5rem));
}
.chip b {
  display: block;
  font-size: 0.85rem;
}
.chip small {
  color: var(--ink-3);
}
.chip--b {
  right: -1.5rem;
  top: -1.75rem;
  animation: bob 8s var(--ease-in-out) -3s infinite;
}
@keyframes bob {
  50% {
    translate: 0 -10px;
  }
}
.chip__ic {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.7rem;
  background: var(--grad);
  color: #fff;
  font-size: 1rem;
}
.chip__ic--ok {
  background: var(--ok);
}

/* Facts -------------------------------------------------------------------- */
.facts {
  position: relative;
  z-index: 1;
  padding: 1rem 0 3rem;
}
/* Option C: intro on the left, four feature rows on the right, in one tinted card. */
.facts__card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
  padding: 2.75rem;
  border-radius: 2rem;
  background:
    radial-gradient(circle at 8% 8%, oklch(0.95 0.03 268), transparent 50%),
    radial-gradient(circle at 92% 92%, oklch(0.96 0.03 25), transparent 50%), #fff;
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px -40px rgb(16 24 64 / 0.35);
}
.facts__intro h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}
.facts__intro .muted {
  margin-top: 1rem;
  max-width: 30rem;
  font-size: 1.04rem;
  line-height: 1.65;
}
.facts__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.fact {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1rem;
  align-items: start;
  padding: 1.15rem;
  border-radius: 1.2rem;
  background: rgb(255 255 255 / 0.85);
  border: 1px solid var(--line);
  transition:
    transform 0.45s var(--ease),
    box-shadow 0.45s var(--ease),
    border-color 0.45s;
}
.fact:hover,
.js .fact.reveal.is-in:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in oklab, var(--navy) 18%, var(--line));
}
.fact__tile {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 1rem;
  transition:
    transform 0.5s var(--ease),
    box-shadow 0.5s var(--ease);
}
.fact__tile svg {
  width: 2.3rem;
  height: 2.3rem;
  overflow: visible;
}
.fact__tile--blue {
  background: #eaf0fe;
}
.fact__tile--green {
  background: #dff7ef;
}
.fact__tile--violet {
  background: #efe9fd;
}
.fact__tile--orange {
  background: #fff1e4;
}
.fact:hover .fact__tile {
  transform: rotate(-6deg) scale(1.06);
}
.fact h3 {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.fact p {
  margin-top: 0.3rem;
  color: var(--ink-3);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Entrance: the tile pops in, then its badge bounces, the clock hand turns and
   the shield's tick draws itself. */
.js .fact__tile svg {
  transform: scale(0.6);
  opacity: 0;
  transition:
    transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.4s var(--ease);
  transition-delay: calc(var(--d, 0) * 110ms + 150ms);
}
.js .fact.is-in .fact__tile svg {
  transform: none;
  opacity: 1;
}
.js .fact__badge {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  transition: transform 0.6s cubic-bezier(0.34, 1.7, 0.64, 1);
  transition-delay: calc(var(--d, 0) * 110ms + 550ms);
}
.js .fact.is-in .fact__badge {
  transform: none;
}
.fact__hand {
  transform-box: view-box;
  transform-origin: 35px 35px;
}
.js .fact.is-in .fact__hand {
  animation: tick 1.2s var(--ease) calc(var(--d, 0) * 110ms + 900ms) both;
}
@keyframes tick {
  from {
    transform: rotate(-270deg);
  }
}
.js .fact__check {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.6s var(--ease);
  transition-delay: calc(var(--d, 0) * 110ms + 650ms);
}
.js .fact.is-in .fact__check {
  stroke-dashoffset: 0;
}

/* Scroll reveal */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(4px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease),
    filter 0.9s var(--ease);
  transition-delay: calc(var(--d, 0) * 100ms);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* Product video ------------------------------------------------------------ */
.video {
  padding: 7rem 0 2rem;
}
.video__head {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 3rem;
}
.video__stage {
  --p: 0;
  perspective: 1800px;
}
.video__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 1040px;
  margin-inline: auto;
  padding: 0.5rem;
  border-radius: 1.6rem;
  background: linear-gradient(
    140deg,
    rgb(255 255 255 / 0.9),
    color-mix(in oklab, var(--crimson) 25%, #fff),
    rgb(255 255 255 / 0.9)
  );
  box-shadow: var(--shadow-xl);
  transform: scale(calc(0.9 + var(--p) * 0.1)) rotateX(calc((1 - var(--p)) * 10deg));
  will-change: transform;
}
.video__frame::after {
  content: "";
  position: absolute;
  inset: 10% 8% -6%;
  z-index: -1;
  border-radius: 2rem;
  background: var(--grad);
  filter: blur(70px);
  opacity: 0.3;
}
.video__poster,
.video__frame iframe {
  position: relative;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 1.15rem;
  display: block;
}
.video__poster {
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  color: #fff;
  font: inherit;
  background:
    radial-gradient(50rem 24rem at 80% 10%, oklch(0.4 0.16 25 / 0.75), transparent 60%),
    radial-gradient(40rem 24rem at 15% 90%, oklch(0.34 0.13 268 / 0.85), transparent 60%),
    var(--navy-900);
}
.video__thumb {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 1.2s var(--ease);
}
.video__thumb.has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(10 14 40 / 0.15), rgb(10 14 40 / 0.55));
}
.video__poster:hover .video__thumb {
  transform: scale(1.04);
}
.video__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}
.video__thumb.has-image ~ .video__grid,
.video__thumb.has-image ~ .video__brand {
  display: none;
}
.video__brand {
  position: absolute;
  top: 1.5rem;
  left: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  opacity: 0.9;
}
.video__play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 5.5rem;
  height: 5.5rem;
  margin: -2.75rem 0 0 -2.75rem;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  font-size: 2rem;
  box-shadow: 0 20px 50px -12px rgb(0 0 0 / 0.6);
  transition: transform 0.5s var(--ease);
}
.video__play svg {
  margin-left: 0.25rem;
}
.video__poster:hover .video__play {
  transform: scale(1.1);
}
.video__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgb(255 255 255 / 0.6);
  animation: ring 2.4s var(--ease) infinite;
}
.video__ring--2 {
  animation-delay: 1.2s;
}
@keyframes ring {
  from {
    transform: scale(1);
    opacity: 0.8;
  }
  to {
    transform: scale(1.9);
    opacity: 0;
  }
}
.video__label {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.12);
  border: 1px solid rgb(255 255 255 / 0.2);
  backdrop-filter: blur(8px);
  font-size: 0.85rem;
  white-space: nowrap;
}
.video__poster.is-soon {
  cursor: default;
}
.video__poster.is-soon .video__play {
  opacity: 0.85;
}
.is-static .video__frame {
  transform: none;
  opacity: 1;
}

/* Story (pinned) ----------------------------------------------------------- */
.story {
  --p: 0;
  position: relative;
  height: 270vh;
}
.story__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.story__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: center;
}
.story__title {
  max-width: 14ch;
}
.story__steps {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.story__steps li {
  display: flex;
  gap: 1rem;
  padding: 0.95rem 1.1rem;
  border-radius: 1rem;
  opacity: 0.38;
  transition:
    opacity 0.5s var(--ease),
    background 0.5s var(--ease),
    box-shadow 0.5s var(--ease),
    transform 0.5s var(--ease);
}
.story__steps li.is-on {
  opacity: 1;
  background: #fff;
  box-shadow: var(--shadow-md);
  transform: translateX(6px);
}
.num {
  flex: none;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--crimson);
  padding-top: 0.2rem;
}
.story__steps h3 {
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.story__steps p {
  margin-top: 0.2rem;
  color: var(--ink-2);
  font-size: 0.95rem;
}
.story__bar {
  margin-top: 1.5rem;
  height: 3px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}
.story__bar span {
  display: block;
  height: 100%;
  background: var(--grad);
  transform-origin: left;
  transform: scaleX(var(--p));
}
.story__visual {
  position: relative;
  height: 470px;
  border-radius: 1.75rem;
  background:
    radial-gradient(circle at 20% 15%, oklch(0.93 0.04 268), transparent 55%),
    radial-gradient(circle at 85% 85%, oklch(0.94 0.04 25), transparent 55%), var(--bg-2);
  border: 1px solid var(--line);
  overflow: hidden;
}
.scene {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 2rem;
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  filter: blur(6px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease),
    filter 0.7s var(--ease);
  pointer-events: none;
}
.scene.is-on {
  opacity: 1;
  transform: none;
  filter: none;
}
.scene.is-past {
  transform: translateY(-40px) scale(0.96);
}
.sheet {
  width: min(360px, 100%);
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xl);
  display: grid;
  gap: 0.9rem;
}
.sheet__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}
.sheet label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-3);
}
.field {
  display: flex;
  justify-content: space-between;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
}
.field i {
  font-style: normal;
  color: var(--ink-3);
}
.field--type {
  border-color: color-mix(in oklab, var(--navy) 40%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--navy) 10%, transparent);
}
.scene.is-on .field--type {
  animation: caret 1s steps(1) infinite;
}
@keyframes caret {
  50% {
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--crimson) 14%, transparent);
  }
}
.sheet__save {
  justify-self: start;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
}
.months {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}
.m {
  display: grid;
  place-items: center;
  height: 3.2rem;
  border-radius: 0.8rem;
  border: 1px dashed var(--line);
  font-weight: 600;
  color: var(--ink-3);
}
.m--closed {
  border: 0;
  background: var(--grad);
  color: #fff;
}
.m--closing {
  border: 1px solid var(--line);
  color: var(--ink);
}
.scene.is-on .m--closing {
  animation: lockin 0.9s var(--ease) 0.6s forwards;
}
@keyframes lockin {
  60% {
    transform: scale(1.08);
  }
  to {
    border-color: transparent;
    background: var(--grad);
    color: #fff;
  }
}
.sheet__note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--ink-2);
}
.okdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--ok) 20%, transparent);
}
.sheet--report {
  --k1: oklch(0.3 0.12 268);
  --k2: oklch(0.5 0.19 25);
  --k3: oklch(0.62 0.12 235);
  --k4: oklch(0.72 0.15 55);
  width: min(420px, 100%);
  padding: 0;
  overflow: hidden;
  gap: 0;
}
.report__band {
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding: 1rem 1.25rem;
  background: var(--navy);
  color: #fff;
  border-bottom: 3px solid var(--crimson);
  font-size: 0.75rem;
}
.report__band small {
  opacity: 0.75;
}
/* Summary figures, as on the first page of the PDF report */
.report__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  padding: 1rem 1.25rem 0.6rem;
}
.report__cards span {
  display: grid;
  gap: 0.1rem;
  padding: 0.45rem 0.5rem;
  border-radius: 0.4rem;
  background: var(--bg-2);
  border-left: 3px solid var(--navy);
  opacity: 0;
  transform: translateY(8px);
}
.report__cards span:nth-child(even) {
  border-left-color: var(--crimson);
}
.report__cards small {
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.report__cards b {
  font-family: var(--font-display);
  font-size: 0.74rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
/* The ledger rows */
.report__table {
  display: grid;
  padding: 0.3rem 1.25rem 0.9rem;
  font-size: 0.7rem;
}
.report__row {
  display: grid;
  grid-template-columns: 3.4rem 1fr auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.38rem 0;
  border-top: 1px solid var(--line);
  opacity: 0;
  transform: translateX(10px);
}
.report__row span:nth-child(2) {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
}
.report__row span:last-child {
  text-align: right;
  font-weight: 600;
}
.report__row span:first-child {
  color: var(--ink-3);
}
.report__row--head {
  border-top: 0;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.report__row--head span {
  font-weight: 600 !important;
}
.report__row--total {
  border-top: 1.5px solid var(--navy);
  font-weight: 700;
}
.report__row--total span:nth-child(2) {
  font-weight: 700;
}
.report__table .k1,
.report__table .k2,
.report__table .k3,
.report__table .k4 {
  display: inline-block;
  flex: none;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
}
.report__table .k1 {
  background: var(--k1);
}
.report__table .k2 {
  background: var(--k2);
}
.report__table .k3 {
  background: var(--k3);
}
.report__table .k4 {
  background: var(--k4);
}
/* When the step shows: the figures rise one by one, then the rows slide in. */
.scene.is-on .report__cards span,
.scene.is-on .report__row {
  animation: pop 0.55s var(--ease) forwards;
}
.scene.is-on .report__cards span:nth-child(2) {
  animation-delay: 0.08s;
}
.scene.is-on .report__cards span:nth-child(3) {
  animation-delay: 0.16s;
}
.scene.is-on .report__cards span:nth-child(4) {
  animation-delay: 0.24s;
}
.scene.is-on .report__row:nth-child(1) {
  animation-delay: 0.3s;
}
.scene.is-on .report__row:nth-child(2) {
  animation-delay: 0.38s;
}
.scene.is-on .report__row:nth-child(3) {
  animation-delay: 0.46s;
}
.scene.is-on .report__row:nth-child(4) {
  animation-delay: 0.54s;
}
.scene.is-on .report__row:nth-child(5) {
  animation-delay: 0.62s;
}
.scene.is-on .report__row:nth-child(6) {
  animation-delay: 0.74s;
}
@keyframes pop {
  to {
    opacity: 1;
    transform: none;
  }
}
.report__files {
  display: flex;
  gap: 0.5rem;
  padding: 0 1.25rem 1.25rem;
}
.file {
  padding: 0.4rem 0.75rem;
  border-radius: 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
}
.file--pdf {
  background: var(--crimson);
}
.file--xls {
  background: var(--ok);
}
.file--zip {
  background: var(--navy);
}

/* Capabilities (horizontal) ------------------------------------------------ */
.caps {
  --p: 0;
  position: relative;
  height: 300vh;
  background: #fff;
  border-top: 1px solid var(--line);
}
.caps__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3rem;
  overflow: hidden;
}
.caps__head h2 {
  max-width: 20ch;
}
.caps__track {
  display: flex;
  gap: 1.25rem;
  padding-inline: max(1.25rem, calc((100vw - 1200px) / 2));
  width: max-content;
  transform: translateX(calc(var(--shift, 0px) * -1));
  will-change: transform;
}
.cap {
  width: 320px;
  min-height: 250px;
  padding: 1.75rem;
  border-radius: 1.5rem;
  background: var(--bg);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.5s var(--ease),
    box-shadow 0.5s var(--ease),
    border-color 0.5s;
}
.cap:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: color-mix(in oklab, var(--crimson) 25%, var(--line));
}
.cap__ic {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: var(--grad);
  color: #fff;
  font-size: 1.35rem;
  box-shadow: 0 10px 20px -10px color-mix(in oklab, var(--crimson) 70%, transparent);
}
.cap h3 {
  margin-top: auto;
  padding-top: 2.5rem;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.cap p {
  margin-top: 0.5rem;
  color: var(--ink-2);
  font-size: 0.95rem;
}

/* Security ----------------------------------------------------------------- */
.security {
  position: relative;
  padding: 8rem 0;
  color: #fff;
  background:
    radial-gradient(60rem 30rem at 85% 10%, oklch(0.36 0.15 25 / 0.55), transparent 60%),
    radial-gradient(50rem 30rem at 10% 90%, oklch(0.32 0.13 268 / 0.7), transparent 60%),
    var(--navy-900);
  overflow: hidden;
}
.security__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.security__copy > p:not(.eyebrow) {
  margin-top: 1.25rem;
  color: rgb(255 255 255 / 0.72);
  font-size: 1.08rem;
  max-width: 34rem;
}
.ticks {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: grid;
  gap: 0.75rem;
}
.ticks li {
  display: flex;
  gap: 0.7rem;
  color: rgb(255 255 255 / 0.85);
}
.ticks li::before {
  content: "";
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
      center / 60% no-repeat,
    var(--grad);
}
.chain {
  --p: 0;
  --t: calc(var(--p) * 5);
  display: grid;
  justify-items: center;
}
.block {
  --on: clamp(0, calc(var(--t) - var(--i)), 1);
  width: min(340px, 100%);
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  background: rgb(255 255 255 / calc(0.04 + var(--on) * 0.06));
  border: 1px solid rgb(255 255 255 / calc(0.08 + var(--on) * 0.22));
  box-shadow: 0 0 calc(var(--on) * 40px) -10px oklch(0.6 0.2 25 / 0.7);
  opacity: calc(0.3 + var(--on) * 0.7);
  transform: translateX(calc((1 - var(--on)) * 24px));
}
.block small {
  grid-row: span 2;
  align-self: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--crimson-300);
}
.block b {
  font-size: 0.95rem;
}
.block code {
  font-size: 0.75rem;
  color: rgb(255 255 255 / 0.55);
}
.bond {
  --on: clamp(0, calc((var(--t) - var(--i)) * 2), 1);
  width: 2px;
  height: 2.25rem;
  background:
    linear-gradient(var(--crimson-300), var(--crimson-300)) top / 100% calc(var(--on) * 100%)
      no-repeat,
    rgb(255 255 255 / 0.12);
}
.bond {
  border-radius: 2px;
}
.verified {
  --on: clamp(0, calc((var(--t) - var(--i)) * 2), 1);
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--ok) 25%, transparent);
  border: 1px solid color-mix(in oklab, var(--ok) 55%, transparent);
  font-weight: 600;
  font-size: 0.9rem;
  opacity: var(--on);
  transform: scale(calc(0.85 + var(--on) * 0.15));
}

/* FAQ ---------------------------------------------------------------------- */
.faq-wrap {
  padding: 8rem 0;
}
.faq-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
  align-items: start;
}
.faq-grid > div:first-child p.muted {
  margin-top: 1rem;
}
.faq {
  display: grid;
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: -0.015em;
  cursor: pointer;
  transition: color 0.25s;
}
.faq summary:hover {
  color: var(--crimson);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  flex: none;
  width: 0.7rem;
  height: 0.7rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.4s var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(-135deg) translateY(-3px);
}
.faq details p {
  padding-bottom: 1.4rem;
  color: var(--ink-2);
  max-width: 40rem;
  animation: open 0.5s var(--ease);
}
@keyframes open {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

/* Final -------------------------------------------------------------------- */
.final {
  position: relative;
  margin: 0 1.25rem 1.25rem;
  padding: 8rem 0;
  border-radius: 2rem;
  background: var(--navy-900);
  color: #fff;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.final__glow {
  position: absolute;
  inset: -40%;
  z-index: -1;
  background: conic-gradient(
    from 0deg at 50% 50%,
    oklch(0.36 0.15 25 / 0.9),
    oklch(0.3 0.13 268 / 0.9),
    oklch(0.4 0.14 320 / 0.9),
    oklch(0.36 0.15 25 / 0.9)
  );
  filter: blur(90px);
  opacity: 0.7;
  animation: spin 20s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(1turn);
  }
}
.final h2 {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
}
.grad {
  background: linear-gradient(90deg, #fff, var(--crimson-300));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.final p {
  margin: 1.25rem 0 2.25rem;
  color: rgb(255 255 255 / 0.75);
  font-size: 1.1rem;
}

/* Footer ------------------------------------------------------------------- */
.footer {
  padding: 3rem 0 2rem;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}
.footer__note {
  margin-top: 0.75rem;
  color: var(--ink-3);
  font-size: 0.9rem;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  font-size: 0.92rem;
  color: var(--ink-2);
}
.footer__links a:hover {
  color: var(--crimson);
}
.footer__copy {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--ink-3);
}

/* Static layout: phones, tablets and "reduce motion" ------------------------ */
.is-static .story,
.is-static .caps {
  height: auto;
}
.is-static .story__sticky,
.is-static .caps__sticky {
  position: static;
  height: auto;
  padding: 6rem 0;
}
.is-static .story__steps li {
  opacity: 1;
}
.is-static .story__visual {
  display: none;
}
.is-static .story__bar {
  display: none;
}
.is-static .caps__track {
  width: auto;
  transform: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
}
.is-static .cap {
  flex: none;
  scroll-snap-align: start;
  width: min(300px, 82vw);
}
.is-static .screen {
  transform: none;
}

@media (max-width: 1000px) {
  .story__inner,
  .security__inner,
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .dash {
    grid-template-columns: 1fr;
  }
  .d-side,
  .d-actions .d-btn:first-child,
  .d-actions .d-select {
    display: none;
  }
  .facts__card {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
  }
  .chip--b {
    right: 0.5rem;
  }
}
@media (max-width: 820px) {
  .nav__links,
  .nav__actions .link {
    display: none;
  }
  .nav__toggle {
    display: flex;
  }
  .nav__actions {
    margin-left: auto;
  }
}
@media (max-width: 640px) {
  .hero {
    padding-top: 8rem;
  }
  .video {
    padding-top: 4.5rem;
  }
  .window__nav,
  .window__spacer {
    display: none;
  }
  .window__bar {
    gap: 0.75rem;
    padding: 0 0.75rem;
  }
  /* The changing word gets its own line, so the headline keeps one shape. */
  .hero__title .w--rotor {
    display: block;
    margin-inline: auto;
  }
  .video__frame {
    padding: 0.3rem;
    border-radius: 1rem;
  }
  .video__poster {
    border-radius: 0.8rem;
  }
  .video__play {
    width: 4rem;
    height: 4rem;
    margin: -2rem 0 0 -2rem;
    font-size: 1.5rem;
  }
  .video__brand {
    display: none;
  }
  .video__label {
    bottom: 0.75rem;
    font-size: 0.75rem;
  }
  .d-kpis {
    grid-template-columns: 1fr 1fr;
  }
  .d-row,
  .d-row--b {
    grid-template-columns: 1fr;
  }
  .d-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .d-body {
    padding: 0.8rem;
  }
  .d-tr {
    grid-template-columns: 0.9fr 1.8fr 0.9fr;
  }
  .d-tr > :nth-child(3) {
    display: none;
  }
  .chip {
    display: none;
  }
  .facts__card {
    padding: 1.5rem 1.1rem;
    border-radius: 1.5rem;
  }
  .facts__list {
    grid-template-columns: 1fr;
  }
  .security,
  .faq-wrap,
  .final {
    padding: 5rem 0;
  }
  .final {
    margin: 0 0.75rem 0.75rem;
    padding-inline: 1rem;
  }
  .nav__actions .btn--primary {
    padding: 0.45rem 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
}
