/* ============================================
   Gospel — Landing Page
   Light-mode editorial. Built on Perf tokens.
   ============================================ */

html, body {
  background: var(--bg-0);
  color: var(--fg-1);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-feature-settings: 'ss01', 'cv11';
}

/* ----- Layout primitives ----- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
}
.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 32px;
}

/* ----- Nav ----- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(250, 250, 251, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-2) var(--ease), background var(--dur-2) var(--ease);
}
.nav.scrolled {
  border-bottom-color: var(--border-1);
}
.nav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 15px;
  color: var(--fg-2);
}
.nav-links a {
  color: var(--fg-2);
  font-weight: 500;
}
.nav-links a:hover { color: var(--fg-1); }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: var(--text-sm);
}
.nav-signin {
  color: var(--fg-2);
  font-weight: 500;
}

/* ----- Logo ----- */
.logo {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--fg-1);
  line-height: 1;
}
.logo-mark {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  vertical-align: super;
  margin-left: 1px;
  letter-spacing: 0;
  position: relative;
  top: -0.4em;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 18px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--dur-1) var(--ease),
              color var(--dur-1) var(--ease),
              border-color var(--dur-1) var(--ease),
              transform var(--dur-1) var(--ease),
              filter var(--dur-1) var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-fg);
}
.btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  color: var(--accent-fg);
}
.btn-primary:active { transform: translateY(0); filter: brightness(0.96); }

.btn-ghost {
  background: transparent;
  color: var(--fg-1);
  border-color: var(--border-2);
}
.btn-ghost:hover {
  background: var(--accent-tint);
  border-color: var(--accent);
  color: var(--accent-press);
}

.btn-lg { height: 48px; padding: 0 22px; font-size: var(--text-md); }
.btn-sm { height: 32px; padding: 0 12px; font-size: var(--text-xs); }

.btn svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ----- Section scaffolding ----- */
.section {
  padding: 96px 0;
  position: relative;
}
.section-tight { padding: 64px 0; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--accent);
  text-transform: none;
}

/* =======================================================
   HERO
   ======================================================= */
.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
  /* Fill viewport on load so the next section doesn't peek
     through the fold. Falls back to 100vh on browsers that
     don't support 100svh. */
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  align-items: center;
}
/* Violet gradient corner — confident accent */
.hero-grad {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-grad::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -300px;
  width: 900px;
  height: 900px;
  background: radial-gradient(circle at center,
    rgba(130, 80, 223, 0.18) 0%,
    rgba(130, 80, 223, 0.08) 30%,
    rgba(130, 80, 223, 0) 60%);
  filter: blur(20px);
}
.hero-grad::after {
  content: '';
  position: absolute;
  bottom: -300px;
  left: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle at center,
    rgba(130, 80, 223, 0.10) 0%,
    rgba(130, 80, 223, 0) 60%);
  filter: blur(20px);
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  padding: 6px 14px 6px 10px;
  background: var(--bg-1);
  border: 1px solid var(--border-1);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--fg-2);
}
.hero-eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}

.hero h1 {
  font-size: clamp(48px, 7.4vw, 96px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
  color: var(--fg-1);
}
.hero h1 .accent {
  color: var(--accent);
  font-style: italic;
  font-weight: 700;
  position: relative;
  display: inline-block;
}
.hero h1 .accent .sup {
  font-family: var(--font-mono);
  font-size: 0.32em;
  font-weight: 500;
  color: var(--accent);
  vertical-align: super;
  margin-left: 4px;
  letter-spacing: 0;
  font-style: normal;
  position: relative;
  top: -0.4em;
}

.hero-sub {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--fg-2);
  max-width: 620px;
  margin: 0 auto 48px;
  text-wrap: balance;
}

