/* ====================================================================
   FocusTube — design tokens
   The governing rule: red is reserved. It marks only what FocusTube
   takes away. Everything the product keeps is ink on paper.
   ==================================================================== */
:root {
  --paper: #e5e8eb;
  --paper-lift: #f4f6f7;
  --paper-sink: #d5dade;
  --ink: #101519;
  --ink-2: #2a333a;
  --ink-soft: #4e5a62;
  --signal: #b51d10;
  --signal-bright: #f0432c;

  --line: rgba(16, 21, 25, 0.13);
  --line-strong: rgba(16, 21, 25, 0.26);

  --gutter: clamp(20px, 5vw, 56px);
  --band: clamp(80px, 11vw, 150px);
  --measure: 62ch;

  --font: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
}

p {
  margin: 0 0 1.1em;
  max-width: var(--measure);
  text-wrap: pretty;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 900;
  text-wrap: balance;
}

/* Type scale — a perfect-fourth progression, tightened as it grows. */
.t-hero {
  font-size: clamp(2.7rem, 5.4vw, 4.75rem);
  line-height: 0.96;
  letter-spacing: -0.038em;
}

.t-h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.034em;
}

.t-h3 {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.25;
  letter-spacing: -0.018em;
  font-weight: 700;
}

.t-lead {
  font-size: clamp(1.1rem, 1.9vw, 1.35rem);
  line-height: 1.5;
  letter-spacing: -0.015em;
  color: var(--ink-2);
}

.t-meta {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.soft {
  color: var(--ink-soft);
}

:where(a):focus-visible,
:where(button, summary):focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band {
  padding-block: var(--band);
  border-top: 1px solid var(--line);
  scroll-margin-top: 80px;
}

/* ================= navigation ================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nav.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(229, 232, 235, 0.92);
  backdrop-filter: blur(10px);
}

.nav-in {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  white-space: nowrap;
}

.mark svg {
  width: 22px;
  height: 22px;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--ink);
}

/* Small screens: the section links are all a scroll away, so only the
   install action earns space in the bar. */
@media (max-width: 760px) {
  .nav-links a:not(.btn) {
    display: none;
  }

  .nav-in {
    height: 64px;
  }
}

/* ================= buttons ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 28px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: var(--ink);
  color: var(--paper-lift);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-decoration: none;
  transition: background 0.16s ease, color 0.16s ease;
}

.btn:hover {
  background: var(--ink-2);
  border-color: var(--ink-2);
}

.btn-quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-quiet:hover {
  background: var(--paper-sink);
  border-color: var(--ink);
  color: var(--ink);
}

.btn-invert {
  background: var(--paper-lift);
  border-color: var(--paper-lift);
  color: var(--ink);
}

.btn-invert:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.875rem;
}

.linkline {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
  transition: border-color 0.15s ease;
}

.linkline:hover {
  border-bottom-color: var(--ink);
}

/* ================= hero ================= */
.hero {
  padding-block: clamp(56px, 8vw, 104px) clamp(72px, 9vw, 120px);
}

.hero-grid {
  display: grid;
  gap: clamp(40px, 5vw, 64px);
  align-items: center;
}

@media (min-width: 1000px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
    gap: 56px;
  }
}

.hero h1 {
  margin-bottom: 28px;
}

.hero h1 .turn {
  display: block;
  color: var(--ink-soft);
}

.hero-sub {
  max-width: 46ch;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-terms {
  max-width: 44ch;
  margin-bottom: 0;
}

.counter {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  max-width: 44ch;
}

/* ================= the one object: product demo ================= */
.stage-shell {
  position: relative;
}

.ftd-stage {
  position: relative;
  aspect-ratio: 16 / 11.2;
  overflow: hidden;
  border-radius: 8px;
  background: #131313;
  color: #f1f1f1;
  font-family: var(--font);
  font-size: clamp(8px, 1.35vw, 13px);
  line-height: 1.4;
  user-select: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.14) inset,
    0 2px 4px rgba(16, 21, 25, 0.1), 0 18px 50px -18px rgba(16, 21, 25, 0.45);
}

