/* =====================================================================
   CardPrepAI — American flag palette · vibrant, bold, high contrast
   Editorial luxury + patriotic energy. Ralph Lauren American, not 4th-of-July kitsch.
   ===================================================================== */

/* Brand palette ====================================================== */
:root {
  /* Backgrounds */
  --ink: #0a0a0a;
  --cream: #ffffff;
  --paper: #f4f6fb;
  --rule: #c8cdd6;

  /* American flag core */
  --red: #BF0A30;
  --red-bright: #E11D2E;
  --red-deep: #8B0820;
  --blue: #002868;
  --blue-bright: #1E40AF;
  --blue-deep: #001947;
  --gold: #FFD700;
  --gold-warm: #FFB81C;

  /* Functional aliases */
  --accent: var(--red);
  --accent-bright: var(--red-bright);
  --muted: #4a5568;
  --muted-strong: #2d3748;

  /* Verdict colors */
  --green: #166534;
  --green-bright: #16a34a;
  --orange: #ea580c;

  --serif: 'Fraunces', ui-serif, Georgia, serif;
  --sans: 'Inter Tight', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max: 1240px;

  /* Drop shadows */
  --shadow-red: 0 8px 28px rgba(191,10,48,0.25);
  --shadow-blue: 0 8px 28px rgba(0,40,104,0.25);
  --shadow-ink: 0 12px 36px rgba(10,10,10,0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-feature-settings: 'ss01', 'cv11';
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--ink); color: var(--cream); padding: .5rem 1rem; z-index: 100; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* =====================================================================
   GLOBAL DECORATIVE SYSTEM — stars, stripes, holo, gradients
   ===================================================================== */

/* Star-field background — faint navy stars on white, repeating */
.star-field {
  background-image:
    radial-gradient(circle at 8% 12%,  rgba(0,40,104,0.18) 1px, transparent 2px),
    radial-gradient(circle at 28% 38%, rgba(0,40,104,0.10) 1px, transparent 2px),
    radial-gradient(circle at 52% 18%, rgba(191,10,48,0.10) 1px, transparent 2px),
    radial-gradient(circle at 72% 62%, rgba(0,40,104,0.14) 1px, transparent 2px),
    radial-gradient(circle at 88% 28%, rgba(0,40,104,0.10) 1px, transparent 2px),
    radial-gradient(circle at 18% 82%, rgba(191,10,48,0.08) 1px, transparent 2px),
    radial-gradient(circle at 62% 88%, rgba(0,40,104,0.12) 1px, transparent 2px),
    radial-gradient(circle at 38% 62%, rgba(255,215,0,0.10) 1px, transparent 2px);
  background-size: 420px 420px;
  background-position: 0 0;
}

/* Tricolor bar — appears as section dividers and accents */
.tricolor {
  display: block;
  height: 6px;
  background: linear-gradient(90deg,
    var(--red) 0%, var(--red) 33.33%,
    #ffffff 33.33%, #ffffff 66.66%,
    var(--blue) 66.66%, var(--blue) 100%);
}
.tricolor-thin { height: 3px; }
.tricolor-thick { height: 10px; }

/* Diagonal striped accent (red+white candy-stripe) */
.candy-stripe {
  background-image: repeating-linear-gradient(45deg,
    var(--red) 0 14px,
    #ffffff 14px 28px);
}

/* Diagonal blue-white-red sweeping band */
.sweep-band {
  background: linear-gradient(115deg,
    var(--blue-deep) 0%,
    var(--blue) 30%,
    var(--blue-bright) 45%,
    #ffffff 50%,
    #ffffff 52%,
    var(--red-bright) 56%,
    var(--red) 72%,
    var(--red-deep) 100%);
}

/* Holographic foil shimmer — used on hover for "trading-card" effects */
.holo-foil {
  position: relative;
  overflow: hidden;
}
.holo-foil::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg,
    transparent 0%, transparent 30%,
    rgba(255,255,255,0.18) 38%,
    rgba(255,215,0,0.25) 45%,
    rgba(255,255,255,0.32) 50%,
    rgba(30,64,175,0.18) 55%,
    rgba(225,29,46,0.15) 62%,
    transparent 70%, transparent 100%);
  background-size: 300% 300%;
  background-position: -150% -150%;
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease;
}
.holo-foil:hover::after,
.holo-foil:focus-within::after {
  opacity: 1;
  animation: holoSlide 1.6s linear infinite;
}
@keyframes holoSlide {
  0%   { background-position: -150% -150%; }
  100% { background-position: 150% 150%; }
}

/* Decorative star glyph */
.star::before {
  content: "★";
  color: var(--gold);
  font-size: 0.9em;
  display: inline-block;
  margin-right: .35em;
  transform: translateY(-1px);
}

/* Floating star — sprinkled in hero, drifts slowly */
.float-star {
  position: absolute;
  color: var(--gold);
  opacity: .55;
  font-size: 18px;
  pointer-events: none;
  animation: drift 14s ease-in-out infinite alternate;
  text-shadow: 0 0 12px rgba(255,215,0,0.55);
}
@keyframes drift {
  0%   { transform: translate(0, 0) rotate(0deg); }
  50%  { transform: translate(12px, -18px) rotate(180deg); }
  100% { transform: translate(-8px, 14px) rotate(360deg); }
}

/* =====================================================================
   SCROLL REVEAL — opacity + transform, JS adds .is-visible
   ===================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.16,.84,.32,1),
              transform .8s cubic-bezier(.16,.84,.32,1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity .9s cubic-bezier(.16,.84,.32,1),
              transform .9s cubic-bezier(.16,.84,.32,1);
}
.reveal-left.is-visible { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity .9s cubic-bezier(.16,.84,.32,1),
              transform .9s cubic-bezier(.16,.84,.32,1);
}
.reveal-right.is-visible { opacity: 1; transform: translateX(0); }
.reveal-scale {
  opacity: 0;
  transform: scale(.92);
  transition: opacity .7s ease, transform .7s cubic-bezier(.16,.84,.32,1);
}
.reveal-scale.is-visible { opacity: 1; transform: scale(1); }

/* Stagger children: parent has .stagger, JS adds .is-visible to parent */
.stagger > * { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s cubic-bezier(.16,.84,.32,1); }
.stagger.is-visible > *:nth-child(1)  { opacity: 1; transform: none; transition-delay: .00s; }
.stagger.is-visible > *:nth-child(2)  { opacity: 1; transform: none; transition-delay: .06s; }
.stagger.is-visible > *:nth-child(3)  { opacity: 1; transform: none; transition-delay: .12s; }
.stagger.is-visible > *:nth-child(4)  { opacity: 1; transform: none; transition-delay: .18s; }
.stagger.is-visible > *:nth-child(5)  { opacity: 1; transform: none; transition-delay: .24s; }
.stagger.is-visible > *:nth-child(6)  { opacity: 1; transform: none; transition-delay: .30s; }
.stagger.is-visible > *:nth-child(7)  { opacity: 1; transform: none; transition-delay: .36s; }
.stagger.is-visible > *:nth-child(8)  { opacity: 1; transform: none; transition-delay: .42s; }
.stagger.is-visible > *:nth-child(9)  { opacity: 1; transform: none; transition-delay: .48s; }
.stagger.is-visible > *:nth-child(n+10){ opacity: 1; transform: none; transition-delay: .54s; }

/* =====================================================================
   TOPBAR
   ===================================================================== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: #ffffff;
  border-bottom: 4px solid var(--red);
  box-shadow: 0 4px 14px rgba(0,40,104,0.10);
  backdrop-filter: saturate(140%);
}
.topbar::before {
  content: ""; display: block; height: 4px;
  background: linear-gradient(90deg,
    var(--red) 0%, var(--red) 33.33%,
    #ffffff 33.33%, #ffffff 66.66%,
    var(--blue) 66.66%, var(--blue) 100%);
  background-size: 300% 100%;
  animation: stripeShift 18s linear infinite;
}
@keyframes stripeShift {
  0%   { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px; padding-bottom: 18px;
  gap: 24px;
}
.brand { flex-shrink: 0; }
.topbar nav { flex-wrap: nowrap; }
.brand { display: inline-flex; align-items: baseline; gap: 8px; text-decoration: none; color: var(--ink); }
.brand-mark {
  color: var(--red); font-size: 22px;
  transform: translateY(1px);
  display: inline-block;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
}
.brand:hover .brand-mark { transform: translateY(1px) rotate(180deg) scale(1.15); }
.brand-word {
  font-family: var(--serif); font-weight: 700; font-size: 24px;
  letter-spacing: -.015em; color: var(--blue-deep);
  margin-right: 8px;
}
.brand-word em { font-style: normal; color: var(--red); }

.topbar nav { display: flex; gap: 22px; align-items: center; font-size: 14px; font-weight: 500; white-space: nowrap; }
@media (max-width: 1100px) { .topbar nav { gap: 16px; font-size: 13px; } }
.topbar nav a { color: var(--ink); text-decoration: none; transition: color .15s; position: relative; white-space: nowrap; }
.topbar nav a:not(.nav-cta)::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s cubic-bezier(.16,.84,.32,1);
}
.topbar nav a:not(.nav-cta):hover { color: var(--red); }
.topbar nav a:not(.nav-cta):hover::after { transform: scaleX(1); }
.topbar nav a[aria-current="page"] { color: var(--red); font-weight: 600; }
.topbar nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav-cta {
  background: var(--red); color: #ffffff !important;
  padding: 10px 18px; border-radius: 100px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(191,10,48,0.32);
  transition: all .2s cubic-bezier(.16,.84,.32,1);
  position: relative;
  overflow: hidden;
}
.nav-cta::before {
  content: "";
  position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transition: left .55s ease;
}
.nav-cta:hover { background: var(--red-bright); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(225,29,46,0.45); }
.nav-cta:hover::before { left: 100%; }

/* =====================================================================
   EYEBROWS + SECTION HEADERS
   ===================================================================== */
.eyebrow {
  font-family: var(--sans);
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .18em;
  color: var(--accent);
  margin: 0 0 22px;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--accent);
  display: inline-block;
}
.section-h {
  font-family: var(--serif);
  font-weight: 500; font-size: clamp(36px, 5.6vw, 72px);
  line-height: 1.02; letter-spacing: -.028em;
  margin: 0 0 28px;
  max-width: 22ch;
}
.section-h em { font-style: italic; color: var(--red); }

/* =====================================================================
   HERO — bold, animated, asymmetric
   ===================================================================== */
.hero {
  padding: 88px 0 64px;
  position: relative;
  overflow: hidden;
  background: #ffffff;
  isolation: isolate;
}
/* Layered animated stripes behind hero — three bands sweeping at different rates */
.hero::before {
  content: "";
  position: absolute;
  top: -10%; left: -5%; right: -5%; bottom: -10%;
  background-image:
    linear-gradient(115deg, transparent 0%, transparent 18%, rgba(191,10,48,0.05) 18%, rgba(191,10,48,0.05) 21%, transparent 21%),
    linear-gradient(115deg, transparent 0%, transparent 58%, rgba(0,40,104,0.04) 58%, rgba(0,40,104,0.04) 62%, transparent 62%),
    linear-gradient(115deg, transparent 0%, transparent 78%, rgba(255,215,0,0.05) 78%, rgba(255,215,0,0.05) 80%, transparent 80%);
  z-index: -2;
  animation: heroStripe 28s linear infinite alternate;
}
.hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    radial-gradient(circle at 12% 22%, rgba(255,215,0,0.10) 0px, transparent 80px),
    radial-gradient(circle at 88% 70%, rgba(191,10,48,0.10) 0px, transparent 120px),
    radial-gradient(circle at 32% 84%, rgba(0,40,104,0.08) 0px, transparent 110px);
  z-index: -1;
  pointer-events: none;
}
@keyframes heroStripe {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(-40px, 30px); }
}

