:root {
  --bg: #f5f9fd;
  --bg-alt: #eef4fc;
  --surface: #ffffff;
  --surface-2: #f2f6fc;
  --border: rgba(20, 46, 90, 0.10);
  --border-strong: rgba(20, 46, 90, 0.18);
  --text: #0f2545;
  --text-soft: #55688a;
  --text-faint: #8b9ab8;
  --accent: #1a73e8;
  --accent-2: #0e7490;
  --accent-grad: linear-gradient(120deg, #1a73e8 0%, #2f8dfb 55%, #14b8c4 100%);
  --icon-bg: rgba(26, 115, 232, 0.10);
  --good: #16a34a;
  --bad: #dc2626;
  --warn: #b45309;
  --radius: 18px;
  --shadow: 0 20px 45px rgba(20, 46, 90, 0.14);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand, .mock-header-title {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.08; margin: 0 0 1.25rem; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.18; margin: 0 0 1rem; }
h3 { font-size: 1.1rem; margin: 0 0 0.5rem; }
p { line-height: 1.6; color: var(--text-soft); margin: 0; }

a { color: inherit; }

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--surface);
  color: var(--text);
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  z-index: 200;
  box-shadow: var(--shadow);
}
.skip-link:focus { left: 1rem; top: 1rem; }

.section-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.75rem;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--accent-2);
  margin: 0 0 0.9rem;
}

.section-lede {
  max-width: 680px;
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0.9rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
}

.brand-mark {
  display: inline-flex;
  color: var(--accent);
}

