/* ==========================================================================
   JS TradVentures — Crypto Webinar Landing Page
   FOUNDATION LAYER  (see DESIGN.md for the full system)
   Order: 1) Tokens  2) Responsive spacing  3) Reset  4) Base elements
          5) Layout primitives  6) Typography helpers  7) Utilities
   ========================================================================== */

/* ==========================================================================
   1. TOKEN CONFIG  — define values once; reference by name everywhere
   ========================================================================== */
:root {
  /* ---- Primitive: blue ---- */
  --blue-50:#EAF1FC;  --blue-100:#D6E3FA; --blue-200:#B9CDEE; --blue-300:#7FB0FF;
  --blue-400:#3D78DB; --blue-500:#1C56C9; --blue-600:#054EBD; --blue-700:#1C45AC;
  --blue-800:#0B3880; --blue-900:#093883;

  /* ---- Primitive: red (CTA) ---- */
  --red-500:#DD0E10;  --red-600:#BE0B0D;

  /* ---- Primitive: dark navies ---- */
  --dark-900:#010916; --dark-850:#010B1A; --dark-800:#0A0E18;

  /* ---- Primitive: neutrals ---- */
  --white:#FFFFFF;    --paper:#FDFDFD;    --grey-50:#F5F6F8; --grey-75:#EAEEF4; --grey-100:#F3F6F6;
  --grey-200:#E1E1E2; --grey-300:#CBD2DC; --grey-500:#5B6677; --grey-700:#334155;

  /* ---- Primitive: text ---- */
  --ink:#0F0F10;      --ink-navy:#12213E; --text-body:#334155;
  --on-dark:#FFFFFF;  --on-dark-muted:#AEBFD6;

  /* ---- Primitive: status ---- */
  --gold:#F9C334;     --gold-d:#E9B924;   --green:#3CC655;

  /* ---- Semantic: background ---- */
  --bg-page:var(--grey-50);
  --bg-surface:var(--white);
  --bg-subtle:var(--grey-75);     /* card fill slightly darker than the page bg */
  --bg-band-dark:var(--dark-900);
  --bg-band-chart:var(--dark-850);
  --bg-band-stats:var(--dark-800);
  --bg-tint:var(--blue-50);
  --bg-promo:var(--blue-800);

  /* ---- Semantic: text ---- */
  --text-primary:var(--ink);
  --text-title:var(--ink-navy);
  --text-secondary:var(--text-body);
  --text-muted:var(--grey-500);
  --text-on-dark:var(--on-dark);
  --text-on-dark-muted:var(--on-dark-muted);

  /* ---- Semantic: lines & accents ---- */
  --border-default:var(--grey-200);
  --border-tint:var(--blue-200);
  --accent:var(--blue-600);
  --accent-on-dark:var(--blue-300);
  --accent-highlight:var(--blue-700);

  /* ---- Semantic: action / status ---- */
  --action-primary:var(--red-500);
  --action-primary-h:var(--red-600);
  --star:var(--gold);
  --star-on-dark:var(--gold-d);
  --success:var(--green);

  /* ---- Gradients ---- */
  --grad-hero-fade:linear-gradient(180deg,var(--bg-page) 0%,rgba(245,246,248,0) 22%);
  --grad-promo:linear-gradient(135deg,var(--blue-800),var(--dark-900));
  --grad-chart:linear-gradient(135deg,var(--dark-850),#0B2348);

  /* ---- Typography ---- */
  --font-sans:"Noto Sans SC","PingFang SC","Microsoft YaHei",system-ui,-apple-system,sans-serif;

  /* Fluid type scale (auto-scales mobile -> desktop, no breakpoints needed) */
  --fs-display:clamp(1.9rem, 1.3rem + 3.2vw, 3.4rem);
  --fs-h2:     clamp(1.4rem, 1.15rem + 1.25vw, 1.85rem);
  --fs-h3:     clamp(1.05rem, 1rem + .25vw, 1.15rem);
  --fs-promise:clamp(1.1rem, 1.02rem + .4vw, 1.3rem);
  --fs-lede:   clamp(1rem, .97rem + .15vw, 1.1rem);
  --fs-body:   clamp(.93rem, .9rem + .15vw, 1rem);
  --fs-stat:   clamp(1.55rem, 1.3rem + 1.1vw, 2rem);
  --fs-kicker: .72rem;
  --fs-caption:.8rem;

  --lh-tight:1.1;  --lh-heading:1.22;  --lh-body:1.6;

  /* ---- Radius ---- */
  --r-sm:8px; --r-md:12px; --r-lg:16px; --r-pill:999px; --r-full:50%;

  /* ---- Elevation ---- */
  --shadow-card:0 4px 16px rgba(16,24,40,.07);
  --shadow-form:0 16px 40px -20px rgba(10,14,20,.35);
  --shadow-cta:0 6px 18px -5px rgba(221,14,16,.45);
  --shadow-sticky:0 -6px 20px -8px rgba(10,14,20,.25);

  /* ---- Motion ---- */
  --dur-fast:.15s; --dur-base:.25s; --ease:ease;

  /* ---- Static spacing ramp (4px base) — for fixed/internal gaps ---- */
  --space-1:4px;  --space-2:8px;  --space-3:12px; --space-4:16px; --space-5:24px;
  --space-6:32px; --space-7:48px; --space-8:64px; --space-9:80px;

  /* ======================================================================
     2. RESPONSIVE SPACING  — these tokens change per breakpoint below.
        Components consume THESE, so layout breathes correctly on every device.
        MOBILE baseline = deliberately TIGHT (short, fast, continuous reading).
     ====================================================================== */
  --content-max:560px;      /* reading column for the funnel */
  --content-max-wide:1140px;/* reserved for future 2-col desktop rows */

  --wrap-pad:16px;          /* horizontal gutter — tight on mobile */
  --section-py:34px;        /* section top/bottom padding */
  --section-gap:18px;       /* gap between heading block and content */
  --card-pad:18px;          /* inner padding of cards/form */
  --grid-gap:10px;          /* gap inside grids (stats, events, collage) */
  --stack-gap:11px;         /* vertical gap between stacked items */
  --chip-gap:7px;           /* gap between inline chips/pills */
  --sticky-h:70px;          /* reserved space for fixed bottom CTA */
}

/* ---- Tablet ---- */
@media (min-width:640px){
  :root{
    --wrap-pad:28px;
    --section-py:52px;
    --section-gap:22px;
    --card-pad:22px;
    --grid-gap:14px;
    --stack-gap:12px;
    --chip-gap:9px;
  }
}

/* ---- Desktop ---- */
@media (min-width:1024px){
  :root{
    --wrap-pad:32px;
    --section-py:76px;
    --section-gap:26px;
    --card-pad:26px;
    --grid-gap:20px;
    --stack-gap:14px;
    --chip-gap:10px;
  }
}

/* ==========================================================================
   3. RESET  (modern, minimal)
   ========================================================================== */
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
:root,html,body{overflow-x:clip;} /* kill horizontal scroll WITHOUT breaking position:sticky (clip ≠ scroll container) */
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;overflow-x:clip}
img,picture,svg,video{display:block;max-width:100%;height:auto}
button,input,textarea,select{font:inherit;color:inherit}
button{cursor:pointer;background:none;border:none}
a{color:inherit;text-decoration:none}
ul,ol{list-style:none}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:2px}

