/* Inter, self-hosted. Serving the font from our own origin instead of
   fonts.gstatic.com means no visitor IP reaches a third party before consent,
   which is what PECR and the UK GDPR are about on this site — and it removes a
   DNS lookup, a TLS handshake and a render-blocking round trip from the LCP
   path. One variable file per subset covers weights 400-700. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/inter-latin-ext.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: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/inter-latin.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;
}

/* ==========================================================================
   Warden VPN — landing styles
   Palette is taken verbatim from the app theme (warden_colors.dart).
   Dark only: no light theme is defined for this product.
   ========================================================================== */

:root {
  /* Surfaces */
  --bg:              #090811;
  --bg-secondary:    #0F0D19;
  --surface:         #14111F;
  --surface-elevated:#1B1729;
  --surface-highlight:#241E35;

  /* Brand */
  --purple:          #8B5CF6;
  --purple-bright:   #A970FF;
  --violet:          #6D3FD1;
  --lavender:        #CDB7FF;

  /* Text & borders */
  --text-primary:    #F7F4FC;
  --text-secondary:  #AAA4B7;
  --text-muted:      #706A7C;
  --border:          #2A2537;
  --border-light:    #383047;

  /* Status */
  --success:         #9BE6B4;
  --warning:         #FFC66D;
  --error:           #FF647C;
  --info:            #9B8CFF;

  --radius:      12px;
  --radius-sm:   10px;
  --radius-lg:   14px;

  --shell:       1140px;
  --gutter:      20px;

  --header-h:    64px;

  --ease:        cubic-bezier(.22, .61, .36, 1);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   Reset / base
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}

p { margin: 0; }

a { color: var(--purple-bright); text-decoration: none; }
a:hover { text-decoration: underline; }

/* A link sitting inside a block of text must not rely on colour alone to be
   recognisable (WCAG 1.4.1). Standalone links — nav items, buttons, store
   badges, the footer link lists — are unambiguous by position, so only inline
   ones are underlined. */
.prose p a,
.prose li a,
.prose address a,
.prose td a,
.section__lead a,
.company a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
.prose p a:hover,
.prose li a:hover,
.prose address a:hover,
.section__lead a:hover,
.company a:hover { text-decoration-thickness: 2px; }

ul { margin: 0; padding: 0; list-style: none; }

button { font: inherit; color: inherit; }

/* Visible focus everywhere — WCAG 2.1 AA */
:focus-visible {
  outline: 2px solid var(--purple-bright);
  outline-offset: 3px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: 8px; left: 8px;
  z-index: 200;
  transform: translateY(-160%);
  padding: 10px 18px;
  background: var(--violet);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

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

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: 88px; }
.section--alt { background: var(--bg-secondary); }
.section--tight { padding-block: 64px; }

.section__head { max-width: 62ch; margin-bottom: 44px; }
.section__head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: block;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lavender);
}

h2 { font-size: clamp(28px, 4.2vw, 40px); }

.section__lead {
  margin-top: 18px;
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 64ch;
}

/* --------------------------------------------------------------------------
   Buttons & store badges
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: background .18s var(--ease), border-color .18s var(--ease),
              transform .18s var(--ease);
}
.btn:hover { text-decoration: none; }

/* Flat #6D3FD1: 6.40:1 against white, so it passes AA at any size. The
   gradient reaches #8B5CF6 at its light end (4.23:1), which only clears AA as
   large bold text — so it is reserved for the connect button alone, per the
   one-gradient rule. */
