/* =========================================================
   GameFrame — marketing site
   Design system: jet-black, off-white text, restrained green
   accent. Zen Dots for wordmark + major headings, Inter body.
   Mobile-first, GPU-cheap motion.
   (Fonts are loaded via <link> in index.html <head>.)
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Surfaces */
  --bg:            #0a0b0a;
  --surface:       #101210;
  --surface-2:     #141614;

  /* Neumorphic shadow pair */
  --shadow-dark:   #050605;
  --shadow-light:  #1a1d19;

  /* Text */
  --text:          #eef1ec;
  --text-muted:    #a6ada3;
  --text-dim:      #6f766c;

  /* Green accent */
  --accent:        #2fe27f;
  --accent-strong: #24c96e;
  --accent-dim:    rgba(47, 226, 127, 0.12);
  --accent-glow:   rgba(47, 226, 127, 0.28);

  /* Lines */
  --hairline:      rgba(255, 255, 255, 0.07);

  /* Metrics */
  --radius-sm: 12px;
  --radius:    16px;
  --radius-lg: 22px;
  --maxw:      1180px;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);

  --font:      'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --font-display: 'Zen Dots', 'Inter', system-ui, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }

/* Display font for wordmark + major headings */
.brand-word, .hero-title, .section-title, .cta-title {
  font-family: var(--font-display);
  font-weight: 400;              /* Zen Dots ships a single weight */
  letter-spacing: -0.01em;
  line-height: 1.22;
}
/* Balance headline line breaks: fits on one line when it can, otherwise
   splits into even lines with no lone orphan word (wraps freely on mobile). */