/* ----- Ask box ----- */
.ask {
  width: 100%;
  max-width: 720px;
  background: var(--bg-1);
  border: 1px solid var(--border-2);
  border-radius: 16px;
  box-shadow: var(--shadow-2);
  transition: border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.ask:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-tint), var(--shadow-2);
}
.ask-row {
  display: flex;
  align-items: center;
  padding: 14px 14px 14px 22px;
  gap: 12px;
}
.ask-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font-sans);
  font-size: 18px;
  color: var(--fg-1);
  height: 36px;
}
.ask-input::placeholder { color: var(--fg-3); opacity: 0.85; }

.ask-btn {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--accent);
  color: white;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: filter var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
  flex-shrink: 0;
}
.ask-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.ask-btn:active { transform: translateY(0); filter: brightness(0.96); }
.ask-btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.ask-btn svg { width: 18px; height: 18px; }

.ask-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  max-width: 720px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-1);
  border: 1px solid var(--border-1);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-2);
  cursor: pointer;
  transition: all var(--dur-1) var(--ease);
  font-family: inherit;
  white-space: nowrap;
}
.chip:hover {
  border-color: var(--accent);
  color: var(--accent-press);
  background: var(--accent-tint);
}
.chip svg { width: 12px; height: 12px; opacity: 0.6; }

/* ----- Answer panel ----- */
.answer-wrap {
  width: 100%;
  max-width: 720px;
  margin: 24px auto 0;
  text-align: left;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--dur-3) var(--ease), transform var(--dur-3) var(--ease);
  pointer-events: none;
}
.answer-wrap.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.answer-stub {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: var(--bg-1);
  border: 1px solid var(--accent);
  border-radius: 12px;
  box-shadow: 0 0 0 4px var(--accent-tint);
}
.answer-stub-icon {
  width: 36px; height: 36px;
  background: var(--accent-tint);
  color: var(--accent);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.answer-stub-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.answer-stub-q {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.answer-stub-cta {
  font-size: 13px;
  color: var(--fg-2);
}
@media (max-width: 600px) {
  .answer-stub { flex-wrap: wrap; }
}

.answer-card {
  background: var(--bg-1);
  border: 1px solid var(--border-1);
  border-radius: 12px;
  padding: 28px 32px;
}
.answer-q {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-3);
  margin-bottom: 8px;
}
.answer-q-text {
  font-size: 15px;
  font-weight: 500;
  color: var(--fg-2);
  margin-bottom: 24px;
  line-height: 1.5;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-1);
}
.answer-body {
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg-1);
}
.answer-body p { margin: 0 0 16px; }
.answer-body p:last-child { margin-bottom: 0; }

.cite {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.7em;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-tint);
  border-radius: 4px;
  padding: 1px 4px;
  margin: 0 1px 0 2px;
  vertical-align: super;
  cursor: pointer;
  transition: background var(--dur-1) var(--ease);
  text-decoration: none;
}
.cite:hover {
  background: var(--violet-100);
  color: var(--accent-press);
}

.caret {
  display: inline-block;
  width: 8px;
  height: 1em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}

/* sources panel */
.sources {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sources-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-3);
  margin-bottom: 4px;
  padding-left: 4px;
}
.source-card {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-1);
  border: 1px solid var(--border-1);
  border-radius: 10px;
  text-decoration: none;
  color: var(--fg-1);
  transition: border-color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
  cursor: pointer;
  opacity: 0;
  transform: translateX(8px);
}
.source-card.visible {
  opacity: 1;
  transform: translateX(0);
  transition: opacity var(--dur-3) var(--ease), transform var(--dur-3) var(--ease), border-color var(--dur-1) var(--ease);
}
.source-card:hover {
  border-color: var(--accent);
  color: var(--fg-1);
}
.source-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--accent-tint);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.source-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.source-domain {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.source-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-1);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.answer-cta {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.answer-cta-text {
  font-size: 14px;
  color: var(--fg-2);
}

/* =======================================================
   THREE THINGS
   ======================================================= */
.three-things {
  padding: 120px 0;
  border-top: 1px solid var(--border-1);
}
.three-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border-1);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-1);
}
@media (max-width: 880px) {
  .three-grid { grid-template-columns: 1fr; }
}
.three-cell {
  padding: 40px 36px 44px;
  border-right: 1px solid var(--border-1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.three-cell:last-child { border-right: none; }
@media (max-width: 880px) {
  .three-cell {
    border-right: none;
    border-bottom: 1px solid var(--border-1);
  }
  .three-cell:last-child { border-bottom: none; }
}
.three-num {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.005em;
}
.three-h {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg-1);
  margin: 4px 0 0;
}
.three-p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-2);
  margin: 0;
}

