/* Landing page (landing.html): the product page at /, on the site frame of situs.css. The
   hero and the government band are dark in both themes. The dot grid behind them is the same
   motif as the background-pattern channel (pola latar). Class prefix: ld-. */

/* ---------------------------------------------------------------- hero */

.ld-hero {
  position: relative;
  background: var(--ld-night);
  color: var(--ld-night-ink);
  padding-block: clamp(48px, 7vw, 96px) 40px;
  overflow: hidden;
  isolation: isolate;
}
/* the background-pattern channel as a motif: a sparse dot grid, fading toward the copy */
.ld-hero::before, .ld-gov::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(oklch(0.8 0.08 120 / 0.22) 1px, transparent 1.3px);
  background-size: 14px 14px;
  mask-image: linear-gradient(105deg, transparent 30%, black 75%);
}
.ld-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 960px) { .ld-hero-grid { grid-template-columns: minmax(0, 1fr); } }

.ld-hero h1 {
  font-size: var(--ld-h1); line-height: 1.02; letter-spacing: -0.03em; font-weight: 600;
  margin: 0 0 24px; max-width: 13ch; text-wrap: balance;
}
.ld-h1-accent { color: var(--ld-olive-bright); }
.ld-hero-lead { font-size: clamp(16px, 1.35vw, 19px); line-height: 1.6; color: var(--ld-night-muted); max-width: 54ch; margin: 0 0 32px; }
.ld-hero-facts { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px;
  font-size: var(--fs-sm); color: var(--ld-night-muted); }
.ld-hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.ld-hero-facts .icon { color: var(--ld-olive-bright); }
.ld-hero-note { margin-top: 28px; font-size: var(--fs-sm); color: var(--ld-night-muted); opacity: 0.85; }

/* the product shown: a forwarded photo, the trace result, the berita acara behind them */
.ld-hero-visual { position: relative; min-height: 520px; }
.ld-chat {
  position: absolute; left: 4%; top: 0; width: min(62%, 330px); margin: 0;
  background: var(--ld-night-2); border: 1px solid var(--ld-night-line); border-radius: 16px; padding: 10px;
  transform: rotate(-4deg);
  box-shadow: 0 1px 2px oklch(0 0 0 / 0.3), 0 24px 48px -12px oklch(0 0 0 / 0.55);
}
.ld-chat-head { display: flex; align-items: center; gap: 8px; font-size: var(--fs-label); color: var(--ld-night-muted);
  padding: 2px 4px 10px; font-family: var(--font-mono); }
.ld-chat-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ld-olive-bright); }
.ld-chat-time { margin-inline-start: auto; }
.ld-chat img { display: block; width: 100%; height: auto; border-radius: 10px; }
.ld-ba {
  position: absolute; right: 0; top: 12%; width: min(44%, 240px); height: auto; border-radius: 4px;
  transform: rotate(5deg); opacity: 0.9;
  box-shadow: 0 1px 2px oklch(0 0 0 / 0.3), 0 20px 40px -12px oklch(0 0 0 / 0.5);
}
.ld-result {
  position: absolute; right: 2%; bottom: 0; width: min(78%, 380px); z-index: 2;
  background: var(--surface-raised); color: var(--ink); border-radius: var(--r-3); padding: 20px 22px;
  box-shadow: 0 0 0 1px oklch(0 0 0 / 0.06), 0 2px 6px oklch(0 0 0 / 0.12), 0 32px 64px -16px oklch(0 0 0 / 0.6);
}
.ld-result-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ld-result-title { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono);
  font-size: var(--fs-label); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); }