.hero-title, .section-title, .cta-title { text-wrap: balance; }
.hero-sub, .section-lead, .cta-sub { text-wrap: pretty; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.narrow { max-width: 760px; margin-inline: auto; }
.section { padding: 88px 0; position: relative; }
.section-head { margin-bottom: 56px; text-align: center; }

/* =========================================================
   ATMOSPHERE — restrained, on-brand background
   ========================================================= */
.atmosphere { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.atmo-gradient {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 70% at 50% -8%, rgba(20,26,20,0.9) 0%, rgba(10,11,10,0) 55%),
    linear-gradient(180deg, #0c0e0c 0%, #0a0b0a 40%);
}
/* Static base net — a dark, low-contrast square grid covering the page.
   CELL (40px) must match CELL in js/net.js so the glow aligns. */
.net-base {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right,  rgba(220, 240, 226, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(220, 240, 226, 0.045) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: 0 0;
  -webkit-mask-image: radial-gradient(125% 95% at 50% 18%, #000 55%, transparent 100%);
          mask-image: radial-gradient(125% 95% at 50% 18%, #000 55%, transparent 100%);
}
/* Interactive glow layer — painted by js/net.js, sits above the base grid */
.net-glow {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.atmo-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(135% 100% at 50% 25%, transparent 48%, rgba(0,0,0,0.55) 100%);
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 600; font-size: 15px;
  padding: 13px 24px; border-radius: 9px; border: 0; cursor: pointer;   /* soft rounded-rectangle corners */
  color: var(--text); text-align: center; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background .25s var(--ease), color .25s var(--ease);
  will-change: transform;
}
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-lg { padding: 16px 30px; font-size: 16px; }

.btn-primary {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #05230f; font-weight: 700;
  box-shadow: 0 8px 20px -8px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.32); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: var(--surface); color: var(--text);
  box-shadow: 5px 5px 12px var(--shadow-dark), -5px -5px 12px var(--shadow-light);
}
.btn-ghost:hover { transform: translateY(-2px); color: var(--accent); box-shadow: 7px 7px 16px var(--shadow-dark), -7px -7px 16px var(--shadow-light); }
.btn-ghost:active { box-shadow: inset 4px 4px 9px var(--shadow-dark), inset -4px -4px 9px var(--shadow-light); }

/* =========================================================
   HEADER — clean horizontal bar
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10, 11, 10, 0.6);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.site-header.scrolled { background: rgba(9, 10, 9, 0.85); border-bottom: 1px solid var(--hairline); }

.header-inner { display: flex; align-items: center; height: 72px; gap: 28px; }

.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; color: var(--text); }
.brand-mark { height: 30px; width: auto; flex-shrink: 0; display: block; }
.brand-word { font-size: 1.05rem; color: var(--text); text-transform: uppercase; letter-spacing: 0.03em; }

.nav { display: none; align-items: center; gap: 30px; margin-left: 22px; }
.nav a { color: var(--text-muted); font-size: 14.5px; font-weight: 500; transition: color .2s var(--ease); }
.nav a:hover { color: var(--text); }

.header-cta { display: none; align-items: center; gap: 18px; margin-left: auto; }
.link-login { color: var(--text-muted); font-size: 14.5px; font-weight: 500; transition: color .2s var(--ease); }
.link-login:hover { color: var(--accent); }

/* Hamburger — mobile only */
.menu-toggle {
  margin-left: auto; width: 44px; height: 44px; border-radius: 12px;
  background: var(--surface); border: 0; cursor: pointer;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  box-shadow: 4px 4px 10px var(--shadow-dark), -4px -4px 10px var(--shadow-light);
}
.menu-toggle span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 24px 22px;
  border-top: 1px solid var(--hairline);
  background: rgba(9,10,9,0.97); backdrop-filter: blur(14px);
}
.mobile-menu[hidden] { display: none; }          /* <-- the fix: attribute beats class */
.mobile-menu a { padding: 13px 4px; color: var(--text-muted); font-weight: 500; border-bottom: 1px solid var(--hairline); }
.mobile-menu a.btn { margin-top: 14px; border-bottom: 0; color: #05230f; }
.mobile-menu .link-login:last-of-type { }

/* =========================================================
   HERO
   ========================================================= */
.hero { padding: 76px 0 16px; }
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }

.eyebrow, .section-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); padding: 7px 15px; border-radius: 999px;
  background: var(--accent-dim); border: 1px solid rgba(47,226,127,0.2);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }

.hero-title {
  margin-top: 28px;
  font-size: clamp(2rem, 5.2vw, 3.5rem);
  max-width: 18ch;
}
.hero-title .accent { color: var(--accent); }
.hero-sub {
  margin-top: 26px; max-width: 58ch;
  font-size: clamp(1.02rem, 2.1vw, 1.2rem); color: var(--text-muted);
}
.hero-actions { margin-top: 38px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero-note { margin-top: 22px; font-size: 14.5px; color: var(--text-dim); }
.hero-note a { color: var(--accent); font-weight: 600; }
.hero-note a:hover { text-decoration: underline; }

/* =========================================================
   SECTION TYPOGRAPHY
   ========================================================= */
.section-title {
  margin-top: 18px; font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  text-align: center;
}
.section-lead {
  margin-top: 22px; font-size: clamp(1.02rem, 1.9vw, 1.16rem); color: var(--text-muted);
  text-align: center; max-width: 62ch; margin-inline: auto;
}

/* "What GameFrame is" — a centred statement block */
#what .narrow { text-align: center; }
#what .section-eyebrow { margin-bottom: 6px; }

/* =========================================================
   FOR PLAYERS / FOR SCOUTS
   ========================================================= */
.split { display: grid; grid-template-columns: 1fr; gap: 22px; }
.panel {
  padding: 36px 32px; border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 8px 8px 22px var(--shadow-dark), -8px -8px 22px var(--shadow-light);
  border: 1px solid var(--hairline);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.panel:hover { transform: translateY(-4px); border-color: rgba(47,226,127,0.22);
  box-shadow: 12px 12px 28px var(--shadow-dark), -12px -12px 28px var(--shadow-light); }
.panel-tag { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); padding: 6px 13px; border-radius: 999px; background: var(--accent-dim); }
.panel-title { margin-top: 20px; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.panel-lead { margin-top: 12px; color: var(--text-muted); font-size: 1rem; }
.panel-list { margin-top: 24px; display: flex; flex-direction: column; gap: 15px; }
.panel-list li { position: relative; padding-left: 30px; color: var(--text-muted); font-size: 0.98rem; }
.panel-list li strong { color: var(--text); font-weight: 600; }
.panel-list li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent-dim); box-shadow: inset 0 0 0 1.5px var(--accent); }
.panel-list li::after { content: ""; position: absolute; left: 5px; top: 10px; width: 6px; height: 3px;
  border-left: 1.6px solid var(--accent); border-bottom: 1.6px solid var(--accent); transform: rotate(-45deg); }
.panel .btn { margin-top: 30px; }

/* =========================================================
   FEATURE GRID
   ========================================================= */
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.card {
  padding: 32px 28px; border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 7px 7px 20px var(--shadow-dark), -7px -7px 20px var(--shadow-light);
  border: 1px solid var(--hairline);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card:hover { transform: translateY(-5px); border-color: rgba(47,226,127,0.24);
  box-shadow: 11px 13px 28px var(--shadow-dark), -9px -9px 24px var(--shadow-light); }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center; color: var(--accent);
  background: var(--surface-2);
  box-shadow: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light);
  transition: box-shadow .35s var(--ease);
}
.card:hover .card-icon { box-shadow: inset 2px 2px 5px var(--shadow-dark), inset -2px -2px 5px var(--shadow-light), 0 0 16px -4px var(--accent-glow); }
.card-icon svg { width: 26px; height: 26px; }
.card h3 { margin-top: 20px; font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; }
.card p { margin-top: 11px; color: var(--text-muted); font-size: 0.97rem; }

