﻿/* ==========================================================================
   GaurdWallet landing — single stylesheet, no framework.
   Tokens mirror packages/ui/src/theme.ts (--gw-* custom properties).
   ========================================================================== */

/* ---- Self-hosted fonts (no CDN) ---------------------------------------- */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('assets/fonts/space-grotesk-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;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('assets/fonts/space-grotesk-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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-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;
}

/* ---- Design tokens ------------------------------------------------------ */
:root {
  --gw-bg: #0c0a08;
  --gw-surface: #171310;
  --gw-surface-2: #242018;
  --gw-border: #2e2820;
  --gw-border-strong: #423a2d;
  --gw-accent: #c4943a;
  --gw-accent-hover: #d9ae55;
  --gw-accent-active: #a97e2f;
  --gw-accent-muted: rgba(196, 148, 58, 0.14);
  --gw-on-accent: #14100a;
  --gw-text: #ddd8ce;
  --gw-text-2: #9a9188;
  --gw-text-3: #8a8178;
  --gw-success: #63b57f;
  --gw-font-ui: 'Space Grotesk', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --gw-font-mono: 'JetBrains Mono', 'Cascadia Mono', ui-monospace, Consolas, monospace;
  --gw-radius-md: 8px;
  --gw-radius-lg: 10px;
  --gw-radius-xl: 14px;
  --gw-shadow-md: 0 6px 16px rgba(0, 0, 0, 0.45);
  --gw-shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.55);
  --gw-glow: 0 0 0 1px rgba(196, 148, 58, 0.28), 0 4px 20px rgba(196, 148, 58, 0.22);
  --gw-focus-ring: 0 0 0 3px rgba(196, 148, 58, 0.35);
  --gw-transition: 180ms cubic-bezier(0.4, 0, 0.2, 1);
  --gw-header-h: 64px;
  /* Fixed dark frame for the illustration renders — intentionally not
     overridden by the light theme below, since the artwork itself has a
     dark background and needs a matching card in either theme. */
  --gw-visual-frame-bg: #171310;
  --gw-visual-frame-border: #2e2820;
  color-scheme: dark;
}

[data-theme='light'] {
  --gw-bg: #f6f2ea;
  --gw-surface: #fdfbf7;
  --gw-surface-2: #ffffff;
  --gw-border: #e3dccd;
  --gw-border-strong: #cfc5ae;
  --gw-accent: #a87c2b;
  --gw-accent-hover: #c4943a;
  --gw-accent-active: #8f6a25;
  --gw-accent-muted: rgba(168, 124, 43, 0.12);
  --gw-on-accent: #fffdf8;
  --gw-text: #2a251c;
  --gw-text-2: #6d6557;
  --gw-text-3: #746c5c;
  --gw-success: #3d8f63;
  --gw-shadow-md: 0 6px 16px rgba(90, 75, 45, 0.14);
  --gw-shadow-lg: 0 16px 40px rgba(90, 75, 45, 0.18);
  --gw-glow: 0 0 0 1px rgba(168, 124, 43, 0.25), 0 4px 20px rgba(168, 124, 43, 0.18);
  color-scheme: light;
}

