/* TheRevew — marketing design system */
/* Fonts loaded via <link rel="stylesheet"> in HTML (see build_landing_i18n.py). */

:root {
  --bg: #080b10;
  --bg-subtle: #0c1018;
  --surface: #111827;
  --surface-raised: #1a2332;
  --surface-hover: #1f2937;
  --border: rgba(148, 163, 184, 0.12);
  --border-strong: rgba(148, 163, 184, 0.22);
  --text: #f1f5f9;
  --text-secondary: #cbd5e1;
  --muted: #94a3b8;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-muted: rgba(59, 130, 246, 0.12);
  --ok: #34d399;
  --ok-muted: rgba(52, 211, 153, 0.12);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.45);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-brand: 'MuseoModerno', var(--font);
  --max: 1080px;
  --max-narrow: 720px;
  --header-h: 4rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 5.5rem;
  --transition: 0.18s ease;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 1rem;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

main { flex: 1; }

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

img, svg { display: block; max-width: 100%; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.wrap-narrow { max-width: var(--max-narrow); }

/* ── Layout utilities ── */
.centered { text-align: center; }
.centered .lead { margin-left: auto; margin-right: auto; }

.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
  justify-content: center;
}

.page-actions--start { justify-content: flex-start; }

.page-card.centered .page-actions { justify-content: center; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  background: rgba(8, 11, 16, 0.82);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}

#site-header {
  min-height: var(--header-h);
}

.site-header .inner {
  max-width: none;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-md);
}

.site-header .nav-brand {
  justify-self: start;
}

.site-header .nav-toggle {
  justify-self: end;
  grid-column: 3;
}

.logo {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  line-height: 1.2;
}

.site-header .logo {
  font-family: var(--font-brand);
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.logo:hover {
  color: var(--text);
  text-decoration: none;
}

.logo span {
  color: var(--accent);
}

.logo img,
.logo-img {
  display: block;
  width: auto;
  height: 34px;
  line-height: 0;
}

.footer-brand .logo img,
.footer-brand .logo-img {
  height: 30px;
}

/* Use logo-on-white.png only on light surfaces (e.g. emails, PDFs) */
.logo-img--on-white {
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  background: #fff;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
}
.nav-toggle svg { width: 1.25rem; height: 1.25rem; }

@media (min-width: 861px) {
  .site-header .nav-shell {
    display: contents;
  }

  .site-header .nav-center {
    grid-column: 2;
    justify-self: center;
  }

  .site-header .nav-account-icon {
    grid-column: 3;
    justify-self: end;
  }

  .site-header .nav-toggle {
    display: none;
  }
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 0.125rem;
}

.nav-center a,
.nav-center .nav-link {
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
}

.nav-center a:hover {
  color: var(--text);
  background: var(--surface);
  text-decoration: none;
}

.nav-center a.active {
  color: var(--text);
  background: var(--surface);
}

.nav-account-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.nav-account-icon:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface-raised);
  text-decoration: none;
}

.nav-account-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.lang-select {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.55rem;
  font-size: 0.8125rem;
  font-family: inherit;
  cursor: pointer;
  transition: border-color var(--transition);
}
.lang-select:hover { border-color: var(--border-strong); }

@media (max-width: 860px) {
  .site-header .inner {
    grid-template-columns: 1fr auto;
  }

  .site-header .nav-toggle {
    display: flex;
    grid-column: 2;
    justify-self: end;
  }

  .site-header .nav-shell {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h);
    grid-column: 1 / -1;
    justify-self: stretch;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-md);
    padding: var(--space-md) clamp(1rem, 4vw, 2.5rem) var(--space-lg);
    background: rgba(8, 11, 16, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.22s ease, opacity 0.22s ease;
  }

  .site-header.is-open .nav-shell {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-center {
    flex-direction: column;
    align-items: stretch;
    gap: 0.125rem;
  }

  .nav-center a { padding: 0.65rem 0.75rem; }

  .nav-account-icon {
    align-self: flex-start;
  }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.625rem 1.125rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  font-family: inherit;
  line-height: 1.4;
  cursor: pointer;
  border: none;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover {
  background: var(--surface-hover);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
}

.btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

.btn-group { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

/* ── Typography & sections ── */
.section {
  padding: var(--space-2xl) 0;
}

.section-sm { padding: var(--space-xl) 0; }

.section-header {
  margin-bottom: var(--space-xl);
  max-width: 36rem;
}

.section-header.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-eyebrow {
  display: inline-block;
  margin: 0 0 var(--space-sm);
  padding: 0.25rem 0.625rem;
  background: var(--accent-muted);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
}

.section-title {
  margin: 0 0 var(--space-sm);
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--text);
}

.section-sub {
  margin: 0;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  color: var(--text);
  line-height: 1.25;
}

h3 {
  margin: 0 0 0.375rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

p { margin: 0 0 var(--space-md); }
p:last-child { margin-bottom: 0; }

/* ── Page hero (inner pages) ── */
.page-hero {
  padding: var(--space-2xl) 0 var(--space-lg);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-subtle) 0%, var(--bg) 100%);
}