/* ==========================================================================
   4. BASE ELEMENTS
   ========================================================================== */
body{
  font-family:var(--font-sans);
  font-size:var(--fs-body);
  line-height:var(--lh-body);
  color:var(--text-primary);
  background:var(--bg-page);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  text-wrap:balance; /* global — inherited by all text */
  padding-bottom:var(--sticky-h); /* clear the fixed bottom CTA */
}

html.is-browser-blocked,
html.is-browser-blocked body{
  background:#fff;
  color:#111827;
}

.browser-block-message{
  display:none;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:100vh;
  min-height:100svh;
  min-height:100dvh;
  padding:24px;
  color:#111827;
  font-size:18px;
  font-weight:850;
  line-height:1.45;
  text-align:center;
}

html.is-browser-blocked .browser-block-message{
  display:flex;
}

html.is-browser-blocked body > :not(.browser-block-message):not(iframe):not(script){
  display:none !important;
}

h1,h2,h3,h4{
  font-weight:900;
  line-height:var(--lh-heading);
  letter-spacing:-.01em;
  color:var(--text-primary);
  text-wrap:balance;
}
h1{font-size:var(--fs-display);line-height:var(--lh-tight)}
h2{font-size:var(--fs-h2)}
h3{font-size:var(--fs-h3)}
p{text-wrap:balance}
strong,b{font-weight:800}

/* ==========================================================================
   5. LAYOUT PRIMITIVES
   ========================================================================== */

/* Centered reading column — the spine of every section */
.wrap{
  width:100%;
  max-width:var(--content-max);
  margin-inline:auto;
  padding-inline:var(--wrap-pad);
}

/* Section: vertical rhythm + light/dark banding.
   Sections are full-bleed; .wrap constrains the inner content. */
.section{padding-block:var(--section-py)}
.section + .section{border-top:1px solid var(--border-default)}

/* Banding variants (remove the divider; the bg change is the separator) */
.section--dark,
.section--stats,
.section--chart{color:var(--text-on-dark);border-top:0}
.section--dark{background:var(--bg-band-dark)}
.section--stats{background:var(--bg-band-stats);padding-top:0} /* form (first child) overlaps up onto the photo; dark bg meets the photo's bottom fade */
.section--stats{padding-top:var(--section-py)}
.section--chart{background:var(--bg-band-chart)}
.section--dark + .section,
.section--stats + .section,
.section--chart + .section{border-top:0}
/* a dark band following any section must not get the light 1px divider */
.section + .section--dark,
.section + .section--stats,
.section + .section--chart{border-top:0}

/* Headings/text auto-adapt inside dark bands */
.section--dark h2,.section--stats h2,.section--chart h2,
.section--dark h1,.section--stats h1,.section--chart h1{color:var(--text-on-dark)}

/* Section heading block spacing */
.section__head{margin-bottom:var(--section-gap)}

/* ==========================================================================
   6. TYPOGRAPHY HELPERS
   ========================================================================== */
.kicker{
  display:block;
  font-size:var(--fs-kicker);
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--accent);
  margin-bottom:var(--space-3);
}
.section--dark .kicker,
.section--stats .kicker,
.section--chart .kicker{color:var(--accent-on-dark)}

.lede{font-size:var(--fs-lede);font-weight:500;color:var(--text-muted)}
.muted{color:var(--text-muted)}
.accent{color:var(--accent)}
.highlight{color:var(--accent-highlight)}

/* ==========================================================================
   7. UTILITIES
   ========================================================================== */
.stack{display:flex;flex-direction:column;gap:var(--stack-gap)}
.center{text-align:center}
.hide{display:none !important}
.full-bleed{width:100vw;margin-inline:calc(50% - 50vw)} /* escape .wrap when needed */

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.001ms !important;
    transition-duration:.001ms !important;
    scroll-behavior:auto !important;
  }
  .js .reveal{opacity:1 !important}
}

/* ==========================================================================
   8. COMPONENTS  (all values reference semantic tokens / responsive spacing)
   ========================================================================== */