/* visual that lives at top of each cell */
.three-vis {
  height: 88px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* =======================================================
   WHO IT'S FOR
   ======================================================= */
.who {
  padding: 120px 0;
  border-top: 1px solid var(--border-1);
}
.who-h {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 720px;
  margin: 0 0 56px;
  text-wrap: balance;
}
.who-h em {
  font-style: italic;
  color: var(--accent);
  font-weight: 700;
}
.who-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1000px) { .who-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .who-grid { grid-template-columns: 1fr; } }
.who-card {
  padding: 28px 24px;
  background: var(--bg-1);
  border: 1px solid var(--border-1);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.who-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.who-tag {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: -0.005em;
  color: var(--accent);
  font-weight: 500;
}
.who-card h4 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
}
.who-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0;
}

/* =======================================================
   COMPARISON
   ======================================================= */
.compare {
  padding: 120px 0;
  border-top: 1px solid var(--border-1);
}
.compare-h {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 56px;
  max-width: 720px;
  text-wrap: balance;
  line-height: 1.05;
}
.compare-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border-1);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-1);
}
.compare-col-h {
  padding: 24px 32px;
  font-size: 14px;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.005em;
  border-bottom: 1px solid var(--border-1);
}
.compare-col-h.left {
  background: var(--bg-2);
  color: var(--fg-3);
  border-right: 1px solid var(--border-1);
}
.compare-col-h.right {
  background: var(--accent);
  color: white;
}
.compare-row {
  display: contents;
}
.compare-cell {
  padding: 24px 32px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg-1);
  border-bottom: 1px solid var(--border-1);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.compare-cell.left {
  background: var(--bg-2);
  color: var(--fg-2);
  border-right: 1px solid var(--border-1);
}
.compare-cell.right {
  background: var(--bg-1);
  font-weight: 500;
}
.compare-row:last-child .compare-cell { border-bottom: none; }
.compare-icon {
  width: 18px; height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--fg-3);
}
.compare-cell.right .compare-icon { color: var(--accent); }
@media (max-width: 700px) {
  .compare-table { grid-template-columns: 1fr; }
  .compare-col-h.left, .compare-cell.left { border-right: none; }
}

/* =======================================================
   PRICING
   ======================================================= */
.pricing {
  padding: 120px 0;
  border-top: 1px solid var(--border-1);
}
.pricing-h {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
  line-height: 1.05;
}
.pricing-sub {
  font-size: 18px;
  color: var(--fg-2);
  margin: 0 0 56px;
}
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; } }
.price-card {
  padding: 36px 32px;
  background: var(--bg-1);
  border: 1px solid var(--border-1);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: border-color var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.price-card.featured {
  border-color: var(--accent);
  background:
    linear-gradient(180deg, rgba(130, 80, 223, 0.04), rgba(130, 80, 223, 0.0)) padding-box,
    var(--bg-1);
  position: relative;
}
.price-card.featured::before {
  content: "Most popular";
  position: absolute;
  top: -10px;
  left: 32px;
  background: var(--accent);
  color: white;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.005em;
  padding: 4px 10px;
  border-radius: 999px;
}
.price-tier {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-2);
  letter-spacing: -0.005em;
}
.price-amount {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--fg-1);
}
.price-amount .per {
  font-size: 16px;
  font-weight: 500;
  color: var(--fg-3);
  letter-spacing: 0;
}
.price-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  border-top: 1px solid var(--border-1);
  padding-top: 24px;
}
.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--fg-1);
  line-height: 1.45;
}
.price-features li svg {
  width: 16px; height: 16px;
  color: var(--accent);
  margin-top: 3px;
  flex-shrink: 0;
}