.hero-wrap {
  padding-bottom: 48px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.hero-left { position: relative; z-index: 2; }
.hero-right { position: relative; min-height: 480px; }

.hero-h {
  font-family: var(--serif);
  font-weight: 400; font-size: clamp(48px, 7.6vw, 110px);
  line-height: 0.96; letter-spacing: -.032em;
  margin: 0 0 28px;
}
.hero-h .display-italic {
  font-style: italic;
  color: var(--red);
  position: relative;
  display: inline-block;
}
.hero-h .display-italic::after {
  content: "";
  position: absolute; left: -4%; right: -4%; bottom: 6%;
  height: 14%;
  background: var(--gold);
  z-index: -1;
  opacity: .55;
  transform: skewX(-12deg);
}
.hero-h .stamp {
  display: inline-block;
  background: var(--ink);
  color: var(--cream);
  padding: 0 .18em;
  transform: rotate(-1.5deg);
  font-style: italic;
  box-shadow: 4px 4px 0 var(--red);
}
.ink-line {
  background: linear-gradient(transparent 68%, color-mix(in srgb, var(--accent) 35%, transparent) 68%);
  padding: 0 .12em;
}
.accent { color: var(--accent); font-style: italic; }

.hero-sub {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  max-width: 58ch;
  color: var(--muted-strong);
  margin: 0 0 32px;
  font-weight: 400;
}
.hero-sub em { font-style: italic; color: var(--ink); font-weight: 500; }
.hero-sub strong { color: var(--red); font-weight: 600; }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* Buttons ============================================================ */
.btn {
  display: inline-flex;
  align-items: center; justify-content: center; gap: 8px;
  padding: 15px 28px;
  border-radius: 100px;
  font-weight: 600; font-size: 15px;
  text-decoration: none;
  transition: transform .15s cubic-bezier(.16,.84,.32,1), background .15s, color .15s, box-shadow .2s;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.btn:active { transform: translateY(1px); }
.btn::before {
  content: "";
  position: absolute; top: 0; left: -120%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.32), transparent);
  transition: left .55s ease;
}
.btn:hover::before { left: 120%; }

.btn-primary {
  background: var(--red); color: #fff;
  box-shadow: 0 6px 20px rgba(191,10,48,0.32);
  letter-spacing: .01em;
}
.btn-primary:hover { background: var(--red-bright); box-shadow: 0 12px 28px rgba(225,29,46,0.45); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
  font-weight: 600;
}
.btn-ghost:hover { background: var(--blue); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,40,104,0.30); }

.btn-lg { padding: 18px 32px; font-size: 16px; }

.hero-note {
  font-size: 13px; color: var(--muted-strong);
  margin: 22px 0 0;
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
}
.hero-note::before { content: "★"; color: var(--gold-warm); }

/* Hero right side — floating card stack ============================== */
.card-stack {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.float-card {
  position: absolute;
  width: 220px; height: 308px;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(10,10,10,0.25), 0 6px 14px rgba(10,10,10,0.12);
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 22px 18px;
  color: #ffffff;
  transition: transform .35s cubic-bezier(.16,.84,.32,1), box-shadow .3s;
  cursor: default;
  border: 3px solid #ffffff;
}
.float-card .fc-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 700;
  opacity: .9;
}
.float-card .fc-headline {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -.02em;
  margin: 8px 0;
}
.float-card .fc-meta {
  font-size: 12px;
  opacity: .85;
  font-weight: 500;
}
.float-card .fc-star {
  position: absolute; top: 14px; right: 16px;
  color: var(--gold); font-size: 16px;
  filter: drop-shadow(0 0 6px rgba(255,215,0,0.6));
}

.float-card-1 {
  background: linear-gradient(155deg, var(--blue-deep) 0%, var(--blue) 60%, var(--blue-bright) 100%);
  transform: translate(-90px, -40px) rotate(-9deg);
  z-index: 1;
  animation: floatA 7s ease-in-out infinite alternate;
}
.float-card-2 {
  background: linear-gradient(155deg, var(--red-deep) 0%, var(--red) 60%, var(--red-bright) 100%);
  transform: translate(50px, -10px) rotate(7deg);
  z-index: 3;
  animation: floatB 9s ease-in-out infinite alternate;
}
.float-card-3 {
  background: linear-gradient(155deg, #1a1a1a 0%, #0a0a0a 100%);
  transform: translate(-20px, 80px) rotate(-3deg);
  z-index: 2;
  animation: floatC 8s ease-in-out infinite alternate;
}
.float-card-3 .fc-headline { color: var(--gold); }

@keyframes floatA {
  0%   { transform: translate(-90px, -40px) rotate(-9deg); }
  100% { transform: translate(-78px, -52px) rotate(-7.5deg); }
}
@keyframes floatB {
  0%   { transform: translate(50px, -10px) rotate(7deg); }
  100% { transform: translate(62px, -22px) rotate(8.5deg); }
}
@keyframes floatC {
  0%   { transform: translate(-20px, 80px) rotate(-3deg); }
  100% { transform: translate(-8px, 70px) rotate(-1.5deg); }
}

.float-card:hover {
  transform: scale(1.06) rotate(0deg) !important;
  box-shadow: 0 36px 72px rgba(10,10,10,0.35), 0 8px 18px rgba(10,10,10,0.15);
  z-index: 10 !important;
  animation-play-state: paused;
}

.float-card .holo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(115deg,
    transparent 30%,
    rgba(255,255,255,0.15) 45%,
    rgba(255,215,0,0.2) 50%,
    rgba(255,255,255,0.15) 55%,
    transparent 70%);
  background-size: 300% 300%;
  background-position: -150% -150%;
  pointer-events: none;
  mix-blend-mode: screen;
  animation: holoSlide 5s linear infinite;
}

/* =====================================================================
   STATS GRID under hero — big-number "trading-card" treatment
   ===================================================================== */
