/* ═══════════════════════════════════════════════
   VoxChimp Design System v1.3
   Dark theme with warm orange accent
   ═══════════════════════════════════════════════ */

:root {
  --bg-page: #0f1114;
  --bg-window: #1c1f23;
  --bg-sidebar: #181b1e;
  --bg-elevated: #2a2e34;
  --bg-elevated-hover: #33373e;
  --bg-input: #1f2226;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.1);
  --text-primary: #f0f1f3;
  --text-secondary: #9ca0a8;
  --text-tertiary: #6b7079;
  --accent: #f5a623;
  --accent-soft: rgba(245, 166, 35, 0.14);
  --accent-glow: rgba(245, 166, 35, 0.35);
  --accent-hover: #e6991e;
  --green: #4ade80;
  --font-heading: "Fraunces", "Fraunces-Fallback", Georgia, serif;
  --font-body: "Inter", -apple-system, sans-serif;

  /* ── Type Scale (1.25 major-third, true ratio) ── */
  --text-xs: 0.6875rem; /* ~11px — labels, legal */
  --text-sm: 0.8125rem; /* ~13px — captions, nav links, meta */
  --text-base: 1rem; /* 16px — body text */
  --text-lg: 1.25rem; /* 20px — lead text, card titles */
  --text-xl: 1.5625rem; /* 25px — subheadings, content h2 */
  --text-2xl: 2.75rem; /* 44px — section titles */
  --text-3xl: 4.5rem; /* 72px — hero display */
}

/* Metric-matched Fraunces fallback to reduce layout shift */
@font-face {
  font-family: "Fraunces-Fallback";
  src: local("Georgia");
  size-adjust: 105%;
  ascent-override: 95%;
  descent-override: 22%;
  line-gap-override: 0%;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background: var(--bg-page);
  color: var(--text-primary);
  font-size: var(--text-base);
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--accent);
}
a:hover {
  color: var(--accent-hover);
}

svg {
  display: block;
}

/* ───── NAV ───── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(15, 17, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(245, 166, 35, 0.3);
}
.nav-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nav-brand-text {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover {
  color: var(--text-primary);
}
.nav-links a.active {
  color: var(--text-primary);
  position: relative;
}
.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}
.nav-links a.btn-primary {
  color: #fff;
}
.nav-links a.btn-primary:hover {
  color: #fff;
}

/* Mobile menu */
.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 4px;
}
#mobile-menu {
  display: none;
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  background: rgba(15, 17, 20, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 32px;
  flex-direction: column;
  gap: 12px;
  z-index: 99;
}
#mobile-menu.open {
  display: flex;
}
#mobile-menu a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 0;
  transition: color 0.15s;
}
#mobile-menu a:hover {
  color: var(--text-primary);
}
#mobile-menu a.active {
  color: var(--text-primary);
  border-left: 2px solid var(--accent);
  padding-left: 12px;
}
#mobile-menu a.btn-primary {
  color: #fff;
  background: var(--accent);
  padding: 12px 24px;
  border-radius: 10px;
  text-align: center;
  margin-top: 8px;
}

/* ───── BUTTONS ───── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text-primary);
  text-decoration: none;
}
.btn:hover {
  background: var(--bg-elevated-hover);
  color: var(--text-primary);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-weight: 700;
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}
.btn-lg {
  padding: 14px 32px;
  font-size: 0.9375rem;
  border-radius: 10px;
}
.btn-xl {
  padding: 18px 40px;
  font-size: var(--text-base);
  border-radius: 12px;
}

/* ───── SECTIONS ───── */
section {
  padding: 100px 32px;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
}
.section-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.625rem, 3vw + 0.5rem, 2.75rem);
  font-weight: 400;
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 600px;
}
.section-center {
  text-align: center;
}
.section-center .section-subtitle {
  margin: 0 auto;
}

