:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #eef2f8;
  --input-bg: #ffffff;
  --border: #d9e2ef;
  --border-soft: rgba(30, 58, 95, 0.08);
  --text: #1a2b42;
  --muted: #5b6f86;
  --muted-dim: #8b9cb0;
  --accent: #4f6df5;
  --accent-hover: #3f5ce0;
  --accent-soft: rgba(79, 109, 245, 0.1);
  --accent-border: rgba(79, 109, 245, 0.28);
  --accent-text: #3f5ce0;
  --danger: #dc2626;
  --success: #059669;
  --shadow: 0 18px 48px rgba(30, 58, 95, 0.1);
  --font-sans: "Inter", system-ui, sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --radius-card: 1.25rem;
  --radius-pill: 999px;
  --header-h: 72px;
  --scroll-offset: calc(var(--header-h) + 1.25rem);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 180ms;
  --duration-med: 320ms;
  --duration-slow: 560ms;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--scroll-offset);
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--accent) 55%, #94a3b8) color-mix(in srgb, var(--surface-2) 80%, transparent);
}

html::-webkit-scrollbar {
  width: 12px;
}

html::-webkit-scrollbar-track {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 50%, #edf1f7 100%);
  border-left: 1px solid var(--border-soft);
}

html::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 70%, #93c5fd), var(--accent-hover));
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: padding-box;
  min-height: 48px;
}

html::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--accent), var(--accent-hover));
  background-clip: padding-box;
  border: 3px solid transparent;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  line-height: 1.55;
  color: var(--text);
  min-height: 100vh;
  color-scheme: light;
  background:
    radial-gradient(circle at 8% 0%, rgba(79, 109, 245, 0.12), transparent 32%),
    radial-gradient(circle at 92% 12%, rgba(14, 165, 233, 0.1), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(79, 109, 245, 0.06), transparent 40%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 60%, #edf1f7 100%);
  background-attachment: fixed;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 0;
  filter: blur(90px);
  opacity: 0.55;
}

body::before {
  top: 2rem;
  left: -5rem;
  width: 22rem;
  height: 22rem;
  background: radial-gradient(circle, rgba(79, 109, 245, 0.18) 0%, transparent 72%);
}

.site-page-stage {
  opacity: 1;
  transition: opacity 0.26s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-page-stage.is-exiting,
.site-page-stage.is-enter-pending {
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .site-page-stage {
    transition: none;
  }
}

body::after {
  right: -6rem;
  bottom: 5rem;
  width: 26rem;
  height: 26rem;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.14) 0%, transparent 72%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.muted {
  color: var(--muted);
}

.error {
  color: var(--danger);
  font-size: 0.875rem;
}

.success {
  color: var(--success);
  font-size: 0.875rem;
}

.accent-text {
  color: var(--accent-text);
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0 clamp(1rem, 3vw, 2rem);
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  transition:
    border-color var(--duration-med) var(--ease-out),
    box-shadow var(--duration-med) var(--ease-out),
    background var(--duration-med) var(--ease-out);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border-soft);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 30px rgba(30, 58, 95, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  justify-self: start;
  transition: opacity var(--duration-fast) ease;
}

.brand:hover {
  opacity: 0.85;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
}

.brand-mark.sm {
  width: 2rem;
  height: 2rem;
  font-size: 0.7rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
}

.brand-tagline {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.2;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  justify-self: center;
  padding: 0.3rem;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
}

.site-nav a {
  position: relative;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  transition:
    color var(--duration-fast) ease,
    background var(--duration-fast) ease,
    transform var(--duration-fast) var(--ease-out);
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.7);
}

.site-nav a.is-active {
  color: var(--accent-text);
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(30, 58, 95, 0.08);
}

.header-actions {
  display: flex;
  gap: 0.6rem;
  justify-self: end;
}

.menu-toggle {
  display: none;
  justify-self: end;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: var(--surface);
  cursor: pointer;
  transition: border-color var(--duration-fast) ease, transform var(--duration-fast) var(--ease-out);
}

.menu-toggle:hover {
  transform: scale(1.03);
}

.menu-toggle span {
  display: block;
  width: 1rem;
  height: 2px;
  margin: 0.22rem auto;
  background: var(--text);
}

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--border-soft);
}