.ftd-top {
  display: flex;
  align-items: center;
  gap: 0.8em;
  height: 13%;
  padding: 0 1.1em;
  background: #131313;
  border-bottom: 1px solid #292929;
}

.ftd-burger {
  color: #8b8b8b;
  font-size: 1.15em;
}

.ftd-logo {
  display: flex;
  align-items: center;
  gap: 0.35em;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.ftd-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5em;
  height: 1.05em;
  border-radius: 0.25em;
  background: var(--signal-bright);
  color: #fff;
  font-size: 0.7em;
}

.ftd-searchbar {
  flex: 1;
  max-width: 40%;
  height: 1.9em;
  border: 1px solid #333;
  border-radius: 999px;
  background: #1a1a1a;
}

.ftd-toglabel {
  margin-left: auto;
  color: #9aa3a9;
  font-weight: 600;
  font-size: 0.85em;
  letter-spacing: -0.02em;
}

.ftd-toggle {
  width: 2.6em;
  height: 1.4em;
  border-radius: 999px;
  background: #4a4a4a;
  position: relative;
  flex-shrink: 0;
  animation: ftd-togbg 9s infinite;
}

.ftd-knob {
  position: absolute;
  top: 0.15em;
  left: 0.15em;
  width: 1.1em;
  height: 1.1em;
  border-radius: 50%;
  background: #fff;
  animation: ftd-knob 9s infinite;
}

.ftd-body {
  display: flex;
  gap: 0.9em;
  padding: 0.9em 1.1em 2.4em;
  height: 87%;
  box-sizing: border-box;
  overflow: hidden;
}

