/* RPM Pro — marketing site (premium SaaS, not template filler) */

:root {
  color-scheme: dark;
  --bg-deep: #050810;
  --bg: #0a0f1a;
  --bg-elevated: #111827;
  --surface: #151c2c;
  --surface-2: #1a2335;
  --border: rgba(148, 163, 184, 0.22);
  --border-strong: rgba(96, 165, 250, 0.35);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: rgba(37, 99, 235, 0.18);
  --glow: rgba(37, 99, 235, 0.45);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow-1: 0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 24px 64px rgba(2, 6, 23, 0.55);
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="light"] {
  color-scheme: light;
  --bg-deep: #f8fafc;
  --bg: #ffffff;
  --bg-elevated: #f1f5f9;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: rgba(15, 23, 42, 0.1);
  --border-strong: rgba(37, 99, 235, 0.35);
  --text: #0f172a;
  --muted: #475569;
  --muted-2: #64748b;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: rgba(37, 99, 235, 0.1);
  --glow: rgba(37, 99, 235, 0.25);
  --shadow-1: 0 4px 24px rgba(15, 23, 42, 0.06);
  --shadow-2: 0 20px 50px rgba(15, 23, 42, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 28px);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand__mark {
  border-radius: 10px;
  box-shadow: var(--shadow-1);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 22px);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 6px 2px;
  position: relative;
}

.site-nav a:not(.site-nav__cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.site-nav a:not(.site-nav__cta):hover {
  color: var(--text);
}

.site-nav a:not(.site-nav__cta):hover::after {
  transform: scaleX(1);
}

.site-nav__cta {
  padding: 8px 14px !important;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--text) !important;
  border: 1px solid var(--border-strong);
}

.site-nav__cta:hover {
  background: color-mix(in srgb, var(--primary) 22%, transparent);
}

.site-nav__cta::after {
  display: none !important;
}

.theme-toggle {
  margin-left: 4px;
  min-width: 64px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.theme-toggle:hover {
  border-color: var(--border-strong);
}

/* Reveal on scroll */
.js-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.js-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(48px, 10vw, 112px) 0 clamp(56px, 8vw, 96px);
  overflow: clip;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 50% -20%, var(--glow), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 40%, rgba(37, 99, 235, 0.08), transparent),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

.kicker {
  margin: 0 0 12px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.15rem, 5.5vw, 3.5rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.lede {
  margin: 0;
  max-width: 34rem;
  font-size: clamp(1.02rem, 1.9vw, 1.2rem);
  color: var(--muted);
  line-height: 1.6;
}

.cta-row {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.cta-row--center {
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.35);
}

.btn--primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 10px 32px rgba(37, 99, 235, 0.42);
}

