@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap');

/* ==================================================================
   UKNexa — terminal / CLI design system
   Dark ground, phosphor green, one monospace family throughout.
   ================================================================== */

:root {
  --bg:          #080b0a;
  --bg-1:        #0b100e;
  --bg-2:        #0e1512;
  --panel:       #101816;
  --panel-hi:    #14201c;

  --line:        #1d2b25;
  --line-hi:     #2a3f36;

  --green:       #4ef08a;
  --green-hi:    #7dffb0;
  --green-dim:   #2e8f5b;
  --green-glow:  rgba(78, 240, 138, 0.14);

  --amber:       #ffb454;
  --red:         #ff6b5e;

  --fg:          #cfe0d6;
  --fg-dim:      #8ba396;
  --fg-faint:    #5d7268;

  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', 'Cascadia Mono',
          Consolas, 'Liberation Mono', Menlo, monospace;

  --wrap: 1180px;
  --radius: 3px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: -0.1px;
  overflow-x: hidden;
}

/* Faint CRT grid, fixed behind everything. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.28;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 78%);
}

/* Scanlines. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.014) 0px,
    rgba(255,255,255,0.014) 1px,
    transparent 1px,
    transparent 3px
  );
}

/* ---------- Base type ---------- */

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.4px;
  color: var(--fg);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); }
h2 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h3 { font-size: 1.02rem; }
h4 { font-size: 0.92rem; }

p { margin: 0 0 1.1em; color: var(--fg-dim); }
p strong, li strong { color: var(--fg); font-weight: 500; }

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-hi); text-decoration: underline; text-underline-offset: 3px; }

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

ul, ol { margin: 0 0 1.2em; padding-left: 1.15em; color: var(--fg-dim); }
li { margin-bottom: 0.5em; }
li::marker { color: var(--green-dim); }

hr {
  border: 0;
  border-top: 1px dashed var(--line-hi);
  margin: 2.4rem 0;
}

code {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 0.1em 0.42em;
  border-radius: 2px;
  font-size: 0.88em;
  color: var(--green-hi);
}

img { max-width: 100%; height: auto; display: block; }

table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
th, td { padding: 0.7rem 0.85rem; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--green); font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem; }
td { color: var(--fg-dim); }

/* ---------- Layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
  position: relative;
  z-index: 2;
}

.section { padding: clamp(48px, 7vw, 84px) 0; position: relative; z-index: 2; }
.section--tight { padding: clamp(34px, 4.5vw, 52px) 0; }
.section--alt { background: linear-gradient(180deg, transparent, var(--bg-1) 12%, var(--bg-1) 88%, transparent); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green);
  color: #04120a;
  padding: 10px 16px;
  z-index: 999;
  font-weight: 700;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Prompt-style section headers ---------- */

.sec-head { margin-bottom: 2.2rem; }

.sec-head__cmd {
  display: block;
  font-size: 0.74rem;
  color: var(--green-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.sec-head__cmd::before { content: '$ '; color: var(--green); }

.sec-head h2 { margin-bottom: 0.5rem; }
.sec-head p { max-width: 68ch; margin-bottom: 0; font-size: 0.9rem; }

.rule {
  height: 1px;
  background: linear-gradient(90deg, var(--line-hi), transparent);
  margin: 1.1rem 0 0;
}

/* ---------- Header ---------- */

.hdr {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(8, 11, 10, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.hdr__age {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--fg-faint);
}
.hdr__age .wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 30px;
  flex-wrap: wrap;
}
.hdr__age a { color: var(--fg-dim); text-decoration: underline; text-underline-offset: 2px; }
.hdr__age a:hover { color: var(--green); }

.hdr__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 62px;
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand__txt { font-weight: 700; font-size: 0.95rem; color: var(--fg); letter-spacing: -0.5px; }
.brand__txt em { font-style: normal; color: var(--green); }
.brand__sub { display: block; font-size: 0.62rem; color: var(--fg-faint); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 400; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--fg-dim);
  font-size: 0.82rem;
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  white-space: nowrap;
}
.nav a::before { content: '/'; color: var(--green-dim); margin-right: 2px; }
.nav a:hover { color: var(--fg); border-color: var(--line-hi); background: var(--bg-2); text-decoration: none; }
.nav a[aria-current='page'] { color: var(--green); border-color: var(--green-dim); background: var(--green-glow); }

.nav-toggle {
  display: none;
  background: var(--bg-2);
  border: 1px solid var(--line-hi);
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.8rem;
  padding: 8px 12px;
  border-radius: var(--radius);
  cursor: pointer;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 11px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line-hi);
  color: var(--fg);
  background: var(--bg-2);
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s, transform .15s;
  text-decoration: none;
  line-height: 1.3;
}
.btn:hover { text-decoration: none; border-color: var(--green-dim); color: var(--green-hi); transform: translateY(-1px); }

