/* BNI Slovensko brand, taken from bni-slovensko.sk and the approved mockup
   (variant A, "red bands"): red #CF1F2E with the darker #B10B0C for text and
   hover, ink #111827 for headings, warm greys for alternating bands.

   Contrast, measured: white on --red 5.4:1, --red-d on white 7.2:1 and on
   --s2 6.2:1, --mut on --s2 6.6:1. --red is never used for small text on a
   light ground — that is what --red-d is for. --line (3.4:1 on white) outlines
   every control, so inputs and answer buttons stay visible (WCAG 1.4.11).

   No inline styles anywhere: the CSP has no 'unsafe-inline', so a style
   attribute would be dropped silently. app.js toggles classes instead. */

/* Self-hosted because the CSP is default-src 'self'. Both families are
   variable, OFL-licensed (fonts/*.OFL.txt), from @fontsource-variable 5.3.0.
   /fonts/** is cached for a year as immutable — rename a file to replace it. */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/montserrat-latin-ext-wght-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: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/montserrat-latin-wght-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: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/archivo-latin-ext-wght-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: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/archivo-latin-wght-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;
}

:root {
  --red: #CF1F2E;
  --red-d: #B10B0C;
  --ink: #111827;
  --ink2: #1f2937;
  --mut: #4b5563;
  --line: #858b95;
  --s0: #fff;
  --s1: #f9fafb;
  --s2: #F0EEF0;
  --s3: #E7E3E6;
  --ok: #15803d;
  --r-btn: 4px;
  --r-card: 12px;
  --sp: 8px;
  --wrap: 1120px;
  --fh: 'Montserrat', system-ui, sans-serif;
  --fb: 'Archivo', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font: 400 17px/1.6 var(--fb);
  color: var(--ink2);
  background: var(--s0);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--fh); color: var(--ink); line-height: 1.1; letter-spacing: -.01em; }
a { color: var(--red-d); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
/* Headings take programmatic focus on a screen change; no ring for that. */
[tabindex="-1"]:focus { outline: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 calc(var(--sp) * 2.5); }
.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.noscript { max-width: 40rem; margin: 4rem auto; padding: 0 20px; font-size: 19px; }
[hidden] { display: none !important; }

/* Honeypot. Off-screen rather than display:none — some bots skip hidden
   fields — and out of the tab order. */
.trap { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  border: 0; border-radius: var(--r-btn);
  background: var(--red); color: #fff;
  font: 700 16px/1.2 var(--fh); letter-spacing: .01em; text-align: center;
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--red-d); }
.btn:disabled { cursor: progress; opacity: .75; }
.btn--inv { background: #fff; color: var(--red-d); }
.btn--inv:hover { background: var(--s2); color: var(--red-d); }
.btn--inv:focus-visible { outline-color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border: 2px solid var(--line); }
.btn--ghost:hover { background: var(--s2); }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 14px; }

