/* Retrova website ----------------------------------------------------------
   Type: Archivo (variable width + weight) for display and interface,
         Newsreader (variable optical size) for reading text.
   Colour: deep green-black and mint from the app icon; amber for caution.
   ------------------------------------------------------------------------ */

@font-face {
  font-family: "ArchivoV";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "NewsreaderV";
  src: url("../fonts/newsreader-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* brand */
  --paper: #F6F7F5;
  --ink: #0E1512;
  --well: #050B08;
  --mint: #2BD9A0;
  --mint-hi: #9BF8D4;
  --mint-lo: #17A877;
  --mint-glow: #D8FFF0;
  --amber: #F0A43A;
  --fault: #E5544B;
  --grad: linear-gradient(135deg, var(--mint-hi), var(--mint-lo));

  /* light theme roles */
  --bg: var(--paper);
  --bg-sunk: #ECEFEB;
  --surface: #FFFFFF;
  --text: var(--ink);
  --text-2: #45524B;
  --text-3: #5E6B65;
  --rule: rgba(14, 21, 18, .12);
  --rule-strong: rgba(14, 21, 18, .24);
  --accent: #0A7552;
  --dot: #14A070;
  --focus: #0A7552;
  --amber-ink: #8A5200;
  --fault-ink: #B4281F;
  --blk: rgba(14, 21, 18, .16);
  --blk-faint: rgba(14, 21, 18, .055);
  --shadow: 0 1px 2px rgba(14, 40, 28, .05), 0 22px 44px -22px rgba(14, 40, 28, .32);
  --head-bg: rgba(246, 247, 245, .84);

  /* type */
  --sans: "ArchivoV", "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "NewsreaderV", "Newsreader", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --fs-body: clamp(1.0625rem, .98rem + .3vw, 1.1875rem);
  --fs-hero: clamp(3.3rem, .9rem + 7.6vw, 8.4rem);
  --fs-h2: clamp(2.35rem, 1.25rem + 3.9vw, 4.6rem);

  /* layout */
  --gutter: clamp(16px, 4.5vw, 56px);
  --head-h: 64px;
  --section-y: clamp(84px, 10vw, 156px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1512;
    --bg-sunk: #0A100D;
    --surface: #141E19;
    --text: var(--paper);
    --text-2: #A9B6AF;
    --text-3: #8C9993;
    --rule: rgba(246, 247, 245, .1);
    --rule-strong: rgba(246, 247, 245, .22);
    --accent: #2BD9A0;
    --dot: #2BD9A0;
    --focus: #9BF8D4;
    --amber-ink: #F5BC62;
    --fault-ink: #FF8A80;
    --blk: rgba(246, 247, 245, .17);
    --blk-faint: rgba(246, 247, 245, .06);
    --shadow: 0 0 0 1px rgba(255, 255, 255, .02), 0 26px 50px -26px rgba(0, 0, 0, .8);
    --head-bg: rgba(14, 21, 18, .82);
  }
}

/* ---------- 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(--head-h) + 16px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: var(--fs-body);
  line-height: 1.62;
  font-optical-sizing: auto;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-family: var(--sans); color: var(--text); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
b, strong { font-weight: 650; }
code {
  font-family: var(--mono);
  font-size: .82em;
  padding: .1em .35em;
  border-radius: 5px;
  background: var(--blk-faint);
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font: 600 1rem var(--sans);
  text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(100% - 2 * var(--gutter), 1260px);
  margin-inline: auto;
}
.section { padding-block: var(--section-y); }

/* ---------- display type ---------- */
.tagline,
.section-head h2,
.chapter-title,
.story h2 {
  font-stretch: 125%;
  font-weight: 800;
  letter-spacing: -.032em;
  line-height: .94;
}
.section-head h2,
.story h2 { font-size: var(--fs-h2); }
.dot { color: var(--dot); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .78em 1.2em;
  border: 1px solid transparent;
  border-radius: 12px;
  font: 650 1rem/1.1 var(--sans);
  font-stretch: 105%;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, filter .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  flex-direction: column;
  align-items: flex-start;
  gap: .3em;
  padding: .95em 1.45em 1em;
  background: linear-gradient(135deg, #8AF4CD 0%, #2BD9A0 48%, #1BB680 100%);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 14px 28px -16px rgba(23, 168, 119, .9);
}
.btn-primary:hover { filter: brightness(1.05) saturate(1.05); }
.btn-label { font-size: 1.125rem; font-weight: 720; }
.btn-sub { font-size: .8125rem; font-weight: 520; color: rgba(14, 21, 18, .78); }
.btn-quiet {
  padding: .6em 1.05em;
  background: var(--text);
  color: var(--bg);
  font-size: .9375rem;
}
.btn-quiet:hover { background: var(--accent); color: var(--bg); }
.btn-line {
  border-color: var(--rule-strong);
  background: transparent;
  color: var(--text);
  font-size: .9375rem;
  white-space: nowrap;
}
.btn-line:hover { border-color: var(--accent); color: var(--accent); }
.btn-solid {
  border-color: transparent;
  background: var(--grad);
  color: var(--ink);
}
.btn-solid:hover { color: var(--ink); filter: brightness(1.05); border-color: transparent; }
.text-link {
  font: 560 .9375rem var(--sans);
  color: var(--text-2);
  text-decoration: underline;
  text-decoration-color: var(--rule-strong);
}
.text-link:hover { color: var(--text); text-decoration-color: currentColor; }

/* ---------- header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--head-bg);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.head-row {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--head-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font: 780 1.3rem/1 var(--sans);
  font-stretch: 118%;
  letter-spacing: -.02em;
}
.brand img { margin: -4px; }
.site-nav { margin-left: auto; }
.site-nav ul {
  display: flex;
  gap: clamp(18px, 2.4vw, 34px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  color: var(--text-2);
  font: 540 .9375rem var(--sans);
  text-decoration: none;
}
.site-nav a:hover { color: var(--text); }
@media (max-width: 760px) {
  .site-nav { display: none; }
  .head-dl { margin-left: auto; }
}

/* ---------- hero ---------- */
.hero { padding-block: clamp(36px, 6vw, 96px) clamp(72px, 9vw, 136px); }
.hero-grid {
  display: grid;
  gap: clamp(44px, 6vw, 80px);
  align-items: center;
}
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
}
.tagline {
  font-size: var(--fs-hero);
  font-weight: 830;
  letter-spacing: -.04em;
  line-height: .88;
  margin-left: -.05em;
}
.tagline > span { display: block; }
.lead {
  margin-top: clamp(28px, 3vw, 40px);
  max-width: 31ch;
  color: var(--text-2);
  font-size: clamp(1.25rem, 1.05rem + .75vw, 1.62rem);
  line-height: 1.42;
  font-weight: 400;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: clamp(28px, 3vw, 40px);
}
.hero-note {
  margin-top: 18px;
  color: var(--text-3);
  font: 520 .9375rem/1.4 var(--sans);
}

.sector-map { margin: 0; }
.squircle {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1;
  border-radius: 23.2%;
  overflow: hidden;
  background:
    radial-gradient(60% 60% at 50% 47%, rgba(43, 217, 160, .2), rgba(43, 217, 160, 0) 70%),
    linear-gradient(135deg, #17291F 0%, #050B08 100%);
  box-shadow:
    0 2px 4px rgba(5, 11, 8, .14),
    0 40px 80px -36px rgba(8, 40, 26, .62);
}
.squircle::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09);
  pointer-events: none;
}
.squircle canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (prefers-color-scheme: dark) {
  .squircle { box-shadow: 0 40px 90px -40px rgba(43, 217, 160, .22), 0 2px 0 rgba(0, 0, 0, .3); }
}
@media (max-width: 979px) {
  .squircle { margin-inline: auto; max-width: 480px; }
  .sector-map figcaption { max-width: 480px; margin-inline: auto; }
}

