/* ==========================================================================
   Kofeblan. — website styles

   1.  Fonts
   2.  Design tokens
   3.  Reset & base
   4.  Typography
   5.  Layout
   6.  Buttons, switch & small controls
   7.  Wordmark
   8.  Header & mobile menu
   9.  Footer
   10. Shared components (cards, pills, accordion, tabs, toast, back-to-top)
   11. Motion system (reveals, page transitions, reduced motion)
   12. App mockup
   13. Home — hero, marquee, features, story, reading, tools, privacy,
       engine, personalise, FAQ, call to action
   14. Inner pages — features, download, what's new, help, 404
   15. Reduced motion — final, still states
   ========================================================================== */


/* 1. Fonts ---------------------------------------------------------------- */

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* 2. Design tokens -------------------------------------------------------- */

:root {
  /* Brand — sampled from the Kofeblan. logo sheet */
  --ink: #0B0B13;
  --brand: #5B3DF5;
  --brand-light: #8C77FF;      /* accent on dark backgrounds (reversed logo) */
  --mist: #F4F3F8;             /* background of the alternate logo */
  --paper: #FFFFFF;

  --brand-50: #F6F4FF;
  --brand-100: #EEEAFF;
  --brand-200: #DCD4FF;
  --brand-300: #BDB0FF;
  --brand-600: #4C2FE6;
  --brand-700: #3D22C4;

  --ink-800: #14141F;
  --ink-700: #1C1C2A;
  --ink-600: #26263A;
  --ink-500: #34344B;

  --text: var(--ink);
  --text-muted: #4B4B5C;
  --text-faint: #6B6B7D;
  --text-on-dark: #FFFFFF;
  --muted-on-dark: #A6A6BC;
  --line: #E8E6F0;
  --line-strong: #D6D3E2;
  --line-dark: rgb(255 255 255 / .1);

  --green: #2FA36B;
  --amber: #E09B12;
  --red: #E5484D;

  /* The app's own colours, used by the mockups */
  --app-accent: #6366F1;
  --hl-yellow: #FFD43B;
  --note-yellow: #FFC53D;
  --ul-blue: #2F80ED;
  --doc-band: #2C4570;

  --font-display: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-xl: 34px;

  --shadow-xs: 0 1px 2px rgb(11 11 19 / .06);
  --shadow-sm: 0 1px 2px rgb(11 11 19 / .05), 0 2px 8px -2px rgb(11 11 19 / .06);
  --shadow: 0 1px 2px rgb(11 11 19 / .05), 0 14px 34px -14px rgb(43 25 140 / .22);
  --shadow-lg: 0 2px 6px rgb(11 11 19 / .05), 0 34px 80px -28px rgb(43 25 140 / .38);
  --ring: 0 0 0 1px var(--line);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-soft: cubic-bezier(.45, .05, .25, 1);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
  --section-y: clamp(84px, 11vw, 156px);
}

@media (max-width: 899px) {
  :root { --header-h: 64px; }
}


/* 3. Reset & base --------------------------------------------------------- */

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
table { border-collapse: collapse; }
kbd { font-family: inherit; }

::selection { background: rgb(91 61 245 / .22); }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.section--ink :focus-visible,
.section--brand :focus-visible,
.site-footer :focus-visible { outline-color: #fff; }

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform .25s var(--ease-out);
}
.skip-link:focus { transform: none; }


/* 4. Typography ----------------------------------------------------------- */

.h1, .h2, .h3, .h4, .display {
  font-family: var(--font-display);
  font-weight: 600;
  color: inherit;
  text-wrap: balance;
}

.h1 {
  font-size: clamp(2.9rem, 1.55rem + 5.6vw, 6.25rem);
  line-height: .98;
  letter-spacing: -.045em;
}

.h2 {
  font-size: clamp(2.15rem, 1.45rem + 2.9vw, 3.9rem);
  line-height: 1.03;
  letter-spacing: -.038em;
}

.h3 {
  font-size: clamp(1.25rem, 1.12rem + .5vw, 1.55rem);
  line-height: 1.2;
  letter-spacing: -.022em;
}

.h4 {
  font-size: 1.125rem;
  line-height: 1.3;
  letter-spacing: -.015em;
}

.lead {
  font-size: clamp(1.075rem, 1rem + .38vw, 1.3rem);
  line-height: 1.55;
  color: var(--text-muted);
  text-wrap: pretty;
}

.body-lg { font-size: 1.0625rem; line-height: 1.65; color: var(--text-muted); text-wrap: pretty; }
.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .18em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--text-faint);
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

/* The brand full stop: the purple dot of the wordmark, reused at the end of headlines */
.dot { color: var(--brand); }
.section--ink .dot { color: var(--brand-light); }
.section--brand .dot { color: #fff; }

/* "Kofeblan." written in running text */
.brand-name { font-weight: 600; white-space: nowrap; }
.brand-name::after { content: "."; color: var(--brand); }
.section--ink .brand-name::after,
.site-footer .brand-name::after { color: var(--brand-light); }
.section--brand .brand-name::after { color: inherit; }

.text-link {
  color: var(--brand);
  font-weight: 600;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size .35s var(--ease-out);
}
.text-link:hover { background-size: 100% 1.5px; }

.prose p + p { margin-top: 1em; }
.prose a { color: var(--brand); font-weight: 600; }

kbd.key,
.key {
  display: inline-grid;
  place-items: center;
  min-width: 1.9em;
  height: 1.9em;
  padding: 0 .5em;
  border-radius: 7px;
  background: #fff;
  box-shadow: inset 0 -2px 0 var(--line-strong), 0 0 0 1px var(--line-strong);
  font-family: var(--font-body);
  font-size: .82em;
  font-weight: 600;
  line-height: 1;
  color: var(--text);
  white-space: nowrap;
}


/* 5. Layout ---------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: calc(860px + var(--gutter) * 2); }
.container--wide { max-width: calc(1320px + var(--gutter) * 2); }

.section {
  position: relative;
  padding-block: var(--section-y);
  overflow-x: clip;
}

.section--mist { background: var(--mist); }
.section--ink { background: var(--ink); color: var(--text-on-dark); }
.section--brand { background: var(--brand); color: #fff; }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }
.section--flush-top { padding-top: 0; }

.section-head {
  max-width: 780px;
  margin: 0 auto clamp(48px, 6vw, 80px);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 20px;
}
.section-head--left { margin-inline: 0; text-align: left; justify-items: start; }
.section-head .lead { max-width: 640px; }
.section--ink .lead,
.section--ink .muted { color: var(--muted-on-dark); }
.section--ink .eyebrow { color: var(--muted-on-dark); }
.section--ink .eyebrow::before { background: var(--brand-light); }
.section--brand .lead { color: #E3DDFF; }
.section--brand .eyebrow { color: #E3DDFF; }
.section--brand .eyebrow::before { background: #fff; }

.page-top { padding-top: calc(var(--header-h) + clamp(48px, 7vw, 104px)); }

.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 999px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.split--reverse > :first-child { order: 2; }
@media (max-width: 899px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split--reverse > :first-child { order: 0; }
}

.stack { display: grid; gap: 20px; justify-items: start; }
.stack--sm { gap: 12px; }
.stack--lg { gap: 28px; }
.center { text-align: center; justify-items: center; }


/* 6. Buttons, switch & small controls -------------------------------------- */

.btn {
  --btn-h: 50px;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--btn-h);
  padding: 0 24px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background-color .25s, color .25s;
}
.btn .icon { width: 18px; height: 18px; transition: transform .35s var(--ease-out); }
.btn:hover .icon--nudge { transform: translateX(3px); }
.btn:active { transform: scale(.97); transition-duration: .12s; }

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .22), 0 1px 2px rgb(11 11 19 / .18), 0 10px 26px -10px rgb(91 61 245 / .75);
}
.btn--primary:hover {
  background: var(--brand-600);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .22), 0 1px 2px rgb(11 11 19 / .18), 0 16px 34px -12px rgb(91 61 245 / .85);
}

.btn--secondary {
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-xs);
}
.btn--secondary:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px #C4C1D4, 0 10px 24px -12px rgb(11 11 19 / .28);
}

.btn--ghost { color: var(--ink); padding-inline: 16px; }
.btn--ghost:hover { background: rgb(11 11 19 / .05); }

.btn--light { background: #fff; color: var(--ink); box-shadow: 0 10px 30px -12px rgb(0 0 0 / .45); }
.btn--light:hover { transform: translateY(-1px); background: #F7F6FF; }

.btn--outline-light { color: #fff; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .5); }
.btn--outline-light:hover { box-shadow: inset 0 0 0 1.5px #fff; background: rgb(255 255 255 / .08); transform: translateY(-1px); }

.btn--sm { --btn-h: 40px; padding: 0 16px; font-size: .925rem; }
.btn--lg { --btn-h: 58px; padding: 0 30px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* Ripple (added by JS on press) */
.ripple {
  position: absolute;
  z-index: -1;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: currentColor;
  opacity: .25;
  pointer-events: none;
}

/* Download button — designed, wired up later ---------------------------- */

.btn-dl {
  --dl-h: 66px;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: var(--dl-h);
  padding: 0 11px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(180deg, #6C52FF 0%, var(--brand) 52%, #4F31EA 100%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / .3),
    inset 0 -1px 0 rgb(0 0 0 / .14),
    0 2px 4px rgb(11 11 19 / .14),
    0 18px 40px -16px rgb(91 61 245 / .9);
  overflow: hidden;
  text-align: left;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.btn-dl::before {
  /* sheen that sweeps across on hover */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgb(255 255 255 / .32) 48%, transparent 66%);
  transform: translateX(-110%);
  transition: transform .9s var(--ease-out);
}
.btn-dl:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / .3),
    inset 0 -1px 0 rgb(0 0 0 / .14),
    0 2px 4px rgb(11 11 19 / .14),
    0 26px 50px -18px rgb(91 61 245 / 1);
}
.btn-dl:hover::before { transform: translateX(110%); }
.btn-dl:active { transform: translateY(0) scale(.98); transition-duration: .12s; }

.btn-dl__icon,
.btn-dl__arrow {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex: none;
}
.btn-dl__icon { background: rgb(255 255 255 / .16); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14); }
.btn-dl__icon .icon { width: 22px; height: 22px; }
.btn-dl__text { display: grid; gap: 4px; padding-right: 4px; }
.btn-dl__label { font-size: 1.06rem; font-weight: 650; line-height: 1.1; letter-spacing: -.01em; white-space: nowrap; }
.btn-dl__meta { font-size: .78rem; font-weight: 500; line-height: 1.1; opacity: .8; white-space: nowrap; }
.btn-dl__arrow { background: #fff; color: var(--brand); overflow: hidden; margin-left: 6px; }
.btn-dl__arrow .icon { width: 20px; height: 20px; stroke-width: 2.4; }
.btn-dl:hover .btn-dl__arrow .icon { animation: dl-arrow .75s var(--ease-out); }

@keyframes dl-arrow {
  0% { transform: translateY(0); }
  42% { transform: translateY(140%); }
  43% { transform: translateY(-140%); opacity: 0; }
  60% { opacity: 1; }
  100% { transform: translateY(0); }
}

.btn-dl--light {
  color: var(--ink);
  background: #fff;
  box-shadow: inset 0 -1px 0 rgb(11 11 19 / .08), 0 22px 44px -18px rgb(11 11 19 / .55);
}
.btn-dl--light::before { background: linear-gradient(105deg, transparent 30%, rgb(91 61 245 / .1) 48%, transparent 66%); }
.btn-dl--light:hover { box-shadow: inset 0 -1px 0 rgb(11 11 19 / .08), 0 30px 54px -20px rgb(11 11 19 / .6); }
.btn-dl--light .btn-dl__icon { background: var(--brand-50); color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand-100); }
.btn-dl--light .btn-dl__arrow { background: var(--brand); color: #fff; }

.btn-dl--outline {
  color: var(--ink);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-xs);
}
.btn-dl--outline::before { background: linear-gradient(105deg, transparent 30%, rgb(91 61 245 / .08) 48%, transparent 66%); }
.btn-dl--outline:hover { box-shadow: inset 0 0 0 1px #C4C1D4, 0 16px 34px -18px rgb(11 11 19 / .35); }
.btn-dl--outline .btn-dl__icon { background: var(--mist); color: var(--ink); box-shadow: none; }
.btn-dl--outline .btn-dl__arrow { background: var(--ink); color: #fff; }

.btn-dl--block { width: 100%; }
.btn-dl--block .btn-dl__text { flex: 1; }

@media (max-width: 479px) {
  .btn-dl { --dl-h: 60px; gap: 12px; }
  .btn-dl__icon, .btn-dl__arrow { width: 42px; height: 42px; }
  .btn-dl__label { font-size: 1rem; }
}

/* Show the download button that matches the visitor's computer (set in <head>) */
html:not([data-os="mac"]) [data-os-only="mac"],
html:not([data-os="windows"]) [data-os-only="windows"],
html[data-os="mac"] [data-os-only="other"],
html[data-os="windows"] [data-os-only="other"] { display: none !important; }

/* Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 22px;
  flex: none;
  border-radius: 999px;
  background: #D9D7E4;
  box-shadow: inset 0 1px 2px rgb(11 11 19 / .12);
  transition: background-color .3s var(--ease-out);
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgb(11 11 19 / .3);
  transition: transform .35s var(--ease-spring);
}
[aria-checked="true"] > .switch,
[aria-checked="true"] .switch { background: var(--brand); }
[aria-checked="true"] > .switch::after,
[aria-checked="true"] .switch::after { transform: translateX(14px); }

/* Reduce-motion toggle */
.motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 8px 0 12px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 550;
  color: var(--text-muted);
  transition: background-color .25s, color .25s, box-shadow .25s;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  background: rgb(255 255 255 / .6);
}
.motion-toggle:hover { color: var(--text); background: #fff; box-shadow: inset 0 0 0 1px #C4C1D4; }
.motion-toggle .icon { width: 18px; height: 18px; }
.motion-toggle[aria-checked="true"] { color: var(--brand); }
.motion-toggle__label { white-space: nowrap; }

@media (max-width: 1179px) {
  .site-header .motion-toggle__label { display: none; }
  .site-header .motion-toggle { padding: 0 7px 0 10px; gap: 8px; }
}
@media (min-width: 1180px) {
  .motion-toggle[data-tip]::after { display: none; }
}

.motion-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  text-align: left;
  font-weight: 550;
  background: var(--mist);
  transition: background-color .25s;
}
.motion-row:hover { background: #ECEAF4; }
.motion-row__text { display: grid; gap: 2px; }
.motion-row__text small { font-size: .82rem; font-weight: 450; color: var(--text-faint); }
.site-footer .motion-row { background: rgb(255 255 255 / .06); color: #fff; }
.site-footer .motion-row:hover { background: rgb(255 255 255 / .1); }
.site-footer .motion-row__text small { color: var(--muted-on-dark); }
.site-footer .switch { background: rgb(255 255 255 / .2); box-shadow: none; }
.site-footer [aria-checked="true"] .switch { background: var(--brand-light); }

/* Tooltip */
[data-tip] { position: relative; }
[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  z-index: 5;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: .78rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -4px);
  transition: opacity .2s, transform .25s var(--ease-out);
}
[data-tip]:hover::after,
[data-tip]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); transition-delay: .35s; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  background: var(--brand-50);
  color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand-100);
}
.badge .icon { width: 14px; height: 14px; }
.badge--ink { background: var(--ink); color: #fff; box-shadow: none; }
.badge--green { background: #E8F7EF; color: #1E7A4E; box-shadow: inset 0 0 0 1px #CDEEDB; }
.badge--light { background: rgb(255 255 255 / .14); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .2); }

.icon-chip {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--brand-50);
  color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand-100);
  flex: none;
}
.icon-chip .icon { width: 22px; height: 22px; }
.section--ink .icon-chip { background: rgb(140 119 255 / .14); color: var(--brand-light); box-shadow: inset 0 0 0 1px rgb(140 119 255 / .22); }


/* 7. Wordmark -------------------------------------------------------------- */

.wordmark { display: block; height: auto; overflow: visible; }
.wordmark .wm-ink { fill: var(--wm-ink, var(--ink)); }
.wordmark .wm-chev,
.wordmark .wm-dot { fill: var(--wm-accent, var(--brand)); }
.wordmark .wm-chev,
.wordmark .wm-dot,
.wordmark .wm-ink { transform-box: fill-box; transform-origin: center; }
.wordmark--reversed { --wm-ink: #fff; --wm-accent: var(--brand-light); }
.wordmark--on-brand { --wm-ink: #fff; --wm-accent: #fff; }
.wordmark--split .wm-blan { fill: var(--brand); }

.logo-link { display: inline-flex; align-items: center; border-radius: 8px; }
.logo-link .wordmark { width: 132px; }
.logo-link .wm-chev { transition: transform .5s var(--ease-spring); }
.logo-link .wm-dot { transition: transform .5s var(--ease-spring); }
.logo-link:hover .wm-chev { transform: translateX(-12%); }
.logo-link:hover .wm-dot { transform: translateY(-34%); }

/* Plays once when the page opens */
.js .site-header .wm-chev { animation: wm-chev-in 1s var(--ease-spring) .15s both; }
.js .site-header .wm-dot { animation: wm-dot-in .9s var(--ease-spring) .45s both; }
@keyframes wm-chev-in {
  from { transform: translateX(-70%); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@keyframes wm-dot-in {
  0% { transform: translateY(-160%) scale(.4); opacity: 0; }
  60% { opacity: 1; }
  100% { transform: none; opacity: 1; }
}


/* 8. Header & mobile menu -------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  view-transition-name: site-header;
  background-color: rgb(255 255 255 / 0);
  box-shadow: 0 1px 0 rgb(11 11 19 / 0);
  -webkit-backdrop-filter: saturate(1) blur(0);
  backdrop-filter: saturate(1) blur(0);
  transition: background-color .35s var(--ease-out), box-shadow .35s var(--ease-out),
    backdrop-filter .35s var(--ease-out), -webkit-backdrop-filter .35s var(--ease-out);
}
.site-header.is-scrolled,
.menu-open .site-header {
  background-color: rgb(255 255 255 / .8);
  box-shadow: 0 1px 0 rgb(11 11 19 / .07);
  -webkit-backdrop-filter: saturate(1.8) blur(18px);
  backdrop-filter: saturate(1.8) blur(18px);
}

.site-header__bar {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--header-h);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  transform: scaleX(var(--progress, 0));
  transform-origin: 0 50%;
  opacity: 0;
  transition: opacity .3s;
}
.site-header.is-scrolled .scroll-progress { opacity: 1; }

.nav { position: relative; display: flex; align-items: center; gap: 2px; margin-left: 28px; }
.nav__link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 15px;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 550;
  color: var(--text-muted);
  transition: color .2s;
}
.nav__link:hover,
.nav__link[aria-current="page"] { color: var(--text); }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--brand);
}
.nav__pill {
  position: absolute;
  top: 0;
  left: 0;
  height: 40px;
  width: var(--pill-w, 0);
  border-radius: 999px;
  background: rgb(11 11 19 / .055);
  transform: translateX(var(--pill-x, 0));
  opacity: 0;
  transition: transform .45s var(--ease-out), width .45s var(--ease-out), opacity .25s;
  pointer-events: none;
}
.nav.has-pill .nav__pill { opacity: 1; }

.menu-btn {
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--ink);
  transition: background-color .2s;
}
.menu-btn:hover { background: rgb(11 11 19 / .05); }
.menu-btn__lines { position: relative; width: 20px; height: 14px; }
.menu-btn__lines i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .45s var(--ease-out), opacity .25s, top .45s var(--ease-out);
}
.menu-btn__lines i:nth-child(1) { top: 0; }
.menu-btn__lines i:nth-child(2) { top: 6px; }
.menu-btn__lines i:nth-child(3) { top: 12px; }
.menu-btn[aria-expanded="true"] .menu-btn__lines i:nth-child(1) { top: 6px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__lines i:nth-child(2) { opacity: 0; transform: scaleX(.3); }
.menu-btn[aria-expanded="true"] .menu-btn__lines i:nth-child(3) { top: 6px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 auto;
  z-index: 59;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  padding: 8px var(--gutter) 28px;
  background: rgb(255 255 255 / .96);
  -webkit-backdrop-filter: saturate(1.8) blur(18px);
  backdrop-filter: saturate(1.8) blur(18px);
  box-shadow: 0 24px 40px -24px rgb(11 11 19 / .3);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .55s var(--ease-out), visibility 0s linear .55s;
}
.mobile-menu.is-open {
  clip-path: inset(0 0 0 0);
  visibility: visible;
  transition: clip-path .55s var(--ease-out), visibility 0s;
}
.mobile-menu__links { display: grid; gap: 2px; margin-bottom: 18px; }
.mobile-menu__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -.03em;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity .4s var(--ease-out), transform .5s var(--ease-out);
}
.mobile-menu__links a .icon { color: var(--text-faint); }
.mobile-menu__links a[aria-current="page"]::after { content: "●"; color: var(--brand); font-size: .5em; }
.mobile-menu__links a[aria-current="page"] .icon { display: none; }
.mobile-menu.is-open .mobile-menu__links a { opacity: 1; transform: none; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(2) { transition-delay: .04s; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(3) { transition-delay: .08s; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(4) { transition-delay: .12s; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(5) { transition-delay: .16s; }
.mobile-menu__foot { display: grid; gap: 12px; }

.menu-open { overflow: hidden; }

@media (max-width: 899px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  .site-header__actions { gap: 6px; }
}
@media (min-width: 900px) {
  .mobile-menu { display: none; }
}
@media (max-width: 479px) {
  .site-header__actions .btn--download-sm { display: none; }
  .logo-link .wordmark { width: 118px; }
}


/* 9. Footer ----------------------------------------------------------------- */

.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  padding-top: clamp(64px, 8vw, 104px);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 64px);
}
.footer-brand { display: grid; gap: 18px; align-content: start; max-width: 340px; }
.footer-brand .wordmark { width: 156px; }
.footer-brand p { color: var(--muted-on-dark); font-size: .95rem; }
.footer-col h2 {
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a {
  color: #E7E6F2;
  font-size: .95rem;
  transition: color .2s;
}
.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--brand-light); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(48px, 6vw, 80px);
  padding-block: 24px;
  border-top: 1px solid var(--line-dark);
  color: var(--muted-on-dark);
  font-size: .875rem;
}
.footer-bottom__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }

.footer-giant {
  margin-top: clamp(24px, 4vw, 48px);
  margin-bottom: calc(-1 * clamp(14px, 3vw, 40px));
  pointer-events: none;
  user-select: none;
}
.footer-giant .wordmark {
  width: 100%;
  --wm-ink: rgb(255 255 255 / .06);
  --wm-accent: rgb(140 119 255 / .5);
}

@media (max-width: 899px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 479px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}


/* 10. Shared components ---------------------------------------------------- */

.card {
  position: relative;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--ring), var(--shadow-sm);
}