/* ───── HERO ───── */
.hero {
  padding: 160px 32px 100px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at top, rgba(44, 62, 80, 0.5) 0%, transparent 60%),
    var(--bg-page);
}
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-copy {
  text-align: left;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 5vw + 1rem, 4.5rem);
  font-weight: 400;
  font-optical-sizing: auto;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 32px;
}
.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 560px;
  margin: 0 0 40px;
}
.hero-ctas {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.hero-meta {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}
.hero-mascot {
  position: relative;
  width: 320px;
  height: 320px;
  margin: 0 auto;
}
.hero-mascot-glow {
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  animation: pulse-glow 3s ease-in-out infinite;
}
.hero-mascot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 0 3px rgba(245, 166, 35, 0.3);
  opacity: 0;
  transition: opacity 0.6s ease;
}
.hero-mascot img.active {
  opacity: 1;
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

/* ───── FEATURES GRID ───── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 28px 24px;
  transition: all 0.15s;
  text-align: center;
}
.feature-card:hover {
  background: var(--bg-elevated-hover);
  border-color: rgba(245, 166, 35, 0.2);
  transform: translateY(-2px);
}
.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin: 0 auto 16px;
  font-size: 1.125rem;
}
.feature-name {
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.feature-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ───── FEATURE PAGE LAYOUT ───── */
.feature-featured {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent);
  border-radius: 14px;
  padding: 36px 32px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.feature-featured .feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin: 0;
  flex-shrink: 0;
  font-size: var(--text-lg);
}
.feature-featured .feature-name {
  font-size: var(--text-lg);
  text-align: left;
}
.feature-featured .feature-desc {
  text-align: left;
  max-width: 680px;
}
.feature-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.feature-h-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 28px 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: all 0.15s;
}
.feature-h-card:hover {
  background: var(--bg-elevated-hover);
  border-color: rgba(245, 166, 35, 0.2);
}
.feature-h-card .feature-icon {
  margin: 0;
  flex-shrink: 0;
}
.feature-h-card .feature-name {
  text-align: left;
}
.feature-h-card .feature-desc {
  text-align: left;
}

/* Use-case featured card */
.use-case-featured {
  grid-column: 1 / -1;
  background: var(--bg-elevated);
  border: 1px solid rgba(245, 166, 35, 0.2);
  border-radius: 14px;
  padding: 36px 32px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.use-case-featured h2 {
  font-size: var(--text-lg);
}

/* ───── LANGUAGE PILLS ───── */
.lang-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
}
.lang-pill {
  padding: 5px 12px;
  border-radius: 100px;
  background: var(--bg-input);
  border: 1px solid var(--border-strong);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  font-weight: 500;
}
.lang-pill.accent {
  border-color: rgba(245, 166, 35, 0.3);
  color: var(--accent);
  background: var(--accent-soft);
}

/* ───── AGENT MODE ───── */
.agent-section {
  background: var(--bg-window);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}
.agent-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 48px;
}
.agent-copy {
  text-align: left;
  padding-top: 48px;
}
.agent-copy .section-title {
  text-align: left;
}
.agent-copy .section-subtitle {
  text-align: left;
  margin: 0 0 28px;
}
.agent-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.agent-step {
  display: flex;
  align-items: center;
  gap: 14px;
}
.agent-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid rgba(245, 166, 35, 0.25);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.agent-step-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
}
.agent-step-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Agent demo card */
.agent-demo {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.agent-demo-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border-subtle);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  font-weight: 500;
}
.agent-demo-dots {
  display: flex;
  gap: 5px;
}
.agent-demo-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.agent-demo-dots span:nth-child(1) {
  background: #ff5f57;
}
.agent-demo-dots span:nth-child(2) {
  background: #febc2e;
}
.agent-demo-dots span:nth-child(3) {
  background: #28c840;
}
.agent-demo-body {
  padding: 24px;
}
.agent-demo-prompt {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}
.agent-demo-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  flex-shrink: 0;
  overflow: hidden;
}
.agent-demo-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.agent-demo-bubble {
  background: var(--bg-input);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--text-primary);
  flex: 1;
}
.agent-demo-label {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}
.agent-demo-input {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  line-height: 1.5;
  margin-bottom: 16px;
  font-style: italic;
}
.agent-demo-result {
  background: var(--bg-input);
  border: 1px solid rgba(245, 166, 35, 0.2);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--text-secondary);
}
.agent-demo-result strong {
  color: var(--text-primary);
}
.agent-demo-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  font-weight: 500;
}
.agent-demo-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 100px;
  background: rgba(74, 222, 128, 0.12);
  color: var(--green);
  font-weight: 600;
}
.agent-demo-meta-chimp {
  color: var(--accent);
}