.hero-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: var(--max);
  margin: 28px auto 0;
  padding: 0 24px;
  position: relative;
}
.grid-card {
  background: #ffffff;
  border: 2px solid var(--rule);
  padding: 26px 22px;
  display: flex; flex-direction: column; gap: 6px;
  border-radius: 10px;
  position: relative;
  transition: transform .3s cubic-bezier(.16,.84,.32,1), border-color .3s, box-shadow .3s;
  overflow: hidden;
}
.grid-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--blue));
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s cubic-bezier(.16,.84,.32,1);
}
.grid-card:hover { transform: translateY(-6px); border-color: var(--blue); box-shadow: 0 14px 32px rgba(0,40,104,0.15); }
.grid-card:hover::before { transform: scaleX(1); }
.grid-label { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--blue); font-weight: 700; }
.grid-value {
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1; font-weight: 600;
  letter-spacing: -.022em;
  color: var(--ink);
}
.grid-meta { font-size: 12px; color: var(--muted-strong); margin-top: 4px; font-weight: 500; }
.grid-verdict {
  background: linear-gradient(155deg, var(--red-deep), var(--red));
  color: var(--cream);
  border-color: var(--red);
  box-shadow: 0 10px 28px rgba(191,10,48,0.30);
}
.grid-verdict::before { background: linear-gradient(90deg, var(--gold), #fff, var(--gold)); transform: scaleX(1); }
.grid-verdict .grid-label { color: var(--gold); }
.grid-verdict .grid-meta { color: rgba(255,255,255,0.9); }
.grid-verdict .grid-value { color: #ffffff; font-style: italic; }
.grid-verdict:hover { transform: translateY(-6px); border-color: var(--gold); }

/* =====================================================================
   TICKER (marquee) — live record sales
   ===================================================================== */
.ticker {
  background: var(--ink);
  color: var(--cream);
  padding: 16px 0;
  overflow: hidden;
  position: relative;
  border-top: 4px solid var(--red);
  border-bottom: 4px solid var(--blue);
}
.ticker::before, .ticker::after {
  content: "";
  position: absolute; top: 0; bottom: 0;
  width: 80px; z-index: 2;
  pointer-events: none;
}
.ticker::before { left: 0; background: linear-gradient(90deg, var(--ink), transparent); }
.ticker::after  { right: 0; background: linear-gradient(-90deg, var(--ink), transparent); }
.ticker-track {
  display: flex;
  gap: 56px;
  white-space: nowrap;
  animation: tickerMove 55s linear infinite;
  width: max-content;
}
.ticker-item {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 15px; font-weight: 500;
  letter-spacing: .01em;
}
.ticker-item strong {
  font-family: var(--serif);
  font-weight: 600; font-style: italic;
  color: var(--gold);
  font-size: 17px;
}
.ticker-item .dot { color: var(--red-bright); }
.ticker-item .ticker-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--blue-bright);
  padding: 3px 10px;
  background: rgba(30,64,175,0.18);
  border: 1px solid rgba(30,64,175,0.35);
  border-radius: 100px;
  font-weight: 700;
}
@keyframes tickerMove {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =====================================================================
   HOW — three steps with big serif numbers
   ===================================================================== */
.how { padding: 120px 0; position: relative; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.how::before {
  content: "";
  position: absolute; top: 60px; right: -120px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(0,40,104,0.07), transparent 70%);
  z-index: -1;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.step { padding: 0; position: relative; }
.step-num {
  font-family: var(--serif);
  font-size: clamp(72px, 9vw, 120px); font-weight: 400;
  background: linear-gradient(180deg, var(--red) 0%, var(--red-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block; line-height: .9;
  margin-bottom: 14px;
  letter-spacing: -.05em;
  font-style: italic;
}
.step h3 {
  font-family: var(--serif);
  font-size: 26px; font-weight: 600;
  margin: 0 0 10px;
  letter-spacing: -.018em;
  color: var(--ink);
}
.step p { color: var(--muted-strong); margin: 0; font-size: 16px; line-height: 1.6; }

/* =====================================================================
   WHY (kept for backward compat) =====================================
   ===================================================================== */
.why { padding: 120px 0; border-bottom: 1px solid var(--rule); }
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px; }
.why-card { padding: 32px; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper); }
.why-card h3 { font-family: var(--serif); font-size: 24px; font-weight: 500; margin: 0 0 12px; letter-spacing: -.015em; }
.why-card p { color: var(--muted); margin: 0; line-height: 1.6; }
.why-card em { font-style: italic; color: var(--ink); }

/* =====================================================================
   PRICING — bold, with feature card popping
   ===================================================================== */
.pricing { padding: 120px 0; border-bottom: 1px solid var(--rule); position: relative; }
.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
/* 6-tier layout — 3×2 on desktop, 2×3 on tablet, stacked on mobile */
.tiers.tiers-6 {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1100px) {
  .tiers.tiers-6 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .tiers, .tiers.tiers-6 { grid-template-columns: 1fr; }
}
.tier {
  background: #ffffff;
  border: 2px solid var(--rule);
  padding: 32px;
  display: flex; flex-direction: column;
  border-radius: 14px;
  position: relative;
  transition: transform .3s cubic-bezier(.16,.84,.32,1), border-color .3s, box-shadow .3s;
}
/* Top gradient bar inside the card — clipped via border-radius, no overflow:hidden needed */
.tier > * { position: relative; z-index: 1; }
.tier:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(0,40,104,0.10); border-color: var(--blue); }
.tier::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 6px; background: linear-gradient(90deg, var(--red), var(--blue));
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s cubic-bezier(.16,.84,.32,1);
  border-radius: 12px 12px 0 0;
}
.tier:hover::before { transform: scaleX(1); }

.tier-feature {
  background: linear-gradient(155deg, var(--blue-deep) 0%, var(--blue) 100%);
  color: var(--cream); border: 2px solid var(--gold);
  transform: translateY(-16px);
  box-shadow: 0 20px 48px rgba(0,40,104,0.30);
}
.tier-feature::before {
  background: linear-gradient(90deg, var(--gold), var(--red-bright), var(--gold));
  transform: scaleX(1);
  height: 8px;
}
.tier-feature:hover { transform: translateY(-22px); }
.tier-feature::after {
  content: "★";
  position: absolute; top: 14px; right: 18px;
  color: var(--gold); font-size: 22px;
  filter: drop-shadow(0 0 6px rgba(255,215,0,0.6));
}
.tier-tag {
  display: inline-block;
  background: var(--red); color: #ffffff;
  padding: 6px 14px; border-radius: 100px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em;
  box-shadow: 0 4px 10px rgba(191,10,48,0.30);
  margin: 0 0 14px;
  align-self: flex-start;
  position: relative; z-index: 2;
}
.tier header { display: flex; flex-direction: column; align-items: flex-start; }
.tier h3 {
  font-family: var(--serif);
  font-size: 32px; font-weight: 600;
  margin: 0 0 6px;
  letter-spacing: -.02em;
}
.tier-price {
  font-family: var(--serif);
  font-size: clamp(56px, 6vw, 72px); font-weight: 600;
  margin: 0 0 28px;
  letter-spacing: -.035em;
  line-height: 1;
}
.tier-feature .tier-price { color: var(--gold); font-style: italic; }
.tier-price span { font-size: 18px; color: var(--muted); margin-left: 4px; font-style: normal; }
.tier-feature .tier-price span { color: rgba(255,255,255,0.7); }
.tier ul { list-style: none; padding: 0; margin: 0 0 32px; flex: 1; }
.tier li {
  padding: 12px 0 12px 26px;
  border-bottom: 1px solid color-mix(in srgb, currentColor 14%, transparent);
  font-size: 15px;
  position: relative;
}
.tier li::before {
  content: "★";
  position: absolute; left: 0; top: 12px;
  color: var(--red);
  font-size: 13px;
}
.tier-feature li::before { color: var(--gold); }
.tier li:last-child { border-bottom: 0; }
.tier li strong { color: var(--ink); font-weight: 700; }
.tier-feature li strong { color: var(--gold); }

.btn-tier {
  display: block; text-align: center;
  background: #ffffff; color: var(--ink); border: 2px solid var(--ink);
  padding: 14px 24px; border-radius: 100px;
  font-weight: 700; text-decoration: none;
  transition: all .2s cubic-bezier(.16,.84,.32,1);
}
.btn-tier:hover { background: var(--ink); color: #ffffff; transform: translateY(-2px); }
.btn-feature {
  background: var(--red); color: #ffffff; border-color: var(--red);
  box-shadow: 0 8px 20px rgba(191,10,48,0.40);
}
.btn-feature:hover { background: var(--red-bright); color: #ffffff; border-color: var(--red-bright); transform: translateY(-2px); box-shadow: 0 14px 28px rgba(225,29,46,0.50); }

.pricing-note { text-align: center; margin: 48px 0 0; font-size: 15px; color: var(--muted-strong); font-weight: 500; }
.pricing-note a { color: var(--red); text-decoration: none; font-weight: 700; border-bottom: 2px solid var(--red); padding-bottom: 1px; }
.pricing-note a:hover { color: var(--red-bright); border-color: var(--red-bright); }

/* Lifetime Founder tier — premium gold treatment */
.tier-founder {
  background:
    radial-gradient(ellipse at 18% 22%, rgba(255,215,0,0.20) 0%, transparent 55%),
    radial-gradient(ellipse at 82% 78%, rgba(225,29,46,0.18) 0%, transparent 55%),
    linear-gradient(155deg, #0a0a0a 0%, #1a1410 60%, #2a1a08 100%);
  color: #fff;
  border: 2px solid var(--gold);
  box-shadow: 0 18px 44px rgba(255,184,28,0.18), 0 4px 12px rgba(0,0,0,0.35);
  position: relative;
  overflow: hidden; /* needed for FOUNDER watermark clipping */
}
.tier-founder > * { position: relative; z-index: 1; }
/* Pill tab needs to escape the founder card — render above with negative top + z-index */
.tier-founder .tier-tag,
.tier-founder .founder-counter {
  z-index: 3;
}
.tier-founder::before {
  background: linear-gradient(90deg, var(--gold), var(--gold-warm), var(--red), var(--gold));
  transform: scaleX(1);
  height: 8px;
  animation: stripeShift 8s linear infinite;
  background-size: 300% 100%;
}
.tier-founder::after {
  content: "★ FOUNDER";
  position: absolute; bottom: 22px; right: -42px;
  background: var(--gold); color: var(--blue-deep);
  font: 700 10px var(--sans);
  letter-spacing: 0.20em;
  padding: 5px 50px;
  transform: rotate(-35deg);
  opacity: 0.45;
  pointer-events: none;
}
.tier-founder:hover { transform: translateY(-10px); box-shadow: 0 26px 56px rgba(255,184,28,0.32), 0 6px 16px rgba(0,0,0,0.45); border-color: var(--gold-warm); }
.tier-founder h3 { color: #fff; }
.tier-founder .tier-price { color: var(--gold); font-style: italic; }
.tier-founder .tier-price span { color: rgba(255,255,255,0.72); font-style: normal; }
.tier-founder li {
  border-bottom-color: rgba(255,215,0,0.18);
  color: rgba(255,255,255,0.92);
}
.tier-founder li::before { color: var(--gold); }
.tier-founder li strong { color: var(--gold); font-weight: 700; }

/* Founder cap counter */
.founder-counter {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: rgba(255,215,0,0.18);
  border: 1px solid var(--gold);
  border-radius: 100px;
  font: 700 12px var(--sans);
  color: var(--gold);
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.founder-counter::before {
  content: "●";
  color: var(--green-bright);
  animation: livePulse 2s ease-in-out infinite;
}

/* =====================================================================
   WAITLIST — bleed-to-edge bold patriotic band
   ===================================================================== */
.waitlist {
  padding: 120px 0;
  background:
    radial-gradient(ellipse at 18% 22%, rgba(191,10,48,0.45) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 78%, rgba(255,215,0,0.18) 0%, transparent 55%),
    linear-gradient(160deg, var(--blue-deep) 0%, var(--blue) 60%, #001536 100%);
  color: var(--cream);
  border-bottom: 4px solid var(--red);
  position: relative;
  overflow: hidden;
}
/* Star field overlay */
.waitlist::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 12% 18%, var(--gold) 1px, transparent 2px),
    radial-gradient(circle at 28% 62%, rgba(255,255,255,0.7) 1px, transparent 2px),
    radial-gradient(circle at 48% 28%, var(--gold) 1px, transparent 2px),
    radial-gradient(circle at 68% 78%, rgba(255,255,255,0.5) 1px, transparent 2px),
    radial-gradient(circle at 84% 38%, var(--gold) 1px, transparent 2px),
    radial-gradient(circle at 92% 88%, rgba(255,255,255,0.6) 1px, transparent 2px);
  background-size: 480px 480px;
  opacity: .55;
  animation: twinkle 6s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes twinkle {
  0%   { opacity: .35; }
  100% { opacity: .8;  }
}
.waitlist::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--red) 0%, var(--red) 33.33%, #ffffff 33.33%, #ffffff 66.66%, var(--blue-bright) 66.66%, var(--blue-bright) 100%);
}
.waitlist .wrap { position: relative; z-index: 2; }
.waitlist .eyebrow { color: var(--gold); }
.waitlist .eyebrow::before { background: var(--gold); }
.waitlist .section-h { color: var(--cream); }
.waitlist .section-h em { color: var(--gold); font-style: italic; }
.waitlist-sub {
  font-size: 19px;
  max-width: 60ch;
  color: rgba(255,255,255,0.88);
  margin: 0 0 40px;
  line-height: 1.55;
}
.waitlist-sub strong { color: var(--gold); font-weight: 700; }
.wl-form { max-width: 620px; }
.wl-label {
  display: block; font-size: 12px;
  text-transform: uppercase; letter-spacing: .16em;
  margin-bottom: 12px; color: var(--gold);
  font-weight: 700;
}
.wl-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: stretch; }
.wl-row input[type="email"] {
  flex: 1; min-width: 260px;
  padding: 18px 22px;
  background: rgba(255,255,255,0.10);
  border: 2px solid rgba(255,255,255,0.25);
  color: var(--cream);
  font-family: var(--sans); font-size: 16px;
  font-weight: 500;
  border-radius: 100px;
  outline: none;
  transition: all .2s;
}
.wl-row input::placeholder { color: rgba(255,255,255,0.55); }
.wl-row input:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,0.18);
  box-shadow: 0 0 0 4px rgba(255,215,0,0.18);
}
.wl-row .btn-primary {
  background: var(--red);
  border: 2px solid var(--red);
  padding: 18px 28px;
  font-size: 16px;
  box-shadow: 0 8px 22px rgba(191,10,48,0.45);
}
.wl-row .btn-primary:hover { background: var(--red-bright); border-color: var(--red-bright); }
.wl-checkbox {
  display: flex; align-items: flex-start; gap: 12px;
  margin-top: 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.78);
  line-height: 1.55;
}
.wl-checkbox input { margin-top: 4px; flex-shrink: 0; accent-color: var(--red); }
.wl-checkbox a { color: var(--gold); font-weight: 600; }
.wl-status { margin-top: 18px; min-height: 22px; font-size: 14px; color: var(--gold); font-weight: 600; }

/* =====================================================================
   FAQ
   ===================================================================== */
.faq { padding: 120px 0; position: relative; }
.faq details {
  border-bottom: 2px solid var(--rule);
  padding: 26px 0;
  transition: border-color .2s;
}
.faq details[open] { border-color: var(--red); }
.faq summary {
  font-family: var(--serif);
  font-size: 22px; font-weight: 600;
  cursor: pointer;
  list-style: none;
  letter-spacing: -.01em;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--ink);
  transition: color .15s;
}
.faq summary:hover { color: var(--red); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  color: var(--red);
  font-size: 32px; font-weight: 300;
  transition: transform .3s cubic-bezier(.16,.84,.32,1);
  font-family: var(--serif);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details p { color: var(--muted-strong); margin: 16px 0 0; line-height: 1.65; max-width: 72ch; font-size: 16px; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer {
  background: var(--ink); color: var(--cream);
  padding: 80px 0 40px;
  border-top: 4px solid var(--red);
  position: relative;
}
.footer::before {
  content: "";
  position: absolute; top: -4px; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red) 0%, var(--red) 33.33%, #ffffff 33.33%, #ffffff 66.66%, var(--blue) 66.66%, var(--blue) 100%);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 48px;
  border-bottom: 1px solid color-mix(in srgb, var(--cream) 15%, transparent);
}
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .foot-grid { grid-template-columns: 1fr; gap: 28px; } }
.foot-brand {
  font-family: var(--serif);
  font-size: 32px; font-weight: 700;
  margin: 0;
  letter-spacing: -.015em;
}
.foot-brand em { font-style: normal; color: var(--red-bright); }
.foot-tag { color: rgba(255,255,255,0.7); margin: 4px 0 0; }
.foot-links, .foot-legal {
  display: flex; flex-direction: column; gap: 10px;
  font-size: 14px;
}
.foot-links a, .foot-legal a {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  transition: color .15s;
}
.foot-links a:hover, .foot-legal a:hover { color: var(--gold); }
.foot-fine {
  margin: 32px 0 0;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  max-width: 80ch;
  line-height: 1.6;
}
.foot-fine strong { color: rgba(255,255,255,0.78); font-weight: 600; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1000px) {
  .hero-wrap { grid-template-columns: 1fr; gap: 24px; }
  .hero-right { min-height: 360px; }
  .float-card { width: 180px; height: 252px; }
}
@media (max-width: 880px) {
  .topbar nav { gap: 16px; font-size: 14px; }
  .topbar nav a:not(.nav-cta) { display: none; }
  .hero { padding: 60px 0 48px; }
  .hero-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 48px; }
  .why-grid { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr; }
  .tier-feature { transform: none; }
  .tier-feature:hover { transform: translateY(-6px); }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
  .how, .why, .pricing, .waitlist, .faq { padding: 80px 0; }
}
@media (max-width: 480px) {
  .hero-grid { grid-template-columns: 1fr; }
  .wl-row { flex-direction: column; }
  .wl-row .btn-primary { width: 100%; }
  .float-card { width: 160px; height: 224px; padding: 18px 16px; }
  .float-card .fc-headline { font-size: 24px; }
}

/* =====================================================================
   CATEGORIES grid — bold patriotic mini-tiles
   ===================================================================== */
