/* ═══════════════════════════════════════════════
   Reven Landing — Shared Stylesheet
   Dark-first (matches the app); light via OS or toggle.
   Brand: indigo accent (#6366f1) on near-black navy.
   ═══════════════════════════════════════════════ */

/* ── CSS Custom Properties ── */
:root {
  /* Dark theme (default) — mirrors the app's app.scss palette */
  --bg-body-from: #0b0f17;
  --bg-body-via: #0d1320;
  --bg-body-to: #111827;
  --bg-card: rgba(30, 41, 59, 0.55);
  --bg-card-solid: #111827;
  --card-backdrop: blur(8px);
  --card-shadow: none;
  --border-card: rgba(51, 65, 85, 0.5);
  --nav-bg: rgba(11, 15, 23, 0.85);
  --nav-border: rgba(51, 65, 85, 0.45);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --brand: #6366f1;
  --brand-light: #818cf8;
  --brand-strong: #4f46e5;
  --brand-glow: rgba(99, 102, 241, 0.35);
  --brand-wash: rgba(99, 102, 241, 0.12);
  --ok: #34d399;
  --radius: 1rem;
  --max-w: 1100px;
  --theme-color: #0b0f17;
  /* Brand wordmark tint — single-colour mask, near-white on dark / purple on light. */
  --logo-color: #f1f5f9;
}

/* Light theme — OS preference (no JS / no saved pref) */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg-body-from: #eef1f6;
    --bg-body-via: #f4f7fb;
    --bg-body-to: #e9edf3;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-card-solid: #ffffff;
    --card-backdrop: none;
    --card-shadow: 0 2px 16px rgba(15, 23, 42, 0.07), 0 1px 4px rgba(15, 23, 42, 0.04);
    --border-card: rgba(15, 23, 42, 0.08);
    --nav-bg: rgba(238, 241, 246, 0.92);
    --nav-border: rgba(15, 23, 42, 0.08);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --brand: #4f46e5;
    --brand-light: #6366f1;
    --brand-strong: #4338ca;
    --brand-glow: rgba(79, 70, 229, 0.2);
    --brand-wash: rgba(79, 70, 229, 0.1);
    --theme-color: #eef1f6;
    --logo-color: #55127e;
  }
}

/* Light theme — explicit (data-theme="light") */
[data-theme="light"] {
  --bg-body-from: #eef1f6;
  --bg-body-via: #f4f7fb;
  --bg-body-to: #e9edf3;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-solid: #ffffff;
  --card-backdrop: none;
  --card-shadow: 0 2px 16px rgba(15, 23, 42, 0.07), 0 1px 4px rgba(15, 23, 42, 0.04);
  --border-card: rgba(15, 23, 42, 0.08);
  --nav-bg: rgba(238, 241, 246, 0.92);
  --nav-border: rgba(15, 23, 42, 0.08);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --brand: #4f46e5;
  --brand-light: #6366f1;
  --brand-strong: #4338ca;
  --brand-glow: rgba(79, 70, 229, 0.2);
  --brand-wash: rgba(79, 70, 229, 0.1);
  --theme-color: #eef1f6;
  --logo-color: #55127e;
}

/* ── Reset ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ── Base ── */
html {
  scroll-behavior: smooth;
}
body {
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  background: linear-gradient(
    160deg,
    var(--bg-body-from) 0%,
    var(--bg-body-via) 45%,
    var(--bg-body-to) 100%
  );
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* ── Layout Utilities ── */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
section {
  padding: 5rem 1.5rem;
  text-align: center;
}
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.125rem;
  max-width: 660px;
  margin: 0 auto 3rem;
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-light);
  margin-bottom: 1rem;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  background: var(--brand-wash);
}

/* ── CTA Buttons ── */
.cta {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  border: none;
  border-radius: 50px;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  box-shadow: 0 4px 15px var(--brand-glow);
}
.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px var(--brand-glow);
}
.cta-small {
  padding: 0.6rem 1.5rem;
  font-size: 0.95rem;
  border-radius: 50px;
}
.cta-outline {
  background: transparent;
  color: var(--brand-light);
  border: 1.5px solid var(--brand);
  box-shadow: none;
}
.cta-outline:hover {
  background: var(--brand-wash);
  box-shadow: none;
}