/* ───── AGENT DEMO ANIMATION ───── */
.agent-step {
  opacity: 0.3;
  transform: translateX(-6px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}
.agent-step.anim-active {
  opacity: 1;
  transform: translateX(0);
}
.agent-step.anim-done {
  opacity: 0.55;
  transform: translateX(0);
}
.agent-step.anim-done .agent-step-num {
  color: var(--green);
  border-color: rgba(74, 222, 128, 0.3);
  background: rgba(74, 222, 128, 0.1);
}

.agent-demo-prompt,
.agent-demo-clipboard-section,
.agent-demo-output-section,
.agent-demo-meta {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}
.agent-demo-prompt.anim-visible,
.agent-demo-clipboard-section.anim-visible,
.agent-demo-output-section.anim-visible,
.agent-demo-meta.anim-visible {
  opacity: 1;
  transform: translateY(0);
}

.agent-demo-bubble {
  min-height: 40px;
}
.agent-demo-bubble .anim-cursor,
.agent-demo-result .anim-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--accent);
  margin-left: 1px;
  vertical-align: text-bottom;
  animation: anim-blink 0.8s step-end infinite;
}

.agent-demo-processing {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.agent-demo-processing.anim-visible {
  opacity: 1;
}
.agent-demo-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--border-subtle);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: anim-spin 0.8s linear infinite;
}
.agent-demo-processing-text {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}
.agent-demo-processing-text .anim-chimp-name {
  color: var(--accent);
  font-weight: 600;
}