.categories { padding: 120px 0; border-bottom: 1px solid var(--rule); position: relative; }
.section-sub {
  font-size: 18px; max-width: 64ch;
  color: var(--muted-strong); margin: 0 0 56px;
  line-height: 1.55; font-weight: 400;
}
.section-sub em { color: var(--red); font-style: italic; font-weight: 500; }
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.cat-card {
  padding: 28px 24px;
  border: 2px solid var(--rule);
  border-radius: 10px;
  background: #ffffff;
  transition: transform .25s cubic-bezier(.16,.84,.32,1), border-color .2s, box-shadow .25s, background .2s;
  position: relative;
  overflow: hidden;
  cursor: default;
}
.cat-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--red), var(--blue));
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s cubic-bezier(.16,.84,.32,1);
}
.cat-card::after {
  content: "★";
  position: absolute; top: 18px; right: 20px;
  color: var(--gold); font-size: 14px;
  opacity: 0;
  transition: opacity .2s, transform .3s;
}
.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(0,40,104,0.14);
}
.cat-card:hover::before { transform: scaleX(1); }
.cat-card:hover::after { opacity: 1; transform: rotate(72deg); }
.cat-icon {
  font-size: 32px; line-height: 1;
  display: block; margin-bottom: 14px;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.cat-card:hover .cat-icon { transform: scale(1.15) rotate(-8deg); }
.cat-card h3 {
  font-family: var(--serif);
  font-size: 22px; font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -.015em;
  color: var(--ink);
}
.cat-card p { color: var(--muted-strong); margin: 0; font-size: 14px; line-height: 1.55; }

.cat-sports:hover    { border-color: #a8492a; }
.cat-poke:hover      { border-color: var(--red); }
.cat-mtg:hover       { border-color: #7c1d2e; }
.cat-yugi:hover      { border-color: #5b3a8e; }
.cat-onepiece:hover  { border-color: var(--red-bright); }
.cat-lorcana:hover   { border-color: var(--blue); }
.cat-swu:hover       { border-color: var(--gold-warm); }
.cat-other:hover     { border-color: var(--ink); }
.cat-riftbound:hover { border-color: #c8a44a; }
.cat-sorcery:hover   { border-color: #4a3a7e; }

/* =====================================================================
   FEATURES grid — 5 tools, bold cards
   ===================================================================== */
.features { padding: 120px 0; border-bottom: 1px solid var(--rule); }
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feat-card {
  padding: 36px 30px;
  border: 2px solid var(--rule);
  border-radius: 12px;
  background: #ffffff;
  transition: transform .3s cubic-bezier(.16,.84,.32,1), border-color .25s, box-shadow .3s;
  position: relative;
  overflow: hidden;
}
.feat-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 5px;
  background: linear-gradient(90deg, var(--red) 0%, var(--red) 33%, #ffffff 33%, #ffffff 66%, var(--blue) 66%, var(--blue) 100%);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s cubic-bezier(.16,.84,.32,1);
}
.feat-card:hover { transform: translateY(-6px); border-color: var(--blue); box-shadow: 0 16px 36px rgba(0,40,104,0.14); }
.feat-card:hover::before { transform: scaleX(1); }
.feat-num {
  font-family: var(--serif);
  font-size: 48px; font-weight: 400;
  background: linear-gradient(180deg, var(--red) 0%, var(--red-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -.045em;
  font-style: italic;
}
.feat-card h3 {
  font-family: var(--serif);
  font-size: 24px; font-weight: 600;
  margin: 0 0 12px;
  letter-spacing: -.018em;
  color: var(--ink);
}
.feat-card p { color: var(--muted-strong); margin: 0; font-size: 15px; line-height: 1.6; }
.feat-card em { font-style: italic; color: var(--ink); }
.feat-card strong { color: var(--ink); font-weight: 700; }

.feat-card-ribbon {
  background: linear-gradient(155deg, var(--blue-deep) 0%, var(--blue) 100%);
  color: var(--cream); border-color: var(--gold);
  box-shadow: 0 14px 32px rgba(0,40,104,0.25);
}
.feat-card-ribbon::before { background: linear-gradient(90deg, var(--gold), var(--red-bright), var(--gold)); transform: scaleX(1); }
.feat-card-ribbon::after {
  content: "★";
  position: absolute; top: 18px; right: 22px;
  color: var(--gold); font-size: 24px;
  filter: drop-shadow(0 0 8px rgba(255,215,0,0.6));
}
.feat-card-ribbon .feat-num {
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-warm) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.feat-card-ribbon h3 { color: var(--cream); }
.feat-card-ribbon p { color: rgba(255,255,255,0.85); }
.feat-card-ribbon strong { color: var(--gold); }
.feat-card-ribbon:hover { transform: translateY(-8px); border-color: var(--gold-warm); box-shadow: 0 22px 44px rgba(0,40,104,0.40); }

@media (max-width: 880px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-grid { grid-template-columns: 1fr; gap: 18px; }
  .categories, .features { padding: 80px 0; }
}
@media (max-width: 480px) {
  .cat-grid { grid-template-columns: 1fr; }
}

/* =====================================================================
   DEMO page styles (preserved + lifted)
   ===================================================================== */
.demo-hero {
  padding: 90px 0 60px;
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 18% 28%, rgba(191,10,48,0.08) 0%, transparent 55%),
    radial-gradient(ellipse at 82% 78%, rgba(0,40,104,0.08) 0%, transparent 55%),
    #ffffff;
}
.demo-hero::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--red) 0%, var(--red) 33%, #ffffff 33%, #ffffff 66%, var(--blue) 66%, var(--blue) 100%);
}
.demo-hero h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.02; letter-spacing: -.03em;
  margin: 0 0 18px;
  color: var(--ink);
}
.demo-hero h1 em { font-style: italic; color: var(--red); }
.demo-hero p { font-size: 18px; color: var(--muted-strong); max-width: 64ch; line-height: 1.6; margin: 0 0 16px; }
.demo-hero p strong { color: var(--ink); font-weight: 700; }

.demo-grid { padding: 64px 0 120px; }
.demo-card {
  background: #ffffff;
  border: 2px solid var(--rule);
  border-radius: 12px;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  grid-template-columns: 280px 1fr;
  overflow: hidden;
  transition: transform .3s cubic-bezier(.16,.84,.32,1), border-color .25s, box-shadow .3s;
  box-shadow: 0 6px 18px rgba(0,40,104,0.08);
}
.demo-card:hover { transform: translateY(-4px); border-color: var(--blue); box-shadow: 0 18px 40px rgba(0,40,104,0.16); }
.demo-card-img {
  background:
    radial-gradient(circle at 30% 30%, rgba(255,215,0,0.20), transparent 60%),
    linear-gradient(135deg, var(--blue-deep) 0%, var(--blue) 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  position: relative;
}
.demo-card-img::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(255,255,255,0.4) 1px, transparent 2px),
    radial-gradient(circle at 78% 68%, rgba(255,215,0,0.3) 1px, transparent 2px),
    radial-gradient(circle at 48% 88%, rgba(255,255,255,0.3) 1px, transparent 2px);
  background-size: 100px 100px;
  pointer-events: none;
}
.demo-card-img img {
  max-width: 100%;
  max-height: 360px;
  border-radius: 6px;
  box-shadow: 0 12px 30px rgba(0,0,0,.5);
  position: relative;
  z-index: 1;
}
.demo-card-img .img-stub {
  width: 232px; height: 320px;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-bright) 100%);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #ffffff;
  font-family: var(--serif); font-size: 22px; font-weight: 600;
  text-align: center; padding: 20px;
  box-shadow: 0 16px 36px rgba(0,0,0,.45);
  position: relative; z-index: 1;
  border: 2px solid var(--gold);
}
.demo-card-img .img-stub::after {
  content: "★";
  position: absolute; top: 10px; right: 14px;
  color: var(--gold); font-size: 14px;
}
.demo-card-body { padding: 32px 36px; display: flex; flex-direction: column; gap: 14px; }
.demo-tag {
  font-size: 11px; text-transform: uppercase; letter-spacing: .16em;
  color: var(--red); font-weight: 800;
}
.demo-card h3 {
  font-family: var(--serif); font-size: 26px; font-weight: 700;
  margin: 0; letter-spacing: -.018em; line-height: 1.2;
  color: var(--blue-deep);
}
.demo-meta { font-size: 14px; color: var(--muted-strong); margin-top: -4px; line-height: 1.55; }
.demo-result-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 10px;
}
.demo-result-cell {
  background: #ffffff;
  border: 2px solid var(--rule);
  padding: 16px 18px;
  border-radius: 8px;
  display: flex; flex-direction: column; gap: 4px;
  transition: border-color .2s, transform .2s;
}
.demo-result-cell:hover { border-color: var(--blue); transform: translateY(-2px); }
.demo-result-cell.highlight {
  background: linear-gradient(155deg, var(--blue-deep) 0%, var(--blue) 100%);
  color: #ffffff; border-color: var(--gold);
  box-shadow: 0 6px 18px rgba(0,40,104,0.35);
}
.demo-result-cell.highlight:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,40,104,0.45); }
.demo-result-cell.highlight .demo-result-label { color: var(--gold); }
.demo-result-cell.highlight .demo-result-value { color: var(--cream); font-style: italic; }
.demo-result-cell.highlight .demo-result-meta { color: rgba(255,255,255,0.82); }
.demo-result-label { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--blue); font-weight: 700; }
.demo-result-value { font-family: var(--serif); font-size: 26px; font-weight: 600; letter-spacing: -.018em; color: var(--ink); line-height: 1.05; }
.demo-result-meta { font-size: 12px; color: var(--muted-strong); margin-top: 2px; font-weight: 500; }
.demo-result-cell.highlight .demo-result-meta { color: rgba(255,255,255,0.82); }
.demo-conf { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted-strong); margin-top: 6px; font-weight: 500; flex-wrap: wrap; }
.demo-conf-bar { flex: 1; height: 10px; background: var(--rule); border-radius: 100px; overflow: hidden; max-width: 240px; min-width: 140px; }
.demo-conf-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red) 0%, var(--gold) 50%, var(--blue) 100%);
  border-radius: 100px;
  transition: width 1.2s cubic-bezier(.16,.84,.32,1);
}
.demo-verdict {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: 100px;
  font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em;
}
.demo-verdict::before { content: "★"; font-size: 11px; }
.demo-verdict-grade { background: var(--green); color: #ffffff; box-shadow: 0 4px 14px rgba(22,101,52,0.35); }
.demo-verdict-hold { background: var(--orange); color: #ffffff; box-shadow: 0 4px 14px rgba(234,88,12,0.35); }
.demo-verdict-walk { background: var(--red); color: #ffffff; box-shadow: 0 4px 14px rgba(191,10,48,0.35); }
.demo-verdict-fake { background: var(--red-deep); color: #ffffff; box-shadow: 0 4px 14px rgba(139,8,32,0.45); }

.demo-cta { text-align: center; padding: 40px 0 0; }
.demo-cta p { font-size: 15px; color: var(--muted-strong); margin: 0 0 16px; font-weight: 500; }

@media (max-width: 720px) {
  .demo-card { grid-template-columns: 1fr; }
  .demo-card-img { padding: 32px; }
  .demo-result-row { grid-template-columns: repeat(2, 1fr); }
}

/* =====================================================================
   PROOF STRIP — between hero and categories, big numbers
   ===================================================================== */
.proof {
  padding: 80px 0;
  background: #ffffff;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.proof::before {
  content: "";
  position: absolute; top: -1px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--blue));
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  align-items: end;
}
.proof-cell { position: relative; }
.proof-cell .proof-tag {
  font-size: 11px; text-transform: uppercase; letter-spacing: .16em;
  color: var(--blue); font-weight: 800; margin-bottom: 8px;
}
.proof-cell .proof-num {
  font-family: var(--serif);
  font-size: clamp(48px, 6vw, 88px); font-weight: 600;
  line-height: 0.95; letter-spacing: -.04em;
  color: var(--ink);
  display: flex; align-items: baseline; gap: 4px;
}
.proof-cell .proof-num .currency { color: var(--red); font-style: italic; font-size: .55em; transform: translateY(-.5em); }
.proof-cell .proof-num .unit { color: var(--red); font-style: italic; font-size: .55em; }
.proof-cell .proof-num em { font-style: italic; color: var(--red); }
.proof-cell .proof-meta {
  font-size: 13px; color: var(--muted-strong); margin-top: 8px;
  line-height: 1.5; font-weight: 500;
}
@media (max-width: 880px) { .proof-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; } }
@media (max-width: 480px) { .proof-grid { grid-template-columns: 1fr; gap: 32px; } }

/* =====================================================================
   QUOTE / TRUST BLOCK
   ===================================================================== */
.trust {
  padding: 100px 0;
  background: var(--ink);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.trust::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--red) 0%, var(--red) 33%, #ffffff 33%, #ffffff 66%, var(--blue) 66%, var(--blue) 100%);
}
.trust::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 18% 28%, rgba(255,215,0,0.12) 0%, transparent 30%),
    radial-gradient(circle at 82% 68%, rgba(191,10,48,0.16) 0%, transparent 35%);
  pointer-events: none;
}
.trust .wrap { position: relative; z-index: 1; }
.trust-quote {
  font-family: var(--serif);
  font-weight: 400; font-style: italic;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.2; letter-spacing: -.018em;
  margin: 0 0 28px;
  max-width: 30ch;
  position: relative;
  padding-left: 0;
}
.trust-quote::before {
  content: "“";
  font-family: var(--serif);
  font-size: 5em;
  color: var(--red);
  font-style: italic;
  display: block;
  line-height: 0.4;
  margin-bottom: 18px;
  margin-left: -.05em;
}
.trust-quote em { font-style: normal; color: var(--gold); }
.trust-attr {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.trust-attr strong { color: var(--gold); font-weight: 700; }

/* =====================================================================
   STAMP — big rubber-stamp callouts ("GRADE IT.", "WALK.")
   ===================================================================== */
.stamp-mark {
  display: inline-block;
  font-family: var(--serif);
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -.01em;
  padding: 14px 32px;
  border: 4px solid currentColor;
  border-radius: 8px;
  transform: rotate(-3deg);
  position: relative;
}
.stamp-grade { color: var(--green); }
.stamp-hold  { color: var(--orange); }
.stamp-walk  { color: var(--red); }
.stamp-mark::after {
  content: "";
  position: absolute; inset: -6px;
  border: 2px dashed currentColor;
  border-radius: 12px;
  opacity: .4;
  pointer-events: none;
}

/* =====================================================================
   FAQ HOOKS — section eyebrows w/ rotated numerals
   ===================================================================== */
.rot-num {
  position: absolute;
  top: 60px; right: 24px;
  font-family: var(--serif);
  font-size: clamp(80px, 12vw, 180px);
  font-weight: 400; font-style: italic;
  color: rgba(0,40,104,0.04);
  pointer-events: none;
  letter-spacing: -.05em;
  line-height: 1;
  z-index: 0;
}

/* =====================================================================
   PREDICT PAGE — exclusive collector-club hero + uploaders
   ===================================================================== */
.predict-hero {
  background:
    radial-gradient(ellipse at 18% 22%, rgba(255,215,0,0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 82% 78%, rgba(225,29,46,0.22) 0%, transparent 55%),
    linear-gradient(135deg, var(--blue-deep) 0%, var(--blue) 60%, #1a0a1f 100%);
  color: #ffffff;
  padding: 88px 0 72px;
  position: relative;
  overflow: hidden;
}
.predict-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 12% 18%, var(--gold) 1px, transparent 2px),
    radial-gradient(circle at 28% 62%, rgba(255,255,255,0.6) 1px, transparent 2px),
    radial-gradient(circle at 48% 28%, var(--gold) 1px, transparent 2px),
    radial-gradient(circle at 68% 78%, rgba(255,255,255,0.5) 1px, transparent 2px),
    radial-gradient(circle at 84% 38%, var(--gold) 1px, transparent 2px),
    radial-gradient(circle at 92% 88%, rgba(255,255,255,0.5) 1px, transparent 2px),
    radial-gradient(circle at 8% 88%, rgba(255,255,255,0.5) 1px, transparent 2px),
    radial-gradient(circle at 58% 92%, var(--gold) 1px, transparent 2px);
  background-size: 320px 320px;
  opacity: .65;
  animation: twinkle 6s ease-in-out infinite alternate;
  pointer-events: none;
}
.predict-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--red) 0%, var(--red) 33%, #ffffff 33%, #ffffff 66%, var(--blue-bright) 66%, var(--blue-bright) 100%);
}
.predict-hero .wrap { position: relative; z-index: 2; }
.predict-hero .eyebrow { color: var(--gold); }
.predict-hero .eyebrow::before { background: var(--gold); }
.predict-hero h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(44px, 7vw, 88px); line-height: .98;
  letter-spacing: -.03em; margin: 0 0 22px;
  color: #ffffff;
}
.predict-hero h1 em {
  font-style: italic; color: var(--gold);
  position: relative; display: inline-block;
}
.predict-hero h1 em::after {
  content: "";
  position: absolute; left: -4%; right: -4%; bottom: 5%;
  height: 14%;
  background: var(--red);
  z-index: -1; opacity: .65;
  transform: skewX(-12deg);
}
.predict-hero p { font-size: 19px; color: rgba(255,255,255,0.92); max-width: 64ch; line-height: 1.55; margin: 0 0 14px; font-weight: 400; }
.predict-hero p.fine { font-size: 14px; color: rgba(255,255,255,0.72); }
.predict-hero p strong { color: var(--gold); font-weight: 700; }