.page-hero--compact {
  padding: var(--space-xl) 0 var(--space-md);
}

.page-hero--bar .wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.page-hero-copy {
  flex: 1 1 16rem;
  min-width: 0;
}

.page-hero-actions {
  flex-shrink: 0;
}

.page-hero h1 {
  margin: 0 0 var(--space-sm);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.page-hero .lead {
  margin: 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.page-body {
  padding: var(--space-2xl) 0;
}

.page-body--flush-top {
  padding-top: var(--space-lg);
}

.page-body--compact-top {
  padding-top: var(--space-md);
}

@media (max-width: 640px) {
  .page-hero--bar .wrap {
    flex-direction: column;
    align-items: stretch;
  }

  .page-hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── Home hero ── */
.hero {
  position: relative;
  padding: clamp(3rem, 6vw, var(--space-3xl)) 0 var(--space-2xl);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(59, 130, 246, 0.14) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 90% 20%, rgba(52, 211, 153, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 400px);
  grid-template-rows: auto auto;
  column-gap: clamp(2rem, 4vw, 3.25rem);
  row-gap: var(--space-xl);
  align-items: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.hero .lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.hero-copy {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.hero-eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-leads {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 34rem;
}

.hero-lead-secondary {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.hero-actions {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

.hero-cta {
  margin: 0;
}

.home-cta-section {
  padding-top: 0;
  padding-bottom: var(--space-2xl);
}

.home-cta-section .home-action-panel {
  margin: 0;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  margin: 0;
}

.trust-pill {
  flex: 1 1 0;
  min-width: 0;
  padding: var(--space-md) var(--space-sm);
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.trust-pill strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.2;
}

.trust-pill span {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.3;
}

.home-action-panel {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
  margin-bottom: var(--space-md);
}

.home-action-col {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
}

.home-action-col .btn {
  margin-top: auto;
  width: 100%;
  justify-content: center;
}

.home-action-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.home-action-divider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
}

.home-action-col .text-muted {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
}

.hero-examples-link {
  margin: 0;
  font-size: 0.9375rem;
}

.hero-examples-link a {
  color: var(--text-secondary);
  font-weight: 500;
}

.hero-examples-link a:hover {
  color: var(--accent);
}

@media (max-width: 640px) {
  .trust-pill strong {
    font-size: 1.0625rem;
  }

  .home-action-panel {
    grid-template-columns: 1fr;
  }

  .home-action-divider {
    width: auto;
    height: 1px;
  }
}

.home-page .section-compact .wrap,
.home-page .hero .wrap {
  width: 100%;
  max-width: var(--max);
}

.section-compact { padding: var(--space-2xl) 0; }
.section-compact .section-header { margin-bottom: var(--space-lg); }
.section-cta-final { padding-bottom: var(--space-3xl); }
.home-final-cta { padding-bottom: var(--space-3xl); }
.home-final-cta .cta-banner { margin: 0; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn:focus-visible {
  box-shadow: 0 0 0 3px var(--accent-muted);
}

.section-link {
  margin: var(--space-lg) 0 0;
  text-align: center;
  font-size: 0.9375rem;
}

.section-link a {
  color: var(--text-secondary);
  font-weight: 500;
  text-decoration: none;
}

.section-link a:hover { color: var(--accent); }

.hero-proof-line {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.hero-proof-line--cta {
  margin-top: var(--space-sm);
}

.hero-live-demo {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  width: 100%;
}

.hero-demo-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.hero-demo-card:has(.hero-preview.is-searching),
.hero-demo-card:has(.hero-preview.is-sourcing) {
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(59, 130, 246, 0.15), 0 0 32px rgba(59, 130, 246, 0.12);
}

.hero-demo-toolbar {
  display: flex;
  justify-content: center;
  padding: 0.625rem 1rem;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
}

.hero-demo-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
  padding: 0.1875rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.hero-demo-switch button {
  min-width: 7.25rem;
  padding: 0.4375rem 1rem;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--muted);
  background: transparent;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}

.hero-demo-switch button:hover {
  color: var(--text-secondary);
}

.hero-demo-switch button.active {
  color: var(--text);
  background: var(--surface-raised);
  box-shadow: var(--shadow-sm);
}

.hero-demo-panel {
  position: relative;
  height: 14.25rem;
}

.hero-preview {
  position: absolute;
  inset: 0;
  padding: var(--space-md);
  overflow: hidden;
}

.hero-json-panel {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-json-panel pre {
  margin: 0;
  height: 100%;
  padding: 0.875rem 1rem;
  box-sizing: border-box;
  font-size: 0.8125rem;
  line-height: 1.55;
  overflow: auto;
  background: #0a0f18;
  color: #93c5fd;
}

.hero-preview-stage {
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
}

.hero-preview-stage--input {
  position: absolute;
  inset: var(--space-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-sm);
}

.hero-preview.is-typing .hero-preview-stage--input,
.hero-preview.is-searching .hero-preview-stage--input {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.hero-preview-product {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}

.hero-preview-asin-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.625rem 0.875rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: ui-monospace, monospace;
  font-size: 0.8125rem;
}

.hero-preview-asin-prefix {
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-preview-asin {
  color: #93c5fd;
  min-width: 0;
}

.hero-preview-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--accent);
  animation: hero-cursor-blink 1s step-end infinite;
}

@keyframes hero-cursor-blink {
  50% { opacity: 0; }
}

.hero-preview-stage--progress {
  position: absolute;
  left: var(--space-md);
  right: var(--space-md);
  bottom: var(--space-md);
}

.hero-preview.is-searching .hero-preview-stage--progress {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.hero-preview-progress-track {
  height: 4px;
  background: var(--bg-subtle);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: var(--space-xs);
}

.hero-preview-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #60a5fa);
  border-radius: 999px;
  transition: width 1s ease;
}

.hero-preview-status {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.hero-preview-stage--sources {
  position: absolute;
  left: var(--space-md);
  right: var(--space-md);
  bottom: var(--space-md);
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.hero-preview.is-sourcing .hero-preview-stage--sources {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.hero-source-chip {
  padding: 0.25rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-muted);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 999px;
  animation: hero-chip-in 0.4s ease backwards;
}

.hero-source-chip:nth-child(2) { animation-delay: 0.15s; }
.hero-source-chip:nth-child(3) { animation-delay: 0.3s; }

@keyframes hero-chip-in {
  from { opacity: 0; transform: scale(0.9); }
}

.hero-preview-stage--review {
  position: absolute;
  inset: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.hero-preview.is-revealing .hero-preview-stage--review,
.hero-preview.is-done .hero-preview-stage--review {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.hero-preview.is-revealing .hero-preview-stage--input,
.hero-preview.is-revealing .hero-preview-stage--progress,
.hero-preview.is-revealing .hero-preview-stage--sources,
.hero-preview.is-done .hero-preview-stage--input,
.hero-preview.is-done .hero-preview-stage--progress,
.hero-preview.is-done .hero-preview-stage--sources {
  opacity: 0;
  visibility: hidden;
}

.hero-preview-score-row {
  display: flex;
  align-items: baseline;
  gap: 0.125rem;
}

.hero-preview-score {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ok);
  line-height: 1;
}

.hero-preview-score-max {
  font-size: 0.9375rem;
  color: var(--muted);
  font-weight: 500;
}

.hero-preview-verdict {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.45;
}

.hero-preview-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.hero-preview-pros li {
  padding-left: 1rem;
  position: relative;
  color: var(--text-secondary);
  opacity: 0;
  transform: translateY(4px);
}

.hero-preview-pros li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--ok);
  font-weight: 700;
}

.hero-preview-cons li {
  padding-left: 1rem;
  position: relative;
  color: var(--muted);
  opacity: 0;
  transform: translateY(4px);
}

.hero-preview-cons li::before {
  content: "−";
  position: absolute;
  left: 0;
  color: #f87171;
  font-weight: 700;
}

.hero-preview.is-revealing .hero-preview-pros li,
.hero-preview.is-done .hero-preview-pros li,
.hero-preview.is-revealing .hero-preview-cons li,
.hero-preview.is-done .hero-preview-cons li {
  animation: hero-item-in 0.45s ease forwards;
}

.hero-preview-pros li:nth-child(1) { animation-delay: 0.2s; }
.hero-preview-pros li:nth-child(2) { animation-delay: 0.35s; }
.hero-preview-cons li { animation-delay: 0.5s; }

@keyframes hero-item-in {
  to { opacity: 1; transform: none; }
}

.hero-preview.is-done .hero-preview-pros li,
.hero-preview.is-done .hero-preview-cons li {
  opacity: 1;
  transform: none;
}

.hero-preview-badge {
  margin-top: auto;
  align-self: flex-start;
  padding: 0.25rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ok);
  background: var(--ok-muted);
  border-radius: 999px;
  opacity: 0;
}

.hero-preview.is-revealing .hero-preview-badge,
.hero-preview.is-done .hero-preview-badge {
  animation: hero-item-in 0.45s ease 0.65s forwards;
}

.hero-preview.is-done .hero-preview-badge {
  opacity: 1;
}

.hero-replay-icon {
  position: absolute;
  top: 0.625rem;
  right: 0.625rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.625rem;
  height: 1.625rem;
  padding: 0;
  color: var(--muted);
  background: rgba(8, 11, 16, 0.65);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.hero-replay-icon:hover {
  color: var(--text-secondary);
  border-color: var(--border-strong);
  background: rgba(8, 11, 16, 0.85);
}

@media (max-width: 520px) {
  .hero-demo-switch {
    width: 100%;
  }

  .hero-demo-switch button {
    flex: 1;
    min-width: 0;
    padding-inline: 0.625rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-preview-stage,
  .hero-preview-pros li,
  .hero-preview-cons li,
  .hero-preview-badge,
  .hero-source-chip {
    animation: none !important;
    transition: none !important;
  }

  .hero-preview-cursor {
    animation: none;
  }
}

/* ── Home: why / use cases ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.why-card {
  padding: var(--space-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.why-card h3 {
  margin: 0 0 var(--space-xs);
  font-size: 1rem;
  font-weight: 600;
}

.why-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.55;
}

.use-cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.use-case-card {
  padding: var(--space-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.use-case-card h3 {
  margin: 0 0 var(--space-sm);
  font-size: 1rem;
  font-weight: 600;
}

.use-case-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.55;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.section-actions a:not(.btn) {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9375rem;
}

.section-actions a:not(.btn):hover {
  color: var(--accent);
}

.section-actions--center {
  justify-content: center;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.cta-banner--stack {
  flex-direction: column;
  align-items: flex-start;
}

.cta-banner-actions {
  width: 100%;
  justify-content: flex-start;
}

.example-pros {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  color: var(--muted);
}

.example-pros li {
  padding-left: 0.875rem;
  position: relative;
}

.example-pros li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--ok);
  font-weight: 700;
}

@media (max-width: 900px) {
  .why-grid { grid-template-columns: 1fr; }
  .use-cases { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    row-gap: var(--space-lg);
  }

  .hero-live-demo {
    grid-column: 1;
    grid-row: 1;
    max-width: 24rem;
    justify-self: center;
    width: 100%;
  }

  .hero-copy {
    grid-row: 2;
    text-align: center;
    align-items: center;
  }

  .hero-leads {
    align-items: center;
  }

  .hero-actions {
    grid-row: 3;
    align-items: stretch;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-examples-link {
    text-align: center;
  }
}

@media (max-width: 520px) {
  .trust-strip {
    grid-template-columns: 1fr;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── Stats bar ── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stat-item {
  padding: var(--space-lg) var(--space-md);
  background: var(--surface);
  text-align: center;
}

.stat-item strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.stat-item span {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

@media (max-width: 600px) {
  .stat-grid { grid-template-columns: 1fr; }
}

/* ── Cards ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-lg);
  transition: border-color var(--transition), background var(--transition);
}

.card:hover {
  border-color: var(--border-strong);
  background: var(--surface-raised);
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: var(--space-md);
  background: var(--accent-muted);
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.panel-compact { padding: var(--space-lg); }

.card-grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 800px) {
  .card-grid,
  .card-grid-2 { grid-template-columns: 1fr; }
}

/* ── Step cards (numbered) ── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

.step-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-lg);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: var(--space-md);
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.8125rem;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* ── Showcase ── */
.showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.showcase-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.showcase-card strong {
  font-size: 0.9375rem;
  color: var(--text);
}

.showcase-card .score {
  color: var(--ok);
  font-weight: 700;
  font-size: 1.125rem;
}

.showcase-card .tagline {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.showcase-card .detail {
  margin-top: auto;
  padding-top: var(--space-sm);
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

@media (max-width: 800px) {
  .showcase { grid-template-columns: 1fr; }
}

/* ── Demo ── */
.demo-panel {
  padding: var(--space-xl);
}

.demo-section {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.demo-controls {
  margin-bottom: var(--space-lg);
}

.demo-output-block {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

.demo-output {
  margin-top: var(--space-md);
}

.demo-output.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  align-items: stretch;
}

.demo-output.row > .demo-panel {
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
}

.demo-output h3 {
  margin: 0 0 var(--space-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  flex-shrink: 0;
}

.demo-output .demo-panel-body {
  flex: 1;
  min-height: 420px;
  height: 420px;
  max-height: 420px;
  overflow: auto;
  margin: 0;
}

.tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.25rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
}

.tabs button {
  background: transparent;
  color: var(--muted);
  border: none;
  padding: 0.5rem 0.875rem;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}

.tabs button:hover { color: var(--text-secondary); }
.tabs button.active {
  background: var(--surface-raised);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin: var(--space-sm) 0 var(--space-md);
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-family: inherit;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}

.chip:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

/* ── Forms ── */
.field { margin-bottom: var(--space-md); }

label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
}

input, select, textarea {
  width: 100%;
  padding: 0.6875rem 0.875rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-subtle);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9375rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-muted);
}

input[type="checkbox"] {
  width: auto;
  accent-color: var(--accent);
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

@media (max-width: 700px) { .row { grid-template-columns: 1fr; } }

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin: var(--space-md) 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.checkbox-field input { margin-top: 0.2rem; }

pre.code {
  background: #0a0f18;
  border: 1px solid var(--border);
  padding: var(--space-md);
  border-radius: var(--radius-sm);
  overflow-x: auto;
  overflow-y: auto;
  max-width: 100%;
  font-size: 0.8125rem;
  line-height: 1.55;
  margin: 0;
  color: #93c5fd;
  white-space: pre-wrap;
  word-break: break-word;
}

.code-block {
  margin-top: var(--space-md);
  max-height: none;
}

.demo-output pre.code.demo-panel-body {
  box-sizing: border-box;
}

.demo-html-note {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--muted);
}

.preview-box {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  background: var(--surface);
  color: var(--text);
  font-size: 0.9375rem;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: auto;
}

/* Narrow preview: force single-column layout inside exported review HTML */
.preview-box .therevew-review .review-hero,
.preview-box .therevew-review .hero-headline,
.preview-box .therevew-comparison .comparison-header {
  flex-direction: column !important;
  align-items: center !important;
}

.preview-box .therevew-review .review-hero-copy {
  text-align: center !important;
}

.preview-box .therevew-review .hero-headline {
  gap: 0.75rem !important;
}

.preview-box .therevew-review .product-score-ring {
  width: 4rem !important;
  height: 4rem !important;
}

.preview-box .therevew-review .pros-cons,
.preview-box .therevew-review .scores-grid {
  grid-template-columns: 1fr !important;
}

.preview-box .therevew-review .review-hero-media,
.preview-box .therevew-review .product-image {
  max-width: 100%;
  height: auto;
}

/* Exported review HTML ships its own <style>; panel only sets the frame */
.preview-box .therevew-review,
.preview-box .therevew-comparison {
  font-size: 0.875rem;
}

.demo-status {
  margin-top: var(--space-md);
}

.demo-status-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 1.25rem;
}

.demo-status-spinner {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  border: 2px solid var(--border-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: demo-spin 0.75s linear infinite;
}

@keyframes demo-spin {
  to { transform: rotate(360deg); }
}

.demo-progress {
  margin-top: 0.5rem;
  height: 4px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}

.demo-progress-bar {
  height: 100%;
  width: 35%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #059669);
  animation: demo-progress-slide 1.4s ease-in-out infinite;
}

@keyframes demo-progress-slide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

.demo-output-block.is-loading .demo-panel-body {
  opacity: 0.72;
}

.demo-preview-loading {
  display: grid;
  gap: 0.65rem;
  padding: 0.25rem 0;
}

.demo-preview-loading-bar {
  height: 0.75rem;
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    var(--surface-raised) 0%,
    var(--border-strong) 50%,
    var(--surface-raised) 100%
  );
  background-size: 200% 100%;
  animation: demo-shimmer 1.2s ease-in-out infinite;
}

.demo-preview-loading-bar--short {
  width: 62%;
}

@keyframes demo-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.status {
  color: var(--muted);
  font-size: 0.875rem;
}

/* ── CTA banner ── */
.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-raised) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
}

.cta-banner .section-title { margin-bottom: 0.375rem; }
.cta-banner p { margin: 0; color: var(--muted); font-size: 1rem; }

@media (max-width: 640px) {
  .cta-banner { flex-direction: column; align-items: flex-start; }
}

/* ── Pricing ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  align-items: stretch;
}

.price-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: border-color var(--transition), transform var(--transition);
}

.price-card:hover { border-color: var(--border-strong); }

.price-card.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.06) 0%, var(--surface) 40%);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow);
}

.price-badge {
  display: inline-block;
  margin-bottom: 0.25rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.price-card h3 {
  margin: 0;
  font-size: 1.125rem;
}

.price-card .amt {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.price-card .amt span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
}

.price-card ul,
.price-card .price-features {
  margin: var(--space-sm) 0 var(--space-md);
  padding-left: 1.125rem;
  color: var(--muted);
  font-size: 0.875rem;
  flex: 1;
  line-height: 1.45;
}

.price-card ul li,
.price-card .price-features li { margin: 0.35rem 0; }

.price-card.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-muted);
}

.pricing-chooser.is-dimmed {
  opacity: 0.45;
  pointer-events: none;
  transition: opacity var(--transition);
}

.price-card .btn { margin-top: auto; }

.pricing-note {
  margin-top: var(--space-lg);
  color: var(--muted);
  font-size: 0.9375rem;
}

@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }

/* ── Example reviews ── */
.examples-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  align-items: stretch;
}

.example-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-lg);
}

.example-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
}

.example-score {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ok);
}

.example-score span {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
}

.example-verdict {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.example-snippet {
  margin: 0;
  margin-top: auto;
  padding-top: var(--space-sm);
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .examples-grid { grid-template-columns: 1fr; }
}

/* ── Checkout (pricing) ── */
.checkout-panel {
  margin-top: var(--space-2xl);
  padding: var(--space-xl);
}

.checkout-panel.is-paying {
  padding: var(--space-lg);
  background: var(--bg-subtle);
}

.checkout-status {
  margin: 0 0 var(--space-md);
  min-height: 1.25rem;
  font-size: 0.875rem;
  color: var(--muted);
  text-align: center;
}

.checkout-status.is-error {
  color: #f87171;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: var(--space-lg);
  align-items: stretch;
  max-width: 64rem;
  margin: 0 auto;
}

.checkout-summary {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.checkout-summary-eyebrow {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.checkout-plan-switch-label {
  margin: var(--space-sm) 0 0.25rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.checkout-plan-switch {
  width: 100%;
  margin-bottom: var(--space-sm);
  font-size: 0.8125rem;
  padding: 0.5rem 0.65rem;
  background: var(--bg-subtle);
}

.checkout-summary-features {
  margin: 0 0 var(--space-sm);
  padding-left: 1.1rem;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.45;
}

.checkout-summary-features li {
  margin-bottom: 0.3rem;
}

.checkout-summary-terms {
  margin: var(--space-sm) 0 0;
  color: var(--muted);
}

.checkout-summary-terms a {
  color: var(--text-secondary);
}

.checkout-summary-price {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
}

.checkout-summary-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
}

.checkout-summary-feat {
  margin: 0 0 var(--space-sm);
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.45;
}

.checkout-stripe-loading {
  padding: var(--space-xl);
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
}

.checkout-summary-secure {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.checkout-summary .btn-sm {
  margin-top: auto;
  align-self: flex-start;
}

.checkout-stripe {
  background: #111827;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 32rem;
  box-shadow: var(--shadow);
}

#checkout-mount {
  min-height: 0;
  margin: 0;
  padding: 0;
}

#checkout-mount.is-active {
  min-height: 32rem;
  width: 100%;
}

@media (max-width: 860px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .checkout-stripe {
    min-height: 28rem;
  }

  #checkout-mount.is-active {
    min-height: 28rem;
  }
}

/* ── FAQ ── */
.faq-panel,
.faq-list {
  max-width: 40rem;
  margin: 0 auto;
}

.faq-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-sm);
}