/* =========================================================
   TRUST GRID
   ========================================================= */
.trust-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.trust-item {
  padding: 28px 26px; border-radius: var(--radius);
  border: 1px solid var(--hairline);
  background: linear-gradient(180deg, var(--surface) 0%, rgba(10,11,10,0) 160%);
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.trust-item:hover { transform: translateY(-3px); border-color: rgba(47,226,127,0.2); }
.trust-num { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.1em; color: var(--accent); }
.trust-item h3 { margin-top: 10px; font-size: 1.18rem; font-weight: 700; letter-spacing: -0.02em; }
.trust-item p { margin-top: 10px; color: var(--text-muted); font-size: 0.95rem; }

/* =========================================================
   HOW-IT-WORKS JOURNEY  (players / clubs)
   Numbered vertical timeline with a running connector line.
   Single column on mobile; alternating left/right on desktop.
   Each step reuses .card for its body styling.
   ========================================================= */
.journey { position: relative; max-width: 900px; margin-inline: auto; }
/* running connector line down the timeline */
.journey::before {
  content: ""; position: absolute; top: 12px; bottom: 12px; left: 27px; width: 2px;
  background: linear-gradient(180deg,
    transparent 0%, var(--accent-dim) 6%, var(--hairline) 50%, var(--accent-dim) 94%, transparent 100%);
}
.journey-step {
  position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 22px;
  align-items: start; padding-bottom: 26px;
}
.journey-step:last-child { padding-bottom: 0; }
.journey-node {
  position: relative; z-index: 1;
  width: 56px; height: 56px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid rgba(47,226,127,0.4);
  box-shadow: 5px 5px 14px var(--shadow-dark), -5px -5px 14px var(--shadow-light), 0 0 0 6px var(--bg);
}
.journey-num { font-family: var(--font-display); font-size: 1.25rem; color: var(--accent); line-height: 1; }
/* Card body: icon tucked into the top-right corner, title + text centred.
   (.card supplies the padding / shadow / hover; we only re-place things.) */
.journey-card { position: relative; margin: 0; text-align: center; padding-top: 74px; }
.journey-card .card-icon {
  position: absolute; top: 24px; right: 24px;
  width: 44px; height: 44px;
}
.journey-card .card-icon svg { width: 22px; height: 22px; }
.journey-card h3 { margin-top: 0; }

@media (min-width: 760px) {
  .journey::before { left: 50%; transform: translateX(-1px); }
  .journey-step {
    grid-template-columns: 1fr 56px 1fr; align-items: center;
    column-gap: 30px; padding-bottom: 30px;
  }
  .journey-node { grid-column: 2; grid-row: 1; }
  .journey-step:nth-child(odd)  .journey-card { grid-column: 1; grid-row: 1; }
  .journey-step:nth-child(even) .journey-card { grid-column: 3; grid-row: 1; }
}

/* =========================================================
   FINAL CTA
   ========================================================= */
.cta-section { padding-top: 32px; }
.cta-card {
  position: relative; overflow: hidden; text-align: center;
  padding: 68px 32px; border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid rgba(47,226,127,0.18);
  box-shadow: 10px 10px 30px var(--shadow-dark), -10px -10px 30px var(--shadow-light);
}
.cta-card::before { content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(70% 120% at 50% -10%, var(--accent-glow) 0%, transparent 58%); opacity: 0.55; }
.cta-card > * { position: relative; z-index: 1; }
.cta-title { font-size: clamp(1.5rem, 3.6vw, 2.3rem); max-width: 22ch; margin-inline: auto; }
.cta-sub { margin-top: 20px; color: var(--text-muted); font-size: 1.06rem; max-width: 52ch; margin-inline: auto; }
.cta-actions { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { border-top: 1px solid var(--hairline); background: rgba(8, 9, 8, 0.6); padding-top: 60px; margin-top: 44px; }
.footer-inner { display: grid; grid-template-columns: 1fr; gap: 40px; padding-bottom: 44px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { color: var(--text-dim); font-size: 0.95rem; max-width: 34ch; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-col h4 { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 14px; font-weight: 700; }
.footer-col a { display: block; color: var(--text-muted); font-size: 0.95rem; padding: 6px 0; transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-direction: column; gap: 10px; padding: 24px 24px; border-top: 1px solid var(--hairline); color: var(--text-dim); font-size: 0.88rem; }
.footer-tag { color: var(--accent); font-weight: 600; }

/* =========================================================
   3D LOGO CENTREPIECE (Three.js — see js/logo3d.js)
   A WebGL canvas renders solid, chunky 3D logo pieces that
   scatter, assemble, then rotate. The soft green glow behind
   is CSS. A fallback <img> shows until WebGL is ready, and
   remains if WebGL/JS is unavailable.
   ========================================================= */
/* Pulled up so the canvas's transparent top overlaps the hero's lower
   whitespace — closes the gap without crowding the title/CTAs. The canvas
   is pointer-events:none, so the hero's Log in link stays clickable. */
.logo-centre { padding: 0 0 clamp(16px, 3vw, 48px); margin-top: clamp(-120px, -8vw, -36px); text-align: center; }
.logo-stage {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
}
/* Soft green glow — sits behind, pulses on its own rhythm (opacity+scale only) */
.logo-glow {
  position: absolute; top: 50%; left: 50%;
  width: clamp(360px, 60vw, 660px); aspect-ratio: 1;
  transform: translate(-50%, -50%) translateY(-6px);
  background: radial-gradient(circle at 50% 45%, var(--accent-glow) 0%, transparent 62%);
  filter: blur(34px); opacity: 0.5; pointer-events: none;
  animation: glowPulse 4.6s ease-in-out infinite;
}
/* On scroll-in: bloom the glow once, then hand off to the continuous pulse */
.logo-centre.is-focused .logo-glow {
  animation: glowBloom 1.1s var(--ease) both, glowPulse 4.6s ease-in-out 1.1s infinite;
}
/* WebGL canvas container — large, dominant hero visual.
   The assembled mark is ~square, so a square canvas frames it snugly
   (no tall empty strips top/bottom) while filling most of the width. */
.logo3d {
  position: relative;
  width: min(94vw, 820px);
  aspect-ratio: 1 / 1;
  margin-inline: auto;
}
.logo3d canvas { width: 100%; height: 100%; display: block; pointer-events: none; }
/* Static fallback: the flat logo, centred. Visible by default so no-JS
   browsers still get a logo. When JS is present we assume the 3D will load and
   keep it hidden so it never flashes — logo3d.js reveals it via .show-fallback
   only if WebGL is missing or the 3D fails / times out. Absolutely positioned,
   so toggling it never shifts layout. */
.logo3d-fallback {
  position: absolute; inset: 0; margin: auto;
  width: 62%; height: auto;
  opacity: 1; transition: opacity .5s var(--ease);
  pointer-events: none;
}
html.js .logo3d-fallback { opacity: 0; }
html.js .logo3d.show-fallback .logo3d-fallback { opacity: 1; }
@keyframes glowBloom {
  0%   { opacity: 0;    transform: translate(-50%, -50%) translateY(-6px) scale(.5); }
  55%  { opacity: 0.8;  transform: translate(-50%, -50%) translateY(-6px) scale(1.2); }
  100% { opacity: 0.4;  transform: translate(-50%, -50%) translateY(-6px) scale(1); }
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) translateY(-6px) scale(1); }
  50%      { opacity: 0.7; transform: translate(-50%, -50%) translateY(-6px) scale(1.12); }
}

/* =========================================================
   PRICING PAGE
   ========================================================= */
.pricing-intro { padding-bottom: 24px; text-align: center; }
.pricing-plans { padding-top: 28px; }

.plans { display: grid; grid-template-columns: 1fr; gap: 22px; max-width: 860px; margin-inline: auto; }
.plan-wrap { display: flex; }        /* reveal lives here, so .plan keeps its transform */

.plan {
  position: relative; flex: 1; width: 100%;
  display: flex; flex-direction: column;
  padding: 34px 30px; border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--hairline);
  box-shadow: 8px 8px 22px var(--shadow-dark), -8px -8px 22px var(--shadow-light);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.plan:hover { transform: translateY(-4px); border-color: rgba(47,226,127,0.22); }

/* Recommended plan — emphasised */
.plan-popular {
  border-color: rgba(47,226,127,0.4);
  box-shadow: 10px 10px 30px var(--shadow-dark), -10px -10px 30px var(--shadow-light),
              0 0 0 1px rgba(47,226,127,0.25), 0 18px 50px -22px var(--accent-glow);
}
.plan-popular::before {
  content: ""; position: absolute; inset: 0; z-index: 0; border-radius: var(--radius-lg);
  background: radial-gradient(120% 80% at 50% 0%, var(--accent-dim) 0%, transparent 55%);
  pointer-events: none;
}
.plan-popular > * { position: relative; z-index: 1; }
@media (min-width: 720px) { .plan-popular { transform: scale(1.035); } .plan-popular:hover { transform: scale(1.035) translateY(-4px); } }

.plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  z-index: 2;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: #05230f; padding: 7px 16px; border-radius: 999px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-strong) 100%);
  box-shadow: 0 8px 20px -8px var(--accent-glow);
}

.plan-head { padding-bottom: 22px; border-bottom: 1px solid var(--hairline); }
.plan-name {
  font-family: var(--font-display); font-size: 1.05rem;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent);
}
.plan-tagline { margin-top: 12px; font-size: 1.15rem; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
.plan-note { margin-top: 14px; color: var(--text-dim); font-size: 0.95rem; }
.plan-price { margin-top: 18px; display: flex; align-items: baseline; gap: 6px; }
.plan-amount { font-family: var(--font-display); font-size: 2.6rem; color: var(--text); line-height: 1; }
.plan-per { font-size: 0.95rem; color: var(--text-dim); }

.plan-includes { margin-top: 22px; font-size: 0.9rem; font-weight: 600; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.06em; }

.plan-list { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; flex-grow: 1; }
.plan-list li { position: relative; padding-left: 30px; color: var(--text-muted); font-size: 0.98rem; }
.plan-list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent-dim); box-shadow: inset 0 0 0 1.5px var(--accent); }
.plan-list li::after { content: ""; position: absolute; left: 5px; top: 8px; width: 6px; height: 3px;
  border-left: 1.6px solid var(--accent); border-bottom: 1.6px solid var(--accent); transform: rotate(-45deg); }