.btn--primary {
  background: var(--green);
  border-color: var(--green);
  color: #05140c;
  font-weight: 700;
}
.btn--primary:hover { background: var(--green-hi); border-color: var(--green-hi); color: #05140c; }

.btn--ghost { background: transparent; }
.btn--sm { font-size: 0.75rem; padding: 8px 13px; }
.btn--full { width: 100%; justify-content: center; }

.btn__arrow { font-size: 0.9em; }

/* ---------- Status pill (availability indicator) ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
  border: 1px solid var(--line-hi);
  background: var(--bg-2);
  padding: 5px 11px;
  border-radius: 100px;
}
.pill--live { color: var(--green); border-color: var(--green-dim); background: var(--green-glow); }
.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(78,240,138,0.6);
  animation: pulse 2.4s infinite;
  flex: none;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(78,240,138,0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(78,240,138,0); }
  100% { box-shadow: 0 0 0 0 rgba(78,240,138,0); }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  z-index: 2;
  padding: clamp(38px, 6vw, 68px) 0 clamp(30px, 4vw, 46px);
  background:
    radial-gradient(ellipse 70% 50% at 20% 0%, rgba(78,240,138,0.055), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: start;
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  font-weight: 700;
  margin-bottom: 14px;
  max-width: 24ch;
}
.hero h1 .accent { color: var(--green); }

.hero__lede {
  font-size: 0.88rem;
  color: var(--fg-dim);
  max-width: 54ch;
  margin-bottom: 22px;
}

.hero__cta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.hero__stat { background: var(--bg-1); padding: 13px 14px; }
.hero__stat b { display: block; font-size: 1.15rem; color: var(--green); font-weight: 700; line-height: 1.2; }
.hero__stat span { font-size: 0.66rem; color: var(--fg-faint); letter-spacing: 0.08em; text-transform: uppercase; }

/* Terminal window in the hero */
.term {
  border: 1px solid var(--line-hi);
  border-radius: 5px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  box-shadow: 0 20px 50px -22px rgba(0,0,0,0.9), 0 0 0 1px rgba(78,240,138,0.05);
  overflow: hidden;
}
.term__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.term__dots { display: flex; gap: 5px; }
.term__dots i { width: 9px; height: 9px; border-radius: 50%; display: block; background: var(--line-hi); }
.term__dots i:nth-child(1) { background: #4a2b2b; }
.term__dots i:nth-child(2) { background: #4a412b; }
.term__dots i:nth-child(3) { background: #2b4a35; }
.term__title { font-size: 0.68rem; color: var(--fg-faint); letter-spacing: 0.06em; margin-left: 4px; }

.term__body { padding: 15px 16px 17px; font-size: 0.78rem; line-height: 1.85; }
.term__line { display: block; white-space: pre-wrap; word-break: break-word; }
.term__line .p { color: var(--green); }
.term__line .c { color: var(--fg); }
.term__line .o { color: var(--fg-dim); }
.term__line .ok { color: var(--green-hi); }
.term__line .warn { color: var(--amber); }
.term__line .dim { color: var(--fg-faint); }

.cursor {
  display: inline-block;
  width: 7px;
  height: 1em;
  background: var(--green);
  vertical-align: -2px;
  animation: blink 1.15s step-end infinite;
}
@keyframes blink { 0%, 49% { opacity: 1 } 50%, 100% { opacity: 0 } }

/* ---------- Cards ---------- */

.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color .18s, transform .18s, background .18s;
}
.card:hover { border-color: var(--line-hi); background: var(--panel-hi); }

/* corner brackets */
.card--bracket::before,
.card--bracket::after {
  content: '';
  position: absolute;
  width: 9px; height: 9px;
  border: 1px solid var(--green-dim);
  opacity: 0.65;
}
.card--bracket::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.card--bracket::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

/* ---------- Brand card ---------- */

.bcard {
  display: grid;
  grid-template-columns: 200px minmax(0,1fr) 190px;
  gap: 22px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 20px;
  position: relative;
  transition: border-color .18s, background .18s;
}
.bcard:hover { border-color: var(--green-dim); background: var(--panel-hi); }

.bcard__rank {
  position: absolute;
  top: -1px; left: -1px;
  background: var(--green);
  color: #05140c;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 9px;
  border-radius: 3px 0 3px 0;
}

.logobox {
  background: #fff;
  border: 1px solid var(--line-hi);
  border-radius: 4px;
  padding: 18px 16px;
  display: grid;
  place-items: center;
  min-height: 92px;
}
.logobox img { max-height: 46px; width: auto; object-fit: contain; }
.logobox--sm { min-height: 64px; padding: 12px; }
.logobox--sm img { max-height: 32px; }

.bcard__body h3 { margin-bottom: 4px; font-size: 1.05rem; }
.bcard__tag { font-size: 0.8rem; color: var(--fg-dim); margin-bottom: 12px; }

.lic {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 0.72rem;
  color: var(--fg-faint);
  border-top: 1px dashed var(--line-hi);
  padding-top: 11px;
  margin-top: 11px;
}
.lic b { color: var(--fg-dim); font-weight: 400; }
.lic code { font-size: 0.9em; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 0.67rem;
  letter-spacing: 0.05em;
  color: var(--fg-dim);
  border: 1px solid var(--line-hi);
  background: var(--bg-2);
  padding: 3px 8px;
  border-radius: 2px;
}
.tag--ok { color: var(--green); border-color: var(--green-dim); }

.bcard__aside { display: grid; gap: 9px; }

.score {
  text-align: center;
  border: 1px solid var(--green-dim);
  background: var(--green-glow);
  border-radius: var(--radius);
  padding: 10px 8px;
}
.score b { display: block; font-size: 1.7rem; font-weight: 700; color: var(--green); line-height: 1; }
.score span { font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-faint); }

.aff-note {
  font-size: 0.62rem;
  color: var(--fg-faint);
  text-align: center;
  letter-spacing: 0.04em;
}

/* ---------- Score bars ---------- */

.bars { display: grid; gap: 11px; }
.bar__top {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 0.76rem; margin-bottom: 5px;
}
.bar__top span { color: var(--fg-dim); }
.bar__top b { color: var(--green); font-weight: 500; }
.bar__track { height: 5px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 100px; overflow: hidden; }
.bar__fill { height: 100%; background: linear-gradient(90deg, var(--green-dim), var(--green)); }

/* ---------- Timeline ---------- */

.tl { position: relative; padding-left: 26px; }
.tl::before {
  content: '';
  position: absolute;
  left: 5px; top: 6px; bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, var(--green-dim), var(--line));
}
.tl__item { position: relative; padding-bottom: 26px; }
.tl__item:last-child { padding-bottom: 0; }
.tl__item::before {
  content: '';
  position: absolute;
  left: -25px; top: 8px;
  width: 11px; height: 11px;
  border: 1px solid var(--green-dim);
  background: var(--bg);
  border-radius: 2px;
}
.tl__item::after {
  content: '';
  position: absolute;
  left: -22px; top: 11px;
  width: 5px; height: 5px;
  background: var(--green);
  border-radius: 1px;
}
.tl__step { font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-dim); }
.tl__item h3 { margin: 3px 0 6px; font-size: 0.95rem; }
.tl__item p { font-size: 0.83rem; margin: 0; }

