/* Landing pages built from content/landing/<tenant>/<path>.json (templates/funnels/webinar.html).
   Colours: --wb-primary / --wb-accent default to the vendor's brand colours; a page can set "theme" in its file
   or add its own stylesheet ("stylesheet": "landing/<tenant>/<name>.css") to override anything here. */
.wb { --wb-primary: var(--brand); --wb-accent: var(--accent); --wb-ink: #0b1220; --wb-radius: 20px;
  --wb-t1: #2563eb; --wb-t2: #16a34a; --wb-t3: #ea580c; --wb-t4: #7c3aed; --wb-t5: #0891b2; --wb-t6: #db2777; }
.wb-wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.wb h1, .wb h2, .wb h3 { font-family: var(--font-display); letter-spacing: -0.02em; }
.wb-preview { background: #fef3c7; color: #92400e; padding: 8px 16px; font-size: var(--fs-sm); text-align: center; }

/* Announcement */
.wb-announce { background: linear-gradient(90deg, var(--wb-accent), color-mix(in oklab, var(--wb-accent) 70%, #e11d48)); color: #fff;
  text-align: center; padding: 9px 16px; font-size: 0.9rem; font-weight: 600; }
.wb-announce a { color: #fff; text-decoration: underline; margin-left: 8px; font-weight: 800; }

/* Hero */
.wb-hero { position: relative; overflow: hidden; padding: clamp(28px, 5vw, 64px) 0 clamp(36px, 6vw, 80px);
  background: radial-gradient(55% 70% at 85% 30%, color-mix(in oklab, var(--wb-primary) 45%, transparent), transparent 70%),
              radial-gradient(40% 60% at 0% 0%, color-mix(in oklab, var(--wb-accent) 22%, transparent), transparent 70%),
              linear-gradient(160deg, #050a1a, #0b1533 60%, #10204f); color: #fff; }
.wb:not(.wb-dark-hero) .wb-hero { background: linear-gradient(160deg, color-mix(in oklab, var(--wb-primary) 8%, #fff), #fff); color: var(--text); }
.wb-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.wb-pill { display: inline-flex; padding: 6px 14px; border-radius: 999px; background: rgb(255 255 255 / 0.1); border: 1px solid rgb(255 255 255 / 0.2);
  font-size: 0.85rem; font-weight: 700; margin-bottom: 14px; }
.wb-hero h1 { font-size: clamp(2.1rem, 1.4rem + 3.2vw, 3.8rem); line-height: 1.05; color: inherit; }
.wb-grad { background: linear-gradient(100deg, #7fb2ff, var(--wb-accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wb:not(.wb-dark-hero) .wb-grad { background-image: linear-gradient(100deg, var(--wb-primary), var(--wb-accent)); }
.wb-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.wb-chips span { padding: 6px 12px; border-radius: 999px; font-size: 0.85rem; font-weight: 700; background: rgb(255 255 255 / 0.08);
  border: 1px solid rgb(255 255 255 / 0.18); }
.wb:not(.wb-dark-hero) .wb-chips span, .wb:not(.wb-dark-hero) .wb-pill { background: var(--surface); border-color: var(--border); }
.wb-lead { font-size: clamp(1.02rem, 0.95rem + 0.4vw, 1.2rem); line-height: 1.6; margin-top: 16px; opacity: 0.88; max-width: 620px; }
.wb-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin-top: 16px; font-weight: 600; font-size: 0.95rem; }
.wb-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.wb-price strong { font-family: var(--font-display); font-size: clamp(2rem, 1.6rem + 1.5vw, 2.8rem); line-height: 1; }
.wb-price s { opacity: 0.6; font-size: 1.1rem; }
.wb-off { background: #16a34a; color: #fff; padding: 3px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 800; }
.wb-free { color: #4ade80; }
.wb-price-note { width: 100%; font-size: 0.85rem; opacity: 0.75; }
.wb-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.wb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 14px; font-weight: 800;
  text-decoration: none !important; transition: transform var(--t), box-shadow var(--t), background var(--t); border: 0; cursor: pointer; font-size: 1rem; }
.wb-btn-accent { background: var(--wb-accent); color: #fff; box-shadow: 0 14px 30px -12px color-mix(in oklab, var(--wb-accent) 70%, transparent); }
.wb-btn-accent:hover { transform: translateY(-2px); color: #fff; }
.wb-btn-ghost { background: rgb(255 255 255 / 0.08); color: inherit; border: 1px solid rgb(255 255 255 / 0.25); }
.wb:not(.wb-dark-hero) .wb-btn-ghost { background: var(--surface); border-color: var(--border); }
.wb-block { width: 100%; }
.wb-countdown { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; padding: 10px 14px; border-radius: 14px;
  background: rgb(255 255 255 / 0.08); border: 1px solid rgb(255 255 255 / 0.18); }
.wb-cd-label { font-weight: 700; font-size: 0.85rem; margin-right: 4px; }
.wb-cd { display: grid; text-align: center; font-size: 0.7rem; opacity: 0.85; min-width: 42px; }
.wb-cd b { font-size: 1.3rem; font-family: var(--font-display); }
.wb-hero-visual { position: relative; display: grid; place-items: end center; min-height: 420px; }
.wb-hero-visual img { position: relative; z-index: 1; width: min(420px, 90%); filter: drop-shadow(0 30px 40px rgb(0 0 0 / 0.45)); }
.wb-orb { position: absolute; left: 50%; top: 52%; width: min(380px, 82%); aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle at 35% 28%, #6fb0ff, var(--wb-primary) 45%, #0a2470); box-shadow: 0 0 100px 10px color-mix(in oklab, var(--wb-primary) 40%, transparent); }
.wb-glass { position: absolute; z-index: 2; background: rgb(255 255 255 / 0.12); border: 1px solid rgb(255 255 255 / 0.25); border-radius: 16px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding: 12px 16px; display: grid; color: #fff; box-shadow: 0 20px 40px -18px rgb(0 0 0 / 0.55); }
.wb-stat strong { font-family: var(--font-display); font-size: 1.6rem; line-height: 1; } .wb-stat span { font-size: 0.78rem; opacity: 0.8; }
.wb-stat-1 { left: 0; top: 8%; } .wb-stat-2 { right: 0; top: 2%; } .wb-stat-3 { right: -2%; top: 46%; }
.wb-person { right: 4%; bottom: 4%; text-align: right; border-right: 3px solid var(--wb-accent); background: rgb(10 20 50 / 0.6); }
.wb-person span { font-size: 0.8rem; opacity: 0.9; }

/* Sub-navigation */
.wb-subnav { position: sticky; top: var(--header-h); z-index: 30; background: color-mix(in oklab, var(--bg) 90%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border); }
.wb-subnav .wb-wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; align-items: center; }
.wb-subnav a { padding: 12px 12px; white-space: nowrap; font-weight: 700; font-size: 0.9rem; color: var(--text-2); text-decoration: none; }
.wb-subnav a:hover { color: var(--wb-primary); }
.wb-subnav .wb-subnav-cta { margin-left: auto; color: var(--wb-accent); }

/* Sections */
.wb-section { padding: clamp(40px, 6vw, 80px) 0; }
.wb-alt { background: color-mix(in oklab, var(--wb-primary) 4%, var(--bg)); }
.wb-darksec { background: linear-gradient(160deg, #06102a, #0b1838); color: #fff; }
.wb-darksec .wb-head p, .wb-darksec .wb-muted { color: rgb(255 255 255 / 0.75); }
.wb-head { max-width: 760px; margin: 0 auto clamp(22px, 3vw, 36px); text-align: center; }
.wb-head h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); line-height: 1.15; color: inherit; }
.wb-head p { margin-top: 10px; color: var(--text-2); font-size: 1.05rem; line-height: 1.6; }
.wb-eyebrow { display: inline-block; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--wb-accent); margin-bottom: 8px; }
.wb-center { text-align: center; margin-top: 26px; }
.wb-note { text-align: center; color: var(--text-2); margin-top: 18px; }
.wb-muted { color: var(--text-3); }
.wb-link { font-weight: 800; color: var(--wb-primary); }
.wb-label { display: block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }

.wb-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--wb-radius); padding: clamp(18px, 2vw, 26px);
  box-shadow: 0 10px 28px -20px rgb(15 23 42 / 0.35); color: var(--text); }
.wb-darksec .wb-card { background: rgb(255 255 255 / 0.06); border-color: rgb(255 255 255 / 0.14); color: #fff; }
.wb-card h3 { font-size: 1.12rem; color: inherit; margin-bottom: 6px; }
.wb-card p { color: var(--text-2); line-height: 1.6; font-size: 0.98rem; }
.wb-darksec .wb-card p { color: rgb(255 255 255 / 0.78); }

/* Colour-accented cards (cycle through 6 tones) */
.wb-tone { --tone: var(--wb-t1); }
.wb-tone:nth-child(6n+2) { --tone: var(--wb-t2); } .wb-tone:nth-child(6n+3) { --tone: var(--wb-t3); }
.wb-tone:nth-child(6n+4) { --tone: var(--wb-t4); } .wb-tone:nth-child(6n+5) { --tone: var(--wb-t5); } .wb-tone:nth-child(6n+6) { --tone: var(--wb-t6); }
.wb-card.wb-tone { border-left: 5px solid var(--tone); background: linear-gradient(135deg, color-mix(in oklab, var(--tone) 7%, var(--surface)), var(--surface) 60%); }
.wb-darksec .wb-card.wb-tone { background: linear-gradient(135deg, color-mix(in oklab, var(--tone) 20%, transparent), rgb(255 255 255 / 0.04) 70%); }
.wb-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; font-size: 1.5rem; margin-bottom: 12px;
  background: color-mix(in oklab, var(--tone, var(--wb-primary)) 14%, var(--surface)); }
.wb-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.wb-tags span { padding: 4px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; background: color-mix(in oklab, var(--tone, var(--wb-primary)) 10%, var(--surface));
  color: color-mix(in oklab, var(--tone, var(--wb-primary)) 80%, var(--text)); }
.wb-cards { display: grid; gap: clamp(14px, 2vw, 22px); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wb-cards.cols-1 { grid-template-columns: 1fr; } .wb-cards.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wb-cards.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wb-cards.is-compact .wb-card { padding: 16px 18px; }
.wb-cards.is-compact .wb-icon { width: 40px; height: 40px; font-size: 1.25rem; margin-bottom: 8px; }

.wb-schedule { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.wb-schedule strong { font-size: 1.12rem; }

.wb-instructor { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
.wb-instructor img { width: 100%; border-radius: 24px; background: linear-gradient(160deg, var(--wb-primary), #0a2470); }
.wb-instructor h3 { font-size: 1.6rem; }
.wb-bio { font-size: 1.04rem; line-height: 1.7; color: var(--text-2); margin-top: 12px; }
.wb-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.wb-stats div { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px; text-align: center; }
.wb-stats strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--wb-primary); }
.wb-stats span { font-size: 0.78rem; color: var(--text-3); font-weight: 600; }
.wb-ticks { list-style: none; padding: 0; margin-top: 14px; display: grid; gap: 8px; }
.wb-ticks li { position: relative; padding-left: 28px; line-height: 1.55; }
.wb-ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  font-size: 0.72rem; font-weight: 900; color: #fff; background: #16a34a; }

.wb-timeline { list-style: none; padding: 0; display: grid; gap: 14px; position: relative; }
.wb-timeline::before { content: ""; position: absolute; left: 23px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--wb-primary), var(--wb-accent)); opacity: 0.35; }
.wb-timeline li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; align-items: start; }
.wb-dot { position: relative; z-index: 1; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem; font-weight: 800;
  background: var(--surface); border: 2px solid var(--tone); color: var(--tone); }
.wb-timeline .wb-card { border-left: 4px solid var(--tone); }

.wb-video .wb-frame { aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 16px 36px -18px rgb(0 0 0 / 0.6); }
.wb-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.wb-video h3 { margin-top: 12px; font-size: 1.05rem; }
.wb-video p { color: var(--text-2); font-size: 0.95rem; }
.wb-darksec .wb-video p { color: rgb(255 255 255 / 0.75); }

.wb-quote blockquote { font-size: 1.02rem; line-height: 1.65; margin: 10px 0 14px; color: inherit; }
.wb-quote figcaption { display: grid; } .wb-quote figcaption span { font-size: 0.85rem; color: var(--text-3); }
.wb-stars { color: #f59e0b; letter-spacing: 2px; }

.wb-cert { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(20px, 4vw, 48px); align-items: center; }
.wb-cert img { width: 100%; border-radius: 18px; box-shadow: 0 24px 50px -24px rgb(0 0 0 / 0.5); }

.wb-steps { list-style: none; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.wb-num { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--tone); display: block; margin-bottom: 6px; }

.wb-faq { max-width: 860px; margin-inline: auto; display: grid; gap: 10px; }
.wb-faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 4px 18px; }
.wb-faq summary { cursor: pointer; font-weight: 800; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.wb-faq summary::after { content: "+"; font-size: 1.3rem; color: var(--wb-primary); }
.wb-faq details[open] summary::after { content: "–"; }
.wb-faq p { padding: 0 0 16px; color: var(--text-2); line-height: 1.65; }
.wb-text { max-width: 820px; margin-inline: auto; display: grid; gap: 14px; font-size: 1.05rem; line-height: 1.75; color: var(--text-2); }
.wb-ctaband { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: clamp(22px, 3vw, 34px);
  border-radius: 22px; background: linear-gradient(135deg, var(--wb-primary), #0a2470); color: #fff; }
.wb-ctaband p { font-size: 1.15rem; font-weight: 700; }

/* Register */
.wb-register { background: radial-gradient(60% 80% at 100% 0%, color-mix(in oklab, var(--wb-primary) 12%, transparent), transparent 70%), var(--bg); }
.wb-register-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(24px, 4vw, 56px); align-items: start; }
.wb-register h2 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); line-height: 1.15; }
.wb-register .wb-lead { color: var(--text-2); opacity: 1; }
.wb-register-card { border: 2px solid color-mix(in oklab, var(--wb-primary) 30%, var(--border)); box-shadow: 0 30px 60px -30px rgb(15 23 42 / 0.45); }
.wb-register-card h3 { font-size: 1.3rem; margin-bottom: 14px; }
.wb-form { display: grid; gap: 12px; }
.wb-form label { display: grid; gap: 6px; font-weight: 700; font-size: 0.9rem; }
.wb-form input:not([type="checkbox"]) { height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; }
.wb-form input:focus { outline: 2px solid var(--wb-primary); outline-offset: 1px; }
.wb-consent { display: flex !important; grid-template-columns: none; gap: 10px !important; align-items: flex-start; font-weight: 500 !important; font-size: 0.85rem !important; color: var(--text-2); }
.wb-consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--wb-primary); }
.wb-secure { margin-top: 12px; text-align: center; font-size: 0.85rem; color: var(--text-3); }
.wb-price-lg { margin-top: 0; }
.wb-mini-steps { list-style: none; padding: 0; margin-top: 18px; display: grid; gap: 10px; counter-reset: ms; }
.wb-mini-steps li { counter-increment: ms; display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 12px; }
.wb-mini-steps li::before { content: counter(ms); grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800;
  color: #fff; background: var(--wb-primary); }
.wb-mini-steps span { color: var(--text-2); font-size: 0.95rem; }

/* Sticky enroll bar (shown after the hero scrolls away) */
.wb-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; transform: translateY(110%); transition: transform var(--t);
  background: color-mix(in oklab, #0b1220 92%, transparent); color: #fff; backdrop-filter: blur(10px); padding: 10px 0; }
.wb-sticky.is-on { transform: none; }
.wb-sticky .wb-wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wb-sticky span { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; min-width: 0; }
.wb-sticky strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }
.wb-sticky em { font-style: normal; font-weight: 800; color: #4ade80; }
.wb-sticky s { opacity: 0.6; }
.wb-sticky .wb-btn { padding: 11px 18px; }

@media (max-width: 960px) {
  .wb-hero-grid, .wb-instructor, .wb-cert, .wb-register-grid { grid-template-columns: minmax(0, 1fr); }
  .wb-hero-visual { min-height: 360px; max-width: 520px; width: 100%; margin-inline: auto; }
  .wb-cards, .wb-cards.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wb-instructor img { max-width: 280px; }
  .wb-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .wb-cards, .wb-cards.cols-2, .wb-cards.cols-4 { grid-template-columns: minmax(0, 1fr); }
  .wb-stat-3 { display: none; }
  .wb-glass { padding: 9px 12px; } .wb-stat strong { font-size: 1.25rem; }
  .wb-sticky strong { max-width: 38vw; }
  .wb-actions .wb-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .wb-btn, .wb-sticky { transition: none; } }
.wb-sticky .wb-btn { white-space: nowrap; flex: none; }
@media (max-width: 600px) { .wb-countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; } .wb-cd-label { grid-column: 1 / -1; margin: 0 0 4px; } }