/* ── Card Base ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 2rem;
  backdrop-filter: var(--card-backdrop);
  -webkit-backdrop-filter: var(--card-backdrop);
  box-shadow: var(--card-shadow);
  text-align: left;
}

/* ── Header / Nav ── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--nav-border);
}
nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-primary);
  flex-shrink: 0;
}
.nav-logo {
  /* Full Reven wordmark (icon + name) as a single-colour mask, tinted per theme. */
  height: 1.7rem;
  width: calc(1.7rem * 217 / 47);
  background-color: var(--logo-color);
  -webkit-mask: url(/reven-logo-full.svg) left center / contain no-repeat;
  mask: url(/reven-logo-full.svg) left center / contain no-repeat;
}
.nav-links {
  display: flex;
  gap: 1.5rem;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover {
  color: var(--text-primary);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* ── Mobile Nav Toggle ── */
.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  padding: 0.35rem;
  flex-shrink: 0;
}
.nav-mobile-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition:
    transform 0.25s ease,
    opacity 0.2s ease;
  transform-origin: center;
}
.nav-mobile-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-mobile-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-mobile-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Theme Toggle ── */
.theme-toggle {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid var(--border-card);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
  padding: 0;
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--text-muted);
}
.theme-toggle svg {
  width: 1rem;
  height: 1rem;
  pointer-events: none;
}

/* ── Hero ── */
#hero {
  min-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 2.25rem;
  padding-bottom: 2.25rem;
}
#hero .hero-inner {
  max-width: 820px;
}
/* The headline sits above the visualization. */
#hero > h1 {
  max-width: 100%;
  margin-bottom: 1.5rem;
}
/* Keep it on a single line from tablet up; it wraps freely on narrow phones. */
@media (min-width: 640px) {
  #hero > h1 {
    white-space: nowrap;
  }
}
.hero-logo {
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: 1.5rem;
}
#hero h1 {
  font-size: clamp(1.9rem, 4.4vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.14;
  margin-bottom: 1.25rem;
}
#hero h1 .accent {
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 2.25rem;
  line-height: 1.7;
}
.hero-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.hero-cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Waitlist Form ── */
.waitlist {
  max-width: 520px;
  margin: 0 auto;
  text-align: left;
}
.waitlist-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.waitlist input {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-card-solid);
  border: 1px solid var(--border-card);
  border-radius: 0.65rem;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.waitlist input::placeholder {
  color: var(--text-muted);
}
.waitlist input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-wash);
}
.waitlist input.full {
  grid-column: 1 / -1;
}
/* honeypot — hidden from real users, catches bots */
.waitlist .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.waitlist button {
  width: 100%;
  margin-top: 0.25rem;
  border: none;
  cursor: pointer;
}
.waitlist-msg {
  margin-top: 0.85rem;
  font-size: 0.95rem;
  text-align: center;
  min-height: 1.4rem;
}
.waitlist-msg.error {
  color: #f87171;
}
.waitlist-msg.success {
  color: var(--ok);
}
.waitlist.is-done .waitlist-row,
.waitlist.is-done button {
  display: none;
}
.waitlist-fineprint {
  margin-top: 0.85rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

/* ── Problem / pain row ── */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}
/* Four cards read better as a 2×2 than as 3 + 1 orphan. */
.pain-grid--four {
  grid-template-columns: repeat(2, 1fr);
  max-width: 720px;
}
.pain-card {
  text-align: center;
}
.pain-card .pain-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 0.85rem;
  color: var(--brand-light);
}
.pain-card .pain-icon svg {
  width: 100%;
  height: 100%;
}
.pain-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}
.pain-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ── Pillar (feature) rows with screenshot ── */
.pillar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto 5rem;
  text-align: left;
}
.pillar:last-child {
  margin-bottom: 0;
}
.pillar.reverse .pillar-media {
  order: -1;
}
.pillar-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-light);
  margin-bottom: 0.75rem;
}
.pillar h3 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.pillar > div > p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.pillar-points {
  list-style: none;
  display: grid;
  gap: 0.6rem;
}
.pillar-points li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--text-secondary);
  font-size: 0.98rem;
}
.pillar-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--brand-wash);
  border: 1.5px solid var(--brand);
}
.pillar-points li::after {
  content: "";
  position: absolute;
  left: 0.36rem;
  top: 0.68rem;
  width: 0.32rem;
  height: 0.16rem;
  border-left: 2px solid var(--brand-light);
  border-bottom: 2px solid var(--brand-light);
  transform: rotate(-45deg);
}

