@font-face {
  font-family: "Geist";
  src: local("Geist");
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: local("Instrument Serif");
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: local("JetBrains Mono");
  font-display: swap;
}
@import url("https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700;800;900&family=Instrument+Serif:ital@0;1&family=JetBrains+Mono:wght@400;600&display=swap");

:root {
  color-scheme: light;
  --bg: #f2efe6;
  --panel: #fbf9f2;
  --panel-strong: #f5f7ea;
  --ink: #0e120f;
  --ink-2: #1a1f1b;
  --ink-3: #404742;
  --muted: #6b736c;
  --muted-2: #808980;
  --line: #dcd5c2;
  --line-2: #e6e1d2;
  --primary: #5be05b;
  --primary-2: #1b6e3a;
  --primary-dark: #0e120f;
  --primary-soft: #e6fad6;
  --success: #228b22;
  --success-soft: #ebf7e7;
  --danger: #b91c1c;
  --danger-soft: #fde9e8;
  --warning: #7d5a10;
  --warning-soft: #fff7df;
  --accent: #ffcf4d;
  --shadow: 0 1px 0 rgba(14, 18, 15, .06), 0 30px 60px -32px rgba(14, 18, 15, .25);
  --radius: 18px;
  --radius-lg: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(230, 250, 214, .62) 0, rgba(255, 255, 255, 0) 360px),
    var(--bg);
  color: var(--ink);
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid #0f172a;
  outline-offset: 2px;
}