.card-pad { padding: clamp(22px, 2.6vw, 32px); }

/* Pointer-following glow for card grids */
[data-spotlight] > * { --mx: 50%; --my: 0%; }
.spot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgb(91 61 245 / .085), transparent 45%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
[data-spotlight]:hover .spot::before { opacity: 1; }
.section--ink .spot::before { background: radial-gradient(420px circle at var(--mx) var(--my), rgb(140 119 255 / .16), transparent 45%); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 46px;
  padding: 0 20px 0 16px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--ring), var(--shadow-xs);
  font-weight: 550;
  font-size: .975rem;
  white-space: nowrap;
}
.pill .icon { width: 19px; height: 19px; color: var(--brand); }

.announce {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 14px 0 5px;
  border-radius: 999px;
  background: rgb(255 255 255 / .75);
  box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-xs);
  font-size: .9rem;
  font-weight: 550;
  color: var(--text-muted);
  transition: box-shadow .3s, transform .3s var(--ease-out), color .2s;
}
.announce:hover { color: var(--text); box-shadow: inset 0 0 0 1px #C4C1D4, 0 8px 20px -10px rgb(11 11 19 / .3); transform: translateY(-1px); }
.announce__tag {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .02em;
}
.announce .icon { width: 16px; height: 16px; transition: transform .35s var(--ease-out); }
.announce:hover .icon { transform: translateX(3px); }

/* Accordion */
.accordion { display: grid; gap: 12px; }
.acc {
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--ring);
  transition: box-shadow .3s;
}
.acc.is-open { box-shadow: 0 0 0 1px var(--brand-200), var(--shadow); }
.acc__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 22px 24px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.35;
  border-radius: inherit;
}
.acc__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  background: var(--mist);
  transition: background-color .3s, transform .45s var(--ease-out);
}
.acc__icon::before,
.acc__icon::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .45s var(--ease-out), background-color .3s;
}
.acc__icon::after { transform: rotate(90deg); }
.acc.is-open .acc__icon { background: var(--brand); transform: rotate(180deg); }
.acc.is-open .acc__icon::before,
.acc.is-open .acc__icon::after { background: #fff; }
.acc.is-open .acc__icon::after { transform: rotate(0deg); }
.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .5s var(--ease-out);
}
.acc.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__inner { overflow: hidden; }
.acc__content {
  padding: 0 24px 24px;
  color: var(--text-muted);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .35s, transform .45s var(--ease-out);
}
.acc.is-open .acc__content { opacity: 1; transform: none; transition-delay: .08s; }
.acc__content p + p,
.acc__content p + ol,
.acc__content p + ul { margin-top: .8em; }
.acc__content ol { list-style: decimal; padding-left: 1.3em; display: grid; gap: 6px; }
.acc__content ul { list-style: disc; padding-left: 1.3em; display: grid; gap: 6px; }
.acc__content b, .acc__content strong { color: var(--text); font-weight: 600; }
.acc[hidden] { display: none; }

/* Segmented control / tabs */
.seg {
  position: relative;
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--ring), var(--shadow-xs);
  isolation: isolate;
}
.seg__btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: .925rem;
  font-weight: 550;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color .3s;
}
.seg__btn .icon { width: 17px; height: 17px; }
.seg__btn:hover { color: var(--text); }
.seg__btn[aria-pressed="true"],
.seg__btn[aria-selected="true"] { color: #fff; }
.seg__thumb {
  position: absolute;
  z-index: 0;
  top: 4px;
  left: 0;
  height: 38px;
  width: var(--thumb-w, 0);
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 0 6px 14px -6px rgb(11 11 19 / .5);
  transform: translateX(var(--thumb-x, 0));
  transition: transform .5s var(--ease-out), width .5s var(--ease-out);
}
.seg:not(.has-thumb) .seg__btn[aria-pressed="true"],
.seg:not(.has-thumb) .seg__btn[aria-selected="true"] { background: var(--ink); }

.tab-panels { position: relative; }
.tab-panel[hidden] { display: none; }
.tab-panel.is-entering { animation: panel-in .55s var(--ease-out) both; }
@keyframes panel-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 32px);
  padding: 12px 18px 12px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: .925rem;
  font-weight: 550;
  box-shadow: 0 20px 40px -16px rgb(11 11 19 / .6);
  transform: translate(-50%, 20px) scale(.96);
  opacity: 0;
  pointer-events: none;
  transition: transform .5s var(--ease-spring), opacity .3s;
}
.toast.is-visible { transform: translate(-50%, 0) scale(1); opacity: 1; }
.toast .icon { width: 18px; height: 18px; color: var(--brand-light); }

/* Back to top */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 55;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--ring), 0 14px 30px -14px rgb(11 11 19 / .45);
  opacity: 0;
  transform: translateY(14px) scale(.9);
  pointer-events: none;
  transition: opacity .3s, transform .45s var(--ease-out), box-shadow .3s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { box-shadow: var(--ring), 0 18px 34px -14px rgb(91 61 245 / .55); }
.to-top .icon { width: 18px; height: 18px; position: relative; z-index: 1; transition: transform .35s var(--ease-out); }
.to-top:hover .icon { transform: translateY(-2px); }
.to-top svg.to-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top__ring circle { fill: none; stroke-width: 2.5; }
.to-top__ring .track { stroke: var(--line); }
.to-top__ring .bar { stroke: var(--brand); stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--progress, 0)); }

/* Checklist */
.checks { display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-muted); }
.checks li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B3DF5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
  box-shadow: inset 0 0 0 1px var(--brand-100);
}
.checks b { color: var(--text); font-weight: 600; }
.section--ink .checks li { color: var(--muted-on-dark); }
.section--ink .checks b { color: #fff; }
.section--ink .checks li::before {
  background-color: rgb(140 119 255 / .16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238C77FF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  box-shadow: inset 0 0 0 1px rgb(140 119 255 / .25);
}

/* Steps (numbered) */
.steps { display: grid; gap: 14px; counter-reset: step; }
.steps li {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  color: var(--text-muted);
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
}
.steps b { color: var(--text); font-weight: 600; }
.steps li > div { padding-top: 6px; }


/* 11. Motion system -------------------------------------------------------- */

/* Scroll reveals (only when JS runs; the elements stay visible otherwise) */
.js [data-reveal] { opacity: 0; }
.js [data-reveal].is-in {
  animation: reveal-up 1s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 80ms + var(--delay, 0ms));
}
.js [data-reveal="fade"].is-in { animation-name: reveal-fade; }
.js [data-reveal="scale"].is-in { animation-name: reveal-scale; animation-duration: 1.1s; }
.js [data-reveal="left"].is-in { animation-name: reveal-left; }
.js [data-reveal="right"].is-in { animation-name: reveal-right; }
.js [data-reveal="blur"].is-in { animation-name: reveal-blur; animation-duration: 1.1s; }

@keyframes reveal-up {
  from { opacity: 0; translate: 0 30px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes reveal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes reveal-scale {
  from { opacity: 0; scale: .94; translate: 0 24px; }
  to { opacity: 1; scale: 1; translate: 0 0; }
}
@keyframes reveal-left {
  from { opacity: 0; translate: -36px 0; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes reveal-right {
  from { opacity: 0; translate: 36px 0; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes reveal-blur {
  from { opacity: 0; filter: blur(12px); translate: 0 16px; }
  to { opacity: 1; filter: blur(0); translate: 0 0; }
}

/* Smooth page-to-page transitions (Chrome, Edge, Safari 18+) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .32s var(--ease-in-out) both; }
::view-transition-new(root) { animation: vt-in .5s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(16px); } }

/* Reduced motion: the toggle in the header sets data-motion="reduce" (it starts from the
   system setting). Everything still works; it just stops moving. */
html[data-motion="reduce"] { scroll-behavior: auto; }
html[data-motion="reduce"] *,
html[data-motion="reduce"] *::before,
html[data-motion="reduce"] *::after {
  animation-duration: .01ms !important;
  animation-delay: 0s !important;
  animation-iteration-count: 1 !important;
  transition-duration: .01ms !important;
  transition-delay: 0s !important;
}
html[data-motion="reduce"] [data-reveal] { opacity: 1 !important; animation: none !important; }
html[data-motion="reduce"]::view-transition-group(*),
html[data-motion="reduce"]::view-transition-old(*),
html[data-motion="reduce"]::view-transition-new(*) { animation: none !important; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}


/* 12. App mockup ------------------------------------------------------------
   A faithful, live recreation of the Kofeblan. window (1280 × 800), scaled to fit. */

.mk {
  --mk-s: .52;
  position: relative;
  width: 100%;
  aspect-ratio: 1280 / 800;
  border-radius: calc(16px * var(--mk-s) + 4px);
  font-family: var(--font-body);
  user-select: none;
  -webkit-user-select: none;
}
@media (min-width: 640px) { .mk { --mk-s: .6; } }
@media (min-width: 1000px) { .mk { --mk-s: .8; } }

.mk__win {
  /* App light theme (pdf_editor_lite/theme.py) */
  --w-window: #EEF0F4;
  --w-header: #E6E9EF;
  --w-surface: #FFFFFF;
  --w-alt: #F7F8FA;
  --w-canvas: #E3E6EC;
  --w-border: #E1E4EA;
  --w-border-2: #CDD2DB;
  --w-text: #1A1D24;
  --w-muted: #5F6878;
  --w-faint: #98A0AE;
  --w-hover: #F1F3F6;
  --w-acc: var(--app-accent);
  --w-acc-soft: color-mix(in srgb, var(--w-acc) 13%, #fff);
  position: absolute;
  top: 0;
  left: 0;
  width: 1280px;
  height: 800px;
  display: grid;
  grid-template-rows: 48px 52px 50px minmax(0, 1fr) 32px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--w-window);
  color: var(--w-text);
  font-size: 14px;
  line-height: 1.3;
  text-align: left;
  transform: scale(var(--mk-s));
  transform-origin: 0 0;
  box-shadow: 0 0 0 1px rgb(11 11 19 / .1);
}

.mk__win .icon { width: 20px; height: 20px; stroke-width: 1.75; }

.mk__ib {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 9px;
  color: var(--w-text);
  transition: background-color .25s, color .25s, transform .2s var(--ease-out);
}
.mk__ib.is-on { background: var(--w-acc-soft); color: var(--w-acc); }
.mk__ib.is-dim { color: var(--w-faint); }
.mk__ib.is-pressed { transform: scale(.88); background: var(--w-acc-soft); }
.mk__sep { width: 1px; height: 22px; margin: 0 8px; background: var(--w-border-2); flex: none; }

/* Title bar */
.mk__title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px 0 10px;
  background: var(--w-header);
}
.mk__logo { width: 22px; height: 22px; margin-left: 6px; }
.mk__app { font-weight: 700; font-size: 15px; margin-right: 22px; letter-spacing: -.01em; }
.mk__tabs { display: flex; align-items: flex-end; align-self: stretch; gap: 4px; margin-left: 70px; flex: 1; }
.mk__tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px 0 14px;
  border-radius: 10px 10px 0 0;
  color: var(--w-muted);
  font-size: 14px;
  white-space: nowrap;
}
.mk__tab .icon { width: 17px; height: 17px; color: var(--w-faint); }
.mk__tab.is-active { background: var(--w-alt); color: var(--w-text); font-weight: 500; }
.mk__tab.is-active .icon { color: var(--w-acc); }
.mk__tab.is-active::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--w-acc);
}
.mk__dirty {
  width: 8px;
  height: 8px;
  margin-left: 10px;
  border-radius: 50%;
  background: #E09B12;
  transform: scale(0);
  transition: transform .4s var(--ease-spring);
}
.mk__win.is-dirty .mk__dirty { transform: scale(1); }

/* Toolbar */
.mk__bar {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 12px;
  background: var(--w-surface);
  border-bottom: 1px solid var(--w-border);
}
.mk__tools { display: flex; align-items: center; gap: 2px; margin: 0 auto; padding-left: 80px; }
.mk__zoom { display: flex; align-items: center; gap: 2px; }
.mk__zval { display: inline-flex; align-items: center; gap: 4px; min-width: 64px; justify-content: center; font-size: 14px; font-variant-numeric: tabular-nums; }
.mk__zval .icon { width: 14px; height: 14px; color: var(--w-muted); }
.mk__pager { display: flex; align-items: center; gap: 4px; }
.mk__pnum {
  display: grid;
  place-items: center;
  width: 52px;
  height: 32px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px var(--w-border-2);
  font-size: 14px;
}
.mk__ptot { color: var(--w-muted); margin: 0 4px; }

/* Tool options */
.mk__opts { position: relative; background: var(--w-surface); border-bottom: 1px solid var(--w-border); }
.mk__opt {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  font-size: 14px;
  color: var(--w-muted);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s, transform .4s var(--ease-out);
  pointer-events: none;
}
.mk__opt.is-on { opacity: 1; transform: none; }
.mk__opt-name { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--w-text); }
.mk__opt-name .icon { color: var(--w-acc); width: 19px; height: 19px; }
.mk__sw { display: inline-flex; gap: 7px; align-items: center; }
.mk__sw i {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / .08);
}
.mk__sw i.is-on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--w-acc); }
.mk__slider { position: relative; width: 100px; height: 4px; border-radius: 4px; background: var(--w-acc); }
.mk__slider::after {
  content: "";
  position: absolute;
  right: -7px;
  top: -6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px var(--w-acc);
}
.mk__vsep { width: 1px; height: 22px; background: var(--w-border-2); }
.mk__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px var(--w-border-2);
  color: var(--w-text);
}
.mk__chip.is-on { box-shadow: inset 0 0 0 2px var(--w-acc); background: var(--w-acc-soft); }
.mk__chip svg.sig-mini { width: 70px; height: 22px; }

