/* ==========================================================================
   Permetria – permetria.cz
   Design system podle auditní zprávy: tmavá obálka (hero, kontakt, patička), světlé vnitřní strany.
   Barvy závažnosti: červená = kritické, amber = varování, teal = v pořádku/akce, modrá = ověřeno ručně
   ========================================================================== */

/* ---------- Fonty (self-hosted, žádné externí požadavky) ---------- */
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
  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: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-ext-400-normal.woff2") format("woff2");
  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: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
  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: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-ext-600-normal.woff2") format("woff2");
  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: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
  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: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-latin-ext-400-normal.woff2") format("woff2");
  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: "JetBrains Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-latin-600-normal.woff2") format("woff2");
  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: "JetBrains Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-latin-ext-600-normal.woff2") format("woff2");
  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;
}

/* ---------- Tokeny (převzaté z auditní zprávy) ---------- */
:root {
  /* světlé „vnitřní strany“ */
  --page: #ffffff;
  --page-alt: #f5f6f8;
  --ink: #0d1117;          /* nadpisy */
  --text: #333c49;         /* běžný text */
  --muted: #5d6570;
  --line: #e3e6eb;
  --link: #0b7a64;

  /* tmavá „obálka“ */
  --night: #0d1117;
  --night-grid: #1b222d;
  --night-panel: #0a0e13;
  --night-line: #2a3240;
  --night-text: #e6edf3;
  --night-muted: #aeb6c4;

  /* závažnost: plná barva / tónované pozadí / text na pozadí */
  --red: #e5484d;    --red-tint: #fdecea;    --red-ink: #b42318;
  --amber: #f2a93b;  --amber-tint: #fef3dc;  --amber-ink: #8a5300;
  --teal: #35d6b5;   --teal-tint: #ddf7f0;   --teal-ink: #0b7a64;
  --blue: #3b5b8c;   --blue-tint: #e6eef9;   --blue-ink: #2f4a73;
  --btn-ink: #062a22;

  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.625rem, 1.4rem + 0.9vw, 2.125rem);
  --step-3: clamp(2rem, 1.4rem + 2.6vw, 3.125rem);

  --gutter: 16px;
  --max: 1120px;
}

/* Tmavé bloky přepnou tokeny – komponenty uvnitř fungují beze změny */
.is-dark {
  --ink: var(--night-text);
  --text: var(--night-text);
  --muted: var(--night-muted);
  --line: var(--night-line);
  --link: var(--teal);
  background-color: var(--night);
  color: var(--text);
}

/* ---------- Základ ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 600; line-height: 1.2; text-wrap: balance; }
h1 { font-size: var(--step-3); letter-spacing: -0.02em; }
h2 { font-size: var(--step-2); letter-spacing: -0.015em; margin-bottom: 1.25rem; }
h3 { font-size: var(--step-0); line-height: 1.35; }
p { margin: 0 0 1rem; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--link); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap.narrow { max-width: calc(68ch + 2 * var(--gutter)); }

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  background: var(--teal);
  color: var(--btn-ink);
  padding: 0.5rem 0.75rem;
  z-index: 10;
}
.skip:focus { top: 0.5rem; }

/* Štítek nad nadpisem – jako „SHRNUTÍ PRO VEDENÍ“ ve zprávě */
.eyebrow {
  margin: 0 0 0.6rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-ink);
}
.section-head .eyebrow { color: var(--amber-ink); }
.is-dark .eyebrow { color: var(--amber); }

/* ---------- Hlavička ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(13, 17, 23, 0.94);
  border-bottom: 1px solid var(--night-line);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.75rem;
  gap: 1rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--night-text);
  text-decoration: none;
}
.wordmark .mark {
  width: 0.7rem;
  height: 0.7rem;
  background: var(--amber);
  flex: none;
}

.nav {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--step--1);
}
.nav a { color: var(--night-muted); text-decoration: none; }
.nav a:hover { color: var(--night-text); }
.nav .nav-cta { color: var(--teal); }

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary { background: var(--teal); color: var(--btn-ink); }
.btn-primary:hover { background: #5ce3c7; }
.btn-secondary { color: var(--ink); border-color: #c9ced6; }
.btn-secondary:hover { border-color: var(--ink); }
.is-dark .btn-secondary { border-color: var(--night-line); }
.is-dark .btn-secondary:hover { border-color: var(--night-muted); }

/* ---------- Tmavá „obálka“ s mřížkou ---------- */
.cover {
  position: relative;
  isolation: isolate;
}
.cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--night-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--night-grid) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: -1px -1px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.35) 100%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.35) 100%);
}

