/* Sprint bezpieczeństwa — one stylesheet, no build step.
   Aesthetic decision: an audit report set in type. Cool paper, ink, one vermilion
   signal colour that only marks "fix this" and the primary action. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-latin-ext-wght-normal.woff2") format("woff2-variations");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Martian Mono";
  src: url("../fonts/martian-mono-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Martian Mono";
  src: url("../fonts/martian-mono-latin-ext-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #f3f5f4;
  --surface: #ffffff;
  --ink: #121417;
  --ink-2: #3c444d;
  --ink-3: #5b646e;
  --line: #d5dbd8;
  --line-strong: #b9c1bd;

  --signal: #c4361a;       /* fix now + primary action */
  --signal-ink: #9e2a12;   /* links, small text on paper */
  --signal-tint: #fae5de;
  --later: #7a5200;
  --later-tint: #f8edd4;
  --ignore: #46515c;
  --ignore-tint: #e6eaec;

  --font: "Schibsted Grotesk", ui-sans-serif, sans-serif;
  --mono: "Martian Mono", ui-monospace, monospace;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 72px; --s9: 112px;

  --radius: 14px;
  --wrap: 1160px;
  --measure: 66ch;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.6 var(--font);
  font-feature-settings: "ss01";
  text-rendering: optimizeLegibility;
}
::selection { background: var(--signal); color: #fff; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; display: block; }

a { color: var(--signal-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3 { margin: 0; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 1.4rem + 3.2vw, 3.75rem); font-weight: 820; line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.8rem, 1.3rem + 1.7vw, 2.7rem); font-weight: 760; line-height: 1.08; letter-spacing: -0.028em; }
h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
p + p { margin-top: var(--s4); }
code, .mono { font-family: var(--mono); font-size: .8em; letter-spacing: 0; }
code { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: .1em .4em; white-space: nowrap; }
.tnum { font-variant-numeric: tabular-nums; }

.wrap { width: min(100% - 2 * var(--s5), var(--wrap)); margin-inline: auto; }
/* One rail for every two-column section: equal halves, one gutter. */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--s8); }
@media (max-width: 920px) { .cols { grid-template-columns: 1fr; row-gap: var(--s7); } }
.prose { max-width: var(--measure); }
.lede { font-size: clamp(1.15rem, 1.05rem + .45vw, 1.35rem); line-height: 1.5; color: var(--ink-2); }
.muted { color: var(--ink-3); }
.small { font-size: .9rem; line-height: 1.5; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 60px; }
.brand { color: var(--ink); text-decoration: none; font-weight: 760; letter-spacing: -0.01em; padding-block: 12px; }
.brand span { color: var(--ink-3); font-weight: 500; }
.top nav { display: flex; align-items: center; gap: var(--s5); font-size: .95rem; }
.top nav a:not(.btn) { color: var(--ink-2); text-decoration: none; padding-block: 12px; }
.top nav a:not(.btn):hover { color: var(--ink); }
@media (max-width: 720px) { .top nav a:not(.btn) { display: none; } .brand span { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: 0 var(--s5);
  background: var(--signal); color: #fff; border: 0; border-radius: 10px;
  font: 650 1rem/1 var(--font); letter-spacing: -0.005em; text-decoration: none;
  cursor: pointer; transition: background-color .15s var(--ease-out), transform .15s var(--ease-out);
}
.btn:hover { background: var(--signal-ink); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 44px; padding: 0 var(--s4); font-size: .92rem; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-ghost:hover { background: var(--surface); }

/* ---------- sections ---------- */
section { padding-block: var(--s8); }
section + section { border-top: 1px solid var(--line); }
.section-head { max-width: var(--measure); margin-bottom: var(--s7); }
.section-head p { margin-top: var(--s4); color: var(--ink-2); }

/* ---------- hero ---------- */
.hero { padding-block: var(--s8) var(--s9); }
.hero h1 { max-width: 15em; margin-bottom: var(--s7); }
.hero .cols { align-items: start; }
.hero .lede { max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4) var(--s5); margin-top: var(--s6); }
.facts-line { margin-top: var(--s5); display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); color: var(--ink-2); font-size: .95rem; }
.facts-line li { list-style: none; }
.facts-line { padding: 0; }
.facts-line strong { color: var(--ink); font-weight: 650; }