.sector-map figcaption {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 16px;
  max-width: 560px;
  margin-top: 22px;
}
.map-caption {
  grid-column: 1 / -1;
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.5;
  max-width: 50ch;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  font: 520 .8125rem/1.3 var(--sans);
  color: var(--text-2);
}
.legend li { display: inline-flex; align-items: center; gap: 7px; }
.legend b {
  color: var(--text);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  min-width: 3.4ch;
}
.sw { width: 10px; height: 10px; border-radius: 2px; flex: none; }
.sw-wait { background: var(--blk); }
.sw-bad { background: var(--fault); }
.sw-retry { background: var(--amber); }
.sw-ok { background: var(--grad); }
.replay {
  align-self: start;
  padding: 4px 10px;
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
  background: transparent;
  color: var(--text-2);
  font: 560 .8125rem var(--sans);
  cursor: pointer;
}
.replay:hover { color: var(--text); border-color: var(--text-3); }

/* ---------- section heads ---------- */
.section-head {
  display: grid;
  gap: 18px 56px;
  align-items: end;
}
.section-head p {
  max-width: 34ch;
  color: var(--text-2);
  font-size: clamp(1.15rem, 1rem + .4vw, 1.35rem);
  line-height: 1.45;
}
@media (min-width: 960px) {
  .section-head { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .section-head p { padding-bottom: .35em; }
}

/* ---------- how it works ---------- */
.how { padding-top: clamp(40px, 6vw, 96px); }
.how-grid {
  display: grid;
  gap: 28px;
  margin-top: clamp(40px, 5vw, 72px);
}
@media (min-width: 960px) {
  .how-grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
    gap: clamp(48px, 6vw, 104px);
    align-items: start;
  }
  .stage-col { position: sticky; top: calc(var(--head-h) + 7vh); }
}
.no-js .stage-col { display: none; }

.stage {
  display: grid;
  gap: 22px;
  padding: clamp(16px, 2.4vw, 30px);
  border: 1px solid var(--rule);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.drive-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  min-height: 26px;
  margin-bottom: 12px;
}
.drive-name {
  margin-right: 4px;
  font: 680 .9375rem/1.2 var(--sans);
  font-stretch: 108%;
}
.flag {
  display: none;
  align-items: center;
  gap: 5px;
  padding: .28em .62em;
  border-radius: 999px;
  font: 620 .75rem/1.1 var(--sans);
  animation: flag-in .35s ease-out both;
}
@keyframes flag-in { from { opacity: 0; transform: translateY(3px); } }
.flag-bad { background: color-mix(in srgb, var(--fault) 15%, transparent); color: var(--fault-ink); }
.flag-lock,
.flag-ok { background: color-mix(in srgb, var(--mint) 18%, transparent); color: var(--accent); }
.flag-trash { background: color-mix(in srgb, var(--amber) 20%, transparent); color: var(--amber-ink); }
.stage.at-1:not(.at-3) .flag-bad,
.stage.at-3 .flag-lock,
.stage.at-4 .flag-ok,
.stage.at-5 .flag-trash { display: inline-flex; }

