/* Shared by landing.html and teams.html. */
:root {
  --bg: #06070a;
  --surface: #0c0d12;
  --surface2: #111218;
  --border: rgba(255,255,255,0.06);
  --text: #f0eeea;
  --text2: rgba(240,238,234,0.72);
  --text3: rgba(240,238,234,0.45);
  --accent: #e05a33;
  --accent2: rgba(224,90,51,0.12);
  --accent3: rgba(224,90,51,0.06);
  --heading: 'Instrument Serif', 'Georgia', serif;
  --body: 'Outfit', 'Helvetica Neue', sans-serif;
  --mono: 'IBM Plex Mono', 'Courier New', monospace;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(224,90,51,0.3); color: #fff; }
a { text-decoration: none; }
button { cursor: pointer; border: none; font-family: inherit; }
input { font-family: inherit; }

/* ── GRAIN OVERLAY ── */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 9999; opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}
.fade-up { animation: fadeUp 0.9s cubic-bezier(0.16,1,0.3,1) both; }
.fade-up-d1 { animation: fadeUp 0.9s 0.1s cubic-bezier(0.16,1,0.3,1) both; }
.fade-up-d2 { animation: fadeUp 0.9s 0.2s cubic-bezier(0.16,1,0.3,1) both; }
.fade-up-d3 { animation: fadeUp 0.9s 0.3s cubic-bezier(0.16,1,0.3,1) both; }