.btn--primary {
  background: var(--violet);
  color: #fff;
}
.btn--primary:hover { background: #7A4AD9; }
.btn--primary:active { background: #5F35BC; transform: translateY(1px); }

.btn--ghost {
  background: transparent;
  border-color: var(--border-light);
  color: var(--text-primary);
  font-size: 16px;
  padding: 11px 20px;
}
.btn--ghost:hover { background: var(--surface-elevated); border-color: var(--purple); }

.btn--sm { padding: 9px 18px; font-size: 15px; font-weight: 600; }

/* Store badges */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 10px 18px 10px 15px;
  min-height: 56px;
  background: var(--surface-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  color: var(--text-primary);
  text-decoration: none;
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.store-badge:hover {
  background: var(--surface-highlight);
  border-color: var(--purple);
  text-decoration: none;
}
.store-badge svg { flex: none; }
.store-badge__text { display: flex; flex-direction: column; line-height: 1.15; }
.store-badge__small {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}
.store-badge__big { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }

/* Pre-launch state: same badge shell, but it is a <p>, not a link — there is
   nothing to link to yet, so it must not offer hover or focus affordances. */
.store-badge--soon { cursor: default; }
.store-badge--soon:hover {
  background: var(--surface-elevated);
  border-color: var(--border-light);
}
.store-badge--soon svg { opacity: .8; }

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

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .25s var(--ease), border-color .25s var(--ease),
              backdrop-filter .25s var(--ease);
}
.header.is-scrolled {
  background: rgba(9, 8, 17, .82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo svg { flex: none; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav__link {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color .15s var(--ease);
}
.nav__link:hover { color: var(--text-primary); text-decoration: none; }
.nav__link[aria-current="page"] { color: var(--text-primary); }

/* Spec: on mobile the header carries the logo and one Download button only. */
@media (max-width: 720px) {
  .nav { display: none; }
}

/* --------------------------------------------------------------------------
   02 — Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: 56px 88px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -220px; left: 50%;
  width: 900px; height: 640px;
  transform: translateX(-42%);
  background: radial-gradient(closest-side, rgba(139, 92, 246, .22), transparent 72%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 56px;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  padding: 6px 14px 6px 8px;
  background: var(--surface-highlight);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}
.hero__badge svg { flex: none; }

.hero h1 {
  font-size: clamp(34px, 6.4vw, 60px);
  letter-spacing: -0.025em;
}

.hero__sub {
  margin-top: 22px;
  font-size: clamp(17px, 2.1vw, 20px);
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 54ch;
}

.hero .stores { margin-top: 34px; }

.hero__note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--text-secondary);
}

/* Mascot */
.hero__mascot {
  position: absolute;
  right: -18px;
  bottom: -26px;
  width: 132px;
  z-index: 2;
  filter: drop-shadow(0 12px 28px rgba(9, 8, 17, .7));
}

/* Phone mockup */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone {
  position: relative;
  width: 288px;
  max-width: 100%;
  padding: 10px;
  background: linear-gradient(160deg, #2E2842 0%, #17131F 55%, #221D31 100%);
  border: 1px solid var(--border-light);
  border-radius: 42px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}
.phone::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 33px;
  border: 1px solid rgba(247, 244, 252, .06);
  pointer-events: none;
}
.phone img {
  width: 100%;
  border-radius: 32px;
  background: var(--bg);
}
.phone--sm { width: 208px; padding: 7px; border-radius: 32px; }
.phone--sm::after { inset: 7px; border-radius: 26px; }
.phone--sm img { border-radius: 25px; }

/* Glow under the connect button of the hero screenshot: purple, <= 40% alpha */
.hero__glow {
  position: absolute;
  left: 50%;
  top: 34%;
  width: 300px; height: 190px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(139, 92, 246, .38), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 44px; }
  .hero__mascot { width: 104px; right: 4px; bottom: -14px; }
}
@media (max-width: 480px) {
  .hero { padding-block: 32px 64px; }
  .hero h1 { font-size: 30px; }
  .hero__sub { font-size: 17px; margin-top: 16px; }
  .hero .stores { margin-top: 26px; }
  .phone { width: 246px; }
}

/* --------------------------------------------------------------------------
   03 — How it works
   -------------------------------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  padding: 28px 26px 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.card:hover { background: var(--surface-elevated); border-color: var(--border-light); }

.card__icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  margin-bottom: 20px;
  background: var(--surface-highlight);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--lavender);
}

.card__step {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.card h3 { font-size: 21px; margin-bottom: 12px; }
.card p { color: var(--text-secondary); font-size: 16px; }

.followup {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 24px 26px;
  background: var(--surface-highlight);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
}
.followup svg { flex: none; color: var(--lavender); margin-top: 2px; }
.followup p { color: var(--text-secondary); font-size: 16px; }
.followup strong { color: var(--text-primary); font-weight: 600; }

@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   04 — One button
   -------------------------------------------------------------------------- */

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.compare__col {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}
.compare__col--warden { border-color: var(--purple); background: var(--surface-elevated); }

.compare__label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.compare__col--warden .compare__label { color: var(--lavender); }

/* Fake "typical VPN" settings list — decorative, aria-hidden */
.fake-settings { display: flex; flex-direction: column; gap: 9px; flex: 1; }
.fake-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--text-secondary);
}
.fake-row span:first-child { color: var(--text-primary); }
.fake-row span:last-child { font-size: 13px; white-space: nowrap; }
.fake-row--wide { justify-content: flex-start; }

.compare__caption {
  margin-top: 20px;
  font-size: 15px;
  color: var(--text-secondary);
}

/* Live connect demo */
.demo {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: 30px 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.demo__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
}
.demo__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: background .25s var(--ease);
}
.demo[data-state="connecting"] .demo__dot { background: var(--warning); }
.demo[data-state="connected"] .demo__dot { background: var(--success); }
.demo[data-state="connected"] .demo__status { color: var(--success); }

.demo__btn-wrap { position: relative; display: grid; place-items: center; }
.demo__glow {
  position: absolute;
  width: 240px; height: 120px;
  border-radius: 999px;
  background: radial-gradient(closest-side, rgba(139, 92, 246, .40), transparent 70%);
  opacity: 0;
  transition: opacity .3s var(--ease);
  pointer-events: none;
}
.demo[data-state="connected"] .demo__glow { opacity: 1; }

.demo__btn {
  position: relative;
  width: 100%;
  max-width: 280px;
  padding: 16px 22px;
  border: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--purple) 0%, var(--violet) 100%);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s var(--ease), filter .18s var(--ease);
}
.demo__btn:hover { filter: brightness(1.08); }
.demo__btn:active { transform: translateY(1px); }
.demo[data-state="connected"] .demo__btn { background: var(--violet); }

