/* SpecOpsLab — HUD. Estetyka inspirowana grami wojskowymi, bez cudzych znaków i krojów. */
:root {
  --bg: #0D0F0A; --panel: #151910; --panel-2: #1B2014; --line: #2E3824; --line-2: #20261A; --line-3: #3E4A30;
  --fg: #E9E4D0; --fg-2: #CFC9B2; --fg-3: #BDB79F; --muted: #A39E85;
  --gold: #F2B33D; --gold-2: #F7CF7A; --gold-ink: #141006; --hud: #A8E05F; --bone: #D9D2B6; --red: #E0533D; --rust: #C7743A;
  --ok-bg: #1F2E12; --ok-fg: #B6E57A; --ap-bg: #3A2C10; --ap-fg: #F2C46B; --pr-bg: #2A2A22; --pr-fg: #C9C3AA;
  --el-bg: #24360F; --el-fg: #C3EE85; --bad-bg: #3D1714; --bad-fg: #FFB0A8; --cta-bg: #1C1A0E;
  --font: 'Saira Condensed', system-ui, sans-serif; --mono: 'Share Tech Mono', ui-monospace, monospace; --stencil: 'Saira Stencil One', 'Saira Condensed', sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
/* Atrybut hidden musi wygrać z display ustawionym klasą (np. .card-link { display: flex }). */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 17px; line-height: 1.55; }
a { color: var(--gold); } a:hover { color: var(--gold-2); }
img, svg { max-width: 100%; }
.hud-bg { background-color: var(--bg); background-image: linear-gradient(rgba(233,228,208,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(233,228,208,.035) 1px, transparent 1px); background-size: 48px 48px; min-height: 100vh; }
.hud-scan { pointer-events: none; position: fixed; inset: 0; z-index: 50; background: repeating-linear-gradient(180deg, transparent 0, transparent 2px, rgba(0,0,0,.18) 3px); mix-blend-mode: multiply; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 24px; } }
.mono { font-family: var(--mono); }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0; }
.eyebrow.hud-c { color: var(--hud); }
.muted { color: var(--muted); }
h1, h2, h3 { text-transform: uppercase; letter-spacing: .015em; margin: 0; line-height: 1; }
h1 { font-size: clamp(42px, 6.4vw, 92px); font-weight: 900; overflow-wrap: break-word; hyphens: auto; }
h2 { font-size: clamp(28px, 3.4vw, 46px); font-weight: 900; }
h3 { font-size: 22px; font-weight: 800; }
.stencil { font-family: var(--stencil); font-weight: 400; color: var(--gold); }
.hazard { height: 6px; background: repeating-linear-gradient(-45deg, var(--gold) 0 10px, var(--bg) 10px 20px); opacity: .85; }

/* header / footer */
.site-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 800; letter-spacing: .08em; font-size: 19px; }
.nav { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; font-size: 16px; }
.nav a { color: var(--fg-2); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover { color: var(--gold); }
.nav .lang { font-family: var(--mono); font-size: 13px; min-width: 28px; justify-content: center; }
.nav .langs { display: inline-flex; flex-wrap: nowrap; gap: 6px; }
.nav .lang[aria-current="true"] { color: var(--gold); }
.site-foot { border-top: 1px solid var(--line); margin-top: 32px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; padding-top: 28px; padding-bottom: 36px; font-size: 14px; color: var(--muted); }
.site-foot a { color: var(--muted); }

/* karty z klamrami celownika */
.hud, .card-link { position: relative; border: 1px solid var(--line); border-radius: 3px; background: var(--panel); }
.hud::before, .hud::after, .card-link::before, .card-link::after { content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none; transition: width .25s ease, height .25s ease; }
.hud::before, .card-link::before { top: -1px; left: -1px; border-top: 2px solid var(--gold); border-left: 2px solid var(--gold); }
.hud::after, .card-link::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--gold); border-right: 2px solid var(--gold); }
.card-link { display: flex; flex-direction: column; gap: 12px; min-height: 190px; padding: 22px; color: var(--fg); text-decoration: none; transition: transform .25s ease, border-color .25s ease, background .25s ease; }
.card-link:hover { transform: translateY(-4px); border-color: var(--gold); background: var(--panel-2); color: var(--fg); }
.card-link:hover::before, .card-link:hover::after { width: 28px; height: 28px; }
.card-link[aria-disabled="true"] { opacity: .62; }
.card-link[aria-disabled="true"]:hover { transform: none; border-color: var(--line); background: var(--panel); }
.card-name { font-size: 24px; font-weight: 800; line-height: 1.1; text-transform: uppercase; }
.card-test { color: var(--fg-3); font-size: 16px; flex-grow: 1; }
.card-go { display: flex; justify-content: space-between; align-items: center; font-weight: 700; color: var(--gold); font-size: 15px; text-transform: uppercase; letter-spacing: .06em; }