/* System preference applies until the visitor picks a theme explicitly. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --gw-bg: #f6f2ea;
    --gw-surface: #fdfbf7;
    --gw-surface-2: #ffffff;
    --gw-border: #e3dccd;
    --gw-border-strong: #cfc5ae;
    --gw-accent: #a87c2b;
    --gw-accent-hover: #c4943a;
    --gw-accent-active: #8f6a25;
    --gw-accent-muted: rgba(168, 124, 43, 0.12);
    --gw-on-accent: #fffdf8;
    --gw-text: #2a251c;
    --gw-text-2: #6d6557;
    --gw-text-3: #746c5c;
    --gw-success: #3d8f63;
    --gw-shadow-md: 0 6px 16px rgba(90, 75, 45, 0.14);
    --gw-shadow-lg: 0 16px 40px rgba(90, 75, 45, 0.18);
    --gw-glow: 0 0 0 1px rgba(168, 124, 43, 0.25), 0 4px 20px rgba(168, 124, 43, 0.18);
    color-scheme: light;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--gw-header-h) + 16px);
}

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

body {
  margin: 0;
  background: var(--gw-bg);
  color: var(--gw-text);
  font-family: var(--gw-font-ui);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--gw-accent);
  text-decoration: none;
  transition: color var(--gw-transition);
}

a:hover {
  color: var(--gw-accent-hover);
}

:focus-visible {
  outline: none;
  box-shadow: var(--gw-focus-ring);
  border-radius: 4px;
}

h1,
h2,
h3 {
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  font-weight: 600;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.55rem, 3.4vw, 2.2rem);
}

h3 {
  font-size: 1.1rem;
}

p {
  margin: 0 0 1em;
}

code {
  font-family: var(--gw-font-mono);
  font-size: 0.88em;
  background: var(--gw-accent-muted);
  border-radius: 4px;
  padding: 0.1em 0.35em;
}

.container {
  width: min(100% - 2.5rem, 1120px);
  margin-inline: auto;
}

/* ---- Skip link ---------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1300;
  background: var(--gw-accent);
  color: var(--gw-on-accent);
  padding: 0.6rem 1.1rem;
  border-radius: var(--gw-radius-md);
  font-weight: 600;
  transition: top var(--gw-transition);
}

.skip-link:focus-visible {
  top: 1rem;
  color: var(--gw-on-accent);
}

/* ---- Header ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--gw-header-h);
  border-bottom: 1px solid var(--gw-border);
  background: var(--gw-bg);
  background: color-mix(in srgb, var(--gw-bg) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gw-text);
  letter-spacing: 0.01em;
}

.brand:hover {
  color: var(--gw-text);
}

.brand .brand-gold {
  color: var(--gw-accent);
}

.site-nav {
  display: none;
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--gw-text-2);
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--gw-text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.site-nav + .header-actions {
  margin-left: 0;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--gw-border);
  border-radius: var(--gw-radius-md);
  background: transparent;
  color: var(--gw-text-2);
  cursor: pointer;
  transition: color var(--gw-transition), border-color var(--gw-transition);
}

.icon-btn:hover {
  color: var(--gw-text);
  border-color: var(--gw-border-strong);
}

/* Theme toggle shows the icon of the theme it switches TO. */
.theme-toggle .icon-sun {
  display: none;
}

[data-theme='light'] .theme-toggle .icon-moon {
  display: none;
}

[data-theme='light'] .theme-toggle .icon-sun {
  display: block;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .theme-toggle .icon-moon {
    display: none;
  }
  :root:not([data-theme]) .theme-toggle .icon-sun {
    display: block;
  }
}

/* Mobile nav drawer */
.nav-drawer {
  position: fixed;
  inset: var(--gw-header-h) 0 auto 0;
  z-index: 990;
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 1.25rem 1.4rem;
  background: var(--gw-bg);
  border-bottom: 1px solid var(--gw-border);
  box-shadow: var(--gw-shadow-lg);
}

.nav-drawer.open {
  display: flex;
}

.nav-drawer a {
  color: var(--gw-text);
  padding: 0.65rem 0.4rem;
  border-radius: var(--gw-radius-md);
  font-size: 1.05rem;
}

.nav-drawer a:hover {
  background: var(--gw-accent-muted);
}

@media (min-width: 900px) {
  .site-nav {
    display: block;
  }
  .nav-toggle,
  .nav-drawer {
    display: none !important;
  }
}

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.78rem 1.5rem;
  border-radius: var(--gw-radius-lg);
  border: 1px solid transparent;
  font-family: var(--gw-font-ui);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--gw-transition), color var(--gw-transition),
    border-color var(--gw-transition), box-shadow var(--gw-transition);
}

.btn-primary {
  background: var(--gw-accent);
  color: var(--gw-on-accent);
  box-shadow: var(--gw-glow);
}

.btn-primary:hover {
  background: var(--gw-accent-hover);
  color: var(--gw-on-accent);
}

.btn-secondary {
  border-color: var(--gw-border-strong);
  color: var(--gw-text);
  background: transparent;
}

.btn-secondary:hover {
  border-color: var(--gw-accent);
  color: var(--gw-accent-hover);
}

/* ---- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(3.4rem, 7vw, 6rem);
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -40% -20% auto;
  height: 130%;
  background:
    radial-gradient(46% 42% at 50% 30%, rgba(196, 148, 58, 0.16), transparent 70%),
    radial-gradient(30% 30% at 78% 12%, rgba(196, 148, 58, 0.08), transparent 70%);
  pointer-events: none;
}

.hero > .container {
  position: relative;
}

.hero-logo {
  margin: 0 auto 1.6rem;
  filter: drop-shadow(0 6px 26px rgba(196, 148, 58, 0.35));
}

.hero h1 {
  max-width: 21ch;
  margin-inline: auto;
}

.hero h1 .accent {
  color: var(--gw-accent);
}

.hero-sub {
  max-width: 56ch;
  margin: 1.1rem auto 0;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--gw-text-2);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2.2rem;
}

.hero-note {
  margin-top: 1.4rem;
  font-size: 0.9rem;
  color: var(--gw-text-3);
  font-family: var(--gw-font-mono);
}

/* Decorative shield illustration behind the hero copy — masked to a soft
   glow so it has no hard edges, and kept low-opacity so text contrast
   never suffers. Hidden on narrow widths where it would just add noise. */