.blocks {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(3px, .45vw, 6px);
}
.b {
  position: relative;
  aspect-ratio: 1;
  border-radius: 3px;
  background: var(--blk);
  transition: background-color .35s ease, box-shadow .35s ease, opacity .35s ease, border-color .35s ease;
  transition-delay: calc(var(--i, 0) * 12ms);
}
.drive-src .b[data-t="e"] { background: var(--blk-faint); }
.stage.at-1:not(.at-2) .drive-src .b[data-bad] { background: var(--fault); }
.stage.at-2 .drive-src .b:is([data-t="p"], [data-t="f"], [data-t="v"], [data-t="z"], [data-t="t"]) {
  background: color-mix(in srgb, var(--mint) 34%, transparent);
  box-shadow: inset 0 0 0 1.5px var(--mint-lo);
}
.stage.at-2 .drive-src .b[data-t="c"] {
  background: repeating-linear-gradient(135deg, var(--blk) 0 2px, transparent 2px 5px);
}

.drive-dst .b {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--rule-strong);
}
.stage.at-3 .drive-dst .b[data-t] {
  background: var(--grad);
  box-shadow: inset 0 0 0 1px rgba(5, 11, 8, .06);
}
.drive-dst .b::after {
  content: "";
  position: absolute;
  left: 36%;
  top: 18%;
  width: 26%;
  height: 48%;
  border: solid var(--ink);
  border-width: 0 2px 2px 0;
  opacity: 0;
  transform: rotate(45deg) scale(.4);
  transition: opacity .25s, transform .25s;
  transition-delay: calc(var(--i, 0) * 12ms);
}
.stage.at-4 .drive-dst .b[data-t]::after { opacity: .72; transform: rotate(45deg) scale(1); }
.stage.at-5 .drive-dst .b:is([data-t="z"], [data-t="t"]) {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--amber);
}
.stage.at-5 .drive-dst .b:is([data-t="z"], [data-t="t"])::after { opacity: 0; }

.stage-status {
  display: grid;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  color: var(--text-2);
  font: 540 .9375rem/1.35 var(--sans);
}
.stage-status span {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity .3s;
}
.stage[data-step="1"] [data-for="1"],
.stage[data-step="2"] [data-for="2"],
.stage[data-step="3"] [data-for="3"],
.stage[data-step="4"] [data-for="4"],
.stage[data-step="5"] [data-for="5"] { opacity: 1; }

@media (max-width: 959px) {
  .stage-col {
    position: sticky;
    top: var(--head-h);
    z-index: 5;
    margin-inline: calc(var(--gutter) * -1);
    padding: 10px var(--gutter) 14px;
    background: linear-gradient(var(--bg) 82%, color-mix(in srgb, var(--bg) 0%, transparent));
  }
  .stage {
    grid-template-columns: 1fr 1fr;
    gap: 12px 14px;
    padding: 14px;
    border-radius: 16px;
  }
  .blocks { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 3px; }
  .b { border-radius: 2px; }
  .drive-head { min-height: 0; margin-bottom: 8px; gap: 4px; }
  .drive-name { font-size: .8125rem; width: 100%; }
  .flag { font-size: .6875rem; padding: .2em .5em; }
  .flag svg { display: none; }
  .stage-status { grid-column: 1 / -1; padding-top: 10px; font-size: .8125rem; }
  .drive-dst .b::after { border-width: 0 1.5px 1.5px 0; }
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.step {
  position: relative;
  padding: 4px 0 0 clamp(58px, 6vw, 92px);
}
.step + .step { margin-top: clamp(56px, 7vw, 88px); }
.step-n {
  position: absolute;
  left: 0;
  top: 0;
  color: var(--text-3);
  font: 820 clamp(2.4rem, 1.9rem + 2vw, 3.6rem)/.9 var(--sans);
  font-stretch: 125%;
  letter-spacing: -.04em;
  transition: color .3s;
}
.step h3 {
  margin-bottom: .55em;
  font-size: clamp(1.4rem, 1.12rem + 1vw, 1.95rem);
  font-weight: 760;
  font-stretch: 112%;
  line-height: 1.12;
  letter-spacing: -.012em;
}
.step p { max-width: 34em; color: var(--text-2); }
.step.is-active .step-n,
.no-js .step-n { color: var(--accent); }
@media (min-width: 960px) {
  .step { min-height: 46vh; }
  .step:last-child { min-height: 0; padding-bottom: 12vh; }
  .step + .step { margin-top: 0; }
}

/* ---------- safety ---------- */
.safety {
  --text: var(--paper);
  --text-2: #B2BFB8;
  --text-3: #8E9B95;
  --rule: rgba(246, 247, 245, .14);
  --accent: #2BD9A0;
  --focus: #9BF8D4;
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(43, 217, 160, .1), rgba(43, 217, 160, 0) 60%),
    var(--ink);
  color: var(--text);
}
@media (prefers-color-scheme: dark) {
  .safety {
    background:
      radial-gradient(80% 120% at 100% 0%, rgba(43, 217, 160, .09), rgba(43, 217, 160, 0) 60%),
      var(--well);
    border-block: 1px solid rgba(246, 247, 245, .06);
  }
}
.promises {
  display: grid;
  gap: clamp(40px, 4vw, 56px);
  margin: clamp(48px, 6vw, 88px) 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 900px) {
  .promises { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 64px); }
}
.promise { padding-top: 26px; border-top: 1px solid var(--rule); }
.promise-mark { width: 44px; height: 44px; }
.promise-mark rect { fill: rgba(246, 247, 245, .16); }
.promise-mark .pm-hi { fill: var(--mint); }
.promise-mark .pm-out { fill: none; stroke: var(--mint); stroke-width: 1.6; stroke-dasharray: 3 2.6; }
.promise-mark .pm-frame { fill: none; stroke: rgba(246, 247, 245, .38); stroke-width: 1.6; }
.promise h3 {
  margin: 26px 0 16px;
  font-size: clamp(1.65rem, 1.2rem + 1.4vw, 2.4rem);
  font-weight: 790;
  font-stretch: 118%;
  line-height: 1.02;
  letter-spacing: -.022em;
}
.promise p { color: var(--text-2); max-width: 30em; }

