/* ==========================================================
   The Empire — styles
   Palette: warm obsidian + bronze gold. Type: Cinzel (display) + Manrope (text).
   ========================================================== */

:root {
  /* Color tokens */
  --c-bg: #0F0E0C;
  --c-surface: #1A1815;
  --c-surface-2: #24211D;
  --c-line: #3A352E;
  --c-text: #E9E4DA;
  --c-text-muted: #A9A193;
  --c-gold: #B8893B;
  --c-gold-bright: #D9AE5F;
  --c-on-gold: #14110C;
  --c-focus: #F0CD86;

  /* Type */
  --f-display: "Cinzel", "Times New Roman", serif;
  --f-text: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Spacing (8pt) */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-6: 3rem;
  --s-8: 4rem;
  --s-12: 6rem;

  --radius-sm: 6px;
  --radius: 12px;
  --container: 72rem;
  --header-h: 4.5rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-text);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { margin: 0; text-wrap: balance; }

h1, h2 {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.12;
}

h2 { font-size: clamp(1.875rem, 3.2vw + 0.75rem, 2.75rem); }

h3 {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
}

p { margin: 0; }

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

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

:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--s-2);
  top: -4rem;
  z-index: 100;
  padding: var(--s-1) var(--s-2);
  background: var(--c-gold);
  color: var(--c-on-gold);
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: var(--s-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-1);
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: 700 1rem/1.2 var(--f-text);
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 180ms var(--ease-out), border-color 180ms var(--ease-out), color 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}

.btn-gold {
  background: linear-gradient(180deg, #E4BE72 0%, #C1923F 100%);
  color: var(--c-on-gold);
  box-shadow: inset 0 1px 0 rgba(255, 240, 200, 0.45), 0 6px 22px rgba(196, 146, 63, 0.28);
}
.btn-gold:hover {
  background: linear-gradient(180deg, #F0CD86 0%, #D0A050 100%);
  box-shadow: inset 0 1px 0 rgba(255, 240, 200, 0.55), 0 8px 28px rgba(214, 160, 70, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--c-text);
  border-color: var(--c-line);
}
.btn-ghost:hover { border-color: var(--c-gold); color: var(--c-gold-bright); }

.btn-sm { min-height: 2.75rem; padding: 0.5rem 1.125rem; font-size: 0.9375rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(15, 14, 12, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(58, 53, 46, 0.6);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: var(--s-3);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--c-text);
  text-decoration: none;
}
.brand img { border-radius: 50%; }
.brand-name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--s-4);
}
.site-nav ul { display: flex; gap: var(--s-3); }
.site-nav ul a {
  display: inline-block;
  padding: 0.5rem 0;
  color: var(--c-text-muted);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 180ms var(--ease-out);
}
.site-nav ul a:hover { color: var(--c-text); }