.ld-result-copy { margin: 0; font-size: var(--fs-ui); color: var(--ink-muted); }
.ld-result-copy b { color: var(--ink); }
.ld-result-name { margin: 2px 0 0; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.ld-result-unit { margin: 2px 0 16px; font-size: var(--fs-sm); color: var(--ink-muted); }
.ld-result-track { position: relative; height: 10px; border-radius: 5px; background: var(--track); overflow: hidden; }
.ld-result-fill { position: absolute; inset: 0; background: var(--accent); border-radius: inherit; }
.ld-result-mark { position: absolute; top: -3px; bottom: -3px; width: 2px; left: calc(var(--v) * 100%); background: var(--ink); }
.ld-result-legend { display: flex; justify-content: space-between; margin-top: 8px; font-size: var(--fs-label); color: var(--ink-muted); }
.ld-result-legend b { color: var(--ink); font-weight: 600; }
.ld-result-fa { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--border); font-size: var(--fs-sm); color: var(--ink-muted); }
.ld-result-fa b { color: var(--ink); font-weight: 600; }
@media (max-width: 960px) { .ld-hero-visual { min-height: 0; height: clamp(420px, 92vw, 560px); max-width: 560px; margin-inline: auto; width: 100%; } }
@media (max-width: 480px) {
  .ld-ba { display: none; }
  .ld-chat { width: 70%; }
  .ld-result { width: 86%; padding: 16px; }
  .ld-result-name { font-size: 19px; }
}

/* ---------------------------------------------------------------- numbers strip */

.ld-numbers { border-bottom: 1px solid var(--border); background: var(--surface); }
.ld-numbers-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ld-number { display: flex; flex-direction: column; gap: 8px; padding: 32px 24px 32px 0; }
.ld-number + .ld-number { padding-inline-start: 24px; border-inline-start: 1px solid var(--border); }
.ld-number-value { font-size: var(--ld-number); font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: var(--ink); white-space: nowrap; }
.ld-number:first-child .ld-number-value { color: var(--accent-text); }
.ld-number-label { font-size: var(--fs-ui); color: var(--ink-muted); line-height: 1.45; max-width: 26ch; }
.ld-number-label b { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) {
  .ld-numbers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ld-number:nth-child(3) { padding-inline-start: 0; border-inline-start: 0; }
  .ld-number:nth-child(n + 3) { border-block-start: 1px solid var(--border); }
}
@media (max-width: 480px) {
  .ld-numbers-grid { grid-template-columns: 1fr; }
  .ld-number, .ld-number + .ld-number { padding: 22px 0; border-inline-start: 0; }
  .ld-number + .ld-number { border-block-start: 1px solid var(--border); }
}

/* ---------------------------------------------------------------- sections */

.ld-section { padding-block: var(--ld-section); }
.ld-section-alt { background: var(--surface-sunken); border-block: 1px solid var(--border); }
.ld-h2 { font-size: var(--ld-h2); line-height: 1.1; letter-spacing: -0.025em; font-weight: 600; margin: 0 0 20px; max-width: 24ch; text-wrap: balance; }
.ld-lead { font-size: var(--fs-lead); line-height: 1.65; color: var(--ink-muted); max-width: 62ch; margin: 0 0 32px; }
.ld h3 { font-size: var(--fs-title); line-height: 1.3; letter-spacing: -0.01em; font-weight: 600; margin: 0 0 8px; }
.ld p { text-wrap: pretty; }
.ld-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 960px) { .ld-split { grid-template-columns: minmax(0, 1fr); } }

/* problem: the statement beside the three ways it goes wrong */
.ld-problem-split { align-items: center; }
.ld-problem-split .ld-lead { margin-bottom: 0; }
.ld-problems { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--border); }
.ld-problems li { padding: 22px 0 22px 28px; border-bottom: 1px solid var(--border); position: relative; line-height: 1.6; color: var(--ink-muted); }
.ld-problems li::before { content: ""; position: absolute; left: 0; top: 31px; width: 12px; height: 2px; background: var(--ld-hot); }
.ld-problems b { color: var(--ink); font-weight: 600; }

/* how it works */
.ld-steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: none; }
.ld-step { position: relative; padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-3); }
.ld-step p { margin: 0 0 12px; color: var(--ink-muted); line-height: 1.6; }
.ld-step-art { display: block; width: 100%; height: auto; aspect-ratio: 16 / 11; background: var(--surface-sunken);
  border: 1px solid var(--border); border-radius: var(--r-2); margin-bottom: 20px; }
.ld-step-num { position: absolute; top: 34px; left: 34px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink); color: var(--paper); font-family: var(--font-mono); font-size: var(--fs-ui); font-weight: 500; }
.ld-step-fact { display: flex; align-items: center; gap: 8px; margin: 16px 0 0 !important; padding-top: 14px; border-top: 1px dashed var(--border-strong);
  font-size: var(--fs-sm); color: var(--accent-text) !important; font-weight: 500; }