.hero-visual {
  position: absolute;
  top: 44%;
  left: 50%;
  width: min(68vw, 660px);
  aspect-ratio: 1024 / 683;
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
  -webkit-mask-image: radial-gradient(ellipse 55% 58% at 50% 46%, #000 0%, transparent 76%);
  mask-image: radial-gradient(ellipse 55% 58% at 50% 46%, #000 0%, transparent 76%);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

[data-theme='light'] .hero-visual {
  opacity: 0.14;
}

@media (max-width: 720px) {
  .hero-visual {
    display: none;
  }
}

/* ---- 404 page ------------------------------------------------------------ */
.page-404 {
  min-height: 80vh;
  display: flex;
  align-items: center;
}

/* ---- Sections ----------------------------------------------------------- */
.section {
  padding: clamp(3.2rem, 7vw, 5.5rem) 0;
}

.section + .section {
  border-top: 1px solid var(--gw-border);
}

.section-head {
  max-width: 62ch;
  margin-bottom: clamp(1.8rem, 4vw, 3rem);
}

.section-head .kicker {
  display: block;
  font-family: var(--gw-font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gw-accent);
  margin-bottom: 0.7rem;
}

.section-head p {
  color: var(--gw-text-2);
  margin-bottom: 0;
}

/* ---- Networks strip ------------------------------------------------------ */
.networks {
  padding: clamp(2.2rem, 5vw, 3.4rem) 0;
  border-top: 1px solid var(--gw-border);
}

.networks-caption {
  text-align: center;
  font-family: var(--gw-font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gw-text-3);
  margin: 0 0 1.6rem;
}

.network-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 900px) {
  .network-grid {
    grid-template-columns: repeat(8, 1fr);
  }
}

.network-grid li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 0.4rem;
  border: 1px solid var(--gw-border);
  border-radius: var(--gw-radius-lg);
  background: var(--gw-surface);
  transition: border-color var(--gw-transition), transform var(--gw-transition);
}

.network-grid li:hover {
  border-color: var(--gw-border-strong);
  transform: translateY(-2px);
}

.network-grid svg {
  color: var(--gw-accent);
}

.network-grid span {
  font-size: 0.78rem;
  color: var(--gw-text-2);
  letter-spacing: 0.02em;
}

/* ---- Feature grid -------------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

@media (min-width: 680px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem 1.4rem;
  background: var(--gw-surface);
  border: 1px solid var(--gw-border);
  border-radius: var(--gw-radius-xl);
  transition: border-color var(--gw-transition), transform var(--gw-transition);
}

.feature-card:hover {
  border-color: var(--gw-border-strong);
  transform: translateY(-3px);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--gw-radius-lg);
  background: var(--gw-accent-muted);
  color: var(--gw-accent);
}

.feature-card h3 {
  margin: 0;
}

.feature-card p {
  margin: 0;
  color: var(--gw-text-2);
  font-size: 0.96rem;
}

/* ---- Steps ---------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 820px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.steps li {
  position: relative;
  counter-increment: step;
  padding: 1.6rem 1.4rem 1.5rem;
  background: var(--gw-surface);
  border: 1px solid var(--gw-border);
  border-radius: var(--gw-radius-xl);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--gw-font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gw-accent);
  margin-bottom: 0.8rem;
}

.steps h3 {
  margin-bottom: 0.4rem;
}

.steps p {
  margin: 0;
  color: var(--gw-text-2);
  font-size: 0.96rem;
}

/* ---- Security deep-dive --------------------------------------------------- */
.security-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.2rem;
}

@media (min-width: 900px) {
  .security-grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 3.5rem;
    align-items: start;
  }
}

.security-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.security-list h3 {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  margin-bottom: 0.3rem;
}

.security-list h3::before {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--gw-accent);
  transform: translateY(-1px);
}

.security-list p {
  margin: 0;
  color: var(--gw-text-2);
  font-size: 0.96rem;
}

/* Padlock illustration above the spec sheet — framed in a fixed dark card
   (see --gw-visual-frame-* tokens) so it reads as intentional artwork
   rather than a stray dark rectangle on the light theme. */
.security-visual-frame {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 0 auto 1.8rem;
  padding: 0.9rem;
  border-radius: var(--gw-radius-xl);
  overflow: hidden;
  background: var(--gw-visual-frame-bg);
  border: 1px solid var(--gw-visual-frame-border);
  box-shadow: var(--gw-shadow-lg);
}