/* ---------- Hero ---------- */
.hero { padding-block: 4rem 4.5rem; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}
.hero-cmd {
  margin: 0 0 1.25rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--night-muted);
}
.hero-cmd span { color: var(--teal); margin-right: 1.2em; }
.hero h1::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin-top: 1.5rem;
  background: var(--amber);
}
.lead {
  font-size: var(--step-1);
  color: var(--muted);
  margin-top: 1.5rem;
  max-width: 34em;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.assurance {
  margin-top: 1.25rem;
  font-size: var(--step--1);
  color: var(--muted);
}
.assurance::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--teal);
  margin-right: 0.6rem;
  vertical-align: 0.1em;
}

/* ---------- Terminál ---------- */
.terminal {
  margin: 0;
  background: var(--night-panel);
  border: 1px solid var(--night-line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--night-line);
}
.terminal-bar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--night-line);
}
.terminal-title {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--night-muted);
}
.terminal-body {
  margin: 0;
  padding: 1.1rem 1.1rem 1.25rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.75;
  white-space: pre-wrap;
  color: var(--night-text);
}
.terminal-body code { font: inherit; }
.t-line { display: block; padding-left: 9ch; text-indent: -9ch; }
.t-ps { color: var(--teal); }
.t-cmd { font-weight: 600; }
.t-dim { color: var(--night-muted); }
.t-ok { color: var(--teal); }
.t-find { color: var(--amber); }
.t-crit { color: var(--red); }
.t-sum { font-weight: 600; }
.terminal figcaption {
  padding: 0.6rem 1.1rem;
  border-top: 1px solid var(--night-line);
  font-size: 0.75rem;
  color: var(--night-muted);
}

@media (prefers-reduced-motion: no-preference) {
  .t-line { animation: t-reveal 0.01s steps(1, end) both; }
  .t-line:nth-of-type(2)  { animation-delay: 0.45s; }
  .t-line:nth-of-type(3)  { animation-delay: 0.75s; }
  .t-line:nth-of-type(4)  { animation-delay: 0.95s; }
  .t-line:nth-of-type(5)  { animation-delay: 1.15s; }
  .t-line:nth-of-type(6)  { animation-delay: 1.35s; }
  .t-line:nth-of-type(7)  { animation-delay: 1.55s; }
  .t-line:nth-of-type(8)  { animation-delay: 1.75s; }
  .t-line:nth-of-type(9)  { animation-delay: 1.95s; }
  .t-line:nth-of-type(10) { animation-delay: 2.2s; }
  .t-line:nth-of-type(11) { animation-delay: 2.6s; }
}
@keyframes t-reveal {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- Sekce ---------- */
.section { padding-block: 4.5rem; }
.section-alt {
  background: var(--page-alt);
  border-block: 1px solid var(--line);
}
.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); }

/* Pro koho – jako „Klíčová zjištění“ */
.audience {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}
.audience-item {
  border-top: 3px solid var(--amber);
  padding-top: 1.1rem;
}
.audience-item h3 { margin-bottom: 0.5rem; }
.audience-item p { color: var(--muted); }

/* Oblasti kontrol – karty jako výsledky kontrol */
.areas {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}
.area {
  background: var(--page);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  padding: 1.25rem 1.25rem 1.1rem;
}
.area-head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.area-no {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--muted);
}
.area ul {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}
.area li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.35rem;
}
.area li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.4rem;
  height: 0.4rem;
  border: 1px solid #a9b0b9;
}
.area li.crit { color: var(--text); }
.area li.crit::before { background: var(--amber); border-color: var(--amber); }

/* Úrovně auditu */
.tiers {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin-bottom: 3.5rem;
}
.tier {
  background: var(--page);
  border: 1px solid var(--line);
  border-top: 3px solid;
  padding: 1.5rem 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
}
.tier-crit { border-top-color: var(--amber); }
.tier-full { border-top-color: var(--ink); }
.tier p { color: var(--muted); }
.tier-label {
  margin: 0 0 0.35rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.tier .tier-label { color: var(--ink); }
.tier .tier-count { color: var(--ink); font-size: 1.0625rem; margin-bottom: 0.9rem; }
.tier-count b { font-size: 2.25rem; font-weight: 600; line-height: 1; margin-right: 0.35rem; }
.tier .tier-out {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--ink);
  font-weight: 600;
}

.areas-title { font-size: var(--step-1); margin-bottom: 0.5rem; }
.legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.5rem;
  margin-bottom: 1.25rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}
