/* Acid Test landing page. Tokens and fonts live in base.css.
   Frame: a consumer safety checker, set flush left. The nav is a browser toolbar with the sample
   address in its address field. The first screen is the tool: the pitch on the left, the result
   card on the right (the address, the five-step litmus scale with its marker, the verdict held
   back), and under both the two cards the checks land in, Held and Reacted. Below: four cards of
   checks, a statement card, questions beside a sticky heading, and a closing card that stands on
   the scale. Cards radius 20, buttons radius 16. Flat colour only. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-size-adjust: 100%; color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.5 var(--sans); }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--held); outline-offset: 3px; }
:where(a, summary):focus-visible { border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 12px; border-radius: 8px; background: #fff; color: var(--ink); font-weight: 700; }
.skip:focus { left: 12px; }
:root { --pad: max(24px, calc((100vw - 1200px) / 2)); }
/* Plus Jakarta Sans has a narrow word space: open it a little, and more where the tracking is tight. */
:where(body, body *) { word-spacing: .07em; }
:where(h1, h2, h3, .where__list, .now b) { word-spacing: .12em; }
:where(.addr__url, .site b, .scale__mark b, .col__top b) { word-spacing: 0; }

/* ---------- small pieces ---------- */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 24px; border: 0; border-radius: 16px; background: var(--held); color: var(--ink); font: 700 16px/1 var(--sans); letter-spacing: -.01em; white-space: nowrap; cursor: pointer; transition: background-color .15s ease-out, transform .15s ease-out; }
.btn:hover { background: #CDBFFA; }
.btn:active { transform: scale(.97); }
.btn svg { flex: none; width: 18px; height: 18px; }
.btn--sm { height: 44px; padding: 0 16px; border-radius: 12px; font-size: 14px; }
.note { font-size: 13px; line-height: 1.45; color: var(--text-3); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.lede { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.55; color: var(--text-2); text-wrap: pretty; }
.tag { flex: none; display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 8px; background: var(--panel-2); font: 600 12px/1 var(--sans); color: var(--text-2); }
h2 { font-size: clamp(32px, 3.7vw, 54px); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; text-wrap: balance; }

/* ---------- nav: a browser toolbar ---------- */

.nav { position: sticky; top: 0; z-index: 50; display: grid; grid-template-columns: 1fr minmax(0, 520px) 1fr; align-items: center; gap: 16px; height: 72px; padding: 0 20px; border-bottom: 1px solid var(--line); background: var(--panel); transition: border-color .2s ease-out; }
.nav.is-stuck { border-bottom-color: rgba(255, 255, 255, .2); }
.nav > .btn { justify-self: end; }
.logo { justify-self: start; display: inline-flex; align-items: center; gap: 10px; min-height: 40px; font-size: 18px; font-weight: 800; letter-spacing: -.025em; }
.logo img { border-radius: 8px; }
.addr { display: flex; align-items: center; gap: 10px; min-width: 0; height: 48px; padding: 0 3px 0 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.addr svg { flex: none; width: 15px; height: 15px; color: var(--text-3); }
.addr__url { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 14px var(--mono); letter-spacing: -.01em; }
.addr__go { flex: none; display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 11px; background: var(--panel-2); font-size: 14px; font-weight: 700; transition: background-color .15s ease-out; }
.addr__go:hover { background: #33333C; }

/* ---------- first screen: pitch, result card, and the two cards the checks land in ---------- */

.test { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 28px var(--pad) 0; }
.pitch { align-self: center; padding: 0 44px 8px 0; }
h1 { max-width: 6.2em; font-size: clamp(46px, 6.1vw, 88px); line-height: .98; letter-spacing: -.04em; font-weight: 800; text-wrap: balance; }
.pitch .lede { max-width: 29em; margin-top: 28px; }
.pitch .actions { margin-top: 32px; }

.result { padding: 24px; border-radius: 20px; background: var(--panel); }
.site { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "ico k tag" "ico url url"; align-items: center; column-gap: 14px; }
.site__ico { grid-area: ico; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--panel-2); color: var(--text-2); }
.site__ico svg { width: 24px; height: 24px; }
.site__k { grid-area: k; align-self: end; font-size: 13px; font-weight: 500; line-height: 1.3; color: var(--text-2); }
.site b { grid-area: url; align-self: start; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 19px/1.3 var(--mono); letter-spacing: -.03em; }
.site .tag { grid-area: tag; align-self: end; font-style: normal; }

.scale { position: relative; margin-top: 62px; }
.scale__mark { position: absolute; top: -39px; left: clamp(58px, calc(var(--at, 2) * 1%), calc(100% - 58px)); z-index: 1; display: grid; justify-items: center; translate: -50% 0; transition: left .9s cubic-bezier(.3, 1.2, .4, 1); }
.scale__mark b { padding: 9px 12px; border-radius: 10px; background: var(--text); color: var(--ink); font: 600 13px/1 var(--mono); white-space: nowrap; font-variant-numeric: tabular-nums; }
.scale__mark i { width: 4px; height: 44px; border-radius: 0 0 2px 2px; background: var(--text); box-shadow: 2px 0 0 var(--panel), -2px 0 0 var(--panel); }
.scale__bar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.scale__bar li { position: relative; padding-top: 44px; font-size: 13px; font-weight: 500; line-height: 1.25; text-align: center; color: var(--text-3); transition: color .3s ease-out; }
.scale__bar li::before { content: ''; position: absolute; inset: 0 0 auto; height: 28px; border-radius: 8px; background: var(--step-1); }
.scale__bar li:nth-child(2)::before { background: var(--step-2); }
.scale__bar li:nth-child(3)::before { background: var(--step-3); }
.scale__bar li:nth-child(4)::before { background: var(--step-4); }
.scale__bar li:nth-child(5)::before { background: var(--step-5); }
.scale__bar .is-on { color: var(--text); font-weight: 700; }

/* One pad per check: lilac if it held, red if it reacted, empty until it has run. */
.pads { display: grid; grid-template-columns: repeat(23, minmax(0, 1fr)); gap: 5px; margin-top: 18px; }
.pads li { aspect-ratio: 1; border-radius: 5px; background: var(--panel-2); transition: background-color .3s ease-out; }
.pads .is-held { background: var(--held); }
.pads .is-react { background: var(--react); }

.verdict { margin-top: 18px; padding: 16px 20px 20px; border-radius: 14px; background: var(--panel-2); }
.verdict__row { display: flex; align-items: center; gap: 12px; min-height: 30px; }
.verdict__row span { font-size: 14px; font-weight: 600; color: var(--text-2); }
.verdict__row i { width: 124px; max-width: 30%; height: 12px; border-radius: 6px; background: rgba(255, 255, 255, .14); }
.verdict__row b { display: inline-flex; align-items: center; height: 28px; margin-left: auto; padding: 0 11px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 9px; font-size: 13px; font-weight: 700; color: var(--text-2); }
.test.is-done .verdict__row b { border-color: var(--paper); background: var(--paper); color: var(--ink); }
.verdict__body { display: grid; margin-top: 12px; }
.verdict__body > * { grid-area: 1 / 1; }
.now { display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: center; column-gap: 16px; visibility: hidden; }
.now i { grid-row: 1 / 4; align-self: center; width: 48px; height: 48px; border-radius: 14px; background: var(--held); animation: dip .95s ease-in-out infinite; }
.now span { font-size: 13px; font-weight: 500; color: var(--text-2); }
.now b { font-size: 26px; line-height: 1.15; letter-spacing: -.03em; font-weight: 800; }
.now small { margin-top: 5px; font-size: 13px; line-height: 1.35; color: var(--text-2); }
.sheet h2 { font-size: 24px; line-height: 1.15; letter-spacing: -.03em; }
.sheet p { margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--text-2); text-wrap: pretty; }
.sheet__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.again { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 54px; padding: 0 18px; border: 0; border-radius: 16px; background: rgba(255, 255, 255, .08); color: var(--text); font: 600 15px/1 var(--sans); white-space: nowrap; cursor: pointer; transition: background-color .15s ease-out; }
.again:hover { background: rgba(255, 255, 255, .14); }
.again svg { flex: none; width: 17px; height: 17px; }
.js .test:not(.is-done) .sheet { visibility: hidden; }
.js .test:not(.is-done) .now { visibility: visible; }
.test.is-last .now i { animation: none; }
.test.is-done .sheet { animation: rise .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes rise { from { opacity: 0; translate: 0 10px; } }
@keyframes dip { 50% { opacity: .35; } }

.col { display: grid; grid-template-rows: auto 1fr; padding: 18px 20px 20px; border-radius: 20px; background: var(--panel); }
.col__top { display: flex; align-items: center; gap: 12px; min-height: 30px; padding: 0 4px; }
.col__h { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; letter-spacing: -.02em; color: var(--held); }
.col__h::before { content: ''; width: 14px; height: 14px; border-radius: 4px; background: currentColor; }
.col--react .col__h { color: var(--react); }
.col__top p { font-size: 14px; color: var(--text-2); }
.col__top b { display: grid; place-items: center; min-width: 30px; height: 30px; margin-left: auto; padding: 0 8px; border-radius: 10px; background: var(--panel-2); font: 600 14px/1 var(--mono); font-variant-numeric: tabular-nums; }
.col ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 8px; margin-top: 14px; }
.col li { display: grid; align-content: center; gap: 2px; min-height: 80px; padding: 12px 16px; border-radius: 14px; background: var(--panel-2); animation: rise .45s cubic-bezier(.2, .8, .2, 1); }
.col li b { display: flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 700; letter-spacing: -.015em; }
.col li b::before { content: ''; flex: none; width: 11px; height: 11px; border-radius: 3px; background: var(--held); }
.col--react li b::before { background: var(--react); }
.col li span { font-size: 14px; line-height: 1.35; color: var(--text-2); text-wrap: pretty; }
.col .is-slot, .col ol::after { border: 1px dashed rgba(255, 255, 255, .16); border-radius: 14px; background: none; animation: none; }
/* Two findings to a row: with an odd number, the open place is drawn as one more empty slot. */
.col ol:has(> li:last-child:nth-child(odd))::after { content: ''; }

/* ---------- the 23 checks: four cards, a lilac pad on each ---------- */

.checks { padding: 128px var(--pad) 0; }
.kinds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 44px; }
.kind { padding: 26px 26px 30px; border-radius: 20px; background: var(--panel); }
.kind__top { display: flex; align-items: center; gap: 16px; }
.pad { flex: none; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; background: var(--held); color: var(--ink); font-size: 27px; font-weight: 800; letter-spacing: -.03em; }
.kind h3 { font-size: 25px; line-height: 1.15; letter-spacing: -.03em; font-weight: 800; }
.kind__top p { font-size: 14px; color: var(--text-2); }
.kind ul { display: grid; gap: 11px; margin-top: 26px; }
.kind li { position: relative; padding-left: 19px; font-size: 15px; line-height: 1.4; color: var(--text-2); }
.kind li::before { content: ''; position: absolute; left: 0; top: .48em; width: 7px; height: 7px; border-radius: 2px; background: var(--held); }

/* ---------- when to test: one statement card ---------- */

.where { padding: 12px var(--pad) 0; }
.say { padding: 52px 56px 60px; border-radius: 20px; background: var(--panel); }
.say h2 { font-size: 20px; line-height: 1.3; letter-spacing: -.015em; font-weight: 700; color: var(--held); }
/* Each case stays in one piece, so a line never ends on a lone "A". */
.where__list { margin-top: 18px; font-size: clamp(27px, 3.5vw, 50px); line-height: 1.16; letter-spacing: -.035em; font-weight: 800; }
.where__list b, .where__list span { font-weight: inherit; white-space: nowrap; }
.where__list span { color: var(--text-3); }

/* ---------- questions: numbered cards beside a heading that stays put ---------- */

.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 12px; align-items: start; padding: 128px var(--pad) 0; }
.faq h2 { position: sticky; top: 112px; max-width: 8em; }
.faq__list { display: grid; gap: 8px; }
.faq details { border-radius: 20px; background: var(--panel); }
.faq summary { position: relative; padding: 23px 64px 23px 72px; border-radius: 20px; font-size: 18px; line-height: 1.35; font-weight: 700; letter-spacing: -.015em; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.num { position: absolute; left: 22px; top: 19px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--held); color: var(--ink); font-size: 14px; font-weight: 800; letter-spacing: 0; }
.faq summary::before, .faq summary::after { content: ''; position: absolute; right: 26px; top: 34px; width: 14px; height: 2px; border-radius: 1px; background: var(--text-2); transition: rotate .2s ease-out; }
.faq summary::after { rotate: 90deg; }
.faq summary:hover::before, .faq summary:hover::after { background: var(--text); }
.faq details[open] summary::after { rotate: 0deg; }
.faq details p { max-width: 62ch; padding: 0 64px 26px 72px; margin-top: -6px; font-size: 16px; color: var(--text-2); text-wrap: pretty; }