.reveal {
  opacity: 0; transform: translateY(36px);
  transition: all 0.8s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── NAV ── */
.nav {
  padding: 18px 40px;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  background: rgba(6,7,10,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.nav-logo {
  display: flex; align-items: center; gap: 8px;
}
.nav-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(224,90,51,0.5);
}
.nav-name {
  font-size: 22px; font-weight: 700; color: #f5f3ee;
  letter-spacing: -0.02em;
}
.nav-tld {
  font-size: 10px; color: var(--text3); font-family: var(--mono);
  letter-spacing: 0.1em; margin-left: 2px;
}
.nav-cta {
  padding: 8px 20px; border-radius: 8px;
  border: 1px solid rgba(224,90,51,0.3);
  background: var(--accent3);
  color: var(--accent); font-size: 11px; font-weight: 600;
  font-family: var(--mono); letter-spacing: 0.05em;
  transition: all 0.2s;
}
.nav-cta:hover { background: var(--accent2); }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-login {
  font-size: 12px; font-weight: 500; color: var(--text3);
  transition: color 0.2s;
}
.nav-login:hover { color: var(--accent); }

/* ── SECTIONS ── */
.container { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 10px; color: var(--accent); font-family: var(--mono);
  letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
.section-label .dot { animation: pulse 2s ease-in-out infinite; }
.section-heading {
  font-family: var(--heading); font-weight: 400; color: #f5f3ee; line-height: 1.12;
}
.section-heading i { font-style: italic; }
.accent { color: var(--accent); }

/* ── HERO ── */
.hero { padding: 100px 40px 80px; }
.hero h1 { font-size: clamp(42px, 6vw, 72px); margin-bottom: 28px; max-width: 800px; }
.hero-desc {
  font-size: 18px; line-height: 1.7; color: var(--text2);
  max-width: 560px; margin-bottom: 44px; font-weight: 300;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn-primary {
  padding: 14px 32px; background: var(--accent); color: #fff;
  border-radius: 10px; font-size: 14px; font-weight: 700;
  font-family: var(--mono); letter-spacing: 0.03em;
  transition: all 0.2s; display: inline-block;
}
.btn-primary:hover { background: #c94e2b; transform: translateY(-1px); }
.btn-secondary {
  padding: 14px 32px; border: 1px solid var(--border);
  border-radius: 10px; font-size: 14px; font-weight: 500;
  color: var(--text2); transition: all 0.2s; display: inline-block;
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.12); color: var(--text); }

.hero-proof {
  margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--border);
  display: flex; gap: 40px; flex-wrap: wrap;
}
.proof-item-label {
  font-size: 10px; color: var(--text3); font-family: var(--mono);
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 4px;
}
.proof-item-value { font-size: 14px; color: var(--text); font-weight: 500; }

/* ── PROBLEM ── */
.problem {
  padding: 80px 40px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.problem-text {
  max-width: 800px; margin: 0 auto; text-align: center;
  font-family: var(--heading); font-size: clamp(24px, 3.5vw, 36px);
  font-style: italic; line-height: 1.5; color: var(--text); font-weight: 400;
}
.problem-sub {
  text-align: center; font-size: 15px; color: var(--text3); margin-top: 24px;
  font-family: var(--mono); letter-spacing: 0.02em;
}

/* ── DEMO ── */
.videosec { padding: 90px 40px; border-bottom: 1px solid var(--border); }
.video-frame {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  max-width: 860px;
  line-height: 0;
}
/* Fills the frame edge to edge; without this the element keeps its intrinsic
   ratio and leaves a pale seam along the rounded corners. */
.video-frame video { display: block; width: 100%; height: auto; }

.demo { padding: 100px 40px; }
.demo-layout { display: flex; gap: 20px; }
.demo-sidebar { width: 260px; flex-shrink: 0; display: flex; flex-direction: column; gap: 6px; }

.scenario-pill {
  padding: 10px 16px; border-radius: 10px;
  border: 1px solid var(--border); background: transparent;
  color: var(--text2); font-size: 13px; cursor: pointer;
  transition: all 0.25s; text-align: left;
  display: flex; align-items: center; gap: 10px; width: 100%;
  font-family: var(--body);
}
.scenario-pill.active {
  background: var(--accent2); border-color: rgba(224,90,51,0.25); color: var(--text);
}
.scenario-pill:hover:not(.active) { background: rgba(255,255,255,0.02); }
.scenario-pill-icon { font-size: 20px; }
.scenario-pill-title { font-weight: 600; font-size: 13px; }
.scenario-pill-cat {
  font-size: 10px; font-family: var(--mono); letter-spacing: 0.06em;
  color: var(--text3); margin-top: 2px;
}
.scenario-pill.active .scenario-pill-title { color: #f5f3ee; }

.demo-custom {
  margin-top: 12px; padding: 12px 16px; border-radius: 10px;
  border: 1px dashed rgba(224,90,51,0.2); background: var(--accent3);
  font-size: 12px; color: var(--accent); font-family: var(--mono);
  text-align: center;
}

.demo-content {
  flex: 1; background: var(--surface);
  border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
}
.demo-header {
  padding: 16px 24px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
  background: var(--surface2);
}
.demo-header-icon { font-size: 22px; }
.demo-header-title { font-size: 15px; font-weight: 600; color: #f5f3ee; }
.demo-header-meta {
  font-size: 10px; font-family: var(--mono); color: var(--text3);
  letter-spacing: 0.06em; margin-top: 1px;
}
.demo-tabs {
  display: flex; border-bottom: 1px solid var(--border);
}
.demo-tab {
  padding: 11px 18px; font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  font-family: var(--mono); background: transparent;
  color: var(--text3); border-bottom: 2px solid transparent;
  transition: all 0.25s;
}
.demo-tab:hover { color: var(--text2); }
.demo-tab.active {
  color: var(--accent); border-bottom-color: var(--accent);
  background: var(--accent3);
}
.demo-body { padding: 24px 28px; min-height: 220px; }
.demo-section-label {
  font-size: 10px; font-family: var(--mono); color: var(--accent);
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 12px; font-weight: 600;
}
.demo-text { font-size: 14.5px; line-height: 1.7; color: var(--text2); }
.talk-list { margin: 0; padding-left: 18px; }
.talk-list li { font-size: 14px; line-height: 1.7; color: var(--text2); margin-bottom: 10px; }
.talk-list li::marker { color: var(--accent); }

.impact-row {
  padding: 12px 16px; border-radius: 10px; margin-bottom: 8px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-left: 3px solid rgba(224,90,51,0.2);
  display: flex; justify-content: space-between; align-items: center;
}
.impact-area { font-size: 14px; font-weight: 600; color: #f5f3ee; }
.impact-note { font-size: 12.5px; color: var(--text2); margin-top: 3px; }
.dir-up { color: #10b981; font-weight: 700; font-family: var(--mono); font-size: 13px; }
.dir-down { color: #ef4444; font-weight: 700; font-family: var(--mono); font-size: 13px; }
.dir-mixed { color: #f59e0b; font-weight: 700; font-family: var(--mono); font-size: 13px; }

.script-box {
  padding: 18px 22px; border-radius: 12px;
  background: var(--accent3); border: 1px solid rgba(224,90,51,0.1);
  font-size: 14px; line-height: 1.75; color: rgba(226,224,219,0.7);
  font-style: italic; white-space: pre-wrap;
}

/* ── FEATURES ── */
.features { padding: 100px 40px; }
.features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.feature-card {
  padding: 32px; border-radius: 16px;
  border: 1px solid var(--border); background: var(--surface);
  transition: all 0.35s;
}
.feature-card:hover {
  border-color: rgba(224,90,51,0.2); background: var(--surface2);
  transform: translateY(-2px);
}
.feature-num {
  font-size: 11px; font-family: var(--mono); color: var(--accent);
  font-weight: 700; letter-spacing: 0.06em; margin-bottom: 14px;
}
.feature-title {
  font-size: 20px; font-weight: 600; color: #f5f3ee; margin-bottom: 10px;
}
.feature-desc { font-size: 14px; line-height: 1.65; color: var(--text2); margin-bottom: 14px; }
.feature-detail { font-size: 12.5px; line-height: 1.6; color: var(--text3); }

/* ── PRACTICE ── */
.practice {
  padding: 80px 40px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.persona-grid { display: flex; gap: 12px; flex-wrap: wrap; }
.persona-card {
  flex: 1 1 200px; padding: 20px 24px; border-radius: 14px;
  border: 1px solid var(--border); background: var(--surface2);
}
.persona-name { font-size: 16px; font-weight: 600; color: #f5f3ee; margin-bottom: 8px; }
.persona-traits { font-size: 13px; color: var(--text2); line-height: 1.6; margin-bottom: 12px; }
.persona-diff {
  display: inline-block; padding: 3px 10px; border-radius: 4px;
  font-size: 10px; font-weight: 700; font-family: var(--mono);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.diff-hard { background: rgba(239,68,68,0.1); color: #ef4444; }
.diff-medium { background: rgba(245,158,11,0.1); color: #f59e0b; }

.scenarios-bar {
  margin-top: 32px; padding: 20px 28px; border-radius: 14px;
  border: 1px solid var(--border); background: var(--bg);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.scenarios-bar-title { font-size: 14px; font-weight: 600; color: #f5f3ee; }
.scenarios-bar-list { font-size: 12.5px; color: var(--text3); margin-top: 4px; }

/* ── BOOK ── */
.book-section { padding: 100px 40px; }
.book-layout {
  display: flex; gap: 48px; align-items: center; flex-wrap: wrap;
}
.book-text { flex: 1 1 300px; }
.book-desc {
  font-size: 15px; line-height: 1.7; color: var(--text2); margin-top: 20px; max-width: 480px;
}
.book-callout {
  margin-top: 28px; padding: 16px 20px; border-radius: 12px;
  background: var(--accent3); border: 1px solid rgba(224,90,51,0.1);
  font-size: 13px; color: var(--text2); line-height: 1.6;
}
.book-card {
  flex: 0 0 300px; height: 380px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 32px; text-align: center;
}
.book-card-icon { font-size: 48px; margin-bottom: 20px; }
.book-card-title {
  font-family: var(--heading); font-size: 22px; font-style: italic;
  color: #f5f3ee; margin-bottom: 8px;
}
.book-card-sub {
  font-size: 13px; color: var(--text3); line-height: 1.5; margin-bottom: 20px;
}
.book-card-badge {
  padding: 8px 16px; border-radius: 6px;
  background: var(--accent2); color: var(--accent);
  font-size: 11px; font-weight: 600; font-family: var(--mono);
  letter-spacing: 0.06em;
}

/* ── CTA ── */
.cta-section {
  padding: 100px 40px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}
.cta-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.cta-desc {
  font-size: 16px; color: var(--text2); margin-bottom: 40px; line-height: 1.65;
}
.cta-form {
  display: flex; gap: 10px; max-width: 480px; margin: 0 auto;
  flex-wrap: wrap; justify-content: center;
}
.cta-input {
  flex: 1; min-width: 240px; padding: 14px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; color: var(--text); font-size: 15px; outline: none;
  transition: border-color 0.2s;
}
.cta-input:focus { border-color: rgba(224,90,51,0.4); }
.cta-input::placeholder { color: var(--text3); }
.cta-btn {
  padding: 14px 32px; background: var(--accent); color: #fff;
  border-radius: 10px; font-size: 14px; font-weight: 700;
  font-family: var(--mono); letter-spacing: 0.03em;
  transition: all 0.2s; white-space: nowrap; display: inline-block;
}
.cta-btn:hover { background: #c94e2b; }
.cta-success {
  padding: 20px 32px; border-radius: 14px;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.2);
  max-width: 480px; margin: 0 auto; display: none;
}
.cta-success.show { display: block; }
.cta-success-title { font-size: 18px; font-weight: 600; color: #10b981; margin-bottom: 6px; }
.cta-success-text { font-size: 14px; color: var(--text2); }
.cta-note {
  font-size: 11px; color: var(--text3); margin-top: 20px;
  font-family: var(--mono); letter-spacing: 0.02em;
}

/* ── FOOTER ── */
.footer {
  padding: 32px 40px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer-logo {
  display: flex; align-items: center; gap: 8px;
}
.footer-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); opacity: 0.5;
}
.footer-name { font-size: 14px; font-weight: 600; color: var(--text3); }
.footer-tagline { font-size: 11px; color: var(--text3); font-family: var(--mono); }
.footer-links {
  display: flex; align-items: center; gap: 14px;
  font-size: 11px; font-family: var(--mono); letter-spacing: 0.02em;
}
.footer-links a {
  color: var(--text3); text-decoration: none; transition: color 0.15s;
}
.footer-links a:hover { color: var(--text1); }

/* ── PLANS ── */
.plan-card { transition: transform 0.3s, border-color 0.3s; }
.plan-card:hover { transform: translateY(-3px); border-color: rgba(224,90,51,0.3); }

/* Monthly/Annual switch, Individual card only — it is the only tier with a
   real annual Stripe price behind it. Sits on the same row as the price so
   revealing it cannot make one card taller than the other two. */
.interval-switch {
  display: inline-flex; gap: 3px; padding: 3px; flex-shrink: 0;
  border: 1px solid var(--border); border-radius: 999px; background: rgba(0,0,0,0.22);
}
/* REQUIRED, not belt-and-braces: an author `display` beats the browser's own
   [hidden] rule, so without this the switch renders even when the fetch says
   annual isn't available — the exact dead end the hiding exists to prevent. */
.interval-switch[hidden] { display: none; }
.interval-btn {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em;
  text-transform: uppercase; font-weight: 600;
  padding: 5px 9px; border: none; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--text3);
  transition: background 0.15s, color 0.15s;
}
.interval-btn:hover { color: var(--text2); }
.interval-btn[aria-pressed="true"] { background: var(--accent); color: #fff; }
.interval-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .plans-grid { grid-template-columns: 1fr !important; }
  .nav { padding: 14px 20px; }
  .hero, .demo, .features, .book-section, .videosec { padding-left: 20px; padding-right: 20px; }
  .videosec { padding-top: 60px; padding-bottom: 60px; }
  .problem, .practice, .cta-section { padding-left: 20px; padding-right: 20px; }
  .demo-layout { flex-direction: column; }
  .demo-sidebar { width: 100%; flex-direction: row; overflow-x: auto; gap: 8px; }
  .scenario-pill { min-width: 200px; flex-shrink: 0; }
  .features-grid { grid-template-columns: 1fr; }
  .book-layout { flex-direction: column; }
  .book-card { flex: 1 1 auto; width: 100%; height: auto; min-height: 280px; }
  .cta-form { flex-direction: column; }
  .cta-input { min-width: auto; }
  .hero h1 { font-size: clamp(32px, 8vw, 56px); }
  .hero-proof { gap: 24px; }
  .footer { padding: 24px 20px; }
}