.ld-art-page { fill: var(--surface-raised); stroke: var(--border-strong); stroke-width: 1; }
.ld-art-hot { stroke: var(--accent); stroke-width: 2; }
.ld-art-lines rect, .ld-art-tagline { fill: var(--ink-faint); opacity: 0.55; }
.ld-art-phone { fill: var(--ink); opacity: 0.9; }
.ld-art-arrow { stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; fill: none; }
.ld-art-lens { fill: oklch(0.8 0.08 120 / 0.18); stroke: var(--ink); stroke-width: 4; }
.ld-art-handle { stroke: var(--ink); stroke-width: 7; stroke-linecap: round; }
.ld-art-tag { fill: var(--accent); }
.ld-art-tagline { fill: var(--on-accent); opacity: 0.9; }
@media (max-width: 900px) { .ld-steps { grid-template-columns: 1fr; } .ld-step-art { max-height: 200px; } }

/* channels */
.ld-kanal { margin: 48px 0 0; }
.ld-kanal img { display: block; width: 100%; height: auto; }
.ld-kanal figcaption { margin-top: 12px; font-size: var(--fs-sm); color: var(--ink-muted); }
.ld-matrix-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-3); padding: 8px 8px 16px; }
.ld-matrix { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.ld-matrix th, .ld-matrix td { padding: 12px 8px; border-bottom: 1px solid var(--border); }
.ld-matrix tbody tr:last-child th, .ld-matrix tbody tr:last-child td { border-bottom: 0; }
.ld-matrix thead th { vertical-align: bottom; font-weight: 500; color: var(--ink-muted); text-align: center; font-size: var(--fs-sm); line-height: 1.3; }
.ld-matrix thead th:first-child { text-align: left; }
.ld-matrix tbody th { text-align: left; font-weight: 400; min-width: 180px; }
.ld-matrix th { font-family: var(--font-sans); text-transform: none; letter-spacing: normal; }
.ld-matrix-name { display: block; font-weight: 600; color: var(--ink); font-size: var(--fs-ui); }
.ld-matrix-note { display: block; color: var(--ink-muted); font-size: var(--fs-label); margin-top: 2px; }
.ld-matrix td { text-align: center; }
.ld-cell { display: inline-block; width: 16px; height: 16px; border-radius: 50%; vertical-align: middle; }
.ld-cell-y { background: var(--accent); }
.ld-cell-h { background: linear-gradient(90deg, var(--accent) 50%, transparent 50%); box-shadow: inset 0 0 0 1.5px var(--accent); }
.ld-cell-n { background: transparent; box-shadow: inset 0 0 0 1.5px var(--border-strong); width: 10px; height: 10px; }
.ld-matrix-key { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 12px 8px 0; font-size: var(--fs-label); color: var(--ink-muted); }
.ld-matrix-key span { display: inline-flex; align-items: center; gap: 6px; }
.ld-matrix-key .ld-cell { width: 12px; height: 12px; }
.ld-matrix-key .ld-cell-n { width: 9px; height: 9px; }

/* evidence */
.ld-evidence { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ld-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-3); padding: 28px; min-width: 0; }
.ld-panel-wide { grid-column: 1 / -1; }
.ld-panel-head { margin-bottom: 20px; }
.ld-panel-head p { margin: 0; color: var(--ink-muted); line-height: 1.6; max-width: 70ch; }
.ld-panel-sub { margin: 24px 0 12px; font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); }
@media (max-width: 960px) { .ld-evidence { grid-template-columns: minmax(0, 1fr); } .ld-panel { padding: 20px; } }

.ld-bars { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ld-bar-row { display: grid; grid-template-columns: minmax(180px, 1.1fr) minmax(0, 2fr) 11rem; gap: 16px; align-items: center; }
.ld-bar-label { font-size: var(--fs-ui); }
.ld-bar-track { position: relative; height: 14px; border-radius: 7px; background: var(--track); overflow: hidden; }
.ld-bar-fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 100%); background: var(--accent); border-radius: inherit;
  transform-origin: left center; }
.ld-bar-value { font-size: var(--fs-sm); color: var(--ink-muted); text-align: right; white-space: nowrap; }
.ld-bar-value b { color: var(--ink); font-weight: 600; font-size: var(--fs-ui); }
.ld-bar-pct { margin-inline-start: 4px; }
@media (max-width: 640px) {
  .ld-bar-row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .ld-bar-track { grid-column: 1 / -1; grid-row: 2; }
}