/* ---- Branded image placeholder (until optimized photos are dropped in) ---- */
.ph{
  display:flex;align-items:center;justify-content:center;text-align:center;
  background:linear-gradient(135deg,var(--blue-800),var(--dark-900));
  color:var(--blue-300);border:1px solid rgba(127,176,255,.16);
  border-radius:var(--r-md);padding:14px;font-size:.78rem;font-weight:600;line-height:1.4;
}
.ph--lite{background:var(--grey-50);color:var(--accent);border:1px dashed var(--border-tint)}
img.media{width:100%;height:100%;object-fit:cover;border-radius:var(--r-md)}

/* ---- Trust bar ---- */
.topbar{
  background:var(--bg-band-dark);color:var(--text-on-dark);
  display:flex;align-items:center;justify-content:center;flex-wrap:wrap;
  font-size:var(--fs-caption);font-weight:500;
  padding:9px var(--wrap-pad);letter-spacing:.02em;
}
.topbar b{color:var(--text-on-dark);font-weight:800} /* labels white */
.tb-item{display:inline-flex;align-items:center;gap:5px}
.tb-ico{width:14px;height:14px;flex-shrink:0;color:var(--star-on-dark)} /* star + people filled yellow */
.gi-box{fill:var(--star-on-dark)}                       /* gift body — yellow */
.gi-lid,.gi-ribbon,.gi-bow{fill:var(--action-primary)}  /* gift cover/ribbon/bow — red */
.topbar .dot{opacity:.4;margin:0}

/* ---- HERO ---- */
.hero{position:relative;padding-top:10px;padding-bottom:0} /* tight top gap (mobile); form bridges into next section */
@media(min-width:640px){.hero{padding-top:var(--section-py)}}
.eyebrow{
  display:inline-block;font-size:var(--fs-kicker);font-weight:800;letter-spacing:.1em;
  color:#fff;background:var(--accent);padding:6px 14px;border-radius:var(--r-pill);
  margin-bottom:var(--space-4);
}
/* Brand lockup (replaces the date eyebrow): white logo mark on a blue badge + wordmark */
.brand{display:inline-flex;align-items:center;gap:10px;margin-bottom:var(--space-4)}
.brand-mark{display:inline-flex;align-items:center;flex-shrink:0}
/* logo recolored to brand blue via mask (no background, no border) */
.brand-logo{
  width:28px;height:28px;background-color:var(--accent);
  -webkit-mask:url("asset/img/brand/logo.svg") center / contain no-repeat;
          mask:url("asset/img/brand/logo.svg") center / contain no-repeat;
}
.brand-name{font-size:1.1rem;font-weight:900;letter-spacing:-.01em;color:var(--text-primary)}
.hero h1{font-size:clamp(1.9rem, 1.15rem + 4.4vw, 2.9rem);line-height:1.16;margin-bottom:var(--space-3)}
.hero h1 .hl{color:var(--accent)}
.hero .promise{font-size:var(--fs-promise);font-weight:800;margin-bottom:var(--space-2)}
/* subtitle: blue box, white words */
.hero .lede{
  display:inline-block;margin-bottom:var(--space-2);
  background:var(--accent);color:#fff;
  font-size:clamp(1rem, .82rem + .9vw, 1.15rem);font-weight:800;
  padding:6px 14px;border-radius:var(--r-sm);
  text-shadow:none;
}
/* supporting line under the blue box */
.hero .lede-note{
  display:flex;align-items:center;gap:8px;
  font-size:1rem;font-weight:700;color:var(--text-title);
  margin-bottom:var(--space-3);
  text-shadow:0 1px 2px rgba(255,255,255,.95), 0 0 8px rgba(255,255,255,.85);
}
.hero .lede-note__ic{flex:none;display:block}

/* Hero copy is left-aligned (the speaker occupies the right side), layered above the bg */
.hero .wrap{text-align:left;position:relative;z-index:0}
/* Sign-up form lives in the dark band, floating up to overlap the hero photo */
.section--stats .formcard{
  position:relative;z-index:3;
  margin-top:-112px;            /* pull up over the hero photo */
  margin-bottom:var(--space-7); /* gap before the social-proof stats */
  text-align:left;
}