.site-nav {
  display: flex;
  gap: 1.6rem;
  flex: 1;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.site-nav a:hover, .site-nav a.active { color: var(--accent); }
.mobile-nav a.active { color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-grad);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(26, 115, 232, 0.32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(26, 115, 232, 0.4); }

.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-nav { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0 1.75rem 1.25rem;
  background: var(--surface);
}
.mobile-nav a {
  text-decoration: none;
  color: var(--text-soft);
  padding: 0.7rem 0;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.mobile-nav .btn { margin-top: 0.9rem; }

@media (max-width: 860px) {
  .site-nav, .btn-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-nav.open { display: flex; }
}

/* ---------- WAVE DIVIDER (shared by hero + page banners) ---------- */
.wave-divider {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 70px;
  display: block;
  line-height: 0;
}
.wave-divider path { fill: var(--bg); }

/* ---------- HERO ---------- */
.hero { position: relative; padding: 0 0 4.5rem; }

.hero-banner {
  position: relative;
  background: var(--accent-grad);
  padding: 4rem 0 6.5rem;
  overflow: hidden;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-copy .eyebrow { color: rgba(255, 255, 255, 0.85); }
.hero-copy h1 { color: #ffffff; }

.hero-lede {
  font-size: 1.08rem;
  max-width: 560px;
  margin-bottom: 1.75rem;
  color: rgba(255, 255, 255, 0.88);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.2rem;
}

.badge {
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}
.hero-banner .btn-primary {
  background: #ffffff;
  color: var(--accent);
  box-shadow: 0 10px 24px rgba(6, 24, 56, 0.22);
}
.hero-banner .btn-primary:hover { box-shadow: 0 14px 30px rgba(6, 24, 56, 0.28); }
.hero-banner .btn-ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: #ffffff;
}
.hero-banner .btn-ghost:hover { border-color: #ffffff; color: #ffffff; }

/* Overlapping feature-card strip */
.hero-features {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: -4rem;
}
.hero-feature-card {
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1.4rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.hero-feature-card span {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text);
}

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .mock-photo { max-width: 480px; }
  .hero-features { grid-template-columns: repeat(2, 1fr); margin-top: -3rem; }
}
@media (max-width: 560px) {
  .hero-features { grid-template-columns: 1fr; margin-top: -2.5rem; }
}

/* ---------- HERO MOCKUP ---------- */
.mock-photo-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 28px;
  padding: 2.5rem 2rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.mock-photo {
  display: block;
  width: 100%;
  height: auto;
  max-width: 640px;
  margin: 0 auto;
  filter: drop-shadow(0 25px 45px rgba(6, 24, 56, 0.35));
}

@media (max-width: 600px) {
  .mock-photo-frame { padding: 1.75rem 1.25rem; border-radius: 22px; }
}

/* ---------- Screenshot theme toggle (hero) ---------- */
.screenshot-toggle {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.screenshot-toggle-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-faint);
}
.screenshot-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-soft);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.screenshot-toggle-btn:hover { border-color: var(--accent); color: var(--text); }
.screenshot-toggle-btn.active {
  background: var(--accent-grad);
  border-color: transparent;
  color: #ffffff;
}

.hero-banner .screenshot-toggle-label { color: rgba(255, 255, 255, 0.75); }
.hero-banner .screenshot-toggle-btn {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}
.hero-banner .screenshot-toggle-btn:hover { border-color: #ffffff; }
.hero-banner .screenshot-toggle-btn.active {
  background: #ffffff;
  color: var(--accent);
  border-color: #ffffff;
}

.screenshot-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  background: var(--surface);
}
.app-screenshot { display: block; width: 100%; height: auto; }

@media (max-width: 940px) {
  .screenshot-toggle { justify-content: flex-start; }
}

/* ---------- SECTIONS ---------- */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* Compare grid (problem section) */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}
.compare-card {
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.compare-bad { background: #fff5f5; border-color: rgba(220, 38, 38, 0.2); }
.compare-good { background: #f2fbf6; border-color: rgba(22, 163, 74, 0.2); }
.compare-bad h3 { color: var(--bad); }
.compare-good h3 { color: var(--good); }
.compare-card h3 svg { vertical-align: -4px; margin-right: 0.45rem; }
.compare-card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.compare-card li { font-size: 0.94rem; color: var(--text-soft); padding-left: 0; }

.callout {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.75rem;
  font-size: 0.95rem;
  color: var(--text-soft);
  box-shadow: 0 8px 24px rgba(20, 46, 90, 0.06);
}
.callout strong { display: block; color: var(--text); margin-bottom: 0.25rem; }
.callout-icon-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--icon-bg);
  color: var(--accent);
}
.callout-feature { border-color: rgba(26, 115, 232, 0.18); background: linear-gradient(120deg, rgba(26,115,232,0.06), rgba(20,184,196,0.05)); }

.pull-quote {
  margin: 0 0 1.75rem;
  padding: 1.5rem 1.75rem;
  border-left: 3px solid var(--accent);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text);
  background: rgba(26, 115, 232, 0.05);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.25rem;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.step-num {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent-grad);
  color: #ffffff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.step-card p { font-size: 0.93rem; }

/* Compact steps variant (used where the steps share a page with other content) */
.steps-grid.compact { gap: 1rem; margin-bottom: 2rem; }
.steps-grid.compact .step-card {
  padding: 1rem 1.15rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  box-shadow: 0 8px 20px rgba(20, 46, 90, 0.07);
}
.steps-grid.compact .step-num {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  font-size: 0.8rem;
  margin-bottom: 0;
  flex-shrink: 0;
}
.steps-grid.compact h3 { font-size: 0.95rem; margin-bottom: 0.3rem; }
.steps-grid.compact .step-card p { font-size: 0.84rem; }

/* ---------- Google Sheets integration section ---------- */
.integration-copy { max-width: 720px; margin-bottom: 2.25rem; }

.integration-visual {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.integration-visual .mock-photo-frame {
  flex: 1.05;
  min-width: 0;
  padding: 1.5rem;
  border-radius: 24px;
  background: linear-gradient(160deg, #eef5ff, #ffffff);
  border: 1px solid var(--border);
}
.integration-visual .mock-photo { max-width: none; margin: 0; }

.integration-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  flex-shrink: 0;
  width: 110px;
  text-align: center;
}
.integration-arrow span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-soft);
  line-height: 1.3;
}

.sheet-window {
  flex: 1;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.sheet-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.65rem 0.9rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  color: var(--text-faint);
}
.sheet-titlebar .mock-dot { background: rgba(20, 46, 90, 0.14); }
.sheet-url {
  margin-left: 0.5rem;
  font-size: 0.7rem;
  color: var(--text-faint);
  background: rgba(20, 46, 90, 0.05);
  border-radius: 6px;
  padding: 0.15rem 0.6rem;
}
.sheet-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(120deg, rgba(15, 157, 88, 0.14), rgba(20, 184, 196, 0.08));
  border-bottom: 1px solid var(--border);
}
.sheet-doc-title { font-weight: 700; font-size: 0.88rem; color: var(--text); }
.sheet-live-badge {
  font-size: 0.68rem;
  font-weight: 600;
  color: #15803d;
  background: rgba(22, 163, 74, 0.12);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}