/* Auth gate — feels like membership card */
.auth-gate { padding: 72px 0 80px; position: relative; }
.auth-gate::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 14% 22%, rgba(0,40,104,0.06) 1px, transparent 2px),
    radial-gradient(circle at 88% 72%, rgba(191,10,48,0.06) 1px, transparent 2px);
  background-size: 280px 280px;
  pointer-events: none;
}
.auth-card {
  max-width: 560px; margin: 0 auto;
  background: #ffffff;
  border: 3px solid var(--blue);
  border-radius: 16px;
  padding: 44px 40px;
  box-shadow: 0 24px 64px rgba(0,40,104,0.22);
  position: relative;
}
.auth-card::before {
  content: ""; position: absolute; top: -3px; left: -3px; right: -3px;
  height: 8px;
  background: linear-gradient(90deg, var(--red) 0%, var(--red) 33%, #ffffff 33%, #ffffff 66%, var(--blue) 66%, var(--blue) 100%);
  border-radius: 13px 13px 0 0;
}
.auth-card::after {
  content: "★";
  position: absolute; top: 18px; right: 22px;
  color: var(--gold); font-size: 22px;
  filter: drop-shadow(0 0 6px rgba(255,215,0,0.6));
}
.auth-card h2 {
  font-family: var(--serif); font-weight: 700;
  font-size: 36px; line-height: 1.05;
  margin: 0 0 10px; color: var(--blue-deep);
  letter-spacing: -.02em;
}
.auth-card h2 em { font-style: italic; color: var(--red); }
.auth-card .tag {
  font-size: 12px; text-transform: uppercase; letter-spacing: .18em;
  color: var(--red); font-weight: 800; margin-bottom: 14px;
  display: inline-flex; align-items: center; gap: 8px;
}
.auth-card .tag::before { content: "★"; color: var(--gold); }
.auth-card p { color: var(--muted-strong); font-size: 15px; line-height: 1.6; margin: 0 0 22px; }
.auth-card p strong { color: var(--blue-deep); font-weight: 700; }
.auth-form label {
  display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .14em;
  color: var(--blue); font-weight: 800; margin-bottom: 10px;
}
.auth-form input[type=email] {
  width: 100%; padding: 16px 18px; border: 2px solid var(--rule);
  border-radius: 10px; font: 500 16px var(--sans); background: #ffffff;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.auth-form input[type=email]:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0,40,104,0.12);
}
.auth-form .consent {
  font-size: 13px; color: var(--muted-strong); margin: 16px 0 24px;
  display: flex; gap: 10px; align-items: flex-start; line-height: 1.55;
}
.auth-form .consent input { margin-top: 3px; accent-color: var(--red); }
.auth-form .consent a { color: var(--blue); font-weight: 700; }
.auth-submit {
  width: 100%; background: var(--red); color: #ffffff;
  border: 0; padding: 18px 24px; border-radius: 100px;
  font: 700 16px var(--sans); text-transform: uppercase; letter-spacing: .1em;
  cursor: pointer; transition: all .2s cubic-bezier(.16,.84,.32,1);
  box-shadow: 0 8px 22px rgba(191,10,48,0.35);
  position: relative; overflow: hidden;
}
.auth-submit::before {
  content: ""; position: absolute; top: 0; left: -120%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transition: left .55s ease;
}
.auth-submit:hover { background: var(--red-bright); transform: translateY(-3px); box-shadow: 0 14px 32px rgba(225,29,46,0.50); }
.auth-submit:hover::before { left: 120%; }
.auth-submit:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.auth-perks {
  margin-top: 28px; padding-top: 22px;
  border-top: 2px dashed var(--rule);
  font-size: 13px; color: var(--muted-strong); line-height: 1.7;
}
.auth-perks strong { color: var(--blue-deep); font-weight: 800; display: block; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; }
.auth-error {
  margin-top: 14px; padding: 12px 16px; background: #fef2f2;
  border-left: 4px solid var(--red); color: var(--red-deep);
  border-radius: 6px; font-size: 14px; display: none;
  font-weight: 500;
}
.auth-error.show { display: block; }
.signed-in-banner {
  background: linear-gradient(90deg, var(--blue-deep) 0%, var(--blue) 100%);
  color: #ffffff; padding: 14px 0;
  font-size: 14px;
  border-bottom: 3px solid var(--red);
  position: relative;
}
.signed-in-banner::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -3px;
  height: 3px;
  background: linear-gradient(90deg, var(--red) 0%, var(--red) 33%, #ffffff 33%, #ffffff 66%, var(--blue-bright) 66%, var(--blue-bright) 100%);
}
.signed-in-banner .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.signed-in-banner strong { color: var(--gold); font-weight: 700; }
.signed-in-banner button {
  background: rgba(255,255,255,0.15); color: #ffffff;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 7px 16px; border-radius: 100px;
  font: 600 13px var(--sans); cursor: pointer;
  transition: all .15s;
}
.signed-in-banner button:hover { background: rgba(255,255,255,0.28); border-color: var(--gold); color: var(--gold); }

/* Predict shell (gated content) */
.predict-shell { display: none; padding: 56px 0 96px; }
.predict-shell.visible { display: block; }

.predict-uploader { padding: 36px 40px; }
.predict-uploader-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 22px; }
@media (max-width: 720px) { .predict-uploader-grid { grid-template-columns: 1fr; } }

.upload-zone {
  position: relative;
  border: 3px dashed var(--blue);
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,215,0,0.10), transparent 60%),
    var(--paper);
  aspect-ratio: 5/7;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: all .25s cubic-bezier(.16,.84,.32,1);
}
.upload-zone::before {
  content: "★";
  position: absolute; top: 14px; left: 14px;
  color: var(--gold); font-size: 18px;
  opacity: .35;
  transition: opacity .2s;
}
.upload-zone::after {
  content: "★";
  position: absolute; bottom: 14px; right: 14px;
  color: var(--gold); font-size: 18px;
  opacity: .35;
  transition: opacity .2s;
}
.upload-zone:hover, .upload-zone.drag {
  border-color: var(--red);
  background:
    radial-gradient(circle at 30% 30%, rgba(255,215,0,0.20), transparent 60%),
    #fff5f5;
  transform: scale(1.015);
}
.upload-zone:hover::before, .upload-zone:hover::after { opacity: 1; }
.upload-zone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-zone-label { text-align: center; padding: 18px; pointer-events: none; }
.upload-zone-label strong {
  display: block;
  font-family: var(--serif); font-size: 22px; font-weight: 700;
  color: var(--blue-deep); margin-bottom: 10px;
}
.upload-zone-label span { font-size: 13px; color: var(--muted-strong); font-weight: 500; }