.hero-photo{
  position:relative;z-index:-1;aspect-ratio:4/3;
  width:100vw;margin-left:50%;transform:translateX(-50%); /* full-bleed + always centered (survives max-height) */
  margin-top:-4rem;margin-bottom:0; /* pull up behind the title + subtitle */
}
@media(min-width:640px){.hero-photo{aspect-ratio:16/9;max-height:560px}}
.hero-photo img{
  width:100%;height:100%;object-fit:cover;object-position:center top;
  /* top edge fades into the light page bg */
  -webkit-mask-image:linear-gradient(180deg,transparent 0,#000 22%);
          mask-image:linear-gradient(180deg,transparent 0,#000 22%);
}
/* bottom edge fades into the dark band so photo + form + stats read as one piece */
.hero-photo::after{
  content:"";position:absolute;left:0;right:0;bottom:0;height:45%;pointer-events:none;
  background:linear-gradient(to bottom,transparent,var(--bg-band-stats));
}
/* Layered speaker cutout — lives in the hero (moves with it), floats above the form.
   Tune these three knobs: --spk-h (size + how high it rises), --spk-right (horizontal),
   --spk-bottom (how far it dips onto the form). */
.hero-speaker{
  --spk-h:clamp(340px, 92vw, 520px);
  --spk-right:max(-8px, calc(50% - 295px));
  --spk-bottom:-10px;
  position:absolute;z-index:2; /* above the background + title, BELOW the form */
  right:var(--spk-right);bottom:var(--spk-bottom);
  height:var(--spk-h);width:auto;
  pointer-events:none; /* never blocks the form inputs underneath */
  filter:drop-shadow(0 16px 30px rgba(1,9,22,.45)); /* lift it off the background */
}

.chips{display:flex;flex-wrap:wrap;gap:var(--chip-gap);margin-bottom:var(--space-5)}
.chip{
  display:inline-flex;align-items:center;gap:6px;background:var(--bg-surface);
  border:1px solid var(--border-default);border-radius:var(--r-pill);
  padding:7px 13px;font-size:var(--fs-caption);font-weight:700;
}
.chip .ico{width:14px;height:14px;color:var(--accent);flex-shrink:0}

/* ---- Form card ---- */
.formcard{
  background:var(--bg-surface);border:1px solid var(--border-default);
  padding:var(--card-pad);box-shadow:var(--shadow-form);
  /* concentric radius: inner card radius (--r-md) + the padding gap = harmonious nested corners */
  border-radius:calc(var(--r-md) + var(--card-pad));
  color:var(--text-primary); /* keep card text dark even inside dark sections */
}
.formcard h3{font-size:var(--fs-h3);margin-bottom:4px}
.formcard .fsub{font-size:var(--fs-caption);color:var(--text-muted);margin-bottom:var(--space-3)}

/* Compact one-line event strip inside the form: date · time · Zoom */
.event-meta{
  display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;
  gap:8px;margin-bottom:var(--space-3);
  background:var(--bg-tint);border:1px solid var(--border-tint);
  border-radius:var(--r-sm);padding:7px 10px;
}
.em{display:inline-flex;align-items:center;gap:4px;font-size:.74rem;font-weight:700;color:var(--text-primary);white-space:nowrap}
.em svg{width:13px;height:13px;flex-shrink:0;color:var(--accent)}
.em b{font-weight:800}
.zoom-logo{height:18px;width:auto;flex-shrink:0;display:block}
@media(max-width:420px){
  .event-meta{gap:4px;padding-inline:6px}
  .em{gap:2px;font-size:.62rem}
  .em svg{width:11px;height:11px}
  .zoom-logo{height:13px}
}
.field{margin-bottom:var(--space-3)}
.field label{display:block;font-size:var(--fs-caption);font-weight:700;margin-bottom:5px}
.field input{
  width:100%;padding:10px 13px;background:#fafbfd;color:var(--text-primary);
  border:1.5px solid var(--border-default);border-radius:var(--r-sm);font-size:1rem;
  transition:border-color var(--dur-fast),box-shadow var(--dur-fast);
}
.field input::placeholder{color:var(--grey-300)}
.field input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px rgba(5,78,189,.12)}
/* ---- Invalid-field state: red border + inline message + shake ---- */
.field input.invalid,.field input.invalid:focus{
  border-color:#e02424;box-shadow:0 0 0 3px rgba(224,36,36,.14)
}
.field-error{display:block;margin-top:5px;font-size:var(--fs-caption);font-weight:700;color:#e02424}
.field-error:empty{display:none}
@keyframes fieldShake{
  10%,90%{transform:translateX(-1px)}
  20%,80%{transform:translateX(2px)}
  30%,50%,70%{transform:translateX(-4px)}
  40%,60%{transform:translateX(4px)}
}
.field input.shake{animation:fieldShake .4s cubic-bezier(.36,.07,.19,.97) both}
@media (prefers-reduced-motion: reduce){.field input.shake{animation:none}}

/* ---- Primary CTA ---- */
.cta{
  width:100%;display:flex;align-items:center;justify-content:center;gap:8px;
  background:var(--action-primary);color:#fff;border-radius:var(--r-sm);
  padding:12px 16px;font-size:1.2rem;font-weight:900;letter-spacing:.01em;margin-top:var(--space-1);
  box-shadow:var(--shadow-cta);transition:background var(--dur-fast),transform var(--dur-fast);
}
.cta .arr{transition:transform var(--dur-fast)}
.cta:hover{background:var(--action-primary-h)}
.cta:hover .arr{transform:translateX(3px)}
.cta:active{transform:translateY(1px)}
/* ---- Timed lead popup modal ---- */
.modal{position:fixed;inset:0;z-index:100;display:flex;padding:18px;overflow:auto}
.modal[hidden]{display:none}
.modal__backdrop{position:fixed;inset:0;background:rgba(1,9,22,.6);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
.modal__card{
  position:relative;z-index:1;width:100%;max-width:380px;margin:auto; /* centers, scrolls when tall */
  animation:modalIn .3s var(--ease);
}
.modal__x{
  position:absolute;top:10px;right:12px;z-index:2;width:32px;height:32px;
  font-size:1.6rem;line-height:1;color:var(--text-muted);border-radius:var(--r-full);
}
.modal__x:hover{background:var(--grey-50)}
@keyframes modalIn{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:none}}

.formnote{font-size:var(--fs-caption);color:var(--text-muted);text-align:center;margin-top:9px}

/* Benefit cards under the CTA (replaces hero chips) */
.benefits{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--space-2);margin-top:var(--space-4)}
.benefit{
  display:flex;flex-direction:column;align-items:center;gap:7px;text-align:center;
  background:var(--bg-subtle);border:1px solid var(--border-default);border-radius:var(--r-md);
  padding:13px 6px;font-size:.74rem;font-weight:700;line-height:1.3;color:var(--text-primary);
}
.benefit svg{width:24px;height:24px;flex-shrink:0;color:var(--accent)}

/* ---- Social-proof stats band ---- */
.bandstats{
  display:grid;grid-template-columns:repeat(3,1fr);gap:var(--grid-gap);
  align-items:end; /* bottom-align the three columns so the labels line up */
  margin-bottom:var(--space-5);
  border-block:1px solid rgba(255,255,255,.09);padding-block:var(--space-4);
}
.bstat{text-align:center}
.bstat-ico{display:flex;align-items:center;justify-content:center;height:40px;margin-bottom:7px;color:var(--accent-on-dark)}
.bstat-ico svg{width:28px;height:28px}
.js-mark{
  width:28px;height:28px;background-color:var(--accent-on-dark);
  -webkit-mask:url("asset/img/brand/logo.svg") center / contain no-repeat;
          mask:url("asset/img/brand/logo.svg") center / contain no-repeat;
}
.bstat-ico--logo img{height:40px;width:auto} /* portrait MIYE logo fills the icon row */
/* MIYE column: no number, so the logo grows into that space and the label shrinks */
.bstat--logo .bstat-ico{height:auto}
.bstat--logo .bstat-ico--logo img{height:76px}
.bstat--logo .lbl{font-size:.66rem}
.bstat + .bstat{border-left:1px solid rgba(255,255,255,.09)}
.bstat .num{font-size:var(--fs-stat);font-weight:900;color:var(--accent-on-dark);line-height:1.1}
.bstat .lbl{font-size:var(--fs-caption);color:var(--text-on-dark-muted);margin-top:4px}
.crowdgrid{display:grid;grid-template-columns:1fr 1fr;gap:var(--grid-gap)}
.crowdgrid img{width:100%;height:100%;object-fit:cover;border-radius:var(--r-md);aspect-ratio:1}
.crowdgrid img:first-child{grid-column:span 2;aspect-ratio:16/9}

/* ---- Quiz ---- */
.quizcard{
  display:flex;gap:12px;align-items:center;width:100%;text-align:left;
  background:var(--grey-50);border:2px dashed var(--accent-on-dark);border-radius:var(--r-md);
  padding:12px 14px;font-size:1rem;color:var(--text-primary);
  transition:border-color var(--dur-fast),background var(--dur-fast);
}
#quiz{gap:var(--space-2)} /* single, tighter gap between quiz cards */
.quizcard:hover{border-color:var(--accent);border-style:solid}
.quizcard[aria-pressed="true"]{background:var(--bg-tint);border-color:var(--accent);border-style:solid}
.qbox{
  width:22px;height:22px;flex-shrink:0;color:#fff;
  border:2px solid var(--border-tint);border-radius:6px;
  display:flex;align-items:center;justify-content:center;
  transition:background var(--dur-fast),border-color var(--dur-fast);
}
.qbox svg{width:13px;height:13px;opacity:0;transition:opacity var(--dur-fast)}
.quizcard[aria-pressed="true"] .qbox{background:var(--accent);border-color:var(--accent)}
.quizcard[aria-pressed="true"] .qbox svg{opacity:1}
.quizresult{
  position:sticky;bottom:calc(var(--sticky-h) + 0.75rem); /* sit just above the fixed CTA bar */
  margin-top:var(--space-2);padding:16px;border-radius:var(--r-md);
  background:rgba(221,14,16,.08);border:2px solid var(--action-primary);
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px); /* frosted glass */
  font-weight:700;color:var(--action-primary);display:none;
}
.quizresult.show{display:block;animation:fadeUp var(--dur-base) var(--ease)}

