@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/lf-ext-400.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/lf-400.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: "Libre Franklin";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/lf-ext-700.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/lf-700.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 {
  --bg: #231A2E;
  --bg-2: #2B2138;
  --card: #342944;
  --line: #4A3C5E;
  --gold: #D9B26B;
  --lilac: #A58BD1;
  --text: #EDE8F3;
  --muted: #AFA3C2;
  --ease: 280ms ease-out;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Libre Franklin", "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.65;
}

body.nav-lock {
  overflow: hidden;
}

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

a {
  color: var(--gold);
}

p {
  margin: 0 0 12px;
}

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 12px;
}

h1 { font-size: 42px; }
h2 { font-size: 27px; }
h3 { font-size: 18px; }

ul,
ol {
  margin: 0 0 12px;
  padding-left: 18px;
}

li + li {
  margin-top: 6px;
}

::selection {
  background: var(--lilac);
  color: var(--bg);
}

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

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  background: var(--gold);
  color: var(--bg);
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  top: 8px;
}

.container {
  width: min(1140px, calc(100% - 40px));
  margin-inline: auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

.band {
  padding: 56px 0;
}

.band-a { background: var(--bg); }
.band-b { background: var(--bg-2); }

.hero {
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 460px;
  background: radial-gradient(ellipse at 50% 0%, rgba(165, 139, 209, 0.10), transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
}

.topwrap {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg);
}

.agebar {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}

.agebar-inner {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 6px 0;
  color: var(--text);
  font-size: 13px;
}

.age-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--bg);
  font-weight: 700;
  border-radius: 8px;
  min-width: 42px;
  height: 24px;
  padding: 0 8px;
  text-decoration: none;
}

.agebar a:not(.age-pill) {
  color: var(--text);
}

.site-header {
  height: 64px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.header-inner {
  height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas: "left logo right";
  align-items: center;
}

.nav-left { grid-area: left; }
.logo { grid-area: logo; }
.nav-right {
  grid-area: right;
  justify-self: end;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color var(--ease);
}

.nav a:hover,
.nav a.is-current {
  color: var(--text);
}

.nav a.is-current::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}

.logo {
  color: var(--gold);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0 18px;
  white-space: nowrap;
}

.nav-toggle,
.nav-close {
  display: none;
  height: 42px;
  padding: 0 22px;
  border-radius: 8px;
  border: 1px solid var(--lilac);
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.nav-toggle {
  grid-area: right;
  justify-self: end;
}

.container.narrow {
  width: min(760px, calc(100% - 40px));
}

.gap-top { margin-top: 20px; }
.gap-bottom { margin-bottom: 20px; }

.nav-panel {
  display: none;
}

.kicker {
  margin: 0 0 8px;
  color: var(--lilac);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead {
  color: var(--muted);
  max-width: 62ch;
}

.frame {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.alert,
.card,
.risk {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}

.alert {
  border-left: 3px solid var(--gold);
  margin: 16px 0;
}

.alert .age-pill {
  margin-bottom: 8px;
}

.card {
  transition: border-color var(--ease), transform var(--ease);
}

.card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.card-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.card-flip {
  flex-direction: row-reverse;
}

.mark {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 8px;
  flex: none;
  background: var(--bg-2);
}

.score {
  margin: 0 0 8px;
  color: var(--muted);
}

.score b {
  color: var(--gold);
  font-size: 18px;
  line-height: 1.2;
}

.facts {
  margin: 12px 0 0;
}

.facts div {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.facts dt {
  color: var(--muted);
}

.facts dd {
  margin: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.btn,
.btn-alt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 22px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--ease), background var(--ease), color var(--ease);
}

.btn {
  background: var(--gold);
  color: var(--bg);
  border: 0;
}

.btn-alt {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--lilac);
}

.btn:hover,
.btn-alt:hover {
  transform: translateY(-2px);
}

.stack {
  display: grid;
  gap: 20px;
}

.muted { color: var(--muted); }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.crumbs a {
  color: var(--muted);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--text);
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 20px;
}

.steps li {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  transition: border-color var(--ease), transform var(--ease);
}

.steps li:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.step-no {
  display: block;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 6px;
}

.risk-line {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.risk-line a,
.prose a {
  color: var(--gold);
}

.licence-claim {
  margin: 0 0 20px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--gold);
  border-radius: 12px;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.2;
}

.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 56px 0 28px;
}

.foot-title {
  font-size: 18px;
}

.foot-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.foot-links a {
  color: var(--muted);
  text-decoration: none;
}

.foot-links a:hover {
  color: var(--text);
}

.fine {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.rise {
  animation: rise 280ms ease-out both;
}

.d1 { animation-delay: 40ms; }
.d2 { animation-delay: 80ms; }
.d3 { animation-delay: 120ms; }
.d4 { animation-delay: 160ms; }

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .nav-left,
  .nav-right {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-panel {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: var(--bg);
    padding: 24px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 22px;
  }

  .nav-panel.is-open {
    display: flex;
  }

  .nav-panel a {
    color: var(--text);
    font-size: 27px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
  }

  .nav-panel a.is-current::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--gold);
    vertical-align: middle;
  }

  .nav-close {
    display: inline-flex;
    position: absolute;
    top: 16px;
    right: 16px;
  }

  h1 { font-size: 32px; }

  .licence-claim,
  h2 { font-size: 22px; }
}

@media (max-width: 800px) {
  .span-3,
  .span-4,
  .span-5,
  .span-6,
  .span-7,
  .span-8 {
    grid-column: span 12;
  }

  .card-flip {
    flex-direction: row;
  }

  .facts div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

@media (max-width: 480px) {
  .mark {
    width: 64px;
    height: 64px;
  }

  .btn,
  .btn-alt {
    width: 100%;
  }
}

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