/*
 * Shared styles for the static webinar pages in /public/en:
 *   webinar-ai-tools.html, webinar-ai-tools-extended.html
 * Theme tokens, header, footer, green banner, and the section components
 * both pages use. Page-specific styles stay inline in each page.
 */
:root {
  color-scheme: light;
  --bg: #FFFFFF;
  --page: #F2F4F6;
  --surface: #F2F4F6;
  --surface-2: #E8EBED;
  --dark: #1E1E22;
  --dark-2: #2A2A2E;
  --text: rgba(0,0,0,0.87);
  --muted: rgba(0,0,0,0.55);
  --white: #FFFFFF;
  --white-muted: rgba(255,255,255,0.65);
  --green: #35C170;
  --green-deep: #289355;
  --green-12: rgba(53,193,112,0.12);
  --green-24: rgba(53,193,112,0.24);
  --red: #E5484D;
  --max: 1200px;
  --radius-card: 24px;
  --radius-featured: 32px;
  --radius-pill: 100px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 "Onest", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: -0.025em; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
@media (max-width: 768px) { .wrap { width: min(var(--max), calc(100% - 32px)); } }
.skip { position: absolute; left: -999px; top: 12px; z-index: 20; padding: 10px 14px; background: var(--dark); color: var(--white); border-radius: 8px; }
.skip:focus { left: 12px; }

/* ===== HEADER ===== */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--surface); }
.nav { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 500; letter-spacing: -0.03em; }
.brand img { height: 32px; width: auto; display: block; }
.mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--green); color: var(--dark); font-size: 15px; font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 16px; font-weight: 500; }
.nav-links a { color: var(--text); }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--green-deep); }
.lang-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: var(--dark); text-decoration: none; transition: color .15s ease; }
.lang-toggle:hover, .lang-toggle:focus-visible { color: var(--green-deep); }
.nav-links a.nav-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 20px; border: none; border-radius: 50px; background: var(--dark); color: var(--white); font-weight: 500; font-size: 14px; transition: background .15s ease; text-decoration: none; }
.nav-links a.nav-pill:hover, .nav-links a.nav-pill:focus-visible { background: #000; color: var(--white); }
.menu-toggle { display: none; min-height: 36px; padding: 0 12px; border: none; border-radius: var(--radius-pill); background: var(--surface); color: var(--text); font-weight: 400; cursor: pointer; }

/* ===== HERO (dark like BlogHero) ===== */
.hero { background: var(--dark); color: var(--white); padding: 64px 0 56px; }
.hero-eyebrow { display: inline-flex; padding: 6px 14px; border-radius: var(--radius-pill); background: var(--green-12); color: var(--green); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 900px; margin: 24px 0 20px; font-size: clamp(40px, 7vw, 80px); font-weight: 300; line-height: 1.02; letter-spacing: -0.03em; }
h1 span { color: var(--green); }
.hero-sub { max-width: 680px; color: var(--white-muted); font-size: clamp(16px, 2vw, 19px); font-weight: 300; }
.hero-when { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 24px 0 0; padding: 0; list-style: none; color: var(--white); font-size: 15px; font-weight: 400; }
.hero-when li { display: inline-flex; align-items: center; gap: 14px; }
.hero-when li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--green); }
.hero-when time { font-weight: 500; }
.hero-when a { color: var(--white-muted); text-decoration: underline; text-underline-offset: 3px; }
.hero-when a:hover, .hero-when a:focus-visible { color: var(--green); }
@media (max-width: 560px) { .hero-when { flex-direction: column; align-items: flex-start; gap: 8px; } .hero-when li + li::before { display: none; } }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 28px; border: none; border-radius: var(--radius-pill); font-weight: 500; font-size: 15px; transition: background .15s ease, color .15s ease; cursor: pointer; }
.btn-primary { background: var(--green); color: var(--dark); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--green-deep); color: var(--white); }
.btn-ghost { background: rgba(255,255,255,0.08); color: var(--white); border: 1px solid rgba(255,255,255,0.15); }
.btn-ghost:hover, .btn-ghost:focus-visible { background: rgba(255,255,255,0.15); }
/* On light sections the ghost button needs dark text and border. */
section:not(.dark-section):not(.hero) .btn-ghost { background: transparent; color: var(--text); border-color: rgba(0,0,0,0.15); }
section:not(.dark-section):not(.hero) .btn-ghost:hover, section:not(.dark-section):not(.hero) .btn-ghost:focus-visible { background: var(--dark); border-color: var(--dark); color: var(--white); }

