/* TopicAce — public marketing landing page. */

/* Nav */
nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
nav .logo { font-size: 17px; text-decoration: none; color: var(--ink); }
nav .logo-mark { width: 22px; height: 22px; }
.nav-links { display: flex; gap: 28px; font-family: -apple-system, system-ui, sans-serif; font-size: 14px; align-items: center; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { background: var(--ink); color: white !important; padding: 9px 18px; border-radius: 6px; }

/* Hero */
.hero { max-width: 980px; margin: 0 auto; padding: 60px 28px 40px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.hero-eyebrow { font-family: -apple-system, system-ui, sans-serif; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 16px; }
.hero-left h1 { font-size: 54px; font-weight: 500; line-height: 1.02; letter-spacing: -0.02em; margin-bottom: 24px; }
.hero-left h1 em { font-style: italic; color: var(--accent); }
.hero-left p { font-size: 19px; color: var(--ink-soft); margin-bottom: 24px; line-height: 1.5; }
.hero-prove { font-family: -apple-system, system-ui, sans-serif; font-size: 13px; color: var(--ink-mute); letter-spacing: 0.04em; }
/* Points at the demo panel: beside the text on desktop, below it once the
   hero collapses to one column. */
.hero-prove::before { content: '→'; color: var(--accent); margin-right: 6px; font-weight: 600; }

/* Demo */
.demo { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden; min-height: 460px; display: flex; flex-direction: column; }
.demo-head {
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: -apple-system, system-ui, sans-serif;
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
}
.demo-head .dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; animation: pulse 2s infinite; }
.demo-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.demo-prompt { font-size: 17px; color: var(--ink); margin-bottom: 18px; line-height: 1.45; }
.demo-prompt strong { color: var(--accent-deep); font-weight: 500; }
.demo-input {
  width: 100%;
  padding: 12px 14px;
  font-family: -apple-system, system-ui, sans-serif;
  font-size: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  margin-bottom: 12px;
  color: var(--ink);
}
.demo-input:focus { outline: none; border-color: var(--accent); background: white; }
.demo-suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.demo-chip {
  font-family: -apple-system, system-ui, sans-serif;
  font-size: 13px;
  padding: 6px 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  cursor: pointer;
  color: var(--ink-soft);
  transition: all 0.15s;
}
.demo-chip:hover { background: var(--accent-soft); color: var(--accent-deep); border-color: var(--accent-soft); }
.demo-btn {
  font-family: -apple-system, system-ui, sans-serif;
  background: var(--ink);
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  align-self: flex-start;
}
.demo-btn:hover { background: #000; }
.demo-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.quiz-step { font-family: -apple-system, system-ui, sans-serif; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600; margin-bottom: 8px; }
.quiz-q { font-size: 19px; color: var(--ink); margin-bottom: 18px; line-height: 1.4; font-weight: 500; }
.quiz-options { display: flex; flex-direction: column; gap: 8px; }
.quiz-opt {
  font-family: -apple-system, system-ui, sans-serif;
  font-size: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
  transition: all 0.15s;
}
.quiz-opt:hover { border-color: var(--accent); background: var(--accent-soft); }
.quiz-opt.correct { border-color: var(--good); background: var(--good-soft); color: var(--good); font-weight: 500; }
.quiz-opt.wrong { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-deep); }
.quiz-opt[disabled] { cursor: default; }

.result-headline { font-size: 32px; line-height: 1.15; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 12px; }
.result-headline em { font-style: italic; color: var(--accent); }
.result-sub { font-size: 16px; color: var(--ink-soft); margin-bottom: 22px; line-height: 1.5; }
.result-stats { display: flex; gap: 24px; margin-bottom: 22px; padding: 16px 18px; background: var(--surface-2); border-radius: 8px; }
.stat { flex: 1; }
.stat-num { font-size: 28px; font-weight: 500; color: var(--ink); line-height: 1; margin-bottom: 4px; }
.stat-label { font-family: -apple-system, system-ui, sans-serif; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-mute); font-weight: 600; }
.result-arrow { margin-top: 16px; font-family: -apple-system, system-ui, sans-serif; font-size: 13px; color: var(--accent); letter-spacing: 0.04em; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.result-arrow::after { content: '↓'; font-size: 16px; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

.loading { display: flex; align-items: center; justify-content: center; height: 200px; color: var(--ink-mute); font-family: -apple-system, system-ui, sans-serif; font-size: 14px; gap: 10px; }
.loading::before { content: ''; width: 14px; height: 14px; border: 2px solid var(--surface-2); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* The continuation */
.continuation { max-width: 820px; margin: 60px auto 0; padding: 0 28px; opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.continuation.visible { opacity: 1; transform: translateY(0); }
.continuation-eyebrow { font-family: -apple-system, system-ui, sans-serif; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 14px; }
.continuation h2 { font-size: 38px; font-weight: 500; line-height: 1.12; letter-spacing: -0.015em; margin-bottom: 32px; }
.continuation h2 em { font-style: italic; color: var(--accent); }

.timeline { position: relative; padding-left: 32px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(to bottom, var(--accent) 0%, var(--accent) 80%, transparent 100%); }
.tl-item { position: relative; padding-bottom: 26px; }
.tl-item::before { content: ''; position: absolute; left: -32px; top: 6px; width: 16px; height: 16px; background: var(--bg); border: 2px solid var(--accent); border-radius: 50%; }
.tl-when { font-family: -apple-system, system-ui, sans-serif; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 6px; }
.tl-what { font-size: 18px; color: var(--ink); line-height: 1.5; }
.tl-what strong { color: var(--ink); font-weight: 500; background: var(--accent-soft); padding: 0 4px; border-radius: 3px; }
.tl-what em { color: var(--ink-soft); font-style: italic; }

.continuation-close { margin-top: 16px; font-size: 19px; line-height: 1.5; color: var(--ink); padding: 24px 28px; background: var(--surface); border-radius: 12px; border-left: 3px solid var(--accent); box-shadow: var(--shadow); }
.continuation-close strong { font-weight: 500; }
.continuation-close em { font-style: italic; color: var(--accent); font-weight: 500; }
.continuation-cta { margin-top: 28px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.cta-primary { font-family: -apple-system, system-ui, sans-serif; background: var(--ink); color: white; padding: 14px 24px; border-radius: 8px; font-size: 15px; font-weight: 500; text-decoration: none; display: inline-block; border: none; cursor: pointer; }
.cta-primary:hover { background: #000; }
.cta-secondary { font-family: -apple-system, system-ui, sans-serif; font-size: 14px; color: var(--ink-soft); text-decoration: none; padding: 14px 8px; border: none; border-bottom: 1px solid transparent; background: none; cursor: pointer; }
.cta-secondary:hover { color: var(--ink); border-bottom-color: var(--ink-mute); }

/* Feature sections */
section.feature-section { max-width: 1000px; margin: 100px auto 0; padding: 0 28px; }
.section-eyebrow { font-family: -apple-system, system-ui, sans-serif; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600; text-align: center; margin-bottom: 14px; }
.section-title { font-size: 38px; font-weight: 500; line-height: 1.15; text-align: center; letter-spacing: -0.015em; margin-bottom: 48px; }
.section-title em { font-style: italic; color: var(--accent); }

.pillars { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.pillar { background: var(--surface); border-radius: 14px; padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.pillar-icon { font-family: -apple-system, system-ui, sans-serif; font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: 0.08em; margin-bottom: 14px; }
.pillar h3 { font-size: 19px; font-weight: 500; margin-bottom: 8px; letter-spacing: -0.005em; }
.pillar p { font-size: 14px; color: var(--ink-soft); line-height: 1.55; }

/* Compare table */
.compare-table-wrap { background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); border: 1px solid var(--line); overflow-x: auto; padding: 4px; }
.compare-table { width: 100%; border-collapse: collapse; font-family: -apple-system, system-ui, sans-serif; }
.compare-table th { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600; padding: 18px 10px; text-align: center; border-bottom: 1px solid var(--line); line-height: 1.3; vertical-align: bottom; }
.compare-table th.row-label { text-align: left; }
.compare-table td { padding: 16px 10px; text-align: center; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--ink-mute); font-weight: 500; }
.compare-table td.row-label { text-align: left; padding-left: 20px; min-width: 220px; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .tool-name { font-family: 'Iowan Old Style', 'Charter', 'Georgia', serif; font-size: 16px; color: var(--ink); font-weight: 500; margin-bottom: 2px; }
.compare-table .tool-sub { font-size: 12px; color: var(--ink-mute); font-weight: 400; }
.compare-table tr:not(.row-us) td:not(.row-label) { color: var(--ink-mute); }
.compare-table tr.row-us { background: linear-gradient(to right, var(--accent-soft), #f8ebec); }
.compare-table tr.row-us td { color: var(--good); font-weight: 600; font-size: 18px; }
.compare-table tr.row-us .tool-name { color: var(--accent-deep); font-weight: 600; }
.compare-table tr.row-us .tool-sub { color: var(--accent-deep); opacity: 0.7; }
.compare-table tr.row-us td:first-child { border-left: 3px solid var(--accent); }
.compare-table tbody tr:not(.row-us):hover { background: var(--surface-2); }
.compare-note { margin: 28px auto 0; padding: 24px 28px; background: var(--surface); border-radius: 12px; border-left: 3px solid var(--accent); box-shadow: var(--shadow); font-size: 17px; line-height: 1.55; color: var(--ink-soft); max-width: 760px; }
.compare-note strong { color: var(--ink); font-weight: 500; }
.compare-note em { color: var(--accent); font-style: italic; font-weight: 500; }
.midpage-cta { margin: 36px auto 0; display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; text-align: center; }

/* Outcomes */
.outcomes { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; margin-bottom: 56px; }
.outcome { background: var(--surface); border-radius: 14px; padding: 26px 28px; box-shadow: var(--shadow); border: 1px solid var(--line); display: flex; gap: 18px; align-items: flex-start; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.outcome:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.06), 0 12px 32px rgba(0,0,0,0.05); }
.outcome-icon { width: 32px; height: 32px; flex-shrink: 0; background: var(--accent-soft); color: var(--accent); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-family: -apple-system, system-ui, sans-serif; font-size: 18px; font-weight: 600; margin-top: 2px; }
.outcome-body h3 { font-size: 18px; font-weight: 500; margin-bottom: 8px; line-height: 1.3; letter-spacing: -0.005em; color: var(--ink); }
.outcome-body p { font-size: 14px; color: var(--ink-soft); line-height: 1.55; }
.section-sub { font-size: 17px; color: var(--ink-soft); text-align: center; max-width: 640px; margin: 0 auto 40px; }

/* Pricing */
.pricing { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.price-card { background: var(--surface); border-radius: 14px; padding: 32px 28px; box-shadow: var(--shadow); border: 1px solid var(--line); display: flex; flex-direction: column; }
.price-name { font-family: -apple-system, system-ui, sans-serif; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600; margin-bottom: 12px; }
.price-amount { font-size: 36px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; margin-bottom: 4px; }
.price-amount small { font-size: 16px; color: var(--ink-mute); font-weight: 400; }
.price-period { font-family: -apple-system, system-ui, sans-serif; font-size: 13px; color: var(--ink-mute); margin-bottom: 16px; }
.price-for { font-size: 14px; color: var(--ink-soft); margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); line-height: 1.5; }
.price-features { list-style: none; flex: 1; margin-bottom: 20px; }
.price-features li { padding: 6px 0; font-size: 13px; color: var(--ink-soft); display: flex; gap: 8px; }
.price-features li::before { content: '·'; color: var(--accent); font-weight: 700; }
.price-cta { font-family: -apple-system, system-ui, sans-serif; background: white; color: var(--ink); border: 1px solid var(--ink); padding: 11px 16px; border-radius: 8px; font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: none; text-align: center; display: block; }
.price-card.dark { background: var(--ink); color: white; border-color: var(--ink); }
.price-card.dark .price-name, .price-card.dark .price-period, .price-card.dark .price-for, .price-card.dark .price-features li { color: rgba(255,255,255,0.7); }
.price-card.dark .price-for { border-bottom-color: rgba(255,255,255,0.15); }
.price-card.dark .price-cta { background: white; color: var(--ink); border: none; }
.pricing-note { margin: 32px auto 0; max-width: 640px; text-align: center; font-family: -apple-system, system-ui, sans-serif; font-size: 14px; line-height: 1.6; color: var(--ink-soft); }
.pricing-note p + p { margin-top: 10px; }
.pricing-note strong { color: var(--ink); font-weight: 500; }
.pricing-note a { color: var(--ink); }

/* Mission & final */
.final { max-width: 720px; margin: 80px auto 0; padding: 0 28px; text-align: center; }
.final h2 { font-size: 42px; font-weight: 500; line-height: 1.1; letter-spacing: -0.015em; margin-bottom: 16px; }
.final p { font-size: 17px; color: var(--ink-soft); margin-bottom: 28px; max-width: 520px; margin-left: auto; margin-right: auto; }
.final-btn { font-family: -apple-system, system-ui, sans-serif; background: var(--ink); color: white; padding: 14px 28px; border-radius: 8px; font-size: 15px; font-weight: 500; text-decoration: none; display: inline-block; }
.final-alt { margin-top: 14px; }
.final-link { font-family: -apple-system, system-ui, sans-serif; font-size: 14px; color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--ink-mute); padding-bottom: 1px; }
.final-link:hover { color: var(--ink); border-bottom-color: var(--ink); }

footer { max-width: 1000px; margin: 100px auto 0; padding: 32px 28px 60px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; font-family: -apple-system, system-ui, sans-serif; font-size: 13px; color: var(--ink-mute); }
footer a { color: var(--ink-soft); text-decoration: none; }
footer a:hover { color: var(--ink); }
.footer-links a { margin-left: 20px; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-prove::before { content: '↓'; }
  .hero-left h1 { font-size: 40px; }
  .pillars, .pricing, .outcomes { grid-template-columns: 1fr; }
  .section-title { font-size: 30px; }
  .continuation h2 { font-size: 28px; }
  .final h2 { font-size: 32px; }
}
@media (max-width: 800px) {
  .compare-table th { font-size: 10px; padding: 12px 4px; }
  .compare-table td { padding: 12px 4px; font-size: 14px; }
  .compare-table td.row-label { padding-left: 10px; min-width: 140px; }
  .compare-table .tool-name { font-size: 13px; }
  .compare-table .tool-sub { font-size: 10px; }
}
@media (max-width: 560px) {
  /* The full five-link nav is wider than a phone and forced the page to
     scroll sideways. Drop the in-page section links; keep Log in + CTA.
     (Section links are root-relative "/#how" so they work from trust pages.) */
  nav { padding: 20px 20px 0; }
  .nav-links { gap: 16px; }
  .nav-links a[href*="#"] { display: none; }
}

/* Demo autocomplete + resolution ladder */
.demo-input-wrap { position: relative; }
.demo-ac { position: absolute; top: 100%; left: 0; right: 0; z-index: 20; margin-top: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); max-height: 240px; overflow-y: auto; }
.demo-ac-item { padding: 10px 14px; font-size: 14px; color: var(--ink-soft); cursor: pointer; }
.demo-ac-item.is-active, .demo-ac-item:hover { background: var(--surface-2); color: var(--ink); }
.suggestion-actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; margin-top: 16px; }
.flag-link { background: none; border: none; padding: 0; margin-top: 12px; font-family: -apple-system, system-ui, sans-serif; font-size: 12px; color: var(--ink-mute); text-decoration: underline; cursor: pointer; }
.flag-link:hover { color: var(--ink-soft); }
.flag-link:disabled { text-decoration: none; cursor: default; }

/* Trust pages (promises, data-principles, mission, contact) */
.page-prose { max-width: 720px; margin: 60px auto 0; padding: 0 28px 80px; }
.page-prose .page-eyebrow { font-family: -apple-system, system-ui, sans-serif; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600; margin-bottom: 14px; }
.page-prose h1 { font-size: 42px; font-weight: 500; line-height: 1.1; letter-spacing: -0.015em; margin-bottom: 20px; }
.page-prose h1 em { font-style: italic; color: var(--accent); }
.page-prose h2 { font-size: 24px; font-weight: 500; margin: 36px 0 10px; }
.page-prose p { font-size: 17px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 16px; }
.page-prose ul { margin: 0 0 16px 20px; color: var(--ink-soft); }
.page-prose a { color: var(--accent-deep); }