.hotkey-key.anim-pressed {
  border-color: var(--accent);
  box-shadow:
    0 0 8px var(--accent-glow),
    0 2px 0 rgba(0, 0, 0, 0.3);
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

/* Agent mascot */
.agent-demo-outer {
  position: relative;
}
.agent-mascot {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 16px;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s ease,
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.agent-mascot.anim-visible {
  opacity: 1;
  transform: translateY(0);
}
.agent-mascot.anim-celebrate {
  opacity: 1;
  transform: translateY(0);
  animation: anim-mascot-bounce 0.6s ease;
}
.agent-mascot-speech {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 12px 12px 12px 4px;
  padding: 8px 14px;
  font-size: 0.75rem;
  color: var(--text-primary);
  margin-bottom: 8px;
  opacity: 0;
  transform: translateY(6px) scale(0.9);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  max-width: 220px;
  text-align: center;
  line-height: 1.4;
}
.agent-mascot-speech.anim-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.agent-mascot-imgs {
  position: relative;
  width: 80px;
  height: 80px;
}
.agent-mascot-imgs::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.agent-mascot.anim-processing .agent-mascot-imgs::before {
  opacity: 1;
  animation: pulse-glow 1.5s ease-in-out infinite;
}
.agent-mascot.anim-celebrate .agent-mascot-imgs::before {
  opacity: 1;
  background: radial-gradient(
    circle,
    rgba(74, 222, 128, 0.3) 0%,
    transparent 70%
  );
}
.agent-mascot-imgs img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid var(--accent);
  position: absolute;
  top: 0;
  left: 0;
  transition:
    opacity 0.4s ease,
    border-color 0.4s ease;
  background: var(--bg-elevated);
}
.agent-mascot.anim-celebrate .agent-mascot-imgs img {
  border-color: var(--green);
}
.agent-mascot-imgs .m-sleep {
  opacity: 1;
  z-index: 3;
}
.agent-mascot-imgs .m-listen {
  opacity: 0;
  z-index: 2;
}
.agent-mascot-imgs .m-work {
  opacity: 0;
  z-index: 1;
}
.agent-mascot-imgs .m-done {
  opacity: 0;
  z-index: 0;
}
.agent-mascot.anim-listening .m-sleep {
  opacity: 0;
}
.agent-mascot.anim-listening .m-listen {
  opacity: 1;
}
.agent-mascot.anim-processing .m-sleep {
  opacity: 0;
}
.agent-mascot.anim-processing .m-listen {
  opacity: 0;
}
.agent-mascot.anim-processing .m-work {
  opacity: 1;
}
.agent-mascot.anim-celebrate .m-sleep {
  opacity: 0;
}
.agent-mascot.anim-celebrate .m-listen {
  opacity: 0;
}
.agent-mascot.anim-celebrate .m-work {
  opacity: 0;
}
.agent-mascot.anim-celebrate .m-done {
  opacity: 1;
}

/* Replay badge */
.agent-replay {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 6px 16px;
  background: var(--accent-soft);
  border: 1px solid rgba(245, 166, 35, 0.25);
  border-radius: 100px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  opacity: 0;
  transition:
    opacity 0.4s ease,
    background 0.2s ease;
}
.agent-replay.anim-visible {
  opacity: 1;
}
.agent-replay:hover {
  background: rgba(245, 166, 35, 0.22);
}

@keyframes anim-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
@keyframes anim-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes anim-mascot-bounce {
  0% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-16px);
  }
  50% {
    transform: translateY(0);
  }
  70% {
    transform: translateY(-7px);
  }
  100% {
    transform: translateY(0);
  }
}
/* Hotkey visual */
.hotkey-visual {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 6px 0;
}
.hotkey-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  background: var(--bg-input);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
}
.hotkey-plus {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

/* ───── HOW IT WORKS ───── */
.steps-section {
  background: var(--bg-window);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.step-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}
.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #1a1a1a;
  font-size: 0.875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.step-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.step-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ───── PRICING ───── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 800px;
  margin: 48px auto 0;
}
.pricing-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
}
.pricing-card.featured {
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px var(--accent),
    0 0 30px rgba(245, 166, 35, 0.12);
}
.pricing-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--accent);
  color: #1a1a1a;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  margin-bottom: 16px;
}
.pricing-name {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: 4px;
}
.pricing-price {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-optical-sizing: auto;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}
.pricing-price span {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0;
}
.pricing-annual {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-bottom: 24px;
}
.pricing-features {
  list-style: none;
  margin-bottom: 28px;
  flex: 1;
}
.pricing-features li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 10px;
}
.pricing-features li:last-child {
  border-bottom: none;
}
.pricing-features li::before {
  content: "\2713";
  color: var(--green);
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* ───── FAQ ───── */
.faq-section {
  background: var(--bg-window);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.faq-list {
  max-width: 760px;
  margin: 48px auto 0;
}
.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.12s;
  user-select: none;
}
.faq-question:hover {
  background: var(--bg-elevated-hover);
}
.faq-chevron {
  color: var(--text-tertiary);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-answer-inner {
  padding: 0 22px 18px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}
.faq-item.open .faq-answer {
  max-height: 300px;
}

/* ───── COMPARISON TABLE ───── */
.cmp-table {
  width: 100%;
  border-collapse: collapse;
}
.cmp-table th,
.cmp-table td {
  padding: 16px 20px;
  text-align: center;
}
.cmp-table th:first-child,
.cmp-table td:first-child {
  text-align: left;
  min-width: 180px;
}
.cmp-table thead th {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 20px;
  border-bottom: 2px solid var(--border-strong);
}
.cmp-table tbody td {
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--border-subtle);
}
.cmp-table tbody td:first-child {
  font-weight: 600;
  color: var(--text-primary);
}
.cmp-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}
.cmp-table tbody tr:last-child td {
  border-bottom: none;
}
.cmp-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.cmp-yes {
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
}
.cmp-no {
  background: rgba(248, 113, 113, 0.15);
  color: #f87171;
}
.cmp-partial {
  background: rgba(250, 204, 21, 0.15);
  color: #facc15;
}
.cmp-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.cmp-accent {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent);
}
.cmp-table th.cmp-vc {
  color: var(--accent);
  position: relative;
}
.cmp-table th.cmp-vc::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: var(--accent);
}
@media (max-width: 768px) {
  .cmp-table th,
  .cmp-table td {
    padding: 12px 10px;
  }
  .cmp-table thead th {
    font-size: var(--text-sm);
  }
  .cmp-table tbody td {
    font-size: var(--text-sm);
  }
  .cmp-badge {
    font-size: 0.75rem;
    padding: 4px 10px;
  }
}