.mobile-nav a {
  padding: 0.65rem 0.85rem;
  border-radius: 0.65rem;
  color: var(--muted);
  transition: background var(--duration-fast) ease, color var(--duration-fast) ease;
}

.mobile-nav a.is-active,
.mobile-nav a:hover {
  color: var(--accent-text);
  background: var(--accent-soft);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform var(--duration-fast) var(--ease-out),
    background var(--duration-fast) ease,
    border-color var(--duration-fast) ease,
    box-shadow var(--duration-med) ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.block {
  width: 100%;
}

.btn.lg {
  padding: 0.85rem 1.35rem;
  font-size: 0.95rem;
}

.btn.primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.btn.primary:hover {
  background: var(--accent-hover);
}

.btn.secondary {
  background: var(--accent-soft);
  color: var(--text);
  border-color: var(--accent-border);
}

.btn.ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
}

.btn.ghost:hover {
  color: var(--text);
  border-color: var(--border-soft);
}

/* Layout */

main {
  position: relative;
  z-index: 1;
}

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
}

.scroll-target {
  scroll-margin-top: var(--scroll-offset);
}

.section-head {
  max-width: 680px;
  margin-bottom: 2.5rem;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2,
.hero h1,
.cta-band h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15;
}

.section-lead,
.lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 62ch;
}

.section-head.center .section-lead {
  margin-inline: auto;
}

/* Hero */

.hero-viewport {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  min-height: 100vh;
}

.hero-viewport .hero {
  flex: 1;
  align-content: center;
  min-height: 0;
  padding-bottom: 2.25rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0.5rem;
  width: 100%;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0 2rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-stats li {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  transition:
    transform var(--duration-med) var(--ease-out),
    box-shadow var(--duration-med) ease,
    border-color var(--duration-med) ease;
}

.hero-stats li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--accent-border);
}

.hero-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--accent-text);
}

.hero-stats span {
  font-size: 0.82rem;
  color: var(--muted);
}

.chat-demo {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform var(--duration-slow) var(--ease-out), box-shadow var(--duration-slow) ease;
}

.chat-demo--live {
  display: grid;
  grid-template-rows: auto minmax(240px, min(42vh, 420px)) auto;
  min-height: 0;
  max-height: min(70vh, 560px);
}

.chat-demo:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 56px rgba(30, 58, 95, 0.14);
}

.chat-demo-head,
.chat-demo-foot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.9rem;
  font-size: 0.75rem;
  color: var(--muted-dim);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.chat-demo-foot {
  border-bottom: 0;
  border-top: 1px solid var(--border);
}

.chat-demo-head .dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--border);
}

.chat-demo-frame-wrap {
  position: relative;
  min-height: 0;
  background: var(--surface);
}

.chat-demo-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--surface);
}

.chat-demo-status {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 0.35rem;
  padding: 1.25rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  background: var(--surface-2);
  z-index: 2;
}

.chat-demo-status[hidden],
.chat-demo-status.is-hidden {
  display: none !important;
}

.chat-demo-status.is-loading-frame {
  opacity: 0.92;
}

.chat-demo-status-error {
  margin: 0;
  color: var(--danger);
  font-weight: 600;
}

.chat-demo-status-hint {
  margin: 0;
  color: var(--muted-dim);
  font-size: 0.82rem;
}

.chat-demo-status-hint a {
  color: var(--accent-text);
}

.chat-demo-body {
  display: grid;
  gap: 0.65rem;
  padding: 1rem;
  min-height: 260px;
}

.bubble {
  max-width: 85%;
  padding: 0.65rem 0.85rem;
  border-radius: 1rem;
  font-size: 0.88rem;
  opacity: 0;
  transform: translateY(10px);
  animation: bubble-in 0.55s var(--ease-out) forwards;
  animation-delay: calc(0.35s + (var(--i, 0) * 0.18s));
}

@keyframes bubble-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bubble.inbound {
  justify-self: start;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.bubble.outbound {
  justify-self: end;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
}

.bubble.typing {
  opacity: 0.7;
  font-style: italic;
  animation: pulse-typing 1.4s ease-in-out infinite;
  animation-delay: calc(1.1s + (var(--i, 0) * 0.18s));
}

@keyframes pulse-typing {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.95; }
}

