/*
Theme Name: Gecko Edge v4
Theme URI: https://geckoedge.ai
Author: Daniel
Author URI: https://geckoedge.ai
Description: Matchday Cinema — a scroll-driven, model-first theme for Gecko Edge. Cinematic dark homepage (tactical film hero, model pipeline, product demo, fixture rail, live in-play card) with every section editable from the Customizer. Ships the blog, tool-page and custom-page templates from v3, restyled for the dark palette.
Version: 4.0.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gecko-edge
Tags: custom-logo, custom-menu, featured-images, translation-ready, full-width-template, blog
*/

/* ============================================================
   1. TOKENS
   ============================================================ */
:root {
  /* brand */
  --emerald: #3dbf74;
  --emerald-d: #2fa066;
  --emerald-dd: #26935a;
  --steel: #708090;
  --purple: #7a40eb;
  --amber: #fcb900;
  --red: #cf2e2e;
  --live: #ff4d4d;

  /* light surfaces (product screens, prose cards) */
  --charcoal: #2b2b2b;
  --surface: #f4f4f4;
  --border: #e3e3e3;

  /* pitch (dark shell) */
  --pitch: #06120a;
  --pitch2: #0a1d12;
  --pitch3: #04140b;
  --ink: #040c08;
  --stripe-a: #1c5537;
  --stripe-b: #27754b;

  /* ink on dark */
  --t1: #ffffff;
  --t2: rgba(255, 255, 255, 0.72);
  --t3: rgba(255, 255, 255, 0.5);
  --t4: rgba(255, 255, 255, 0.36);
  --line: rgba(255, 255, 255, 0.13);
  --line-soft: rgba(255, 255, 255, 0.08);
  --glass: rgba(255, 255, 255, 0.05);

  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --nav-h: 74px;
  --maxw: 1440px;
}

/* ============================================================
   2. BASE
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--pitch);
  color: var(--t1);
  overflow-x: hidden;
  line-height: 1.6;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--emerald); color: #fff; }

.tag { font-weight: 600; font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; }
.num { font-variant-numeric: tabular-nums; }
.wrap, .container { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }
.brand-green, .branding-green, .highlight-green { color: var(--emerald); }

/* inline highlight markup from the Customizer: *emerald* ~faded~ !red! */
.ge-hl { color: var(--emerald); }
.ge-dim { color: rgba(255, 255, 255, 0.24); }
.ge-live { color: var(--live); }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 10000;
  background: var(--emerald); color: #04140b; padding: 12px 20px;
  font-weight: 800; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

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

/* buttons shared by homepage + content pages */
.cta,
.default-button,
.gradient-button {
  display: inline-flex; align-items: center; justify-content: center;
  height: 58px; padding: 0 34px; border-radius: 999px;
  background: var(--emerald); color: #04140b;
  font-family: var(--font); font-weight: 800; font-size: 16px;
  text-decoration: none; letter-spacing: -0.01em; border: 0; cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.25s;
}
.cta:hover, .default-button:hover, .gradient-button:hover { background: #fff; color: #04140b; }
.cta-ghost {
  display: inline-flex; align-items: center; height: 58px; padding: 0 26px;
  border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, 0.28);
  color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; transition: 0.25s;
}
.cta-ghost:hover { border-color: #fff; }

/* ============================================================
   3. CURSOR + LOADER
   ============================================================ */
#cur {
  position: fixed; width: 9px; height: 9px; border-radius: 50%;
  background: var(--emerald); pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%); mix-blend-mode: difference;
}
#curring {
  position: fixed; width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid rgba(61, 191, 116, 0.55); pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%); transition: width 0.25s, height 0.25s;
}
@media (pointer: coarse) { #cur, #curring { display: none; } }

#loader {
  position: fixed; inset: 0; background: var(--pitch); z-index: 1000;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
}
#loader .tag { color: var(--emerald); }
#loadnum { font-weight: 800; font-size: clamp(52px, 11vw, 88px); letter-spacing: -0.04em; }

/* ============================================================
   4. NAV
   ============================================================ */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90; height: var(--nav-h);
  display: flex; align-items: center; border-bottom: 1px solid transparent;
  transition: background 0.35s, backdrop-filter 0.35s, border-color 0.35s;
}
.site-nav.solid {
  background: rgba(6, 18, 10, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}
.site-nav .wrap { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
/* the wordmark is one lockup — no flex gap, or "gecko" and "edge" split apart */
.logo {
  font-weight: 800; font-size: 21px; color: #fff; text-decoration: none;
  letter-spacing: -0.03em; white-space: nowrap; line-height: 1;
}
.logo i { color: var(--emerald); font-style: normal; }
.logo img { max-height: 34px; width: auto; display: block; }

.nav-links { display: flex; align-items: center; gap: 28px; margin-left: auto; }
/* wp_nav_menu output — the header, drawer and footer all share this list */
.nav-menu { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
/* In the fixed header bar only, dissolve the ul/li boxes so the anchors are
   direct flex children of .nav-links. Without this the extra wrapper rounds
   the centred baseline and sits the labels 1px higher than the pre-menu
   markup did. Drawer and footer keep the real list box. */
.site-nav .nav-links > .nav-menu,
.site-nav .nav-links > .nav-menu > li { display: contents; }
.nav-links a, .footer-nav a {
  font-size: 13.5px; font-weight: 600; color: var(--t2); text-decoration: none;
  letter-spacing: 0.02em; transition: color 0.2s; position: relative;
}
/* :not(.menu-item-home) — homepage anchor items all resolve to "/" and would
   otherwise every one of them read as the current page */
.nav-links a:hover, .footer-nav a:hover,
.nav-links .current-menu-item:not(.menu-item-home) > a,
.footer-nav .current-menu-item:not(.menu-item-home) > a { color: #fff; }
.nav-links a::after, .footer-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1.5px;
  background: var(--emerald); transform: scaleX(0); transform-origin: left; transition: transform 0.25s;
}
.nav-links a:hover::after, .footer-nav a:hover::after { transform: scaleX(1); }

.navcta {
  font-weight: 700; font-size: 13.5px; color: #fff; text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, 0.75); padding: 12px 24px;
  border-radius: 999px; transition: 0.25s; letter-spacing: 0.02em; white-space: nowrap;
}
.navcta:hover { background: #fff; color: #000; }

.nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line);
  border-radius: 12px; background: transparent; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: #fff; transition: 0.25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-drawer {
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 89;
  background: rgba(6, 18, 10, 0.97); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line); padding: 20px 40px 28px;
  display: none; flex-direction: column; gap: 4px;
}
.nav-drawer.open { display: flex; }
.nav-drawer .nav-menu { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
.nav-drawer a {
  display: block; padding: 13px 0; font-weight: 600; font-size: 15px; color: var(--t2);
  text-decoration: none; border-bottom: 1px solid var(--line-soft);
}
.nav-drawer .nav-menu li:last-child a, .nav-drawer > a:last-of-type { border-bottom: 0; }
.nav-drawer .navcta { margin-top: 16px; text-align: center; border-bottom: 1.5px solid rgba(255, 255, 255, 0.75); }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .site-nav .navcta { display: none; }
}

/* ============================================================
   5. HERO
   ============================================================ */
#hero {
  position: relative; min-height: 100vh; overflow: hidden;
  display: flex; align-items: center; padding: 120px 0 90px;
}
#film { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Concept-C grade: clear in the middle so the match is actually watchable,
   darkening only towards the edges and into the section below. */