/* flagi */
.flag { flex: none; display: inline-block; vertical-align: -2px; border-radius: 1px; box-shadow: 0 0 0 1px rgba(233,228,208,.22); filter: saturate(.9); }
.chip { display: inline-flex; align-items: center; gap: 8px; }
.country-line { display: inline-flex; align-items: center; gap: 8px; }

/* odznaki pewności */
.badge { display: inline-block; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; padding: 4px 9px; border-radius: 2px; }
.b-official { background: var(--ok-bg); color: var(--ok-fg); }
.b-approx { background: var(--ap-bg); color: var(--ap-fg); }
.b-profile { background: var(--pr-bg); color: var(--pr-fg); }
.b-elev { background: var(--el-bg); color: var(--el-fg); }
.b-bad { background: var(--bad-bg); color: var(--bad-fg); }

/* przyciski */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 3px; border: 0; font: inherit; font-weight: 800; font-size: 17px; text-transform: uppercase; letter-spacing: .06em; text-decoration: none; cursor: pointer; }
.btn-gold { background: var(--gold); color: var(--gold-ink); transition: transform .2s ease, box-shadow .2s ease; }
.btn-gold:hover { color: var(--gold-ink); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(242,179,61,.25); }
.btn-ghost { border: 1px solid var(--line-3); color: var(--fg); background: transparent; }
.btn[disabled] { opacity: .6; cursor: wait; }
.chip { min-height: 44px; padding: 0 16px; border-radius: 2px; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; border: 1px solid var(--line-3); background: transparent; color: var(--fg-2); text-transform: uppercase; letter-spacing: .04em; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.chip:hover { border-color: var(--gold); }
.chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
:focus-visible { outline: 2px solid var(--hud); outline-offset: 3px; }

/* sekcje */
.section { padding-top: 64px; padding-bottom: 64px; }
.band { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.split { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.split > .main { flex: 999 1 560px; min-width: 0; }
.split > .side { flex: 1 1 340px; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.lede { font-size: 19px; color: var(--fg-3); max-width: 680px; margin: 0; }

/* hero */
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 44px; padding-bottom: 64px; }
.hero .copy { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero .demo { flex: 1 1 360px; min-width: 0; overflow: hidden; padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hud); display: inline-block; animation: pulse 2s ease-in-out infinite; }
.scanline { position: absolute; left: 0; right: 0; top: 0; height: 25%; background: linear-gradient(180deg, rgba(242,179,61,0), rgba(242,179,61,.07), rgba(242,179,61,0)); pointer-events: none; animation: scan 5s linear infinite; }
@keyframes scan { 0% { transform: translateY(-100%); } 100% { transform: translateY(400%); } }
@keyframes pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.demo-bar { transform-origin: left center; animation: fill 1.4s cubic-bezier(.2,.8,.2,1) both; }

/* paski konkurencji */
.ev { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.ev-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ev-head label { font-size: 18px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.ev-val { display: flex; align-items: baseline; gap: 10px; }
.ev-num { font-family: var(--mono); font-size: 28px; }
.track { position: relative; height: 12px; border-radius: 2px; background: var(--line-2); }
.track .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; transition: width .45s cubic-bezier(.2,.8,.2,1), background .3s ease; }
.mark { position: absolute; top: -4px; bottom: -4px; width: 3px; border-radius: 1px; }
.mark.min { background: var(--gold); } .mark.top { background: var(--hud); }
.ev-legend { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 13px; color: var(--muted); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; margin: 0; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; background: var(--line); border-radius: 2px; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 2px; background: var(--fg); border: 3px solid var(--gold); transform: rotate(45deg); }
input[type=range]::-moz-range-track { height: 4px; background: var(--line); border-radius: 2px; }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 2px; background: var(--fg); border: 3px solid var(--gold); transform: rotate(45deg); }

/* werdykt */
.verdict-card { padding: 26px; display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; }
.ring-wrap { position: relative; width: 196px; height: 196px; }
.ring-wrap .ring-val { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring { transition: stroke-dasharray .6s cubic-bezier(.2,.8,.2,1), stroke .3s ease; }
.verdict { font-size: 36px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; transition: color .3s ease; }
.v-ready { color: var(--hud); } .v-borderline { color: var(--gold); } .v-not_ready { color: var(--red); }
.cta-card { padding: 24px; display: flex; flex-direction: column; gap: 14px; background: var(--cta-bg); border-color: var(--gold); }
.cta-card ul { margin: 0; padding-left: 18px; color: #E6DCC8; }
.error { color: var(--red); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tiers { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.tier { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 10px 12px; border: 1px solid var(--line); cursor: pointer; }
.tier input { grid-row: span 2; margin-top: 3px; accent-color: var(--gold); width: 16px; height: 16px; }
.tier-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.tier-head em { font-style: normal; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); background: var(--gold); padding: 1px 6px; }
.tier-price { margin-left: auto; font-weight: 800; color: var(--gold); }
.hub-tiers, .cta-card .hub-tiers { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hub-tiers li { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); }
.hub-tiers li.rec { border-color: var(--gold); background: rgba(242,179,61,.07); }
.tier-desc { font-size: 13px; line-height: 1.4; color: #B8AE98; }
.tier:has(input:checked) { border-color: var(--gold); background: rgba(242,179,61,.07); }
.redeem summary { cursor: pointer; font-size: 13px; color: #B8AE98; }
.redeem-row { display: flex; gap: 8px; margin-top: 8px; }
.redeem-row input { flex: 1; min-width: 0; padding: 8px 10px; background: transparent; color: inherit; border: 1px solid var(--line); font-family: 'Share Tech Mono', monospace; text-transform: uppercase; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: #D9D2B6; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 1px; flex: none; accent-color: var(--gold); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* radar, tabele, FAQ */
.radar-card { padding: 22px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.radar-card svg { flex: 1 1 300px; max-width: 420px; min-width: 0; }
.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: 3px; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
th { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; color: var(--muted); font-weight: 400; border-bottom-color: var(--line); }
td.num { font-family: var(--mono); }
details { border: 1px solid var(--line); border-radius: 3px; padding: 16px 18px; background: var(--panel); }
details summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::before { content: "+ "; color: var(--gold); font-family: var(--mono); }
details[open] summary::before { content: "− "; }
details p { margin: 10px 0 0; color: var(--fg-3); }
.sources { font-size: 14px; color: var(--muted); }

/* moduł płac */
.seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 4px; border: 1px solid var(--line); border-radius: 3px; background: var(--bg); }
.seg button, .pill button { min-height: 44px; border-radius: 2px; border: 0; font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; background: transparent; color: var(--fg-2); }
.seg button[aria-pressed="true"], .pill button[aria-pressed="true"] { background: var(--gold); color: var(--gold-ink); }
.pill { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 3px; background: var(--bg); }
.pill button { padding: 0 16px; font-size: 14px; text-transform: uppercase; }
.switch { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 3px; background: var(--bg); color: var(--fg); font: inherit; text-align: left; cursor: pointer; }
.switch .knob-track { flex: 0 0 auto; width: 46px; height: 26px; border-radius: 2px; position: relative; background: var(--line-3); transition: background .25s ease; }
.switch .knob { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 1px; background: var(--fg); transition: left .25s ease; }
.switch[aria-pressed="true"] .knob-track { background: var(--gold); }
.switch[aria-pressed="true"] .knob { left: 23px; }
.pay-big { font-family: var(--mono); font-size: clamp(48px, 6vw, 72px); line-height: 1; letter-spacing: -.02em; }
.stackbar { display: flex; height: 18px; border-radius: 2px; overflow: hidden; background: var(--line-2); }
.stackbar span { height: 100%; transition: width .45s cubic-bezier(.2,.8,.2,1); }
.legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 6px 20px; }
.legend div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; }
.sw { width: 10px; height: 10px; border-radius: 1px; display: inline-block; margin-right: 8px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding-top: 8px; }
.bars button { flex: 1 1 0; min-width: 0; height: 100%; display: flex; align-items: flex-end; padding: 0; border: 0; background: transparent; cursor: pointer; }
.bars button span { display: block; width: 100%; border-radius: 2px 2px 0 0; background: var(--line-3); transition: height .45s cubic-bezier(.2,.8,.2,1), background .25s ease; }
.bars button[aria-pressed="true"] span { background: var(--gold); }
.seg-auto { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
.seg-auto button { font-size: 15px; padding: 0 6px; }
.pay-yos-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.pay-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.pay-hi { font-size: clamp(24px, 3vw, 34px); color: var(--fg-2); }
.pay-hi[hidden], .legend div[hidden] { display: none; }
.legend div > span:last-child { white-space: nowrap; }
.legend div > span:first-child { min-width: 0; }
.pay-flag { display: inline-block; padding: 0 6px; border-radius: 2px; background: var(--ap-bg); color: var(--ap-fg); font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; line-height: 1.7; vertical-align: middle; }
.pay-extras { list-style: none; margin: 0; padding: 0; }
.pay-extras li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; color: var(--fg-3); }
.pay-extras li > span:last-child { white-space: nowrap; color: var(--fg); }

/* raport płatny (/r/…) */
.report .verdict { text-align: left; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
