/* SpeakWithConfidence marketing site */
:root {
  color-scheme: dark;
  --bg: #0b0914; --bg-2: #12101c; --surface: #1a1727; --surface-2: #231f33; --line: #2f2944; --line-2: #463e63;
  --text: #f6f3fc; --text-2: #cbc4de; --muted: #9c94b5;
  --brand: #f5b841; --brand-2: #ffd27a; --brand-ink: #1a1405;
  --conf: #d95926; --clar: #3987e5; --char: #199e70; --good: #3fbf7f; --bad: #ef5b5b;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: ui-rounded, "SF Pro Rounded", -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1160px; --r: 20px;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light; --bg: #faf8fd; --bg-2: #f2eef9; --surface: #ffffff; --surface-2: #f4f0fb; --line: #e4ddf1; --line-2: #cfc5e6;
    --text: #15112a; --text-2: #463f61; --muted: #6b6488; --brand: #b97900; --brand-2: #8a5a00; --brand-ink: #fff;
    --conf: #eb6834; --clar: #2a78d6; --char: #1baf7a; --good: #1f8f55; --bad: #c93636;
  }
}
:root[data-theme="light"] {
  color-scheme: light; --bg: #faf8fd; --bg-2: #f2eef9; --surface: #ffffff; --surface-2: #f4f0fb; --line: #e4ddf1; --line-2: #cfc5e6;
  --text: #15112a; --text-2: #463f61; --muted: #6b6488; --brand: #b97900; --brand-2: #8a5a00; --brand-ink: #fff;
  --conf: #eb6834; --clar: #2a78d6; --char: #1baf7a; --good: #1f8f55; --bad: #c93636;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5.6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { color: var(--text-2); margin: 0 0 1em; }
a { color: var(--brand-2); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--brand); color: var(--brand-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
.wrap { width: min(var(--max), 100% - 32px); margin: 0 auto; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .76rem; font-weight: 800; color: var(--brand); margin-bottom: 10px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* header */
.top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 800 1.05rem var(--display); }
.logo img { width: 32px; height: 32px; }
.top nav { display: flex; align-items: center; gap: 6px; }
.top nav a:not(.btn) { color: var(--text-2); text-decoration: none; font-weight: 600; padding: 8px 10px; border-radius: 10px; }
.top nav a:not(.btn):hover { color: var(--text); background: var(--surface); }
@media (max-width: 720px) { .top nav .hide-sm { display: none; } }
.top nav a { white-space: nowrap; }
@media (max-width: 440px) { .logo span { display: none; } .top nav a:not(.btn) { padding: 8px 6px; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 12px 20px; border-radius: 14px; font-weight: 800; text-decoration: none; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); cursor: pointer; font-size: 1rem; transition: transform .1s, background .15s; }
.btn:hover { background: var(--surface); }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); box-shadow: 0 10px 30px color-mix(in srgb, var(--brand) 25%, transparent); }
.btn--primary:hover { background: color-mix(in srgb, var(--brand) 88%, white); }
.btn--lg { min-height: 58px; padding: 16px 28px; font-size: 1.08rem; border-radius: 16px; }
.btn--sm { min-height: 40px; padding: 8px 14px; }

/* hero */
.hero { position: relative; padding: clamp(48px, 9vw, 110px) 0 60px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 120%; background: radial-gradient(50% 50% at 25% 20%, rgba(245,184,65,.16), transparent 70%), radial-gradient(45% 45% at 80% 10%, rgba(57,135,229,.18), transparent 70%), radial-gradient(40% 40% at 60% 70%, rgba(25,158,112,.12), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 940px) { .hero .wrap { grid-template-columns: 1fr; } }
.hero h1 { max-width: 15ch; }
.hero__sub { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 42ch; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 14px; }
.hero__fine { font-size: .9rem; color: var(--muted); display: flex; gap: 16px; flex-wrap: wrap; }
.hero__fine span::before { content: "✓ "; color: var(--good); font-weight: 800; }
.video-card { position: relative; border-radius: 24px; overflow: hidden; border: 1px solid var(--line-2); background: #000; box-shadow: 0 30px 80px rgba(0,0,0,.45); aspect-ratio: 16 / 10; }
.video-card video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-card__play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.55)); border: 0; cursor: pointer; color: #fff; }
.video-card__play span { display: inline-flex; align-items: center; gap: 10px; background: rgba(15,13,24,.75); border: 1px solid rgba(255,255,255,.25); padding: 14px 20px; border-radius: 999px; font-weight: 800; backdrop-filter: blur(8px); }
.video-card__play[hidden] { display: none; }

/* sections */
section { padding: clamp(56px, 8vw, 100px) 0; }
.section-head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .grid3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .grid2 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.card h3 { margin-top: 10px; }
.icon-badge { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); color: var(--brand); }