.ld-chart { margin: 0; }
.ld-chart svg { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--font-sans); }
.ld-chart-legend { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; font-size: var(--fs-sm); color: var(--ink-muted); }
.ld-chart-legend span { display: flex; align-items: baseline; gap: 8px; }
.ld-chart-legend b { color: var(--ink); }
.ld-swatch { flex: none; width: 12px; height: 12px; border-radius: 3px; transform: translateY(1px); }
.ld-swatch-safe, .ld-hist-safe { background: var(--ld-safe); fill: var(--ld-safe); }
.ld-swatch-hot, .ld-hist-hot { background: var(--ld-hot); fill: var(--ld-hot); }
.ld-hist-gap { fill: var(--ld-gap); }
.ld-hist-gaplabel { font-size: 13px; fill: var(--accent-text); font-family: var(--font-mono); }
.ld-hist-axis, .ld-hist-tick { stroke: var(--border-strong); stroke-width: 1; }
.ld-hist-z { stroke: var(--ink); stroke-width: 2; stroke-dasharray: 5 4; }
.ld-hist-ticklabel { font-size: 13px; fill: var(--ink-muted); }
.ld-hist-zlabel { font-size: 13px; fill: var(--ink); font-weight: 600; }
.ld-hist-key { font-size: 14px; font-weight: 600; }
.ld-hist-key-safe { fill: var(--accent-text); }
.ld-hist-key-hot { fill: var(--ld-hot); }

.ld-log-zone { fill: var(--danger-soft); opacity: 0.7; }
.ld-log-grid { stroke: var(--border); stroke-width: 1; }
.ld-log-ticklabel { font-size: 13px; fill: var(--ink-muted); }
.ld-log-eps { stroke: var(--ld-hot); stroke-width: 2; stroke-dasharray: 5 4; }
.ld-log-epslabel { font-size: 13px; fill: var(--ld-hot); font-weight: 600; }
.ld-log-label { font-size: 13.5px; fill: var(--ink); }
.ld-log-range { stroke: var(--accent); stroke-width: 3; stroke-linecap: round; opacity: 0.45; }
.ld-log-worst { fill: var(--surface); stroke: var(--accent); stroke-width: 2; }
.ld-log-median { fill: var(--accent); }
.ld-log-axislabel { font-size: 12.5px; fill: var(--ink-muted); font-family: var(--font-mono); }
.ld-dot { flex: none; width: 11px; height: 11px; border-radius: 50%; transform: translateY(1px); }
.ld-dot-median { background: var(--accent); }
.ld-dot-worst { box-shadow: inset 0 0 0 2px var(--accent); }

/* bars grow once when the evidence comes into view (landing.js; reduced motion: no growth) */
.ld-animate .ld-bar-fill { transform: scaleX(0); transition: transform 900ms var(--ease-out); }
.ld-animate .ld-bars.is-visible .ld-bar-fill { transform: scaleX(1); }
.ld-animate .ld-bars.is-visible .ld-bar-row:nth-child(2) .ld-bar-fill { transition-delay: 60ms; }
.ld-animate .ld-bars.is-visible .ld-bar-row:nth-child(3) .ld-bar-fill { transition-delay: 120ms; }
.ld-animate .ld-bars.is-visible .ld-bar-row:nth-child(4) .ld-bar-fill { transition-delay: 180ms; }
.ld-animate .ld-bars.is-visible .ld-bar-row:nth-child(5) .ld-bar-fill { transition-delay: 240ms; }
@media (prefers-reduced-motion: reduce) { .ld-animate .ld-bar-fill { transform: none; transition: none; } }

/* government band */
.ld-gov { position: relative; isolation: isolate; overflow: hidden; background: var(--ld-night); color: var(--ld-night-ink); }
.ld-gov::before { mask-image: linear-gradient(180deg, black, transparent 60%); }
.ld-gov .ld-eyebrow, .ld-gov .ld-lead { color: var(--ld-night-muted); }
.ld-gov .ld-eyebrow span { color: var(--ld-olive-bright); border-color: var(--ld-night-line); }
/* one point leads (the data stays in the agency); the others are rows beside it */
.ld-gov-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 1px; background: var(--ld-night-line);
  border: 1px solid var(--ld-night-line); border-radius: var(--r-3); overflow: hidden; }