/* =======================================================
   RETRY (second chance)
   ======================================================= */
.retry {
  padding: 120px 0;
  border-top: 1px solid var(--border-1);
  background: var(--bg-2);
}
.retry-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.retry h2 {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 16px;
}
.retry-sub {
  font-size: 17px;
  color: var(--fg-2);
  margin: 0 0 32px;
  max-width: 480px;
}

/* =======================================================
   FINAL CTA
   ======================================================= */
.final-cta {
  padding: 160px 0;
  text-align: center;
  border-top: 1px solid var(--border-1);
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(130, 80, 223, 0.10), rgba(130, 80, 223, 0) 60%);
  filter: blur(20px);
  pointer-events: none;
}
.final-cta h2 {
  position: relative;
  font-size: clamp(40px, 6vw, 88px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.0;
  margin: 0 0 36px;
  text-wrap: balance;
}
.final-cta h2 em {
  font-style: italic;
  color: var(--accent);
}

/* =======================================================
   FOOTER
   ======================================================= */
.footer {
  border-top: 1px solid var(--border-1);
  padding: 36px 0;
  background: var(--bg-1);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--fg-3);
}
.footer-bottom em { font-style: italic; color: var(--fg-2); }

/* =======================================================
   SECTION-LEVEL HEADERS
   ======================================================= */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 48px;
}
.section-head .eyebrow { display: block; margin-bottom: 12px; }
.section-head h2 {
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
  max-width: 600px;
  text-wrap: balance;
}

/* =======================================================
   Tile decorations (small visuals for the three columns)
   ======================================================= */
.vis-cite svg, .vis-source svg, .vis-honest svg {
  width: 100%;
  max-width: 200px;
  height: auto;
}

/* Sign-up soft prompt */
.signup-prompt {
  margin-top: 12px;
  padding: 18px 22px;
  background: var(--accent-tint);
  border: 1px solid var(--violet-200);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--dur-3) var(--ease), transform var(--dur-3) var(--ease);
}
.signup-prompt.visible { opacity: 1; transform: translateY(0); }
.signup-prompt-text {
  font-size: 14px;
  color: var(--accent-press);
  font-weight: 500;
}

/* Source preview tooltip */
.cite-popover {
  position: fixed;
  z-index: 100;
  width: 280px;
  background: var(--bg-1);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: var(--shadow-2);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
  font-size: 13px;
}
.cite-popover.visible {
  opacity: 1;
  transform: translateY(0);
}
.cite-popover .src-domain {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  display: block;
}
.cite-popover .src-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-1);
  line-height: 1.4;
}

/* Tweaks panel theme overrides for light mode */
[data-tweaks-panel] {
  --tw-bg: var(--bg-1) !important;
}

/* Error/state inside answer */
.answer-error {
  color: var(--danger);
  font-size: 14px;
  margin-top: 8px;
}

/* Skeleton dots while loading */
.thinking {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.thinking span {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--accent);
  animation: bounce 1.2s infinite ease-in-out;
}
.thinking span:nth-child(2) { animation-delay: 0.15s; }
.thinking span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* =======================================================
   Wide-monitor scaling (>= 1600px)
   =======================================================
   The 14" laptop is the design baseline. On external
   monitors >=1600px wide, fixed px sizes throughout the
   design feel undersized relative to viewport. These
   overrides scale every meaningful element uniformly:
   sections, eyebrows, body text, cards, footer, ask box.
   No element is left at 14"-baseline size on a 27" display.