/* ---------- tools ---------- */
.chapter { margin-top: clamp(72px, 9vw, 136px); }
.chapter-head {
  display: grid;
  gap: 10px 48px;
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 72px);
  padding-bottom: clamp(18px, 2vw, 26px);
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 860px) {
  .chapter-head { grid-template-columns: auto minmax(0, 1fr); }
}
.chapter-title { font-size: clamp(3rem, 1.4rem + 6vw, 6.6rem); line-height: .86; }
.chapter-head p {
  max-width: 32ch;
  padding-bottom: .3em;
  color: var(--text-2);
  font-size: clamp(1.1rem, 1rem + .3vw, 1.25rem);
  line-height: 1.45;
}

.tool {
  display: grid;
  gap: 32px 64px;
  align-items: center;
}
.tool + .tool { margin-top: clamp(64px, 8vw, 120px); }
@media (min-width: 960px) {
  .tool { grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); }
  .tool-flip { grid-template-columns: minmax(0, 1.14fr) minmax(0, .86fr); }
  .tool-flip .tool-text { order: 2; }
}
.tool h4 {
  margin-bottom: .6em;
  font-size: clamp(1.45rem, 1.18rem + .85vw, 1.9rem);
  font-weight: 750;
  font-stretch: 112%;
  line-height: 1.1;
  letter-spacing: -.012em;
}
.tool-text p { max-width: 33em; color: var(--text-2); }
.tool-text p + p { margin-top: .9em; }
.tool-text .aside {
  padding-left: 14px;
  border-left: 2px solid var(--amber);
  font-size: .95em;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 1.4em 0 0;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: .38em .72em;
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
  font: 600 .8125rem/1.1 var(--sans);
  color: var(--text);
}
.tool-pair {
  display: grid;
  gap: clamp(64px, 8vw, 120px);
  margin-top: clamp(64px, 8vw, 120px);
}
@media (min-width: 960px) {
  .tool-pair { grid-template-columns: 1fr 1fr; gap: 56px; }
  .tool-pair .tool { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 28px; }
}

/* ---------- product mockups (stylised, not screenshots) ---------- */
.mock {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--text);
  font: 500 .875rem/1.3 var(--sans);
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--rule);
}
.mock-title { margin-right: 4px; font-weight: 720; font-size: .9375rem; }
.tag {
  padding: .26em .6em;
  border-radius: 6px;
  background: var(--blk-faint);
  color: var(--text-2);
  font-size: .75rem;
  font-weight: 600;
  white-space: nowrap;
}
.tag-lock,
.tag-ok {
  margin-left: auto;
  background: color-mix(in srgb, var(--mint) 18%, transparent);
  color: var(--accent);
}
.mock-path {
  padding: 10px 16px 4px;
  color: var(--text-3);
  font-size: .8125rem;
}
.mock-path i { font-style: normal; padding: 0 .3em; opacity: .6; }
.rows { margin: 0; padding: 6px 8px; list-style: none; }
.rows li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 8px;
}
.rows li + li { border-top: 1px solid var(--rule); }
.rows .muted { color: var(--text-3); }
.ck {
  flex: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--rule-strong);
  border-radius: 5px;
}
.ck.on {
  border-color: var(--mint-lo);
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.4 6.6 11.3 12.6 4.8' fill='none' stroke='%230E1512' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.ico-dir {
  flex: none;
  width: 18px;
  height: 14px;
  border-radius: 3px 3px 3px 3px;
  background: color-mix(in srgb, var(--mint-lo) 55%, var(--surface));
  box-shadow: inset 0 3px 0 color-mix(in srgb, var(--mint-lo) 75%, var(--surface));
}
.muted .ico-dir { background: var(--blk); box-shadow: none; }
.nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sz { color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.note {
  margin-left: 6px;
  color: var(--amber-ink);
  font-size: .75rem;
  font-style: normal;
  font-weight: 600;
}
.mock-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--rule);
  color: var(--text-2);
  font-size: .8125rem;
}
.fake-btn {
  padding: .58em .95em;
  border-radius: 8px;
  background: var(--grad);
  color: var(--ink);
  font-weight: 700;
  font-size: .8125rem;
  white-space: nowrap;
}
.fake-link { color: var(--accent); font-weight: 600; font-size: .8125rem; }