.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0;
  margin-bottom: var(--space-xs);
  background: var(--surface);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq details[open] { border-color: var(--border-strong); }

.faq summary {
  padding: var(--space-md) var(--space-lg);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
  list-style: none;
  transition: background var(--transition);
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  float: right;
  color: var(--muted);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1;
}

.faq details[open] summary::after { content: '−'; }

.faq summary:hover { background: var(--surface-raised); }

.faq details p {
  margin: 0;
  padding: 0 var(--space-lg) var(--space-md);
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* ── Content pages ── */
.content-blocks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

@media (max-width: 700px) {
  .content-blocks { grid-template-columns: 1fr; }
}

.content-block h2 {
  margin: 0 0 var(--space-md);
  font-size: 1.125rem;
}

.content-list,
.steps-list {
  margin: 0;
  padding-left: 1.125rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.content-list li,
.steps-list li { margin: 0.375rem 0; }

.steps-list { list-style: decimal; padding-left: 1.25rem; }

/* ── Footer ── */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: var(--space-2xl) 0 var(--space-xl);
  color: var(--muted);
  font-size: 0.875rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-xl);
}

.footer-brand p {
  margin: var(--space-md) 0 0;
  max-width: 18rem;
  line-height: 1.6;
}

.footer-col strong {
  display: block;
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-col a {
  display: block;
  padding: 0.25rem 0;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--text); text-decoration: none; }