.ld-gov-lead { background: var(--ld-night-2); padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; }
.ld-gov-lead .icon { color: var(--ld-olive-bright); margin-bottom: 20px; }
.ld-gov-lead h3 { font-size: clamp(22px, 2.2vw, 28px) !important; line-height: 1.2 !important; letter-spacing: -0.02em; max-width: 18ch; }
.ld-gov-lead p { margin: 0; color: var(--ld-night-muted); line-height: 1.65; }
.ld-gov-lead-note { margin-top: auto !important; padding-top: 24px; font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--ld-olive-bright) !important; }
.ld-gov-rows { margin: 0; background: var(--ld-night); display: grid; }
.ld-gov-rows > div { padding: 20px clamp(20px, 2.4vw, 28px); border-bottom: 1px solid var(--ld-night-line); }
.ld-gov-rows > div:last-child { border-bottom: 0; }
.ld-gov-rows dt { font-weight: 600; color: var(--ld-night-ink); margin-bottom: 4px; }
.ld-gov-rows dd { margin: 0; color: var(--ld-night-muted); line-height: 1.6; font-size: var(--fs-body); }
@media (max-width: 900px) { .ld-gov-grid { grid-template-columns: minmax(0, 1fr); } }
.ld-uses { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.ld-uses-h { font-family: var(--font-mono); font-size: var(--fs-label) !important; font-weight: 500 !important;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--ld-night-muted); margin: 0 !important; }
.ld-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ld-chips li { padding: 6px 12px; border: 1px solid var(--ld-night-line); border-radius: 999px; font-size: var(--fs-sm); color: var(--ld-night-ink); }

/* adoption */
.ld-timeline { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; position: relative; }
.ld-timeline li:not(:last-child)::after { content: ""; position: absolute; top: 19px; left: 52px; right: -8px; height: 2px; background: var(--border-strong); }
.ld-timeline li { position: relative; display: flex; flex-direction: column; gap: 16px; }
.ld-timeline p { margin: 0; color: var(--ink-muted); line-height: 1.6; }
.ld-timeline-num { position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); font-family: var(--font-mono); font-weight: 500; box-shadow: 0 0 0 6px var(--paper); }
@media (max-width: 900px) {
  .ld-timeline { grid-template-columns: 1fr; }
  .ld-timeline li:not(:last-child)::after { top: 52px; bottom: -14px; left: 19px; right: auto; width: 2px; height: auto; }
  .ld-timeline li { flex-direction: row; }
}

/* final call */
.ld-cta { background: var(--accent); color: var(--on-accent); padding-block: clamp(56px, 7vw, 88px); }
.ld-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.ld-cta h2 { font-size: var(--ld-h2); letter-spacing: -0.025em; line-height: 1.1; margin: 0 0 12px; }
.ld-cta p { margin: 0; max-width: 56ch; line-height: 1.6; opacity: 0.92; font-size: var(--fs-lead); }
.ld-cta .btn-primary { background: var(--ld-night); color: var(--ld-night-ink); }
.ld-cta .btn-primary:hover { background: color-mix(in oklch, var(--ld-night) 85%, white); }
.ld-cta .ld-btn-outline { color: inherit; border-color: color-mix(in oklch, currentColor 40%, transparent); }
.ld-cta .ld-btn-outline:hover { background: oklch(1 0 0 / 0.1); }

/* the matrix headers wrap (tapak.css keeps table headers on one line) */
.ld-matrix th, .ld-matrix td { white-space: normal; }
.ld-matrix thead th { min-width: 64px; }
.ld-matrix-wrap { min-width: 0; position: relative; }
.ld-matrix td, .ld-matrix th { position: relative; }

/* channels: heading beside the matrix on wide screens, the close-ups under both */
.ld-kanal-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: clamp(32px, 4vw, 56px); align-items: start; }
@media (max-width: 1100px) { .ld-kanal-grid { grid-template-columns: minmax(0, 1fr); } }
/* chart text sizes are SVG units: the viewBox is about as wide as the drawn chart */
.ld-hist-ticklabel, .ld-hist-zlabel, .ld-hist-gaplabel, .ld-log-ticklabel, .ld-log-label, .ld-log-epslabel { font-size: 13px; }
.ld-log-axislabel { font-size: 12px; }