/* ───── CTA BANNER ───── */
.cta-banner {
  text-align: center;
  background:
    radial-gradient(
      ellipse at center,
      rgba(245, 166, 35, 0.08) 0%,
      transparent 60%
    ),
    var(--bg-window);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw + 0.5rem, 2.5rem);
  font-weight: 400;
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.cta-sub {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin-bottom: 32px;
}
.cta-meta {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: 16px;
}

/* ───── FOOTER ───── */
.footer {
  padding: 48px 32px;
  background: var(--bg-sidebar);
  border-top: 1px solid var(--border-subtle);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-logo {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  overflow: hidden;
}
.footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.footer-name {
  font-size: 0.875rem;
  font-weight: 600;
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color 0.12s;
}
.footer-links a:hover {
  color: var(--text-secondary);
}
.footer-copy {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

/* ───── CONTENT PAGES ───── */
.content-page {
  padding-top: 120px;
  padding-bottom: 80px;
  min-height: 100vh;
}
.content-container {
  max-width: 65ch;
  margin: 0 auto;
  padding: 0 32px;
}
.content-container h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw + 0.5rem, 2.5rem);
  font-weight: 400;
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.content-container > p:first-of-type {
  margin-bottom: 48px;
}
.content-container section {
  padding: 32px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.content-container section:last-child {
  border-bottom: none;
}
.content-container h2 {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.content-container h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 10px;
  color: var(--text-primary);
}
.content-container p {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 14px;
}
.content-container ul,
.content-container ol {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 14px;
  padding-left: 24px;
}
.content-container li {
  margin-bottom: 6px;
}
.content-container code {
  font-size: var(--text-sm);
  background: var(--bg-elevated);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  color: var(--accent);
}
.content-container a {
  color: var(--accent);
  text-decoration: none;
}
.content-container a:hover {
  text-decoration: underline;
}

/* ───── FORMS (support page) ───── */
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-family: inherit;
  transition: border-color 0.15s;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent);
}
.form-textarea {
  min-height: 120px;
  resize: vertical;
}
.form-select {
  appearance: none;
  cursor: pointer;
}

/* ───── COOKIE BANNER ───── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-sidebar);
  border-top: 1px solid var(--border-subtle);
  padding: 16px 32px;
  z-index: 200;
  display: none; /* JS toggles to block, then cookie-visible handles animation */
}
.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cookie-banner-text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}
.cookie-banner-text a {
  color: var(--accent);
  text-decoration: none;
}
.cookie-banner-text a:hover {
  text-decoration: underline;
}
.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