.footer-bottom {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8125rem;
}

.footer-bottom-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.footer-lang {
  display: flex;
  align-items: center;
  margin: 0;
  cursor: pointer;
}

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
}

/* ── Legal / prose ── */
.prose {
  max-width: var(--max-narrow);
  line-height: 1.75;
}

.prose h1 {
  margin: 0 0 var(--space-md);
  font-size: clamp(1.75rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.prose h2 {
  margin: var(--space-xl) 0 var(--space-sm);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
}

.prose p, .prose li {
  color: var(--muted);
  font-size: 0.9375rem;
}

.prose li { margin: 0.375rem 0; }
.prose ul { padding-left: 1.25rem; }
.prose code {
  padding: 0.15em 0.4em;
  background: var(--surface);
  border-radius: 4px;
  font-size: 0.875em;
  color: var(--text-secondary);
}

.prose-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

/* ── Feature list (how-it-works, integrations) ── */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin: var(--space-md) 0 var(--space-lg);
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.feature-list li::before {
  content: '→';
  flex-shrink: 0;
  color: var(--accent);
  font-weight: 600;
}

/* ── Account / success pages ── */
.page-card {
  max-width: var(--max-narrow);
  margin: 0 auto;
}

.page-card h1 {
  margin: 0 0 var(--space-sm);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.page-card .page-actions { margin-top: var(--space-lg); }

.text-muted { color: var(--muted); }
.text-sm { font-size: 0.875rem; }

.hidden { display: none !important; }

/* ── Conversion funnel ── */
.funnel-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-raised) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
}

.funnel-cta .section-title { margin: 0 0 var(--space-xs); }

.home-page .faq-panel {
  max-width: none;
  width: 100%;
  margin: 0;
}

.try-page-intro {
  padding: var(--space-xl) 0 var(--space-md);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-subtle) 0%, var(--bg) 100%);
}