.grade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 32%, rgba(6, 18, 10, 0) 30%, rgba(6, 18, 10, 0.72) 100%),
    linear-gradient(180deg, rgba(6, 18, 10, 0.35) 0%, rgba(6, 18, 10, 0.05) 40%, rgba(6, 18, 10, 0.9) 100%);
}
/* the type sits on its own soft veil rather than dimming the whole pitch */
.hero-inner::before {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(1100px, 96%); height: min(760px, 108%); pointer-events: none; z-index: -1;
  background: radial-gradient(ellipse at 50% 50%, rgba(4, 12, 8, 0.62) 0%, rgba(4, 12, 8, 0.34) 46%, rgba(4, 12, 8, 0) 72%);
}
.hero-inner {
  position: relative; z-index: 3; width: 100%;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.kick { color: var(--emerald); margin-bottom: 26px; opacity: 0; }
.mega {
  font-weight: 900; font-size: clamp(42px, 7.4vw, 122px); line-height: 0.92;
  letter-spacing: -0.035em; text-transform: uppercase;
}
/* the pitch reads brighter than a flat backdrop, so the type carries its own
   shadow instead of the grade dimming the match behind it */
#hero .mega, #hero .hero-sub, #finale .mega { text-shadow: 0 14px 38px rgba(2, 8, 5, 0.55); }
.mega .ln { display: block; overflow: hidden; padding-bottom: 0.04em; }
.mega .ln > span { display: inline-block; transform: translateY(112%); }
.mega .green { color: var(--emerald); }

/* stripe-filled word, clipped to the glyphs, with a slow light sweep */
.mega .filmfill {
  color: transparent;
  -webkit-background-clip: text; background-clip: text;
  background-image:
    linear-gradient(104deg, transparent 26%, rgba(255, 255, 255, 0.55) 44%, rgba(255, 255, 255, 0) 62%),
    repeating-linear-gradient(90deg, var(--stripe-a) 0 46px, var(--stripe-b) 46px 92px);
  background-size: 240% 100%, auto;
  background-position: -70% 0, 0 0;
  -webkit-text-stroke: 1.4px rgba(190, 255, 216, 0.5);
  animation: sweep 7s linear infinite;
}
@keyframes sweep { to { background-position: 170% 0, 0 0; } }

/* outlined word — the treatment the visible-pitch hero was drawn for */
.mega .hollow { color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, 0.85); }
#hero .mega .hollow { text-shadow: none; }
@media (max-width: 639px) { .mega .hollow { -webkit-text-stroke-width: 1.4px; } }

.hero-sub {
  margin: 30px auto 36px; max-width: 540px; color: var(--t2);
  font-size: 17px; font-weight: 500; opacity: 0;
}
.hero-cta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; justify-content: center; opacity: 0; }

.readout {
  display: flex; flex-wrap: wrap; justify-content: center; margin-top: 44px;
  background: var(--glass); border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px; backdrop-filter: blur(10px); overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45); opacity: 0;
}
.readout .cell { padding: 15px 24px; text-align: left; min-width: 0; }
.readout .cell + .cell { border-left: 1px solid rgba(255, 255, 255, 0.1); }
.readout .lab {
  font-size: 9.5px; letter-spacing: 0.2em; font-weight: 700;
  color: rgba(255, 255, 255, 0.42); text-transform: uppercase;
}
.readout .val { font-weight: 700; font-size: 15px; margin-top: 5px; letter-spacing: -0.01em; white-space: nowrap; }
.readout .val small {
  display: block; font-size: 11px; font-weight: 500;
  color: rgba(255, 255, 255, 0.45); letter-spacing: 0; margin-top: 2px;
}
.readout .val.dim { color: rgba(255, 255, 255, 0.58); }
.readout .cell.edge { background: rgba(61, 191, 116, 0.12); }
.readout .cell.edge .lab { color: rgba(61, 191, 116, 0.85); }
.readout .val.g { color: var(--emerald); font-weight: 900; font-size: 17px; }

.lane { font-size: 11.5px; color: rgba(255, 255, 255, 0.55); margin-top: 10px; letter-spacing: 0.08em; font-weight: 600; }
.track { height: 7px; border-radius: 99px; background: rgba(255, 255, 255, 0.09); overflow: hidden; margin-top: 5px; }
.track .fill { height: 100%; border-radius: 99px; width: 0; transition: width 1.1s cubic-bezier(0.2, 0.7, 0.3, 1); }
.fill.m { background: var(--emerald); }
.fill.b { background: rgba(255, 255, 255, 0.34); }

.scroller {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.5); font-size: 10.5px; letter-spacing: 0.3em; font-weight: 600; z-index: 3;
}
.scroller::after {
  content: ""; display: block; width: 1px; height: 36px;
  background: linear-gradient(var(--emerald), transparent); margin: 10px auto 0; animation: drop 1.6s infinite;
}
@keyframes drop {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (max-width: 720px) {
  .readout .cell { flex: 1 1 45%; padding: 13px 18px; }
  .readout .cell:nth-child(odd) { border-left: 0; }
  .readout .cell:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, 0.1); }
}

/* ============================================================
   6. STATEMENT
   ============================================================ */
