/* ============================================================
   Landing Page Conversion Teardown — JV / Affiliate page
   Dark navy + gold. Shorter structure, no pricing section.
   Audience: launch affiliates (not end-buyers).
   ============================================================ */

:root {
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", ui-sans-serif, system-ui, Roboto, Arial, sans-serif;

  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  --text-h1: clamp(2.15rem, 4.8vw, 3.5rem);
  --text-h2: clamp(1.7rem, 3.2vw, 2.4rem);
  --text-h3: 1.3rem;
  --text-body-lg: 1.125rem;
  --text-body: 1rem;
  --text-small: 0.875rem;
  --text-micro: 0.75rem;

  --tracking-h1: -0.03em;
  --tracking-eyebrow: 0.14em;
  --leading-tight: 1.08;
  --leading-relaxed: 1.65;

  --color-brand: #1b2440;
  --color-brand-light: #35406a;
  --color-brand-dark: #0e1526;

  --color-accent: #c9962b;
  --color-accent-bright: #eab308;
  --color-accent-dark: #8f6912;
  --color-accent-soft: #f7ecd0;

  --color-neutral-0: #ffffff;
  --color-neutral-50: #f7f8fb;
  --color-neutral-100: #eef0f6;
  --color-neutral-200: #e0e3ee;
  --color-neutral-300: #c7ccdd;
  --color-neutral-500: #6a7289;
  --color-neutral-700: #333b52;
  --color-neutral-900: #0e1526;
  --color-neutral-950: #070b16;

  --color-surface: var(--color-neutral-0);
  --color-surface-alt: var(--color-neutral-50);
  --color-surface-tinted: color-mix(in oklab, var(--color-accent) 6%, var(--color-neutral-0));
  --color-surface-inverse: #0e1526;

  --color-text-primary: #101728;
  --color-text-secondary: #333b52;
  --color-text-muted: #6a7289;
  --color-text-inverse: #ffffff;

  --color-border: var(--color-neutral-200);
  --color-border-strong: var(--color-neutral-300);

  --gradient-gold: linear-gradient(135deg, #eab308 0%, #c9962b 55%, #a97e1c 100%);
  --gradient-hero-dark: linear-gradient(160deg, #131b30 0%, #0e1526 60%, #0a0f1e 100%);
  --gradient-mesh-dark: radial-gradient(60% 60% at 16% 10%, color-mix(in oklab, #c9962b 28%, transparent), transparent 70%),
                        radial-gradient(52% 52% at 90% 26%, color-mix(in oklab, #35406a 60%, transparent), transparent 72%);

  --shadow-xs: 0 1px 2px rgba(7, 11, 22, 0.06);
  --shadow-sm: 0 1px 2px rgba(7, 11, 22, 0.06), 0 4px 8px -4px rgba(7, 11, 22, 0.1);
  --shadow-md: 0 2px 4px rgba(7, 11, 22, 0.06), 0 8px 20px -8px rgba(7, 11, 22, 0.16);
  --shadow-lg: 0 4px 12px rgba(7, 11, 22, 0.08), 0 20px 40px -20px rgba(7, 11, 22, 0.24);
  --shadow-gold-glow: 0 10px 28px -12px color-mix(in oklab, var(--color-accent) 70%, transparent);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-2xl: 24px;
  --radius-pill: 999px;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;

  --pad-section-sm: clamp(2rem, 4vw, 3rem);
  --pad-section: clamp(3rem, 6vw, 5rem);
  --pad-section-lg: clamp(4rem, 8vw, 6rem);

  --duration-med: 240ms;
  --duration-slow: 400ms;
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); font-size: var(--text-body); line-height: 1.5; color: var(--color-text-primary); background: var(--color-surface); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
a { color: var(--color-accent-dark); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: var(--weight-bold); line-height: 1.15; }
h1 { font-size: var(--text-h1); letter-spacing: var(--tracking-h1); line-height: var(--leading-tight); }
h2 { font-size: var(--text-h2); letter-spacing: -0.02em; }
h3 { font-size: var(--text-h3); font-weight: var(--weight-semibold); letter-spacing: -0.01em; }
p { line-height: var(--leading-relaxed); }

.eyebrow { display: inline-block; font-size: var(--text-micro); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--color-accent-dark); margin-bottom: var(--space-3); }

*:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; border-radius: var(--radius-sm); }

.skip-link { position: absolute; top: -100px; left: 0; background: var(--color-accent-dark); color: #fff; padding: 12px 16px; z-index: 200; }
.skip-link:focus { top: 0; }

.container { max-width: 1140px; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.container-narrow { max-width: 760px; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }

section { padding-block: var(--pad-section); }
.section-tinted { background: var(--color-surface-tinted); }
.section-alt { background: var(--color-surface-alt); }
.section-head { margin-bottom: var(--space-6); }
.section-head--center { text-align: center; max-width: 60ch; margin-inline: auto; }
.section-head--left { text-align: left; max-width: 54ch; }
.section-head p { color: var(--color-text-secondary); font-size: var(--text-body-lg); margin-top: var(--space-3); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); font-weight: var(--weight-semibold); border: 0; cursor: pointer; text-decoration: none; transition: transform var(--duration-med) var(--ease-out-quart), box-shadow var(--duration-med) var(--ease-out-quart), background var(--duration-med) var(--ease-out-quart); white-space: nowrap; }
.btn--md { padding: 0.75rem 1.5rem; font-size: var(--text-body); border-radius: var(--radius-lg); min-height: 44px; }
.btn--lg { padding: 1rem 2rem; font-size: var(--text-body-lg); border-radius: var(--radius-lg); min-height: 56px; }
.btn-primary { background: var(--gradient-gold); color: #1a1305; box-shadow: var(--shadow-gold-glow); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 32px -12px color-mix(in oklab, var(--color-accent) 78%, transparent); }
.btn-primary:active { transform: translateY(0); }
.btn-primary svg { transition: transform var(--duration-med) var(--ease-out-quart); }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-outline { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.4); }
.btn-outline:hover { background: rgba(255,255,255,0.08); }
.btn-block { width: 100%; }

/* Pills */
.pill { display: inline-flex; align-items: center; gap: var(--space-2); padding: 0.375rem 0.75rem; font-size: var(--text-micro); font-weight: var(--weight-semibold); border-radius: var(--radius-pill); border: 1px solid transparent; }
.pill svg { width: 14px; height: 14px; }
.pill--jv { background: color-mix(in oklab, var(--color-accent-bright) 20%, transparent); color: #3a2c06; border-color: color-mix(in oklab, var(--color-accent) 45%, transparent); letter-spacing: 0.1em; text-transform: uppercase; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 60; background: color-mix(in oklab, var(--color-surface-inverse) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,0.08); height: 66px; display: flex; align-items: center; transition: height var(--duration-med) var(--ease-out-quart); }
.site-header[data-compact="true"] { height: 54px; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { display: inline-flex; align-items: center; gap: var(--space-2); font-family: var(--font-display); font-weight: var(--weight-bold); font-size: 1rem; letter-spacing: -0.02em; color: #fff; text-decoration: none; }
.brand__mark { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-md); background: var(--gradient-gold); color: #1a1305; }
.brand__mark svg { width: 18px; height: 18px; }
.header-cta { display: none; }
@media (min-width: 768px) { .header-cta { display: inline-flex; } }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--gradient-hero-dark); color: #fff; padding-block: clamp(2.75rem, 6vw, 5rem); }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--gradient-mesh-dark); opacity: 0.75; pointer-events: none; z-index: 0; }
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; } }
.hero h1 { color: #fff; margin-bottom: var(--space-4); }
.hero-eyebrow { color: var(--color-accent-bright); }
.hero .sub-hero { font-size: var(--text-body-lg); color: rgba(255,255,255,0.84); max-width: 50ch; margin-bottom: var(--space-5); }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }

/* Snapshot card (hero right) */
.snapshot { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-2xl); padding: clamp(1.5rem, 3vw, 2rem); backdrop-filter: blur(4px); box-shadow: var(--shadow-lg); }
.snapshot h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--color-accent-bright); margin-bottom: var(--space-4); }
.snapshot dl { display: grid; gap: var(--space-3); margin: 0; }
.snapshot .row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: var(--space-2); }
.snapshot dt { color: rgba(255,255,255,0.65); font-size: var(--text-small); }
.snapshot dd { margin: 0; color: #fff; font-weight: var(--weight-semibold); text-align: right; }
.snapshot dd .accent { color: var(--color-accent-bright); }

/* Funnel ladder chips */
.funnel-flow { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; margin-top: var(--space-4); }
.funnel-chip { display: inline-flex; align-items: center; gap: var(--space-2); padding: 0.35rem 0.75rem; border-radius: var(--radius-pill); background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14); color: #fff; font-size: var(--text-small); font-weight: var(--weight-medium); }
.funnel-chip strong { color: var(--color-accent-bright); }
.funnel-arrow { color: rgba(255,255,255,0.4); }

/* Prose / summary */
.two-col { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1.05fr; } }
.lead { font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-family: var(--font-display); font-weight: var(--weight-bold); letter-spacing: -0.02em; line-height: 1.2; max-width: 22ch; }
.prose { display: grid; gap: var(--space-4); }
.prose p { color: var(--color-text-secondary); }

/* Why-affiliates feature grid */
.feature-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.feature-item { display: grid; grid-template-columns: 44px 1fr; gap: var(--space-3); align-items: start; padding: var(--space-4); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); transition: transform var(--duration-med) var(--ease-out-quart), box-shadow var(--duration-med) var(--ease-out-quart); }
.feature-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.icon-tile { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: var(--radius-lg); background: var(--tile-bg); color: var(--tile-fg); }
.icon-tile svg { width: 20px; height: 20px; }
.icon-tile--gold   { --tile-bg: color-mix(in oklab, var(--color-accent) 18%, var(--color-surface)); --tile-fg: var(--color-accent-dark); }
.icon-tile--navy   { --tile-bg: color-mix(in oklab, var(--color-brand) 14%, var(--color-surface)); --tile-fg: var(--color-brand); }
.icon-tile--teal   { --tile-bg: color-mix(in oklab, #14b8a6 15%, var(--color-surface)); --tile-fg: #0f766e; }
.icon-tile--violet { --tile-bg: color-mix(in oklab, #a78bfa 18%, var(--color-surface)); --tile-fg: #6d28d9; }
.icon-tile--emerald{ --tile-bg: color-mix(in oklab, #34d399 16%, var(--color-surface)); --tile-fg: #047857; }
.icon-tile--coral  { --tile-bg: color-mix(in oklab, #f2705b 15%, var(--color-surface)); --tile-fg: #c0392b; }
.feature-item__body h3 { font-size: 1.05rem; margin-bottom: 2px; }
.feature-item__body p { font-size: var(--text-small); color: var(--color-text-secondary); line-height: 1.5; }

/* Timeline (launch dates) */
.timeline { display: grid; gap: var(--space-3); }
@media (min-width: 720px) { .timeline { grid-template-columns: repeat(3, 1fr); } }
.timeline-item { position: relative; padding: var(--space-4); border-radius: var(--radius-lg); background: var(--color-surface); border: 1px solid var(--color-border); box-shadow: var(--shadow-xs); }
.timeline-item .dot { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--gradient-gold); color: #1a1305; margin-bottom: var(--space-3); }
.timeline-item .dot svg { width: 20px; height: 20px; }
.timeline-item h3 { font-size: 1.05rem; margin-bottom: var(--space-1); }
.timeline-item p { font-size: var(--text-small); color: var(--color-text-secondary); }
.timeline-item .when { display: block; font-family: var(--font-display); font-weight: var(--weight-bold); color: var(--color-text-primary); margin-bottom: var(--space-1); }

/* Contest podium (stat row) */
.podium { display: grid; gap: var(--space-4); align-items: end; }
@media (min-width: 720px) { .podium { grid-template-columns: 1fr 1.15fr 1fr; } }
.tier { padding: var(--space-5) var(--space-4); border-radius: var(--radius-2xl); text-align: center; border: 1px solid var(--color-border); background: var(--color-surface); box-shadow: var(--shadow-sm); }
.tier--first { background: var(--color-surface-inverse); color: #fff; border-color: transparent; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.tier--first::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 70% at 50% 0%, color-mix(in oklab, var(--color-accent) 35%, transparent), transparent 70%); pointer-events: none; }
.tier--first > * { position: relative; z-index: 1; }
.tier .rank { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-inline: auto; border-radius: var(--radius-pill); font-family: var(--font-display); font-weight: var(--weight-bold); font-size: 1.25rem; margin-bottom: var(--space-3); }
.tier--first .rank { background: var(--gradient-gold); color: #1a1305; }
.tier--second .rank { background: var(--color-neutral-200); color: var(--color-neutral-700); }
.tier--third .rank { background: color-mix(in oklab, var(--color-accent) 22%, var(--color-surface)); color: var(--color-accent-dark); }
.tier .prize { font-family: var(--font-display); font-weight: var(--weight-bold); font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -0.02em; margin-bottom: var(--space-1); }
.tier--first .prize { color: var(--color-accent-bright); }
.tier .label { font-size: var(--text-small); color: var(--color-text-muted); }
.tier--first .label { color: rgba(255,255,255,0.7); }
.fast-action { margin-top: var(--space-4); padding: var(--space-4); border-radius: var(--radius-lg); background: var(--color-surface-tinted); border: 1px dashed var(--color-border-strong); display: flex; gap: var(--space-3); align-items: center; }
.fast-action svg { width: 22px; height: 22px; color: var(--color-accent-dark); flex: none; }
.fast-action p { font-size: var(--text-small); color: var(--color-text-secondary); margin: 0; }

/* Swipes / assets */
.asset-grid { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.asset-card { padding: var(--space-4); border-radius: var(--radius-lg); border: 1px solid var(--color-border); background: var(--color-surface); box-shadow: var(--shadow-xs); }
.asset-card h3 { font-size: 1rem; margin-bottom: var(--space-2); display: flex; align-items: center; gap: var(--space-2); }
.asset-card h3 svg { width: 18px; height: 18px; color: var(--color-accent-dark); }
.asset-card p { font-size: var(--text-small); color: var(--color-text-secondary); }
.asset-card a { font-weight: var(--weight-semibold); }
.swipe-list { list-style: none; padding: 0; display: grid; gap: var(--space-2); }
.swipe-list li { display: grid; grid-template-columns: 20px 1fr; gap: var(--space-2); font-size: var(--text-small); color: var(--color-text-secondary); }
.swipe-list .tick { color: var(--color-accent-dark); }
.swipe-list .tick svg { width: 16px; height: 16px; margin-top: 2px; }

/* Compliance note */
.compliance-note { margin-top: var(--space-5); padding: var(--space-4); border-radius: var(--radius-lg); background: var(--color-surface-alt); border-left: 3px solid var(--color-accent); }
.compliance-note p { font-size: var(--text-small); color: var(--color-text-secondary); }
.compliance-note p + p { margin-top: var(--space-2); }

/* Contact / CTA band */
.contact { position: relative; overflow: hidden; background: var(--gradient-hero-dark); color: #fff; text-align: center; }
.contact::before { content: ""; position: absolute; inset: 0; background: var(--gradient-mesh-dark); opacity: 0.55; pointer-events: none; }
.contact .container { position: relative; z-index: 1; max-width: 720px; }
.contact h2 { color: #fff; }
.contact p { color: rgba(255,255,255,0.82); margin-block: var(--space-4); font-size: var(--text-body-lg); }
.contact .cta-row { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; }
.contact .btn-primary:focus-visible, .contact .btn-outline:focus-visible { outline-color: #fff; }

/* Footer */
.site-footer { background: var(--color-neutral-950); color: rgba(255,255,255,0.7); padding-block: var(--space-6); font-size: var(--text-small); }
.site-footer .container { display: grid; gap: var(--space-4); }
.site-footer .brand { color: #fff; }
.footer-row { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; justify-content: space-between; }
.footer-legal { color: rgba(255,255,255,0.5); font-size: var(--text-micro); line-height: 1.5; }

/* Scroll fade-in */
main > section { opacity: 0; transform: translateY(20px); transition: opacity var(--duration-slow) var(--ease-out-quart), transform var(--duration-slow) var(--ease-out-quart); }
main > section[data-visible="true"] { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  main > section { opacity: 1; transform: none; }
}