/* ───── RESPONSIVE ───── */
@media (max-width: 768px) {
  /* Nav */
  .nav-links {
    display: none;
  }
  .nav-mobile-toggle {
    display: block;
  }
  .nav-inner {
    padding: 0 16px;
  }

  /* Sections */
  section {
    padding: 64px 16px;
  }

  /* Hero */
  .hero {
    padding: 120px 16px 64px;
  }
  .hero-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-copy {
    text-align: center;
    order: 1;
  }
  .hero-mascot {
    order: 0;
    width: 200px;
    height: 200px;
  }
  .hero-subtitle {
    margin: 0 auto 40px;
  }
  .hero-title {
    letter-spacing: -0.02em;
    text-align: center;
  }
  .hero-subtitle {
    font-size: var(--text-base);
  }
  .hero-ctas {
    flex-direction: column;
    justify-content: center;
  }
  .hero-ctas .btn {
    width: 100%;
  }

  /* Features */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Agent Mode */
  .agent-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Steps */
  .steps-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  /* Pricing */
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Cookie banner */
  .cookie-banner-inner {
    flex-direction: column;
    text-align: center;
  }

  /* Feature page layout */
  .feature-grid-2 {
    grid-template-columns: 1fr;
  }
  .feature-featured {
    flex-direction: column;
    padding: 24px 20px;
  }
  .use-case-featured {
    flex-direction: column;
    padding: 24px 20px;
  }
}

@media (max-width: 480px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .hero-mascot {
    width: 160px;
    height: 160px;
  }
  .lang-pills {
    gap: 6px;
  }
  .lang-pill {
    font-size: 0.625rem;
    padding: 4px 10px;
  }
}

/* ───── SUB-PAGE LAYOUT ───── */
.sub-hero {
  padding: 160px 32px 80px;
  text-align: center;
  background:
    radial-gradient(ellipse at top, rgba(44, 62, 80, 0.5) 0%, transparent 60%),
    var(--bg-page);
}
.sub-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw + 0.5rem, 3rem);
  font-weight: 400;
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.sub-hero .lead {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}
.sub-hero .sub-hero-mascot {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 24px;
  display: block;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.3),
    0 0 0 2px rgba(245, 166, 35, 0.25);
}
.sub-hero .lead-sm {
  font-size: 0.875rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 16px auto 0;
}
.sub-section {
  padding: 80px 32px;
}
.sub-section-alt {
  padding: 80px 32px;
  background: var(--bg-window);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.sub-cta {
  padding: 100px 32px;
  text-align: center;
}
.sub-cta h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.sub-cta p {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* Sub-page containers */
.container-sm {
  max-width: 760px;
  margin: 0 auto;
}
.container-md {
  max-width: 960px;
  margin: 0 auto;
}
.container-lg {
  max-width: 1152px;
  margin: 0 auto;
}

/* Sub-page content grids */
.info-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.info-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* Sub-page card patterns */
.info-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 32px;
}
.info-card-centered {
  text-align: center;
  padding: 32px;
}
.info-card h2,
.info-card h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: 12px;
}
.info-card p {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.625;
}
.h-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 32px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.h-card h2,
.h-card h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: 8px;
}
.h-card p {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.625;
}