.sheet-grid { padding: 0.5rem 0.6rem 0.75rem; }
.sheet-row {
  display: grid;
  grid-template-columns: 22px 1.6fr 1fr 0.6fr 0.7fr 1fr;
  gap: 0.4rem;
  padding: 0.45rem 0.5rem;
  font-size: 0.74rem;
  border-radius: 6px;
  color: var(--text);
}
.sheet-row span:first-child { color: var(--text-faint); }
.sheet-row-head {
  color: var(--text-faint);
  text-transform: uppercase;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding-bottom: 0.6rem;
  margin-bottom: 0.2rem;
}
.sheet-row:not(.sheet-row-head):nth-child(odd) { background: var(--surface-2); }
.sheet-row-warn:not(.sheet-row-head) { background: rgba(180, 83, 9, 0.10); }
.sheet-row-warn span:nth-child(4) { color: var(--warn); font-weight: 700; }

@media (max-width: 860px) {
  .integration-visual { flex-direction: column; }
  .integration-visual .mock-photo-frame { width: 100%; padding: 1.25rem; }
  .integration-arrow { flex-direction: row; width: auto; }
  .integration-arrow svg { transform: rotate(90deg); }
  .sheet-row { grid-template-columns: 18px 1.4fr 0.9fr 0.5fr; }
  .sheet-row span:nth-child(5), .sheet-row span:nth-child(6) { display: none; }
}

.check-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.check-item { display: flex; gap: 0.75rem; align-items: flex-start; }
.check-mark {
  color: var(--good);
  font-weight: 700;
  background: rgba(22, 163, 74, 0.12);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}
.check-item p { font-size: 0.93rem; color: var(--text-soft); }
.check-item strong { color: var(--text); }

/* Feature grid (reporting) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--icon-bg);
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.feature-card p { font-size: 0.93rem; }

.report-table {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.report-row {
  display: grid;
  grid-template-columns: 160px 220px 1fr;
  gap: 1rem;
  padding: 0.9rem 1.4rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.report-row:last-child { border-bottom: none; }
.report-row-head {
  background: var(--surface-2);
  color: var(--text-faint);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.report-row:not(.report-row-head) span:first-child { color: var(--accent); font-weight: 600; }
.report-row:not(.report-row-head) span:nth-child(2) { color: var(--text); }
.report-row:not(.report-row-head) span:last-child { color: var(--text-soft); }

@media (max-width: 700px) {
  .report-row { grid-template-columns: 1fr; gap: 0.2rem; }
  .report-row-head { display: none; }
  .report-row span::before { content: attr(data-label); display: block; font-size: 0.68rem; text-transform: uppercase; color: var(--text-faint); margin-top: 0.4rem; }
  .report-row span:first-child::before { margin-top: 0; }
}

/* Why switch */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}
.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}
.why-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 0.5rem;
  border-radius: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--icon-bg);
  margin-bottom: 0.8rem;
}
.why-card p { font-size: 0.93rem; }

.also-included {
  font-size: 0.92rem;
  color: var(--text-soft);
}
.also-included strong { color: var(--text); }

/* CTA box */
.cta-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  background: var(--accent-grad);
  border-radius: 22px;
  padding: 2.4rem 2.6rem;
  color: #ffffff;
  box-shadow: 0 20px 45px rgba(26, 115, 232, 0.28);
}
.cta-box h3 { color: #ffffff; font-size: 1.4rem; margin-bottom: 0.4rem; }
.cta-box p { color: rgba(255, 255, 255, 0.85); max-width: 420px; }
.cta-contacts { display: flex; flex-direction: column; gap: 0.7rem; }
.cta-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.16);
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  color: #ffffff;
  white-space: nowrap;
}
.cta-contact:hover { background: rgba(255, 255, 255, 0.26); }

/* Footer */
.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-faint);
}
.footer-chat-link {
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0;
  text-decoration: underline;
}

@media (max-width: 940px) {
  .compare-grid, .steps-grid, .feature-grid, .why-grid, .check-row { grid-template-columns: 1fr; }
  .cta-box { flex-direction: column; align-items: flex-start; }
}

/* ---------- Sound-familiar cards ---------- */
.familiar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}
.familiar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}
.familiar-card .eyebrow {
  color: var(--bad);
  font-size: 0.7rem;
  margin-bottom: 0.6rem;
}
.familiar-card p { color: var(--text); font-size: 0.92rem; }