.nav-toggle {
  display: none;
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
}
.nav-toggle-bars {
  position: absolute;
  top: calc(50% - 1px);
  left: calc(50% - 0.5625rem);
  width: 1.125rem;
  height: 2px;
  background: var(--c-text);
  border-radius: 1px;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--c-text);
  border-radius: 1px;
  transition: transform 200ms var(--ease-out);
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--s-2);
    padding: var(--s-2) clamp(1.25rem, 4vw, 2.5rem) var(--s-3);
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-line);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a {
    display: block;
    padding: 0.875rem 0;
    font-size: 1.0625rem;
    border-bottom: 1px solid var(--c-surface-2);
  }
  .site-nav .btn { width: 100%; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(3rem, 7vw, 6rem) clamp(4rem, 8vw, 7rem);
  /* warm gold lighting instead of flat black */
  background:
    radial-gradient(55% 65% at 82% 58%, rgba(214, 160, 70, 0.30), transparent 70%),
    radial-gradient(40% 50% at 8% 12%, rgba(184, 137, 59, 0.20), transparent 70%),
    radial-gradient(70% 50% at 50% 115%, rgba(120, 72, 24, 0.45), transparent 70%),
    linear-gradient(180deg, #17130D 0%, #0F0E0C 100%);
}

/* soft gold bokeh (out-of-focus specks of light) and a faint diagonal light beam */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    /* bokeh: larger, softer orbs */
    radial-gradient(circle at 12% 78%, rgba(240, 205, 134, 0.16) 0, rgba(240, 205, 134, 0) 46px),
    radial-gradient(circle at 34% 92%, rgba(240, 205, 134, 0.12) 0, rgba(240, 205, 134, 0) 60px),
    radial-gradient(circle at 63% 14%, rgba(240, 205, 134, 0.14) 0, rgba(240, 205, 134, 0) 52px),
    radial-gradient(circle at 92% 30%, rgba(240, 205, 134, 0.16) 0, rgba(240, 205, 134, 0) 70px),
    radial-gradient(circle at 78% 88%, rgba(240, 205, 134, 0.12) 0, rgba(240, 205, 134, 0) 58px),
    radial-gradient(circle at 46% 6%, rgba(240, 205, 134, 0.10) 0, rgba(240, 205, 134, 0) 40px),
    /* bokeh: small, brighter specks */
    radial-gradient(circle at 18% 97%, rgba(255, 226, 160, 0.45) 0, rgba(255, 226, 160, 0) 3px),
    radial-gradient(circle at 3% 96%, rgba(255, 226, 160, 0.35) 0, rgba(255, 226, 160, 0) 2px),
    radial-gradient(circle at 52% 97%, rgba(255, 226, 160, 0.40) 0, rgba(255, 226, 160, 0) 3px),
    radial-gradient(circle at 70% 9%, rgba(255, 226, 160, 0.45) 0, rgba(255, 226, 160, 0) 2px),
    radial-gradient(circle at 86% 62%, rgba(255, 226, 160, 0.40) 0, rgba(255, 226, 160, 0) 3px),
    radial-gradient(circle at 96% 84%, rgba(255, 226, 160, 0.35) 0, rgba(255, 226, 160, 0) 2px),
    radial-gradient(circle at 6% 36%, rgba(255, 226, 160, 0.35) 0, rgba(255, 226, 160, 0) 2px),
    radial-gradient(circle at 30% 20%, rgba(255, 226, 160, 0.30) 0, rgba(255, 226, 160, 0) 2px),
    /* diagonal light beam from the top left */
    linear-gradient(118deg, transparent 18%, rgba(240, 205, 134, 0.07) 30%, rgba(240, 205, 134, 0.02) 42%, transparent 52%);
}

/* gold hairline closing off the hero */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 174, 95, 0.6), transparent);
}