.plan-cta { margin-top: 30px; width: 100%; }

/* Scouts & clubs free note */
.free-note {
  max-width: 860px; margin: 34px auto 0;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  padding: 26px 30px; border-radius: var(--radius-lg);
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  box-shadow: inset 4px 4px 12px var(--shadow-dark), inset -4px -4px 12px var(--shadow-light);
}
.free-note-icon {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center; color: var(--accent);
  background: var(--surface);
  box-shadow: 4px 4px 10px var(--shadow-dark), -4px -4px 10px var(--shadow-light);
}
.free-note-icon svg { width: 24px; height: 24px; }
.free-note-text { flex: 1 1 260px; }
.free-note-text h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
.free-note-text p { margin-top: 6px; color: var(--text-muted); font-size: 0.96rem; }
.free-note .plan-cta { width: auto; margin-top: 0; }

.pricing-fineprint { margin: 26px auto 0; text-align: center; color: var(--text-dim); font-size: 0.86rem; }

@media (min-width: 720px) {
  .plans { grid-template-columns: 1fr 1fr; align-items: stretch; gap: 26px; }
}

/* =========================================================
   CONTACT PAGE
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 24px; max-width: 980px; margin-inline: auto; }
@media (min-width: 820px) { .contact-grid { grid-template-columns: 1.3fr 0.9fr; align-items: start; } }

.contact-form {
  display: flex; flex-direction: column; gap: 18px;
  padding: 30px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--hairline);
  box-shadow: 8px 8px 22px var(--shadow-dark), -8px -8px 22px var(--shadow-light);
}
.form-row { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 520px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label { font-size: 13px; font-weight: 600; color: var(--text-muted); letter-spacing: 0.02em; }
.form-field input, .form-field textarea {
  font-family: var(--font); font-size: 15px; color: var(--text); width: 100%;
  background: var(--surface-2); border: 1px solid var(--hairline); border-radius: 10px;
  padding: 13px 14px;
  box-shadow: inset 3px 3px 8px var(--shadow-dark), inset -3px -3px 8px var(--shadow-light);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: rgba(47,226,127,0.5);
  box-shadow: inset 2px 2px 6px var(--shadow-dark), inset -2px -2px 6px var(--shadow-light), 0 0 0 3px var(--accent-dim);
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--text-dim); }
.contact-form .btn { align-self: flex-start; margin-top: 4px; }
.form-status { font-size: 0.92rem; color: var(--text-muted); min-height: 1.2em; margin: 0; }
.form-status.is-ok { color: var(--accent); }
.form-status.is-error { color: #ff9a9a; }
.form-status a { color: var(--accent); }

.contact-info {
  padding: 30px; border-radius: var(--radius-lg);
  background: var(--surface-2); border: 1px solid var(--hairline);
  box-shadow: inset 4px 4px 12px var(--shadow-dark), inset -4px -4px 12px var(--shadow-light);
}
.contact-info h3 { font-size: 1.15rem; font-weight: 700; }
.contact-info > p { margin-top: 8px; color: var(--text-muted); font-size: 0.96rem; }
.contact-email { display: inline-block; margin-top: 10px; font-weight: 700; color: var(--accent); font-size: 1.05rem; word-break: break-word; }
.contact-email:hover { text-decoration: underline; }
.contact-block { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--hairline); }
.contact-block h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); }
.contact-block p { margin-top: 5px; color: var(--text-muted); font-size: 0.94rem; }

/* =========================================================
   LEGAL PAGE
   ========================================================= */