/* Screenshot frame */
.shot {
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.35),
    var(--card-shadow);
  overflow: hidden;
}
.shot-chrome {
  display: flex;
  gap: 0.4rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border-card);
  background: var(--bg-card-solid);
}
.shot-chrome span {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--border-card);
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
}
/* placeholder when no screenshot supplied yet */
.shot-placeholder {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 14px,
    var(--brand-wash) 14px,
    var(--brand-wash) 15px
  );
}

/* ── Integrations ── */
.integrations-grid {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 760px;
  margin: 0 auto;
}
.integration {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.4rem;
  border: 1px solid var(--border-card);
  border-radius: 50px;
  background: var(--bg-card);
  font-weight: 600;
  font-size: 0.95rem;
}
.integration .badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand-light);
  background: var(--brand-wash);
  padding: 0.15rem 0.55rem;
  border-radius: 50px;
}
.integration .badge.soon {
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border-card);
}

/* ── Audience / Use-case Grid ── */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}
.audience-card {
  transition: transform 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.audience-card:visited {
  color: inherit;
}
a.audience-card:hover {
  transform: translateY(-4px);
}
.audience-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-light);
  margin-bottom: 0.75rem;
}
.audience-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.audience-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}
.audience-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-light);
}

/* ── Pricing ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}
.pricing-grid--three {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1040px;
}
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border-color: var(--brand);
  box-shadow:
    0 0 0 1px var(--brand),
    0 20px 50px rgba(0, 0, 0, 0.3);
}
.price-tag {
  position: absolute;
  top: -0.75rem;
  right: 1.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
}
.price-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}
.price-card .price {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0.5rem 0 0.25rem;
}
.price-card .price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}
.price-card .price-sub {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}
.price-features {
  list-style: none;
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  flex: 1;
}
.price-features li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.price-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand-light);
  font-weight: 700;
}
.pricing-note {
  margin-top: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.pricing-note a {
  color: var(--brand-light);
}

/* ── Final CTA Section ── */
#cta {
  padding: 6rem 1.5rem;
}
#cta h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
#cta p {
  color: var(--text-secondary);
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
}

/* ── Generic content pages (security, etc.) ── */
.page-hero {
  padding: 5rem 1.5rem 2rem;
  text-align: center;
  max-width: var(--max-w);
  margin: 0 auto;
}
.page-hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.page-hero p {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}
.content {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
  text-align: left;
}
.content-section {
  margin-bottom: 2.5rem;
}
.content-section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  letter-spacing: -0.01em;
}
.content-section p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}
.content-section ul {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}
.content-section li {
  margin-bottom: 0.4rem;
}
.back-link {
  display: inline-block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  transition: color 0.2s;
}
.back-link:hover {
  color: var(--text-primary);
}

/* ── Footer ── */
footer {
  text-align: center;
  padding: 2rem 1.5rem 2.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  border-top: 1px solid var(--border-card);
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--text-secondary);
}
.footer-heart {
  color: #ef4444;
}
.footer-copy {
  margin-top: 0.35rem;
}

/* ── Clickable screenshot (opens lightbox) ── */
.shot--clickable {
  position: relative;
  cursor: zoom-in;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.shot--clickable:hover {
  transform: translateY(-3px);
  box-shadow:
    0 26px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px var(--brand);
}
.shot--clickable:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px var(--brand-glow),
    0 20px 50px rgba(0, 0, 0, 0.35);
}
.shot-zoom {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 0.2s,
    transform 0.2s;
  pointer-events: none;
}
.shot--clickable:hover .shot-zoom,
.shot--clickable:focus-visible .shot-zoom {
  opacity: 1;
  transform: translateY(0);
}