/* ===== SECTION GENERIC ===== */
section { padding: 80px 0; }
.section-label { display: inline-flex; padding: 5px 12px; border-radius: var(--radius-pill); background: var(--green-12); color: var(--green-deep); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
h2 { max-width: 820px; margin-bottom: 16px; font-size: clamp(30px, 5vw, 54px); font-weight: 300; line-height: 1.05; letter-spacing: -0.03em; }
.section-intro { max-width: 720px; color: var(--muted); font-size: 18px; font-weight: 300; }

/* ===== NUMBER BADGE ===== */
.module-num { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px; border-radius: 12px; background: var(--green-12); color: var(--green-deep); font-weight: 500; font-size: 18px; }

/* ===== ANTI-PATTERNS ===== */
.ap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 36px; }
.ap-card { padding: 32px; border-radius: var(--radius-card); background: var(--surface); }
.ap-tag { display: inline-block; padding: 4px 12px; border-radius: var(--radius-pill); background: rgba(229,72,77,0.1); color: var(--red); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.ap-card h3 { font-size: 18px; font-weight: 500; margin-bottom: 10px; letter-spacing: -0.02em; }
.ap-symptom { color: var(--text); font-size: 14px; font-weight: 400; margin-bottom: 8px; }
.ap-detail { color: var(--muted); font-size: 14px; font-weight: 300; margin-bottom: 20px; }
.ap-solutions { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ap-solutions li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 300; }
.ap-solutions li::before { content: "✓"; color: var(--green); font-weight: 500; flex-shrink: 0; }
.ap-solutions strong { font-weight: 500; color: var(--text); }

/* ===== SDD + TDD ===== */
.dark-section { background: var(--dark); color: var(--white); }
.dark-section h2 { color: var(--white); }
.dark-section .section-intro { color: var(--white-muted); }
.claws-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 36px; }
.claw-card { padding: 32px; border-radius: var(--radius-featured); background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); }
.claw-tag { display: inline-block; padding: 5px 12px; border-radius: var(--radius-pill); background: var(--green-12); color: var(--green); font-size: 13px; font-weight: 500; margin-bottom: 14px; }
.claw-card h3 { font-size: 22px; font-weight: 400; margin-bottom: 10px; letter-spacing: -0.02em; color: var(--white); }
.claw-card p { color: var(--white-muted); font-size: 15px; font-weight: 300; margin-bottom: 0; }
.claw-diagram { display: flex; align-items: center; gap: 20px; margin-top: 24px; }
.claw-step { text-align: center; }
.claw-step .label { font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--white-muted); }
.claw-step .value { font-size: 18px; font-weight: 400; margin-top: 4px; color: var(--white); }
.claw-arrow { color: var(--green); font-size: 22px; font-weight: 300; }

/* ===== SPECTRUM TABLE ===== */
.spectrum-shell { overflow-x: auto; margin-top: 36px; border-radius: var(--radius-featured); background: var(--surface); }
.spectrum-table { width: 100%; min-width: 640px; border-collapse: collapse; }
.spectrum-table th, .spectrum-table td { padding: 16px 24px; text-align: left; vertical-align: middle; }
.spectrum-table thead th { background: transparent; color: var(--muted); font-size: 13px; font-weight: 400; letter-spacing: 0.04em; text-transform: uppercase; }
.spectrum-table th:first-child { width: 28%; }
.spectrum-table tbody th { color: var(--text); font-weight: 500; }
.spectrum-table td { color: var(--muted); font-size: 14px; font-weight: 300; }
.spectrum-table .approach { color: var(--green-deep); font-weight: 500; }
.spectrum-table tbody tr + tr th, .spectrum-table tbody tr + tr td { border-top: 1px solid rgba(0,0,0,0.06); }

/* ===== FEEDBACK LOOPS ===== */
.loop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 36px; }
.loop-card { padding: 32px; border-radius: var(--radius-card); background: var(--surface); }
.loop-card h3 { font-size: 20px; font-weight: 400; margin-bottom: 12px; letter-spacing: -0.02em; }
.loop-card p { color: var(--muted); font-size: 15px; font-weight: 300; margin-bottom: 16px; }
.loop-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.loop-list li { padding-left: 22px; position: relative; color: var(--text); font-size: 14px; font-weight: 300; }
.loop-list li::before { content: "→"; position: absolute; left: 0; color: var(--green); font-weight: 400; }
.loop-warn { background: rgba(229,72,77,0.04); }
.loop-warn h3 { color: var(--red); }
.loop-warn .loop-list li::before { content: "✕"; color: var(--red); }

/* ===== SPEAKER ===== */
.speaker-card { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; margin-top: 36px; padding: 32px; border-radius: var(--radius-featured); background: var(--surface); }
.speaker-name { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; }
.speaker-role { color: var(--green-deep); font-weight: 400; margin-bottom: 10px; }
.speaker-bio { color: var(--muted); font-size: 15px; font-weight: 300; max-width: 620px; }