.predict-meta-row { margin-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.predict-meta-row label {
  display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .14em;
  color: var(--blue); font-weight: 800; margin-bottom: 8px;
}
.predict-meta-row textarea,
.predict-meta-row input[type=email] {
  width: 100%; padding: 14px 16px;
  border: 2px solid var(--rule); border-radius: 8px;
  background: #ffffff; font: 500 15px var(--sans);
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.predict-meta-row textarea { min-height: 88px; resize: vertical; }
.predict-meta-row textarea:focus,
.predict-meta-row input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,40,104,0.10); }

/* === Global tool-form fields ===
   Applies to concierge, trade, sentry, and any other tool page that uses
   .input-panel or .form-section. Prevents the "browser-default textarea"
   bug where a textarea renders at ~30×8 in a full-width container. */
.input-panel textarea,
.input-panel input[type="text"],
.input-panel input[type="email"],
.input-panel input[type="tel"],
.input-panel input[type="number"],
.form-section textarea,
.form-section input[type="text"],
.form-section input[type="email"],
.form-section input[type="number"] {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border: 2px solid var(--rule);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: 500 15px var(--sans);
  line-height: 1.55;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
}
.input-panel textarea,
.form-section textarea {
  min-height: 180px;
  resize: vertical;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.6;
}
.input-panel textarea:focus,
.input-panel input:focus,
.form-section textarea:focus,
.form-section input:focus {
  outline: 0;
  border-color: var(--blue-deep);
  box-shadow: 0 0 0 3px rgba(0,40,104,0.18);
}
.input-panel textarea::placeholder,
.input-panel input::placeholder,
.form-section textarea::placeholder,
.form-section input::placeholder {
  color: rgba(0,40,104,0.40);
}

.predict-actions { margin-top: 30px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; padding-top: 26px; border-top: 2px solid var(--rule); }
.btn-predict {
  background: var(--red); color: #ffffff; border: 0;
  padding: 18px 36px; border-radius: 100px;
  font: 800 16px var(--sans); text-transform: uppercase; letter-spacing: .1em;
  cursor: pointer; transition: all .2s cubic-bezier(.16,.84,.32,1);
  box-shadow: 0 8px 22px rgba(191,10,48,0.35);
  position: relative; overflow: hidden;
}
.btn-predict::before {
  content: ""; position: absolute; top: 0; left: -120%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transition: left .55s ease;
}
.btn-predict:hover { background: var(--red-bright); transform: translateY(-3px); box-shadow: 0 14px 32px rgba(225,29,46,0.50); }
.btn-predict:hover::before { left: 120%; }
.btn-predict:disabled { opacity: .35; cursor: not-allowed; transform: none; box-shadow: none; background: var(--muted); }
.predict-hint { color: var(--muted-strong); font-size: 14px; font-weight: 500; }

.predict-status { margin: 22px 0 0; padding: 16px 20px; border-radius: 8px; font-size: 15px; display: none; font-weight: 500; }
.predict-status.error { background: #fef2f2; color: var(--red-deep); border-left: 4px solid var(--red); display: block; }
.predict-status.loading {
  background: #eff6ff; color: var(--blue-deep);
  border-left: 4px solid var(--blue); display: block;
  position: relative; overflow: hidden;
}
.predict-status.loading::after {
  content: "";
  position: absolute; top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0,40,104,0.18), transparent);
  animation: shimmerLoad 1.8s linear infinite;
}
@keyframes shimmerLoad {
  0%   { left: -100%; }
  100% { left: 200%; }
}

/* Results */
.results-wrap { margin-top: 56px; display: none; flex-direction: column; gap: 28px; }
.results-wrap.visible { display: flex; animation: revealUp .8s cubic-bezier(.16,.84,.32,1); }
@keyframes revealUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.raw-toggle { margin-top: 12px; }
.raw-toggle summary { color: var(--muted-strong); font-size: 13px; cursor: pointer; padding: 8px 0; font-weight: 500; }
.raw-toggle pre { background: var(--blue-deep); color: #ffffff; padding: 18px; border-radius: 10px; overflow-x: auto; font-size: 11px; line-height: 1.5; max-height: 480px; margin-top: 8px; }

.subgrade-bar { display: grid; grid-template-columns: 110px 1fr 50px; gap: 14px; align-items: center; font-size: 14px; padding: 8px 0; }
.subgrade-bar .label { color: var(--muted-strong); font-weight: 700; }
.subgrade-bar .track { background: var(--rule); height: 10px; border-radius: 100px; overflow: hidden; }
.subgrade-bar .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red) 0%, var(--gold) 50%, var(--blue) 100%);
  border-radius: 100px;
  animation: barGrow 1.2s cubic-bezier(.16,.84,.32,1);
}
@keyframes barGrow {
  from { width: 0 !important; }
}
.subgrade-bar .val { font-family: var(--serif); font-size: 20px; font-weight: 700; text-align: right; color: var(--blue-deep); font-style: italic; }

.next-actions-card {
  background:
    radial-gradient(circle at 12% 14%, rgba(255,215,0,0.10), transparent 50%),
    linear-gradient(135deg, #ffffff 0%, var(--paper) 100%);
  border: 3px solid var(--red);
  border-radius: 16px; padding: 36px 40px;
  box-shadow: 0 12px 28px rgba(191,10,48,0.12);
  position: relative;
  overflow: hidden;
}
.next-actions-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--red) 0%, var(--red) 33%, #ffffff 33%, #ffffff 66%, var(--blue) 66%, var(--blue) 100%);
}
.next-actions-card::after {
  content: "★";
  position: absolute; top: 20px; right: 24px;
  color: var(--gold); font-size: 28px;
  filter: drop-shadow(0 0 8px rgba(255,215,0,0.55));
}
.next-actions-card h3 {
  font-family: var(--serif); font-size: 28px; font-weight: 700;
  margin: 0 0 20px; color: var(--blue-deep); letter-spacing: -.018em;
}
.next-actions-card ol { margin: 0; padding-left: 28px; font-size: 15px; line-height: 1.75; color: var(--ink); }
.next-actions-card li { margin-bottom: 10px; }
.next-actions-card li::marker { color: var(--red); font-weight: 800; }

/* =====================================================================
   ACCESSIBILITY — reduced motion
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-left, .reveal-right, .reveal-scale, .stagger > * {
    opacity: 1 !important;
    transform: none !important;
  }
  .float-card { animation: none !important; }
  .ticker-track { animation: none !important; }
  .hero::before { animation: none !important; }
  .float-star { animation: none !important; }
}

/* Focus visible — accessibility-safe */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible, .nav-cta:focus-visible, .auth-submit:focus-visible, .btn-predict:focus-visible {
  outline-offset: 4px;
}

/* =====================================================================
   Real-image card thumbnails + improved per-category stub designs
   ===================================================================== */
.demo-card-img img {
  display: block;
  max-width: 232px;
  width: 100%;
  height: auto;
  max-height: 360px;
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(0,0,0,0.45), 0 0 0 2px var(--gold);
  position: relative;
  z-index: 1;
  object-fit: contain;
}
.img-caption {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 215, 0, 0.85);
  background: rgba(0, 0, 0, 0.5);
  padding: 4px 10px;
  border-radius: 100px;
  white-space: nowrap;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 2;
}

/* Improved stub design — per-category accent palettes */
.demo-card-img .img-stub {
  flex-direction: column;
  gap: 10px;
  padding: 24px 18px;
  text-align: center;
  background: linear-gradient(150deg, var(--red) 0%, var(--red-deep) 100%);
  border: 2px solid var(--gold);
}
.img-stub .stub-eyebrow {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 215, 0, 0.9);
  line-height: 1.3;
}
.img-stub .stub-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin: 6px 0;
}
.img-stub .stub-num {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.85);
  padding: 5px 10px;
  border: 1px solid rgba(255, 215, 0, 0.5);
  border-radius: 100px;
  margin-top: auto;
}