/* ---------- closing card: it stands on the scale ---------- */

.final { padding: 128px var(--pad) 0; }
.close { padding: 64px 56px 0; border-radius: 20px; background: var(--panel); overflow: hidden; }
.close h2 { font-size: clamp(40px, 6.3vw, 90px); line-height: 1; letter-spacing: -.04em; }
.close .actions { margin-top: 36px; }
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin: 68px -56px 0; }
.steps li { display: flex; align-items: flex-end; height: 104px; padding: 16px 20px; background: var(--step-1); color: var(--ink); font-size: 16px; line-height: 1.2; font-weight: 700; letter-spacing: -.015em; }
.steps li:nth-child(2) { background: var(--step-2); }
.steps li:nth-child(3) { background: var(--step-3); }
.steps li:nth-child(4) { background: var(--step-4); }
.steps li:nth-child(5) { background: var(--step-5); }

.foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 20px 48px; padding: 48px var(--pad) 56px; }
.foot p { max-width: 60ch; margin-top: 12px; font-size: 13px; line-height: 1.5; color: var(--text-3); }
.foot__links { display: flex; flex-wrap: wrap; gap: 0 28px; font-size: 14px; font-weight: 500; color: var(--text-2); }
.foot__links a { display: inline-flex; align-items: center; min-height: 40px; }
.foot__links a:hover { color: var(--text); }

