/* Four Checks: a calm lab report. White paper, ink rules, graph-paper panels,
   one green for "pass". Schibsted Grotesk for words, Martian Mono for data. */
:root {
  --ink: #121821;
  --paper: #FFFFFF;
  --grid: #E4ECF5;
  --rule: #C9D3DF;
  --soft: #3B4552;
  --pass: #0A7A45;
  --link: #1F4FD8;
  --mint: #EAF6EF;
  --mint-bright: #5CF2A8;
  --sans: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  --mono: "Martian Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.5; }
img { max-width: 100%; height: auto; }
a { color: var(--link); }
a:hover { color: var(--pass); }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
h1, h2, h3 { text-wrap: balance; }
.mono { font-family: var(--mono); }
.label { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
.paper { background-color: var(--paper); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 24px 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header and footer */
.top { border-bottom: 1px solid var(--ink); }
.top .wrap { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; justify-content: space-between; padding-block: 16px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 900; font-size: 22px; letter-spacing: -0.5px; }
.logo:hover { color: var(--ink); }
.nav { display: flex; flex-wrap: wrap; gap: 22px; font-weight: 500; font-size: 16px; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--pass); text-decoration: underline; }
.foot { border-top: 1px solid var(--ink); margin-top: 64px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 18px 40px; justify-content: space-between; padding-block: 28px 40px; font-size: 15px; line-height: 1.6; }
.foot p { margin: 0; max-width: 660px; }
.foot nav { display: flex; gap: 20px; }

/* number search */
.find { display: flex; flex-wrap: wrap; gap: 12px; }
.find label { flex: 1 1 260px; display: flex; align-items: stretch; background: var(--paper); border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; }
.find .no { display: flex; align-items: center; padding: 0 16px; background: var(--ink); color: #FFFFFF; font-family: var(--mono); font-weight: 700; font-size: 16px; }
.find input { flex: 1; min-width: 0; border: 0; padding: 16px; font-family: var(--mono); font-weight: 700; font-size: 28px; letter-spacing: 4px; color: var(--ink); background: transparent; }
.find input::placeholder { color: var(--soft); }
.find input:focus { outline: none; }
.find label:focus-within { outline: 3px solid var(--link); outline-offset: 2px; }
.find button, .btn { border: 0; border-radius: 10px; background: var(--pass); color: #FFFFFF; font-family: var(--sans); font-weight: 800; font-size: 19px; padding: 0 28px; min-height: 62px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.btn:hover, .find button:hover { background: #086339; color: #FFFFFF; }
.hint { margin: 0; font-size: 16px; min-height: 24px; }
.hint b { font-weight: 800; }
.hint.miss { color: #B3261E; }

/* home hero */
.hero { border-bottom: 1px solid var(--ink); }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-block: 64px 72px; }
.hero-text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hero h1 { margin: 0; font-weight: 900; font-size: clamp(40px, 6vw, 74px); line-height: 1; letter-spacing: -2px; }
.hero p.lede { margin: 0; font-size: 20px; max-width: 34em; }

/* report card and stamp */
.card { flex: 0 1 420px; min-width: 0; position: relative; display: block; background: var(--paper); border: 1px solid var(--ink); border-radius: 14px; padding: 20px 22px 22px; box-shadow: 0 18px 40px rgba(18, 24, 33, 0.12); color: var(--ink); text-decoration: none; }
.card:hover { color: var(--ink); box-shadow: 0 22px 48px rgba(18, 24, 33, 0.18); }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--ink); padding-bottom: 12px; }
.card-id { display: flex; gap: 16px; align-items: center; padding: 14px 0 10px; }
.card-id img { width: 104px; height: 104px; object-fit: contain; flex-shrink: 0; }
.card-id h2 { margin: 4px 0 0; font-weight: 800; font-size: 24px; line-height: 1.12; }
.ticks { width: 100%; border-collapse: collapse; font-size: 15px; }
.ticks td { padding: 9px 0; border-top: 1px solid var(--rule); vertical-align: top; }
.ticks tr:last-child td { border-bottom: 1px solid var(--rule); }
.ticks .t { width: 26px; color: var(--pass); font-weight: 900; }
.stamp { position: absolute; transform: rotate(-8deg); border: 3px solid var(--pass); outline: 1px solid var(--pass); outline-offset: 3px; border-radius: 8px; padding: 5px 11px; background: var(--paper); color: var(--pass); font-family: var(--mono); font-weight: 700; font-size: 21px; letter-spacing: 1px; pointer-events: none; }
.card .stamp { right: -16px; bottom: 70px; }

/* trust strip */
.trust { border-bottom: 1px solid var(--ink); }
.trust .wrap { display: flex; flex-wrap: wrap; }
.trust-item { flex: 1 1 280px; display: flex; gap: 14px; align-items: flex-start; padding: 28px 26px 28px 0; }
.trust-item + .trust-item { border-left: 1px solid var(--ink); padding-left: 26px; }
.trust-item h3 { margin: 0; font-weight: 800; font-size: 19px; }
.trust-item p { margin: 6px 0 0; font-size: 16px; color: var(--soft); }
.trust-item svg { flex-shrink: 0; }

/* reports table */
.reports { padding-block: 64px 0; display: flex; flex-direction: column; gap: 18px; }
.reports-head { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: end; }
.reports h2 { margin: 0; font-weight: 900; font-size: 40px; letter-spacing: -1px; line-height: 1.05; }
.filter { flex: 0 1 320px; min-width: 0; font: inherit; font-size: 16px; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 10px; color: var(--ink); background: var(--paper); }
.filter::placeholder { color: var(--soft); }
.table-box { overflow-x: auto; border: 1px solid var(--ink); border-radius: 14px; }
.table { width: 100%; border-collapse: collapse; font-size: 16px; }
.table th { background: var(--ink); color: #FFFFFF; text-align: left; padding: 13px 12px; font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.table td { padding: 12px; border-top: 1px solid var(--rule); vertical-align: middle; }
.table th:first-child, .table td:first-child { padding-left: 20px; }
.table th:last-child, .table td:last-child { padding-right: 20px; text-align: right; }
.table .num { font-family: var(--mono); font-weight: 700; font-size: 18px; white-space: nowrap; }
.prod { display: flex; gap: 14px; align-items: center; }
.prod img { width: 54px; height: 54px; object-fit: contain; flex-shrink: 0; }
.prod a { color: var(--ink); text-decoration: none; font-weight: 800; font-size: 18px; }
.prod a:hover { color: var(--pass); text-decoration: underline; }
.prod span { display: block; font-size: 15px; color: var(--soft); }
.dots { color: var(--pass); letter-spacing: 3px; font-size: 17px; white-space: nowrap; }
.score { font-family: var(--mono); font-weight: 700; font-size: 14px; }
.date { font-family: var(--mono); font-size: 14px; white-space: nowrap; }
.none { padding: 18px 20px; margin: 0; }

/* product page */
.report { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 0; border-bottom: 1px solid var(--ink); }
.figure { position: relative; border-right: 1px solid var(--ink); display: flex; align-items: center; justify-content: center; padding: 48px 32px; min-height: 520px; }
.figure img { max-height: 520px; width: auto; object-fit: contain; }
.figure .stamp { right: 28px; bottom: 32px; font-size: 24px; }
.body { padding: 40px 0 48px 44px; display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.body h1 { margin: 0; font-weight: 900; font-size: clamp(34px, 4.4vw, 52px); line-height: 1.02; letter-spacing: -1px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.verdict { display: flex; flex-direction: column; gap: 12px; padding: 20px; border: 1px solid var(--ink); border-radius: 14px; background: var(--mint); }
.verdict-line { display: flex; gap: 16px; align-items: center; }
.verdict-line .big { font-family: var(--mono); font-weight: 700; font-size: 44px; color: var(--pass); line-height: 1; }
.verdict-line p { margin: 0; font-weight: 800; font-size: 20px; line-height: 1.25; }
.paid { font-size: 14px; font-weight: 500; }
.checks h2, .more h2 { margin: 0 0 4px; font-weight: 900; font-size: 26px; letter-spacing: -0.5px; }
.checks > p { margin: 0 0 4px; font-size: 15px; color: var(--soft); }
.check { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.check .ok { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--pass); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 15px; }
.check div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.check h3 { margin: 0; font-weight: 800; font-size: 19px; }
.check p { margin: 0; font-size: 16px; }
.check a { font-family: var(--mono); font-size: 12px; overflow-wrap: anywhere; }
.bonus { display: flex; gap: 12px; padding: 16px; margin-top: 16px; background: var(--mint); border: 1px solid var(--ink); border-radius: 12px; }
.bonus .label { padding-top: 4px; flex-shrink: 0; }
.bonus p { margin: 0; font-size: 16px; font-weight: 500; }
.bonus a { font-family: var(--mono); font-size: 12px; }
.watch { display: flex; align-items: center; gap: 14px; border: 1px solid var(--ink); border-radius: 12px; padding: 12px; color: var(--ink); text-decoration: none; }
.watch .play { width: 52px; height: 80px; border-radius: 8px; background: var(--ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.more { padding-block: 48px 0; }
.more-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 14px; }
.mini { display: flex; gap: 14px; align-items: center; border: 1px solid var(--ink); border-radius: 12px; padding: 12px; color: var(--ink); text-decoration: none; }
.mini:hover { color: var(--ink); background: var(--mint); }
.mini img { width: 64px; height: 64px; object-fit: contain; flex-shrink: 0; }
.mini b { display: block; font-size: 16px; line-height: 1.2; }
.buybar { display: none; }

/* plain text pages */
.prose { max-width: 680px; padding-block: 48px 0; }
.prose h1 { font-weight: 900; font-size: clamp(34px, 5vw, 52px); line-height: 1.05; letter-spacing: -1px; margin: 0 0 18px; }
.prose h2 { font-weight: 800; font-size: 22px; margin: 32px 0 6px; }
.prose p, .prose li { font-size: 18px; }

@media (max-width: 820px) {
  .report { grid-template-columns: minmax(0, 1fr); }
  .figure { border-right: 0; border-bottom: 1px solid var(--ink); min-height: 0; padding: 28px 18px; }
  .figure img { max-height: 300px; }
  .figure .stamp { right: 16px; bottom: 20px; font-size: 18px; }
  .body { padding: 24px 0 32px; }
  .buybar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; gap: 10px; align-items: center; background: var(--paper); border-top: 1px solid var(--ink); box-shadow: 0 -8px 24px rgba(18, 24, 33, 0.10); padding: 12px max(14px, env(safe-area-inset-right, 0px)) calc(14px + env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-left, 0px)); }
  .buybar span { flex: 1; font-family: var(--mono); font-weight: 700; font-size: 12px; line-height: 1.5; }
  .buybar .btn { min-height: 48px; font-size: 17px; padding: 0 18px; }
  .has-buybar .foot { padding-bottom: 84px; }
}
@media (max-width: 640px) {
  .trust-item, .trust-item + .trust-item { border-left: 0; padding: 18px 0; }
  .trust-item + .trust-item { border-top: 1px solid var(--rule); }
  .table .opt { display: none; }
  .table th:first-child, .table td:first-child { padding-left: 14px; }
  .table th:nth-child(2), .table td:nth-child(2) { padding-right: 14px; }
  .prod img { width: 44px; height: 44px; }
  .prod a { font-size: 16px; }
  .card .stamp { right: 14px; bottom: 30px; font-size: 17px; }
  .reports h2 { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