/* ── Two-image swap (Planning pillar) ── */
.shot-swap {
  position: relative;
}
.shot-swap-img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.shot-swap-img.is-active {
  opacity: 1;
}
.shot-swap-img:not(:first-child) {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
}
.shot-swap-dots {
  position: absolute;
  left: 50%;
  bottom: 0.75rem;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 0.4rem;
  padding: 0.35rem 0.5rem;
  border-radius: 999px;
  background: rgba(6, 10, 18, 0.45);
  backdrop-filter: blur(6px);
}
.shot-dot {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.5);
  transition:
    width 0.2s,
    background 0.2s;
}
.shot-dot:hover {
  background: rgba(255, 255, 255, 0.85);
}
.shot-dot.is-active {
  width: 1.3rem;
  background: var(--brand);
}
@media (prefers-reduced-motion: reduce) {
  .shot-swap-img {
    transition: none;
  }
}

/* ── "Try this view live" demo CTA ── */
.demo-cta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1rem;
  padding: 0.85rem 1.1rem;
  text-decoration: none;
  border-radius: 0.85rem;
  border: 1px solid var(--brand);
  background: var(--brand-wash);
  color: var(--text-primary);
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    background 0.2s,
    color 0.2s;
}
.demo-cta:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff;
  box-shadow: 0 8px 24px var(--brand-glow);
}
.demo-cta-icon {
  flex-shrink: 0;
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff;
}
.demo-cta:hover .demo-cta-icon {
  background: #fff;
  color: var(--brand-strong);
}
.demo-cta-icon svg {
  width: 1.1rem;
  height: 1.1rem;
}
.demo-cta-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  text-align: left;
}
.demo-cta-text strong {
  font-size: 1rem;
  font-weight: 700;
}
.demo-cta-text small {
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.demo-cta:hover .demo-cta-text small {
  color: rgba(255, 255, 255, 0.85);
}
.demo-cta-go {
  margin-left: auto;
  font-size: 1.25rem;
  transition: transform 0.2s;
}
.demo-cta:hover .demo-cta-go {
  transform: translateX(3px);
}

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 4vh 4vw;
  background: rgba(2, 6, 16, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lightbox[hidden] {
  display: none;
}
.lightbox-img {
  max-width: 92vw;
  max-height: 76vh;
  border-radius: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 1.1rem;
  right: 1.25rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.16);
}
.lightbox-demo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.lightbox-demo svg {
  width: 1.1rem;
  height: 1.1rem;
}

/* ═══════════════════════════════════════════════
   Pipeline simulator (#sim) — the interactive hero widget
   A mini deal board + target gauge + transport, driven by /js/sim.js.
   ═══════════════════════════════════════════════ */
/* One cohesive frame around the whole visualization — board, gauge and transport read as a single
   dashboard panel rather than three floating cards. The inner pieces are flat (hairline dividers,
   no individual borders/shadows); this frame carries the one elevation. */
.sim {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto 1.75rem;
  padding: 0.9rem;
  border: 1px solid var(--border-card);
  border-radius: 1.4rem;
  background: var(--bg-card);
  backdrop-filter: var(--card-backdrop);
  -webkit-backdrop-filter: var(--card-backdrop);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.32),
    var(--card-shadow);
  text-align: left;
}
/* Short explanation under the visualization — a touch tighter to the CTAs below it. */
.sim-explain {
  margin-bottom: 1.5rem;
}
.sim-stage {
  display: grid;
  grid-template-columns: 1fr 258px;
  gap: 1.3rem;
  align-items: stretch;
}

/* ── Board ── (flat inside the frame) */
.sim-board {
  position: relative;
  border-radius: 0.8rem;
  padding: 0.15rem 0.4rem 0.4rem;
  overflow: hidden;
  cursor: pointer;
}
.sim-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 0.6rem;
}
.sim-cols span {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 0.15rem 0.1rem 0.35rem;
  border-bottom: 1px solid var(--border-card);
  text-align: center;
}
/* Card layer: absolutely-positioned cards, so re-layout glides them via the transform transition
   (mirrors the real app's board). Height fits ~5 stacked mini cards. */