.familiar-solution {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
  color: var(--good) !important;
  font-size: 0.9rem !important;
  font-weight: 600;
}
.familiar-solution .solution-icon { flex-shrink: 0; margin-top: 0.1rem; }

.statement {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--text);
  text-align: center;
  max-width: 760px;
  margin: 0 auto 1.75rem;
  padding: 0.5rem 0;
}

@media (max-width: 940px) {
  .familiar-grid { grid-template-columns: 1fr; }
}

/* ---------- Page banner (topic pages) ---------- */
.page-banner {
  position: relative;
  background: var(--accent-grad);
  padding: 3.5rem 0 5.5rem;
  overflow: hidden;
}
.page-banner .breadcrumb { color: rgba(255, 255, 255, 0.7); }
.page-banner .breadcrumb a { color: #ffffff; }
.page-banner .eyebrow { color: rgba(255, 255, 255, 0.85); }
.page-banner h1 { color: #ffffff; }
.page-banner .section-lede { color: rgba(255, 255, 255, 0.88); margin-bottom: 0; }

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-faint);
  margin-bottom: 1.25rem;
}
.breadcrumb a { color: var(--accent); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Topic cards (home) ---------- */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
.topic-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.topic-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(20, 46, 90, 0.18); }
.topic-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--icon-bg);
  color: var(--accent);
  margin-bottom: 0.2rem;
}
.topic-card p { font-size: 0.88rem; flex: 1; }
.topic-link { font-size: 0.82rem; font-weight: 700; color: var(--accent); }

@media (max-width: 940px) {
  .topics-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .topics-grid { grid-template-columns: 1fr; }
}

/* ---------- Next page link ---------- */
.next-page {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}
.next-page a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.7rem 1.3rem;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.next-page a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- CHAT WIDGET ---------- */
.chat-widget {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.9rem;
}

.chat-launcher {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--accent-grad);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(26, 115, 232, 0.38);
  transition: transform 0.15s ease;
}
.chat-launcher:hover { transform: translateY(-2px); }
.chat-launcher-icon { display: inline-flex; }

.chat-panel[hidden] { display: none; }

.chat-panel {
  width: min(370px, calc(100vw - 2.5rem));
  height: min(560px, calc(100vh - 8rem));
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.15rem;
  background: linear-gradient(120deg, rgba(26, 115, 232, 0.14), rgba(20, 184, 196, 0.10));
  border-bottom: 1px solid var(--border);
}
.chat-panel-header strong { display: block; font-size: 0.95rem; color: var(--text); }
.chat-panel-header span { font-size: 0.75rem; color: var(--text-soft); }
.chat-close {
  background: rgba(15, 37, 69, 0.08);
  border: none;
  color: var(--text);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.85rem;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.chat-message {
  max-width: 88%;
  padding: 0.65rem 0.9rem;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.5;
  white-space: pre-wrap;
}
.chat-message-bot {
  background: var(--surface-2);
  color: var(--text);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.chat-message-user {
  background: var(--accent-grad);
  color: #ffffff;
  font-weight: 500;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}
.chat-message-error {
  background: #fef2f2;
  border: 1px solid rgba(220, 38, 38, 0.25);
  color: #991b1b;
  align-self: flex-start;
}

.chat-typing {
  display: inline-flex;
  gap: 4px;
  align-self: flex-start;
  background: var(--surface-2);
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  border-bottom-left-radius: 4px;
}
.chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-faint);
  animation: chat-bounce 1s infinite ease-in-out;
}
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes chat-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 1.15rem 0.85rem;
}
.chat-suggestion {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-soft);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font-size: 0.76rem;
  cursor: pointer;
}
.chat-suggestion:hover { border-color: var(--accent); color: var(--accent); }

.chat-input-row {
  display: flex;
  gap: 0.6rem;
  padding: 0.85rem 1.15rem;
  border-top: 1px solid var(--border);
}
.chat-input-row input {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.65rem 1rem;
  color: var(--text);
  font-size: 0.88rem;
  font-family: inherit;
}
.chat-input-row input:focus { outline: none; border-color: var(--accent); }
.chat-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--accent-grad);
  color: #ffffff;
  font-size: 1rem;
  cursor: pointer;
  flex-shrink: 0;
}
.chat-send:disabled { opacity: 0.5; cursor: default; }

@media (max-width: 480px) {
  .chat-launcher-label { display: none; }
  .chat-widget { right: 1rem; bottom: 1rem; }
}