.try-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.try-page-head h1 {
  margin: 0;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  flex: 1 1 auto;
  min-width: 12rem;
}

.try-page-head .btn {
  flex-shrink: 0;
}

.demo-section {
  padding-top: var(--space-xl);
}

html.dash-autoconnect #dash-connect { display: none !important; }

html.dash-pending main.dashboard-page { visibility: hidden; }

html.dash-ready main.dashboard-page { visibility: visible; }

@media (max-width: 700px) {
  .dashboard-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ── Customer dashboard ── */
.dashboard-page .page-body {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-2xl);
}

.dashboard-page .page-card {
  max-width: var(--max-narrow);
  margin: 0 auto;
}

.dash-login-wrap {
  max-width: var(--max-narrow);
  margin: 0 auto;
}

.dash-connect-card {
  margin: 0;
}

.dash-connect-card h1 {
  margin: 0 0 var(--space-xs);
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.dash-connect-lead {
  margin: 0 0 var(--space-lg);
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.dash-connect-card .field {
  margin-bottom: var(--space-md);
}

.dash-connect-card .checkbox-field {
  margin-bottom: var(--space-md);
}

.dash-connect-card .btn-primary {
  width: 100%;
  justify-content: center;
}

.dash-connect-help {
  margin: var(--space-md) 0 0;
}

.dash-connect-promo {
  margin-top: var(--space-lg);
  text-align: center;
}

.dash-connect-promo p {
  margin: 0 0 var(--space-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.dash-connect-promo .btn {
  min-width: 14rem;
  justify-content: center;
}

.dashboard-page #dash-app {
  width: 100%;
  max-width: 100%;
}

.dashboard-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.dashboard-top h1 { margin: 0; font-size: 1.5rem; }

.dashboard-tabs {
  margin: var(--space-lg) 0;
  border-bottom: 1px solid var(--border);
}

.dashboard-tabs button {
  padding: var(--space-sm) var(--space-md);
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.dashboard-tabs button.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.dashboard-panel { padding: var(--space-md) 0 var(--space-xl); }

.quota-bar-wrap { margin-bottom: var(--space-lg); }

.quota-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: var(--space-xs);
}

.quota-bar {
  height: 8px;
  background: var(--surface);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.quota-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--ok));
  border-radius: 999px;
  transition: width 0.35s ease;
}

.dash-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

@media (max-width: 720px) {
  .dash-stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .demo-output.row {
    grid-template-columns: 1fr;
  }
}

/* ── Mobile polish (≤768px) ── */
@media (max-width: 768px) {
  .wrap {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }

  .panel {
    padding: var(--space-lg);
  }

  .tabs button,
  .nav-center a,
  .nav-toggle {
    min-height: 44px;
  }

  .nav-account-icon {
    width: 2.75rem;
    height: 2.75rem;
  }

  .demo-output.row {
    grid-template-columns: 1fr;
  }

  .demo-output .demo-panel-body {
    min-height: 260px;
    height: 260px;
    max-height: 260px;
  }

  .demo-panel-head {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .demo-panel-head .btn-sm {
    min-height: 40px;
  }

  .try-page-head {
    flex-direction: column;
    align-items: stretch;
  }

  .try-page-head .btn {
    width: 100%;
    justify-content: center;
  }

  .try-page-head h1 {
    min-width: 0;
  }

  .footer-bottom-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-lang .lang-select {
    width: 100%;
    min-height: 44px;
  }
}

@media (max-width: 380px) {
  .trust-strip {
    gap: 0.35rem;
  }

  .trust-pill {
    padding: var(--space-sm) 0.3rem;
  }

  .trust-pill strong {
    font-size: 0.9375rem;
  }

  .trust-pill span {
    font-size: 0.5625rem;
    letter-spacing: 0.03em;
  }
}

.demo-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.demo-panel-head h3 {
  margin: 0;
}

.dash-stat {
  padding: var(--space-md);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.dash-stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-xs);
}

.dash-stat-value {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
}

.feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.feature-chips .chip {
  padding: 0.25rem 0.65rem;
  font-size: 0.8125rem;
  background: var(--accent-muted);
  color: var(--accent);
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin: var(--space-md) 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.checkbox-field input { accent-color: var(--accent); }

.status.is-error { color: #f87171; }