.btn--secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn--secondary:hover {
  border-color: var(--border-strong);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn--ghost:hover {
  border-color: var(--border-strong);
  background: var(--surface);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: color-mix(in srgb, var(--primary) 55%, var(--border));
}

.btn--outline:hover {
  background: var(--primary-soft);
}

.btn--lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn--on-dark {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn--on-dark:hover {
  background: rgba(255, 255, 255, 0.08);
}

.hero__facts {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 32rem;
}

.hero__facts li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

.hero__dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 0.45em;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.hero__visual {
  position: relative;
}

.hero__frame {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
  box-shadow: var(--shadow-2);
}

.hero__frame img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero__caption {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 4px;
}

.hero__caption-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.hero__caption-text {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

.hero__frame--app img {
  aspect-ratio: auto;
  max-height: min(72vh, 620px);
  width: 100%;
  object-fit: contain;
  object-position: center top;
  background: linear-gradient(180deg, #f1f5f9 0%, #f8fafc 100%);
  border-radius: var(--radius-lg);
}

[data-theme="light"] .hero__frame--app img {
  background: linear-gradient(180deg, #e2e8f0 0%, #f8fafc 100%);
}

.problem-prose {
  margin-top: 20px;
}

.problem-prose p {
  margin: 0 0 12px;
  font-size: clamp(1.02rem, 2.2vw, 1.15rem);
  color: var(--muted);
  line-height: 1.55;
  font-weight: 500;
}

.problem-prose p:last-child {
  margin-bottom: 0;
}

/* Sections */
.section {
  padding: clamp(64px, 9vw, 104px) 0;
}

.section--tight {
  padding-top: clamp(40px, 6vw, 72px);
}

.section--audience {
  padding-top: clamp(40px, 5vw, 64px);
  padding-bottom: clamp(40px, 5vw, 64px);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 500px) {
  .audience-grid { grid-template-columns: 1fr; }
}

.audience-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 8px;
  background: var(--surface-2, #f9fafb);
  border: 1px solid var(--border, #e5e7eb);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.audience-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.audience-card__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.audience-card__title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-1, #1f2937);
}

.section__intro {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}

.section__intro--left {
  margin-left: 0;
  text-align: left;
}

.section__eyebrow {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
}

.section__eyebrow--on-dark {
  color: rgba(147, 197, 253, 0.95);
}

.section__title {
  margin: 0 0 12px;
  font-size: clamp(1.55rem, 3.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section__lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.section--tight {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 3vw, 28px);
  align-items: stretch;
}

.panel {
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--border);
  background: var(--surface);
}

.panel--problem {
  background: linear-gradient(165deg, var(--surface) 0%, var(--surface-2) 100%);
}

.panel__title {
  margin: 0 0 16px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.checkless {
  margin: 0;
  padding: 0;
  list-style: none;
}

.checkless li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.45;
}

.checkless li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(248, 113, 113, 0.85);
}

.checkless--spaced li {
  margin-bottom: 16px;
}

.checkless--spaced li:last-child {
  margin-bottom: 0;
}

.checkless--positive li::before {
  background: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-soft);
}

.panel--solve {
  border-color: var(--border-strong);
  background: linear-gradient(145deg, color-mix(in srgb, var(--primary) 16%, var(--surface)) 0%, var(--surface) 100%);
  box-shadow: var(--shadow-1);
}

.solve__line {
  margin: 0 0 14px;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.panel__text {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.text-link {
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

[data-theme="light"] .text-link {
  color: var(--primary-hover);
}

/* Bento features */
.section--features {
  background: var(--bg);
}

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.bento__item {
  grid-column: span 2;
  position: relative;
  padding: 22px 20px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  min-height: 148px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.bento__item:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-1);
}

.bento__item--wide {
  grid-column: span 4;
}

.bento__item--tall {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 0;
}

.bento__index {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--muted-2);
  margin-bottom: 10px;
}

.bento__title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.bento__desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Hero — demo / motion hint */
.hero__demo-hint {
  margin: 14px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.text-link--inline {
  font-weight: 600;
}

/* Demo ribbon (trust path: hero → demo) */
.demo-ribbon {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(
    105deg,
    color-mix(in srgb, var(--primary) 14%, var(--surface)) 0%,
    var(--surface-2) 45%,
    var(--surface) 100%
  );
}

[data-theme="light"] .demo-ribbon {
  background: linear-gradient(
    105deg,
    color-mix(in srgb, var(--primary) 10%, var(--bg-elevated)) 0%,
    var(--bg) 100%
  );
}

.demo-ribbon__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 22px;
  padding: 12px 0;
  font-size: 0.88rem;
}

.demo-ribbon__label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.demo-ribbon__link {
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: color-mix(in srgb, var(--primary) 16%, transparent);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.12);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), border-color 0.2s;
}

.demo-ribbon__link:hover {
  background: color-mix(in srgb, var(--primary) 26%, transparent);
  transform: translateY(-1px);
}

.demo-ribbon__meta {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}

/* App screenshots */
.section--shots {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(16px, 2.5vw, 24px);
  margin-top: 10px;
}

.shot-card {
  grid-column: span 12;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 720px) {
  .shot-card {
    grid-column: span 6;
  }

  .shot-card--wide {
    grid-column: span 12;
  }
}

.shot-card__cap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 4px;
}

.shot-card__name {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.shot-card__role {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.45;
}

.shot-card__frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(165deg, #f1f5f9 0%, #f8fafc 55%, #fff 100%);
  box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  min-height: 220px;
}

[data-theme="light"] .shot-card__frame {
  background: linear-gradient(165deg, #e2e8f0 0%, #f8fafc 55%, #fff 100%);
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.shot-card__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.shot-card__frame img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.shot-card__missing {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 40px 22px;
  min-height: 260px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.shot-card__missing strong {
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 800;
}

.shot-card__missing code {
  font-size: 0.76rem;
  word-break: break-word;
  color: var(--muted-2);
}

.shot-card--missing .shot-card__frame img {
  display: none;
}

.shot-card--missing .shot-card__missing {
  display: flex !important;
}

.split-shot {
  display: grid;
  gap: clamp(22px, 4vw, 40px);
  align-items: center;
  margin-top: 12px;
}

.split-shot__copy {
  min-width: 0;
}

.split-shot__lead {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.section__title--split {
  text-align: left;
  margin-bottom: 14px;
}

.shot-card--embed {
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
}

@media (min-width: 900px) {
  .split-shot {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
  }

  .split-shot--reverse {
    grid-template-columns: minmax(280px, 400px) minmax(0, 1fr);
  }

  .split-shot .shot-card--embed,
  .split-shot--reverse .shot-card--embed {
    margin-inline: 0;
    max-width: none;
  }
}

@media (max-width: 899px) {
  .split-shot--reverse .split-shot__copy {
    order: -1;
  }
}

.section--spotlight {
  background: color-mix(in srgb, var(--bg-elevated) 65%, var(--bg-deep));
  border-top: 1px solid var(--border);
}

.shot-grid--single {
  margin-top: 12px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.section__intro--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Social proof — fleet / trust panels */
.section--social {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.social-panel {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(8px, 2vw, 20px) clamp(12px, 3vw, 28px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface) 0%, color-mix(in srgb, var(--surface) 92%, var(--bg)) 100%);
  box-shadow: var(--shadow-1);
}

.section__eyebrow--social {
  color: var(--primary);
}

.social-panel__title {
  margin: 10px 0 12px;
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.social-panel__lead {
  margin: 0 auto 28px;
  max-width: 34rem;
  font-size: 1.02rem;
  color: var(--muted);
  line-height: 1.6;
}

.social-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
  text-align: left;
}

@media (min-width: 640px) {
  .social-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 24px;
  }
}

.social-list__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
}

.social-list__mark {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 0.42em;
  border-radius: 50%;
  background: linear-gradient(135deg, #60a5fa, var(--primary));
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.fleet-foot {
  margin: 24px 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  font-style: italic;
  color: var(--muted-2);
}

/* How it works */
.section--how {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.how-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .how-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }
}

.how-step {
  padding: 22px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.how-step:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-1);
}

.how-step__n {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.how-step__title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.how-step__text {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Demo embed stage */
.section--demo {
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.demo-stage {
  max-width: 920px;
  margin: 0 auto;
}

.demo-embed-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-2);
}

.demo-iframe {
  display: none;
  width: 100%;
  min-height: min(52vw, 480px);
  aspect-ratio: 16 / 9;
  border: 0;
  vertical-align: middle;
}

.demo-embed-wrap--live .demo-iframe {
  display: block;
}

.demo-placeholder {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: clamp(36px, 8vw, 56px) 22px;
  text-align: center;
  min-height: min(56vw, 420px);
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, color-mix(in srgb, var(--primary) 22%, transparent), transparent 60%),
    linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
}

.demo-embed-wrap--live .demo-placeholder {
  display: none;
}

.demo-embed-wrap--placeholder .demo-placeholder {
  min-height: min(48vw, 380px);
}

.demo-embed-wrap--placeholder .demo-placeholder__ring {
  opacity: 0.18;
  animation: none;
}

.demo-placeholder__status {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 26rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.demo-placeholder__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.demo-placeholder__actions .btn {
  min-width: 10rem;
}

.demo-placeholder__fineprint {
  position: relative;
  z-index: 1;
  margin: 16px 0 0;
  max-width: 32rem;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--muted-2);
  opacity: 0.85;
}

.demo-placeholder__fineprint code {
  font-size: 0.68rem;
  word-break: break-all;
}

.demo-placeholder__ring {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--primary) 45%, transparent);
  opacity: 0.5;
  animation: demo-ring-pulse 2.4s var(--ease) infinite;
}

@keyframes demo-ring-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.45;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .demo-placeholder__ring {
    animation: none;
    opacity: 0.35;
  }
}

.demo-placeholder__play {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 4px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: color-mix(in srgb, var(--primary) 22%, var(--surface));
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.25);
  transition: transform 0.2s var(--ease), background 0.2s;
}

.demo-placeholder__play:hover {
  transform: scale(1.06);
  background: color-mix(in srgb, var(--primary) 32%, var(--surface));
}

.demo-placeholder__title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.demo-placeholder__sub {
  position: relative;
  z-index: 1;
  margin: 0 0 4px;
  max-width: 28rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

.demo-placeholder__sub code {
  font-size: 0.8rem;
  word-break: break-word;
}

.pricing-demo-nudge {
  margin: clamp(20px, 4vw, 36px) auto 0;
  padding: 0 clamp(18px, 4vw, 28px) clamp(12px, 2vw, 20px);
  max-width: 1160px;
  text-align: center;
  font-size: 0.92rem;
  color: var(--muted);
}

.pricing-demo-nudge .text-link {
  font-weight: 700;
}

/* Pricing */
.section--pricing {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 22px);
  align-items: stretch;
}

.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 22px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}

.tier__head {
  margin-bottom: 18px;
}

.tier__name {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.tier__price {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 600;
}

.tier__amount {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.tier__pitch {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

.tier__list {
  margin: 0 0 22px;
  padding: 0 0 0 1.1rem;
  flex: 1;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.tier__list li {
  margin-bottom: 8px;
}

.tier__btn {
  width: 100%;
  margin-top: auto;
}

.tier--featured {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, #60a5fa, #2563eb, #7c3aed) border-box;
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.22);
  transform: translateY(-6px);
}

.tier__badge {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
}

.pricing-note {
  margin: clamp(28px, 5vw, 44px) auto 0;
  max-width: 36rem;
  padding: 0 12px;
  text-align: center;
  font-size: 0.98rem;
  font-weight: 600;
  font-style: italic;
  color: var(--muted);
  line-height: 1.5;
}

/* Trust */
.section--trust {
  padding: clamp(48px, 6vw, 72px) 0;
  border-top: 1px solid var(--border);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.trust-card {
  padding: 20px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
}

.trust-card__title {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.trust-card__text {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Closing CTA */
.section--closing {
  padding: 0 0 clamp(64px, 10vw, 100px);
}

.closing {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(125deg, #1e3a8a 0%, #0f172a 48%, #111827 100%);
  box-shadow: var(--shadow-2);
}

.closing__inner {
  padding: clamp(36px, 6vw, 56px) clamp(22px, 4vw, 48px);
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.closing__title {
  margin: 0 0 10px;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
}

.closing__lead {
  margin: 0 0 24px;
  color: rgba(226, 232, 240, 0.88);
  font-size: 1.02rem;
  line-height: 1.55;
}

.closing__sub {
  margin: 18px 0 0;
  font-size: 0.92rem;
}

.text-link.text-link--on-dark {
  color: rgba(147, 197, 253, 0.95);
}

.text-link.text-link--on-dark:hover {
  color: #fff;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 22px 0 28px;
  background: var(--bg-deep);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.site-footer__legal,
.site-footer__trust {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.site-footer__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  max-width: min(100%, 52rem);
}

.site-footer__trust a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.site-footer__trust a:hover {
  color: var(--text);
}

.site-footer__sep {
  margin: 0 8px;
  opacity: 0.45;
}

@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    order: -1;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .bento__item,
  .bento__item--wide {
    grid-column: span 3;
  }

  .bento__item--tall {
    grid-column: span 3;
    grid-row: span 1;
    min-height: 148px;
  }

  .tiers {
    grid-template-columns: 1fr;
  }

  .tier--featured {
    transform: none;
  }

  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer__trust {
    justify-content: flex-start;
  }

  .bento__item,
  .bento__item--wide,
  .bento__item--tall {
    grid-column: span 6;
  }

  .cta-row .btn {
    width: 100%;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }
}

/* Privacy / legal pages */
.legal-main {
  padding: 40px 0 clamp(64px, 10vw, 96px);
}

.legal-doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 0 24px;
}

.legal-doc h1 {
  margin: 0 0 8px;
  font-size: clamp(1.65rem, 4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.legal-doc__meta {
  margin: 0 0 28px;
  font-size: 0.88rem;
  color: var(--muted-2);
  font-weight: 600;
}

.legal-doc h2 {
  margin: 28px 0 10px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.legal-doc p {
  margin: 0 0 14px;
  font-size: 0.96rem;
  color: var(--muted);
  line-height: 1.65;
}

.legal-doc ul {
  margin: 0 0 14px;
  padding-left: 1.25rem;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.65;
}

.legal-doc li {
  margin-bottom: 8px;
}

.legal-doc strong {
  color: var(--text);
  font-weight: 700;
}

/* Lead capture (lead.html) — keep compatible */
.lead-main {
  padding: 48px 0 96px;
}

.lead-back {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.lead-back:hover {
  color: var(--primary);
}

.lead-card {
  max-width: 560px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 28px 26px 32px;
  box-shadow: var(--shadow-1);
}

.lead-card h1 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  line-height: 1.2;
}

.lead-card .lead-intro {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.lead-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted-2);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.intent-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.intent-btn {
  border: 2px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
}

.intent-btn:hover {
  border-color: var(--border-strong);
}

.intent-btn.active {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-input,
.form-select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 1rem;
  font-family: var(--font);
}

.form-input:focus,
.form-select:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.role-row {
  display: flex;
  gap: 10px;
}

.role-btn {
  flex: 1;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: transparent;
  color: var(--text);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  font-family: var(--font);
}

.role-btn.active {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.lead-submit {
  margin-top: 8px;
  width: 100%;
  padding: 14px 18px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  font-family: var(--font);
}

.lead-submit:hover {
  background: var(--primary-hover);
}

.lead-foot {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

.lead-status {
  display: none;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: color-mix(in srgb, #22c55e 14%, var(--surface));
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
}

.lead-status.show {
  display: block;
}

/* lead.html: badge above form title */
.lead-card .eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
}