/* Sports — heritage red/navy split */
.img-stub-fleer {
  background: linear-gradient(135deg, #c8102e 0%, #c8102e 48%, #ffffff 48%, #ffffff 52%, #002868 52%, #002868 100%) !important;
}
.img-stub-fleer .stub-eyebrow { color: #ffffff; }
.img-stub-fleer .stub-name { color: #ffffff; text-shadow: 0 2px 6px rgba(0,0,0,0.4); }

/* One Piece — deep gold */
.img-stub-onepiece {
  background: linear-gradient(150deg, #b8001f 0%, #6b0014 100%) !important;
  border-color: #f5d77a !important;
}

/* Lorcana — purple/teal Disney palette */
.img-stub-lorcana {
  background: linear-gradient(150deg, #4a3a8e 0%, #2b1d63 100%) !important;
  border-color: #ffd700 !important;
}

/* Riftbound — Riot gold + LoL purple */
.img-stub-riftbound {
  background: linear-gradient(150deg, #5e2a8e 0%, #1a0d3d 100%) !important;
  border-color: #c8a44a !important;
}

/* =====================================================================
   Shared section title bar (used by dashboard toolkit + history)
   ===================================================================== */
.section-title-bar {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  margin: 0 0 24px; padding-bottom: 12px; border-bottom: 3px solid var(--red);
}
.section-title-bar h2 {
  font-family: var(--serif); font-size: 32px; font-weight: 700;
  color: var(--blue-deep); letter-spacing: -.02em; margin: 0;
}
.section-title-bar h2 em { font-style: italic; color: var(--red); }
.section-title-bar .meta { font-size: 13px; color: var(--muted-strong); font-weight: 500; }

/* =====================================================================
   Nav dropdown — "Tools" menu with all 7 tools
   ===================================================================== */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  background: transparent; border: 0; padding: 0;
  font: inherit; color: var(--ink); cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px;
  font-weight: 500;
  transition: color .15s;
}
.nav-dropdown-trigger:hover { color: var(--red); }
.nav-dropdown.is-active .nav-dropdown-trigger { color: var(--red); font-weight: 600; }
.nav-dropdown-caret { font-size: 10px; opacity: 0.7; transition: transform .2s; }
.nav-dropdown.is-open .nav-dropdown-caret { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px); right: 0;
  min-width: 340px;
  background: #ffffff;
  border: 2px solid var(--rule);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 16px 36px rgba(0, 40, 104, 0.18);
  opacity: 0; visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .18s, transform .18s, visibility .18s;
  z-index: 200;
}
.nav-dropdown-menu::before {
  content: ""; position: absolute; top: -10px; right: 28px;
  width: 16px; height: 16px;
  background: #ffffff;
  border-left: 2px solid var(--rule);
  border-top: 2px solid var(--rule);
  transform: rotate(45deg);
}
.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}

.nav-dropdown-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
  transition: background .15s, transform .15s;
}
.nav-dropdown-item:hover {
  background: var(--paper);
  color: var(--blue-deep);
}
.nav-dropdown-item.is-current {
  background: linear-gradient(90deg, color-mix(in srgb, var(--red) 8%, #fff), transparent);
  border-left: 3px solid var(--red);
  padding-left: 11px;
}
.nav-dropdown-overview {
  background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 12%, #fff), #fff);
  font-weight: 700;
}
.nav-dropdown-overview:hover { background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 22%, #fff), #fff); }
.nav-dropdown-overview .nav-dd-icon { color: var(--gold-warm); }

.nav-dd-icon {
  font-size: 18px;
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-dd-body { display: flex; flex-direction: column; gap: 2px; }
.nav-dd-name {
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--blue-deep);
}
.nav-dropdown-item:hover .nav-dd-name { color: var(--red); }
.nav-dd-tag {
  font-size: 12px; color: var(--muted-strong);
  font-weight: 500;
}
.nav-dropdown-divider {
  height: 1px;
  background: var(--rule);
  margin: 6px 4px;
}

/* Mobile: dropdown becomes inline */
@media (max-width: 720px) {
  .nav-dropdown-menu { min-width: 280px; right: auto; left: 0; }
}

/* =====================================================================
   MEGA-MENU — Bugatti-grade "Tools" mega-menu
   Full-width drop, 3 columns by collector phase + branded left rail
   ===================================================================== */
.nav-mega { position: static; }
.nav-mega .nav-dropdown-trigger {
  background: transparent; border: 0; padding: 0;
  font: inherit; color: var(--ink); cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px;
  font-weight: 500;
  transition: color .15s;
  position: relative;
}
.nav-mega .nav-dropdown-trigger::after {
  content: "";
  position: absolute; left: 0; right: 16px; bottom: -6px;
  height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s cubic-bezier(.16,.84,.32,1);
}
.nav-mega:hover .nav-dropdown-trigger,
.nav-mega.is-open .nav-dropdown-trigger,
.nav-mega.is-active .nav-dropdown-trigger { color: var(--red); }
.nav-mega.is-active .nav-dropdown-trigger { font-weight: 600; }
.nav-mega.is-active .nav-dropdown-trigger::after,
.nav-mega.is-open .nav-dropdown-trigger::after { transform: scaleX(1); }
.nav-mega .nav-dropdown-caret { font-size: 10px; opacity: 0.7; transition: transform .2s; }
.nav-mega.is-open .nav-dropdown-caret { transform: rotate(180deg); }

.nav-mega-menu {
  position: absolute;
  top: calc(100% + 0px); left: 0; right: 0;
  background: #ffffff;
  border-top: 1px solid var(--rule);
  border-bottom: 4px solid var(--red);
  box-shadow: 0 30px 60px rgba(0, 25, 71, 0.25);
  opacity: 0; visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .22s cubic-bezier(.16,.84,.32,1),
              transform .26s cubic-bezier(.16,.84,.32,1),
              visibility .22s;
  z-index: 199;
  overflow: hidden;
}
.nav-mega.is-open .nav-mega-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-mega-stripe {
  height: 4px;
  background: linear-gradient(90deg,
    var(--red) 0%, var(--red) 33.33%,
    #ffffff 33.33%, #ffffff 66.66%,
    var(--blue) 66.66%, var(--blue) 100%);
  background-size: 300% 100%;
  animation: stripeShift 14s linear infinite;
}
.nav-mega-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 24px 38px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  position: relative;
}
.nav-mega-inner::before {
  content: "★";
  position: absolute;
  top: 18px; right: 28px;
  color: var(--gold);
  font-size: 16px;
  opacity: 0.45;
  animation: starTwinkle 4s ease-in-out infinite;
}
@keyframes starTwinkle {
  0%, 100% { opacity: 0.25; transform: scale(1); }
  50%      { opacity: 0.65; transform: scale(1.15); }
}

/* Left rail — aside */
.nav-mega-aside {
  background: linear-gradient(180deg, var(--blue-deep) 0%, var(--blue) 60%, var(--red-deep) 100%);
  color: #fff;
  padding: 26px 24px;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px;
}
.nav-mega-aside::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 80% 18%, rgba(255,215,0,0.30) 1px, transparent 2px),
    radial-gradient(circle at 22% 38%, rgba(255,255,255,0.20) 1px, transparent 2px),
    radial-gradient(circle at 62% 78%, rgba(255,215,0,0.20) 1px, transparent 2px),
    radial-gradient(circle at 14% 88%, rgba(255,255,255,0.18) 1px, transparent 2px);
  background-size: 100% 100%;
  opacity: 0.7;
  pointer-events: none;
}
.nav-mega-aside::after {
  content: "★";
  position: absolute;
  bottom: -14px; right: -8px;
  font-size: 96px;
  color: rgba(255,215,0,0.18);
  pointer-events: none;
  line-height: 1;
}
.mega-aside-eyebrow {
  font: 700 11px var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-block;
  position: relative;
}
.mega-aside-h {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 10px 0 12px;
  color: #fff;
  position: relative;
}
.mega-aside-h em { font-style: italic; color: var(--gold); font-weight: 500; }
.mega-aside-p {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255,255,255,0.86);
  margin: 0 0 18px;
  position: relative;
}
.mega-aside-cta {
  display: inline-block;
  background: var(--gold);
  color: var(--blue-deep) !important;
  padding: 10px 18px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  position: relative;
  transition: all .2s cubic-bezier(.16,.84,.32,1);
  align-self: flex-start;
  box-shadow: 0 6px 18px rgba(255,215,0,0.30);
}
.mega-aside-cta:hover {
  background: var(--gold-warm);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255,184,28,0.45);
}
.mega-aside-cta.is-current {
  background: #fff;
  color: var(--red) !important;
}

/* Right side — 3 group columns */
.nav-mega-groups {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 22px;
}
.mega-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mega-group-head {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 4px 8px;
  border-bottom: 2px solid var(--rule);
  position: relative;
}
.mega-group-head::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 36px; height: 2px;
  background: var(--red);
}
.is-featured-group .mega-group-head::after { background: var(--gold); width: 48px; }
.mega-group-heading {
  font: 700 11px var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-deep);
}
.is-featured-group .mega-group-heading { color: var(--red); }
.mega-group-blurb {
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  color: var(--muted-strong);
  font-weight: 500;
}
.mega-group-tiles {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

/* Individual tool tile */
.mega-tile {
  display: grid;
  grid-template-columns: 32px 1fr 16px;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  transition: background .18s, transform .18s, border-color .18s, box-shadow .2s;
  opacity: 0;
  transform: translateY(8px);
  animation: tileFadeIn .4s cubic-bezier(.16,.84,.32,1) forwards;
  animation-delay: var(--stagger, 0ms);
  position: relative;
}
@keyframes tileFadeIn {
  to { opacity: 1; transform: translateY(0); }
}
.mega-tile:hover {
  background: linear-gradient(135deg, color-mix(in srgb, var(--blue) 5%, #fff), #fff);
  border-color: color-mix(in srgb, var(--blue) 18%, var(--rule));
  transform: translateX(4px);
  box-shadow: 0 8px 22px rgba(0, 40, 104, 0.10);
}
.mega-tile.is-current {
  background: linear-gradient(90deg, color-mix(in srgb, var(--red) 9%, #fff), transparent 70%);
  border-left: 3px solid var(--red);
  padding-left: 10px;
}
.mega-tile.is-featured-tile {
  background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 14%, #fff) 0%, #fff 70%);
  border-color: color-mix(in srgb, var(--gold) 40%, var(--rule));
}
.mega-tile.is-featured-tile:hover {
  background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 22%, #fff) 0%, #fff 70%);
  border-color: var(--gold-warm);
  box-shadow: 0 10px 26px rgba(255,184,28,0.28);
}
.mega-tile-icon {
  font-size: 22px;
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}
.mega-tile:hover .mega-tile-icon { transform: scale(1.18) rotate(-6deg); }
.mega-tile-body {
  display: flex; flex-direction: column; gap: 2px;
  min-width: 0;
}
.mega-tile-name {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--blue-deep);
  display: inline-flex; align-items: center; gap: 6px;
}
.is-featured-tile .mega-tile-name { color: var(--red-deep); }
.mega-tile-pin {
  color: var(--gold-warm);
  font-size: 11px;
  animation: starTwinkle 3s ease-in-out infinite;
}
.mega-tile-tag {
  font-size: 12px;
  color: var(--muted-strong);
  line-height: 1.4;
  font-weight: 500;
}
.mega-tile-arrow {
  color: var(--rule);
  font-size: 16px;
  font-weight: 600;
  transition: transform .25s, color .2s;
}
.mega-tile:hover .mega-tile-arrow {
  color: var(--red);
  transform: translateX(4px);
}

/* Responsive — collapse to single column under 960 */
@media (max-width: 960px) {
  .nav-mega-inner { grid-template-columns: 1fr; padding: 24px 20px; gap: 22px; }
  .nav-mega-aside { min-height: 0; padding: 20px; }
  .nav-mega-groups { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 720px) {
  .nav-mega-menu { left: 0; right: 0; }
  .mega-aside-h { font-size: 22px; }
}

/* =====================================================================
   TOOL PAGE WOW DECORATIONS — corner stars, animated reveals
   ===================================================================== */
.demo-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font: 700 11px var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
  padding: 6px 12px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--red) 10%, #fff), transparent);
  border-left: 3px solid var(--red);
  border-radius: 0 100px 100px 0;
}
.demo-card {
  position: relative;
}
.demo-card::before {
  content: "★";
  position: absolute;
  top: -10px; right: 14px;
  font-size: 22px;
  color: var(--gold);
  opacity: 0.45;
  animation: starTwinkle 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}
.demo-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  height: 4px; width: 96px;
  background: linear-gradient(90deg,
    var(--red) 0%, var(--red) 33.33%,
    #ffffff 33.33%, #ffffff 66.66%,
    var(--blue) 66.66%, var(--blue) 100%);
  border-radius: 14px 0 0 0;
}

/* Tool page shells get faint star-field backdrop */
.predict-shell.visible {
  background-image:
    radial-gradient(circle at 8% 6%,  rgba(0,40,104,0.05) 1px, transparent 2px),
    radial-gradient(circle at 28% 88%, rgba(191,10,48,0.04) 1px, transparent 2px),
    radial-gradient(circle at 92% 32%, rgba(0,40,104,0.06) 1px, transparent 2px),
    radial-gradient(circle at 62% 18%, rgba(255,215,0,0.06) 1px, transparent 2px);
  background-size: 540px 540px;
}

/* Tool page section headers — match homepage feel */
.predict-shell .section-h {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--blue-deep);
  position: relative;
  padding-left: 22px;
}
.predict-shell .section-h::before {
  content: "★";
  position: absolute;
  left: 0; top: 6px;
  color: var(--red);
  font-size: 18px;
  animation: starTwinkle 4.5s ease-in-out infinite;
}
.predict-shell .section-h em {
  font-style: italic;
  color: var(--red);
  position: relative;
}

/* === Demo-card marketplace affiliate links === */
.demo-marketplace-row {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--rule);
}
.demo-mp-link {
  flex: 1 1 auto; min-width: 0;
  text-align: center;
  font: 700 11px var(--sans); text-transform: uppercase; letter-spacing: 0.08em;
  padding: 8px 12px; border-radius: 6px; border: 1.5px solid var(--rule);
  background: #fff; color: var(--blue-deep); text-decoration: none;
  transition: all .15s;
}
.demo-mp-link:hover { border-color: var(--blue); background: var(--paper); transform: translateY(-1px); }
.demo-mp-ebay:hover  { border-color: #e53238; color: #e53238; }
.demo-mp-goldin:hover { border-color: var(--gold); color: var(--gold); }
.demo-mp-pwcc:hover  { border-color: var(--blue); color: var(--blue); }
@media (max-width: 600px) {
  .demo-marketplace-row { flex-direction: column; }
}

/* ========================================================================
   ===   BUGATTI CRAFT LAYER — added May 13, 2026                       ===
   ===   Mobile-first. Most users on iPhone. 375px is the design unit.  ===
   ===   Upgrades patriotic palette with craft, restraint, heritage.    ===
   ======================================================================== */

/* --- Universal motion respect (was missing) ----------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Mobile-first body tuning ------------------------------------------- */
@media (max-width: 720px) {
  body { font-size: 17px; line-height: 1.6; }
  .wrap { padding: 0 18px; }
  /* Touch targets bump to 48pt minimum */
  .btn, .nav-cta, a.btn-primary, a.btn-ghost, .intro-cta { min-height: 48px; padding: 14px 22px; }
  /* Kill heavy animations on mobile — battery + jank */
  .float-card, .holo-overlay { animation: none !important; }
  .topbar::before { animation: none !important; background-position: 0 0 !important; }
}

/* --- Bugatti craft: page sigils ("01 / 06") ----------------------------- */
.sigil {
  display: inline-block;
  font: 500 11px var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0,40,104,0.55);
  font-variant-numeric: tabular-nums;
}
.sigil em { font-style: normal; color: var(--red); }
.sigil-block {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px;
}
.sigil-block::after {
  content: ""; flex: 1; max-width: 64px;
  height: 1px; background: rgba(0,40,104,0.18);
}