.js [data-reveal] { opacity: 0; translate: 0 20px; transition: opacity .7s ease-out, translate .8s cubic-bezier(.2, .7, .2, 1); }
.js [data-reveal].is-in { opacity: 1; translate: 0 0; }

/* ---------- smaller screens ---------- */

@media (max-width: 980px) {
  .nav { grid-template-columns: auto minmax(0, 1fr) auto; }
  .addr { width: 100%; max-width: 520px; justify-self: center; }
  .pitch, .result { grid-column: 1 / -1; }
  .pitch { padding: 12px 0 20px; }
  h1 { max-width: none; }
  .col ol { grid-template-columns: minmax(0, 1fr); }
  .col ol::after { display: none; }
  .col__top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; }
  .col__top p { grid-row: 2; }
  .col__top b { grid-row: 1 / 3; align-self: center; }
  .col li { min-height: 68px; }
  .kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .faq h2 { position: static; max-width: none; }
  .close h2 { max-width: 8em; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 80px; }
  :root { --pad: 16px; }
  .nav { gap: 8px; height: 64px; padding: 0 12px; }
  .nav .logo span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .nav .logo { min-width: 40px; justify-content: center; }
  .addr { padding-left: 13px; }
  .addr svg, .addr .tag { display: none; }
  .addr__url { font-size: 13px; }
  .addr__go { padding: 0 13px; }
  .btn--sm { padding: 0 13px; }
  .test { padding-top: 20px; }
  .col { grid-column: 1 / -1; }
  .result { padding: 20px; }
  .site__ico { width: 44px; height: 44px; border-radius: 12px; }
  .site b { font-size: 17px; }
  .scale__bar li { font-size: 11.5px; }
  .pads { gap: 4px; }
  .pads li { border-radius: 3px; }
  .verdict { padding: 14px 16px 16px; }
  /* On a phone the replay control is its icon, beside the download button. */
  .sheet__actions { flex-wrap: nowrap; }
  .sheet__actions .btn { flex: 1; min-width: 0; padding: 0 12px; }
  .again { flex: none; width: 54px; padding: 0; }
  .again span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .col { padding: 16px; }
  .checks, .faq, .final { padding-top: 88px; }
  .kinds { grid-template-columns: minmax(0, 1fr); margin-top: 32px; }
  .kind { padding: 22px 22px 26px; }
  .kind ul { margin-top: 22px; }
  .say { padding: 30px 24px 34px; }
  .say h2 { font-size: 17px; }
  .where__list { font-size: 25px; }
  .where__list b, .where__list span { white-space: normal; }
  .faq summary { padding: 21px 52px 21px 62px; font-size: 17px; }
  .num { left: 16px; top: 17px; }
  .faq summary::before, .faq summary::after { right: 20px; top: 32px; }
  .faq details p { padding: 0 20px 22px 20px; margin-top: 0; }
  .close { padding: 36px 24px 0; }
  .steps { margin: 44px -24px 0; }
  .steps li { height: 56px; padding: 0; }
  .steps span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .foot { grid-template-columns: minmax(0, 1fr); padding-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; translate: 0 0; transition: none; }
  .scale__mark, .pads li, .faq summary::after { transition: none; }
  .col li, .test.is-done .sheet, .now i { animation: none; }
}

/* ---------- every screen size (added 2026-11-13) ---------- */
@media (min-width: 1600px) { :root { --pad: max(24px, calc((100vw - min(1200px + (100vw - 1600px) * 0.98, 1740px)) / 2)); } }
@media (min-width: 1600px) {
  h1 { font-size: clamp(88px, 35.2px + 3.3vw, 110px); }
  h2 { font-size: clamp(54px, 29.7px + 1.519vw, 64.8px); }
  .lede { font-size: clamp(19px, 13.3px + 0.3563vw, 21.85px); }
}
/* ---------- end every screen size ---------- */