/* rising candlestick chart in the background */
.hero-chart {
  position: absolute;
  inset: auto 0 0 0;
  z-index: -1;
  width: 100%;
  height: 78%;
  opacity: 0.22;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 35%, #000 70%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 35%, #000 70%, transparent 100%);
}
.hero-chart line { stroke-width: 2; }
.hero-chart .c-up rect { fill: #D9AE5F; }
.hero-chart .c-up line { stroke: #D9AE5F; }
.hero-chart .c-down rect { fill: #6E5A3A; }
.hero-chart .c-down line { stroke: #6E5A3A; }
.hero-chart .c-trend {
  fill: none;
  stroke: #F0CD86;
  stroke-width: 2.5;
  stroke-linejoin: round;
  opacity: 0.8;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: var(--s-6);
}

.hero h1 {
  font-size: clamp(2.375rem, 3.4vw + 0.5rem, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.005em;
  /* metallic gold, matching the knight logo */
  color: var(--c-gold-bright);
  background: linear-gradient(180deg, #FBEBC4 0%, #E7C27A 38%, #C8963F 70%, #A77A30 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 18px rgba(214, 160, 70, 0.25));
}

.hero-lede {
  max-width: 34rem;
  margin-top: var(--s-3);
  color: var(--c-text-muted);
  font-size: 1.125rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: var(--s-4);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1) var(--s-4);
  margin-top: var(--s-6);
  padding-top: var(--s-3);
  border-top: 1px solid var(--c-line);
  color: var(--c-text-muted);
  font-size: 0.9375rem;
}
.hero-facts strong {
  display: block;
  color: var(--c-gold-bright);
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
}

/* ---------- Hero showcase: Discord screenshot + badge + mini deals ---------- */
.hero-showcase {
  position: relative;
  padding-block: 1.25rem 2.5rem;
}
.hero-showcase::before {
  /* warm glow behind the composite */
  content: "";
  position: absolute;
  inset: 10% 5% 10% 20%;
  background: radial-gradient(closest-side, rgba(184, 137, 59, 0.22), transparent);
  filter: blur(40px);
  z-index: -1;
}

.showcase-frame {
  position: relative;
  z-index: 2; /* in front of the deals card */
  /* fixed offset = exactly the deals card's visible part (medal, logo, name, % off) */
  margin: 0 0 0 16rem;
  padding: 0.625rem;
  background: rgba(26, 24, 21, 0.9);
  border: 1px solid rgba(184, 137, 59, 0.7);
  border-radius: 18px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}
.showcase-frame img {
  width: 100%;
  border-radius: 10px;
}

.showcase-badge {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--c-bg);
  border: 1px solid var(--c-gold);
  border-radius: 999px;
  color: var(--c-gold-bright);
  font-weight: 800;
  font-size: 0.9375rem;
  box-shadow: 0 0 20px rgba(184, 137, 59, 0.2);
}
.showcase-badge svg {
  width: 1.125rem;
  height: 1.125rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.showcase-deals {
  position: absolute;
  z-index: 1; /* behind the Discord frame; its "Buy now" end tucks under it */
  left: -2.5rem; /* reaches into the column gap so the screenshot can stay wide */
  /* vertically centred without transform, so the entrance animation can't fight it */
  top: 0;
  bottom: 0;
  height: fit-content;
  margin-block: auto;
  width: 22rem;
  display: grid;
  gap: 0.375rem;
  padding: 0.625rem;
  background: rgba(15, 14, 12, 0.94);
  border: 1px solid rgba(184, 137, 59, 0.55);
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6);
  color: var(--c-text);
  text-decoration: none;
  transition: border-color 200ms var(--ease-out);
}
.showcase-deals:hover { border-color: var(--c-gold-bright); }

.mini-deal {
  display: grid;
  /* fixed name width keeps every "% off" lined up in the visible part */
  grid-template-columns: 1rem 1.75rem 7.5rem auto 1fr;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.625rem;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 9px;
}
.mini-deal-top {
  border-color: var(--c-gold);
  box-shadow: 0 0 14px rgba(184, 137, 59, 0.2);
}
.mini-rank { width: 1rem; height: 1.375rem; }
.mini-rank svg { display: block; width: 100%; height: 100%; }

.mini-logo {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  overflow: hidden;
  border-radius: 6px;
  background: #FFFFFF;
}
.mini-logo img { width: 100%; height: 100%; object-fit: contain; }
.mini-logo-round { border-radius: 50%; background: #1B2730; }
.mini-logo-round img { width: 104%; height: 104%; max-width: none; object-fit: cover; }

.mini-name {
  overflow: hidden;
  font-weight: 700;
  font-size: 0.8125rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.mini-off {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.15;
}
.mini-off strong { color: var(--c-gold-bright); font-size: 0.875rem; font-weight: 800; }
.mini-off small { color: var(--c-text-muted); font-size: 0.625rem; white-space: nowrap; }

.mini-btn {
  justify-self: end;
  padding: 0.3125rem 0.75rem;
  background: var(--c-gold);
  border-radius: 6px;
  color: var(--c-on-gold);
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
}

/* Wide screens: let the composite reach into the right margin so the screenshot stays large */
@media (min-width: 1200px) {
  .hero-showcase { margin-right: -4rem; }
}

/* One orchestrated entrance, hero only */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * {
    animation: rise 700ms var(--ease-out) both;
  }
  .hero-copy > :nth-child(2) { animation-delay: 80ms; }
  .hero-copy > :nth-child(3) { animation-delay: 160ms; }
  .hero-copy > :nth-child(4) { animation-delay: 240ms; }
  .hero-copy > :nth-child(5) { animation-delay: 320ms; }
  .showcase-frame { animation: emerge 1100ms var(--ease-out) 150ms both; }
  .showcase-badge { animation: rise 600ms var(--ease-out) 700ms both; }
  .showcase-deals { animation: rise 700ms var(--ease-out) 550ms both; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@keyframes emerge {
  from { opacity: 0; transform: scale(0.96); filter: brightness(0.4); }
  to   { opacity: 1; transform: none; filter: none; }
}

/* Medium screens: text on top, the layered composite full width underneath */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .hero-copy { max-width: 40rem; }
  .hero-facts { margin-top: var(--s-4); }
  .hero-showcase { margin-left: 2.5rem; } /* room for the deals card's negative left */
}

/* Phones: stack the composite — screenshot, then the deals card under it */
@media (max-width: 640px) {
  .hero-showcase { padding-block: 1.25rem 0; margin-left: 0; }
  .mini-deal { grid-template-columns: 1rem 1.75rem minmax(0, 1fr) auto; }
  .mini-btn { display: none; } /* only exists to tuck behind the frame on larger screens */
  .showcase-frame { margin-left: 0; }
  .showcase-badge { right: 0.75rem; font-size: 0.875rem; }
  .showcase-frame { margin-left: 0; }
  .showcase-deals {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    width: calc(100% - 1.5rem);
    margin: -1rem auto 0;
  }
}

@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 8vw, 6.5rem); }

.section-head p {
  margin-top: var(--s-2);
  max-width: 36rem;
  color: var(--c-text-muted);
  font-size: 1.0625rem;
}
.section-head .btn { margin-top: var(--s-3); }

.section-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-2) var(--s-6);
  margin-bottom: var(--s-6);
}
.section-head-row p { margin-top: 0; max-width: 30rem; }

.fine-print {
  margin-top: var(--s-4);
  max-width: 48rem;
  color: var(--c-text-muted);
  font-size: 0.875rem;
}

/* ---------- Plans: Free Discord vs Empire VIP ---------- */
.plans { background: var(--c-surface); }

.plans-head {
  margin-bottom: var(--s-6);
  text-align: center;
}
.plans-head p {
  margin: var(--s-2) auto 0;
  max-width: 34rem;
  color: var(--c-text-muted);
  font-size: 1.0625rem;
  text-wrap: balance;
}

.plan-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: var(--s-3);
  max-width: 58rem;
  margin-inline: auto;
  align-items: stretch;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: var(--s-4);
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.plan-vip {
  border-color: var(--c-gold);
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(184, 137, 59, 0.16), transparent 70%),
    var(--c-bg);
  box-shadow: 0 0 0 1px rgba(184, 137, 59, 0.25), 0 0 40px rgba(184, 137, 59, 0.14);
}

.plan-name {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 600;
}
.plan-name img { border-radius: 50%; }

.plan-price {
  margin-top: var(--s-2);
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.plan-amount {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums tabular-nums;
}
.plan-vip .plan-amount { color: var(--c-gold-bright); }
.plan-period { color: var(--c-text-muted); font-weight: 600; }

.plan-summary {
  margin-top: 0.75rem;
  color: var(--c-text-muted);
}

.plan-perks {
  display: grid;
  gap: 0.75rem;
  margin: var(--s-3) 0 var(--s-4);
  padding-top: var(--s-3);
  border-top: 1px solid var(--c-line);
  flex: 1;
  align-content: start;
}
.plan-perks li {
  position: relative;
  padding-left: 1.75rem;
}
.plan-perks li::before {
  /* check mark */
  content: "";
  position: absolute;
  left: 0.125rem;
  top: 0.3rem;
  width: 0.5rem;
  height: 0.875rem;
  border-right: 2px solid var(--c-text-muted);
  border-bottom: 2px solid var(--c-text-muted);
  transform: rotate(40deg);
}
.plan-vip .plan-perks li::before { border-color: var(--c-gold-bright); }

.plan-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: var(--s-2);
  color: var(--c-text-muted);
  font-size: 0.875rem;
}
.plan-note svg {
  width: 1.125rem;
  height: 1.125rem;
  flex: none;
  fill: none;
  stroke: var(--c-gold-bright);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 760px) {
  .plan-grid { grid-template-columns: 1fr; }
  .plan { padding: var(--s-3); }
  .plan-vip { order: -1; } /* paid plan first on phones */
}

/* ---------- Deals ---------- */
.code {
  padding: 0.125rem 0.5rem;
  border: 1px dashed var(--c-gold);
  border-radius: 4px;
  color: var(--c-gold-bright);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.deals {
  background:
    radial-gradient(ellipse 60% 50% at 0% 0%, rgba(184, 137, 59, 0.14), transparent 70%),
    var(--c-bg);
}

.deals-head {
  margin-bottom: var(--s-6);
  text-align: center;
}
.deals-head p {
  margin-top: var(--s-2);
  color: var(--c-text-muted);
  font-size: 1.0625rem;
}

.deal-list {
  display: grid;
  gap: 0.75rem;
  max-width: 54rem;
  margin-inline: auto;
}

.deal {
  display: grid;
  grid-template-columns: 2rem 3rem minmax(0, 1fr) auto auto;
  grid-template-areas: "rank logo firm off btn";
  align-items: center;
  gap: var(--s-3);
  padding: 1.125rem var(--s-3);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  transition: border-color 200ms var(--ease-out);
}
.deal:hover { border-color: rgba(184, 137, 59, 0.6); }

.deal-top {
  border-color: var(--c-gold);
  box-shadow: 0 0 0 1px rgba(184, 137, 59, 0.25), 0 0 28px rgba(184, 137, 59, 0.18);
}
.deal-top:hover { border-color: var(--c-gold-bright); }

/* Rank medal */
.deal-rank {
  grid-area: rank;
  position: relative;
  width: 1.5rem;
  height: 2.0625rem;
  justify-self: center;
}
.deal-rank svg { width: 100%; height: 100%; display: block; }
.deal-rank > span {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1.4rem;
  display: grid;
  place-items: center;
  font-size: 0.6875rem;
  font-weight: 800;
  line-height: 1;
}
.medal-face { fill: var(--medal); }
.medal-ring { fill: none; stroke: rgba(0, 0, 0, 0.28); stroke-width: 1.25; }
.medal-ribbon { fill: var(--medal-dark); }

.rank-gold   { --medal: #D9AE5F; --medal-dark: #9C7330; color: #3A2A0E; }
.rank-silver { --medal: #C9CDD3; --medal-dark: #8E949C; color: #2B2F35; }
.rank-bronze { --medal: #C27F52; --medal-dark: #8A5432; color: #3A2012; }
.rank-iron   { --medal: #55524D; --medal-dark: #3A3733; color: #E9E4DA; }

/* Firm logo tile: white rounded square. Logos with their own background
   (Tradeify, Take Profit Trader) use .deal-logo-fill to fill the tile edge to edge. */
.deal-logo {
  grid-area: logo;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  overflow: hidden;
  border-radius: 10px;
  background: #FFFFFF;
}
.deal-logo img { width: 100%; height: 100%; object-fit: contain; }
.deal-logo-fill img { width: 112%; height: 112%; max-width: none; object-fit: cover; }
/* Circular logos (Take Profit Trader): round tile, cropped just inside the circle edge */
.deal-logo-round { border-radius: 50%; background: #1B2730; }
.deal-logo-round img { width: 104%; height: 104%; max-width: none; object-fit: cover; }

.deal-firm {
  grid-area: firm;
  font-size: 1.1875rem;
}

.deal-off {
  grid-area: off;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
  text-align: right;
}
.deal-off strong {
  color: var(--c-gold-bright);
  font-size: 1.375rem;
  font-weight: 800;
  font-variant-numeric: lining-nums tabular-nums;
}
.deal-off span {
  color: var(--c-text-muted);
  font-size: 0.8125rem;
  white-space: nowrap;
}

.deal-btn {
  grid-area: btn;
  min-height: 2.75rem;
  padding: 0.625rem 1.125rem;
}
.deal-btn svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.deals-code-note {
  margin-top: var(--s-4);
  color: var(--c-text);
  font-weight: 600;
  text-align: center;
}
.deals-fine { margin-inline: auto; text-align: center; }

@media (max-width: 640px) {
  .deal {
    grid-template-columns: 1.5rem 2.75rem minmax(0, 1fr);
    grid-template-areas:
      "rank logo firm"
      "off  off  btn";
    gap: 0.875rem var(--s-2);
    padding: var(--s-2);
  }
  .deal-logo { width: 2.75rem; height: 2.75rem; }
  .deal-firm { font-size: 1.0625rem; }
  .deal-off { align-items: flex-start; text-align: left; }
  .deal-btn { justify-self: end; }
}

/* ---------- Results ---------- */
.results { background: var(--c-surface); }

/* Marquee: rows of screenshots drifting sideways, alternating direction.
   Each row's list is rendered twice so the loop is seamless (translateX -50%). */
.marquee {
  --tile-h: 16.25rem;
  --gap: var(--s-2);
  display: grid;
  gap: var(--gap);
  overflow: hidden;
  /* fade the edges into the section background */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.marquee-row { overflow: hidden; }

.marquee-track {
  display: flex;
  width: max-content;
  gap: var(--gap);
  padding-right: var(--gap); /* keeps spacing equal at the loop seam */
  animation: marquee var(--duration, 60s) linear infinite;
}
.marquee-row:nth-child(even) .marquee-track { animation-direction: reverse; }

/* Pause on hover/focus so people can read or select a screenshot */
.marquee-row:hover .marquee-track,
.marquee-row:focus-within .marquee-track { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee-list { display: flex; gap: var(--gap); }

.result-btn {
  display: block;
  height: var(--tile-h);
  padding: 0;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: #000;
  overflow: hidden;
  cursor: zoom-in;
  transition: border-color 200ms var(--ease-out);
}
.result-btn:hover { border-color: var(--c-gold); }
.result-btn img {
  width: auto;
  height: 100%;
  max-width: 26rem;
  object-fit: contain;
}

.marquee-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: var(--s-4);
}

@media (max-width: 640px) {
  .marquee { --tile-h: 12.5rem; --gap: 0.75rem; }
  .result-btn img { max-width: 18rem; }
}

/* Reduced motion: no drifting. Rows become swipeable strips instead. */
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-row { overflow-x: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
  .marquee-track { animation: none; }
  .marquee-list[aria-hidden="true"] { display: none; }
}

/* ---------- Learn ---------- */
.learn { padding-block: clamp(3rem, 6vw, 4.5rem); }
.learn-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3) var(--s-6);
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}
.learn-inner p { margin-top: 0.75rem; max-width: 36rem; color: var(--c-text-muted); }
.learn h2 { font-size: clamp(1.625rem, 2.4vw + 0.75rem, 2.25rem); }

/* ---------- FAQ ---------- */
.faq { padding-top: clamp(2rem, 4vw, 3rem); }
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: var(--s-8);
  align-items: start;
}

.faq-list details {
  border-top: 1px solid var(--c-line);
}
.faq-list details:last-child { border-bottom: 1px solid var(--c-line); }

.faq-list summary {
  position: relative;
  display: block;
  padding: 1.25rem 2.5rem 1.25rem 0;
  font-weight: 700;
  font-size: 1.0625rem;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  position: absolute;
  right: 0.5rem;
  top: 50%;
  width: 0.625rem;
  height: 0.625rem;
  border-right: 2px solid var(--c-gold-bright);
  border-bottom: 2px solid var(--c-gold-bright);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 200ms var(--ease-out);
}
.faq-list details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-list summary:hover { color: var(--c-gold-bright); }

.faq-list details p {
  padding-bottom: 1.25rem;
  max-width: 40rem;
  color: var(--c-text-muted);
}

@media (max-width: 860px) {
  .faq-grid { grid-template-columns: 1fr; gap: var(--s-4); }
}

/* ---------- Closing CTA ---------- */
.closing {
  padding-block: clamp(4rem, 9vw, 7rem);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(184, 137, 59, 0.18), transparent 60%),
    var(--c-surface);
  border-top: 1px solid var(--c-line);
  text-align: center;
}
.closing-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-2);
}
.closing img { border-radius: 50%; margin-bottom: var(--s-1); }
.closing h2 { font-size: clamp(2.25rem, 4vw + 1rem, 3.5rem); }
.closing p { color: var(--c-text-muted); font-size: 1.125rem; max-width: 34rem; text-wrap: balance; }
.closing-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: var(--s-2);
}
@media (max-width: 480px) {
  .closing-actions { flex-direction: column; align-self: stretch; }
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: var(--s-6);
  border-top: 1px solid var(--c-line);
  font-size: 0.9375rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-4);
  align-items: start;
}
.footer-brand p { margin-top: 0.75rem; color: var(--c-text-muted); }