.key { width: 0.55rem; height: 0.55rem; display: inline-block; }
.key-crit { background: var(--amber); }
.key-full { border: 1px solid #a9b0b9; margin-left: 1rem; }

/* Průběh – číslované dlaždice jako přehled kontrol */
.steps {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}
.step {
  counter-increment: step;
  position: relative;
  padding-top: 3.5rem;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  width: 2.75rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  background: var(--teal-tint);
  border-top: 3px solid var(--teal);
  color: var(--teal-ink);
  font-family: var(--mono);
  font-size: 0.9375rem;
  font-weight: 600;
}
.step h3 { margin-bottom: 0.5rem; }
.step p { color: var(--muted); }

/* Výstup */
.report-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}
.report-intro { color: var(--muted); margin-bottom: 1.5rem; }
.deliverables {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}
.deliverables li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.deliverables li:first-child { border-top: 1px solid var(--line); }
.deliverables strong { color: var(--ink); font-weight: 600; }

/* Výřez z reportu – miniatura vnitřní strany */
.report-preview { margin: 0; }
.sheet {
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.25rem 1.25rem 1.5rem;
  box-shadow: 0 1px 2px rgba(13, 17, 23, 0.04), 0 18px 40px -20px rgba(13, 17, 23, 0.25);
}
.sheet-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--muted);
}
.sheet-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--ink);
}
.sheet-brand::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  background: var(--amber);
}
.sheet-title {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.risk {
  display: grid;
  gap: 0.25rem 1.25rem;
  background: var(--red-tint);
  border-left: 4px solid var(--red);
  padding: 0.9rem 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
}
.risk-label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red-ink);
}
.risk-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  font-family: var(--sans);
  line-height: 1.2;
}
.risk p { margin: 0; color: var(--text); }

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
}
.stat {
  padding: 0.6rem 0.75rem 0.7rem;
  border-top: 3px solid;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
}
.stat b {
  display: block;
  font-family: var(--sans);
  font-size: 1.75rem;
  letter-spacing: 0;
  line-height: 1.15;
}
.stat-crit { background: var(--red-tint);   border-color: var(--red);   color: var(--red-ink); }
.stat-warn { background: var(--amber-tint); border-color: var(--amber); color: var(--amber-ink); }
.stat-ok   { background: var(--teal-tint);  border-color: var(--teal);  color: var(--teal-ink); }
.stat-man  { background: var(--blue-tint);  border-color: var(--blue);  color: var(--blue-ink); }

.strip {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 3px;
}
.strip span {
  display: grid;
  place-items: center;
  height: 1.6rem;
  border-top: 3px solid;
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 600;
}
.strip .c { background: var(--red-tint);   border-color: var(--red);   color: var(--red-ink); }
.strip .w { background: var(--amber-tint); border-color: var(--amber); color: var(--amber-ink); }
.strip .o { background: var(--teal-tint);  border-color: var(--teal);  color: var(--teal-ink); }

.report-preview figcaption {
  margin-top: 0.75rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Kontakt – tmavý blok jako obálka zprávy */
.contact { padding-block: 5rem; }
.contact-mail {
  font-family: var(--mono);
  font-size: clamp(1.05rem, 0.9rem + 1vw, 1.5rem);
  margin-block: 1.75rem 1rem;
  overflow-wrap: anywhere;
}

/* ---------- Patička (stejný styl jako patička stran zprávy) ---------- */
.site-footer {
  border-top: 1px solid var(--night-line);
  padding-block: 2rem 2.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
}
.footer-inner {
  display: grid;
  gap: 1rem;
}
.footer-note {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- 404 ---------- */
.error-page {
  min-height: 100vh;
  display: grid;
  align-items: center;
}

/* ---------- Breakpointy ---------- */
@media (max-width: 719px) {
  .nav-optional { display: none; }
  .hero { padding-block: 2.5rem 3rem; }
  .section { padding-block: 3.25rem; }
  .contact { padding-block: 3.5rem; }
  .terminal-body { font-size: 0.75rem; padding: 0.9rem; }
  .actions .btn { flex: 1 1 100%; text-align: center; }
  .sheet { padding: 1rem; }
  .sheet-top span:last-child { display: none; }
}

@media (min-width: 480px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .risk { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
}

@media (min-width: 720px) {
  .audience { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
  .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: 1fr auto; align-items: end; }
}

@media (min-width: 960px) {
  .hero { padding-block: 5.5rem 6rem; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 4rem; }
  .areas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .report-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 4rem; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1080px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

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