/* ---------- header / footer ---------- */
.hd { border-bottom: 1px solid var(--s3); background: #fff; }
.hd .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.logo {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  text-decoration: none; color: var(--ink);
}
.logo img { display: block; width: auto; height: 32px; }
.logo span {
  font: 600 12px/1 var(--fh); text-transform: uppercase; letter-spacing: .14em; color: var(--mut);
}

.ft { background: var(--s1); border-top: 1px solid var(--s3); padding: 32px 0; font-size: 14px; color: var(--mut); }
.ft .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.ft a { color: var(--ink); display: inline-block; padding: 12px 0; }

/* ---------- landing bands ---------- */
.band { padding: calc(var(--sp) * 8) 0; }
.band--gray { background: var(--s2); }
.band--red { background: var(--red); color: #fff; }
.band--ink { background: var(--ink); color: #e5e7eb; }
.band--ink h2, .band--red h2 { color: #fff; }
.eyebrow {
  font: 700 12px/1 var(--fh); letter-spacing: .16em; text-transform: uppercase;
  color: var(--red-d); margin-bottom: 16px;
}
.band--ink .eyebrow { color: #fca5ab; }
h2 { font-size: 30px; margin-bottom: 20px; font-weight: 800; }
.lead { font-size: 19px; color: var(--mut); max-width: 40ch; }
.lead--wide { max-width: 60ch; }

.hero { padding: calc(var(--sp) * 6) 0 calc(var(--sp) * 8); }
.hero .wrap { display: grid; gap: 48px; }
.hero h1 { font-size: 42px; font-weight: 800; max-width: 14ch; margin: 8px 0 20px; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero .lead { margin-bottom: 28px; }
.meta { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 15px; color: var(--mut); }
.meta svg { flex: none; }
.chip {
  display: inline-block; font: 700 12px/1 var(--fh); letter-spacing: .1em; text-transform: uppercase;
  padding: 7px 10px; border-radius: 999px; background: var(--s2); color: var(--ink);
}
.preview {
  background: var(--s1); border: 1px solid var(--s3); border-radius: var(--r-card); padding: 24px;
  box-shadow: 0 24px 48px -24px rgba(17, 24, 39, .25);
}
.preview small { font: 600 12px/1 var(--fh); letter-spacing: .12em; text-transform: uppercase; color: var(--mut); }
.preview p { font: 600 19px/1.35 var(--fh); color: var(--ink); margin: 12px 0 20px; }
.preview .scale span {
  display: grid; place-items: center; aspect-ratio: 1; min-height: 48px;
  border: 2px solid var(--s3); border-radius: 10px; background: #fff;
  font: 800 22px/1 var(--fh); color: var(--ink);
}
.preview .scale span.on { background: var(--red); border-color: var(--red); color: #fff; }

/* Resume offer, shown on the landing when a draft exists. */
.resume {
  display: grid; gap: 12px; margin-bottom: 28px; padding: 18px 20px;
  background: var(--s1); border: 1px solid var(--s3); border-left: 4px solid var(--red);
  border-radius: var(--r-btn);
}
.resume h2 { font-size: 19px; margin: 0; }
.resume p { color: var(--mut); font-size: 16px; }
.resume .actions { display: flex; flex-wrap: wrap; gap: 12px; }

.mlm { padding: calc(var(--sp) * 7) 0; background: var(--red); color: #fff; }
.mlm p { font: 800 32px/1.1 var(--fh); letter-spacing: -.015em; max-width: 18ch; }
.mlm p span {
  display: block; font: 600 13px/1 var(--fh); letter-spacing: .16em; text-transform: uppercase;
  margin-bottom: 16px;
}

.gains { list-style: none; display: grid; gap: 16px; margin-top: 8px; }
.gains li {
  display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start;
  padding: 20px 0; border-top: 2px solid var(--s3); font-size: 18px; color: var(--ink);
}
.gains li::before {
  content: ''; width: 40px; height: 40px; border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 20px no-repeat;
}

.steps { list-style: none; display: grid; gap: 32px; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-left: 72px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -4px; width: 52px; height: 52px;
  border-radius: 50%; background: #fff; border: 3px solid var(--red);
  display: grid; place-items: center; font: 800 22px/1 var(--fh); color: var(--red-d);
}
.steps h3 { font-size: 20px; margin-bottom: 6px; }
.steps p { color: var(--mut); }

.who { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.who li { padding: 10px 14px; border: 2px solid var(--ink); border-radius: 999px; font: 600 14px/1 var(--fh); color: var(--ink); }

.trust { display: grid; gap: 32px; align-items: center; }
.stat { font: 800 96px/.9 var(--fh); color: #fff; letter-spacing: -.04em; }
.stat small {
  display: block; font: 600 14px/1.3 var(--fh); letter-spacing: .14em; text-transform: uppercase;
  color: #fca5ab; margin-top: 12px;
}
.stat::after { content: ''; display: block; width: 64px; height: 6px; background: var(--red); margin-top: 20px; }
.band--ink p { color: #d1d5db; font-size: 19px; max-width: 44ch; }
.band--ink .eyebrow { font-size: 12px; }
/* The stat is a <p> inside the ink band; win over the band's paragraph rule. */
.band--ink .stat { font-size: 96px; line-height: .9; color: #fff; max-width: none; }

.final h2 { font-size: 40px; margin-bottom: 28px; }

/* ---------- quiz + lead shell ---------- */
.qshell { min-height: 100vh; background: var(--s2); display: flex; flex-direction: column; }
.qtop { background: #fff; border-bottom: 1px solid var(--s3); }
.qtop .wrap { display: flex; flex-direction: column; padding-top: 10px; padding-bottom: 12px; }
.qtop-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; }
.count { font: 700 14px/1 var(--fh); color: var(--ink); white-space: nowrap; }
/* On a phone the product name would push the counter onto two lines; it stays
   in the link's accessible name, just visually clipped. */
@media (max-width: 479px) {
  .qtop .logo span {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }
}
.count span { color: var(--mut); font-weight: 600; }
.ticks { display: grid; grid-template-columns: repeat(15, 1fr); gap: 4px; padding: 12px 0 0; }
.ticks i { height: 6px; border-radius: 3px; background: var(--s3); }
.ticks i.done { background: var(--red); }
.ticks i.now { background: var(--ink); }
.qmain { flex: 1; padding: 24px 0 48px; }
.qcard {
  background: #fff; border-radius: var(--r-card); padding: 28px 20px 24px; max-width: 720px; margin: 0 auto;
  box-shadow: 0 1px 0 var(--s3), 0 20px 40px -28px rgba(17, 24, 39, .35);
}
.qnum { font: 800 64px/1 var(--fh); color: var(--s3); letter-spacing: -.04em; }
.qnum b { color: var(--red); }
.qtext { font: 700 23px/1.3 var(--fh); color: var(--ink); margin: 16px 0 28px; min-height: 3.9em; }
.qtext--plain { min-height: 0; margin-bottom: 8px; }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.scale button {
  aspect-ratio: 1; min-height: 56px; border: 2px solid var(--line); border-radius: 10px; background: #fff;
  font: 800 24px/1 var(--fh); color: var(--ink); cursor: pointer;
  transition: transform .12s, background .12s;
}
.scale button:hover { border-color: var(--ink); }
.scale button[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; transform: scale(1.04); }
.ends {
  display: flex; justify-content: space-between; margin-top: 10px;
  font: 600 13px/1.2 var(--fh); color: var(--mut); text-transform: uppercase; letter-spacing: .08em;
}
.qfoot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 720px; margin: 20px auto 0; flex-wrap: wrap;
}
.qfoot-nav { display: flex; gap: 12px; }
.hint { font-size: 14px; color: var(--mut); }
kbd {
  font: 600 12px/1 var(--fh); border: 1px solid #9ca3af; border-bottom-width: 2px; border-radius: 4px;
  padding: 3px 6px; background: #fff; color: var(--ink);
}
.saved { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--mut); }
.saved::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }

/* ---------- lead form ---------- */
.fine { font-size: 14px; color: var(--mut); margin-bottom: 20px; }
.req { color: var(--red-d); text-decoration: none; }
.form { display: grid; gap: 20px; margin-top: 8px; }
.fld label { display: block; font: 700 15px/1.2 var(--fh); color: var(--ink); margin-bottom: 8px; }
.fld label .opt { font: 400 14px var(--fb); color: var(--mut); }
.fld input {
  width: 100%; min-height: 52px; padding: 0 14px; border: 2px solid var(--line); border-radius: var(--r-btn);
  font: 400 17px var(--fb); color: var(--ink); background: #fff;
}
.fld input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17, 24, 39, .25); }
.fld input[aria-invalid="true"] { border-color: var(--red-d); background: #fff7f7; }
.err {
  display: flex; gap: 8px; align-items: flex-start; margin-top: 8px;
  font-size: 15px; color: var(--red-d); font-weight: 600;
}
.err:empty { display: none; }
.err::before {
  content: '!'; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--red-d); color: #fff;
  display: grid; place-items: center; font: 800 13px/1 var(--fh); margin-top: 1px;
}
.consent {
  display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; padding: 16px;
  border-radius: var(--r-btn); background: var(--s1); border: 1px solid var(--s3); font-size: 15px; line-height: 1.5;
  cursor: pointer;
}
.consent input { width: 24px; height: 24px; margin-top: 1px; accent-color: var(--red); cursor: pointer; }
.consent.is-invalid { border-color: var(--red-d); background: #fff7f7; }
.actions-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.status { font-size: 15px; font-weight: 600; color: var(--red-d); }
.status:empty { display: none; }

/* ---------- thank-you ---------- */
.warn { background: var(--ink); color: #fff; padding: 28px 0; }
.warn p { font: 800 24px/1.2 var(--fh); letter-spacing: -.01em; }
.done-top { padding-top: 40px; padding-bottom: 40px; }
.done h1 { font-size: 28px; margin-bottom: 16px; max-width: 26ch; }
.cal-band { padding-top: 40px; }
.cal-band:focus { outline: none; }
.cal-frame {
  display: block; width: 100%; min-width: 300px; height: 1050px;
  border: 0; border-radius: var(--r-card); background: #fff;
}
.cal-fallback { margin-top: 16px; font-size: 15px; color: var(--mut); }
.cal-fallback a { display: inline-block; padding: 12px 0; font-weight: 600; }
.new-test { margin-top: 8px; }
.why { padding-top: 0; }
.reasons { list-style: none; display: grid; gap: 12px; counter-reset: r; }
.reasons li {
  counter-increment: r; display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 20px;
  background: #fff; border-radius: var(--r-card); border-left: 4px solid var(--red);
}
.reasons li::before { content: '0' counter(r); font: 800 22px/1.2 var(--fh); color: var(--red-d); }
.again { margin-top: 32px; }

@media (min-width: 760px) {
  h2 { font-size: 40px; }
  .logo img { height: 36px; }
  .band { padding: calc(var(--sp) * 12) 0; }
  .hero { padding: calc(var(--sp) * 10) 0 calc(var(--sp) * 12); }
  .hero .wrap { grid-template-columns: 1.15fr .85fr; align-items: center; }
  .hero h1 { font-size: 68px; }
  .mlm p { font-size: 56px; }
  .gains { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .gains li { grid-template-columns: 1fr; gap: 20px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { padding: 72px 0 0; }
  .steps li::after { content: ''; position: absolute; top: 22px; left: 64px; right: -24px; height: 3px; background: var(--s3); }
  .steps li:last-child::after { display: none; }
  .trust { grid-template-columns: auto 1fr; gap: 64px; }
  .band--ink .stat { font-size: 160px; }
  .final h2 { font-size: 56px; }
  .qmain { padding: 56px 0 80px; }
  .qcard { padding: 48px 48px 40px; }
  .qtext { font-size: 30px; }
  .scale { gap: 14px; }
  .form { grid-template-columns: 1fr 1fr; }
  .form .full { grid-column: 1 / -1; }
  .done h1 { font-size: 40px; }
  .warn p { font-size: 32px; }
  .done-top, .cal-band { padding-top: 48px; padding-bottom: 48px; }
  .why { padding-top: 0; }
  .cal-frame { height: 720px; }
}

/* The keyboard tip means nothing on a phone. */
@media (hover: none) {
  .hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