#statement { position: relative; background: var(--pitch); }
.stage { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 80px 24px; }
.big {
  font-weight: 900; font-size: clamp(34px, 6.4vw, 98px); line-height: 1.06;
  letter-spacing: -0.035em; text-transform: uppercase;
}
.big .dim { color: rgba(255, 255, 255, 0.24); }
.big .g { color: var(--emerald); }
#oddsrain { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0.45; }

/* ============================================================
   7. PIPELINE
   ============================================================ */
#pipescene { position: relative; background: linear-gradient(180deg, var(--pitch), var(--pitch2)); }
#pipescene .stage { flex-direction: column; gap: 60px; }
.pipehead { text-align: center; max-width: 780px; }
.pipehead .tag { display: block; color: var(--emerald); margin-bottom: 16px; }
.pipehead h2 { font-size: clamp(26px, 3.6vw, 46px); letter-spacing: -0.03em; }
.pipehead p { color: var(--t3); margin-top: 14px; font-size: 15px; }

.flow { display: flex; align-items: stretch; justify-content: center; width: min(1180px, 94vw); }
.pnode {
  flex: 1 1 0; min-width: 0; background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line); border-radius: 16px; padding: 18px 16px 16px;
  transition: border-color 0.45s, background 0.45s, box-shadow 0.45s;
}
.pnode.on {
  border-color: rgba(61, 191, 116, 0.7); background: rgba(61, 191, 116, 0.1);
  box-shadow: 0 0 0 1px rgba(61, 191, 116, 0.22), 0 16px 40px rgba(61, 191, 116, 0.13);
}
.pnode .step { font-size: 10px; letter-spacing: 0.22em; font-weight: 700; color: rgba(255, 255, 255, 0.3); transition: color 0.4s; }
.pnode.on .step { color: var(--emerald); }
.pnode .nm { font-weight: 700; font-size: 15.5px; margin-top: 9px; letter-spacing: -0.01em; }
.pnode .sub { font-size: 11.5px; color: rgba(255, 255, 255, 0.42); margin-top: 4px; font-weight: 500; line-height: 1.35; }
.pnode .out {
  margin-top: 13px; padding-top: 11px; border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 800; font-size: 15px; color: var(--emerald); letter-spacing: -0.01em;
  opacity: 0; transform: translateY(5px); transition: opacity 0.45s, transform 0.45s;
}
.pnode.on .out { opacity: 1; transform: none; }

.conn { flex: 0 0 44px; align-self: center; position: relative; height: 2px; background: rgba(255, 255, 255, 0.12); border-radius: 2px; }
.conn .fl {
  position: absolute; top: 0; left: 0; height: 100%; width: calc(var(--p, 0) * 100%);
  background: var(--emerald); border-radius: 2px; box-shadow: 0 0 9px rgba(61, 191, 116, 0.75);
}
.conn .spark {
  position: absolute; top: 50%; left: calc(var(--p, 0) * 100%); width: 11px; height: 11px;
  margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: var(--emerald);
  box-shadow: 0 0 15px 3px rgba(61, 191, 116, 0.8); opacity: 0; transition: opacity 0.2s;
}
.evchip {
  flex: 0 0 auto; align-self: center; margin-left: 24px; display: flex; align-items: center;
  height: 58px; padding: 0 24px; border-radius: 16px; background: var(--emerald); color: #04140b;
  font-weight: 900; font-size: 19px; letter-spacing: -0.02em; white-space: nowrap; opacity: 0; transform: scale(0.82);
}
@media (max-width: 900px) {
  .flow { flex-direction: column; width: 100%; max-width: 340px; }
  .conn { flex: 0 0 32px; width: 2px; height: 32px; }
  .conn .fl { width: 100%; height: calc(var(--p, 0) * 100%); }
  .conn .spark { left: 50%; top: calc(var(--p, 0) * 100%); }
  .evchip { margin: 24px 0 0; align-self: center; }
}

/* ============================================================
   8. PRODUCT CINEMA
   ============================================================ */