/* ---- Objection strip ---- */
.objstrip{display:grid;grid-template-columns:1fr 1fr;gap:var(--grid-gap)}
.o{
  background:var(--bg-surface);border:1px solid var(--border-default);
  border-radius:var(--r-sm);padding:14px 12px;text-align:center;
}
.o .x{display:block;font-size:.72rem;color:var(--text-muted);text-decoration:line-through;margin-bottom:5px}
.o b{display:block;font-size:.9rem;color:var(--blue-900)}

/* ---- Read-the-market chart band (full-bleed photo background) ---- */
.section--chart.market{
  display:flex;align-items:center;
  min-height:clamp(200px, 46vw, 480px);
  background-image:
    linear-gradient(90deg, rgba(1,11,26,.92) 0%, rgba(1,11,26,.6) 50%, rgba(1,11,26,.25) 100%),
    url("asset/img/bg/market-bg.webp");
  background-size:cover;background-position:right center;background-repeat:no-repeat;
}
.market .section__head{margin-bottom:var(--space-2)}
.marketcap{color:var(--on-dark-muted);font-size:.95rem;margin-top:10px}

/* ---- "Wave" urgency promo ---- */
.wave{
  position:relative;overflow:hidden;background:var(--grad-promo);color:var(--text-on-dark);
  border-radius:var(--r-lg);padding:26px;
}
.wave::after{
  content:"";position:absolute;width:240px;height:240px;right:-80px;top:-90px;
  background:radial-gradient(circle,rgba(127,176,255,.35),transparent 70%);pointer-events:none;
}
.wave .kicker{color:var(--accent-on-dark)}
.wave h2{color:#fff;font-size:1.4rem;margin-bottom:10px;position:relative}
.wave p{color:var(--on-dark-muted);font-size:.98rem;position:relative}
.wave b{color:var(--accent-on-dark)}

/* ---- Mechanism steps ---- */
.steps{display:grid;gap:var(--stack-gap)}
.step{
  display:flex;gap:14px;align-items:center;background:var(--bg-surface);
  border:1px solid var(--border-default);padding:var(--space-3);
  border-radius:calc(var(--r-md) + var(--space-3)); /* concentric with the icon (--r-md) + padding */
  transition:transform var(--dur-fast),box-shadow var(--dur-fast);
}
.step:hover{transform:translateY(-2px);box-shadow:var(--shadow-card)}
.stepicon{
  width:48px;height:48px;flex-shrink:0;color:var(--accent);
  background:var(--grey-50);border-radius:var(--r-md);
  display:flex;align-items:center;justify-content:center;
}
.stepicon svg{width:26px;height:26px;stroke:currentColor;fill:none;stroke-width:2}
.step h3{font-size:var(--fs-h3);margin-bottom:4px}
.step p{font-size:.9rem;color:var(--text-muted)}

/* ---- Jason intro + timeline ---- */
.jason{margin-bottom:var(--space-5)}
/* 1:1 speaker photo, contained within the section padding, rounded */
.jason-photo{
  position:relative;
  aspect-ratio:1;margin-bottom:var(--space-4);
  border-radius:var(--r-lg);overflow:hidden;
}
.jason-photo img{width:100%;height:100%;object-fit:cover;object-position:center top}
.jason-photo::after{
  content:"";position:absolute;inset:auto 0 0 0;height:42%;pointer-events:none;
  background:linear-gradient(transparent,rgba(1,9,22,.6));
}
.jason-name{
  position:absolute;left:18px;bottom:14px;z-index:1;
  color:#fff;font-weight:900;font-size:1.6rem;letter-spacing:-.01em;
  text-shadow:0 2px 10px rgba(1,9,22,.5);
}
.jbadge{
  display:inline-flex;align-items:center;gap:6px;
  background:var(--accent);color:#fff;
  font-size:var(--fs-kicker);font-weight:800;padding:4px 11px 4px 9px;border-radius:var(--r-pill);margin-bottom:8px;
}
.jbadge-logo{
  width:14px;height:14px;flex-shrink:0;background-color:#fff;
  -webkit-mask:url("asset/img/brand/logo.svg") center / contain no-repeat;
          mask:url("asset/img/brand/logo.svg") center / contain no-repeat;
}
.jason h2{font-size:1.3rem;margin-bottom:4px}
.jason .jsub{font-size:.92rem;color:var(--text-muted)}
.tl{position:relative;display:grid;gap:var(--stack-gap)}
/* vertical track line running behind the year pills */
.tl::before{
  content:"";position:absolute;top:12px;bottom:12px;left:31px;width:2px;
  background:var(--border-tint);border-radius:2px;
}
.tlrow{display:grid;grid-template-columns:64px 1fr;gap:14px;align-items:center}
.tlyear{
  position:relative;z-index:1;
  background:var(--bg-tint);color:var(--accent);border-radius:var(--r-sm);
  border:1px solid var(--border-tint);
  display:flex;align-items:center;justify-content:center;
  font-weight:800;font-size:.76rem;text-align:center;padding:5px 4px;
}
.tlbody{
  display:flex;flex-direction:column;gap:3px;
  background:var(--bg-surface);border:1px solid var(--border-tint);
  border-radius:var(--r-md);box-shadow:var(--shadow-card);padding:11px 14px;
}
.tlbody b{color:var(--text-title);font-size:.97rem;font-weight:800}
.tldesc{color:var(--text-muted);font-size:.85rem;line-height:1.45}
/* highlighted final card */
.tlrow--final .tlyear{background:var(--accent);color:#fff;border-color:var(--accent)}
.tlrow--final .tlbody{
  background:var(--accent);border-color:var(--accent);color:#fff;
  font-size:.92rem;line-height:1.5;box-shadow:none;
}

/* ---- Testimonials ---- */
.t-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:var(--space-4)}
.t-head .kicker{margin-bottom:5px}
.t-title{font-size:var(--fs-h2)}
.googlerev{height:44px;width:auto;flex-shrink:0}
.tcard{background:var(--bg-surface);border:1px solid var(--border-default);border-radius:var(--r-lg);padding:18px}
.tcard + .tcard{margin-top:var(--stack-gap)}
.thead{display:flex;align-items:center;gap:12px;margin-bottom:11px}
.tav{
  width:46px;height:46px;flex-shrink:0;border-radius:var(--r-full);object-fit:cover;
  background:var(--blue-900);color:#fff;display:flex;align-items:center;justify-content:center;
  font-weight:800;font-size:1.1rem;
}
.tname{font-weight:800;font-size:.96rem}
.trole{font-size:.8rem;color:var(--text-muted)}
.tstars{margin-left:auto;color:var(--star);font-size:.85rem;letter-spacing:1px;flex-shrink:0}
.tquote{font-size:.93rem;color:var(--text-secondary)}
.tmore{display:flex;align-items:center;justify-content:center;gap:7px;margin-top:var(--stack-gap);
  font-size:.85rem;font-weight:600;color:var(--text-muted)}
.tmore-g{width:16px;height:16px;flex-shrink:0}

/* ---- Offline events ---- */
/* Offline-events auto slideshow */
.slideshow{position:relative;aspect-ratio:4/3;border-radius:var(--r-lg);overflow:hidden;box-shadow:var(--shadow-card)}
.slide{position:absolute;inset:0;margin:0;opacity:0;transition:opacity .8s var(--ease)}
.slide.is-active{opacity:1}
.slide img{width:100%;height:100%;object-fit:cover}
.slide-cap{
  position:absolute;left:0;right:0;bottom:0;padding:16px 16px 14px;
  display:flex;flex-direction:column;gap:2px;color:#fff;
  background:linear-gradient(transparent,rgba(1,9,22,.85));
}
.slide-cap b{font-size:1rem;font-weight:800}
.slide-cap span{font-size:.82rem;color:var(--on-dark-muted)}
.slide-dots{position:absolute;right:14px;bottom:16px;display:flex;gap:6px;z-index:2}
.slide-dots button{width:8px;height:8px;padding:0;border:none;border-radius:50%;background:rgba(255,255,255,.45);cursor:pointer;transition:background var(--dur-fast)}
.slide-dots button.is-active{background:#fff}
.slide-nav{display:flex;align-items:center;gap:24px;margin-top:14px}
.slide-arrow{
  flex:1;display:flex;align-items:center;
  background:none;border:none;padding:8px 0;cursor:pointer;color:var(--accent);
  transition:color var(--dur-fast),opacity var(--dur-fast);
}
.slide-arrow:hover{color:var(--accent-highlight)}
.slide-arrow:active{opacity:.6}
.slide-arrow .ico{width:16px;height:16px;flex-shrink:0;position:relative;z-index:1}
.slide-arrow .line{flex:1;height:2px;background:currentColor;border-radius:2px}
/* overlap the line into the chevron so they read as one continuous arrow */
.slide-arrow[data-dir="-1"] .line{margin-left:-9px}
.slide-arrow[data-dir="1"] .line{margin-right:-9px}
.events-note{font-size:.84rem;color:var(--text-muted);text-align:center;margin-top:var(--space-4)}

/* ---- Community collage ---- */
.collage{display:grid;grid-template-columns:1fr 1fr;gap:var(--grid-gap)}
.collage .media{width:100%;height:auto;aspect-ratio:1;object-fit:cover;border-radius:var(--r-md)}
.collage .banner{grid-column:1 / -1;aspect-ratio:16/9}   /* wide landscape crowd shot up top */
.collage .ph{height:100%}

/* ---- FAQ accordion ---- */
.faq{display:grid;gap:9px}
.fitem{background:var(--bg-surface);border:1px solid var(--border-default);border-radius:var(--r-md);overflow:hidden}
.fq{
  width:100%;display:flex;justify-content:space-between;align-items:center;gap:12px;
  padding:15px 16px;font-weight:700;font-size:.96rem;text-align:left;color:var(--text-primary);
}
.fq .ar{color:var(--accent);flex-shrink:0;transition:transform var(--dur-base)}
.fitem.open .ar{transform:rotate(180deg)}
.fa{max-height:0;overflow:hidden;transition:max-height var(--dur-base) var(--ease)}
.fitem.open .fa{max-height:260px}
.fa p{padding:0 16px 15px;color:var(--text-muted);font-size:.9rem}

/* ---- Risk reversal ---- */
.rr{background:var(--bg-tint);border:1px solid var(--border-tint);border-radius:var(--r-lg);padding:22px;text-align:center}
.rr h3{color:var(--blue-900);font-size:1.1rem;margin-bottom:7px}
.rr p{font-size:.93rem;color:var(--text-secondary)}

/* ---- Final CTA band ---- */
.final{text-align:center}
.final h2{margin-bottom:8px}
.final .lede{color:var(--on-dark-muted);margin-bottom:12px}
.final .seats{color:var(--accent-on-dark);font-weight:800;font-size:.88rem;margin-bottom:var(--space-4)}
.final .formcard{text-align:left}
.final .formcard h3{color:var(--text-primary)}

/* ---- Footer ---- */
/* ---- Site footer (company info · disclaimer · legal links) ---- */
.site-footer{background:var(--bg-band-dark);color:var(--text-on-dark);padding:48px 0 32px}
.footer-inner{display:grid;gap:28px}
.footer-top{display:grid;gap:24px}
.footer-brand{display:flex;flex-direction:column;align-items:center}
.footer-logo{display:block;height:40px;width:auto;margin:0 auto 16px}
.company-info{text-align:center;margin-top:8px}
.company-info h3{font-size:1rem;font-weight:800;color:var(--text-on-dark);margin-bottom:14px;text-transform:uppercase;letter-spacing:.5px}
.company-address{margin-bottom:14px}
.company-address p,.company-contact p{font-size:.85rem;color:var(--on-dark-muted);margin:6px 0;line-height:1.5}
.company-contact a{color:var(--accent-on-dark);transition:color var(--dur-base) var(--ease)}
.company-contact a:hover{color:var(--blue-300);text-decoration:underline}

.footer-disclaimer{
  font-size:.74rem;line-height:1.6;color:var(--on-dark-muted);
  text-align:center;max-width:760px;margin:0 auto;
  padding-top:24px;border-top:1px solid rgba(255,255,255,.08);
}

.footer-bottom{
  display:flex;flex-direction:column;align-items:center;gap:14px;
  border-top:1px solid rgba(255,255,255,.1);padding-top:24px;
}
.footer-copy{margin:0;color:var(--on-dark-muted);font-size:.82rem}
.footer-legal{display:flex;flex-wrap:wrap;gap:8px 18px;justify-content:center;align-items:center}
.footer-legal span{color:var(--on-dark-muted);font-size:.82rem}

@media (min-width:768px){
  .company-info h3{font-size:.95rem;margin-bottom:12px}
  .company-address p,.company-contact p{font-size:.82rem}
}
@media (min-width:1024px){
  .footer-brand{flex-direction:row;align-items:center;justify-content:center;gap:24px}
  .footer-logo{margin:0;flex-shrink:0}
  .company-info{text-align:left;margin-top:0}
  .footer-bottom{flex-direction:row;justify-content:space-between}
}

/* ---- Sticky bottom CTA ---- */
.sticky{
  position:fixed;left:0;right:0;bottom:0;z-index:50;background:#fff;
  border-top:1px solid var(--border-default);padding:10px var(--wrap-pad);box-shadow:var(--shadow-sticky);
  transition:transform var(--dur-base) var(--ease);
}
/* slid out of view while a form CTA is visible on screen (no double CTA) */
.sticky.is-hidden{transform:translate3d(0,110%,0)}
.sticky-inner{max-width:var(--content-max);margin-inline:auto;display:flex;align-items:center;gap:12px}
/* event detail (2 rows) on the left of the CTA */
.sticky-info{display:flex;flex-direction:column;gap:3px;flex-shrink:0;line-height:1.15}
.sti-row{display:inline-flex;align-items:center;gap:5px;font-size:.72rem;font-weight:800;color:var(--text-primary);white-space:nowrap}
.sti-row svg{width:13px;height:13px;flex-shrink:0;color:var(--accent)}
.sti-zoom{height:16px;width:auto;flex-shrink:0;display:block}
.sticky-cta{
  flex:1 1 auto;min-width:0;display:flex;align-items:center;justify-content:center;gap:8px;
  background:var(--action-primary);color:#fff;text-align:center;padding:12px 16px;
  border-radius:var(--r-sm);font-weight:900;font-size:1.1rem;letter-spacing:.01em;
  box-shadow:0 4px 14px -4px rgba(221,14,16,.5);transition:background var(--dur-fast);
}
.sticky-cta:hover{background:var(--action-primary-h)}

/* ==========================================================================
   9. MOTION  — entrance choreography
   ========================================================================== */
@keyframes fadeUp{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes fadeIn{from{opacity:0}to{opacity:1}} /* opacity-only — safe for elements with a layout transform */

/* Hero load: staggered reveal (CSS-only, safe without JS) */
.hero .brand,.hero h1,.hero .lede{animation:fadeUp .6s var(--ease) backwards}
.hero h1{animation-delay:.06s}
.hero .lede{animation-delay:.12s}
/* photo + speaker fade ONLY — their transforms are reserved for layout/centering,
   so a translate-based animation here would break the full-bleed centering */
.hero-photo,.hero-speaker{animation:fadeIn .7s var(--ease) backwards;animation-delay:.18s}

/* Below-fold sections: reveal on scroll (only hidden when JS is active) */
.js .reveal{opacity:0}
.js .reveal.in{animation:fadeUp .6s var(--ease) forwards}

/* ==========================================================================
   10. DESKTOP REFINEMENT  — keep the fast single-column scan, add breathing room
   ========================================================================== */
@media (min-width:768px){
  .objstrip{gap:var(--space-4)}
  .o{padding:18px 14px}
}

/* ==========================================================================
   11. DESKTOP LAYER  (min-width:1024px)
   Additive only. Targets sections by content via :has() so NO markup changes
   and the mobile (<1024px) layout above is byte-for-byte untouched. Uses the
   horizontal space: wider canvas + multi-column where grids already exist.
   ========================================================================== */
@media (min-width:1024px){

  /* Default reading column — wider than mobile, still readable for prose */
  .wrap{max-width:760px}

  /* Sections that earn a wide, multi-column canvas (selected by their content) */
  .section--stats .wrap{max-width:1060px}
  .section:has(.tgrid) .wrap{max-width:1080px}
  .section:has(.objstrip) .wrap,
  .section:has(.steps) .wrap,
  .section:has(.tl) .wrap{max-width:1000px}
  .section:has(.faq) .wrap,
  .section:has(.collage) .wrap,
  .section:has(.slideshow) .wrap{max-width:900px}

  /* ---------------- HERO ---------------- */
  .hero .wrap{max-width:1100px;min-height:540px;display:flex;flex-direction:column;justify-content:center}
  .hero h1{max-width:700px;font-size:clamp(2.3rem,1.6rem+2.2vw,3.3rem);line-height:1.1}
  .hero .lede{max-width:600px;font-size:1.3rem}
  .hero-photo{aspect-ratio:auto;height:clamp(440px,42vw,540px);max-height:none;margin-top:-3rem}
  .hero-speaker{--spk-h:clamp(400px,38vw,500px);--spk-right:max(0px, calc(50% - 480px));--spk-bottom:-6px}

  /* ---------------- STATS BAND / lead form ---------------- */
  .section--stats .formcard{max-width:480px;margin-inline:auto;margin-top:-170px}
  .bandstats{max-width:720px;margin-inline:auto}
  .crowdgrid{grid-template-columns:1fr 1fr 1fr}
  .crowdgrid img:first-child{grid-column:span 3;aspect-ratio:21/9}

  /* ---------------- QUIZ ---------------- */
  #quiz{display:grid;grid-template-columns:1fr 1fr;align-items:stretch}
  .quizcard{height:100%}
  /* keep the sticky result spanning full width below the two columns */
  .quizresult{position:static;backdrop-filter:none;-webkit-backdrop-filter:none}

  /* ---------------- OBJECTIONS ---------------- */
  .objstrip{grid-template-columns:repeat(4,1fr)}

  /* ---------------- MECHANISM STEPS ---------------- */
  .steps{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}
  .step{flex-direction:column;align-items:flex-start;text-align:left;height:100%}

  /* ---------------- JASON + TIMELINE (2-col) ---------------- */
  .jason{display:grid;grid-template-columns:320px 1fr;gap:36px;align-items:center;margin-bottom:var(--space-7)}
  .jason-photo{margin-bottom:0}
  .tl{max-width:760px;margin-inline:auto}

  /* ---------------- TESTIMONIALS (3-up) ---------------- */
  .tgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--grid-gap);align-items:start}
  .tcard + .tcard{margin-top:0}

  /* ---------------- SLIDESHOW ---------------- */
  .slideshow{aspect-ratio:16/9}

  /* ---------------- FAQ (2-col) ---------------- */
  .faq{grid-template-columns:1fr 1fr;align-items:start}

  /* ---------------- FINAL CTA ---------------- */
  .final .formcard{max-width:480px;margin-inline:auto}

  /* ---------------- STICKY BOTTOM CTA ---------------- */
  .sticky-inner{max-width:var(--content-max-wide);margin-inline:auto;display:flex;justify-content:center}
  .sticky-cta{max-width:460px}
}

/* Large desktop — a little more room for the hero visual */
@media (min-width:1280px){
  .hero-photo{height:560px}
  .hero-speaker{--spk-h:540px;--spk-right:max(0px, calc(50% - 540px))}
}