.hero-viewport-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.55rem;
  z-index: 2;
  display: flex;
  justify-content: center;
  pointer-events: none;
  opacity: 1;
  transition:
    opacity var(--duration-med) ease,
    visibility var(--duration-med) ease;
}

.hero-viewport-footer.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.trust-strip {
  text-align: center;
  padding: 1rem 1.5rem;
  border-block: 1px solid var(--border-soft);
  background: var(--surface);
  width: 100%;
}

.scroll-cue {
  pointer-events: auto;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.2rem 0.55rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

.scroll-cue:hover {
  color: var(--accent-text);
}

.scroll-cue-icon {
  width: 0.95rem;
  height: 0.95rem;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  position: relative;
  animation: scroll-cue-bounce 2s var(--ease-out) infinite;
}

.scroll-cue-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.22rem;
  width: 0.28rem;
  height: 0.28rem;
  margin-left: -0.16rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

@keyframes scroll-cue-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.75; }
  50% { transform: translateY(3px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue-icon {
    animation: none;
  }
}

.trust-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

/* Features */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.feature-card {
  padding: 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  transition:
    transform var(--duration-med) var(--ease-out),
    box-shadow var(--duration-med) ease,
    border-color var(--duration-med) ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--accent-border);
}

.feature-icon {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Benefits — one full viewport */

.benefits-viewport {
  box-sizing: border-box;
  min-height: 100svh;
  min-height: 100vh;
  height: 100svh;
  height: 100vh;
  max-height: 100svh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(1.25rem, 3.5vh, 2.75rem) 1.5rem clamp(1rem, 2vh, 1.75rem);
  overflow: hidden;
}

.benefits-viewport-inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1;
  min-height: 0;
}

.benefits-viewport .section-head {
  margin-bottom: clamp(1rem, 2.4vh, 1.85rem);
}

.benefits-viewport .section-head h2 {
  font-size: clamp(1.5rem, 3.2vh, 2.25rem);
  margin-bottom: 0.5rem;
}

.benefits-viewport .section-lead {
  font-size: clamp(0.92rem, 1.75vh, 1.05rem);
}

.benefits-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 760px;
  width: 100%;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-evenly;
}

.benefits-list > li {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 0.55rem 1rem;
  padding: clamp(0.65rem, 1.8vh, 1.15rem) 0;
  border-top: 1px solid var(--border-soft);
}

.benefits-list > li:last-child {
  border-bottom: 1px solid var(--border-soft);
}

.benefits-num {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.85vh, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent-text);
  line-height: 1.35;
  padding-top: 0.05rem;
}

.benefits-copy h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 2.1vh, 1.22rem);
  line-height: 1.25;
  color: var(--text);
}

.benefits-copy p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.85rem, 1.6vh, 0.98rem);
  line-height: 1.45;
  max-width: 58ch;
}

.benefits-cta {
  display: flex;
  justify-content: center;
  margin-top: clamp(0.75rem, 2vh, 1.5rem);
}

.benefits-cta .btn.lg {
  min-height: 2.6rem;
  padding-inline: 1.25rem;
  font-size: 0.95rem;
}

/* Pricing */

.billing-toggle {
  display: inline-flex;
  margin-top: 1.5rem;
  padding: 0.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface-2);
}

.billing-option {
  padding: 0.55rem 1rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    color var(--duration-fast) ease,
    background var(--duration-med) var(--ease-out),
    border-color var(--duration-fast) ease,
    transform var(--duration-fast) var(--ease-out);
}

.billing-option:hover {
  color: var(--text);
}

.billing-option.active {
  background: var(--accent-soft);
  color: var(--text);
  border: 1px solid var(--accent-border);
  transform: scale(1.02);
}

.pill {
  display: inline-block;
  margin-left: 0.25rem;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-pill);
  background: rgba(52, 211, 153, 0.15);
  color: var(--success);
  font-size: 0.7rem;
  font-weight: 700;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  transition:
    transform var(--duration-med) var(--ease-out),
    box-shadow var(--duration-med) ease,
    border-color var(--duration-med) ease;
}