/* --- Bugatti craft: heritage line --------------------------------------- */
.heritage-line {
  font: 500 13px var(--sans);
  letter-spacing: 0.06em;
  color: var(--blue-deep);
  margin: 18px 0 0;
  display: inline-flex; align-items: center;
  gap: 10px; flex-wrap: wrap;
}
.heritage-line strong { font-weight: 700; color: var(--red); }
.heritage-line .dot { color: rgba(0,40,104,0.45); }
@media (max-width: 540px) {
  .heritage-line { font-size: 12px; gap: 8px; }
}

/* --- Bugatti craft: drop cap on lede ------------------------------------ */
.lede-dropcap::first-letter,
p.lede::first-letter {
  font-family: var(--serif);
  font-size: 4.2rem;
  line-height: 0.86;
  float: left;
  font-weight: 700;
  color: var(--red);
  padding: 0.05em 0.12em 0 0;
  margin-right: 0.05em;
}
@media (max-width: 540px) {
  .lede-dropcap::first-letter,
  p.lede::first-letter { font-size: 3.4rem; }
}

/* --- Bugatti craft: paper-edge dividers --------------------------------- */
.rule-fade {
  height: 1px; border: none;
  background: linear-gradient(90deg, transparent, rgba(0,40,104,0.28) 50%, transparent);
  margin: 48px auto;
  max-width: 720px;
}
.rule-stars {
  text-align: center;
  margin: 40px 0;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 2em;
  padding-left: 2em; /* offset for visual centering of letter-spaced ★★★ */
}
.rule-stars::before { content: "★★★"; }

/* --- Bugatti craft: cinematic photo treatment --------------------------- */
.photo-cinema,
.demo-card img,
.fc-img img,
.card-stack img {
  filter: contrast(1.06) saturate(0.94) brightness(0.98);
  transition: filter .3s ease;
}
.demo-card:hover img,
.fc-img:hover img { filter: contrast(1.08) saturate(1.0) brightness(1.0); }

/* --- Bugatti craft: card-stock buttons (replaces glossy shimmer) -------- */
.btn-cardstock {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--red);
  color: #fff;
  padding: 14px 28px;
  border: none;
  border-bottom: 3px solid var(--blue-deep);
  border-radius: 4px;
  font: 600 14px var(--sans);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 150ms ease-out, border-bottom-width 150ms ease-out;
}
.btn-cardstock:hover {
  transform: translateY(-1px);
  border-bottom-width: 4px;
}
.btn-cardstock:active {
  transform: translateY(1px);
  border-bottom-width: 2px;
}
.btn-cardstock.ghost {
  background: transparent;
  color: var(--blue-deep);
  border: 1.5px solid var(--blue-deep);
  border-bottom: 3px solid var(--blue-deep);
}
.btn-cardstock.ghost:hover {
  background: var(--blue-deep);
  color: #fff;
}

/* --- Bugatti craft: member/scarcity moments ----------------------------- */
.member-card {
  background: linear-gradient(135deg, var(--blue-deep) 0%, #0a1f3d 100%);
  color: #fff;
  padding: 28px 26px;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  margin: 32px 0;
}
.member-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--red) 0%, var(--red) 33%, #fff 33%, #fff 66%, var(--gold) 66%, var(--gold) 100%);
}
.member-card .seal {
  display: inline-block;
  font: 500 11px var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.member-card h3 {
  font-family: var(--serif);
  font-size: clamp(22px, 5vw, 28px);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 10px;
  color: #fff;
}
.member-card p {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255,255,255,0.82);
  margin: 0 0 16px;
}
.member-card .seats {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--gold);
  font-style: italic;
}
.member-card .seats strong { color: #fff; font-style: normal; font-weight: 600; }

/* --- Bugatti craft: colophon / founder mark ----------------------------- */
.colophon-mark {
  text-align: center;
  margin: 32px 0 14px;
  font: 500 11px var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0,40,104,0.50);
}
.colophon-mark .diamond { color: var(--red); padding: 0 8px; }

/* --- Reduce animation budget across the board --------------------------- */
@media (prefers-reduced-motion: no-preference) {
  /* Only allow these to animate when user is OK with motion */
  .float-card-1 { animation: floatA 14s ease-in-out infinite; }
  .float-card-2 { animation: floatB 16s ease-in-out infinite; }
  .float-card-3 { animation: floatC 18s ease-in-out infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .float-card { animation: none !important; transform: none !important; }
}

/* Disable secondary animations that competed with hero */
.fc-star { animation: none !important; }
.intro-section::after { animation: none !important; opacity: 0.3 !important; }
.predict-shell .section-h::before { animation: none !important; }

/* --- Bugatti craft: hanging punctuation + micro-type -------------------- */
body {
  font-feature-settings: 'ss01', 'cv11', 'kern' 1, 'liga' 1, 'calt' 1;
  hanging-punctuation: first last;
}
.lede, .body-prose, p.lede {
  font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1, 'onum' 1;
}
h1, h2, h3, .hero-h, .section-h, .display-italic {
  font-feature-settings: 'kern' 1, 'liga' 1, 'dlig' 1, 'ss01' 1;
}

/* --- Bugatti craft: scarcity badge (used in pricing, founding tier) ----- */
.scarcity-badge {
  display: inline-block;
  font: 600 11px var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  background: rgba(255,215,0,0.18);
  color: var(--blue-deep);
  border: 1px solid rgba(255,215,0,0.45);
  border-radius: 100px;
}

/* --- Mobile-first hero rebalance --------------------------------------- */
@media (max-width: 720px) {
  .hero { padding: 36px 0 28px; }
  .hero-h {
    font-size: clamp(34px, 9vw, 44px);
    line-height: 1.02;
    letter-spacing: -0.025em;
  }
  .hero-sub { font-size: 17px; line-height: 1.5; margin: 14px 0 20px; }
  .hero-cta { flex-direction: column; gap: 10px; }
  .hero-cta .btn { width: 100%; text-align: center; justify-content: center; }
  .card-stack { display: none; }  /* Hide floating cards on mobile — visual noise */
  .hero-right { display: none; }
}

/* --- Mobile-first intro section ---------------------------------------- */
@media (max-width: 720px) {
  .intro-section { padding: 24px 20px; }
  .intro-h { font-size: clamp(24px, 6vw, 30px); }
  .intro-p { font-size: 16px; }
  .intro-grid { grid-template-columns: 1fr; gap: 12px; }
  .intro-card { padding: 18px 20px; }
}

/* --- Footer mobile ----------------------------------------------------- */
@media (max-width: 720px) {
  .topbar .wrap { padding-top: 14px; padding-bottom: 14px; }
  .brand-word { font-size: 20px; }
}

/* --- Photo lazy-load placeholder ---------------------------------------- */
img[loading="lazy"] {
  background: linear-gradient(135deg, var(--paper) 0%, #e8edf5 100%);
}

/* --- Selection color matches brand ------------------------------------- */
::selection { background: rgba(191,10,48,0.18); color: var(--ink); }

/* --- Bugatti craft: end-of-article mark -------------------------------- */
.end-mark {
  text-align: center;
  margin: 40px 0 24px;
  font-size: 16px;
  color: var(--gold);
  letter-spacing: 0.4em;
  padding-left: 0.4em;
}
.end-mark::before { content: "◆"; }

/* ========================================================================
   MOBILE NAV DRAWER — Bugatti craft layer
   ======================================================================== */

/* Hamburger button — hidden on desktop, visible below 880px */
.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1.5px solid var(--rule);
  border-radius: 4px;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  transition: border-color .15s;
}
.nav-mobile-toggle:hover,
.nav-mobile-toggle[aria-expanded="true"] {
  border-color: var(--red);
}
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--blue-deep);
  transition: transform .25s cubic-bezier(.16,.84,.32,1), opacity .15s;
  border-radius: 2px;
}
.nav-mobile-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--red);
}
.nav-mobile-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-mobile-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--red);
}

/* Mobile breakpoint: show hamburger, hide nav-stack until opened */
@media (max-width: 880px) {
  .nav-mobile-toggle { display: inline-flex; }

  /* Override the rule that hid all nav links on mobile */
  .topbar nav a:not(.nav-cta) { display: none; }  /* still default hidden */

  .topbar nav { gap: 12px; }

  /* Hide the nav-stack by default on mobile — full-screen when open */
  .topbar nav .nav-stack {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;            /* fallback */
    height: 100dvh;           /* dynamic viewport — handles iOS Safari URL bar */
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    padding: 84px 24px 32px;  /* top clears the sticky header */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 49;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
    box-shadow: 0 12px 32px rgba(0,40,104,0.10);
    gap: 0;
  }
  .topbar nav.mobile-open .nav-stack {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    transition: opacity .28s ease, transform .28s ease, visibility 0s linear 0s;
  }

  /* Show nav links INSIDE the open drawer */
  .topbar nav.mobile-open .nav-stack a:not(.nav-cta),
  .topbar nav.mobile-open .nav-stack .nav-dropdown {
    display: block;
  }
  .topbar nav.mobile-open .nav-stack a {
    display: block;
    padding: 18px 4px;
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 600;
    color: var(--blue-deep);
    border-bottom: 1px solid rgba(0,40,104,0.08);
    letter-spacing: -0.01em;
    line-height: 1.2;
  }
  .topbar nav.mobile-open .nav-stack a:last-child {
    border-bottom: none;
  }
  .topbar nav.mobile-open .nav-stack a::after {
    display: none !important;
  }
  .topbar nav.mobile-open .nav-stack a[aria-current="page"] {
    color: var(--red);
  }

  /* CTA stands out as the only filled button in the drawer */
  .topbar nav.mobile-open .nav-stack .nav-cta {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 22px;
    background: var(--red);
    color: #fff !important;
    padding: 16px 26px;
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 700;
    border-radius: 100px;
    border-bottom: none;
    letter-spacing: 0.02em;
    text-transform: none;
  }

  /* Tools dropdown inside drawer: flatten the menu */
  .topbar nav.mobile-open .nav-stack .nav-dropdown {
    padding: 0;
  }
  .topbar nav.mobile-open .nav-stack .nav-dropdown-trigger {
    background: transparent;
    border: none;
    color: var(--blue-deep);
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 600;
    padding: 18px 4px;
    width: 100%;
    text-align: left;
    border-bottom: 1px solid rgba(0,40,104,0.08);
    cursor: pointer;
    letter-spacing: -0.01em;
  }
  .topbar nav.mobile-open .nav-stack .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    background: rgba(0,40,104,0.03);
    border: none;
    border-radius: 0;
    margin: 0 -24px;
    padding: 12px 24px;
    display: none;
    opacity: 1;
    transform: none;
    visibility: visible;
    min-width: 0;
  }
  .topbar nav.mobile-open .nav-stack .nav-dropdown.is-open .nav-dropdown-menu {
    display: block;
  }
  .topbar nav.mobile-open .nav-stack .nav-dropdown-item {
    display: flex;
    padding: 12px 0;
    font-size: 16px;
    font-family: var(--sans);
    border-bottom: 1px solid rgba(0,40,104,0.06);
    gap: 12px;
  }
  .topbar nav.mobile-open .nav-stack .nav-dropdown-item:last-child {
    border-bottom: none;
  }
  .topbar nav.mobile-open .nav-stack .nav-dd-icon { font-size: 18px; }
  .topbar nav.mobile-open .nav-stack .nav-dd-name {
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 600;
    color: var(--blue-deep);
    display: block;
  }
  .topbar nav.mobile-open .nav-stack .nav-dd-tag {
    font-size: 13px;
    color: var(--muted-strong);
    display: block;
    line-height: 1.4;
    margin-top: 2px;
  }
}

/* Body lock when drawer open */
body.nav-locked {
  overflow: hidden;
}

/* Above the 880px breakpoint, behavior unchanged */
@media (min-width: 881px) {
  .nav-mobile-toggle { display: none !important; }
  .topbar nav .nav-stack {
    display: contents; /* nav-stack disappears as a layout element on desktop */
  }
}