.app-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto 72px; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px 0;
  backdrop-filter: blur(12px);
  background: linear-gradient(180deg, var(--bg) 72%, rgba(242, 239, 230, 0) 100%);
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(223, 232, 215, .9);
  box-shadow: 0 14px 34px rgba(16, 24, 32, .1);
  overflow: hidden;
}
.brand-mark img {
  width: 50px;
  max-width: none;
}
.brand strong { display: block; font-size: 17px; letter-spacing: -0.01em; }
.brand small { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; }
.nav-links { display: flex; gap: 18px; color: #2d3d39; font-weight: 700; font-size: 14px; }
.nav-links a:hover { color: var(--primary-2); }
.nav-links a { position: relative; padding-bottom: 5px; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .15s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }
.account-actions { display: flex; gap: 10px; align-items: center; }
.language-switcher { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; }
.language-switcher select { margin-top: 0; padding: 8px 10px; border-radius: 10px; width: auto; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 11px 16px; background: #fff; color: var(--ink);
  font-weight: 700; line-height: 1; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background-color .15s ease;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(15, 23, 42, .1); }
.button.primary { color: #f2efe6; background: var(--primary-dark); border-color: var(--primary-dark); box-shadow: 0 16px 34px rgba(14, 18, 15, .24); }
.button.primary:hover { background: var(--ink-2); }
.button.ghost { background: rgba(255,255,255,.72); }
.button.ghost:not(.primary) { color: #243430; }
.button.small { padding: 8px 12px; font-size: 13px; }
.button.large { padding: 15px 20px; font-size: 16px; }
.button.full { width: 100%; margin-top: 8px; }
.button.danger { color: var(--danger); border-color: #fecaca; background: #fff7f7; }
.button[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.step.disabled { opacity: .45; pointer-events: none; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 11px; border-radius: 999px; font-size: 12px; font-weight: 700;
  border: 1px solid var(--line); background: #fff;
}
.pill.muted { color: var(--muted); }
.pill.success { color: var(--success); background: var(--success-soft); border-color: #bbf7d0; }
.pill.warning { color: var(--warning); background: var(--warning-soft); border-color: #fde68a; }
.pill.danger { color: var(--danger); background: var(--danger-soft); border-color: #fecaca; }

.hero-section {
  display: grid; grid-template-columns: 1.25fr .75fr; gap: 28px; align-items: center;
  min-height: 600px; padding: 54px 0 42px;
  position: relative;
}
.hero-section::before {
  content: "";
  position: absolute;
  inset: 36px -34px auto auto;
  width: min(420px, 40vw);
  aspect-ratio: 1;
  background: url("assets/call-goblin-mark.png") center / contain no-repeat;
  opacity: .08;
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 1; }
.hero-copy > * {
  animation: riseIn .45s ease both;
}
.hero-copy > *:nth-child(2) { animation-delay: .05s; }
.hero-copy > *:nth-child(3) { animation-delay: .08s; }
.hero-copy > *:nth-child(4) { animation-delay: .11s; }
.hero-copy > *:nth-child(5) { animation-delay: .14s; }
.hero-copy > *:nth-child(6) { animation-delay: .17s; }
.hero-copy h1 { font-size: clamp(42px, 6.7vw, 76px); line-height: .96; letter-spacing: 0; margin: 14px 0; max-width: 900px; }
.hero-copy h1 {
  font-family: "Instrument Serif", "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.lede { font-size: 19px; line-height: 1.7; color: #31413d; max-width: 780px; }
.eyebrow { margin: 0 0 8px; color: #1a7a12; font-size: 13px; font-weight: 900; letter-spacing: .02em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0; }
.secondary-cta { opacity: .92; }
.billing-clarity {
  border: 1px solid #cdebbf;
  background: #f4fbe9;
  color: #27402f;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
  max-width: 760px;
  margin-bottom: 12px;
}
.trust-safety-block {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 14px;
  margin-top: 12px;
  max-width: 820px;
}
.trust-safety-block h3 { margin: 0 0 8px; font-size: 17px; }
.trust-safety-block ul { margin: 0; padding-left: 18px; line-height: 1.6; color: #334540; }
.trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 780px; }
.trust-grid div, .stat-card, .feature-card, .price-card, .hero-card, .card, .section-card {
  border: 1px solid rgba(223, 232, 215, .92); background: rgba(255,255,255,.88); box-shadow: var(--shadow);
}
.hero-card,
.card,
.section-card,
.price-card,
.feature-card,
.stat-card {
  border-color: var(--line);
  background: var(--panel);
}
.trust-grid div { border-radius: 16px; padding: 16px; box-shadow: none; }
.trust-grid strong { display:block; font-size:20px; }
.trust-grid span { color: var(--muted); font-size:13px; font-weight:700; }

.hero-card { border-radius: 24px; padding: 20px; background: linear-gradient(180deg, #fff, #f6fbf2); position: relative; overflow: hidden; }
.hero-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-dark), var(--primary), var(--accent));
}
.call-card-header { display:flex; gap:10px; align-items:center; color:#334540; font-weight:800; font-size:13px; }
.status-dot { width:10px; height:10px; border-radius:50%; background:var(--primary); box-shadow:0 0 0 6px rgba(50,194,31,.15); }
.hero-card h3 { font-size: 24px; margin: 14px 0; letter-spacing: 0; }
.mini-timeline { list-style:none; padding:0; margin:0; display:grid; gap:12px; }
.mini-timeline li { padding:12px 14px; border-radius:14px; background:#f7faf4; color:#3d4f4a; font-weight:800; border:1px solid var(--line); }
.mini-timeline li.done { color:var(--success); background:var(--success-soft); border-color:#bbf7d0; }
.mini-timeline li.active { color:var(--primary-2); background:var(--primary-soft); border-color:#b7edaa; }
.result-box { margin-top:18px; padding:14px; border-radius:14px; background:#fff8db; color:#76500a; font-weight:800; font-size:14px; }
.radar-transcript {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
  display: grid;
  gap: 8px;
}
.t-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 8px;
  font-size: 12.5px;
}
.t-time {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  color: var(--muted);
}
.speaker {
  margin-right: 6px;
  font-size: 10px;
  letter-spacing: .08em;
}
.speaker.agent { color: var(--primary-2); }
.speaker.them { color: #9a6a11; }
.speaker.system { color: var(--ink-2); }

.section-card, .card { border-radius: var(--radius); padding: 28px; margin-top: 24px; }
.section-heading { margin-bottom: 20px; }
.section-heading.row, .card-heading, .dashboard-header, .card-heading.compact { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; }
.mission-shortcuts { align-self: center; }
.compact-toggle { margin-top: 12px; }
.compact-toggle small { max-width: 760px; display: block; }
.mission-composer-card #missionModeBadge { align-self: center; }
.section-heading h2, .dashboard-header h2 { margin:0; font-size:36px; letter-spacing:0; }
.section-heading h2, .dashboard-header h2, .card-heading h3 {
  font-family: "Instrument Serif", "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.card-heading h3, .section-heading h2 { margin-top:0; }
.feature-grid { display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap:14px; }
.feature-card { border-radius:16px; padding:20px; box-shadow:none; }
.feature-card span { display:grid; place-items:center; width:34px; height:34px; border-radius:12px; background:var(--primary-dark); color:#fff; font-weight:950; }
.feature-card h3 { margin:16px 0 8px; }
.feature-card p { margin:0; color:var(--muted); line-height:1.55; font-size:14px; }

.pricing-grid { display:grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap:14px; }
.price-card { border-radius:18px; padding:22px; position:relative; overflow:hidden; display:flex; flex-direction:column; }
.price-card.highlight { border-color:#8ee57c; box-shadow:0 24px 70px rgba(50,194,31,.18); }
.price-card h3 { margin:0 0 8px; font-size:20px; }
.price { font-size:34px; font-weight:950; letter-spacing:0; margin:10px 0; }
.price small { font-size:14px; color:var(--muted); font-weight:800; }
.price-card ul { margin:16px 0; padding-left:18px; color:var(--muted); line-height:1.7; font-size:14px; }
.price-card .button.full { margin-top:auto; }
.fine-print { color:var(--muted); font-size:15px; line-height:1.65; }
.compare-summary { margin-bottom: 10px; }
.starter-groups { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.starter-groups .button.active { background: var(--primary-dark); color: #fff; border-color: var(--primary-dark); }
.guardrail-note {
  margin-top: 10px;
  border: 1px solid #d8e4f2;
  background: #f5f9ff;
  color: #1d3a66;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
}
.data-disclosure {
  margin-top: 10px;
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: #6b4d04;
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 15px;
  line-height: 1.5;
}
.optional-details { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin-bottom: 14px; background: #fcfef9; }
.optional-details summary { font-weight: 800; cursor: pointer; }

.status-banner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  background: #fff;
}
.status-banner.warning {
  border-color: #fde68a;
  background: #fffbeb;
  color: #6b4d04;
}
.status-banner p { margin: 6px 0 0; }
.status-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.dashboard { margin-top: 28px; }
.dashboard-header { margin-bottom: 18px; }
.dashboard-actions { display:flex; gap:10px; flex-wrap:wrap; }
.muted-copy { color: var(--muted); line-height:1.6; }
.stats-grid { display:grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap:14px; margin-bottom:18px; }
.defaults-card { margin-top: 0; }
.defaults-grid { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:12px; }
.defaults-item { border:1px solid var(--line); border-radius:16px; background:#f7faf4; padding:12px; }
.defaults-item h4 { margin:0 0 8px; text-transform:capitalize; }
.stat-card { border-radius:16px; padding:18px; box-shadow:none; background:#fff; }
.stat-card span { color:var(--muted); font-size:12px; text-transform:uppercase; letter-spacing:.08em; font-weight:950; }
.stat-card strong { display:block; margin:8px 0 4px; font-size:28px; letter-spacing:0; }
.stat-card small { color:var(--muted); }
.dashboard-grid { display:grid; grid-template-columns: 1.25fr .9fr; gap:18px; align-items:start; }
.mission-composer-card { grid-column: 1 / -1; }

.steps { display:flex; gap:8px; flex-wrap:wrap; }
.step { border:1px solid var(--line); background:#fff; border-radius:999px; padding:8px 11px; font-weight:950; color:var(--muted); }
.step span { margin-left:6px; font-weight:800; }
.step.active { color:#fff; background:var(--primary-dark); border-color:var(--primary-dark); }
.wizard-panel { display:none; margin-top:20px; }
.wizard-panel.active { display:block; }
.panel-intro h4, .panel-intro h3 { margin:0 0 8px; font-size:24px; letter-spacing:0; }
.panel-intro p { margin:0 0 16px; color:var(--muted); }
label { display:block; color:var(--ink); font-weight:850; margin-bottom:14px; }
label span { display:block; }
label em { color:var(--danger); font-style:normal; }
input, textarea, select {
  width:100%; margin-top:7px; padding:13px 14px; border-radius:14px; border:1px solid var(--line);
  background:#fff; color:var(--ink); outline:none;
}
input::placeholder, textarea::placeholder { color:#5c6e69; opacity:1; }
input:focus, textarea:focus, select:focus { border-color:#1f9d12; box-shadow:0 0 0 4px rgba(50,194,31,.2); }
small { color:var(--muted); }
.form-grid.two { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:14px; }
.search-box { margin-bottom:16px; }
.scenario-grid { display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap:12px; max-height:460px; overflow:auto; padding-right:4px; }
.scenario-card { text-align:left; border:1px solid var(--line); border-radius:18px; background:#fff; padding:18px; min-height:126px; }
.scenario-card h4 { margin:0 0 8px; font-size:15px; }
.scenario-card p { margin:0; color:var(--muted); font-size:13px; line-height:1.45; }
.scenario-card.active { border-color:var(--primary-2); background:linear-gradient(180deg, #effde9, #fff); box-shadow:0 16px 34px rgba(50,194,31,.14); }
.scenario-selected-note { margin-top: 10px; display:inline-block; font-size:12px; font-weight:900; color:#1d7d14; background:#e3f8dc; border:1px solid #b7edaa; padding:4px 8px; border-radius:999px; }
.dynamic-questions { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:14px; }
.dynamic-questions label.full { grid-column: 1 / -1; }
.custom-generate-button { margin-top: 8px; }
.category-script-box { border:1px solid var(--line); background:#f7faf4; border-radius:16px; padding:14px; margin-bottom:14px; }
.category-script-head { display:flex; justify-content:space-between; gap:10px; align-items:center; margin-bottom:8px; }
.authority-layout { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:14px; margin-bottom:14px; }
.authority-box { border:1px solid var(--line); border-radius:16px; padding:16px; background:#f7faf4; }
.authority-box h4 { margin:0 0 12px; }
.danger-lite { background:#fff7f7; border-color:#fecaca; }
.checkbox-stack { display:grid; gap:9px; }
.check-row, .toggle-row { display:flex; align-items:flex-start; gap:10px; margin-bottom:10px; color:var(--ink); }
.check-row input, .toggle-row input { width:auto; margin-top:3px; }
.check-row span, .toggle-row span { display:block; font-weight:800; }
.toggle-row small { display:block; margin-top:3px; font-weight:700; }
.review-card { display:grid; gap:10px; border:1px solid var(--line); background:#f7faf4; border-radius:16px; padding:16px; }
.review-row { display:grid; grid-template-columns: 180px 1fr; gap:12px; padding-bottom:9px; border-bottom:1px solid #e5e7eb; }
.review-row:last-child { border-bottom:0; padding-bottom:0; }
.review-row strong { color:var(--muted); font-size:13px; }
.form-footer { display:flex; justify-content:flex-end; gap:10px; margin-top:18px; }
.form-error { min-height:20px; color:var(--danger); font-weight:850; margin-top:10px; }
.inline-status { margin-top: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; font-weight: 700; }
.inline-status.warning { border-color: #fde68a; background: #fffbeb; color: #6b4d04; }
.inline-status.danger { border-color: #fecaca; background: #fff7f7; color: var(--danger); }
.inline-status.success { border-color: #bbf7d0; background: #f0fdf4; color: #14532d; }
.dashboard-grid.first-run .mission-detail-card { display: none; }
.dashboard-grid.first-run .mission-list-card .empty-state {
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: #fcfef9;
}

.mission-list { display:grid; gap:10px; }
.mission-item { width:100%; text-align:left; border:1px solid var(--line); border-radius:16px; padding:14px; background:#fff; }
.mission-item.active { border-color:var(--primary-2); box-shadow:0 12px 28px rgba(50,194,31,.13); }
.mission-item.active::after { content:"Selected"; display:inline-block; margin-top:8px; font-size:12px; font-weight:900; color:#1d7d14; }
.mission-item h4 { margin:0 0 6px; }
.mission-meta { display:flex; gap:8px; flex-wrap:wrap; color:var(--muted); font-size:12px; font-weight:850; }
.empty-state { text-align:center; padding:36px 14px; color:var(--muted); }
.empty-icon { display:grid; place-items:center; margin:0 auto 12px; width:54px; height:54px; border-radius:18px; background:var(--primary-soft); color:var(--primary-2); font-size:25px; }
.detail-pane { min-height:280px; }
.empty-detail-state {
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 18px;
  text-align: center;
}
.empty-detail-state h4 {
  margin: 4px 0 6px;
  font-family: "Instrument Serif", "Times New Roman", serif;
  font-weight: 400;
  font-size: 24px;
}
.empty-detail-state p {
  margin: 0;
  color: var(--muted);
}
.detail-tabs {
  display: inline-flex;
  gap: 8px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #f8f8f2;
  margin-bottom: 12px;
}
.detail-tab {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  border-radius: 999px;
}
.detail-tab.active {
  background: #fff;
  color: var(--ink);
}
.detail-stack { display:grid; gap:14px; }
.detail-section { border:1px solid var(--line); background:#f7faf4; border-radius:16px; padding:14px; }
.detail-section h4 { margin:0 0 10px; }
.detail-status-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.kv { display:grid; grid-template-columns: 140px 1fr; gap:10px; padding:6px 0; border-bottom:1px solid #e5e7eb; }
.kv:last-child { border-bottom:0; }
.kv span:first-child { color:var(--muted); font-weight:900; }
.event-list { display:grid; gap:8px; max-height:260px; overflow:auto; }
.event-row { padding:10px; border-radius:14px; background:#fff; border:1px solid var(--line); font-size:13px; }
.badge { display:inline-flex; align-items:center; border-radius:999px; padding:5px 8px; font-size:12px; font-weight:950; background:var(--primary-soft); color:var(--primary-2); }
.mission-detail-card .event-row,
.mission-detail-card .kv,
.review-row {
  font-size: 14px;
}

.auth-dialog { width:min(460px, calc(100% - 24px)); border:0; border-radius:22px; padding:0; box-shadow:0 30px 100px rgba(16,24,32,.28); }
.auth-dialog::backdrop { background:rgba(16,24,32,.54); backdrop-filter: blur(7px); }
.dialog-shell { padding:24px; position:relative; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; }
.dialog-shell h2 { margin: 0 44px 6px 0; font-size: 28px; }
.dialog-shell p { margin: 0 44px 14px 0; }
.dialog-shell h2 { font-family: "Instrument Serif", "Times New Roman", serif; font-weight: 400; letter-spacing: -0.01em; }
.icon-button { border:1px solid var(--line); background:#fff; border-radius:999px; width:34px; height:34px; font-size:22px; }
.close-dialog { position:absolute; top:16px; right:16px; }
.auth-tabs { display:flex; gap:8px; margin:18px 44px 18px 0; padding:4px; border-radius:999px; background:#f2f7eb; border: 1px solid var(--line); }
.auth-tab { flex:1; border:0; border-radius:999px; padding:10px; font-weight:950; color:var(--muted); background:transparent; }
.auth-tab.active { color:var(--ink); background:#fff; box-shadow:0 8px 20px rgba(15,23,42,.08); }
.auth-panel { display:none; }
.auth-panel.active { display:block; }
.auth-panel .fine-print a { text-decoration: underline; font-weight: 800; }
.auth-helper-panel {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f7faf4;
}
.auth-helper-panel h3 {
  margin: 0 0 8px;
  font-size: 20px;
}
.auth-helper-panel p { margin-right: 0; }
.toast { position:fixed; right:24px; bottom:24px; z-index:50; padding:14px 16px; border-radius:18px; color:#fff; background:var(--ink); box-shadow:var(--shadow); max-width:420px; font-weight:700; display:flex; align-items:center; gap:12px; border: 1px solid transparent; }
.toast.success { background: #1a6e2e; border-color: #3db35d; }
.toast.warning { background: #7d5a10; border-color: #af8022; }
.toast.danger { background: #8f1f1f; border-color: #bf4040; }
.toast button { margin-left: auto; background: rgba(255,255,255,.18); color: #fff; border-color: rgba(255,255,255,.25); }
.setup-summary { cursor: pointer; list-style: none; }
.setup-summary::-webkit-details-marker { display:none; }
#setupLaterPanel[open] .setup-summary { margin-bottom: 14px; }
#setupLaterPanel {
  background: var(--panel);
}
#setupLaterPanel > summary {
  padding: 0;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy > * {
    animation: none;
  }
}

@media (max-width: 980px) {
  .hero-section, .dashboard-grid { grid-template-columns: 1fr; }
  .feature-grid, .pricing-grid, .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scenario-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-links { display:none; }
}
@media (max-width: 640px) {
  .app-shell { width:min(100% - 20px, 1180px); }
  .topbar { flex-wrap:wrap; }
  .account-actions { width:100%; justify-content:space-between; }
  .hero-section { min-height:auto; padding-top:28px; }
  .trust-grid, .feature-grid, .pricing-grid, .stats-grid, .form-grid.two, .dynamic-questions, .authority-layout, .scenario-grid { grid-template-columns:1fr; }
  .review-row, .kv { grid-template-columns:1fr; }
  .section-heading.row, .card-heading, .dashboard-header { flex-direction:column; }
  .status-banner { flex-direction: column; align-items: flex-start; }
  .language-switcher {
    width: 100%;
    justify-content: space-between;
  }
  .language-switcher select {
    min-width: 145px;
  }
  .form-footer {
    position: sticky;
    bottom: 0;
    background: rgba(251, 253, 248, 0.96);
    padding: 10px 0;
    border-top: 1px solid var(--line);
    backdrop-filter: blur(4px);
    z-index: 5;
  }
}