/* ---------- Prose ---------- */

.prose { max-width: 74ch; }
.prose h2 { margin-top: 2.4rem; padding-top: 0.2rem; }
.prose h2::before { content: '## '; color: var(--green-dim); font-weight: 400; }
.prose h3 { margin-top: 1.9rem; color: var(--fg); }
.prose h3::before { content: '### '; color: var(--green-dim); font-weight: 400; }
.prose > h2:first-child { margin-top: 0; }
.prose p, .prose li { font-size: 0.88rem; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

.lead {
  font-size: 0.95rem !important;
  color: var(--fg) !important;
  border-left: 2px solid var(--green-dim);
  padding-left: 16px;
}

.updated {
  font-size: 0.7rem;
  color: var(--fg-faint);
  letter-spacing: 0.06em;
  border: 1px solid var(--line);
  background: var(--bg-1);
  border-radius: var(--radius);
  padding: 9px 13px;
  display: inline-block;
  margin-bottom: 1.8rem;
}

/* ---------- Callouts ---------- */

.note {
  border: 1px solid var(--line-hi);
  border-left: 2px solid var(--green-dim);
  background: var(--bg-1);
  border-radius: var(--radius);
  padding: 15px 17px;
  margin: 1.6rem 0;
  font-size: 0.83rem;
}
.note p:last-child { margin-bottom: 0; }
.note__t {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 7px;
}
.note--warn { border-left-color: var(--amber); }
.note--warn .note__t { color: var(--amber); }

/* ---------- Pros / cons ---------- */

.pc { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.pc__col { border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); padding: 17px 19px; }
.pc__col h4 { font-size: 0.72rem; letter-spacing: 0.13em; text-transform: uppercase; margin-bottom: 12px; }
.pc__col--pro h4 { color: var(--green); }
.pc__col--con h4 { color: var(--amber); }
.pc__col ul { list-style: none; padding: 0; margin: 0; }
.pc__col li { font-size: 0.82rem; padding-left: 28px; position: relative; margin-bottom: 11px; }
.pc__col li:last-child { margin-bottom: 0; }
.pc__col--pro li::before { content: '[+]'; position: absolute; left: 0; color: var(--green-dim); font-size: 0.75rem; }
.pc__col--con li::before { content: '[-]'; position: absolute; left: 0; color: var(--amber); font-size: 0.75rem; opacity: 0.75; }

/* ---------- Fact table ---------- */

.facts {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}
.facts__row {
  display: grid;
  grid-template-columns: 190px minmax(0,1fr);
  gap: 14px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 0.81rem;
}
.facts__row:last-child { border-bottom: 0; }
.facts__row dt { color: var(--fg-faint); }
.facts__row dd { margin: 0; color: var(--fg); }
.facts dl { margin: 0; }

/* ---------- Accordion (FAQ) ---------- */

.acc { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.acc details { border-bottom: 1px solid var(--line); }
.acc details:last-child { border-bottom: 0; }
.acc summary {
  cursor: pointer;
  list-style: none;
  padding: 15px 18px;
  font-size: 0.86rem;
  color: var(--fg);
  display: flex;
  gap: 11px;
  align-items: flex-start;
  transition: background .15s, color .15s;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::before { content: '>'; color: var(--green-dim); flex: none; transition: transform .18s; }
.acc details[open] summary::before { transform: rotate(90deg); color: var(--green); }
.acc details[open] summary { color: var(--green-hi); background: var(--bg-2); }
.acc summary:hover { background: var(--bg-2); }
.acc__body { padding: 0 18px 17px 41px; }
.acc__body p { font-size: 0.83rem; margin-bottom: 0; }

/* ---------- Forms ---------- */

.form { display: grid; gap: 15px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-dim); }
.field label .req { color: var(--green); }
.field input, .field select, .field textarea {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--fg);
  background: var(--bg-2);
  border: 1px solid var(--line-hi);
  border-radius: var(--radius);
  padding: 11px 13px;
  width: 100%;
}
.field textarea { min-height: 148px; resize: vertical; line-height: 1.7; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green-dim);
  box-shadow: 0 0 0 3px var(--green-glow);
}
.field input::placeholder, .field textarea::placeholder { color: var(--fg-faint); }
.field__hint { font-size: 0.71rem; color: var(--fg-faint); }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.78rem; color: var(--fg-dim); }
.check input { width: 15px; height: 15px; margin-top: 3px; flex: none; accent-color: var(--green); }