*/
@media (min-width: 1600px) {
  :root {
    /* Container */
    --container-max: 1440px;
    --container-wide: 1600px;

    /* Token bumps cover anything that already references vars */
    --text-2xs: 12px;
    --text-xs:  13px;
    --text-sm:  16px;
    --text-md:  18px;
    --text-lg:  20px;
    --text-xl:  22px;
    --text-2xl: 28px;
  }

  /* ---- Section paddings (every named section) ---- */
  .section,
  .three-things,
  .who,
  .compare,
  .pricing,
  .retry,
  .final-cta { padding: 144px 0; }
  .footer    { padding: 48px 0; }

  /* ---- Hero ---- */
  .hero       { padding: 0; }
  .hero-inner { max-width: 1200px; }
  .hero h1    { font-size: clamp(96px, 7vw, 120px); }
  .hero-sub   { font-size: clamp(20px, 1.4vw, 24px); }
  .hero-eyebrow { font-size: 15px; padding: 8px 16px 8px 12px; }

  /* ---- Ask box + chips ---- */
  .ask-row    { padding: 18px 18px 18px 26px; }
  .ask-input  { font-size: 20px; height: 40px; }
  .ask-btn    { width: 50px; height: 50px; }
  .ask-btn svg { width: 22px; height: 22px; }
  .chip       { font-size: 16px; padding: 10px 18px; }

  /* ---- Nav ---- */
  .nav-links { font-size: 17px; gap: 32px; }
  .logo      { font-size: 26px; }
  .logo-mark { font-size: 13px; }
  .nav-cta   { gap: 18px; }

  /* ---- Buttons ---- */
  .btn    { font-size: 17px; height: 44px; padding: 0 22px; }
  .btn-lg { height: 52px; padding: 0 28px; font-size: 18px; }
  .btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }

  /* ---- Section headlines ---- */
  .who-h,
  .compare-h,
  .pricing-h,
  .retry h2        { font-size: clamp(56px, 4.5vw, 80px); }
  .section-head    { gap: 56px; margin-bottom: 56px; }
  .section-head h2 { font-size: clamp(48px, 4.2vw, 64px); }
  .final-cta h2    { font-size: clamp(72px, 6vw, 120px); }

  /* ---- Section eyebrow labels ("Pricing", "Use cases", etc.) ---- */
  .eyebrow     { font-size: 16px; }
  .pricing-sub { font-size: 22px; }
  .retry-sub   { font-size: 21px; }

  /* ---- Three-things cards ---- */
  .three-cell { padding: 56px 44px; }
  .three-vis  { height: 100px; margin-bottom: 20px; }
  .three-num  { font-size: 16px; }
  .three-h    { font-size: 28px; }
  .three-p    { font-size: 17px; }

  /* ---- Who cards ---- */
  .who-card    { padding: 36px 32px; }
  .who-tag     { font-size: 16px; }
  .who-card h4 { font-size: 24px; }
  .who-card p  { font-size: 16px; }

  /* ---- Comparison table ---- */
  .compare-col-h { font-size: 17px; padding: 28px 36px; }
  .compare-cell  { font-size: 18px; padding: 28px 36px; }
  .compare-icon  { width: 22px; height: 22px; }

  /* ---- Pricing cards ---- */
  .price-card        { padding: 44px 36px; gap: 28px; }
  .price-tier        { font-size: 16px; }
  .price-amount      { font-size: 64px; }
  .price-amount .per { font-size: 18px; }
  .price-features li { font-size: 17px; }
  .price-features li svg { width: 18px; height: 18px; }
  .price-card.featured::before { font-size: 13px; padding: 5px 12px; top: -12px; }

  /* ---- Footer ---- */
  .footer-bottom { font-size: 16px; gap: 20px; }
}

@media (min-width: 2000px) {
  :root {
    --container-max: 1600px;
    --container-wide: 1760px;
  }
  .section,
  .three-things,
  .who,
  .compare,
  .pricing,
  .retry,
  .final-cta { padding: 176px 0; }
  .footer { padding: 56px 0; }

  .hero-inner { max-width: 1320px; }
  .hero h1 { font-size: clamp(120px, 7vw, 144px); }
}