/* Body */
.mk__body { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 0; }
.mk__side {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 18px;
  padding: 10px 10px 0;
  background: var(--w-alt);
  border-right: 1px solid var(--w-border);
  overflow: hidden;
}
.mk__seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 3px;
  border-radius: 10px;
  background: var(--w-header);
  font-size: 14px;
  color: var(--w-muted);
  text-align: center;
}
.mk__seg span { padding: 6px 0; border-radius: 8px; }
.mk__seg span.is-on { background: var(--w-surface); color: var(--w-text); font-weight: 600; box-shadow: 0 1px 2px rgb(0 0 0 / .08); }
.mk__thumbs { display: grid; gap: 22px; justify-items: center; align-content: start; }
.mk__thumb { display: grid; gap: 8px; justify-items: center; font-size: 13px; color: var(--w-muted); }
.mk__thumb.is-on figcaption { color: var(--w-acc); font-weight: 600; }
.mk__tp {
  position: relative;
  display: block;
  width: 158px;
  height: 214px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--w-border-2), 0 2px 6px rgb(0 0 0 / .06);
  overflow: hidden;
}
.mk__thumb.is-on .mk__tp { box-shadow: 0 0 0 2px var(--w-acc), 0 2px 6px rgb(0 0 0 / .06); }
.tp-band { position: absolute; left: 0; right: 0; top: 0; height: 32px; background: var(--doc-band); }
.tp-band::after { content: ""; position: absolute; left: 14px; top: 12px; width: 70px; height: 5px; border-radius: 2px; background: rgb(255 255 255 / .85); box-shadow: 0 -6px 0 -1px rgb(170 196 236 / .7); }
.tp-lines {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 44px;
  height: 78px;
  background: repeating-linear-gradient(180deg, #C9CDD6 0 2px, transparent 2px 7px);
  -webkit-mask-image: linear-gradient(90deg, #000 0 88%, transparent 88%);
  mask-image: linear-gradient(90deg, #000 0 88%, transparent 88%);
}
.tp-chart { position: absolute; left: 14px; right: 14px; bottom: 34px; height: 42px; background: linear-gradient(90deg, #EEF2FB, #EEF2FB); }
.tp-chart::after {
  content: "";
  position: absolute;
  inset: 12px 8px 4px;
  background:
    linear-gradient(#5B78C9, #5B78C9) 0 100% / 8px 30% no-repeat,
    linear-gradient(#5B78C9, #5B78C9) 12px 100% / 8px 45% no-repeat,
    linear-gradient(#6F7FD0, #6F7FD0) 24px 100% / 8px 60% no-repeat,
    linear-gradient(#7E7CC9, #7E7CC9) 36px 100% / 8px 80% no-repeat,
    linear-gradient(#8D78BD, #8D78BD) 48px 100% / 8px 92% no-repeat,
    linear-gradient(#9C74AE, #9C74AE) 60px 100% / 8px 76% no-repeat,
    linear-gradient(#A76F9C, #A76F9C) 72px 100% / 8px 52% no-repeat,
    linear-gradient(#B06B8C, #B06B8C) 84px 100% / 8px 34% no-repeat;
}
.tp-hl { position: absolute; left: 60px; top: 51px; width: 30px; height: 4px; background: var(--hl-yellow); }

.mk__canvas {
  position: relative;
  background: var(--w-canvas);
  overflow: hidden;
  padding: 34px 42px 0;
}
.mk__page {
  position: relative;
  height: 1000px;
  background: #fff;
  box-shadow: 0 1px 3px rgb(0 0 0 / .1), 0 8px 24px rgb(0 0 0 / .06);
  transform-origin: 50% 0;
  transition: transform .7s var(--ease-out);
}
.doc__band { height: 176px; padding: 64px 88px 0; background: var(--doc-band); }
.doc__kicker { font: 700 16px/1 "Helvetica Neue", Arial, sans-serif; letter-spacing: .02em; color: #B9CDEE; }
.doc__title { margin-top: 18px; font: 700 37px/1.1 "Helvetica Neue", Arial, sans-serif; color: #fff; letter-spacing: -.005em; }
.doc__body {
  padding: 46px 88px 0;
  font-family: var(--font-serif);
  font-size: 18.5px;
  line-height: 29px;
  color: #1E1F24;
}
.doc__body p + p { margin-top: 24px; }
.doc__mark { position: relative; white-space: nowrap; isolation: isolate; }
.doc__hl {
  position: absolute;
  inset: 1px -2px 0;
  z-index: -1;
  background: var(--hl-yellow);
  transform-origin: 0 50%;
  transform: scaleX(0);
}
.mk__win.has-hl .doc__hl { transform: scaleX(1); }
.doc__ul { text-decoration: underline; text-decoration-color: var(--ul-blue); text-decoration-thickness: 1.6px; text-underline-offset: 4px; }
.doc__sign {
  display: grid;
  grid-template-columns: auto 300px auto;
  align-items: end;
  gap: 18px;
  margin-top: 30px;
  font: 500 14px/1 "Helvetica Neue", Arial, sans-serif;
  color: #5D6372;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.doc__sigline { position: relative; height: 54px; border-bottom: 1.5px solid #9097A6; }
.doc__sig {
  position: absolute;
  left: 18px;
  bottom: 2px;
  width: 210px;
  height: 66px;
  overflow: visible;
}
.doc__sig path {
  fill: none;
  stroke: #1F2F7A;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.mk__win.has-sig .doc__sig path { stroke-dashoffset: 0; }
.doc__note {
  position: absolute;
  left: calc(100% - 66px);
  top: 214px;
  width: 30px;
  height: 30px;
  transform: scale(0);
  transition: transform .5s var(--ease-spring);
}
.mk__win.has-note .doc__note { transform: scale(1); }
.doc__note svg { width: 100%; height: 100%; overflow: visible; }
.doc__pop {
  position: absolute;
  left: calc(100% - 300px);
  top: 252px;
  width: 250px;
  padding: 12px 14px 14px;
  border-radius: 10px;
  background: #FFF6D6;
  box-shadow: 0 0 0 1px #F0D78A, 0 12px 30px -10px rgb(0 0 0 / .25);
  font: 14px/1.4 var(--font-body);
  color: #3B3320;
  opacity: 0;
  transform: translateY(-8px) scale(.96);
  transform-origin: 85% 0;
  transition: opacity .3s, transform .45s var(--ease-out);
}
.doc__pop b { display: block; margin-bottom: 4px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #8A6D12; }
.mk__win.has-pop .doc__pop { opacity: 1; transform: none; }
.doc__typed { display: inline; }
.doc__typed::after { content: ""; display: inline-block; width: 1.5px; height: 1.05em; margin-left: 1px; vertical-align: -2px; background: #3B3320; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* Status bar */
.mk__status {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 16px;
  background: var(--w-surface);
  border-top: 1px solid var(--w-border);
  font-size: 13.5px;
  color: var(--w-muted);
}
.mk__unsaved { display: inline-flex; align-items: center; gap: 8px; }
.mk__unsaved i { width: 8px; height: 8px; border-radius: 50%; background: var(--w-faint); transition: background-color .3s; }
.mk__win.is-dirty .mk__unsaved i { background: #E09B12; }
.mk__unsaved .ok { display: none; color: var(--green); width: 16px; height: 16px; }
.mk__win.is-saved .mk__unsaved i { display: none; }
.mk__win.is-saved .mk__unsaved .ok { display: block; }
.mk__spacer { flex: 1; }
.mk__sibs { display: flex; gap: 2px; }
.mk__sib { display: grid; place-items: center; width: 28px; height: 24px; border-radius: 6px; color: var(--w-text); }
.mk__sib .icon { width: 16px; height: 16px; }
.mk__sib.is-on { background: var(--w-acc-soft); color: var(--w-acc); }
.mk__status .mk__slider { width: 120px; height: 3px; background: linear-gradient(90deg, var(--w-acc) 0 30%, var(--w-border-2) 30%); }
.mk__status .mk__slider::after { right: auto; left: calc(30% - 8px); top: -6.5px; }

/* Cursor: a zero-size point; the arrow's tip sits exactly on it */
.mk__cursor {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 20;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}
.mk__cursor svg {
  position: absolute;
  width: 28px;
  height: 28px;
  overflow: visible;
  filter: drop-shadow(0 2px 3px rgb(0 0 0 / .3));
}
.mk__cursor .mk__arrow { left: -5.8px; top: -3.3px; }
.mk__cursor .mk__ibeam { left: -14px; top: -14px; opacity: 0; }
.mk__cursor.is-text .mk__arrow { opacity: 0; }
.mk__cursor.is-text .mk__ibeam { opacity: 1; }
.mk__cursor .mk__click {
  position: absolute;
  left: -17px;
  top: -17px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2.5px solid var(--w-acc);
  opacity: 0;
}

/* End of each demo loop: annotations fade before the next run */
.mk__win.is-resetting .doc__hl,
.mk__win.is-resetting .doc__note,
.mk__win.is-resetting .doc__sig { opacity: 0; transition: opacity .6s var(--ease-out); }

/* Dark theme for the mockup */
.mk__win.is-dark {
  --w-window: #131519;
  --w-header: #0F1114;
  --w-surface: #1B1E24;
  --w-alt: #181A1F;
  --w-canvas: #0C0D10;
  --w-border: #2A2E36;
  --w-border-2: #3A3F4A;
  --w-text: #E8EAEF;
  --w-muted: #A0A8B6;
  --w-faint: #687080;
  --w-hover: #252930;
  --w-acc-soft: color-mix(in srgb, var(--w-acc) 22%, #1B1E24);
}


/* 13. Home ------------------------------------------------------------------ */

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-top: calc(var(--header-h) + clamp(44px, 6.5vw, 92px));
  padding-bottom: clamp(56px, 7vw, 110px);
  text-align: center;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero__glow {
  position: absolute;
  left: 50%;
  top: -18%;
  width: min(1400px, 140vw);
  aspect-ratio: 1.6;
  translate: -50% 0;
  background:
    radial-gradient(38% 42% at 50% 34%, rgb(140 119 255 / .36), transparent 70%),
    radial-gradient(26% 32% at 26% 46%, rgb(91 61 245 / .16), transparent 70%),
    radial-gradient(26% 30% at 76% 40%, rgb(56 189 248 / .13), transparent 70%),
    radial-gradient(22% 26% at 62% 66%, rgb(244 114 182 / .1), transparent 70%);
  animation: aurora 16s var(--ease-in-out) infinite alternate;
}
@keyframes aurora {
  0% { transform: translate3d(-3%, 0, 0) rotate(-2deg) scale(1); }
  100% { transform: translate3d(3%, 2%, 0) rotate(2deg) scale(1.06); }
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(11 11 19 / .05) 1px, transparent 1px),
    linear-gradient(90deg, rgb(11 11 19 / .05) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: 50% -1px;
  -webkit-mask-image: radial-gradient(64% 52% at 50% 24%, #000 20%, transparent 72%);
  mask-image: radial-gradient(64% 52% at 50% 24%, #000 20%, transparent 72%);
}
.hero__inner { display: grid; justify-items: center; gap: 26px; }
.hero__title .line { display: block; }
.hero__lead { max-width: 660px; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; margin-top: 6px; }
.hero__cta .hero__more { --btn-h: 66px; padding: 0 30px; }
@media (max-width: 479px) {
  .hero__cta { flex-direction: column; align-items: stretch; width: 100%; }
  .hero__cta .hero__more { --btn-h: 58px; }
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 18px;
  color: var(--text-faint);
  font-size: .9rem;
  font-weight: 500;
}
.hero__meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero__meta .icon { width: 16px; height: 16px; color: var(--text-muted); }
.hero__meta .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); }
@media (max-width: 559px) {
  .hero__meta .sep { display: none; }
}

/* Rotating word */
.rotator {
  position: relative;
  display: inline-grid;
  vertical-align: top;
  justify-items: start;
  transition: width .7s var(--ease-out);
}
.rotator__word {
  grid-area: 1 / 1;
  white-space: nowrap;
  color: var(--brand);
  background: linear-gradient(100deg, var(--brand) 20%, #8B5CF6 60%, var(--brand) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-bottom: .08em;
  opacity: 0;
  transform: translateY(.42em);
  filter: blur(8px);
  transition: opacity .5s var(--ease-out), transform .8s var(--ease-out), filter .6s var(--ease-out);
}
.rotator__word:not(.is-active) { position: absolute; left: 0; top: 0; }
.rotator__word.is-active { opacity: 1; transform: none; filter: blur(0); }
.rotator__word.is-leaving { opacity: 0; transform: translateY(-.42em); filter: blur(8px); }
html:not(.js) .rotator__word:first-child { opacity: 1; transform: none; filter: none; }

/* Hero stage */
.hero__stage-wrap { margin-top: clamp(52px, 6vw, 84px); max-width: calc(1180px + var(--gutter) * 2); }
.hero__stage { position: relative; perspective: 2200px; }
.hero__stage-inner {
  position: relative;
  transform-origin: 50% 0;
  transform-style: preserve-3d;
}
.hero__frame {
  position: relative;
  padding: clamp(6px, .9vw, 12px);
  border-radius: clamp(14px, 2vw, 26px);
  background: linear-gradient(180deg, rgb(255 255 255 / .75), rgb(255 255 255 / .4));
  box-shadow:
    0 0 0 1px rgb(11 11 19 / .07),
    0 2px 6px rgb(11 11 19 / .04),
    0 40px 100px -30px rgb(43 25 140 / .45),
    0 80px 140px -60px rgb(91 61 245 / .35);
}
.hero__frame .mk { border-radius: clamp(8px, 1.3vw, 16px); overflow: hidden; }

.float-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  border-radius: 16px;
  background: rgb(255 255 255 / .96);
  box-shadow: 0 0 0 1px rgb(11 11 19 / .06), 0 18px 40px -18px rgb(43 25 140 / .45);
  font-size: .9rem;
  font-weight: 600;
  white-space: nowrap;
  text-align: left;
  animation: chip-float 6s var(--ease-in-out) infinite alternate;
  animation-delay: var(--float-delay, 0s);
}
.float-chip small { display: block; font-size: .76rem; font-weight: 500; color: var(--text-faint); }
.float-chip .icon-chip { width: 36px; height: 36px; border-radius: 11px; }
.float-chip .icon-chip .icon { width: 18px; height: 18px; }
.float-chip--sig { left: -3.5%; top: 46%; --float-delay: -1.5s; }
.float-chip--lock { right: -3.5%; top: 24%; --float-delay: -3s; }
.float-chip--offline { right: 9%; bottom: -5%; --float-delay: -4.5s; }
.float-chip .icon-chip--green { background: #E8F7EF; color: #1E7A4E; box-shadow: inset 0 0 0 1px #CDEEDB; }
.float-chip .icon-chip--ink { background: var(--ink); color: #fff; box-shadow: none; }
@keyframes chip-float {
  from { translate: 0 -6px; }
  to { translate: 0 8px; }
}
.js .float-chip { opacity: 0; }
.js .hero.is-ready .float-chip { animation: chip-in .9s var(--ease-spring) both, chip-float 6s var(--ease-in-out) infinite alternate; animation-delay: var(--in-delay, 1s), var(--float-delay, 0s); }
.float-chip--sig { --in-delay: 1.1s; }
.float-chip--lock { --in-delay: 1.3s; }
.float-chip--offline { --in-delay: 1.5s; }
@keyframes chip-in {
  from { opacity: 0; scale: .8; }
  to { opacity: 1; scale: 1; }
}
@media (max-width: 899px) {
  .float-chip--offline { display: none; }
  .float-chip { font-size: .8rem; padding: 8px 12px 8px 8px; gap: 8px; }
  .float-chip small { display: none; }
  .float-chip .icon-chip { width: 30px; height: 30px; }
  .float-chip--sig { left: -1%; top: -6%; }
  .float-chip--lock { right: -1%; top: auto; bottom: -7%; }
}
@media (max-width: 479px) {
  .float-chip { display: none; }
}

/* Marquee */
.marquee {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding-block: clamp(28px, 4vw, 48px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__label { justify-self: center; margin-bottom: 14px; }
.marquee__row { display: flex; width: max-content; }
.marquee__track {
  display: flex;
  gap: 14px;
  padding-right: 14px;
  flex: none;
  animation: marquee 48s linear infinite;
  animation-play-state: paused;
}
.marquee.is-playing .marquee__track { animation-play-state: running; }
.marquee__row--rev .marquee__track { animation-direction: reverse; animation-duration: 54s; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* Feature bento */
.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 22px);
}
.bento__card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 24px;
  padding: 14px 14px 28px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--ring), var(--shadow-sm);
  overflow: hidden;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.bento__card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--brand-100), var(--shadow); }
.bento__card--wide { grid-column: span 2; }
.bento__text { position: relative; z-index: 1; display: grid; gap: 10px; padding: 0 14px; align-content: start; }
.bento__text .h3 { display: flex; align-items: center; gap: 12px; }
.bento__text p { color: var(--text-muted); max-width: 46ch; }
@media (max-width: 999px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento__card--wide { grid-column: span 2; }
}
@media (max-width: 639px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento__card--wide { grid-column: auto; }
}

/* Illustration stage shared by the feature cards */
.ill {
  position: relative;
  z-index: 1;
  height: 228px;
  border-radius: 18px;
  background:
    radial-gradient(120% 90% at 50% 0%, #FBFAFF 0%, transparent 60%),
    linear-gradient(180deg, #F6F4FD, #EFECF9);
  box-shadow: inset 0 0 0 1px rgb(91 61 245 / .06);
  overflow: hidden;
}
.ill * { animation-play-state: paused; }
.is-playing .ill *,
.ill.is-playing * { animation-play-state: running; }

.ill-page {
  position: absolute;
  left: 50%;
  top: 30px;
  width: min(300px, 74%);
  height: 230px;
  padding: 24px 24px 0;
  translate: -50% 0;
  border-radius: 10px 10px 0 0;
  background: #fff;
  box-shadow: 0 0 0 1px rgb(11 11 19 / .05), 0 18px 40px -20px rgb(43 25 140 / .35);
  display: grid;
  align-content: start;
  gap: 13px;
}
.ln { position: relative; display: block; height: 8px; border-radius: 4px; background: #D9DCE6; }
.ln.w55 { width: 55%; } .ln.w60 { width: 60%; } .ln.w70 { width: 70%; } .ln.w75 { width: 75%; }
.ln.w80 { width: 80%; } .ln.w85 { width: 85%; } .ln.w90 { width: 90%; } .ln.w95 { width: 95%; }
.ln.is-head { height: 12px; width: 52%; background: #B9BDCB; margin-bottom: 4px; }

/* Mark up */
.ill-markup .ill-page { width: min(440px, 80%); }
.ill-markup .hl {
  position: absolute;
  inset: -5px -4px;
  border-radius: 3px;
  background: var(--hl-yellow);
  mix-blend-mode: multiply;
  transform-origin: 0 50%;
  animation: mu-hl 7s var(--ease-out) infinite;
}
.ill-markup .ul {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ul-blue);
  transform-origin: 0 50%;
  animation: mu-ul 7s var(--ease-out) infinite;
}
.ill-markup .sq { position: absolute; left: 0; bottom: -10px; width: 100%; height: 8px; overflow: visible; }
.ill-markup .sq path { fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; animation: mu-sq 7s var(--ease-out) infinite; }
.ill-markup .ill-note {
  position: absolute;
  right: 18px;
  top: 20px;
  width: 34px;
  height: 34px;
  animation: mu-note 7s var(--ease-spring) infinite;
}
.ill-markup .ill-note svg { width: 100%; height: 100%; }
.ill-markup .ill-circle { position: absolute; left: 44%; top: 129px; width: 50%; height: 26px; overflow: visible; }
.ill-markup .ill-circle ellipse { fill: none; stroke: var(--green); stroke-width: 2.5; stroke-dasharray: 1; animation: mu-circle 7s var(--ease-out) infinite; }

@keyframes mu-hl {
  0%, 8% { transform: scaleX(0); opacity: 1; }
  22%, 86% { transform: scaleX(1); opacity: 1; }
  94%, 100% { transform: scaleX(1); opacity: 0; }
}
@keyframes mu-sq {
  0%, 26% { stroke-dashoffset: 1; opacity: 1; }
  38%, 86% { stroke-dashoffset: 0; opacity: 1; }
  94%, 100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes mu-ul {
  0%, 40% { transform: scaleX(0); opacity: 1; }
  50%, 86% { transform: scaleX(1); opacity: 1; }
  94%, 100% { transform: scaleX(1); opacity: 0; }
}
@keyframes mu-note {
  0%, 54% { transform: scale(0) rotate(-20deg); opacity: 0; }
  60%, 86% { transform: none; opacity: 1; }
  94%, 100% { transform: scale(.6); opacity: 0; }
}
@keyframes mu-circle {
  0%, 64% { stroke-dashoffset: 1; opacity: 1; }
  76%, 86% { stroke-dashoffset: 0; opacity: 1; }
  94%, 100% { stroke-dashoffset: 0; opacity: 0; }
}

/* Sign */
.ill-sign .sig-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 260px;
  height: 150px;
  translate: -50% -50%;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 0 0 1px rgb(11 11 19 / .05), 0 18px 40px -20px rgb(43 25 140 / .35);
}
.ill-sign .sig-label {
  position: absolute;
  left: 22px;
  top: 18px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.ill-sign .sig-line { position: absolute; left: 22px; right: 22px; bottom: 34px; height: 1.5px; background: var(--line-strong); }
.ill-sign .sig-x { position: absolute; left: 22px; bottom: 40px; font-size: 18px; font-weight: 500; color: var(--text-faint); }
.ill-sign .sig-wrap { position: absolute; left: 30px; top: 40px; width: 200px; height: 60px; }
.ill-sign .sig {
  position: absolute;
  left: 0;
  top: 0;
  width: 200px;
  height: 60px;
  overflow: visible;
}
.ill-sign .sig path {
  fill: none;
  stroke: #1F2F7A;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  animation: sig-draw 6s var(--ease-in-out) infinite;
}
.ill-sign .sig-pen {
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  color: var(--ink);
  offset-rotate: 0deg;
  offset-anchor: 9% 91%;
  animation: sig-pen 6s var(--ease-in-out) infinite;
}
.ill-sign .sig-pen .icon { width: 100%; height: 100%; display: block; }
.ill-sign .sig-saved {
  position: absolute;
  right: 18px;
  top: 14px;
  animation: sig-saved 6s var(--ease-spring) infinite;
}
@keyframes sig-draw {
  0%, 6% { stroke-dashoffset: 1; opacity: 1; }
  52%, 88% { stroke-dashoffset: 0; opacity: 1; }
  96%, 100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes sig-pen {
  0% { offset-distance: 0%; opacity: 0; }
  6% { offset-distance: 0%; opacity: 1; }
  52% { offset-distance: 100%; opacity: 1; }
  60%, 100% { offset-distance: 100%; opacity: 0; }
}
@keyframes sig-saved {
  0%, 56% { opacity: 0; transform: scale(.7) translateY(4px); }
  62%, 88% { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; transform: scale(.9); }
}

/* Forms */
.ill-forms .form-card {
  position: absolute;
  left: 50%;
  top: 26px;
  width: min(280px, 82%);
  padding: 20px 20px 22px;
  translate: -50% 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 0 0 1px rgb(11 11 19 / .05), 0 18px 40px -20px rgb(43 25 140 / .35);
  display: grid;
  gap: 12px;
  font-size: .85rem;
}
.f-label { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); }
.f-field {
  display: flex;
  align-items: center;
  height: 38px;
  padding: 0 12px;
  margin-top: -6px;
  border-radius: 8px;
  background: #EEF3FF;
  box-shadow: inset 0 0 0 1.5px #C9D7FB;
  font-family: var(--font-mono);
  font-size: .9rem;
  color: #1C2C66;
}
.f-type { display: inline-block; overflow: hidden; white-space: nowrap; width: 0; animation: f-type 6s steps(11, end) infinite; }
.f-caret { display: inline-block; width: 1.5px; height: 18px; background: #1C2C66; animation: caret 1s steps(1) infinite; }
.f-row { display: flex; align-items: center; gap: 10px; color: var(--text-muted); }
.f-check {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  animation: f-box 6s var(--ease-out) infinite;
}
.f-check svg { width: 14px; height: 14px; overflow: visible; }
.f-check path { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; animation: f-tick 6s var(--ease-out) infinite; }
.f-radio { position: relative; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-strong); flex: none; }
.f-radio::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--brand); transform: scale(0); }
.f-radio--a::after { animation: f-radio-a 6s var(--ease-spring) infinite; }
.f-radio--b::after { animation: f-radio-b 6s var(--ease-spring) infinite; }
@keyframes f-type {
  0%, 4% { width: 0; }
  30%, 90% { width: 11ch; }
  97%, 100% { width: 0; }
}
@keyframes f-box {
  0%, 36% { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
  40%, 90% { background: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); }
  97%, 100% { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
}
@keyframes f-tick {
  0%, 38% { stroke-dashoffset: 1; }
  46%, 90% { stroke-dashoffset: 0; }
  97%, 100% { stroke-dashoffset: 1; }
}
@keyframes f-radio-a {
  0%, 52% { transform: scale(1); }
  56%, 100% { transform: scale(0); }
}
@keyframes f-radio-b {
  0%, 54% { transform: scale(0); }
  60%, 90% { transform: scale(1); }
  97%, 100% { transform: scale(0); }
}

/* Pages */
.ill-pages {
  --pg-w: 72px;
  --pg-h: 94px;
  --pg-step: 90px;
}
@media (max-width: 479px) {
  .ill-pages { --pg-w: 50px; --pg-h: 66px; --pg-step: 62px; }
}
.ill-pages .pg-row {
  position: absolute;
  left: 50%;
  top: 46px;
  width: calc(var(--pg-step) * 4 + var(--pg-w));
  height: calc(var(--pg-h) + 30px);
  translate: -50% 0;
}
.pg {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--pg-w);
  height: var(--pg-h);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 0 0 1px rgb(11 11 19 / .07), 0 8px 18px -10px rgb(43 25 140 / .4);
  overflow: hidden;
}
.pg::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 19%; background: var(--c, var(--doc-band)); }
.pg::after { content: ""; position: absolute; left: 12%; right: 12%; top: 30%; height: 46%; background: repeating-linear-gradient(180deg, #D9DCE6 0 3px, transparent 3px 7px); }
.pg-wrap b {
  position: absolute;
  left: 50%;
  top: calc(var(--pg-h) + 8px);
  translate: -50% 0;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-faint);
}
.pg-wrap { --x: 0; position: absolute; top: 0; left: calc(var(--x) * var(--pg-step)); width: var(--pg-w); height: calc(var(--pg-h) + 30px); }
.pg-wrap--2 { --x: 1; animation: pg-shift 8s var(--ease-in-out) infinite; }
.pg-wrap--3 { --x: 2; animation: pg-shift 8s var(--ease-in-out) infinite; }
.pg-wrap--4 { --x: 3; z-index: 2; animation: pg-move 8s var(--ease-in-out) infinite; }
.pg-wrap--5 { --x: 4; }
.pg-wrap--1 .pg { animation: pg-rotate 8s var(--ease-in-out) infinite; }
.pg-wrap--4 .pg { animation: pg-lift 8s var(--ease-out) infinite; }
.pg-wrap--2 .pg { --c: #5B78C9; }
.pg-wrap--3 .pg { --c: #7E7CC9; }
.pg-wrap--4 .pg { --c: var(--brand); }
.pg-wrap--5 .pg { --c: #A76F9C; }
.ill-pages .pg-hint {
  position: absolute;
  left: 50%;
  bottom: 22px;
  translate: -50% 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-faint);
}
.ill-pages .pg-hint .icon { width: 15px; height: 15px; }
@keyframes pg-shift {
  0%, 22% { transform: translateX(0); }
  40%, 80% { transform: translateX(var(--pg-step)); }
  94%, 100% { transform: translateX(0); }
}
@keyframes pg-move {
  0%, 22% { transform: translateX(0); }
  40%, 80% { transform: translateX(calc(var(--pg-step) * -2)); }
  94%, 100% { transform: translateX(0); }
}
@keyframes pg-lift {
  0%, 12% { transform: none; box-shadow: 0 0 0 1px rgb(11 11 19 / .07), 0 8px 18px -10px rgb(43 25 140 / .4); }
  20%, 40% { transform: translateY(-12px) scale(1.08) rotate(-3deg); box-shadow: 0 0 0 2px var(--brand), 0 18px 30px -12px rgb(43 25 140 / .55); }
  48%, 100% { transform: none; box-shadow: 0 0 0 1px rgb(11 11 19 / .07), 0 8px 18px -10px rgb(43 25 140 / .4); }
}
@keyframes pg-rotate {
  0%, 52% { transform: none; }
  60%, 72% { transform: rotate(90deg) scale(.82); }
  80%, 100% { transform: none; }
}

/* Redact */
.ill-redact .bar {
  position: absolute;
  inset: -5px -3px;
  border-radius: 2px;
  background: var(--ink);
  transform-origin: 0 50%;
  animation: rd-bar 7s var(--ease-out) infinite;
}
.ill-redact .ln.rd { background: transparent; }
.ill-redact .ln.rd::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #D9DCE6; animation: rd-text 7s linear infinite; }
.ill-redact .ln.rd2 .bar { animation-name: rd-bar2; }
.ill-redact .ln.rd2::before { animation-name: rd-text2; }
.ill-redact .rd-badge {
  position: absolute;
  left: 50%;
  bottom: 22px;
  translate: -50% 0;
  animation: rd-badge 7s var(--ease-spring) infinite;
}
@keyframes rd-bar {
  0%, 8% { transform: scaleX(0); opacity: 1; }
  20%, 88% { transform: scaleX(1); opacity: 1; }
  96%, 100% { transform: scaleX(1); opacity: 0; }
}
@keyframes rd-bar2 {
  0%, 22% { transform: scaleX(0); opacity: 1; }
  34%, 88% { transform: scaleX(1); opacity: 1; }
  96%, 100% { transform: scaleX(1); opacity: 0; }
}
@keyframes rd-text { 0%, 22% { opacity: 1; } 23%, 96% { opacity: 0; } 97%, 100% { opacity: 1; } }
@keyframes rd-text2 { 0%, 36% { opacity: 1; } 37%, 96% { opacity: 0; } 97%, 100% { opacity: 1; } }
@keyframes rd-badge {
  0%, 42% { opacity: 0; transform: translateY(8px) scale(.8); }
  50%, 88% { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; transform: scale(.9); }
}

/* Protect */
.ill-protect { display: grid; place-items: center; }
.lock-card {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 22px 26px 20px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 0 0 1px rgb(11 11 19 / .05), 0 18px 40px -20px rgb(43 25 140 / .35);
}
.lock { width: 46px; height: 54px; overflow: visible; }
.lock .shackle { fill: none; stroke: var(--ink); stroke-width: 4.5; stroke-linecap: round; animation: lock-shackle 6s var(--ease-spring) infinite; }
.lock .body { animation: lock-body 6s var(--ease-out) infinite; }
.lock .hole { fill: #fff; }
.pw {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 196px;
  height: 38px;
  padding: 0 14px;
  border-radius: 9px;
  background: var(--mist);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.pw i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); transform: scale(0); animation: pw-dot 6s var(--ease-spring) infinite; }
.pw i:nth-child(2) { animation-name: pw-dot2; } .pw i:nth-child(3) { animation-name: pw-dot3; }
.pw i:nth-child(4) { animation-name: pw-dot4; } .pw i:nth-child(5) { animation-name: pw-dot5; }
.pw i:nth-child(6) { animation-name: pw-dot6; } .pw i:nth-child(7) { animation-name: pw-dot7; }
.pw i:nth-child(8) { animation-name: pw-dot8; }
.aes { animation: aes-pop 6s var(--ease-spring) infinite; }
@keyframes pw-dot { 0%, 6% { transform: scale(0); } 8%, 92% { transform: scale(1); } 96%, 100% { transform: scale(0); } }
@keyframes pw-dot2 { 0%, 10% { transform: scale(0); } 12%, 92% { transform: scale(1); } 96%, 100% { transform: scale(0); } }
@keyframes pw-dot3 { 0%, 14% { transform: scale(0); } 16%, 92% { transform: scale(1); } 96%, 100% { transform: scale(0); } }
@keyframes pw-dot4 { 0%, 18% { transform: scale(0); } 20%, 92% { transform: scale(1); } 96%, 100% { transform: scale(0); } }
@keyframes pw-dot5 { 0%, 22% { transform: scale(0); } 24%, 92% { transform: scale(1); } 96%, 100% { transform: scale(0); } }
@keyframes pw-dot6 { 0%, 26% { transform: scale(0); } 28%, 92% { transform: scale(1); } 96%, 100% { transform: scale(0); } }
@keyframes pw-dot7 { 0%, 30% { transform: scale(0); } 32%, 92% { transform: scale(1); } 96%, 100% { transform: scale(0); } }
@keyframes pw-dot8 { 0%, 34% { transform: scale(0); } 36%, 92% { transform: scale(1); } 96%, 100% { transform: scale(0); } }
@keyframes lock-shackle {
  0%, 40% { transform: translateY(-7px); stroke: var(--ink); }
  48%, 92% { transform: none; stroke: var(--brand); }
  98%, 100% { transform: translateY(-7px); stroke: var(--ink); }
}
@keyframes lock-body {
  0%, 40% { fill: var(--ink); }
  48%, 92% { fill: var(--brand); }
  98%, 100% { fill: var(--ink); }
}
@keyframes aes-pop {
  0%, 46% { opacity: 0; transform: translateY(6px) scale(.85); }
  54%, 92% { opacity: 1; transform: none; }
  98%, 100% { opacity: 0; transform: none; }
}

/* Merge & split */
.ill-merge .mdoc {
  position: absolute;
  left: 50%;
  top: 34px;
  width: 104px;
  height: 136px;
  margin-left: -52px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0 0 1px rgb(11 11 19 / .06), 0 14px 30px -16px rgb(43 25 140 / .45);
  overflow: hidden;
}
.ill-merge .mdoc::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 26px; background: var(--c); }
.ill-merge .mdoc::after { content: ""; position: absolute; left: 12px; right: 12px; top: 38px; height: 70px; background: repeating-linear-gradient(180deg, #D9DCE6 0 4px, transparent 4px 11px); }
.ill-merge .mdoc--a { --c: var(--doc-band); animation: mg-a 7s var(--ease-in-out) infinite; }
.ill-merge .mdoc--b { --c: #14B8A6; animation: mg-b 7s var(--ease-in-out) infinite; }
.ill-merge .mdoc--b::after { background: repeating-linear-gradient(180deg, #D9DCE6 0 4px, transparent 4px 11px); }
.ill-merge .mark {
  position: absolute;
  top: -2px;
  width: 12px;
  height: 26px;
  background: var(--c);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
  opacity: 0;
}
.ill-merge .mark--a { --c: var(--brand); right: 22px; animation: mg-mark 7s var(--ease-spring) infinite; }
.ill-merge .mark--b { --c: #F59E0B; right: 40px; animation: mg-mark2 7s var(--ease-spring) infinite; }
.ill-merge .mg-badge { position: absolute; left: 50%; bottom: 20px; translate: -50% 0; animation: mg-badge 7s var(--ease-spring) infinite; }
@keyframes mg-a {
  0%, 10% { transform: translateX(-74px) rotate(-6deg); }
  34%, 84% { transform: translateX(-6px) translateY(-4px) rotate(-2deg); }
  96%, 100% { transform: translateX(-74px) rotate(-6deg); }
}
@keyframes mg-b {
  0%, 10% { transform: translateX(74px) rotate(6deg); }
  34%, 84% { transform: translateX(6px) translateY(4px) rotate(2deg); }
  96%, 100% { transform: translateX(74px) rotate(6deg); }
}
@keyframes mg-mark {
  0%, 38% { opacity: 0; transform: translateY(-10px); }
  44%, 84% { opacity: 1; transform: none; }
  92%, 100% { opacity: 0; transform: none; }
}
@keyframes mg-mark2 {
  0%, 42% { opacity: 0; transform: translateY(-10px); }
  48%, 84% { opacity: 1; transform: none; }
  92%, 100% { opacity: 0; transform: none; }
}
@keyframes mg-badge {
  0%, 46% { opacity: 0; transform: translateY(8px) scale(.85); }
  54%, 84% { opacity: 1; transform: none; }
  92%, 100% { opacity: 0; transform: none; }
}

/* Find */
.ill-find .find-bar {
  position: absolute;
  left: 50%;
  top: 22px;
  translate: -50% 0;
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(300px, 86%);
  height: 42px;
  padding: 0 12px;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 0 0 2px var(--app-accent), 0 14px 30px -16px rgb(43 25 140 / .45);
  font-size: .9rem;
}
.ill-find .find-bar .icon { width: 17px; height: 17px; color: var(--text-faint); }
.ill-find .find-q { display: inline-block; overflow: hidden; white-space: nowrap; width: 0; font-family: var(--font-mono); animation: find-type 6s steps(5, end) infinite; }
.ill-find .find-n { margin-left: auto; font-size: .78rem; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.ill-find .find-page { top: 84px; height: 200px; gap: 12px; }
.ill-find .hit { position: absolute; top: -4px; bottom: -4px; width: 28%; border-radius: 3px; background: #FFE58A; mix-blend-mode: multiply; opacity: 0; animation: find-hit 6s var(--ease-out) infinite; }
.ill-find .hit--cur { background: #F4A340; }
@keyframes find-type {
  0%, 6% { width: 0; }
  26%, 90% { width: 5ch; }
  96%, 100% { width: 0; }
}
@keyframes find-hit {
  0%, 28% { opacity: 0; transform: scale(.8); }
  34%, 90% { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; }
}

/* Story — scroll-driven walkthrough */
.story { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); }
.story__steps { display: grid; }
.story__step {
  display: grid;
  align-content: center;
  gap: 16px;
  min-height: 70vh;
  padding-block: 40px;
  opacity: .28;
  transition: opacity .6s var(--ease-out);
}
.story__step:first-child { min-height: 60vh; align-content: start; padding-top: 18vh; }
.story__step:last-child { min-height: 70vh; }
.story__step.is-active { opacity: 1; }
.story__num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--mist);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-faint);
  transition: background-color .5s, color .5s;
}
.story__step.is-active .story__num { background: var(--brand); color: #fff; }
.story__step p { color: var(--text-muted); max-width: 44ch; }
.story__step .checks { margin-top: 6px; }
.story__visual { position: relative; }
.story__sticky {
  position: sticky;
  top: calc(var(--header-h) + max(24px, (100vh - var(--header-h) - 560px) / 2));
}
.stage {
  position: relative;
  height: 560px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(90% 70% at 50% 0%, #FFFFFF 0%, transparent 60%),
    linear-gradient(160deg, #F2EFFD, #E9E5F8);
  box-shadow: inset 0 0 0 1px rgb(91 61 245 / .08);
  overflow: hidden;
}
.stage__dots { position: absolute; left: 24px; top: 22px; display: flex; gap: 6px; z-index: 5; }
.stage__dots i { width: 8px; height: 8px; border-radius: 50%; background: rgb(11 11 19 / .12); transition: background-color .4s, width .5s var(--ease-out); }
.stage__dots i.is-on { width: 22px; border-radius: 4px; background: var(--brand); }
.scene {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(26px) scale(.98);
  transition: opacity .55s var(--ease-out), transform .8s var(--ease-out), visibility 0s linear .8s;
}
.scene.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .7s var(--ease-out) .1s, transform .9s var(--ease-out) .1s, visibility 0s; }
.scene.is-past { transform: translateY(-26px) scale(.98); }

.sdoc {
  position: relative;
  width: min(380px, 78%);
  height: 440px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 0 0 1px rgb(11 11 19 / .05), 0 30px 60px -28px rgb(43 25 140 / .45);
  overflow: hidden;
}
.sdoc__band { height: 92px; padding: 26px 26px 0; background: var(--doc-band); }
.sdoc__band i { display: block; height: 7px; width: 46%; border-radius: 3px; background: #B9CDEE; }
.sdoc__band b { display: block; height: 14px; width: 82%; margin-top: 12px; border-radius: 4px; background: #fff; }
.sdoc__body { display: grid; gap: 12px; padding: 26px; }
.sdoc .ln { height: 7px; }

/* Scene 1 — open */
.drop {
  display: grid;
  justify-items: center;
  gap: 14px;
  width: min(400px, 82%);
  padding: 34px 24px;
  border-radius: 20px;
  border: 2px dashed #C5BCF3;
  background: rgb(255 255 255 / .6);
  text-align: center;
  color: var(--text-muted);
  font-size: .95rem;
}
.drop .icon-chip { width: 56px; height: 56px; border-radius: 16px; }
.drop .icon-chip .icon { width: 26px; height: 26px; }
.drop__files { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.file-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 0 0 1px rgb(11 11 19 / .06), 0 8px 18px -10px rgb(43 25 140 / .4);
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
}
.file-tag i { font-style: normal; font-size: .66rem; font-weight: 700; padding: 3px 6px; border-radius: 5px; color: #fff; background: var(--c, var(--red)); }
.scene.is-active .file-tag { animation: tag-in .7s var(--ease-spring) both; }
.scene.is-active .file-tag:nth-child(2) { animation-delay: .12s; }
.scene.is-active .file-tag:nth-child(3) { animation-delay: .24s; }
@keyframes tag-in { from { opacity: 0; transform: translateY(14px) scale(.9); } to { opacity: 1; transform: none; } }
.recent { width: min(400px, 82%); margin-top: 18px; display: grid; gap: 8px; }
.recent__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 0 0 1px rgb(11 11 19 / .05);
  font-size: .85rem;
  font-weight: 600;
}
.recent__item small { display: block; font-weight: 500; color: var(--text-faint); font-size: .76rem; }
.recent__item span:last-child { margin-left: auto; font-weight: 500; font-size: .76rem; color: var(--text-faint); }
.recent__thumb { width: 30px; height: 38px; border-radius: 3px; background: linear-gradient(var(--doc-band) 0 9px, #fff 9px); box-shadow: 0 0 0 1px rgb(11 11 19 / .1); flex: none; }
.scene.is-active .recent__item { animation: tag-in .7s var(--ease-out) both; animation-delay: calc(.35s + var(--n, 0) * .1s); }
.scene--open .stack-center { display: grid; justify-items: center; width: 100%; }

/* Scene 2 — mark up */
.s-hl {
  position: absolute;
  inset: -5px -3px;
  border-radius: 3px;
  background: var(--hl-yellow);
  mix-blend-mode: multiply;
  transform-origin: 0 50%;
  transform: scaleX(0);
}
.s-ul { position: absolute; left: 0; right: 0; bottom: -6px; height: 2.5px; background: var(--ul-blue); transform-origin: 0 50%; transform: scaleX(0); }
.s-note { position: absolute; right: 20px; top: 108px; width: 34px; height: 34px; transform: scale(0); }
.s-note svg { width: 100%; height: 100%; }
.s-pop {
  position: absolute;
  right: 22px;
  top: 150px;
  width: 196px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #FFF6D6;
  box-shadow: 0 0 0 1px #F0D78A, 0 12px 26px -12px rgb(0 0 0 / .3);
  font-size: .8rem;
  line-height: 1.35;
  color: #3B3320;
  opacity: 0;
  transform: translateY(-6px);
}
.s-draw { position: absolute; left: 34px; top: 152px; width: 220px; height: 190px; overflow: visible; }
.s-draw path { fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.scene--markup.is-active .s-hl { animation: s-grow .8s var(--ease-out) .5s both; }
.scene--markup.is-active .s-ul { animation: s-grow .7s var(--ease-out) 1.2s both; }
.scene--markup.is-active .s-note { animation: s-pop .6s var(--ease-spring) 1.8s both; }
.scene--markup.is-active .s-pop { animation: s-fade .5s var(--ease-out) 2.3s both; }
.scene--markup.is-active .s-draw path { animation: s-draw 1.2s var(--ease-in-out) 2.8s both; }
@keyframes s-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes s-pop { from { transform: scale(0) rotate(-20deg); } to { transform: none; } }
@keyframes s-fade { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes s-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* Scene 3 — sign & fill */
.s-form { display: grid; gap: 8px; margin-top: 4px; }
.s-form .f-field { margin-top: 0; height: 34px; font-size: .82rem; }
.s-form .f-type { animation: none; width: 0; }
.scene--sign.is-active .s-form .f-type { animation: s-type 1.1s steps(11, end) .5s both; }
@keyframes s-type { from { width: 0; } to { width: 11ch; } }
.s-sigline { position: relative; margin-top: 18px; height: 64px; border-bottom: 1.5px solid #9097A6; }
.s-sigline span { position: absolute; left: 0; bottom: 6px; font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); }
.s-sig { position: absolute; left: 70px; bottom: 2px; width: 190px; height: 60px; overflow: visible; }
.s-sig path { fill: none; stroke: #1F2F7A; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.scene--sign.is-active .s-sig path { animation: s-draw 1.6s var(--ease-in-out) 1.8s both; }
.s-check { display: flex; align-items: center; gap: 10px; font-size: .82rem; color: var(--text-muted); }
.s-check .f-check { animation: none; }
.s-check .f-check path { animation: none; stroke-dashoffset: 1; }
.scene--sign.is-active .s-check .f-check { animation: s-box .3s var(--ease-out) 1.4s both; }
.scene--sign.is-active .s-check .f-check path { animation: s-draw .4s var(--ease-out) 1.5s both; }
@keyframes s-box { to { background: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); } }
.sig-pad {
  position: absolute;
  right: 6%;
  top: 56px;
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 0 0 1px rgb(11 11 19 / .06), 0 22px 40px -20px rgb(43 25 140 / .5);
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-faint);
  opacity: 0;
  transform: translateX(16px);
}
.sig-pad__tabs { display: flex; gap: 4px; }
.sig-pad__tabs span { padding: 4px 8px; border-radius: 6px; }
.sig-pad__tabs span.is-on { background: var(--ink); color: #fff; }
.scene--sign.is-active .sig-pad { animation: s-slide .6s var(--ease-out) .9s both; }
@keyframes s-slide { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }

/* Scene 4 — pages */
.s-grid { position: relative; width: 384px; height: 300px; }
.s-pg {
  --col: 0;
  --row: 0;
  position: absolute;
  left: calc(var(--col) * 132px);
  top: calc(var(--row) * 156px);
  width: 112px;
  height: 140px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0 0 1px rgb(11 11 19 / .06), 0 14px 28px -16px rgb(43 25 140 / .45);
  overflow: hidden;
  transition: transform .9s var(--ease-out), box-shadow .5s;
}
.s-pg::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 26px; background: var(--c, var(--doc-band)); }
.s-pg::after { content: ""; position: absolute; left: 12px; right: 12px; top: 38px; height: 70px; background: repeating-linear-gradient(180deg, #D9DCE6 0 4px, transparent 4px 11px); }
.s-pg b { position: absolute; right: 8px; bottom: 6px; font-size: .72rem; font-weight: 700; color: var(--text-faint); }
.s-pg:nth-child(1) { --col: 0; --row: 0; }
.s-pg:nth-child(2) { --col: 1; --row: 0; --c: #5B78C9; }
.s-pg:nth-child(3) { --col: 2; --row: 0; --c: #7E7CC9; }
.s-pg:nth-child(4) { --col: 0; --row: 1; --c: var(--brand); }
.s-pg:nth-child(5) { --col: 1; --row: 1; --c: #A76F9C; }
.s-pg:nth-child(6) { --col: 2; --row: 1; --c: #14B8A6; }
.scene--pages.is-active .s-pg:nth-child(4) { animation: s-pg-move 2.6s var(--ease-in-out) .5s both; }
.scene--pages.is-active .s-pg:nth-child(2) { animation: s-pg-right 2.6s var(--ease-in-out) .5s both; }
.scene--pages.is-active .s-pg:nth-child(3) { animation: s-pg-wrap 2.6s var(--ease-in-out) .5s both; }
.scene--pages.is-active .s-pg:nth-child(6) { animation: s-pg-rotate 1s var(--ease-spring) 3.3s both; }
@keyframes s-pg-move {
  0% { transform: none; }
  20% { transform: translateY(-10px) scale(1.06) rotate(-3deg); box-shadow: 0 0 0 2px var(--brand), 0 22px 40px -16px rgb(43 25 140 / .55); }
  75% { transform: translate(132px, -166px) scale(1.06) rotate(-3deg); box-shadow: 0 0 0 2px var(--brand), 0 22px 40px -16px rgb(43 25 140 / .55); }
  100% { transform: translate(132px, -156px); }
}
@keyframes s-pg-right { 0%, 25% { transform: none; } 75%, 100% { transform: translateX(132px); } }
@keyframes s-pg-wrap { 0%, 25% { transform: none; } 75%, 100% { transform: translate(-264px, 156px); } }
@keyframes s-pg-rotate { from { transform: none; } to { transform: rotate(90deg) scale(.8); } }
.s-tools {
  position: absolute;
  left: 50%;
  bottom: 30px;
  translate: -50% 0;
  display: flex;
  gap: 4px;
  padding: 6px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 18px 30px -14px rgb(11 11 19 / .6);
}
.s-tools span { display: grid; place-items: center; width: 38px; height: 34px; border-radius: 9px; }
.s-tools span.is-on { background: rgb(255 255 255 / .14); }
.s-tools .icon { width: 18px; height: 18px; }

/* Scene 5 — save */
.save-card {
  position: relative;
  width: min(380px, 82%);
  padding: 26px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 0 0 1px rgb(11 11 19 / .05), 0 30px 60px -28px rgb(43 25 140 / .45);
  display: grid;
  gap: 14px;
}
.save-card h4 { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.save-card .pw { width: 100%; }
.save-card .pw i { animation: none; transform: scale(0); }
.scene--save.is-active .save-card .pw i { animation: s-dot .3s var(--ease-spring) both; animation-delay: calc(.4s + var(--n) * .09s); }
@keyframes s-dot { from { transform: scale(0); } to { transform: scale(1); } }
.save-row { display: flex; align-items: center; justify-content: space-between; font-size: .85rem; color: var(--text-muted); }
.save-row b { color: var(--text); font-weight: 600; }
.size-bar { height: 8px; border-radius: 8px; background: var(--mist); overflow: hidden; }
.size-bar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--brand-light)); transform-origin: 0 50%; }
.scene--save.is-active .size-bar i { animation: s-shrink 1.2s var(--ease-out) 1.3s both; }
@keyframes s-shrink { from { transform: scaleX(1); } to { transform: scaleX(.62); } }
.save-btn { justify-self: end; }
.scene--save.is-active .save-btn { animation: s-press .5s var(--ease-out) 2.6s both; }
@keyframes s-press { 40% { transform: scale(.94); } 100% { transform: none; } }
.saved-toast {
  position: absolute;
  left: 50%;
  bottom: 34px;
  translate: -50% 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  box-shadow: 0 16px 30px -14px rgb(11 11 19 / .6);
  opacity: 0;
  transform: translateY(14px);
}
.saved-toast .icon { width: 16px; height: 16px; color: #4ADE80; }
.scene--save.is-active .saved-toast { animation: s-toast .6s var(--ease-spring) 3s both; }
@keyframes s-toast { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.undo-hint {
  position: absolute;
  left: 50%;
  top: 34px;
  translate: -50% 0;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-faint);
}

@media (max-width: 899px) {
  .story { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .story__visual { order: -1; position: sticky; top: calc(var(--header-h) + 8px); z-index: 2; }
  .story__sticky { position: static; }
  .stage { height: 340px; border-radius: var(--radius-lg); }
  .scene { transform-origin: 50% 0; }
  .scene > * { scale: .7; }
  .story__step { min-height: 64vh; padding: 28px 22px; margin-inline: -6px; opacity: .35; }
  .story__step:first-child { padding-top: 48px; min-height: 64vh; }
  .story__step.is-active { opacity: 1; }
}
@media (max-width: 479px) {
  .stage { height: 320px; }
  .scene > * { scale: .68; }
}

/* Reading modes */
.reader {
  --page: #FFFFFF;
  --page-ink: #1E1F24;
  --page-line: #D3D6DE;
  --canvas: #E3E6EC;
  position: relative;
  border-radius: var(--radius-xl);
  background: var(--canvas);
  box-shadow: inset 0 0 0 1px rgb(11 11 19 / .06), var(--shadow);
  overflow: hidden;
  transition: background-color .6s var(--ease-out);
}
.reader[data-mode="night"] { --page: #1E1F22; --page-ink: #DCDDDE; --page-line: #45474E; --canvas: #0C0D10; }
.reader[data-mode="sepia"] { --page: #F5EBD7; --page-ink: #3B2E1E; --page-line: #D9C7A6; --canvas: #E6DCC8; }
.reader__bar {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
}
.reader__stage { position: relative; height: 468px; }
.rpage {
  position: absolute;
  left: 50%;
  top: 6px;
  width: 300px;
  height: 400px;
  margin-left: -150px;
  padding: 34px 30px;
  background: var(--page);
  color: var(--page-ink);
  box-shadow: 0 1px 3px rgb(0 0 0 / .12), 0 16px 40px -16px rgb(0 0 0 / .3);
  transition: transform .8s var(--ease-out), opacity .6s var(--ease-out), background-color .6s var(--ease-out), color .6s var(--ease-out);
  font-family: var(--font-serif);
  font-size: 13px;
  line-height: 1.6;
}
.rpage h4 { font-family: var(--font-serif); font-size: 21px; line-height: 1.2; font-weight: 700; margin-bottom: 14px; }
.rpage p { color: var(--page-ink); }
.rpage p + p { margin-top: 10px; }
.rpage .pn { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font-size: 11px; opacity: .6; font-family: var(--font-body); }
.rpage .drop-cap { float: left; font-size: 44px; line-height: .9; padding: 4px 6px 0 0; font-weight: 700; }
.reader[data-layout="double"] .rpage--a { transform: translateX(-154px); }
.reader[data-layout="double"] .rpage--b { transform: translateX(154px); opacity: 1; }
.reader[data-layout="single"] .rpage--a { transform: none; }
.reader[data-layout="single"] .rpage--b { transform: translateX(240px) scale(.94); opacity: 0; }
.reader__meta {
  position: absolute;
  left: 50%;
  bottom: 14px;
  translate: -50% 0;
  z-index: 2;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgb(255 255 255 / .85);
  box-shadow: 0 6px 16px -10px rgb(0 0 0 / .4);
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-muted);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.reader__meta .icon { width: 14px; height: 14px; }
.reader-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px; margin-top: clamp(40px, 5vw, 64px); }
.reader-point { display: grid; gap: 10px; align-content: start; }
.reader-point p { color: var(--text-muted); font-size: .97rem; }
.reader-point .h4 { display: flex; gap: 10px; align-items: center; }
.reader-point .icon { color: var(--brand); width: 20px; height: 20px; }
@media (max-width: 899px) {
  .reader-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .reader-points { grid-template-columns: minmax(0, 1fr); }
  .reader__stage { height: 390px; }
  .rpage { width: 220px; height: 320px; margin-left: -110px; padding: 24px 20px; font-size: 10.5px; }
  .rpage h4 { font-size: 16px; }
  .reader[data-layout="double"] .rpage--a { transform: translateX(-80px) scale(.72); }
  .reader[data-layout="double"] .rpage--b { transform: translateX(80px) scale(.72); }
  .reader__bar { justify-content: center; }
}

/* Beyond the browser (dark) */
.organizer {
  position: relative;
  padding: 26px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, var(--ink-700), var(--ink-800));
  box-shadow: inset 0 0 0 1px var(--line-dark), 0 40px 80px -40px rgb(0 0 0 / .8);
}
.organizer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  color: var(--muted-on-dark);
  font-size: .85rem;
  font-weight: 600;
}
.organizer__tools { display: flex; gap: 4px; padding: 5px; border-radius: 12px; background: rgb(255 255 255 / .06); box-shadow: inset 0 0 0 1px var(--line-dark); }
.organizer__tools span { display: grid; place-items: center; width: 34px; height: 30px; border-radius: 8px; color: #D7D6E6; }
.organizer__tools span.is-on { background: rgb(140 119 255 / .22); color: #fff; }
.organizer__tools .icon { width: 17px; height: 17px; }
.og-grid { position: relative; height: 330px; }
.og {
  --col: 0;
  --row: 0;
  position: absolute;
  left: calc(var(--col) * 25%);
  top: calc(var(--row) * 170px);
  width: calc(25% - 16px);
  aspect-ratio: 3 / 4;
  max-height: 150px;
  border-radius: 7px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 10px 24px -12px rgb(0 0 0 / .7);
}
.og::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 18%; background: var(--c, var(--doc-band)); }
.og::after { content: ""; position: absolute; left: 12%; right: 12%; top: 28%; height: 46%; background: repeating-linear-gradient(180deg, #D9DCE6 0 4px, transparent 4px 10px); }
.og b { position: absolute; right: 8px; bottom: 6px; font-size: .7rem; color: #8A8DA0; font-weight: 700; }
.og:nth-child(1) { --col: 0; --row: 0; }
.og:nth-child(2) { --col: 1; --row: 0; --c: #5B78C9; animation: og-a 9s var(--ease-in-out) infinite; }
.og:nth-child(3) { --col: 2; --row: 0; --c: #7E7CC9; animation: og-b 9s var(--ease-in-out) infinite; }
.og:nth-child(4) { --col: 3; --row: 0; --c: #A76F9C; }
.og:nth-child(5) { --col: 0; --row: 1; --c: var(--brand); animation: og-move 9s var(--ease-in-out) infinite; z-index: 2; }
.og:nth-child(6) { --col: 1; --row: 1; --c: #14B8A6; animation: og-rot 9s var(--ease-spring) infinite; }
.og:nth-child(7) { --col: 2; --row: 1; --c: #F59E0B; animation: og-del 9s var(--ease-out) infinite; }
.og:nth-child(8) { --col: 3; --row: 1; --c: #22C55E; }
.og-drop {
  position: absolute;
  left: calc(25% * 1 - 9px);
  top: 0;
  width: 3px;
  height: 150px;
  border-radius: 3px;
  background: var(--brand-light);
  box-shadow: 0 0 12px var(--brand-light);
  opacity: 0;
  animation: og-caret 9s var(--ease-out) infinite;
}
@keyframes og-move {
  0%, 10% { transform: none; }
  16% { transform: translateY(-10px) scale(1.06) rotate(-3deg); box-shadow: 0 0 0 2px var(--brand-light), 0 24px 40px -14px rgb(0 0 0 / .8); }
  34% { transform: translate(calc(100% + 16px), -180px) scale(1.06) rotate(-3deg); box-shadow: 0 0 0 2px var(--brand-light), 0 24px 40px -14px rgb(0 0 0 / .8); }
  40%, 70% { transform: translate(calc(100% + 16px), -170px); }
  82%, 100% { transform: none; }
}
@keyframes og-a { 0%, 30% { transform: none; } 40%, 70% { transform: translateX(calc(100% + 16px)); } 82%, 100% { transform: none; } }
@keyframes og-b { 0%, 30% { transform: none; } 40%, 70% { transform: translateX(calc(100% + 16px)); } 82%, 100% { transform: none; } }
@keyframes og-caret { 0%, 24% { opacity: 0; } 28%, 36% { opacity: 1; } 40%, 100% { opacity: 0; } }
@keyframes og-rot { 0%, 46% { transform: none; } 54%, 74% { transform: rotate(90deg) scale(.8); } 84%, 100% { transform: none; } }
@keyframes og-del { 0%, 56% { transform: none; opacity: 1; } 62%, 76% { transform: scale(.6) translateY(20px); opacity: 0; } 86%, 100% { transform: none; opacity: 1; } }
.organizer:not(.is-playing) .og,
.organizer:not(.is-playing) .og-drop { animation-play-state: paused; }

.tool-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: clamp(40px, 5vw, 64px); }
.tool {
  position: relative;
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 22px;
  border-radius: var(--radius);
  background: rgb(255 255 255 / .035);
  box-shadow: inset 0 0 0 1px var(--line-dark);
  overflow: hidden;
  transition: background-color .3s, transform .5s var(--ease-out);
}
.tool:hover { background: rgb(255 255 255 / .06); transform: translateY(-3px); }
.tool h3 { font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; letter-spacing: -.01em; }
.tool p { color: var(--muted-on-dark); font-size: .9rem; line-height: 1.5; }
.tool .icon-chip { width: 40px; height: 40px; border-radius: 12px; }
.tool .icon-chip .icon { width: 20px; height: 20px; }
@media (max-width: 999px) { .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479px) {
  .tool-grid { gap: 10px; }
  .tool { padding: 16px; gap: 10px; }
  .tool h3 { font-size: 1rem; }
  .tool p { font-size: .84rem; }
}
@media (max-width: 639px) {
  .og-grid { height: 250px; }
  .og { top: calc(var(--row) * 128px); max-height: 110px; }
  .og-drop { height: 110px; }
}

/* Privacy */
.orbit {
  position: relative;
  width: min(520px, 100%);
  aspect-ratio: 1;
  margin-inline: auto;
  display: grid;
  place-items: center;
}
.orbit__ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px dashed rgb(91 61 245 / .28);
}
.orbit__ring--1 { inset: 20%; border-style: solid; border-color: rgb(91 61 245 / .14); background: radial-gradient(circle, rgb(91 61 245 / .06), transparent 70%); }
.orbit__ring--2 { inset: 6%; }
.orbit__ring--3 { inset: -6%; border-color: rgb(11 11 19 / .07); }
.orbit__core {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 22px 26px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 0 0 1px rgb(11 11 19 / .05), 0 30px 60px -24px rgb(43 25 140 / .45);
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-muted);
}
.orbit__core img { width: 64px; height: 64px; }
.orbit__core .badge { margin-top: 2px; }
.orbit__spin {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  animation: spin 36s linear infinite;
  animation-play-state: paused;
}
.orbit.is-playing .orbit__spin { animation-play-state: running; }
.orbit__spin--rev { inset: 20%; animation-duration: 28s; animation-direction: reverse; }
.orbit__item {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  border-radius: 14px;
  background: #fff;
  color: var(--brand);
  box-shadow: 0 0 0 1px rgb(11 11 19 / .05), 0 12px 24px -12px rgb(43 25 140 / .5);
  animation: spin 36s linear infinite reverse;
  animation-play-state: inherit;
}
.orbit__spin--rev .orbit__item { animation-duration: 28s; animation-direction: normal; }
.orbit__item .icon { width: 22px; height: 22px; }
.orbit__item--doc { color: var(--red); }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit__no {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 1px rgb(11 11 19 / .06), 0 12px 26px -14px rgb(11 11 19 / .4);
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
}
.orbit__no .icon { width: 16px; height: 16px; color: var(--red); }
.orbit__no--1 { left: -2%; top: 8%; }
.orbit__no--2 { right: -4%; top: 30%; }
.orbit__no--3 { left: 4%; bottom: 6%; }
.privacy-list { display: grid; gap: 24px; margin-top: 8px; }
.privacy-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; }
.privacy-item p { color: var(--text-muted); margin-top: 4px; font-size: .97rem; }
@media (max-width: 479px) {
  .orbit__no { font-size: .74rem; padding: 6px 10px 6px 8px; }
  .orbit__no--1 { left: 0; }
  .orbit__no--2 { right: 0; }
  .orbit__no--3 { left: 2%; }
}

/* Under the hood */
.engine-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 22px); }
.engine-card { padding: clamp(24px, 2.8vw, 34px); display: grid; gap: 14px; align-content: start; }
.engine-card p { color: var(--text-muted); }
.engine-card--feature { grid-row: span 2; }
.codec-list { display: flex; flex-wrap: wrap; gap: 8px; }
.codec-list .badge { background: var(--mist); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.progressive {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 16 / 10;
  margin-top: 6px;
  box-shadow: inset 0 0 0 1px rgb(11 11 19 / .06);
}
.progressive svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.progressive__img { animation: sharpen 5s var(--ease-out) infinite; animation-play-state: paused; }
.progressive.is-playing .progressive__img { animation-play-state: running; }
.progressive__label {
  position: absolute;
  left: 14px;
  top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  background: rgb(11 11 19 / .72);
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.progressive__label i { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); animation: label-dot 5s steps(1) infinite; animation-play-state: paused; }
.progressive__label .t { display: inline-grid; }
.progressive__label .t span { grid-area: 1 / 1; }
.progressive__label .t-draft { animation: label-draft 5s steps(1) infinite; animation-play-state: paused; }
.progressive__label .t-sharp { opacity: 0; animation: label-sharp 5s steps(1) infinite; animation-play-state: paused; }
.progressive.is-playing .progressive__label i,
.progressive.is-playing .progressive__label .t span { animation-play-state: running; }
.progressive__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgb(255 255 255 / .35); }
.progressive__bar i { display: block; height: 100%; background: var(--brand-light); transform-origin: 0 50%; animation: pbar 5s linear infinite; animation-play-state: paused; }
.progressive.is-playing .progressive__bar i { animation-play-state: running; }
@keyframes sharpen {
  0% { filter: blur(14px) saturate(.7); transform: scale(1.06); }
  10% { filter: blur(14px) saturate(.7); transform: scale(1.06); }
  55% { filter: blur(0) saturate(1); transform: scale(1); }
  92% { filter: blur(0) saturate(1); transform: scale(1); }
  100% { filter: blur(14px) saturate(.7); transform: scale(1.06); }
}
@keyframes pbar { 0%, 10% { transform: scaleX(0); } 55%, 100% { transform: scaleX(1); } }
@keyframes label-dot { 0% { background: var(--amber); } 55% { background: #4ADE80; } 92% { background: var(--amber); } }
@keyframes label-draft { 0% { opacity: 1; } 55% { opacity: 0; } 92% { opacity: 1; } }
@keyframes label-sharp { 0% { opacity: 0; } 55% { opacity: 1; } 92% { opacity: 0; } }
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(16px, 2vw, 22px); }
.stat { padding: 24px; display: grid; gap: 6px; }
.stat__num { font-family: var(--font-display); font-size: clamp(2rem, 1.5rem + 1.8vw, 3rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat__num .dot { font-size: .9em; }
.stat p { color: var(--text-muted); font-size: .93rem; }
@media (max-width: 899px) {
  .engine-grid { grid-template-columns: minmax(0, 1fr); }
  .engine-card--feature { grid-row: auto; }
  .stat-row { grid-template-columns: minmax(0, 1fr); }
}

/* Personalise & shortcuts */
.tune-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 22px); }
.tune { padding: clamp(22px, 2.6vw, 32px); display: grid; gap: 18px; align-content: start; }
.tune p { color: var(--text-muted); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / .1);
  transition: transform .35s var(--ease-spring), box-shadow .3s;
}
.swatch:hover { transform: scale(1.12); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--c); }
.mini {
  --acc: var(--app-accent);
  --mini-bg: #FFFFFF;
  --mini-alt: #F7F8FA;
  --mini-canvas: #E3E6EC;
  --mini-text: #1A1D24;
  --mini-muted: #5F6878;
  --mini-border: #E1E4EA;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--mini-canvas);
  box-shadow: 0 0 0 1px rgb(11 11 19 / .07);
  transition: background-color .5s var(--ease-out);
}
.mini.is-dark { --mini-bg: #1B1E24; --mini-alt: #181A1F; --mini-canvas: #0C0D10; --mini-text: #E8EAEF; --mini-muted: #A0A8B6; --mini-border: #2A2E36; }
.mini__bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px;
  background: var(--mini-bg);
  border-bottom: 1px solid var(--mini-border);
  transition: background-color .5s var(--ease-out), border-color .5s;
}
.mini__tool {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  color: var(--mini-text);
  transition: background-color .35s, color .35s, transform .2s var(--ease-out);
}
.mini__tool .icon { width: 18px; height: 18px; stroke-width: 1.8; }
.mini__tool.is-on { background: color-mix(in srgb, var(--acc) 16%, var(--mini-bg)); color: var(--acc); }
.mini__tool.is-pressed { transform: scale(.85); }
.mini__body { position: relative; height: 170px; display: grid; place-items: center; }
.mini__page {
  width: 64%;
  height: 132px;
  padding: 18px;
  display: grid;
  gap: 10px;
  align-content: start;
  background: #fff;
  box-shadow: 0 8px 20px -12px rgb(0 0 0 / .35);
}
.mini.is-dark .mini__page { background: #fff; }
.mini__page .ln { height: 6px; }
.mini__sel { position: absolute; inset: -4px -3px; border-radius: 2px; background: color-mix(in srgb, var(--acc) 30%, transparent); transition: background-color .4s; }
.mini__btn {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 9px;
  background: var(--acc);
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  transition: background-color .4s;
}
.mini__btn .icon { width: 14px; height: 14px; }
.mini__label {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--mini-bg);
  color: var(--mini-text);
  font-size: .78rem;
  font-weight: 600;
  box-shadow: 0 0 0 1px var(--mini-border);
  transition: background-color .5s, color .5s;
}
.mini__label b { color: var(--acc); font-weight: 700; transition: color .4s; }
.tune__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.tune__row > span { font-size: .85rem; font-weight: 600; color: var(--text-faint); letter-spacing: .02em; }
.keys { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 8px; }
.kb {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 0;
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-faint);
  transition: color .3s;
}
.kb__cap {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  max-width: 54px;
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 -3px 0 #DAD7E6, 0 0 0 1px var(--line-strong), 0 6px 12px -8px rgb(11 11 19 / .3);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  transition: transform .15s var(--ease-out), box-shadow .15s, background-color .3s, color .3s;
}
.kb.is-on { color: var(--brand); }
.kb.is-on .kb__cap { background: var(--brand); color: #fff; box-shadow: inset 0 -3px 0 var(--brand-700), 0 0 0 1px var(--brand-600), 0 10px 20px -8px rgb(91 61 245 / .7); }
.kb.is-down .kb__cap { transform: translateY(2px); box-shadow: inset 0 -1px 0 var(--brand-700), 0 0 0 1px var(--brand-600); }
.tune__hint { font-size: .88rem; color: var(--text-faint); }
.tune__hint .icon { width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; }
@media (max-width: 899px) { .tune-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 479px) {
  .keys { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .mini__tool { width: 28px; height: 28px; }
  .mini__tool .icon { width: 15px; height: 15px; }
}

/* FAQ */
.faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-layout .section-head { position: sticky; top: calc(var(--header-h) + 32px); }
@media (max-width: 899px) {
  .faq-layout { grid-template-columns: minmax(0, 1fr); }
  .faq-layout .section-head { position: static; }
}

/* Call to action (brand purple) */
.cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.cta__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cta__bg::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto;
  height: 140%;
  background:
    radial-gradient(40% 40% at 50% 40%, rgb(255 255 255 / .2), transparent 70%),
    radial-gradient(30% 36% at 15% 70%, rgb(140 119 255 / .7), transparent 70%),
    radial-gradient(30% 36% at 85% 60%, rgb(59 33 189 / .8), transparent 70%);
}
.cta__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgb(255 255 255 / .16) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(60% 70% at 50% 50%, #000, transparent 75%);
  mask-image: radial-gradient(60% 70% at 50% 50%, #000, transparent 75%);
}
.cta__inner { display: grid; justify-items: center; gap: 26px; }
.cta__mark { width: min(420px, 74vw); margin-bottom: 4px; }
.cta__icon {
  width: 104px;
  height: 104px;
  filter: drop-shadow(0 24px 30px rgb(27 14 102 / .5));
  animation: icon-bob 5s var(--ease-in-out) infinite alternate;
}
@keyframes icon-bob {
  from { transform: translateY(-6px) rotate(-3deg); }
  to { transform: translateY(6px) rotate(3deg); }
}
.cta__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
@media (max-width: 559px) {
  .cta__buttons { flex-direction: column; align-items: stretch; width: 100%; }
  .cta__buttons .btn-dl__text { flex: 1; }
}
.cta__note { color: #E3DDFF; font-size: .92rem; }
.cta__note a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgb(255 255 255 / .45); }
.cta__note a:hover { text-decoration-color: #fff; }


/* 14. Inner pages ----------------------------------------------------------- */

.page-hero {
  position: relative;
  overflow: clip;
  isolation: isolate;
  padding-top: calc(var(--header-h) + clamp(56px, 8vw, 120px));
  padding-bottom: clamp(56px, 7vw, 100px);
  text-align: center;
}
.page-hero__inner { display: grid; justify-items: center; gap: 22px; }
.page-hero .lead { max-width: 640px; }
.page-hero--mist { background: var(--mist); }

/* Features page */
.subnav-wrap {
  position: sticky;
  top: calc(var(--header-h) + 12px);
  z-index: 20;
  display: flex;
  justify-content: center;
  margin-top: 36px;
  pointer-events: none;
}
.subnav {
  position: relative;
  display: flex;
  gap: 2px;
  max-width: 100%;
  padding: 5px;
  border-radius: 999px;
  background: rgb(255 255 255 / .82);
  -webkit-backdrop-filter: saturate(1.8) blur(16px);
  backdrop-filter: saturate(1.8) blur(16px);
  box-shadow: 0 0 0 1px rgb(11 11 19 / .07), 0 14px 30px -18px rgb(43 25 140 / .45);
  overflow-x: auto;
  scrollbar-width: none;
  pointer-events: auto;
}
.subnav::-webkit-scrollbar { display: none; }
.subnav a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 550;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color .3s;
}
.subnav a .icon { width: 16px; height: 16px; }
.subnav a:hover { color: var(--text); }
.subnav a[aria-current="true"] { color: #fff; }
.subnav .seg__thumb { top: 5px; }

.feature-section { scroll-margin-top: calc(var(--header-h) + 90px); }
.feature-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: center; margin-bottom: clamp(36px, 4vw, 56px); }
.feature-head .stack { gap: 16px; }
@media (max-width: 899px) { .feature-head { grid-template-columns: minmax(0, 1fr); } }
.flist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 20px); }
.fitem { padding: 24px; display: grid; gap: 12px; align-content: start; transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.fitem:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--brand-100), var(--shadow); }
.fitem h3 { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
.fitem p { color: var(--text-muted); font-size: .95rem; line-height: 1.55; }
.fitem .icon-chip { width: 40px; height: 40px; border-radius: 12px; }
.fitem .icon-chip .icon { width: 20px; height: 20px; }
.section--mist .fitem { background: #fff; }
@media (max-width: 999px) { .flist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) {
  .flist { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .fitem { grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; row-gap: 4px; padding: 18px; }
  .fitem .icon-chip { grid-row: span 2; }
}
.feature-visual { margin-bottom: clamp(20px, 2.4vw, 28px); }
.feature-visual .ill { height: 300px; }

/* Download page */
.dl-hero-icon {
  position: relative;
  width: 132px;
  height: 132px;
  margin-bottom: 6px;
}
.dl-hero-icon img { position: relative; z-index: 1; width: 100%; height: 100%; filter: drop-shadow(0 26px 34px rgb(43 25 140 / .45)); animation: icon-bob 5s var(--ease-in-out) infinite alternate; }
.dl-hero-icon::before {
  content: "";
  position: absolute;
  inset: -60%;
  background: radial-gradient(circle, rgb(140 119 255 / .45), transparent 62%);
  animation: glow-pulse 4s var(--ease-in-out) infinite alternate;
}
@keyframes glow-pulse { from { opacity: .6; transform: scale(.92); } to { opacity: 1; transform: scale(1.06); } }
.platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 22px); }
.platform {
  position: relative;
  display: grid;
  gap: 22px;
  align-content: start;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--ring), var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow .5s var(--ease-out), transform .5s var(--ease-out);
}
.platform:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--brand-100), var(--shadow); }
.platform.is-recommended { box-shadow: 0 0 0 2px var(--brand), var(--shadow); }
.platform__head { display: flex; align-items: center; gap: 16px; }
.platform__logo {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: var(--mist);
  color: var(--ink);
  flex: none;
}
.platform__logo .icon { width: 28px; height: 28px; }
.platform__head h2 { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.platform__head p { color: var(--text-faint); font-size: .92rem; margin-top: 2px; }
.platform__rec { position: absolute; right: 22px; top: 22px; display: none; }
.platform.is-recommended .platform__rec { display: inline-flex; }
/* File name on the left, size on the right; when both don't fit, the size moves under the name */
.platform__file {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2px 12px;
  padding: 12px 14px 12px 42px;
  border-radius: 12px;
  background: var(--mist);
  font-family: var(--font-mono);
  font-size: .85rem;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}
.platform__file .icon { position: absolute; left: 14px; top: 0; bottom: 0; margin: auto 0; width: 18px; height: 18px; color: var(--text-faint); }
.platform__size { color: var(--text-faint); white-space: nowrap; }
.platform .checks { gap: 10px; font-size: .95rem; }
@media (max-width: 799px) { .platforms { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 479px) { .platform__rec { position: static; justify-self: start; } }

.bundle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  margin-top: clamp(16px, 2vw, 22px);
  padding: clamp(22px, 2.6vw, 30px) clamp(24px, 3vw, 36px);
  border-radius: var(--radius-xl);
  background: var(--ink);
  color: #fff;
}
.bundle__text { display: flex; align-items: center; gap: 18px; }
.bundle__text p { color: var(--muted-on-dark); font-size: .95rem; }
.bundle__text h2 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; letter-spacing: -.02em; }
.bundle .icon-chip { background: rgb(140 119 255 / .16); color: var(--brand-light); box-shadow: inset 0 0 0 1px rgb(140 119 255 / .25); }

.install { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 899px) { .install { grid-template-columns: minmax(0, 1fr); } }
.dmg {
  position: relative;
  height: 320px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #FAFAFD, #EFEDF7);
  box-shadow: 0 0 0 1px rgb(11 11 19 / .07), var(--shadow);
  overflow: hidden;
}
.dmg__bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; background: rgb(255 255 255 / .7); border-bottom: 1px solid var(--line); font-size: .8rem; font-weight: 600; color: var(--text-faint); }
.dmg__bar i { width: 11px; height: 11px; border-radius: 50%; background: #E3E1EC; }
.dmg__bar span { margin-left: auto; margin-right: auto; padding-right: 50px; }
.dmg__app,
.dmg__folder { position: absolute; top: 96px; display: grid; justify-items: center; gap: 10px; font-size: .85rem; font-weight: 600; }
.dmg__app { left: 18%; z-index: 2; animation: dmg-drag 5s var(--ease-in-out) infinite; animation-play-state: paused; }
.dmg__folder { right: 18%; }
.dmg.is-playing .dmg__app { animation-play-state: running; }
.dmg__app img { width: 92px; height: 92px; filter: drop-shadow(0 12px 18px rgb(43 25 140 / .4)); }
.dmg__folder-icon { display: grid; place-items: center; width: 92px; height: 92px; border-radius: 22px; background: linear-gradient(180deg, #7FB2FF, #4E8DF5); color: #fff; box-shadow: 0 12px 18px -8px rgb(30 80 200 / .45); }
.dmg__folder-icon .icon { width: 44px; height: 44px; stroke-width: 1.6; }
.dmg__arrow { position: absolute; left: 50%; top: 130px; width: 120px; translate: -50% 0; color: var(--text-faint); }
.dmg__arrow svg { width: 100%; height: 30px; }
@keyframes dmg-drag {
  0%, 15% { transform: none; }
  50%, 62% { transform: translateX(calc(64cqw - 92px)) scale(.9); opacity: 1; }
  70% { opacity: 0; transform: translateX(calc(64cqw - 92px)) scale(.6); }
  71%, 84% { opacity: 0; transform: none; }
  100% { opacity: 1; transform: none; }
}
.win-run {
  position: relative;
  height: 320px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #1A4C9C, #0E2F6B);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.win-run__file { display: grid; justify-items: center; gap: 10px; color: #fff; font-size: .85rem; font-weight: 600; }
.win-run__file img { width: 84px; height: 84px; filter: drop-shadow(0 12px 18px rgb(0 0 0 / .35)); }
.win-run__click { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -76px 0 0 -60px; border-radius: 50%; border: 2px solid rgb(255 255 255 / .7); opacity: 0; animation: win-click 3.5s var(--ease-out) infinite; animation-play-state: paused; }
.win-run.is-playing .win-run__click { animation-play-state: running; }
@keyframes win-click { 0%, 30% { opacity: 0; transform: scale(.3); } 35% { opacity: 1; } 60%, 100% { opacity: 0; transform: scale(1.3); } }

.req-table { width: 100%; font-size: .97rem; }
.req-table th,
.req-table td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.req-table th { font-weight: 600; color: var(--text); width: 34%; }
.req-table td { color: var(--text-muted); }
.req-table thead th { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--text); }
.req-table thead th .icon { width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; color: var(--text); }
.table-card { padding: 8px 8px 0; overflow-x: auto; }
.table-card tr:last-child td,
.table-card tr:last-child th { border-bottom: 0; }

/* On phones each requirement becomes a small block: name, then the macOS and Windows values */
@media (max-width: 639px) {
  .req-table thead { display: none; }
  .req-table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 16px; padding: 16px 10px; border-bottom: 1px solid var(--line); }
  .table-card tr:last-child { border-bottom: 0; }
  .req-table th,
  .req-table td { padding: 0; border: 0; width: auto; }
  .req-table th[scope="row"] { grid-column: 1 / -1; margin-bottom: 4px; }
  .req-table td::before { content: attr(data-label); display: block; font-size: .78rem; font-weight: 600; color: var(--text-faint); }
  .req-table td.req-both { grid-column: 1 / -1; }
}

.notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: #FFF8EA;
  box-shadow: inset 0 0 0 1px #F5DFAE;
  color: #5D4A1F;
}
.notice .icon-chip { background: #FFEFC9; color: #A16A05; box-shadow: inset 0 0 0 1px #F2D79A; }
.notice h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: #3E3112; margin-bottom: 6px; }
.notice ol { list-style: decimal; padding-left: 1.2em; display: grid; gap: 6px; margin-top: 8px; }
.notice b { color: #3E3112; }

/* Checking a download against its SHA-256 checksum */
.verify {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  margin-top: clamp(16px, 2vw, 24px);
  padding: 22px 24px;
}
.verify h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--ink); margin-bottom: 6px; }
.verify b { color: var(--ink); }
.hashes { display: grid; gap: 8px; margin: 16px 0; }
.hashes div { display: grid; gap: 2px; padding: 10px 14px; border-radius: 12px; background: var(--mist); }
.hashes dt { font-size: .88rem; font-weight: 600; color: var(--ink); }
.hashes code, .verify__how code { font-family: var(--font-mono); font-size: .8rem; overflow-wrap: anywhere; }
.hashes code { color: var(--text-muted); user-select: all; }
.verify__how { display: grid; gap: 8px; font-size: .92rem; }
.verify__how code { padding: 1px 6px; border-radius: 6px; background: var(--mist); color: var(--ink); }
.verify__all { margin-top: 14px; font-size: .92rem; }
@media (max-width: 599px) {
  .verify { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  .verify__how code { display: block; width: fit-content; margin-top: 4px; padding: 6px 10px; }
}

/* What's new */
.rename { display: grid; justify-items: center; gap: 18px; margin-bottom: 12px; }
.rename__old {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, .9rem + .8vw, 1.5rem);
  font-weight: 500;
  color: var(--text-faint);
  letter-spacing: -.01em;
}
.rename__old s { text-decoration-thickness: 2px; text-decoration-color: var(--brand); }
.rename__mark { width: min(620px, 86vw); }
.rename__mark .wordmark { width: 100%; }
.js .rename__mark .wm-ink { animation: split-left 1.1s var(--ease-out) .2s both; }
.js .rename__mark .wm-blan { animation: split-right 1.1s var(--ease-out) .2s both; }
.js .rename__mark .wm-chev { animation: wm-chev-in 1s var(--ease-spring) .7s both; }
@keyframes split-left { from { opacity: 0; transform: translateX(-8%); } to { opacity: 1; transform: none; } }
@keyframes split-right { from { opacity: 0; transform: translateX(8%); } to { opacity: 1; transform: none; } }
.version-chip { display: inline-flex; align-items: center; gap: 10px; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 22px); }
.news { padding: clamp(24px, 2.6vw, 32px); display: grid; gap: 14px; align-content: start; }
.news p { color: var(--text-muted); }
.news--wide { grid-column: span 2; }
.news__metric { display: flex; align-items: baseline; gap: 10px; font-family: var(--font-display); font-weight: 600; letter-spacing: -.045em; line-height: 1; font-size: clamp(3rem, 2rem + 3vw, 4.6rem); }
.news__metric small { font-size: .3em; letter-spacing: 0; color: var(--text-faint); font-weight: 500; }
.meter { display: grid; gap: 10px; margin-top: 6px; }
.meter__row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; align-items: center; font-size: .82rem; font-weight: 600; color: var(--text-faint); }
.meter__track { height: 10px; border-radius: 10px; background: var(--mist); overflow: hidden; }
.meter__fill { display: block; height: 100%; border-radius: inherit; background: var(--line-strong); transform-origin: 0 50%; transform: scaleX(var(--v)); }
.meter__fill--brand { background: linear-gradient(90deg, var(--brand), var(--brand-light)); }
.js .meter__fill { transform: scaleX(0); transition: transform 1.4s var(--ease-out); }
.js .is-in .meter__fill { transform: scaleX(var(--v)); }
.js .is-in .meter__row + .meter__row .meter__fill { transition-delay: .25s; }
@media (max-width: 999px) {
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .news-grid { grid-template-columns: minmax(0, 1fr); }
  .news--wide { grid-column: auto; }
}
.changelog { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); }
.changelog__side { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; display: grid; gap: 10px; }
.changelog__side .h3 { display: flex; align-items: center; gap: 10px; }
.changelog__body { display: grid; gap: 34px; }
.changelog__group h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; margin-bottom: 14px; display: flex; gap: 10px; align-items: center; }
.changelog__group h3 .icon { color: var(--brand); }
.changelog__group ul { display: grid; gap: 12px; }
.changelog__group li { position: relative; padding-left: 22px; color: var(--text-muted); }
.changelog__group li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.changelog__group li b { color: var(--text); font-weight: 600; }
@media (max-width: 799px) {
  .changelog { grid-template-columns: minmax(0, 1fr); }
  .changelog__side { position: static; }
}

/* Help */
.help-search {
  position: relative;
  width: min(620px, 100%);
  margin-top: 8px;
}
.help-search input {
  width: 100%;
  height: 62px;
  padding: 0 64px 0 58px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line-strong), 0 20px 40px -22px rgb(43 25 140 / .45);
  font-size: 1.05rem;
  transition: box-shadow .3s;
}
.help-search input::placeholder { color: #8A8A9C; }
.help-search input:focus { outline: none; box-shadow: 0 0 0 2px var(--brand), 0 20px 40px -22px rgb(43 25 140 / .55); }
.help-search > .icon { position: absolute; left: 22px; top: 50%; translate: 0 -50%; width: 22px; height: 22px; color: var(--text-faint); pointer-events: none; }
.help-search kbd { position: absolute; right: 18px; top: 50%; translate: 0 -50%; }
.help-results { margin-top: 12px; font-size: .9rem; color: var(--text-faint); min-height: 1.5em; }
.quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 20px); }
.quick a { padding: 24px; display: grid; gap: 10px; align-content: start; transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.quick a:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--brand-100), var(--shadow); }
.quick h2 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; letter-spacing: -.015em; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.quick h2 .icon { width: 18px; height: 18px; color: var(--text-faint); transition: transform .4s var(--ease-out), color .3s; }
.quick a:hover h2 .icon { transform: translateX(4px); color: var(--brand); }
.quick p { color: var(--text-muted); font-size: .95rem; }
@media (max-width: 899px) { .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) {
  .quick { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .quick a { grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; row-gap: 4px; padding: 18px; }
  .quick a .icon-chip { grid-row: span 2; }
}
.help-group { scroll-margin-top: calc(var(--header-h) + 32px); }
.help-group + .help-group { margin-top: clamp(48px, 6vw, 80px); }
.help-group__head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.help-group[hidden] { display: none; }
.shortcuts-wrap { display: grid; gap: 18px; }
.shortcuts-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 20px); }
.sc-group { padding: 22px 24px; }
.sc-group h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin-bottom: 8px; }
.sc-list { display: grid; }
.sc-list div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .93rem; color: var(--text-muted); }
.sc-list div:last-child { border-bottom: 0; }
.sc-keys { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px; color: var(--text-faint); font-size: .8rem; }
@media (max-width: 799px) { .shortcuts { grid-template-columns: minmax(0, 1fr); } }
.limits { display: grid; gap: 12px; }
.limits li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; color: var(--text-muted); }
.limits li .icon { color: var(--amber); width: 20px; height: 20px; margin-top: 2px; }
.paths { display: grid; gap: 10px; margin-top: 10px; }
.paths div { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 12px; background: var(--mist); font-size: .92rem; }
.paths code { font-family: var(--font-mono); font-size: .85rem; color: var(--ink); overflow-wrap: anywhere; }
.no-results { display: none; padding: 40px 24px; text-align: center; color: var(--text-muted); }
.no-results.is-visible { display: block; }

/* 404 */
.lost {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: calc(var(--header-h) + 40px) var(--gutter) 80px;
  text-align: center;
  background: var(--mist);
  overflow: hidden;
  position: relative;
  isolation: isolate;
}
.lost__inner { display: grid; justify-items: center; gap: 22px; }
.lost__code {
  display: flex;
  align-items: center;
  gap: .04em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(7rem, 4rem + 14vw, 15rem);
  line-height: .85;
  letter-spacing: -.06em;
  color: var(--ink);
}
.lost__code .zero { position: relative; display: inline-block; animation: zero-roll 6s var(--ease-in-out) infinite; }
.lost__code .dot { animation: dot-bounce 2.4s var(--ease-out) infinite; display: inline-block; }
@keyframes zero-roll { 0%, 70% { transform: none; } 85% { transform: rotate(-14deg) translateX(-4%); } 100% { transform: none; } }
@keyframes dot-bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-40%); }
}
.lost__mark { width: min(300px, 70vw); opacity: .9; }
.back-link .chev { display: inline-block; transition: transform .45s var(--ease-spring); }
.back-link:hover .chev { transform: translateX(-4px); }
.lost__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.lost__bg i {
  position: absolute;
  width: 90px;
  height: 120px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 0 0 1px rgb(11 11 19 / .05), 0 20px 40px -24px rgb(43 25 140 / .4);
  animation: drift 14s var(--ease-in-out) infinite alternate;
}
.lost__bg i::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 22px; border-radius: 10px 10px 0 0; background: var(--c, var(--doc-band)); }
.lost__bg i::after { content: ""; position: absolute; left: 12px; right: 12px; top: 34px; height: 54px; background: repeating-linear-gradient(180deg, #E1E3EB 0 4px, transparent 4px 10px); }
.lost__bg i:nth-child(1) { left: 8%; top: 22%; rotate: -12deg; }
.lost__bg i:nth-child(2) { right: 9%; top: 18%; rotate: 9deg; --c: var(--brand); animation-delay: -4s; }
.lost__bg i:nth-child(3) { left: 14%; bottom: 12%; rotate: 8deg; --c: #14B8A6; animation-delay: -7s; }
.lost__bg i:nth-child(4) { right: 14%; bottom: 14%; rotate: -7deg; --c: #F59E0B; animation-delay: -10s; }
@keyframes drift { from { transform: translate(0, 0); } to { transform: translate(14px, -22px); } }
@media (max-width: 639px) { .lost__bg i { display: none; } }
.lost__mark .wordmark { width: 100%; }
.back-link .chev { width: .5em; height: .82em; fill: currentColor; flex: none; }

/* Download page extras */
html[data-os="windows"] .platform[data-platform-card="windows"] { order: -1; }
.bundle__text p { overflow-wrap: anywhere; }
.install-tabs { display: grid; justify-items: center; gap: clamp(32px, 4vw, 48px); }
.install-tabs .tab-panels { width: 100%; }
.notice p + ol { margin-top: 8px; }
.notice__alt { margin-top: 10px; font-size: .92rem; }
.next-card {
  padding: clamp(24px, 2.6vw, 32px);
  display: grid;
  gap: 12px;
  align-content: start;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.next-card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--brand-100), var(--shadow); }
.next-card p { color: var(--text-muted); }
.next-card .text-link { justify-self: start; display: inline-flex; align-items: center; gap: 6px; }
.next-card .text-link .icon { width: 16px; height: 16px; transition: transform .35s var(--ease-out); }
.next-card:hover .text-link { background-size: 100% 1.5px; }
.next-card:hover .text-link .icon { transform: translateX(3px); }
.dmg { container-type: inline-size; }

/* Features page extras */
.swatch-ill { display: grid; place-items: center; }
.swatch-ill__card {
  display: grid;
  gap: 16px;
  padding: 22px 24px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 0 0 1px rgb(11 11 19 / .05), 0 18px 40px -20px rgb(43 25 140 / .35);
}
.swatch-ill__title { display: flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; }
.swatch-ill__title .icon { width: 18px; height: 18px; color: var(--brand); }
.swatch-ill__row { position: relative; display: grid; grid-template-columns: repeat(5, 28px); gap: 10px; }
.swatch-ill__row i { width: 28px; height: 28px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .1); }
.swatch-ill__ring {
  position: absolute;
  left: -5px;
  top: -5px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #6366F1;
  box-shadow: inset 0 0 0 2px currentColor;
  animation: ring-hop 14s var(--ease-in-out) infinite;
}
@keyframes ring-hop {
  0%, 8% { transform: translate(0, 0); color: #6366F1; }
  10%, 18% { transform: translate(38px, 0); color: #3B82F6; }
  20%, 28% { transform: translate(76px, 0); color: #0EA5E9; }
  30%, 38% { transform: translate(114px, 0); color: #14B8A6; }
  40%, 48% { transform: translate(152px, 0); color: #22C55E; }
  50%, 58% { transform: translate(152px, 38px); color: #64748B; }
  60%, 68% { transform: translate(114px, 38px); color: #A855F7; }
  70%, 78% { transform: translate(76px, 38px); color: #F43F5E; }
  80%, 88% { transform: translate(38px, 38px); color: #F97316; }
  90%, 98% { transform: translate(0, 38px); color: #F59E0B; }
  100% { transform: translate(0, 0); color: #6366F1; }
}
.swatch-ill__seg { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--mist); font-size: .8rem; font-weight: 600; color: var(--text-muted); }
.swatch-ill__seg span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; }
.swatch-ill__seg span.is-on { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgb(0 0 0 / .08); }
.swatch-ill__seg .icon { width: 14px; height: 14px; }
.feature-more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: clamp(28px, 3vw, 40px);
  color: var(--text-muted);
  text-align: center;
}
.feature-more .icon { width: 18px; height: 18px; color: var(--brand); }

/* What's new extras */
.news__rename {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--mist);
}
.news__old {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-faint);
  text-decoration: line-through;
  text-decoration-color: var(--brand);
  text-decoration-thickness: 2px;
}
.news__rename > .icon { width: 20px; height: 20px; color: var(--text-faint); }
.news__new { width: 150px; }
.meter__cap { font-size: .78rem; font-weight: 600; letter-spacing: .02em; color: var(--text-faint); }
.changelog__note { margin-top: 4px; }

/* Help extras */
.help-suggest { margin-top: 10px; }
.help-suggest .text-link { font: inherit; font-weight: 600; color: var(--brand); }
.no-results .h3 { margin-bottom: 8px; color: var(--text); }


/* 15. Reduced motion — final, still states ---------------------------------
   Looping illustrations show their finished picture instead of their first frame. */

html[data-motion="reduce"] .rotator { transition: none; }
html[data-motion="reduce"] .marquee__track { animation: none !important; }
html[data-motion="reduce"] .marquee__row { width: auto; }
html[data-motion="reduce"] .marquee__row .marquee__track { flex: 1 1 auto; min-width: 0; flex-wrap: wrap; justify-content: center; padding: 0 var(--gutter); }
html[data-motion="reduce"] .marquee__row .marquee__track[aria-hidden="true"] { display: none; }
html[data-motion="reduce"] .marquee { -webkit-mask-image: none; mask-image: none; }
html[data-motion="reduce"] .float-chip { opacity: 1 !important; animation: none !important; }
html[data-motion="reduce"] .hero__glow,
html[data-motion="reduce"] .cta__icon,
html[data-motion="reduce"] .dl-hero-icon img,
html[data-motion="reduce"] .dl-hero-icon::before,
html[data-motion="reduce"] .orbit__spin,
html[data-motion="reduce"] .orbit__item,
html[data-motion="reduce"] .lost__bg i,
html[data-motion="reduce"] .lost__code .zero,
html[data-motion="reduce"] .lost__code .dot { animation: none !important; }

html[data-motion="reduce"] .ill *,
html[data-motion="reduce"] .organizer *,
html[data-motion="reduce"] .progressive *,
html[data-motion="reduce"] .dmg *,
html[data-motion="reduce"] .win-run * { animation: none !important; }
html[data-motion="reduce"] .ill-markup .hl,
html[data-motion="reduce"] .ill-markup .ul { transform: none; }
html[data-motion="reduce"] .ill-markup .sq path,
html[data-motion="reduce"] .ill-markup .ill-circle ellipse,
html[data-motion="reduce"] .ill-sign .sig path,
html[data-motion="reduce"] .f-check path { stroke-dashoffset: 0; }
html[data-motion="reduce"] .ill-markup .ill-note { transform: none; }
html[data-motion="reduce"] .ill-markup .ill-cursor,
html[data-motion="reduce"] .ill-sign .sig-pen { display: none; }
html[data-motion="reduce"] .ill-sign .sig-saved { opacity: 1; }
html[data-motion="reduce"] .f-type { width: 11ch; }
html[data-motion="reduce"] .f-check { background: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); }
html[data-motion="reduce"] .f-radio--b::after { transform: scale(1); }
html[data-motion="reduce"] .ill-redact .ln.rd::before { opacity: 0; }
html[data-motion="reduce"] .ill-redact .rd-badge,
html[data-motion="reduce"] .ill-merge .mark,
html[data-motion="reduce"] .ill-merge .mg-badge,
html[data-motion="reduce"] .aes { opacity: 1; }
html[data-motion="reduce"] .pw i { transform: none; }
html[data-motion="reduce"] .lock .shackle { stroke: var(--brand); }
html[data-motion="reduce"] .lock .body { fill: var(--brand); }
html[data-motion="reduce"] .ill-merge .mdoc--a { transform: translateX(-6px) translateY(-4px) rotate(-2deg); }
html[data-motion="reduce"] .ill-merge .mdoc--b { transform: translateX(6px) translateY(4px) rotate(2deg); }
html[data-motion="reduce"] .ill-find .find-q { width: 5ch; }
html[data-motion="reduce"] .ill-find .hit { opacity: 1; }
html[data-motion="reduce"] .progressive__bar i { transform: none; }
html[data-motion="reduce"] .progressive__label i { background: #4ADE80; }
html[data-motion="reduce"] .progressive__label .t-draft { opacity: 0; }
html[data-motion="reduce"] .progressive__label .t-sharp { opacity: 1; }

html[data-motion="reduce"] .scene .s-hl,
html[data-motion="reduce"] .scene .s-ul { transform: none; }
html[data-motion="reduce"] .scene .s-note { transform: none; }
html[data-motion="reduce"] .scene .s-pop,
html[data-motion="reduce"] .scene .sig-pad,
html[data-motion="reduce"] .scene .saved-toast { opacity: 1; transform: none; }
html[data-motion="reduce"] .scene .s-draw path,
html[data-motion="reduce"] .scene .s-sig path,
html[data-motion="reduce"] .s-check .f-check path { stroke-dashoffset: 0; }
html[data-motion="reduce"] .s-check .f-check { background: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); }
html[data-motion="reduce"] .s-form .f-type { width: 11ch; }
html[data-motion="reduce"] .save-card .pw i { transform: none; }
html[data-motion="reduce"] .size-bar i { transform: scaleX(.62); }
html[data-motion="reduce"] .file-tag,
html[data-motion="reduce"] .recent__item { animation: none !important; }
html[data-motion="reduce"] .meter__fill { transform: scaleX(var(--v)) !important; }