.socials { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-3); }
.socials a {
  display: inline-block;
  padding: 0.5rem 0;
  color: var(--c-text);
  font-weight: 600;
  text-decoration: none;
}
.socials a:hover { color: var(--c-gold-bright); text-decoration: underline; text-underline-offset: 4px; }

.disclaimer {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.75rem;
  padding-top: var(--s-3);
  border-top: 1px solid var(--c-surface-2);
  color: var(--c-text-muted);
  font-size: 0.8125rem;
  line-height: 1.6;
  max-width: 60rem;
}
.disclaimer strong { color: var(--c-text); font-weight: 700; }

.plan-legal {
  margin-top: 0.5rem;
  color: var(--c-text-muted);
  font-size: 0.8125rem;
  text-align: center;
}

@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: var(--s-2);
  border: 0;
  background: transparent;
  color: var(--c-text);
}
.lightbox[open] {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-2);
}
.lightbox::backdrop { background: rgba(8, 7, 6, 0.92); }

.lightbox figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
.lightbox img {
  max-width: 100%;
  max-height: calc(100dvh - 7rem);
  border-radius: var(--radius-sm);
}
.lightbox figcaption { color: var(--c-text-muted); font-size: 0.875rem; }

.lightbox button {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--c-line);
  border-radius: 50%;
  background: var(--c-surface);
  color: var(--c-text);
  cursor: pointer;
}
.lightbox button:hover { border-color: var(--c-gold); }
.lightbox button svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lightbox-close {
  position: absolute;
  top: var(--s-2);
  right: var(--s-2);
  z-index: 1;
}

@media (max-width: 640px) {
  .lightbox[open] { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; }
  .lightbox figure { grid-column: 1 / -1; grid-row: 1; }
  .lightbox-prev { grid-row: 2; justify-self: end; }
  .lightbox-next { grid-row: 2; justify-self: start; }
}

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