.sim-cards {
  position: relative;
  height: 310px;
}

/* ── Mini deal card ── */
.sim-card {
  position: absolute;
  top: 0;
  left: 0;
  height: 54px;
  padding: 0.4rem 0.55rem 0.4rem 0.6rem;
  border: 1px solid var(--border-card);
  border-left: 3px solid var(--accent);
  border-radius: 0.55rem;
  background: var(--bg-card-solid);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.1rem;
  line-height: 1.25;
  overflow: hidden;
  transition:
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.5s ease,
    box-shadow 0.3s ease;
  will-change: transform;
}
/* Snap cards to their opening positions on first paint — glide only kicks in once playing. */
.sim-cards:not(.is-ready) .sim-card {
  transition: none;
}
.sim-card-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sim-card-val {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}
.sim-card-check {
  position: absolute;
  top: 50%;
  right: 0.55rem;
  transform: translateY(-50%) scale(0.4);
  color: var(--ok);
  font-weight: 700;
  font-size: 1rem;
  opacity: 0;
  transition:
    opacity 0.3s ease,
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.sim-card.is-moved {
  animation: simPulse 0.6s ease;
}
@keyframes simPulse {
  0% {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
  }
  40% {
    box-shadow:
      0 4px 18px rgba(0, 0, 0, 0.2),
      0 0 0 2px var(--accent);
  }
  100% {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
  }
}
/* Won: stays put in the Closed Won column — green edge, a check, value in green. */
.sim-card.is-won {
  border-left-color: var(--ok);
  background: color-mix(in srgb, var(--ok) 8%, var(--bg-card-solid));
  padding-right: 1.5rem;
}
.sim-card.is-won .sim-card-check {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}
.sim-card.is-won .sim-card-val {
  color: var(--ok);
}
/* The move into Closed Won flashes green rather than the deal's accent colour. */
.sim-card.is-won.is-moved {
  animation: simWin 0.7s ease;
}
@keyframes simWin {
  0% {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
  }
  35% {
    box-shadow:
      0 6px 20px rgba(0, 0, 0, 0.2),
      0 0 0 3px var(--ok);
  }
  100% {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
  }
}
/* Lost: sinks and fades off the board. */
.sim-card.is-lost {
  opacity: 0;
  filter: grayscale(1);
}
/* Not yet arrived: hidden above its opening column until its start day. */
.sim-card.is-unborn {
  opacity: 0;
}

/* ── Finale overlay (end of the month → live demo) ── */
.sim-finale {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  text-align: center;
  background: color-mix(in srgb, var(--bg-card-solid) 82%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.sim-finale[hidden] {
  display: none;
}
.sim-finale.is-in {
  opacity: 1;
}
.sim-finale-inner {
  max-width: 380px;
  transform: translateY(10px);
  transition: transform 0.5s ease;
}
.sim-finale.is-in .sim-finale-inner {
  transform: translateY(0);
}
.sim-finale-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ok);
  background: color-mix(in srgb, var(--ok) 16%, transparent);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 0.9rem;
}
.sim-finale h3 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.sim-finale p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}
.sim-finale .cta {
  font-size: 1rem;
  padding: 0.8rem 1.8rem;
}
.sim-replay {
  display: block;
  margin: 0.9rem auto 0;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: color 0.2s;
}
.sim-replay:hover {
  color: var(--text-primary);
}