.price-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--accent-border);
}

.price-card.featured {
  border-color: var(--accent-border);
  background: linear-gradient(180deg, rgba(79, 109, 245, 0.08) 0%, var(--surface) 40%);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.price-card.featured:hover {
  transform: translateY(-8px);
}

.popular-badge {
  position: absolute;
  top: -0.65rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tier-label {
  margin: 0 0 0.25rem;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.price-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.tier-tagline {
  margin: 0.25rem 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  margin-bottom: 0.35rem;
}

.currency {
  font-size: 0.9rem;
  color: var(--muted);
}

.amount {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  transition: transform var(--duration-med) var(--ease-spring);
}

.amount.is-updating {
  transform: scale(1.06);
}

.amount.custom {
  font-size: 2rem;
}

.period {
  color: var(--muted);
  font-size: 0.95rem;
}

.price-note {
  margin: 0 0 1.25rem;
  font-size: 0.82rem;
  color: var(--muted-dim);
}

.tier-features {
  flex: 1;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.tier-features li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.35rem;
  font-size: 0.88rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border-soft);
}

.tier-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Compare table */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.compare-table th,
.compare-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.compare-table th {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-2);
}

.compare-table tr:last-child td {
  border-bottom: 0;
}

.compare-table tr.highlight {
  background: var(--accent-soft);
}

.warn {
  color: #fbbf24;
}

.good {
  color: var(--success);
  font-weight: 600;
}

/* FAQ */

.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 760px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
  overflow: hidden;
  transition: border-color var(--duration-fast) ease, box-shadow var(--duration-med) ease;
}

.faq-item[open] {
  border-color: var(--accent-border);
  box-shadow: 0 8px 24px rgba(30, 58, 95, 0.08);
}

.faq-item summary {
  padding: 1rem 1.1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  transition: color var(--duration-fast) ease;
}

.faq-item summary:hover {
  color: var(--accent-text);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 0;
  padding: 0 1.1rem 1rem;
  color: var(--muted);
  font-size: 0.92rem;
  animation: faq-open var(--duration-med) var(--ease-out);
}

@keyframes faq-open {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 1120px;
  margin: 0 auto 3rem;
  padding: 2rem 1.75rem;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, rgba(79, 109, 245, 0.1), var(--surface));
  transition: transform var(--duration-med) var(--ease-out), box-shadow var(--duration-med) ease;
}

.cta-band:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.cta-band p:last-of-type {
  margin: 0;
  color: var(--muted);
  max-width: 48ch;
}

/* Footer */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  border-top: 1px solid var(--border-soft);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand strong {
  display: block;
  font-family: var(--font-display);
}

.footer-brand p {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  margin-left: auto;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  width: 100%;
  margin: 0;
  font-size: 0.78rem;
}

/* Modal */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal:not(.hidden) .modal-backdrop {
  animation: fade-in var(--duration-med) var(--ease-out);
}

.modal:not(.hidden) .modal-card {
  animation: modal-in var(--duration-med) var(--ease-spring);
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 43, 66, 0.45);
  backdrop-filter: blur(4px);
}

.modal-card {
  position: relative;
  width: min(440px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.modal-card h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
}

.modal-sub {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--text);
  background: var(--surface-2);
}

label {
  display: block;
  margin: 0.75rem 0 0.35rem;
  font-size: 0.78rem;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-border);
}

.modal-foot {
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  text-align: center;
}

/* Scroll reveal */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .auth-gate-main,
  .site-page-stage {
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .bubble {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* Responsive */

@media (max-width: 768px) {
  .benefits-viewport {
    height: auto;
    max-height: none;
    min-height: 100svh;
    overflow: visible;
    padding: 1.5rem 1.25rem 2rem;
  }

  .benefits-list > li {
    grid-template-columns: 2.25rem 1fr;
    gap: 0.45rem 0.75rem;
    padding: 0.75rem 0;
  }

  .benefits-copy h3 {
    font-size: 1.05rem;
  }
}

@media (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-inline: auto;
  }

  .price-card.featured {
    transform: none;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }
}

@media (max-width: 768px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav,
  .header-actions {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    margin-left: 0;
  }
}