/* deep scan */
.progress {
  flex: 1;
  height: 6px;
  min-width: 40px;
  margin-left: 6px;
  border-radius: 6px;
  background: var(--blk-faint);
  overflow: hidden;
}
.progress i { display: block; width: calc(var(--p) * 100%); height: 100%; border-radius: inherit; background: var(--grad); }
.pct { color: var(--text-2); font-variant-numeric: tabular-nums; font-size: .8125rem; }
.type-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0;
  padding: 14px 16px 4px;
  list-style: none;
  color: var(--text-2);
  font-size: .8125rem;
}
.type-counts b { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; margin-right: 3px; }
.thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 12px 16px 18px;
  list-style: none;
}
.thumbs li { min-width: 0; }
.thumbs small {
  display: block;
  margin-top: 6px;
  overflow: hidden;
  color: var(--text-3);
  font-size: .6875rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ph {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  color: var(--text-2);
  font-weight: 700;
  font-size: .75rem;
}
.ph-1 { background: linear-gradient(180deg, #A9D6EE 0 46%, #F3E3B5 46% 58%, #4D8B6E 58% 100%); }
.ph-2 { background: radial-gradient(circle at 68% 42%, #FFE3A3 0 12%, transparent 13%), linear-gradient(180deg, #F2A272 0%, #C9677A 55%, #3B2E4A 100%); }
.ph-3 { background: radial-gradient(ellipse at 30% 100%, #2F6B4F 0 45%, transparent 46%), radial-gradient(ellipse at 85% 100%, #3F8460 0 40%, transparent 41%), linear-gradient(180deg, #CFE7F2, #EAF4F0); }
.ph-4 { background: radial-gradient(circle at 50% 40%, #E9C3A6 0 18%, transparent 19%), radial-gradient(ellipse at 50% 100%, #2E5D78 0 38%, transparent 39%), linear-gradient(160deg, #D8D2C8, #B6AEA2); }
.ph-5 { background: linear-gradient(135deg, #1F3A33, #0B1612); position: relative; }
.ph-5::after { content: ""; border-left: 12px solid rgba(255, 255, 255, .85); border-block: 8px solid transparent; margin-left: 4px; }
.ph-doc { background: var(--bg-sunk); box-shadow: inset 0 0 0 1px var(--rule); color: var(--fault-ink); }

/* verify */
.v-sum {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--rule);
}
.v-sum div { padding: 14px 16px; }
.v-sum div + div { border-left: 1px solid var(--rule); }
.v-sum b {
  display: block;
  font-size: 1.6rem;
  font-weight: 760;
  font-stretch: 112%;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.v-sum span { color: var(--text-2); font-size: .8125rem; }
.st { flex: none; width: 18px; height: 18px; border-radius: 50%; }
.st-ok {
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4 6.8 11 12 5.2' fill='none' stroke='%230E1512' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.st-fix {
  background: var(--amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M12 6.5A4.3 4.3 0 1 0 12.3 9.6' fill='none' stroke='%230E1512' stroke-width='1.8' stroke-linecap='round'/%3E%3Cpath d='M12.6 3.4v3.5H9.1' fill='none' stroke='%230E1512' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.v-rows .sz { font-size: .8125rem; }
.manifest {
  margin: 0;
  padding: 14px 16px 16px;
  overflow: hidden;
  border-top: 1px solid var(--rule);
  background: var(--bg-sunk);
  color: var(--text-2);
  font: 500 .75rem/1.75 var(--mono);
  white-space: pre;
  text-overflow: ellipsis;
}

/* space */
.treemap {
  display: grid;
  grid-template-columns: 1.9fr 1.05fr .95fr;
  grid-template-rows: 1fr 1fr 1fr;
  grid-template-areas: "a b c" "a b d" "a e d";
  gap: 4px;
  height: 196px;
  margin: 14px 16px;
}
.tm {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  padding: 10px;
  overflow: hidden;
  border-radius: 7px;
  color: var(--ink);
  font-size: .75rem;
  font-weight: 560;
}
.tm b { display: block; font-size: .8125rem; font-weight: 720; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-a { grid-area: a; background: linear-gradient(135deg, #5FE6B8, #17A877); }
.tm-b { grid-area: b; background: linear-gradient(135deg, #9BF8D4, #4FD7A7); }
.tm-c { grid-area: c; background: #C3F7E2; }
.tm-d { grid-area: d; background: #D9E4DE; }
.tm-e { grid-area: e; background: #E6ECE8; }
.findings { margin: 0; padding: 0 8px 8px; list-style: none; }
.findings li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-top: 1px solid var(--rule);
}
.f-txt { flex: 1; min-width: 0; color: var(--text-2); font-size: .8125rem; }
.f-txt b { display: block; color: var(--text); font-size: .875rem; font-weight: 680; }
.f-sz { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* find text */
.search {
  display: inline-flex;
  flex: 1;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1.5px solid var(--accent);
  border-radius: 9px;
  font-weight: 600;
  color: var(--text);
}
.search svg { color: var(--text-3); }
.find-grid {
  display: grid;
  grid-template-columns: minmax(100px, .7fr) minmax(0, 1.3fr);
  gap: 16px;
  align-items: start;
  padding: 16px;
}
.receipt {
  display: grid;
  gap: 7px;
  padding: 14px 12px 18px;
  border-radius: 4px;
  background: #FBFAF4;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .1), 0 8px 16px -8px rgba(0, 0, 0, .25);
  transform: rotate(-2.5deg);
}
.receipt i { display: block; height: 5px; border-radius: 3px; background: #CFCBBF; }
.receipt .w40 { width: 40%; }
.receipt .w50 { width: 50%; }
.receipt .w60 { width: 60%; }
.receipt .w70 { width: 70%; }
.receipt .w80 { width: 80%; }
.receipt .hit {
  width: max-content;
  height: auto;
  padding: 2px 4px;
  border-radius: 3px;
  background: color-mix(in srgb, #2BD9A0 45%, transparent);
  box-shadow: 0 0 0 1.5px #17A877;
  color: #24322B;
  font: 700 .625rem/1.2 var(--sans);
  font-style: normal;
}
.find-rows { padding: 0; }
.find-rows li { padding: 4px 0 12px; }
.find-rows li + li { padding-top: 12px; }
.find-rows .nm { white-space: normal; color: var(--text-2); font-size: .8125rem; line-height: 1.45; }
.find-rows .nm b { display: block; color: var(--text); font-size: .875rem; }
mark {
  padding: 0 2px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--mint) 38%, transparent);
  color: var(--text);
}

/* cleanup + system */
.risk {
  padding: .2em .5em;
  border-radius: 5px;
  background: color-mix(in srgb, var(--mint) 16%, transparent);
  color: var(--accent);
  font-size: .6875rem;
  font-weight: 650;
}
.risk-r { background: color-mix(in srgb, var(--amber) 20%, transparent); color: var(--amber-ink); }
.mock-clean .sz,
.mock-sys .sz { min-width: 4.6em; text-align: right; }
.mem { padding: 16px 16px 6px; }
.mem-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.mem-top span:not(.tag) { color: var(--text-2); font-size: .8125rem; }
.mem-bar { display: flex; height: 12px; overflow: hidden; border-radius: 6px; background: var(--blk-faint); gap: 2px; }
.mem-bar i { width: var(--w); background: var(--mint); }
.mem-bar i:nth-child(2) { background: var(--mint-lo); }
.mem-bar i:nth-child(3) { background: var(--amber); }

/* ---------- story ---------- */
.story-grid {
  display: grid;
  gap: 36px 72px;
  align-items: start;
}
@media (min-width: 960px) {
  .story-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
  .drive-bar { grid-column: 1 / -1; }
}
.story h2 { max-width: 9ch; }
.story-body p {
  max-width: 34em;
  font-size: clamp(1.15rem, 1rem + .45vw, 1.36rem);
  line-height: 1.62;
}
.story-body p + p { margin-top: 1em; }
.drive-bar { margin: clamp(16px, 3vw, 40px) 0 0; }
.drive-cells {
  display: grid;
  grid-template-columns: repeat(25, minmax(0, 1fr));
  gap: clamp(3px, .5vw, 6px);
}
@media (min-width: 720px) {
  .drive-cells { grid-template-columns: repeat(50, minmax(0, 1fr)); }
}
.drive-cells i { aspect-ratio: 1 / 1.8; border-radius: 3px; background: var(--blk-faint); box-shadow: inset 0 0 0 1px var(--rule); }
.drive-cells .on { background: var(--grad); box-shadow: none; }
.drive-bar figcaption {
  margin-top: 16px;
  max-width: 60ch;
  color: var(--text-2);
  font: 500 .9375rem/1.45 var(--sans);
}
.drive-bar figcaption b { color: var(--text); font-weight: 680; }

/* ---------- download ---------- */
.download { background: var(--bg-sunk); border-block: 1px solid var(--rule); }
.dl-detect {
  margin-top: 32px;
  color: var(--text-2);
  font: 540 1rem/1.45 var(--sans);
}
.dl-detect b { color: var(--text); }
.dl-list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}
.dl {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 28px;
  padding: 22px 20px;
  border-bottom: 1px solid var(--rule);
}
.dl-what b {
  display: block;
  font: 760 1.3rem/1.15 var(--sans);
  font-stretch: 114%;
  letter-spacing: -.012em;
}
.dl-what span { color: var(--text-2); font: 520 .9375rem/1.4 var(--sans); }
.dl-file {
  overflow-wrap: anywhere;
  color: var(--text-3);
  font: 500 .875rem/1.4 var(--sans);
}
.dl-badge {
  display: inline-block;
  margin-left: 10px;
  padding: .3em .6em;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font: 640 .75rem/1 var(--sans);
  vertical-align: .25em;
  letter-spacing: 0;
}
.dl.is-recommended {
  border-bottom-color: transparent;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow), inset 0 0 0 1.5px color-mix(in srgb, var(--mint) 70%, transparent);
}
.dl:has(+ .dl.is-recommended) { border-bottom-color: transparent; }
@media (max-width: 720px) {
  .dl { grid-template-columns: minmax(0, 1fr); padding: 20px 4px; }
  .dl.is-recommended { padding-inline: 16px; }
  .dl .btn { justify-self: start; }
}
.dl-hint {
  max-width: 62ch;
  margin-top: 18px;
  color: var(--text-2);
  font-size: 1rem;
}
.dl-hint em { font-style: normal; font-weight: 650; color: var(--text); }
.dl-help {
  display: grid;
  gap: 48px 72px;
  margin-top: clamp(56px, 6vw, 88px);
}
@media (min-width: 900px) {
  .dl-help { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
}
.help-block h3 {
  margin-bottom: 18px;
  font-size: clamp(1.35rem, 1.15rem + .6vw, 1.7rem);
  font-weight: 760;
  font-stretch: 112%;
  letter-spacing: -.012em;
}
.help-block h4 {
  margin: 26px 0 10px;
  font: 700 1.0625rem var(--sans);
  font-stretch: 108%;
}
.help-block > p { color: var(--text-2); max-width: 36em; }
.help-block b { font-family: var(--sans); font-size: .92em; font-weight: 650; }
.ticks, .howto { margin: 0; padding: 0; list-style: none; }
.ticks li {
  position: relative;
  padding: 12px 0 12px 32px;
  border-top: 1px solid var(--rule);
  color: var(--text-2);
}
.ticks li:last-child { border-bottom: 1px solid var(--rule); }
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1.05em;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: var(--grad);
}
.howto { counter-reset: howto; }
.howto li {
  position: relative;
  padding: 6px 0 6px 36px;
  counter-increment: howto;
  color: var(--text-2);
}
.howto li::before {
  content: counter(howto);
  position: absolute;
  left: 0;
  top: .5em;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--rule-strong);
  border-radius: 7px;
  color: var(--text);
  font: 700 .8125rem/1 var(--sans);
}

/* ---------- FAQ ---------- */
.faq-grid {
  display: grid;
  gap: 40px 72px;
  align-items: start;
}
@media (min-width: 960px) {
  .faq-grid { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }
  .faq-grid .section-head { position: sticky; top: calc(var(--head-h) + 40px); }
}
.faq-grid .section-head { grid-template-columns: minmax(0, 1fr); }
.qa-list details { border-bottom: 1px solid var(--rule); }
.qa-list details:first-child { border-top: 1px solid var(--rule); }
.qa-list summary {
  position: relative;
  padding: 22px 52px 22px 0;
  cursor: pointer;
  list-style: none;
  font: 680 clamp(1.1rem, 1rem + .35vw, 1.3rem)/1.3 var(--sans);
  font-stretch: 106%;
  letter-spacing: -.005em;
}
.qa-list summary::-webkit-details-marker { display: none; }
.qa-list summary::before,
.qa-list summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 16px;
  height: 2px;
  margin-top: -1px;
  border-radius: 2px;
  background: var(--accent);
  transition: transform .25s ease;
}
.qa-list summary::after { transform: rotate(90deg); }
.qa-list details[open] summary::after { transform: rotate(0deg); }
.qa-list summary:hover { color: var(--accent); }
.qa-list details p {
  max-width: 38em;
  padding: 0 0 26px;
  color: var(--text-2);
}

/* ---------- footer ---------- */
.site-foot { padding: 56px 0 64px; }
.foot-grid {
  display: grid;
  gap: 28px 48px;
  align-items: center;
}
@media (min-width: 860px) {
  .foot-grid { grid-template-columns: auto minmax(0, 1fr); }
  .foot-nav ul { justify-content: flex-end; }
}
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-brand b { display: block; font: 780 1.25rem/1.1 var(--sans); font-stretch: 118%; letter-spacing: -.02em; }
.foot-brand span { color: var(--text-2); font: 520 .9375rem var(--sans); }
.foot-nav ul { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0; padding: 0; list-style: none; }
.foot-nav a { color: var(--text-2); font: 540 .9375rem var(--sans); text-decoration: none; }
.foot-nav a:hover { color: var(--text); text-decoration: underline; }
.foot-note {
  grid-column: 1 / -1;
  max-width: 70ch;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  color: var(--text-3);
  font: 500 .875rem/1.5 var(--sans);
}

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

/* ---------- Privacy page ---------- */
.legal { padding-top: clamp(2rem, 5vw, 4.5rem); }
.legal-wrap { max-width: 46rem; }
.legal .section-head h1 {
  font-family: var(--sans);
  font-size: clamp(2.4rem, 1.4rem + 4vw, 4rem);
  font-weight: 760;
  letter-spacing: -.02em;
  line-height: 1.02;
  margin: 0 0 .6rem;
}
.legal-body h2 {
  font-family: var(--sans);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 2.6rem 0 .8rem;
}
.legal-body p { font-family: var(--serif); color: var(--text-2); line-height: 1.6; }
.legal-body ul.ticks { margin: 1rem 0 1.4rem; }
.legal-body code { font-family: var(--mono); font-size: .86em; background: var(--bg-sunk); padding: .1em .35em; border-radius: 5px; }
.legal-body a, .foot-note a { color: var(--accent); text-underline-offset: 3px; }
.legal-date { margin-top: 2.6rem; font-family: var(--sans) !important; font-size: .9rem; color: var(--text-3) !important; }
.dl-sums { margin-top: .6rem; font-size: .92rem; color: var(--text-3); }
.dl-sums a { color: var(--accent); }

/* ---------- story: signature + free-tier chart ---------- */
.story h2 { max-width: 11ch; }
.story-body .sign { display: grid; gap: 2px; margin-top: 1.6em; font-family: var(--sans); font-size: 1rem; line-height: 1.35; }
.sign-name { font-weight: 720; color: var(--text); font-size: 1.125rem; }
.sign-role { color: var(--text-3); font-weight: 500; }
.sign-role a { color: var(--accent); text-underline-offset: 3px; }

.paywall { margin: clamp(24px, 4vw, 56px) 0 0; display: grid; gap: 22px; }
@media (min-width: 960px) { .paywall { grid-column: 1 / -1; } }
.paywall figcaption { max-width: 62ch; color: var(--text-2); font: 500 1rem/1.45 var(--sans); }
.paywall figcaption b { color: var(--text); font-weight: 700; }
.pw-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pw-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "label val" "track track";
  gap: 8px 16px;
  align-items: center;
  font-family: var(--sans);
}
@media (min-width: 820px) {
  .pw-row { grid-template-columns: minmax(0, 17rem) minmax(0, 1fr) 5.5rem; grid-template-areas: "label track val"; }
}
.pw-label { grid-area: label; color: var(--text-2); font-size: .9375rem; font-weight: 560; }
.pw-val { grid-area: val; text-align: right; font-weight: 720; font-variant-numeric: tabular-nums; color: var(--text); }
.pw-track {
  grid-area: track;
  position: relative;
  height: 30px;
  border-radius: 7px;
  background: var(--blk-faint);
  box-shadow: inset 0 0 0 1px var(--rule);
  overflow: hidden;
}
.pw-fill {
  position: absolute; inset: 0 auto 0 0;
  width: calc(var(--v) * 100%);
  min-width: 3px;
  background: var(--fault);
  border-radius: 7px 0 0 7px;
  transition: width 1.7s cubic-bezier(.2, .8, .1, 1);
}
.pw-row:first-child .pw-fill { min-width: 0; }
.pw-us .pw-fill { background: var(--grad); border-radius: 7px; }
.pw-lock, .pw-done {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: .8125rem; font-weight: 600; white-space: nowrap;
  transition: opacity .6s ease .9s;
}
.pw-lock { left: 14px; color: var(--text-3); }
.pw-lock::before { content: ""; display: inline-block; width: 9px; height: 10px; margin-right: 7px; vertical-align: -1px;
  border-radius: 2px; background: currentColor; box-shadow: 0 -4px 0 -2px transparent; }
.pw-done { left: 14px; color: var(--ink); font-weight: 760; }
.pw-us .pw-label, .pw-us .pw-val { color: var(--text); font-weight: 760; }
.pw-note { color: var(--text-3); font: 500 .8125rem/1.4 var(--sans); }
.paywall.pre .pw-fill { width: 0; }
.paywall.pre .pw-lock, .paywall.pre .pw-done { opacity: 0; }
.pw-row:nth-child(2) .pw-fill { transition-delay: .15s; }
.pw-row:nth-child(3) .pw-fill { transition-delay: .3s; }
.pw-row:nth-child(4) .pw-fill { transition-delay: .5s; }
@media (max-width: 520px) { .pw-lock { font-size: .75rem; } }

/* ---------- pricing ---------- */
.plans {
  display: grid;
  gap: 22px;
  margin-top: clamp(40px, 5vw, 72px);
}
@media (min-width: 900px) { .plans { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.plan {
  display: flex; flex-direction: column; gap: 22px;
  padding: clamp(24px, 3vw, 40px);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--rule), var(--shadow);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s;
}
.plan:hover { transform: translateY(-4px); }
.plan-free { box-shadow: inset 0 0 0 1.5px var(--accent), var(--shadow); }
.plan-head h3 { display: flex; align-items: center; gap: 12px; margin: 0; font: 760 1.25rem/1.2 var(--sans); }
.soon { font: 680 .6875rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--amber-ink);
  padding: 5px 8px; border-radius: 999px; box-shadow: inset 0 0 0 1px currentColor; }
.plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin: 10px 0 0; font-family: var(--sans); }
.plan-price b { font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); font-weight: 820; font-stretch: 120%; letter-spacing: -.03em; line-height: 1; }
.plan-tech .plan-price b { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); }
.plan-price span { color: var(--text-3); font-weight: 560; }
.plan-lead { margin: 0; color: var(--text-2); font-family: var(--serif); line-height: 1.55; }
.plan .ticks { flex: 1; }
.plan-btn { align-self: flex-start; }

/* ---------- motion: scroll-linked reveals (content stays visible where unsupported) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .section-head, .tool, .promise, .plan, .paywall, .story-body p, .dl, .qa-list details, .help-block {
      animation: r-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }
    .chapter-title {
      animation: r-wipe linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 30%;
    }
    .tool .mock {
      animation: r-tilt linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 45%;
    }
  }
}
@keyframes r-rise { from { opacity: .2; transform: translateY(36px); } to { opacity: 1; transform: none; } }
@keyframes r-wipe { from { clip-path: inset(0 100% 0 0); transform: translateX(-24px); } to { clip-path: inset(0 0 0 0); transform: none; } }
@keyframes r-tilt { from { transform: perspective(1200px) rotateX(10deg) translateY(30px) scale(.97); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .pw-fill, .pw-lock, .pw-done, .plan { transition: none; }
}

/* ============ GUIDES, STORY, SUPPORT ============ */
.guide .legal-wrap { max-width: 46rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.4rem; padding: 0; list-style: none; font-size: .9rem; color: var(--text-3); }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--rule-strong); }
.crumbs a { color: var(--text-3); text-underline-offset: 3px; }
.crumbs a:hover { color: var(--accent); }
.guide-meta { font-size: .9rem; color: var(--text-3); margin-top: .8rem; }
.tldr { margin: 2rem 0 2.4rem; padding: 1.2rem 1.4rem; border: 1px solid var(--rule-strong); border-left: 4px solid var(--dot); border-radius: 14px; background: var(--surface); }
.tldr b { display: block; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: .4rem; }
.tldr p { margin: 0; }
.legal-body h3 { font-size: 1.1rem; margin: 1.6rem 0 .5rem; }
.legal-body ol.howto { margin: 1rem 0 1.6rem; }
.legal-body ol.howto li { font-family: var(--serif); color: var(--text-2); line-height: 1.6; }
.legal-body ol.howto li b { font-family: var(--sans); color: var(--text); }
.legal-body .note { font-size: .95rem; padding: .9rem 1.1rem; border-radius: 12px; background: var(--bg-sunk); }
.legal-body table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.6rem; font-size: .95rem; }
.legal-body th, .legal-body td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.legal-body th { font-weight: 650; color: var(--text); }
.legal-body td { color: var(--text-2); }
.table-scroll { overflow-x: auto; }
.cta-box { margin: 2.6rem 0; padding: 1.6rem; border-radius: 18px; background: var(--surface); border: 1px solid var(--rule-strong); box-shadow: var(--shadow); }
.cta-box h2 { margin-top: 0 !important; }
.cta-box p { margin: .4rem 0 1.2rem; }
.cta-box .btn { display: inline-flex; }
.legal-body .qa-list { margin: 1rem 0 2rem; }
.legal-body .qa-list summary { font-family: var(--sans); }
.related { margin: 0; padding: 0; list-style: none; display: grid; gap: .6rem; }
.related a { display: block; padding: .8rem 1rem; border: 1px solid var(--rule); border-radius: 12px; color: var(--text); text-decoration: none; font-weight: 600; }
.related a:hover { border-color: var(--accent); color: var(--accent); }
.related span { display: block; font-weight: 400; font-size: .92rem; color: var(--text-3); margin-top: .15rem; }
.support-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin-top: 2rem; }
.support-card { padding: 1.4rem; border-radius: 18px; background: var(--surface); border: 1px solid var(--rule-strong); }
.support-card h3 { margin: 0 0 .4rem; }
.support-card p { margin: 0 0 1.1rem; color: var(--text-2); }
.support-card code { font-family: var(--mono); font-size: .95rem; background: var(--bg-sunk); padding: .2em .45em; border-radius: 6px; word-break: break-all; }
.support-upi .upi-qr { display: block; width: 168px; height: 168px; border-radius: 12px; background: #fff; padding: 6px; margin: 0 0 .8rem; }
@media (hover: none) and (pointer: coarse) { .support-upi .upi-qr { width: 140px; height: 140px; } }