/* ── Target gauge ── (flat panel, divided from the board by a hairline) */
.sim-target {
  border-left: 1px solid var(--border-card);
  padding: 0.15rem 0.3rem 0.4rem 1.3rem;
  display: flex;
  flex-direction: column;
  --state-color: var(--brand-light);
}
.sim-target[data-state="ahead"] {
  --state-color: var(--ok);
}
.sim-target[data-state="track"] {
  --state-color: #f59e0b;
}
.sim-target[data-state="behind"] {
  --state-color: #f87171;
}
.sim-target-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}
.sim-target-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.sim-status {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--state-color);
  background: color-mix(in srgb, var(--state-color) 15%, transparent);
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  white-space: nowrap;
  transition:
    color 0.3s,
    background 0.3s;
}
.sim-target-num {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}
.sim-target-num strong {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.sim-target-num span {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.sim-target-bar {
  position: relative;
  height: 8px;
  border-radius: 50px;
  background: var(--border-card);
  margin-bottom: 1.1rem;
}
.sim-target-fill {
  position: absolute;
  inset: 0 auto 0 0;
  height: 100%;
  width: 0;
  border-radius: 50px;
  background: linear-gradient(
    90deg,
    var(--state-color),
    color-mix(in srgb, var(--state-color) 60%, #fff)
  );
  transition:
    width 0.4s ease,
    background 0.3s;
}
.sim-target-pace {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 2px;
  border-radius: 2px;
  background: var(--text-secondary);
  transform: translateX(-50%);
}
.sim-target-pace-label {
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.sim-chart {
  width: 100%;
  height: 62px;
  margin-top: auto;
  overflow: visible;
}
.sim-chart-pace {
  stroke: var(--text-muted);
  stroke-width: 1;
  stroke-dasharray: 3 3;
  opacity: 0.55;
  vector-effect: non-scaling-stroke;
}
.sim-chart-line {
  stroke: var(--state-color);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  transition: stroke 0.3s;
}
.sim-chart-area {
  fill: var(--state-color);
  opacity: 0.14;
  transition: fill 0.3s;
}

/* ── Transport ── (the frame's footer bar) */
.sim-transport {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 0.9rem;
  padding: 0.9rem 0.4rem 0.2rem;
  border-top: 1px solid var(--border-card);
}
.sim-play {
  flex-shrink: 0;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  box-shadow: 0 4px 15px var(--brand-glow);
  transition:
    transform 0.15s,
    box-shadow 0.2s;
}
.sim-play:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 22px var(--brand-glow);
}
.sim-play svg {
  width: 1.15rem;
  height: 1.15rem;
}
.sim-play.is-idle {
  animation: simIdle 2s ease-in-out infinite;
}
@keyframes simIdle {
  0%,
  100% {
    box-shadow: 0 4px 15px var(--brand-glow);
  }
  50% {
    box-shadow:
      0 4px 15px var(--brand-glow),
      0 0 0 8px var(--brand-wash);
  }
}
.sim-track {
  position: relative;
  flex: 1;
  height: 22px;
  cursor: pointer;
  touch-action: none;
  display: flex;
  align-items: center;
}
.sim-rail {
  position: absolute;
  left: 0;
  right: 0;
  height: 5px;
  border-radius: 50px;
  background: var(--border-card);
}
.sim-fill {
  position: absolute;
  left: 0;
  height: 5px;
  width: 0;
  border-radius: 50px;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
}
.sim-head {
  position: absolute;
  left: 0;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--brand);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
  transform: translate(-50%, -50%);
}
.sim-date {
  flex-shrink: 0;
  min-width: 3.4rem;
  text-align: right;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  .sim-card {
    transition: opacity 0.2s ease;
  }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .sim-stage {
    grid-template-columns: 1fr;
  }
  .sim-target {
    order: -1;
  }
  .nav-mobile-toggle {
    display: flex;
  }
  nav {
    flex-wrap: wrap;
  }
  .nav-links {
    display: none;
  }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    order: 3;
    width: 100%;
    padding: 0.5rem 0 1rem;
    border-top: 1px solid var(--nav-border);
    gap: 0;
  }
  .nav-links.mobile-open a {
    padding: 0.65rem 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--nav-border);
    white-space: normal;
    color: var(--text-secondary);
  }
  .nav-links.mobile-open a:last-child {
    border-bottom: none;
  }

  section {
    padding: 3.5rem 1.25rem;
  }
  #hero {
    min-height: auto;
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
  .pain-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
  }
  .pillar {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
  }
  .pillar.reverse .pillar-media {
    order: 0;
  }
  .audience-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
  .waitlist-row {
    grid-template-columns: 1fr;
  }
}