.legal-banner {
  max-width: 820px; margin: 0 auto 26px; padding: 16px 20px; border-radius: var(--radius);
  background: var(--accent-dim); border: 1px solid rgba(47,226,127,0.32);
  color: var(--text); font-size: 0.95rem; line-height: 1.6;
}
.legal-banner strong { color: var(--accent); }
.legal-toc { max-width: 820px; margin: 0 auto 40px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.legal-toc a {
  font-size: 0.9rem; font-weight: 600; color: var(--text-muted);
  padding: 9px 16px; border-radius: 10px; background: var(--surface);
  box-shadow: 4px 4px 10px var(--shadow-dark), -4px -4px 10px var(--shadow-light);
  transition: color .2s var(--ease);
}
.legal-toc a:hover { color: var(--accent); }
.legal-body { max-width: 820px; margin-inline: auto; }
.legal-section { padding: 34px 0; border-top: 1px solid var(--hairline); scroll-margin-top: 92px; }
.legal-section h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.35rem, 3vw, 1.9rem); letter-spacing: -0.01em; }
.legal-meta { margin-top: 10px; color: var(--text-dim); font-size: 0.86rem; }
.legal-section h3 { margin-top: 26px; font-size: 1.04rem; font-weight: 700; color: var(--text); }
.legal-section p { margin-top: 8px; color: var(--text-muted); font-size: 0.97rem; }
.legal-section a { color: var(--accent); }

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .40s; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (min-width: 680px) {
  .split { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1.4fr 2fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}
@media (min-width: 940px) {
  .nav { display: flex; }
  .header-cta { display: flex; }
  .menu-toggle { display: none; }
  .mobile-menu { display: none !important; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 112px 0; }
  .hero { padding: 104px 0 24px; }
}
@media (min-width: 1080px) {
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .net-glow { display: none; }   /* JS also bails out under reduced-motion */
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  /* Logo: js/logo3d.js renders one static assembled frame; kill the glow pulse */
  .logo-glow { animation: none !important; }
  .btn, .card, .panel, .trust-item, .brand-mark { transition: none !important; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}