/* Info icon box */
.icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.icon-box-lg {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

/* Table badges (replaces Tailwind bg-green-100 etc) */
.badge-good {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  height: 28px;
  border-radius: 9999px;
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
  font-weight: 700;
  font-size: 0.75rem;
}
.badge-ok {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  height: 28px;
  border-radius: 9999px;
  background: rgba(250, 204, 21, 0.15);
  color: #facc15;
  font-weight: 700;
  font-size: 0.75rem;
}
.badge-new {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 9999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 500;
  font-size: 0.75rem;
  margin-left: 8px;
}

/* Sub-page responsive */
@media (max-width: 768px) {
  .sub-hero {
    padding: 120px 16px 48px;
  }
  .sub-section {
    padding: 48px 16px;
  }
  .sub-section-alt {
    padding: 48px 16px;
  }
  .sub-cta {
    padding: 64px 16px;
  }
  .info-grid-2 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .info-grid-3 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .h-card {
    flex-direction: column;
    padding: 24px;
  }
}
@media (min-width: 640px) and (max-width: 768px) {
  .info-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ───── HARDENING: ACCESSIBILITY ───── */

/* Skip-to-content link (visually hidden until focused) */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--bg-page);
  padding: 12px 24px;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  font-size: 0.875rem;
  z-index: 200;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-to-content:focus {
  top: 0;
  color: var(--bg-page);
}

/* Hidden utility (CDN-independent fallback for Tailwind's .hidden) */
.hidden {
  display: none !important;
}

/* ───── SCROLL-REVEAL ANIMATION SYSTEM ───── */
[data-anim],
[data-anim-hero] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
[data-anim].anim-in,
[data-anim-hero].anim-in {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger delays for grouped elements */
[data-anim-delay="1"] {
  transition-delay: 80ms;
}
[data-anim-delay="2"] {
  transition-delay: 160ms;
}
[data-anim-delay="3"] {
  transition-delay: 240ms;
}
[data-anim-delay="4"] {
  transition-delay: 320ms;
}
[data-anim-delay="5"] {
  transition-delay: 400ms;
}
[data-anim-delay="6"] {
  transition-delay: 480ms;
}

/* ───── HERO ENTRANCE CHOREOGRAPHY ───── */
.hero [data-anim] {
  transform: translateY(28px);
  transition-duration: 0.7s;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}
.hero [data-anim-delay="0"] {
  transition-delay: 0ms;
}
.hero [data-anim-delay="1"] {
  transition-delay: 100ms;
}
.hero [data-anim-delay="2"] {
  transition-delay: 200ms;
}
.hero [data-anim-delay="3"] {
  transition-delay: 300ms;
}
.hero [data-anim-delay="4"] {
  transition-delay: 350ms;
}
.hero [data-anim-delay="5"] {
  transition-delay: 450ms;
}

/* ───── BUTTON PRESS FEEDBACK ───── */
.btn:active {
  transform: scale(0.97);
  transition-duration: 0.1s;
}
.btn-primary:hover {
  box-shadow: 0 0 20px rgba(245, 166, 35, 0.2);
}

/* ───── CARD HOVER: ICON GLOW ───── */
.feature-card:hover .feature-icon {
  box-shadow: 0 0 16px var(--accent-glow);
  transition: box-shadow 0.3s ease;
}
.feature-h-card:hover .feature-icon {
  box-shadow: 0 0 16px var(--accent-glow);
  transition: box-shadow 0.3s ease;
}

/* ───── PRICING FEATURED GLOW ───── */
.pricing-card.featured:hover {
  box-shadow:
    0 0 0 1px var(--accent),
    0 0 40px rgba(245, 166, 35, 0.18);
}

/* ───── COOKIE BANNER SLIDE-UP ───── */
.cookie-banner {
  transform: translateY(100%);
  transition:
    transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
    opacity 0.4s ease;
  opacity: 0;
}
.cookie-banner.cookie-visible {
  transform: translateY(0);
  opacity: 1;
}

/* ───── HARDENING: MOTION SENSITIVITY ───── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  /* Ensure scroll-reveal items are visible with no motion */
  [data-anim],
  [data-anim-hero] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ───── HARDENING: FAQ KEYBOARD SUPPORT ───── */
.faq-question[role="button"] {
  cursor: pointer;
}
.faq-question[role="button"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ═══════════════════════════════════════════════
   HELP PAGE (issue #341)
   Agent-first FAQ + how-to surface served at /help.html
   ═══════════════════════════════════════════════ */

.help-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: calc(58px + 42px) 24px 56px;
}

.help-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.help-intro-content {
  flex: 1;
  min-width: 0;
  max-width: 840px;
}

.help-intro-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  /* Align visually with the eyebrow row at the top of the intro */
  padding-top: 4px;
}

.help-intro .eyebrow,
.help-section .eyebrow {
  color: var(--accent);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 1.16px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.help-intro h1 {
  font-family: var(--font-heading);
  font-size: clamp(42px, 6vw, 70px);
  font-weight: 500;
  letter-spacing: -1.5px;
  line-height: 1.02;
}

.help-intro-copy {
  margin-top: 18px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.65;
  max-width: 680px;
}

.help-section {
  background: rgba(28, 31, 35, 0.92);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 30px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.32),
    0 0 0 0.5px rgba(255, 255, 255, 0.04);
}

.help-section .section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.help-section .section-head h2 {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.8px;
}

/* ── Entry lists ──────────────────────── */
.entry-list {
  display: grid;
  gap: 9px;
}

.entry-list[hidden] {
  display: none;
}

.entry-category {
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.95px;
  text-transform: uppercase;
  margin: 12px 0 2px;
  scroll-margin-top: 96px;
}

.entry-category:first-child {
  margin-top: 0;
}

.entry-category:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Agent entry (FAQ / how-to row) ───── */
.agent-entry {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  overflow: hidden;
  transition:
    border-color 220ms cubic-bezier(0.4, 0, 0.2, 1),
    background 220ms cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

.agent-entry.active {
  border-color: rgba(245, 166, 35, 0.38);
  box-shadow:
    0 0 0 1px rgba(245, 166, 35, 0.12),
    0 16px 38px rgba(0, 0, 0, 0.2);
}

.entry-question {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  padding: 17px 18px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

.entry-question:hover {
  background: var(--bg-elevated-hover);
}

.entry-question:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.entry-question span:first-child {
  font-size: 14px;
  font-weight: 725;
  letter-spacing: -0.12px;
}

.chevron {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--text-tertiary);
  transform: rotate(0deg);
  transition:
    transform 220ms cubic-bezier(0.4, 0, 0.2, 1),
    color 220ms cubic-bezier(0.4, 0, 0.2, 1);
  flex: 0 0 auto;
}

.agent-entry.active .chevron {
  color: var(--accent);
  transform: rotate(180deg);
}

.entry-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

.agent-entry.active .entry-body {
  grid-template-rows: 1fr;
}

.entry-body-inner {
  overflow: hidden;
}

.entry-content {
  padding: 0 18px 16px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.62;
}

.entry-content ul {
  margin: 10px 0 0 16px;
}

.entry-content li + li {
  margin-top: 5px;
}

/* ── Per-entry agent action buttons ──── */
.agent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 18px 16px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(31, 34, 38, 0.54);
}

.agent-actions:empty {
  display: none;
}

.agent-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--bg-input);
  color: var(--text-primary);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 220ms cubic-bezier(0.4, 0, 0.2, 1),
    border-color 220ms cubic-bezier(0.4, 0, 0.2, 1),
    background 220ms cubic-bezier(0.4, 0, 0.2, 1),
    color 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

.agent-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(245, 166, 35, 0.34);
  background: #252a30;
}

.agent-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.agent-btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #1a1a1a;
}

.agent-btn.primary:hover {
  background: var(--accent-hover);
  color: #1a1a1a;
}

.agent-btn svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
}

/* ── Toast ────────────────────────────── */
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  background: #20242a;
  border: 1px solid rgba(74, 222, 128, 0.26);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition:
    opacity 220ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast svg {
  width: 16px;
  height: 16px;
  color: var(--green);
}

/* ── Help-page mobile breakpoints ─────── */
@media (max-width: 980px) {
  .help-main {
    padding: calc(58px + 30px) 16px 42px;
  }

  .help-intro {
    flex-direction: column;
    align-items: stretch;
  }

  .help-intro-actions {
    padding-top: 0;
  }

  .help-section {
    padding: 16px;
  }

  .help-section .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .help-section .section-head h2 {
    font-size: 30px;
  }
}

@media (max-width: 680px) {
  .agent-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .agent-btn {
    width: 100%;
  }

  .toast {
    right: 16px;
    left: 16px;
    bottom: 16px;
    justify-content: center;
  }
}