/* signature: triage board */
.triage {
  margin: 0;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(18, 20, 23, .06), 0 18px 40px -18px rgba(18, 20, 23, .28);
  overflow: hidden;
}
.triage-head { display: flex; justify-content: space-between; gap: var(--s4); padding: var(--s4) var(--s5); border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: .72rem; color: var(--ink-3); }
.triage-group { padding: var(--s4) var(--s5) var(--s3); }
.triage-group + .triage-group { border-top: 1px dashed var(--line); }
.bucket { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .01em; padding: .2em .6em; border-radius: 6px; }
.bucket.now { background: var(--signal-tint); color: var(--signal-ink); }
.bucket.later { background: var(--later-tint); color: var(--later); }
.bucket.ignore { background: var(--ignore-tint); color: var(--ignore); }
.triage ul { list-style: none; margin: var(--s3) 0 0; padding: 0; }
.triage li { padding: var(--s2) 0; }
.triage li + li { border-top: 1px solid var(--paper); }
.triage .what { font-weight: 650; line-height: 1.35; }
.triage .where { display: block; margin-top: 2px; font-family: var(--mono); font-size: .7rem; color: var(--ink-3); overflow-wrap: anywhere; }
.triage .why { display: block; margin-top: var(--s1); font-size: .92rem; line-height: 1.45; color: var(--ink-2); }
.triage-foot { padding: var(--s3) var(--s5) var(--s4); border-top: 1px solid var(--line); font-size: .82rem; color: var(--ink-3); }