/* ===== CTA ===== */
.cta-section { text-align: center; }
.cta-section h2 { margin: 0 auto 16px; }
.cta-section .section-intro { margin: 0 auto 30px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ===== GREEN BANNER (from staging blog NewVersionBanner variant=green) ===== */
.green-banner { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 36px; padding: 40px; border-radius: 8px; background: linear-gradient(135deg, #35C170 0%, #2DA45F 60%, #289355 100%); position: relative; overflow: hidden; text-decoration: none; color: #fff; transition: transform .2s ease; }
.green-banner:hover, .green-banner:focus-visible { transform: translateY(-2px); }
.green-banner::before { content: ""; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1061 846' width='1061' height='846'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23B9F2D0' stop-opacity='0.9'/%3E%3Cstop offset='1' stop-color='%230F5A33' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cellipse cx='241' cy='423' rx='236' ry='412' fill='url(%23g)' opacity='0.9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: calc(50% + 320px) calc(0% - 190px); background-size: 1041px 824px; pointer-events: none; }
.green-banner-content { position: relative; z-index: 1; }
.green-banner h3 { margin: 0 0 6px; font-size: 28px; font-weight: 600; color: #fff; line-height: 36px; letter-spacing: normal; }
.green-banner p { margin: 0; font-size: 16px; font-weight: 400; color: #fff; line-height: 20px; max-width: 580px; }
.green-banner-btn { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; min-height: 48px; padding: 0 24px; border: none; border-radius: 50px; background: #fff; color: #1E1E22; font-size: 16px; font-weight: 500; font-family: inherit; position: relative; z-index: 1; transition: opacity .15s ease; }
.green-banner:hover .green-banner-btn, .green-banner:focus-visible .green-banner-btn { opacity: 0.9; }
@media (max-width: 768px) { .green-banner { flex-direction: column; align-items: flex-start; padding: 28px; } .green-banner p { max-width: 100%; } }

/* ===== FOOTER ===== */
.site-footer { background: var(--dark); color: rgba(255,255,255,0.65); padding: 80px 0 40px; }
.footer-newsletter { text-align: center; padding-bottom: 56px; }
.footer-newsletter h2 { color: var(--white); font-size: 28px; font-weight: 600; margin: 0 0 12px; letter-spacing: -0.02em; }
.footer-newsletter p { color: rgba(255,255,255,0.65); font-size: 16px; font-weight: 300; max-width: 480px; margin: 0 auto 24px; }
.footer-newsletter .btn-subscribe { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 28px; border: none; border-radius: 50px; background: var(--white); color: var(--dark); font-family: inherit; font-weight: 500; font-size: 15px; cursor: pointer; text-decoration: none; transition: background .15s ease; }
.footer-newsletter .btn-subscribe:hover { background: rgba(255,255,255,0.85); }
.footer-top { display: flex; justify-content: space-between; gap: 40px; padding-bottom: 48px; flex-wrap: wrap; }
.footer-brand-block { max-width: 280px; }
.footer-brand-block img { height: 32px; width: auto; display: block; }
.footer-tagline { margin-top: 16px; color: rgba(255,255,255,0.65); font-size: 14px; font-weight: 300; line-height: 1.6; }
.footer-links-grid { display: grid; grid-template-columns: repeat(3, auto); gap: 24px 56px; }
.footer-col h3 { margin: 0 0 14px; color: var(--white); font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-col ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer-col a { color: rgba(255,255,255,0.65); font-size: 14px; font-weight: 300; }
.footer-col a:hover, .footer-col a:focus-visible { color: var(--green); }
.footer-col .social-row { display: flex; gap: 12px; margin-top: 4px; flex-wrap: wrap; }
.footer-col .social-row a { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; color: rgba(255,255,255,0.65); transition: color .15s ease; }
.footer-col .social-row a:hover, .footer-col .social-row a:focus-visible { color: var(--white); }
.footer-col .social-row svg { width: 20px; height: 20px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.1); flex-wrap: wrap; }
.footer-copy { color: rgba(255,255,255,0.45); font-size: 13px; font-weight: 300; }
.footer-address { color: rgba(255,255,255,0.45); font-size: 13px; font-weight: 300; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; } }
@media (max-width: 980px) {
  .claws-grid, .speaker-card, .loop-grid { grid-template-columns: 1fr; }
  .ap-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { flex-direction: column; }
}
@media (max-width: 768px) {
  .menu-toggle { display: inline-flex; align-items: center; }
  .nav-links { position: absolute; top: 60px; right: 16px; left: 16px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px; border-radius: 16px; background: var(--bg); box-shadow: 0 12px 40px rgba(0,0,0,0.12); }
  .nav-links.is-open { display: flex; }
  .nav-links a, .nav-links a.nav-pill { padding: 12px 16px; text-align: center; }
  .hero { padding: 48px 0 40px; }
  section { padding: 56px 0; }
  .ap-grid { grid-template-columns: 1fr; }
  .claw-diagram { flex-direction: column; }
  .speaker-card { grid-template-columns: 1fr; text-align: center; }
  .footer-links-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