.demo__meta {
  display: flex;
  justify-content: center;
  gap: 24px;
  min-height: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.demo[data-state="connected"] .demo__meta { opacity: 1; }
.demo__meta b { color: var(--text-primary); font-weight: 600; }

@media (max-width: 860px) { .compare { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   05 — Protocols & coverage
   -------------------------------------------------------------------------- */

.protocols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chip {
  padding: 9px 16px;
  background: var(--surface-highlight);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}

.coverage {
  padding: 30px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.coverage__figure {
  font-size: 46px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.05;
}
.coverage__label { margin-top: 6px; font-size: 16px; color: var(--text-secondary); }
.coverage__map { margin-top: 24px; width: 100%; height: auto; color: var(--purple); }
.coverage__hint { margin-top: 18px; font-size: 14px; color: var(--text-secondary); }

@media (max-width: 860px) { .protocols { grid-template-columns: 1fr; gap: 36px; } }

/* --------------------------------------------------------------------------
   06 — Privacy
   -------------------------------------------------------------------------- */

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.privacy-item {
  display: flex;
  gap: 14px;
  padding: 24px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.privacy-item svg { flex: none; color: var(--lavender); margin-top: 3px; }
.privacy-item h3 { font-size: 17px; margin-bottom: 7px; font-weight: 600; }
.privacy-item p { font-size: 15.5px; color: var(--text-secondary); }

.privacy-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 28px; font-weight: 500; }

@media (max-width: 760px) { .privacy-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   07 — Everything else
   -------------------------------------------------------------------------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.feature:hover { background: var(--surface-elevated); border-color: var(--border-light); }
.feature svg { color: var(--lavender); margin-bottom: 16px; }
.feature h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.feature p { font-size: 15px; color: var(--text-secondary); }

@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* Screenshot strip */
.shots {
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 52px;
}
.shots figure { margin: 0; text-align: center; }
.shots figcaption { margin-top: 14px; font-size: 14px; color: var(--text-secondary); }

/* --------------------------------------------------------------------------
   08 — Final CTA
   -------------------------------------------------------------------------- */

.final-cta {
  position: relative;
  padding: 68px 40px;
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(139, 92, 246, .26), transparent 62%),
    var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  text-align: center;
  overflow: hidden;
}
.final-cta h2 { font-size: clamp(26px, 4vw, 40px); }
.final-cta p { margin-top: 16px; color: var(--text-secondary); font-size: 18px; }
.final-cta .stores { justify-content: center; margin-top: 32px; }

@media (max-width: 560px) { .final-cta { padding: 44px 22px; } }

/* --------------------------------------------------------------------------
   09 — Footer
   -------------------------------------------------------------------------- */

.footer {
  padding-block: 56px 40px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--border);
}
.footer__tagline { margin-top: 16px; font-size: 15px; color: var(--text-secondary); max-width: 34ch; }

.footer h2 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.footer__list li + li { margin-top: 11px; }
.footer__list a, .footer__list button {
  background: none;
  border: 0;
  padding: 0;
  font-size: 15px;
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
  text-align: left;
  transition: color .15s var(--ease);
}
.footer__list a:hover, .footer__list button:hover { color: var(--text-primary); text-decoration: none; }

/* Company details — exact format required by the spec */
.company {
  margin: 0;
  font-size: 15px;
  font-style: normal;
  line-height: 1.7;
  color: var(--text-secondary);
}
.company a { color: var(--text-secondary); }
.company a:hover { color: var(--text-primary); }
.company strong { color: var(--text-primary); font-weight: 600; display: block; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  padding-top: 26px;
}
/* --text-muted (#706A7C) is 3.83:1 on --bg and 3.70:1 on --bg-secondary. WCAG
   counts text as "large" only from 24px, or 18.66px bold — a 19px regular
   copyright line is neither, so it uses --text-secondary (8.25:1) instead.
   --text-muted survives only on list markers, where the 3:1 non-text threshold
   applies. */
.copyright { font-size: 15px; color: var(--text-secondary); }

@media (max-width: 780px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 460px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Legal / content pages
   -------------------------------------------------------------------------- */

.doc { padding-block: 56px 88px; }

.doc__header { padding-bottom: 30px; border-bottom: 1px solid var(--border); }
.doc__header h1 { font-size: clamp(30px, 5vw, 44px); }
.doc__updated { margin-top: 14px; font-size: 15px; color: var(--text-secondary); }

.doc__layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 56px;
  margin-top: 40px;
  align-items: start;
}
.doc__layout > * { min-width: 0; }

.toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.toc h2 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 14px;
}
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin-bottom: 9px; }
.toc a { font-size: 14.5px; color: var(--text-secondary); line-height: 1.45; }
.toc a:hover { color: var(--purple-bright); }
.toc li::marker { color: var(--text-muted); font-size: 13px; }

/* 65–75 characters, 16px minimum */
.prose { max-width: 72ch; font-size: 17px; line-height: 1.7; color: var(--text-secondary); }
.prose h2 {
  margin-top: 48px;
  margin-bottom: 16px;
  font-size: 25px;
  color: var(--text-primary);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  margin-top: 30px;
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}
.prose p { margin-bottom: 18px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; list-style: revert; }
.prose li { margin-bottom: 9px; }
.prose li::marker { color: var(--text-muted); }
.prose strong { color: var(--text-primary); font-weight: 600; }
.prose address {
  font-style: normal;
  padding: 18px 22px;
  margin-bottom: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  line-height: 1.7;
}
.prose table {
  width: 100%;
  margin-bottom: 22px;
  border-collapse: collapse;
  font-size: 15.5px;
}
.prose th, .prose td {
  padding: 12px 14px;
  text-align: left;
  border: 1px solid var(--border);
  vertical-align: top;
}
.prose th { background: var(--surface); color: var(--text-primary); font-weight: 600; }
.table-scroll { max-width: 100%; overflow-x: auto; }

@media (max-width: 900px) {
  .doc__layout { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .toc { position: static; }
}

/* Support page */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 40px;
}
.contact-card {
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.contact-card svg { color: var(--lavender); margin-bottom: 16px; }
.contact-card h3 { font-size: 18px; margin-top: 0; margin-bottom: 8px; color: var(--text-primary); }
.contact-card p { font-size: 15px; color: var(--text-secondary); margin-bottom: 14px; }

/* 404 */
.notfound { padding-block: 100px 120px; text-align: center; }
/* Solid, not a gradient: the one permitted gradient belongs to the connect
   button. #A970FF is 6.12:1 on the page background. */
.notfound__code {
  font-size: clamp(64px, 14vw, 120px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--purple-bright);
}
.notfound h1 { margin-top: 18px; font-size: clamp(26px, 4vw, 36px); }
.notfound p { margin: 16px auto 0; max-width: 46ch; color: var(--text-secondary); font-size: 17px; }
.notfound .btn { margin-top: 32px; }
.notfound__mascot { width: 120px; margin: 0 auto 28px; }

/* --------------------------------------------------------------------------
   Cookie banner
   -------------------------------------------------------------------------- */

.cookie {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 150;
  max-width: 720px;
  margin-inline: auto;
  padding: 22px 24px;
  background: var(--surface-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .6);
}
.cookie[hidden] { display: none; }
.cookie p { font-size: 15px; color: var(--text-secondary); }
.cookie h2 { font-size: 17px; margin-bottom: 8px; color: var(--text-primary); }
.cookie__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

/* Accept and Reject are deliberately identical in size, weight and colour.
   Under PECR / UK GDPR refusing must be exactly as easy as consenting, so
   neither button is styled to draw the eye. */
.btn--consent {
  flex: 1 1 150px;
  padding: 13px 20px;
  font-size: 16px;
  font-weight: 600;
  background: var(--violet);
  border: 1px solid var(--violet);
  color: #fff;
}
.btn--consent:hover { background: #7A4AD9; border-color: #7A4AD9; }
.btn--consent:active { transform: translateY(1px); }

.cookie__more {
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 500;
}

/* On a 360x640 screen the banner must not bury the hero call to action, so it
   shrinks to a compact bar with the two choices side by side. */
@media (max-width: 480px) {
  .cookie { padding: 16px 16px 18px; left: 10px; right: 10px; bottom: 10px; }
  .cookie h2 { font-size: 15px; margin-bottom: 6px; }
  .cookie p { font-size: 14px; line-height: 1.45; }
  .cookie__actions { gap: 10px; margin-top: 14px; }
  .btn--consent { flex: 1 1 120px; padding: 11px 12px; font-size: 15px; }
  .cookie__more { flex: 1 0 100%; font-size: 14px; }
}

/* --------------------------------------------------------------------------
   Scroll reveal — 300ms max, no parallax
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Print — legal pages must save to PDF cleanly
   -------------------------------------------------------------------------- */

@media print {
  :root { --header-h: 0px; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .header, .footer, .cookie, .toc, .skip-link, .doc__nav { display: none !important; }
  .doc__layout { display: block; }
  .prose { max-width: none; color: #000; font-size: 11pt; }
  .prose h2, .prose h3, .prose strong { color: #000; }
  .prose li::marker { color: #000; }
  .doc__updated { color: #333; }
  .prose h2 { page-break-after: avoid; break-after: avoid; }
  .prose address { background: none; border: 1px solid #999; }
  .prose th { background: #eee; color: #000; }
  .prose th, .prose td { border-color: #999; }
  a { color: #000; text-decoration: underline; }
  .reveal { opacity: 1; transform: none; }
}