.ftd-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.ftd-player {
  width: 100%;
  aspect-ratio: 16 / 6.6;
  border-radius: 0.5em;
  background: radial-gradient(120% 120% at 32% 18%, #2c3136, #15181b 72%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.ftd-playbtn {
  width: 2.6em;
  height: 2.6em;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.9em;
}

.ftd-title {
  height: 0.85em;
  width: 70%;
  border-radius: 3px;
  background: #dcdcdc;
  margin: 0.9em 0 0.5em;
}

.ftd-channel {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.ftd-ava {
  width: 1.6em;
  height: 1.6em;
  border-radius: 50%;
  background: #3c454c;
}

.ftd-chline {
  height: 0.6em;
  width: 6em;
  border-radius: 3px;
  background: #3a3a3a;
}

/* Clutter — the only place red is allowed inside the demo. */
.ftd-tag {
  position: absolute;
  top: 0.4em;
  left: 0.4em;
  z-index: 2;
  font-size: 0.7em;
  font-weight: 700;
  padding: 0.15em 0.5em;
  border-radius: 999px;
  background: rgba(240, 67, 44, 0.16);
  color: #ff8a76;
  letter-spacing: -0.01em;
}

.ftd-comments {
  position: relative;
  margin-top: 1em;
  overflow: hidden;
  animation: ftd-collapse 9s infinite;
}

.ftd-crow {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 0.7em;
}

.ftd-cbars {
  flex: 1;
}

.ftd-cbars span {
  display: block;
  height: 0.5em;
  border-radius: 3px;
  background: #333;
  margin-bottom: 0.3em;
}

.ftd-cbars span:nth-child(2) {
  width: 60%;
  background: #292929;
}

.ftd-side {
  position: relative;
  width: 30%;
  flex-shrink: 0;
  animation: ftd-side 9s infinite;
}

.ftd-srow {
  display: flex;
  gap: 0.5em;
  margin-bottom: 0.7em;
}

.ftd-thumb {
  width: 42%;
  aspect-ratio: 16/9;
  border-radius: 0.35em;
  flex-shrink: 0;
  background: #2e3338;
}

.ftd-srow:nth-child(2) .ftd-thumb {
  background: rgba(240, 67, 44, 0.5);
}

.ftd-srow:nth-child(3) .ftd-thumb {
  background: rgba(240, 67, 44, 0.32);
}

.ftd-srow:nth-child(4) .ftd-thumb {
  background: rgba(240, 67, 44, 0.42);
}

.ftd-srow:nth-child(5) .ftd-thumb {
  background: rgba(240, 67, 44, 0.24);
}

.ftd-slines {
  flex: 1;
  padding-top: 0.2em;
}

.ftd-slines span {
  display: block;
  height: 0.5em;
  border-radius: 3px;
  background: #333;
  margin-bottom: 0.35em;
}

.ftd-slines span:nth-child(2) {
  width: 55%;
  background: #292929;
}

.ftd-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.65em;
  height: 1.7em;
  text-align: center;
  font-weight: 600;
  font-size: 0.92em;
  letter-spacing: -0.015em;
  pointer-events: none;
}

.ftd-caption span {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 0.22em 0.9em;
  border-radius: 999px;
  background: rgba(19, 19, 19, 0.92);
}

.ftd-off {
  color: #ff8a76;
  animation: ftd-capoff 9s infinite;
}

.ftd-on {
  color: #e8ecef;
  animation: ftd-capon 9s infinite;
}

.ftd-cursor {
  position: absolute;
  top: 0;
  left: 0;
  width: 1.4em;
  z-index: 5;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
  animation: ftd-cursor 9s infinite;
}

.ftd-cursor svg {
  width: 100%;
  display: block;
  animation: ftd-click 9s infinite;
  transform-origin: 30% 30%;
}

@keyframes ftd-knob {
  0%, 35% { left: 0.15em; }
  41%, 92% { left: 1.35em; }
  98%, 100% { left: 0.15em; }
}

@keyframes ftd-togbg {
  0%, 38% { background: #4a4a4a; }
  44%, 92% { background: #e8ecef; }
  98%, 100% { background: #4a4a4a; }
}

@keyframes ftd-side {
  0%, 42% { width: 30%; opacity: 1; margin-left: 0; }
  55%, 92% { width: 0; opacity: 0; margin-left: -0.9em; }
  99%, 100% { width: 30%; opacity: 1; margin-left: 0; }
}

@keyframes ftd-collapse {
  0%, 42% { opacity: 1; max-height: 14em; }
  55%, 92% { opacity: 0; max-height: 0; }
  99%, 100% { opacity: 1; max-height: 14em; }
}

@keyframes ftd-capoff {
  0%, 44% { opacity: 1; }
  52%, 94% { opacity: 0; }
  99%, 100% { opacity: 1; }
}

@keyframes ftd-capon {
  0%, 44% { opacity: 0; }
  52%, 94% { opacity: 1; }
  99%, 100% { opacity: 0; }
}

@keyframes ftd-cursor {
  0% { left: 42%; top: 64%; opacity: 0; }
  8% { opacity: 1; }
  36% { left: calc(100% - 4.4em); top: 6%; opacity: 1; }
  46% { left: calc(100% - 4.4em); top: 6%; opacity: 1; }
  62% { left: 66%; top: 48%; opacity: 0; }
  100% { left: 42%; top: 64%; opacity: 0; }
}

@keyframes ftd-click {
  0%, 37% { transform: scale(1); }
  40% { transform: scale(0.72); }
  44%, 100% { transform: scale(1); }
}

/* ================= ledger: what goes / what stays ================= */
.section-lead {
  max-width: 54ch;
  margin-top: 24px;
  margin-bottom: 0;
}

.ledger-grid {
  display: grid;
  gap: clamp(40px, 5vw, 72px);
  margin-top: clamp(40px, 5vw, 64px);
}

@media (min-width: 760px) {
  .ledger-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.ledger h3 {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-strong);
}

.ledger ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ledger li {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.0625rem;
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.ledger-gone li {
  color: var(--signal);
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

.ledger-kept li::before {
  content: "✓";
  flex: none;
  font-size: 0.8em;
  color: var(--ink-soft);
}

.ledger-foot {
  margin-top: 28px;
}

/* ================= reasons ================= */
.reason {
  display: grid;
  gap: 12px 48px;
  padding-block: clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}

.reason:first-of-type {
  border-top: 1px solid var(--line);
  margin-top: clamp(40px, 5vw, 64px);
}

@media (min-width: 860px) {
  .reason {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }
}

.reason p {
  margin-bottom: 0;
}

/* ================= wander (ADHD) ================= */
.wander {
  background: var(--paper-sink);
  border-top: 1px solid var(--line);
  padding-block: var(--band);
  scroll-margin-top: 80px;
}

.wander-lead {
  max-width: 56ch;
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  line-height: 1.6;
  letter-spacing: -0.014em;
  margin-top: 28px;
}

.wander-grid {
  display: grid;
  gap: 0;
  margin-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--line-strong);
}

@media (min-width: 800px) {
  .wander-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
}

.wander-item {
  padding-block: 24px;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 800px) {
  .wander-item {
    border-bottom: none;
  }
}

.wander-item p {
  margin: 6px 0 0;
  color: var(--ink-soft);
}

.wander-note {
  margin-top: 32px;
  max-width: 60ch;
}

/* ================= objections ================= */
.obj {
  padding-block: clamp(28px, 3.5vw, 40px);
  border-bottom: 1px solid var(--line);
}

.obj:first-of-type {
  border-top: 1px solid var(--line);
  margin-top: clamp(40px, 5vw, 64px);
}

.obj p {
  margin: 10px 0 0;
}

/* ================= maker ================= */
.maker {
  margin-top: clamp(56px, 7vw, 88px);
  padding-left: clamp(20px, 3vw, 36px);
  border-left: 2px solid var(--ink);
}

.maker blockquote {
  margin: 0;
  font-size: clamp(1.3rem, 2.6vw, 1.85rem);
  line-height: 1.38;
  letter-spacing: -0.026em;
  font-weight: 500;
  max-width: 42ch;
  text-wrap: pretty;
}

.maker figcaption {
  margin-top: 20px;
}

/* ================= pricing ================= */
.price-grid {
  display: grid;
  gap: clamp(40px, 5vw, 72px);
  margin-top: clamp(40px, 5vw, 64px);
  align-items: start;
}

@media (min-width: 900px) {
  .price-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
}

.price-figure {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-strong);
}

.price-amount {
  font-size: clamp(3.4rem, 8vw, 5.25rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.price-unit {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.price-after {
  margin-top: 20px;
}

.price-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.price-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.price-list li::before {
  content: "✓";
  flex: none;
  font-size: 0.8em;
  color: var(--ink-soft);
}

.price-actions {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.assure {
  display: grid;
  gap: 0;
  margin-top: clamp(48px, 6vw, 72px);
  border-top: 1px solid var(--line-strong);
}

@media (min-width: 720px) {
  .assure {
    grid-template-columns: repeat(4, 1fr);
  }
}

.assure div {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 720px) {
  .assure div {
    border-bottom: none;
    padding-right: 20px;
  }
}

.assure strong {
  display: block;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: -0.015em;
}

.assure span {
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

/* ================= faq ================= */
.faq-list {
  margin-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line-strong);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.018em;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  flex: none;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--ink-soft);
  transition: transform 0.18s ease;
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding-bottom: 26px;
  color: var(--ink-soft);
}

.faq-answer p {
  margin: 0;
}

/* ================= closing band ================= */
.closing {
  background: var(--ink);
  color: var(--paper-lift);
  padding-block: clamp(72px, 9vw, 120px);
}

.closing h2 {
  max-width: 18ch;
}

.closing p {
  color: #9aa5ad;
  margin: 24px 0 32px;
  max-width: 46ch;
}

.closing a.linkline {
  border-bottom-color: rgba(244, 246, 247, 0.35);
}

.closing a.linkline:hover {
  border-bottom-color: var(--paper-lift);
}

.closing :where(a):focus-visible {
  outline-color: var(--paper-lift);
}

/* ================= footer ================= */
.foot {
  background: var(--ink);
  color: #8d979e;
  padding-block: 40px 48px;
  border-top: 1px solid rgba(244, 246, 247, 0.12);
}

.foot-in {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  align-items: center;
  justify-content: space-between;
}

.foot a {
  text-decoration: none;
  transition: color 0.15s ease;
}

.foot a:hover {
  color: var(--paper-lift);
}

.foot .mark {
  color: var(--paper-lift);
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 0.875rem;
}

.foot-legal {
  width: 100%;
  font-size: 0.8125rem;
  margin: 0;
  max-width: none;
}

/* ================= motion preferences ================= */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .ftd-side,
  .ftd-comments {
    display: none;
  }

  .ftd-knob {
    left: 1.35em;
  }

  .ftd-toggle {
    background: #e8ecef;
  }

  .ftd-off,
  .ftd-cursor {
    display: none;
  }

  .ftd-on {
    opacity: 1;
  }
}

/* ====================================================================
   Article pages — guide, comparison, changelog, legal.
   Same tokens, narrower measure, no new colours. Red stays reserved.
   ==================================================================== */
.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 28px;
  max-width: none;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.crumb a {
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
}

.crumb a:hover {
  border-bottom-color: var(--ink);
}

.crumb span[aria-hidden] {
  opacity: 0.45;
}

.page-head {
  padding-block: clamp(40px, 6vw, 72px) clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}

.page-head h1 {
  font-size: clamp(2.3rem, 4.8vw, 3.9rem);
  line-height: 1.02;
  letter-spacing: -0.036em;
  max-width: 19ch;
}

.page-head .t-lead {
  margin-top: 24px;
  max-width: 62ch;
}

.page-head .t-meta {
  margin: 20px 0 0;
}

/* --- long-form prose ------------------------------------------------ */
.prose {
  padding-block: clamp(48px, 6vw, 80px) clamp(64px, 8vw, 104px);
}

.prose > * {
  max-width: 68ch;
}

.prose h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.12;
  letter-spacing: -0.028em;
  margin: clamp(48px, 6vw, 72px) 0 18px;
  padding-top: clamp(28px, 3vw, 40px);
  border-top: 1px solid var(--line);
  max-width: 24ch;
}

.prose > h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.prose h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.018em;
  margin: 36px 0 12px;
}

.prose p,
.prose li {
  color: var(--ink-2);
}

.prose a {
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 0.15s ease;
}

.prose a:hover {
  border-bottom-color: var(--ink);
}

.prose strong {
  font-weight: 700;
  color: var(--ink);
}

.prose ul,
.prose ol {
  margin: 0 0 1.2em;
  padding-left: 0;
  list-style: none;
}

.prose li {
  position: relative;
  padding: 10px 0 10px 26px;
  border-bottom: 1px solid var(--line);
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1.22em;
  width: 10px;
  height: 1px;
  background: var(--ink-soft);
}

/* Numbered lists are used only where the content really is a sequence. */
.prose ol {
  counter-reset: step;
}

.prose ol li {
  counter-increment: step;
}

.prose ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

/* --- comparison table ------------------------------------------------ */
.table-scroll {
  max-width: none;
  overflow-x: auto;
  margin: 8px 0 16px;
  border-top: 1px solid var(--line-strong);
}

.ptable {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.ptable th,
.ptable td {
  padding: 15px 18px 15px 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.ptable thead th {
  font-weight: 700;
  letter-spacing: -0.015em;
  border-bottom-color: var(--line-strong);
}

.ptable tbody th {
  font-weight: 500;
  color: var(--ink-soft);
  width: 32%;
}

/* The subject of the page gets a quiet lift, not a colour. */
.ptable .col-us {
  background: var(--paper-lift);
  padding-left: 18px;
}

.ptable td.col-us {
  font-weight: 600;
}

.table-note {
  font-size: 0.8125rem;
  color: var(--ink-soft);
  max-width: 68ch;
}

/* --- in-article call to action --------------------------------------- */
.callout {
  max-width: none;
  margin: clamp(40px, 5vw, 64px) 0;
  padding: clamp(28px, 4vw, 40px);
  background: var(--ink);
  color: var(--paper-lift);
  border-radius: 4px;
}

.callout h2,
.callout h3 {
  margin: 0;
  border: none;
  padding: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  letter-spacing: -0.026em;
  max-width: 22ch;
}

.callout p {
  color: #9aa5ad;
  margin: 14px 0 24px;
  max-width: 48ch;
}

.callout a.btn {
  border-color: var(--paper-lift);
}

.callout :where(a):focus-visible {
  outline-color: var(--paper-lift);
}

/* --- next-step links -------------------------------------------------- */
.next-steps {
  display: grid;
  gap: 0;
  max-width: none;
  border-top: 1px solid var(--line-strong);
}

@media (min-width: 720px) {
  .next-steps {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

.next-steps a {
  display: block;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  border-left: none;
}

.next-steps strong {
  display: block;
  font-size: 1.0625rem;
  letter-spacing: -0.018em;
}

.next-steps span {
  display: block;
  margin-top: 4px;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

/* ====================================================================
   Changelog. The date is the through-line, so the date carries the
   typographic weight and the version label sits under it.
   ==================================================================== */
.proof {
  display: grid;
  gap: 0;
  margin-top: clamp(32px, 4vw, 44px);
  border-top: 1px solid var(--line-strong);
}

@media (min-width: 720px) {
  .proof {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
}

.proof div {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 720px) {
  .proof div {
    border-bottom: none;
  }
}

.proof strong {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.032em;
  line-height: 1.05;
}

.proof span {
  display: block;
  margin-top: 4px;
  font-size: 0.875rem;
  color: var(--ink-soft);
  max-width: 30ch;
}

.log {
  padding-block: clamp(40px, 5vw, 64px) clamp(64px, 8vw, 104px);
}

.release {
  display: grid;
  gap: 16px 48px;
  padding-block: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--line);
}

.release:first-of-type {
  border-top: 1px solid var(--ink);
}

@media (min-width: 860px) {
  .release {
    grid-template-columns: minmax(0, 0.38fr) minmax(0, 1.62fr);
  }
}

.release-when {
  position: sticky;
  top: 96px;
  align-self: start;
}

.release-head {
  margin: 0;
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.038em;
}

.release-head .yr {
  display: block;
  color: var(--ink-soft);
}

.release-what {
  margin: 10px 0 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-soft);
  max-width: none;
}

.release-latest {
  display: inline-block;
  margin-top: 12px;
  padding: 3px 10px;
  border-radius: 2px;
  background: var(--ink);
  color: var(--paper-lift);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.release ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.release li {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}

.release li:last-child {
  border-bottom: none;
}

.release li > span:first-child {
  justify-self: start;
  align-self: start;
  padding: 2px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
  white-space: nowrap;
}

.release li.is-launch > span:first-child {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper-lift);
}

.release a {
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
}

.release a:hover {
  border-bottom-color: var(--ink);
}

.release strong {
  font-weight: 700;
  color: var(--ink);
}

@media (max-width: 859px) {
  .release-when {
    position: static;
  }
}

@media (max-width: 520px) {
  .release li {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* ====================================================================
   Legal pages — terms and privacy.
   ==================================================================== */
.doc .prose > * {
  max-width: 66ch;
}

.doc .prose h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  max-width: 30ch;
}

.doc dl {
  margin: 0 0 1.2em;
}

.doc dt {
  font-weight: 700;
  margin-top: 18px;
}

.doc dd {
  margin: 4px 0 0;
  color: var(--ink-2);
}

/* Screen-reader-only text: table captions and column headers that would be
   noise on screen but are needed to read the table aloud. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ====================================================================
   Licence hand-off after purchase. No nav: nothing should lead the
   reader away from the key before they have saved it.
   ==================================================================== */
.receipt-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px var(--gutter);
}

.receipt {
  width: 100%;
  max-width: 560px;
}

.receipt > .mark {
  margin-bottom: 44px;
}

.receipt h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.032em;
}

.receipt > div > p {
  max-width: none;
}

.receipt-intro {
  margin-top: 14px;
  color: var(--ink-soft);
}

/* The key itself: monospaced because it must be transcribed character by
   character, and set large enough to read off a phone screen. */
.keyplate {
  margin: 28px 0 16px;
  padding: 26px 20px;
  background: var(--paper-lift);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  text-align: center;
}

.keyplate-key {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: clamp(1.35rem, 5vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  word-break: break-all;
  user-select: all;
}

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

.key-actions .btn {
  flex: 1 1 180px;
}

.steps {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line-strong);
}

.steps h2 {
  font-size: 1.0625rem;
  letter-spacing: -0.018em;
  margin-bottom: 4px;
}

.steps ol {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 12px 0 12px 28px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 12px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.steps a,
.receipt-note a {
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
}

.steps a:hover,
.receipt-note a:hover {
  border-bottom-color: var(--ink);
}

.receipt-note {
  margin-top: 28px;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}