@media (prefers-reduced-motion: no-preference) {
  .triage-group { animation: sort-in .55s var(--ease-out) both; }
  .triage-group:nth-of-type(2) { animation-delay: .25s; }
  .triage-group:nth-of-type(3) { animation-delay: .5s; }
  .triage-group:nth-of-type(4) { animation-delay: .75s; }
  @keyframes sort-in { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
}

/* ---------- two-column lists (who / not who) ---------- */
.split > div + div { position: relative; }
.split > div + div::before { content: ""; position: absolute; left: calc(var(--s8) / -2); top: 0; bottom: 0; border-left: 1px solid var(--line); }
@media (max-width: 920px) {
  .split > div + div { padding-top: var(--s7); border-top: 1px solid var(--line); }
  .split > div + div::before { display: none; }
}
.ticks { list-style: none; padding: 0; margin: var(--s5) 0 0; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li + li { margin-top: var(--s3); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 14px; height: 8px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }
.ticks.no li::before { width: 14px; height: 2px; top: .75em; border: 0; background: var(--ink-3); transform: none; }

/* ---------- facts from the news ---------- */
.evidence { list-style: none; margin: 0; padding: 0; max-width: 52rem; }
.evidence li { padding-block: var(--s5); }
.evidence li + li { border-top: 1px solid var(--line); }
.evidence p.claim { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); line-height: 1.35; font-weight: 600; letter-spacing: -0.012em; }
.evidence .source { margin-top: var(--s2); font-size: .88rem; color: var(--ink-3); }
.closing-line { margin-top: var(--s6); font-weight: 650; max-width: var(--measure); }

/* ---------- program ---------- */
.program { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.program li { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: var(--s5); padding-block: var(--s5); border-bottom: 1px solid var(--line); }
.program .when { font-family: var(--mono); font-size: .75rem; color: var(--ink-3); padding-top: .35em; }
.program h3 { font-size: 1.2rem; }
.program p { margin-top: var(--s1); color: var(--ink-2); max-width: var(--measure); }
@media (max-width: 640px) { .program li { grid-template-columns: 1fr; gap: var(--s1); } }

/* week rhythm */
.week { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: var(--s7); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.week > div { padding: var(--s5); }
.week > div + div { border-left: 1px solid var(--line); }
.week .day { font-weight: 760; font-size: 1.05rem; }
.week p { margin-top: var(--s2); color: var(--ink-2); font-size: 1rem; line-height: 1.5; }
@media (max-width: 760px) { .week { grid-template-columns: 1fr; } .week > div + div { border-left: 0; border-top: 1px solid var(--line); } }
.terms { margin-top: var(--s6); max-width: var(--measure); color: var(--ink-2); }

/* ---------- proof table ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .98rem; }
caption { text-align: left; }
th, td { text-align: left; vertical-align: top; padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); }
thead th { font-size: .8rem; font-weight: 700; color: var(--ink-3); letter-spacing: .01em; background: var(--paper); }
tbody tr:last-child td { border-bottom: 0; }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 650; }
.note { margin-top: var(--s4); max-width: var(--measure); font-size: .92rem; color: var(--ink-3); }

/* ---------- about ---------- */
.about-sec { padding-block: var(--s7); }
.about-sec h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-bottom: var(--s4); }
.promise { margin-top: var(--s6); padding-top: var(--s5); border-top: 1px solid var(--line); }

/* ---------- buy ---------- */
.buy .cols { align-items: start; }

.included { list-style: none; padding: 0; margin: var(--s5) 0 0; }
.included li { padding-block: var(--s3); border-bottom: 1px solid var(--line); }
.included li:first-child { border-top: 1px solid var(--line); }
.checkout { background: var(--surface); border-radius: var(--radius); padding: var(--s5); box-shadow: 0 1px 2px rgba(18, 20, 23, .06), 0 18px 40px -18px rgba(18, 20, 23, .28); }
.price { font-size: 3rem; font-weight: 820; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.price small { font-variant-numeric: normal; font-size: 1rem; font-weight: 500; color: var(--ink-3); letter-spacing: 0; margin-left: var(--s2); }
.checkout .when { margin-top: var(--s3); color: var(--ink-2); font-size: .98rem; }
.consent { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: var(--s3); margin-top: var(--s5); font-size: .9rem; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.consent + .consent { margin-top: var(--s3); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--signal); cursor: pointer; }
.checkout .btn { margin-top: var(--s5); }
.checkout .note { margin-top: var(--s4); font-size: .82rem; }

/* ---------- faq ---------- */
.faq { padding-block: var(--s7) var(--s8); }
@media (max-width: 920px) { .faq .cols { row-gap: var(--s5); } }
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: var(--s4) var(--s6) var(--s4) 0; position: relative; font-weight: 650; line-height: 1.4; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: translateY(-70%) rotate(45deg); transition: transform .2s var(--ease-out); }
details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details > div { padding: 0 0 var(--s5); color: var(--ink-2); max-width: var(--measure); }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding-block: var(--s6) var(--s7); font-size: .9rem; color: var(--ink-3); }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4) var(--s6); }
footer nav { display: flex; flex-wrap: wrap; gap: 0 var(--s5); }
footer nav a { display: inline-block; padding-block: 12px; }
footer a { color: var(--ink-2); }

/* ---------- legal pages ---------- */
.legal main { width: min(100% - 2 * var(--s5), 46rem); margin: var(--s7) auto var(--s8); }
.legal h1 { font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.4rem); margin-bottom: var(--s5); }
.legal h2 { font-size: 1.3rem; margin: var(--s7) 0 var(--s3); letter-spacing: -0.015em; }
.legal ol, .legal ul { padding-left: 1.3em; }
.legal li { margin: var(--s2) 0; }
.legal .back { display: inline-block; padding-block: 12px; margin-bottom: var(--s5); font-size: .95rem; }