/* demo */
.demo { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; }
@media (max-width: 900px) { .demo { grid-template-columns: 1fr; } }
.demo-stage { position: relative; background: radial-gradient(120% 100% at 50% 0%, #2a1f4a, #12101c 70%); border: 1px solid var(--line-2); border-radius: 26px; padding: 26px 18px 18px; min-height: 380px; display: grid; grid-template-rows: auto 1fr auto; color: #f6f3fc; }
.demo-stage .people { display: flex; justify-content: center; gap: 22px; align-items: flex-end; flex-wrap: wrap; }
.demo-stage .coach-spot { position: absolute; left: 14px; top: 12px; transform: scale(.8); transform-origin: top left; }
.demo-caption { text-align: center; min-height: 5em; font-size: 1.08rem; padding: 10px 6px; }
.demo-caption b { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.demo-caption mark { background: rgba(239,91,91,.35); color: inherit; border-radius: 4px; padding: 0 2px; }
.demo-flash { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #1a1405; font-weight: 800; padding: 6px 14px; border-radius: 999px; opacity: 0; transition: opacity .2s; white-space: nowrap; }
.demo-flash.on { opacity: 1; }
.demo-controls { display: flex; justify-content: center; gap: 10px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.steps li::before { content: counter(s); width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2); display: grid; place-items: center; font-weight: 800; color: var(--brand); }
.steps strong { display: block; color: var(--text); }

/* avatar (shared with app avatar.js) */
.avatar { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; --pulse: 1; --glow: .25; --tint: var(--av); }
.avatar__svg { overflow: visible; transition: transform .25s ease, filter .3s; }
.avatar__ring { opacity: 0; transition: opacity .25s; stroke: var(--tint); }
.avatar[data-state="speaking"] .avatar__svg { transform: scale(var(--pulse)); filter: drop-shadow(0 0 calc(var(--glow) * 22px) var(--tint)); }
.avatar[data-state="speaking"] .avatar__ring { opacity: var(--glow); }
.avatar figcaption { text-align: center; display: grid; line-height: 1.2; font-size: .9rem; }
.avatar figcaption span { font-size: .75rem; color: #b8b0cf; }
.avatar__emo { font-style: normal; font-size: .72rem; font-weight: 700; text-transform: capitalize; color: var(--tint); min-height: 1em; }
.avatar__dots { display: none; }

/* pillars */
.pillar { border-top: 4px solid var(--c); }
.pillar .tag { color: var(--c); font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; }
:root[data-theme="light"] .pillar .tag { color: var(--text); }

/* analytics preview */
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 22px; }
.bars { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 110px 1fr 46px; gap: 10px; align-items: center; font-size: .92rem; }
.bar i { display: block; height: 10px; border-radius: 999px; background: var(--c); }
.bar__track { background: var(--surface-2); border-radius: 999px; overflow: hidden; }

/* pricing */
.toggle { display: inline-flex; padding: 4px; gap: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.toggle button { border: 0; background: transparent; color: var(--text-2); font-weight: 800; padding: 10px 16px; border-radius: 10px; cursor: pointer; min-height: 44px; font-size: .95rem; }
.toggle button[aria-pressed="true"] { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
@media (max-width: 1080px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .plans { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; gap: 10px; position: relative; }
.plan--hl { border-color: var(--brand); box-shadow: 0 20px 60px color-mix(in srgb, var(--brand) 14%, transparent); }
.plan__badge { position: absolute; top: -12px; left: 20px; background: var(--brand); color: var(--brand-ink); font-weight: 800; font-size: .75rem; padding: 4px 10px; border-radius: 999px; }
.price { font: 800 2.4rem var(--display); color: var(--text); letter-spacing: -.02em; }
.price small { font-size: .95rem; font-weight: 600; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 6px 0 14px; display: grid; gap: 8px; color: var(--text-2); font-size: .95rem; }
.plan li::before { content: "✓"; color: var(--good); font-weight: 800; margin-right: 8px; }
.plan .btn { margin-top: auto; }
.compare { width: 100%; border-collapse: collapse; font-size: .95rem; }
.compare th, .compare td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.compare thead th { color: var(--muted); }
.compare td { color: var(--text-2); }
.table-wrap { overflow-x: auto; }

/* faq */
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 4px; list-style: none; display: flex; justify-content: space-between; gap: 12px; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-weight: 800; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 4px 14px; }

/* final cta, footer */
.cta-band { text-align: center; background: radial-gradient(70% 120% at 50% 0%, color-mix(in srgb, var(--brand) 20%, var(--bg-2)), var(--bg-2)); border-block: 1px solid var(--line); }
footer { padding: 44px 0 60px; color: var(--muted); font-size: .92rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--text-2); text-decoration: none; margin-right: 16px; }
footer a:hover { color: var(--text); }
.sticky-cta { position: fixed; inset: auto 12px calc(12px + env(safe-area-inset-bottom)) 12px; z-index: 30; display: none; }
@media (max-width: 720px) { .sticky-cta.show { display: block; } .sticky-cta .btn { width: 100%; } }

/* prose (legal) */
.prose { max-width: 760px; margin: 0 auto; padding: 48px 0 80px; }
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; }
.prose li { color: var(--text-2); margin-bottom: 6px; }
.center-page { min-height: 100dvh; display: grid; place-items: center; text-align: center; padding: 24px; }
.center-page main { max-width: 480px; }