.security-visual-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: calc(var(--gw-radius-xl) - 6px);
}

.security-panel {
  background: var(--gw-surface);
  border: 1px solid var(--gw-border);
  border-radius: var(--gw-radius-xl);
  padding: 1.6rem 1.5rem;
  font-family: var(--gw-font-mono);
  font-size: 0.86rem;
  line-height: 1.9;
  color: var(--gw-text-2);
  box-shadow: var(--gw-shadow-md);
}

.security-panel dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1.2rem;
  row-gap: 0.35rem;
}

.security-panel dt {
  color: var(--gw-text-3);
  white-space: nowrap;
}

.security-panel dd {
  margin: 0;
  color: var(--gw-text);
  overflow-wrap: anywhere;
}

.security-note {
  margin: 1.6rem 0 0;
  padding: 1rem 1.2rem;
  border: 1px solid var(--gw-border-strong);
  border-left: 3px solid var(--gw-accent);
  border-radius: var(--gw-radius-md);
  color: var(--gw-text-2);
  font-size: 0.93rem;
  background: var(--gw-accent-muted);
}

/* ---- Why us ---------------------------------------------------------------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

@media (min-width: 820px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.why-item {
  display: flex;
  gap: 1rem;
  padding: 1.3rem 1.4rem;
  border: 1px solid var(--gw-border);
  border-radius: var(--gw-radius-xl);
  background: var(--gw-surface);
}

.why-item svg {
  flex: none;
  color: var(--gw-success);
  margin-top: 0.2rem;
}

.why-item h3 {
  margin-bottom: 0.25rem;
}

.why-item p {
  margin: 0;
  color: var(--gw-text-2);
  font-size: 0.96rem;
}

/* ---- FAQ -------------------------------------------------------------------- */
.faq-list {
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-list details {
  border: 1px solid var(--gw-border);
  border-radius: var(--gw-radius-lg);
  background: var(--gw-surface);
  transition: border-color var(--gw-transition);
}

.faq-list details[open] {
  border-color: var(--gw-border-strong);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.3rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  list-style: none;
  border-radius: var(--gw-radius-lg);
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: '+';
  flex: none;
  font-family: var(--gw-font-mono);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--gw-accent);
  transition: transform var(--gw-transition);
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list .faq-answer {
  padding: 0 1.3rem 1.15rem;
  color: var(--gw-text-2);
  font-size: 0.97rem;
}

.faq-list .faq-answer p {
  margin: 0 0 0.6em;
}

.faq-list .faq-answer p:last-child {
  margin-bottom: 0;
}

/* ---- Bottom CTA ---------------------------------------------------------- */
.cta-final {
  text-align: center;
}

.cta-final .hero-cta {
  margin-top: 1.8rem;
}

/* ---- Consent banner -------------------------------------------------------- */
/* position: fixed — occupies no space in the flow, so it can never cause CLS. */
.consent-banner {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1200;
  width: min(400px, calc(100vw - 2.5rem));
  padding: 1.1rem 1.2rem 1.2rem;
  background: var(--gw-surface-2);
  border: 1px solid var(--gw-border-strong);
  border-radius: var(--gw-radius-xl);
  box-shadow: var(--gw-shadow-lg);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 220ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

.consent-banner[hidden] {
  display: none;
}

.consent-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.consent-text {
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--gw-text-2);
}

.consent-text a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent-actions {
  display: flex;
  gap: 0.6rem;
}

.consent-actions .btn {
  flex: 1;
  padding: 0.55rem 1rem;
  font-size: 0.92rem;
}

@media (max-width: 600px) {
  .consent-banner {
    right: auto;
    left: 50%;
    bottom: 1rem;
    transform: translate(-50%, 12px);
  }
  .consent-banner.is-visible {
    transform: translate(-50%, 0);
  }
}

/* ---- Footer ---------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--gw-border);
  padding: 2.8rem 0 2.2rem;
  color: var(--gw-text-2);
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.2rem;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-brand p {
  max-width: 34ch;
  margin: 0.8rem 0 0;
  color: var(--gw-text-3);
}

.site-footer h2 {
  font-size: 0.82rem;
  font-family: var(--gw-font-mono);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gw-text-3);
  margin-bottom: 0.9rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.site-footer ul a {
  color: var(--gw-text-2);
}

.site-footer ul a:hover {
  color: var(--gw-accent-hover);
}

.footer-bottom {
  border-top: 1px solid var(--gw-border);
  padding-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  justify-content: space-between;
  color: var(--gw-text-3);
  font-size: 0.85rem;
}

.footer-bottom p {
  margin: 0;
}