.alert {
  border: 1px solid var(--line-hi);
  border-left: 2px solid var(--red);
  background: var(--bg-1);
  border-radius: var(--radius);
  padding: 13px 16px;
  font-size: 0.8rem;
}
.alert--ok { border-left-color: var(--green); }
.alert ul { margin: 6px 0 0; padding-left: 1.1em; }
.alert b { color: var(--fg); }

/* ---------- 18+ badge ---------- */

.age18 {
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  border: 1.5px solid var(--amber);
  border-radius: 50%;
  color: var(--amber);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  flex: none;
  line-height: 1;
}
.age18--sm { width: 21px; height: 21px; font-size: 0.5rem; border-width: 1px; }
.age18--lg { width: 46px; height: 46px; font-size: 0.92rem; border-width: 2px; }

/* ---------- Footer ---------- */

.ftr {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  background: var(--bg-1);
  margin-top: 20px;
}

.ftr__safer {
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  background: var(--bg-2);
}
.ftr__safer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}
.safer {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  border: 1px solid var(--line-hi);
  border-radius: var(--radius);
  padding: 13px 15px;
  background: var(--bg-1);
  transition: border-color .16s;
}
.safer:hover { border-color: var(--green-dim); text-decoration: none; }
.safer__logo { flex: none; }
.safer__logo svg { display: block; }
.safer b { display: block; font-size: 0.8rem; color: var(--fg); font-weight: 500; margin-bottom: 2px; }
.safer span { display: block; font-size: 0.71rem; color: var(--fg-faint); line-height: 1.55; }