#cinema {
  background: radial-gradient(ellipse at 50% 0%, #0d1f14, #050d08 60%, #030805);
  padding: 130px 0 150px; position: relative; overflow: hidden;
}
#cinema .head { text-align: center; margin-bottom: 66px; }
#cinema h2 { font-size: clamp(32px, 4.2vw, 54px); letter-spacing: -0.03em; text-transform: uppercase; }
#cinema .lede { color: rgba(255, 255, 255, 0.55); max-width: 520px; margin: 18px auto 0; }
.spot {
  position: absolute; width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 191, 116, 0.12), transparent 65%);
  top: -200px; left: 50%; transform: translateX(-50%); pointer-events: none;
}
.scene3d { perspective: 1400px; max-width: 1000px; margin: 0 auto; padding: 0 24px; }
.appframe {
  position: relative; transform-style: preserve-3d; transform: rotateX(8deg) rotateY(-6deg);
  border-radius: 18px; background: #fff;
  box-shadow: 0 60px 120px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 90px rgba(61, 191, 116, 0.13);
  overflow: hidden; will-change: transform;
}
.appframe::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.16), transparent 32%); pointer-events: none;
}
.appchrome { display: flex; align-items: center; gap: 8px; background: #f4f4f4; border-bottom: 1px solid var(--border); padding: 12px 16px; }
.appchrome i { width: 11px; height: 11px; border-radius: 50%; background: #dbdada; }
.appchrome i:first-child { background: var(--red); }
.appchrome i:nth-child(2) { background: var(--amber); }
.appchrome i:nth-child(3) { background: var(--emerald); }
.appchrome .url { margin-left: 12px; font-size: 11.5px; color: var(--steel); font-weight: 600; }

/* tall enough for the answer card to clear the corner tag at every width */
.screenbox { position: relative; min-height: 545px; background: #fff; color: var(--charcoal); }
.screen { position: absolute; inset: 0; padding: 36px 44px 52px; opacity: 0; transition: opacity 0.6s; }
.screen.on { opacity: 1; }
.s1-title { text-align: center; font-weight: 800; font-size: 30px; color: #000; margin-top: 8px; letter-spacing: -0.03em; }
.s1-title .ghost { color: #c9cdd3; font-weight: 600; }
.chips { display: flex; gap: 10px; justify-content: center; margin: 22px 0 30px; flex-wrap: wrap; }
.qchip { font-size: 13px; border: 1px solid var(--border); border-radius: 999px; padding: 9px 16px; color: var(--charcoal); font-weight: 600; transition: 0.25s; }
.qchip.hot { border-color: var(--emerald); background: rgba(61, 191, 116, 0.1); color: var(--emerald-dd); }
.cmd {
  max-width: 640px; margin: 0 auto; border: 1px solid var(--border); border-radius: 14px;
  padding: 16px 18px; display: flex; align-items: center; gap: 12px; box-shadow: rgba(0, 0, 0, 0.06) 0 4px 14px;
}
.cmd .txt { font-size: 13.5px; color: #000; flex: 1; text-align: left; min-height: 18px; font-weight: 500; }
.cmd .caret { display: inline-block; width: 2px; height: 15px; background: var(--emerald); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.cmd .go { width: 34px; height: 34px; border-radius: 10px; background: var(--emerald); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; }

.answer {
  position: relative; max-width: 640px; margin: 22px auto 0; border: 1px solid var(--border);
  border-radius: 14px; padding: 18px 20px; text-align: left; opacity: 0; transform: translateY(12px);
  transition: 0.5s; box-shadow: rgba(0, 0, 0, 0.06) 0 6px 18px; overflow: hidden;
}
.answer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--emerald), rgba(61, 191, 116, 0));
}
.answer.on { opacity: 1; transform: none; }
.answer .ftr { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 10px; font-weight: 600; gap: 12px; }
.answer .ftr b { color: #000; font-weight: 800; }
.answer .ftr .lg { color: var(--steel); font-weight: 500; }
.answer .lane { font-size: 11px; color: var(--steel); margin-top: 8px; }
.answer .track { background: var(--surface); }
.answer .verdict { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; gap: 12px; }
.answer .ev { font-weight: 900; font-size: 20px; color: var(--emerald-dd); letter-spacing: -0.02em; }
.answer .ss { font-size: 12px; color: var(--steel); font-weight: 600; }
.answer .ss b { color: var(--purple); }

.s2 .pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { font-weight: 600; font-size: 12px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--border); color: var(--steel); }
.pill.on { background: var(--emerald); border-color: var(--emerald); color: #fff; }
.metrics { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin: 20px 0; }
.metric { border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.metric .k { font-size: 11px; color: var(--steel); font-weight: 600; }
.metric .v { font-weight: 800; font-size: 19px; color: #000; margin-top: 3px; letter-spacing: -0.03em; }
.metric .v.g { color: var(--emerald-dd); }
.bandrow {
  display: grid; grid-template-columns: 60px 50px 1fr 84px; gap: 12px; align-items: center;
  padding: 9px 2px; border-bottom: 1px solid #f0f0f0; font-size: 13px;
}
.bandrow .lbl { font-weight: 700; color: #000; }
.bandrow .n { color: var(--steel); font-weight: 500; }
.bandrow .track { background: var(--surface); margin-top: 0; }
.bandrow .fill { background: var(--emerald); }
.bandrow .fill.neg { background: var(--red); }
.bandrow .roi { font-weight: 800; text-align: right; color: var(--emerald-dd); }
.bandrow .roi.neg { color: var(--red); }
#trendsvg { margin-top: 14px; }
#trendsvg .axis { stroke: #dbdada; stroke-width: 1; }
#trendline { fill: none; stroke: var(--emerald); stroke-width: 3; stroke-linecap: round; }
.screen-tag { position: absolute; bottom: 14px; right: 20px; font-size: 10px; letter-spacing: 0.2em; color: var(--steel); font-weight: 600; }
.cinema-note { text-align: center; color: rgba(255, 255, 255, 0.42); font-size: 13px; margin-top: 44px; }

/* ============================================================
   9. TICKER
   ============================================================ */
#band {
  background: var(--pitch3); padding: 22px 0; overflow: hidden; transform: rotate(-1.2deg);
  margin: -16px 0; border-top: 1px solid rgba(61, 191, 116, 0.28); border-bottom: 1px solid rgba(61, 191, 116, 0.28);
}
.tick { display: flex; gap: 56px; width: max-content; font-weight: 700; font-size: 16px; color: rgba(255, 255, 255, 0.85); will-change: transform; }
.tick b { color: var(--emerald); }
.tick .neg { color: #ff6b5e; }

/* ============================================================
   10. FIXTURES RAIL
   ============================================================ */
#fixtures { background: var(--pitch2); overflow: hidden; }
#fixtures .rail-head { padding: 110px 0 40px; text-align: center; }
#fixtures h2 { font-size: clamp(30px, 4.2vw, 52px); letter-spacing: -0.03em; text-transform: uppercase; }
#fixtures .tag { color: var(--emerald); display: block; margin-bottom: 16px; }
.rail { display: flex; gap: 28px; padding: 20px 6vw 130px; will-change: transform; }
.fcard {
  flex: 0 0 380px; background: rgba(255, 255, 255, 0.045); border: 1px solid var(--line);
  border-radius: 20px; padding: 26px; backdrop-filter: blur(6px);
  transition: transform 0.3s, border-color 0.3s; position: relative; overflow: hidden;
}
.fcard:hover { transform: translateY(-8px); border-color: var(--emerald); }
.fcard .shine {
  position: absolute; top: 0; left: -80%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.08), transparent); transform: skewX(-18deg);
}
.fcard:hover .shine { animation: shsweep 0.9s; }
@keyframes shsweep { to { left: 130%; } }
.fcard .fix { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.fcard .lg { color: rgba(255, 255, 255, 0.5); font-size: 12.5px; margin: 3px 0 18px; }
.fcard .mkt { font-size: 14px; color: rgba(255, 255, 255, 0.85); font-weight: 600; margin-bottom: 10px; }
.fcard .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; gap: 12px; }
.fcard .ev { font-weight: 900; font-size: 22px; color: var(--emerald); letter-spacing: -0.03em; }
.fcard .ss { font-size: 12px; color: rgba(255, 255, 255, 0.55); font-weight: 600; }
.fcard .ss b { color: #b99cff; }
.fcard.nobet .ev { font-size: 13px; color: var(--amber); letter-spacing: 0.06em; }

/* ============================================================
   11. IN-PLAY
   ============================================================ */
#inplay { background: var(--pitch3); padding: 130px 0; position: relative; overflow: hidden; }
#inplay .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
#inplay h2 { font-size: clamp(32px, 4.6vw, 64px); letter-spacing: -0.035em; line-height: 1.04; text-transform: uppercase; }
#inplay h2 .live { color: var(--live); }
#inplay h2 .g { color: var(--emerald); }
#inplay .copy p { color: var(--t2); margin-top: 18px; max-width: 460px; }
.livecard {
  background: var(--glass); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 20px;
  backdrop-filter: blur(8px); padding: 26px; box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45);
}
.livehead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.livebadge { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; color: var(--live); letter-spacing: 0.08em; }
.livebadge i { width: 9px; height: 9px; border-radius: 50%; background: var(--live); animation: lp 1.1s infinite; }
@keyframes lp { 50% { opacity: 0.25; } }
.clock { font-weight: 600; font-size: 15px; color: rgba(255, 255, 255, 0.8); }
.scoreline { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 21px; gap: 12px; }
.scoreline .score { font-size: 34px; font-weight: 900; color: var(--emerald); letter-spacing: -0.04em; }
.lxg { display: flex; justify-content: space-between; font-size: 13px; color: rgba(255, 255, 255, 0.6); margin: 14px 0 6px; font-weight: 600; gap: 10px; }
.lxg b { color: #fff; font-weight: 800; }
.momo { margin: 16px 0 20px; }
.momo .lbl { font-size: 10.5px; letter-spacing: 0.2em; color: rgba(255, 255, 255, 0.45); margin-bottom: 7px; font-weight: 600; }
.momo .track { height: 9px; margin-top: 0; }
.momo .home { height: 100%; background: var(--emerald); transition: width 1.2s ease; }
.alert { border: 1px solid rgba(61, 191, 116, 0.5); background: rgba(61, 191, 116, 0.08); border-radius: 14px; padding: 16px; opacity: 0; transform: translateY(14px); transition: 0.5s; }
.alert.on { opacity: 1; transform: none; }
.alert .a1 { display: flex; justify-content: space-between; font-weight: 700; font-size: 15px; gap: 12px; }
.alert .a1 .g { color: var(--emerald); font-weight: 800; }
.alert .a2 { font-size: 12.5px; color: rgba(255, 255, 255, 0.6); margin-top: 5px; font-weight: 500; }
.window { margin-top: 12px; }
.window .lbl { font-size: 10px; letter-spacing: 0.2em; color: rgba(255, 255, 255, 0.4); display: flex; justify-content: space-between; font-weight: 600; }
.window .track { height: 5px; }
.window .drain { height: 100%; background: linear-gradient(90deg, var(--emerald), var(--amber)); width: 100%; }

/* ============================================================
   12. REVIEWS
   ============================================================ */
#reviews { background: var(--pitch2); padding: 120px 0; overflow: hidden; }
#reviews .head { text-align: center; margin-bottom: 58px; }
#reviews h2 { font-size: clamp(32px, 4.2vw, 56px); letter-spacing: -0.03em; text-transform: uppercase; }
#reviews h2 .g { color: var(--emerald); }
#reviews .lede { color: rgba(255, 255, 255, 0.55); margin-top: 14px; }
.revrow { display: flex; gap: 24px; width: max-content; padding: 12px 0; }
.rr1 { animation: scrollrev 58s linear infinite; }
.rr2 { animation: scrollrev 74s linear infinite reverse; }
@keyframes scrollrev { to { transform: translateX(-50%); } }
.revrow:hover { animation-play-state: paused; }
.rev {
  position: relative; width: 420px; background: var(--glass); border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px; padding: 26px 24px 22px; backdrop-filter: blur(6px);
}
.rev::before {
  content: "\201C"; position: absolute; top: 8px; left: 22px; font-size: 44px; line-height: 1;
  color: rgba(61, 191, 116, 0.32); font-weight: 800;
}
.rev p { font-size: 14.5px; color: rgba(255, 255, 255, 0.85); line-height: 1.55; font-weight: 500; padding-left: 26px; }
.rev .who { margin-top: 14px; font-weight: 700; font-size: 13px; color: var(--emerald); }
.rev .who span { font-size: 11px; color: rgba(255, 255, 255, 0.4); margin-left: 8px; font-weight: 500; }

/* ============================================================
   13. PORTFOLIO
   ============================================================ */
#portfolio { background: var(--pitch); padding: 130px 0; position: relative; overflow: hidden; }
#portfolio h2 { font-size: clamp(32px, 4.8vw, 62px); letter-spacing: -0.035em; text-transform: uppercase; line-height: 1.05; }
#portfolio h2 .g { color: var(--emerald); }
.port-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.port-copy p { color: var(--t2); margin-top: 18px; max-width: 480px; }
.port-cards { position: relative; height: 420px; }
.pcard {
  position: absolute; width: 78%; background: var(--glass); border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px; padding: 22px; backdrop-filter: blur(8px);
}
/* blur the numbers, not the card: the MEMBERS chip and border stay crisp */
.pcard.locked .row1, .pcard.locked .row2 { filter: blur(5px) brightness(0.8); }
.pcard .row1 { display: flex; justify-content: space-between; font-weight: 700; font-size: 15px; gap: 12px; }
.pcard .row1 .g { color: var(--emerald); font-weight: 800; }
.pcard .row2 { font-size: 12.5px; color: rgba(255, 255, 255, 0.55); margin-top: 6px; font-weight: 500; }
.lockchip {
  position: absolute; top: 14px; right: 14px; font-size: 10.5px; font-weight: 700;
  background: rgba(0, 0, 0, 0.5); border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 5px 11px; border-radius: 99px; letter-spacing: 0.1em;
}
#eqsvg { position: absolute; bottom: -10px; right: -20px; width: 70%; opacity: 0.9; }
#eqline { fill: none; stroke: var(--emerald); stroke-width: 2.5; }
.waitcta { margin-top: 34px; display: inline-flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.waitcta .cta { height: 54px; padding: 0 30px; font-size: 15px; }
.waitcta .tag { color: rgba(255, 255, 255, 0.45); font-size: 11px; }

/* ============================================================
   14. FINALE + FOOTER
   ============================================================ */
#finale {
  position: relative; min-height: 92vh; display: flex; align-items: center; justify-content: center;
  text-align: center; background: var(--pitch2); overflow: hidden; padding: 100px 24px;
}
#film2 { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.55; }
#finale .inner { position: relative; z-index: 2; }
#finale .mega { font-size: clamp(38px, 6.4vw, 104px); }
#finale .cta { margin-top: 44px; }

.site-footer { background: #020d07; padding: 42px 0; font-size: 13.5px; color: var(--t3); }
.fg { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: center; }
.strap { font-weight: 700; color: var(--emerald); }
.site-footer a { color: rgba(255, 255, 255, 0.65); }
.site-footer a:hover { color: #fff; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; margin-left: 0; }
.footer-nav .nav-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; list-style: none; margin: 0; padding: 0; }
.footer-nav .nav-menu li { list-style: none; margin: 0; padding: 0; }
.footer-signup { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.footer-signup input[type="email"] {
  height: 46px; min-width: 240px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06); color: #fff; padding: 0 18px; font-family: var(--font); font-size: 14px;
}
.footer-signup input[type="email"]::placeholder { color: var(--t4); }
.footer-signup .gradient-button { height: 46px; padding: 0 24px; font-size: 14px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 28px; margin-bottom: 24px; border-bottom: 1px solid var(--line-soft); }
.footer-brand .logo { font-size: 24px; }
.footer-brand p { margin-top: 10px; max-width: 340px; }

/* ============================================================
   15. CONTENT PAGES (blog, single, page, archive, search, 404)
   ============================================================ */
.site-main { padding-top: var(--nav-h); }
/* the homepage runs its hero full-bleed underneath the fixed nav */
.is-cinema .site-main { padding-top: 0; }
.page-shell { max-width: 1180px; margin: 0 auto; padding: 90px 40px 110px; }
.page-shell--narrow { max-width: 860px; }

.page-hero { position: relative; padding: 130px 0 56px; background: linear-gradient(180deg, var(--pitch2), var(--pitch)); overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; inset: auto 0 -1px 0; height: 1px; background: linear-gradient(90deg, transparent, var(--emerald), transparent); opacity: 0.5;
}
.page-hero .tag { color: var(--emerald); display: block; margin-bottom: 14px; }
.page-hero h1 { font-size: clamp(32px, 5vw, 64px); letter-spacing: -0.035em; text-transform: uppercase; line-height: 1.03; }
.page-hero .lede { color: var(--t2); margin-top: 16px; max-width: 620px; font-size: 16px; }
.page-hero .crumbs { color: var(--t4); font-size: 12px; letter-spacing: 0.08em; font-weight: 600; margin-bottom: 18px; }
.page-hero .crumbs a { text-decoration: none; color: var(--t3); }
.page-hero .crumbs a:hover { color: var(--emerald); }

.page-title { font-size: clamp(30px, 4vw, 52px); letter-spacing: -0.035em; margin-bottom: 28px; }

/* prose */
.prose { color: var(--t2); font-size: 16.5px; line-height: 1.75; }
.prose > * + * { margin-top: 20px; }
.prose h2 { color: #fff; font-size: clamp(24px, 2.8vw, 34px); margin-top: 44px; letter-spacing: -0.03em; }
.prose h3 { color: #fff; font-size: clamp(19px, 2.2vw, 25px); margin-top: 34px; }
.prose h4 { color: #fff; font-size: 18px; margin-top: 26px; }
.prose a { color: var(--emerald); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: #fff; }
.prose strong { color: #fff; font-weight: 700; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--emerald); }
.prose blockquote {
  border-left: 3px solid var(--emerald); background: rgba(61, 191, 116, 0.06);
  padding: 18px 22px; border-radius: 0 14px 14px 0; color: #fff; font-weight: 500;
}
.prose code {
  background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line-soft);
  border-radius: 6px; padding: 2px 6px; font-size: 0.9em; font-family: ui-monospace, Menlo, Consolas, monospace;
}
.prose pre {
  background: rgba(0, 0, 0, 0.45); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 20px; overflow-x: auto;
}
.prose pre code { background: none; border: 0; padding: 0; }
.prose img, .prose figure img { border-radius: 16px; }
.prose figcaption { color: var(--t4); font-size: 12.5px; margin-top: 8px; text-align: center; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.prose th { background: rgba(255, 255, 255, 0.05); color: #fff; font-weight: 700; }
.prose .wp-block-image { margin-top: 26px; }

/* Legacy callouts: posts written under the light theme carry inline pale
   backgrounds (#ECFDF5, mint gradients …). On the dark shell their inherited
   white text vanishes, so anything with a light inline background gets dark
   ink back. Inline `color` on a child (e.g. the green CTA button) still wins. */
.prose [style*="background:#e" i],
.prose [style*="background:#f" i],
.prose [style*="background:#d" i],
.prose [style*="background: #e" i],
.prose [style*="background: #f" i],
.prose [style*="background: #d" i],
.prose [style*="background-color:#e" i],
.prose [style*="background-color:#f" i],
.prose [style*="background-color:#d" i],
.prose [style*="background:linear-gradient" i][style*="#e" i],
.prose [style*="background:linear-gradient" i][style*="#f" i] { color: var(--charcoal); }

.prose [style*="background:#e" i] :is(p, li, span, em, h2, h3, h4),
.prose [style*="background:#f" i] :is(p, li, span, em, h2, h3, h4),
.prose [style*="background:#d" i] :is(p, li, span, em, h2, h3, h4),
.prose [style*="background:linear-gradient" i][style*="#e" i] :is(p, li, span, em, h2, h3, h4) { color: inherit; }

.prose [style*="background:#e" i] :is(strong, b),
.prose [style*="background:#f" i] :is(strong, b),
.prose [style*="background:#d" i] :is(strong, b),
.prose [style*="background:linear-gradient" i][style*="#e" i] :is(strong, b) { color: #000; }

.prose [style*="background:#e" i] a,
.prose [style*="background:#f" i] a,
.prose [style*="background:#d" i] a,
.prose [style*="background:linear-gradient" i][style*="#e" i] a { color: var(--emerald-dd); }
.alignwide { max-width: min(1180px, 92vw); margin-left: auto; margin-right: auto; }
.alignfull { max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.aligncenter { margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: 0 24px 18px 0; }
.alignright { float: right; margin: 0 0 18px 24px; }

/* blog listing */
.blog-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.filter-chip {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; text-decoration: none;
  color: var(--t2); border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; transition: 0.25s;
}
.filter-chip:hover { border-color: var(--emerald); color: #fff; }
.filter-chip.active { background: var(--emerald); border-color: var(--emerald); color: #04140b; }

.featured-post {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 0; margin-bottom: 64px;
  background: var(--glass); border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
}
/* 16:9, so a 16:9 featured image is shown whole instead of losing ~28% of its
   height to the grid row. Centred, because the image is now shorter than the
   text column beside it. */
.featured-post .media {
  aspect-ratio: 16 / 9; min-height: 0; align-self: center;
  background-size: cover; background-position: center;
}
.featured-post .body { padding: 34px 36px; display: flex; flex-direction: column; justify-content: center; }
.featured-post .badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.badge {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--t2);
}
.badge.hot { background: rgba(61, 191, 116, 0.14); border-color: rgba(61, 191, 116, 0.5); color: var(--emerald); }
.featured-post h2 { font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -0.03em; line-height: 1.14; }
.featured-post h2 a { text-decoration: none; }
.featured-post h2 a:hover { color: var(--emerald); }
.featured-post p { color: var(--t2); margin-top: 14px; font-size: 15px; }
.featured-post .cta-ghost { margin-top: 24px; align-self: flex-start; height: 48px; font-size: 14px; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card {
  background: var(--glass); border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  transition: transform 0.3s, border-color 0.3s; display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-8px); border-color: var(--emerald); }
/* posts with no featured image get a pitch panel rather than a stock JPEG */
.post-card .media, .featured-post .media {
  background-color: var(--pitch2);
  background-image: radial-gradient(ellipse at 30% 20%, rgba(61, 191, 116, 0.22), transparent 62%);
  background-size: cover; background-position: center;
}
/* Was a fixed 200px, which made the box 1.73:1 against a 1.78:1 source. The
   difference was small but it meant the crop drifted with the column width. */
.post-card .media { display: block; aspect-ratio: 16 / 9; height: auto; }
.post-card .body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card .meta { font-size: 11px; color: var(--t4); font-weight: 600; letter-spacing: 0.04em; display: flex; gap: 8px; flex-wrap: wrap; }
.post-card .meta span + span::before { content: "· "; }
.post-card h3 { font-size: 18px; line-height: 1.28; letter-spacing: -0.02em; }
.post-card h3 a { text-decoration: none; }
.post-card h3 a:hover { color: var(--emerald); }
.post-card p { color: var(--t3); font-size: 14px; }
.post-card .readmore { margin-top: auto; font-size: 12.5px; font-weight: 700; color: var(--emerald); text-decoration: none; letter-spacing: 0.06em; }

.section-head { margin-bottom: 34px; }
.section-head .tag { color: var(--emerald); display: block; margin-bottom: 12px; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 40px); letter-spacing: -0.03em; }

.pagination { display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: 60px; flex-wrap: wrap; }
.pagination .page-numbers {
  min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); color: var(--t2);
  text-decoration: none; font-weight: 700; font-size: 14px; transition: 0.25s;
}
.pagination .page-numbers:hover { border-color: var(--emerald); color: #fff; }
.pagination .page-numbers.current { background: var(--emerald); border-color: var(--emerald); color: #04140b; }
.pagination .dots { border-color: transparent; }

/* single post */
.post-header { max-width: 860px; margin: 0 auto; text-align: center; }
.post-header h1 { font-size: clamp(30px, 4.4vw, 58px); letter-spacing: -0.035em; line-height: 1.05; }
.post-meta { display: flex; gap: 16px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 20px; color: var(--t3); font-size: 13px; font-weight: 600; }
.post-meta .dot { color: var(--t4); }
.post-featured { max-width: 1000px; margin: 44px auto 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); }
.post-featured img { width: 100%; }
.post-body { max-width: 780px; margin: 48px auto 0; }
.post-tags { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.post-tags a { text-decoration: none; }
.post-nav { max-width: 1000px; margin: 60px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.post-nav a {
  display: block; padding: 22px 24px; border: 1px solid var(--line); border-radius: 18px;
  text-decoration: none; background: var(--glass); transition: border-color 0.25s;
}
.post-nav a:hover { border-color: var(--emerald); }
.post-nav .nav-label { display: block; font-size: 11px; letter-spacing: 0.18em; color: var(--emerald); font-weight: 700; text-transform: uppercase; }
.post-nav .nav-title { display: block; margin-top: 8px; font-weight: 700; font-size: 15.5px; line-height: 1.35; }
.post-nav .next { text-align: right; }

/* newsletter panel */
.signup-panel {
  position: relative; margin: 90px auto 0; max-width: 1180px; border-radius: 26px; overflow: hidden;
  border: 1px solid var(--line); background: radial-gradient(ellipse at 20% 0%, rgba(61, 191, 116, 0.16), transparent 60%), var(--pitch2);
  padding: 54px 48px; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center;
}
.signup-panel h2 { font-size: clamp(24px, 3vw, 38px); letter-spacing: -0.03em; }
.signup-panel p { color: var(--t2); margin-top: 12px; max-width: 480px; }
.signup-panel form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.signup-panel input[type="email"] {
  height: 54px; min-width: 260px; flex: 1 1 260px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06); color: #fff; padding: 0 22px; font-family: var(--font); font-size: 15px;
}
.signup-panel input[type="email"]::placeholder { color: var(--t4); }
.signup-panel .gradient-button { height: 54px; }
.signup-panel .panel-art { justify-self: center; }

/* search + 404 */
.search-form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.search-form input[type="search"] {
  height: 54px; min-width: 240px; flex: 1 1 260px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06); color: #fff; padding: 0 22px; font-family: var(--font); font-size: 15px;
}
.search-form input[type="search"]::placeholder { color: var(--t4); }
.empty-state { text-align: center; padding: 60px 0; color: var(--t3); }
.empty-state .code { font-size: clamp(70px, 16vw, 190px); font-weight: 900; letter-spacing: -0.06em; color: rgba(255, 255, 255, 0.08); line-height: 1; }

/* comments */
.comments-area { max-width: 780px; margin: 70px auto 0; }
.comments-area h2 { font-size: 22px; margin-bottom: 20px; }
.comments-area ol { list-style: none; padding: 0; }
.comments-area .comment-body { border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; margin-bottom: 16px; background: var(--glass); }
.comments-area .children { padding-left: 26px; }
.comment-respond input, .comment-respond textarea {
  width: 100%; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line);
  border-radius: 14px; color: #fff; padding: 12px 16px; font-family: var(--font); margin-top: 8px;
}
.comment-respond .submit { margin-top: 14px; }

/* generic pages that use editor content (incl. Tool Pages) */
.entry-page { max-width: 900px; margin: 0 auto; }
.blog-page-copy { margin-top: 70px; }
.related { margin-top: 20px; }
.page-links { margin-top: 26px; font-weight: 700; color: var(--t3); display: flex; gap: 10px; }
.page-links a { color: var(--emerald); text-decoration: none; }

.footer-signup-block .tag { color: var(--emerald); display: block; margin-bottom: 10px; }
.site-footer .footer-widget { max-width: 460px; }
.footer-widget-title { color: #fff; font-size: 15px; margin-bottom: 10px; }
.footer-widget input[type="email"], .footer-widget input[type="text"] {
  height: 46px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06); color: #fff; padding: 0 18px; font-family: var(--font);
}

/* ConvertKit embed.
   register_sidebar() wraps every widget in <div class="footer-widget">, and
   the same widget area is output in two places — the footer column and the
   blog signup panel (template-parts/content/signup.php pulls the same
   sidebar). So .footer-widget is the shared base here, and the panel context
   overrides it with one extra class of specificity rather than competing at
   the same level.

   The embed ships styling for a standalone form: [data-style="clean"] carries
   padding-top:56px to clear a heading it renders itself (we print our own
   above it), field and submit each carry margin-bottom:15px, and the fields
   row is inset by -5px. Once inline, ConvertKit gives the field
   `flex: 100 1 auto` — but with an `auto` basis the button's text width wins
   and the input ends up the narrower of the two. A real flex-basis on the
   field plus a content-sized button puts the width back in the input.

   ConvertKit injects its <style> after this stylesheet and its selectors are
   more specific, so these need !important. Geometry only — the form's own
   colours stay under ConvertKit's control. */
.footer-widget .formkit-form { max-width: 100%; }
.footer-widget .formkit-form [data-style="clean"] { padding: 0 !important; }
.footer-widget .formkit-fields { gap: 10px; margin: 0 !important; }
.footer-widget .formkit-field { flex: 1 1 220px !important; margin: 0 !important; min-width: 0; }
.footer-widget .formkit-submit { flex: 0 0 auto !important; margin: 0 !important; }
.footer-widget .formkit-input,
.footer-widget .formkit-submit {
  height: 46px; border-radius: 999px !important; font-family: var(--font);
}
.footer-widget .formkit-input { width: 100%; padding: 0 18px !important; font-size: 14px; }
.footer-widget .formkit-submit > span { padding: 0 24px; line-height: 46px; font-size: 14px; }

/* The footer column keeps a narrow measure; the signup panel gets the full
   grid column and the taller controls the panel's native form uses. */
.signup-panel .footer-widget { max-width: 100%; }
.signup-panel .footer-widget .formkit-field { flex: 1 1 260px !important; }
.signup-panel .footer-widget .formkit-input,
.signup-panel .footer-widget .formkit-submit { height: 54px; }
.signup-panel .footer-widget .formkit-input { padding: 0 22px !important; font-size: 15px; }
.signup-panel .footer-widget .formkit-submit > span { padding: 0 28px; line-height: 54px; font-size: 15px; }

/* betting tool cards on dark */
.betting-tool {
  margin-top: 44px; background: var(--glass); border: 1px solid var(--line);
  border-radius: 22px; padding: 30px; color: var(--t2);
}
.betting-tool h2, .betting-tool h3, .betting-tool label, .betting-tool strong { color: #fff; }
.betting-tool input, .betting-tool select, .betting-tool textarea {
  background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line); color: #fff;
  border-radius: 10px; padding: 10px 12px; font-family: var(--font);
}
.betting-tool button, .betting-tool .btn {
  background: var(--emerald); color: #04140b; border: 0; border-radius: 999px;
  padding: 12px 24px; font-weight: 800; cursor: pointer; font-family: var(--font);
}
.betting-tool .note { color: var(--t3); font-size: 13px; }
.betting-tool .note.warn { color: var(--amber); }
.betting-tool table { width: 100%; border-collapse: collapse; }
.betting-tool th, .betting-tool td { border-bottom: 1px solid var(--line); padding: 9px 8px; text-align: left; }

/* ============================================================
   16. RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1023px) {
  .metrics { grid-template-columns: repeat(3, 1fr); }
  .port-grid, #inplay .grid2 { grid-template-columns: 1fr; }
  .port-cards { height: 360px; }
  .featured-post { grid-template-columns: 1fr; }
  .featured-post .media { aspect-ratio: 16 / 9; min-height: 0; }
  /* the 3D tilt costs legibility on a small screen — sit the app flat */
  .appframe { transform: none; }
  .scene3d { perspective: none; }
  .signup-panel { grid-template-columns: 1fr; padding: 40px 30px; }
  .signup-panel .panel-art { display: none; }
  .page-shell { padding: 70px 30px 90px; }
}
@media (max-width: 767px) {
  .post-grid { grid-template-columns: 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .next { text-align: left; }

  /* the offset card stack only works with room to fan out; on a phone it
     overflows, so the cards drop into normal flow (static kills the inline
     top/left the template writes) and the equity curve sits underneath */
  .port-cards { height: auto; display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
  .pcard { position: static; width: 100%; }
  #eqsvg { position: static; width: 100%; margin-top: 10px; }
}
@media (max-width: 639px) {
  .wrap, .container { padding: 0 20px; }
  .nav-drawer { padding: 18px 20px 24px; }
  .fcard { flex-basis: 300px; }
  .page-shell { padding: 56px 20px 76px; }
  .fg { flex-direction: column; align-items: flex-start; text-align: left; }

  /* the demo screens are absolutely positioned, so the box needs a floor tall
     enough for the wrapped phone layout — and the internals shrink to match */
  .screenbox { min-height: 700px; }
  .screen { padding: 24px 18px 44px; }
  .s1-title { font-size: 22px; }
  .chips { gap: 6px; margin: 16px 0 18px; }
  .qchip { font-size: 11.5px; padding: 7px 12px; }
  .cmd { padding: 12px 14px; gap: 8px; }
  .cmd .txt { font-size: 12.5px; }
  .answer { padding: 14px 16px; margin-top: 16px; }
  .answer .ftr { flex-direction: column; gap: 4px; }
  .answer .verdict { flex-direction: column; align-items: flex-start; gap: 6px; }
  .metrics { grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 16px 0; }
  .metric { padding: 9px 10px; }
  .metric .v { font-size: 17px; }
  .bandrow { grid-template-columns: 50px 34px 1fr 66px; gap: 8px; font-size: 12px; }
  .screen-tag { font-size: 9px; bottom: 12px; right: 14px; }
}

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