/* hero: the trace told once on load: the photo arrives, a scan line reads it, the result
   comes in and its score fills past the threshold. Nothing moves with reduced motion. */
.ld-chat-photo { position: relative; display: block; overflow: hidden; border-radius: 10px; }
.ld-scan { position: absolute; left: 0; right: 0; top: 0; height: 22%; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, transparent, oklch(0.8 0.11 122 / 0.28) 70%, oklch(0.85 0.12 122 / 0.85) 98%, transparent);
  border-bottom: 2px solid var(--ld-olive-bright); }
@media (prefers-reduced-motion: no-preference) {
  .ld-chat { animation: ld-in-chat 500ms var(--ease-out) both; }
  .ld-scan { animation: ld-scan 900ms cubic-bezier(0.45, 0, 0.55, 1) 450ms both; }
  .ld-result { animation: ld-in-up 450ms var(--ease-out) 1250ms both; }
  .ld-result-fill { transform-origin: left center; animation: ld-fill 700ms var(--ease-out) 1600ms both; }
  .ld-ba { animation: ld-in-ba 500ms var(--ease-out) 1900ms both; }
}
@keyframes ld-in-chat { from { opacity: 0; transform: rotate(-4deg) translateY(16px); } to { opacity: 1; transform: rotate(-4deg); } }
@keyframes ld-scan { 0% { opacity: 0; transform: translateY(-100%); } 12% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; transform: translateY(460%); } }
@keyframes ld-in-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes ld-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ld-in-ba { from { opacity: 0; transform: rotate(5deg) translateY(12px); } to { opacity: 0.9; transform: rotate(5deg); } }

/* explanations told once when they scroll into view (landing.js adds .ld-animate and then
   .is-visible to each [data-reveal]): copies fan out of one master, a leak spreads, the loupe
   finds the copy; TAPAK's column fills; the two score groups rise and the gap between them is
   named; each bound travels from 1 to its value. Without JavaScript, or with reduced motion,
   everything is simply drawn in place. */