.ftr__main { padding: 40px 0 30px; }
.ftr__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 30px;
}
.ftr h4 {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-dim);
  margin-bottom: 14px;
}
.ftr ul { list-style: none; padding: 0; margin: 0; }
.ftr li { margin-bottom: 8px; }
.ftr li a { color: var(--fg-dim); font-size: 0.8rem; }
.ftr li a:hover { color: var(--green); }
.ftr p { font-size: 0.78rem; color: var(--fg-faint); }

.ftr__legal {
  border-top: 1px solid var(--line);
  padding: 20px 0 28px;
}
.ftr__legalbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 8px;
  align-items: center;
  font-size: 0.75rem;
  margin-bottom: 16px;
}
.ftr__legalbar a { color: var(--fg-dim); }
.ftr__legalbar a:hover { color: var(--green); }
.ftr__legalbar .sep { color: var(--line-hi); }

.ftr__warn {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid var(--line-hi);
  border-left: 2px solid var(--amber);
  background: var(--bg-2);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 18px;
}
.ftr__warn p { margin: 0; font-size: 0.76rem; color: var(--fg-dim); line-height: 1.65; }
.ftr__warn strong { color: var(--amber); }

.ftr__base {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.72rem;
  color: var(--fg-faint);
}

/* ---------- Cookie consent ---------- */

.cc {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-2);
  border: 1px solid var(--green-dim);
  border-radius: 5px;
  box-shadow: 0 24px 60px -18px rgba(0,0,0,0.95);
  padding: 0;
  transform: translateY(140%);
  opacity: 0;
  transition: transform .32s cubic-bezier(.2,.8,.3,1), opacity .28s;
  pointer-events: none;
}
.cc.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.cc[hidden] { display: none; }

.cc__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-1);
  border-radius: 4px 4px 0 0;
}
.cc__bar span { font-size: 0.68rem; color: var(--fg-faint); letter-spacing: 0.06em; }

.cc__body { padding: 16px 18px 18px; }
.cc__body h2 { font-size: 0.9rem; margin-bottom: 8px; }
.cc__body p { font-size: 0.79rem; margin-bottom: 14px; line-height: 1.7; }
.cc__body p:last-of-type { margin-bottom: 16px; }

.cc__actions { display: flex; gap: 9px; flex-wrap: wrap; }
.cc__actions .btn { flex: 1 1 auto; justify-content: center; min-width: 140px; }

.cc-reopen {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 0.75rem;
  color: var(--fg-dim);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cc-reopen:hover { color: var(--green); }

/* ---------- Misc ---------- */

.center { text-align: center; }
.muted { color: var(--fg-faint); font-size: 0.76rem; }
.stack { display: grid; gap: 16px; }
.flexrow { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.mb0 { margin-bottom: 0; }

.crumbs { font-size: 0.72rem; color: var(--fg-faint); margin-bottom: 18px; }
.crumbs a { color: var(--fg-dim); }
.crumbs .sep { color: var(--line-hi); margin: 0 6px; }

.ext::after { content: ' ↗'; font-size: 0.85em; opacity: 0.7; }

/* ---------- Responsive ---------- */

@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; }
  .bcard { grid-template-columns: 160px minmax(0,1fr); }
  .bcard__aside { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; align-items: center; }
  .ftr__grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-1);
    border-bottom: 1px solid var(--line);
    padding: 8px clamp(16px, 4vw, 32px) 14px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 11px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a:hover, .nav a[aria-current='page'] { background: transparent; border-color: var(--line); }
  .hdr__bar { position: relative; }
  .ftr__safer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 14px; }
  .hero__stats { grid-template-columns: 1fr; }
  .bcard { grid-template-columns: 1fr; }
  .bcard__aside { grid-template-columns: 1fr; }
  .pc { grid-template-columns: 1fr; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .facts__row { grid-template-columns: 1fr; gap: 2px; }
  .ftr__grid { grid-template-columns: 1fr; }
  .cc { left: 10px; right: 10px; bottom: 10px; }
  .cc__actions .btn { min-width: 0; flex: 1 1 100%; }
  .prose { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  body::before, body::after, .hdr, .ftr__safer, .cc { display: none !important; }
  body { background: #fff; color: #000; }
}