@media (prefers-reduced-motion: no-preference) {
  .ld-animate :is(.ld-hist-safe, .ld-hist-hot, .ld-hist-z) { transform-box: fill-box; transform-origin: 50% 100%; }
  .ld-animate :is(.ld-art-out-r, .ld-art-found) { transform-box: fill-box; transform-origin: 0 50%; }
  .ld-animate .ld-art-out-l { transform-box: fill-box; transform-origin: 100% 50%; }

  /* what is hidden until its block is in view: exactly the first frame of its animation */
  .ld-animate .ld-steps:not(.is-visible) .ld-art-copy { transform: translate(var(--dx), var(--dy)); }
  .ld-animate .ld-steps:not(.is-visible) :is(.ld-art-arrow, .ld-art-loupe, .ld-art-found),
  .ld-animate .ld-compare:not(.is-visible) td.ld-compare-us .ld-cell,
  .ld-animate .ld-hist:not(.is-visible) :is(.ld-hist-safe, .ld-hist-hot, .ld-hist-gap, .ld-hist-gaplabel, .ld-hist-z,
    .ld-hist-zlabel, .ld-hist-key),
  .ld-animate .ld-log:not(.is-visible) :is(.ld-log-row, .ld-log-zone, .ld-log-eps, .ld-log-epslabel),
  .ld-animate .ld-timeline:not(.is-visible) .ld-timeline-num { opacity: 0; }
  .ld-animate .ld-timeline:not(.is-visible) li::after { transform: scaleX(0); }

  .ld-steps.is-visible .ld-art-copy { animation: ld-fan 560ms var(--ease-enter) both; animation-delay: calc(var(--i) * 70ms); }
  .ld-steps.is-visible .ld-art-out-r { animation: ld-burst-r 420ms var(--ease-enter) 760ms both; }
  .ld-steps.is-visible .ld-art-out-l { animation: ld-burst-l 420ms var(--ease-enter) 760ms both; }
  .ld-steps.is-visible .ld-art-loupe { animation: ld-loupe 620ms var(--ease-run) 1080ms both; }
  .ld-steps.is-visible .ld-art-found { animation: ld-pop 280ms var(--ease-enter) 1640ms both; }

  .ld-compare.is-visible td.ld-compare-us .ld-cell { animation: ld-pop 280ms var(--ease-enter) both;
    animation-delay: calc(200ms + var(--i) * 90ms); }

  .ld-hist.is-visible .ld-hist-key-safe { animation: ld-fade 240ms ease-out both; }
  .ld-hist.is-visible .ld-hist-safe { animation: ld-rise 520ms var(--ease-run) both; animation-delay: calc(var(--i) * 18ms); }
  .ld-hist.is-visible .ld-hist-key-hot { animation: ld-fade 240ms ease-out 520ms both; }
  .ld-hist.is-visible .ld-hist-hot { animation: ld-rise 520ms var(--ease-run) both; animation-delay: calc(520ms + var(--i) * 18ms); }
  .ld-hist.is-visible :is(.ld-hist-gap, .ld-hist-gaplabel) { animation: ld-fade 360ms ease-out 1100ms both; }
  .ld-hist.is-visible .ld-hist-z { animation: ld-rise 420ms var(--ease-run) 1300ms both; }
  .ld-hist.is-visible .ld-hist-zlabel { animation: ld-fade 240ms ease-out 1560ms both; }

  .ld-log.is-visible :is(.ld-log-zone, .ld-log-eps, .ld-log-epslabel) { animation: ld-fade 300ms ease-out both; }
  .ld-log.is-visible .ld-log-median { animation: ld-travel-m 1000ms var(--ease-run) both; animation-delay: calc(240ms + var(--i) * 110ms); }
  .ld-log.is-visible .ld-log-worst { animation: ld-travel-w 1000ms var(--ease-run) both; animation-delay: calc(240ms + var(--i) * 110ms); }
  .ld-log.is-visible .ld-log-range { animation: ld-fade 260ms ease-out both; animation-delay: calc(1100ms + var(--i) * 110ms); }

  .ld-timeline.is-visible .ld-timeline-num { animation: ld-pop 300ms var(--ease-enter) both; }
  .ld-timeline.is-visible li:nth-child(2) .ld-timeline-num { animation-delay: 420ms; }
  .ld-timeline.is-visible li:nth-child(3) .ld-timeline-num { animation-delay: 840ms; }
  .ld-timeline.is-visible li::after { transform-origin: 0 50%; animation: ld-grow-x 420ms cubic-bezier(0.65, 0, 0.35, 1) 150ms both; }
  .ld-timeline.is-visible li:nth-child(2)::after { animation-delay: 570ms; }
  @media (max-width: 900px) {
    .ld-animate .ld-timeline:not(.is-visible) li::after { transform: scaleY(0); }
    .ld-timeline.is-visible li::after { transform-origin: 50% 0; animation-name: ld-grow-y; }
  }
}
@keyframes ld-fan { from { transform: translate(var(--dx), var(--dy)); } }
@keyframes ld-burst-r { from { opacity: 0; transform: translateX(-6px) scaleX(0.4); } }
@keyframes ld-burst-l { from { opacity: 0; transform: translateX(6px) scaleX(0.4); } }
@keyframes ld-loupe { from { opacity: 0; transform: translate(-34px, 14px); } }
@keyframes ld-pop { from { opacity: 0; transform: scale(0.6); } }
@keyframes ld-fade { from { opacity: 0; } }
@keyframes ld-rise { from { transform: scaleY(0); } }
@keyframes ld-grow-x { from { transform: scaleX(0); } }
@keyframes ld-grow-y { from { transform: scaleY(0); } }
@keyframes ld-travel-m { from { transform: translateX(var(--dm)); } }
@keyframes ld-travel-w { from { transform: translateX(var(--dw)); } }

/* comparison with the usual ways (after the problem) */
.ld-section-tight { padding-block: 0 var(--ld-section); }
.ld-h2-sm { font-size: clamp(22px, 2.4vw, 30px); }
.ld-compare .ld-matrix tbody th { min-width: 240px; }
.ld-compare .ld-matrix thead th.ld-compare-us { color: var(--accent-text); font-weight: 600; }
.ld-compare td.ld-compare-us, .ld-compare th.ld-compare-us { background: var(--accent-soft); }
