/* ──────────────────────────────────────────────────────────────────
   ctOS Blade — landing page styles.

   Mirrors the in-app palette:
     --bg-primary      #0d0d1a    page background
     --bg-surface      #1c1c2e    card background
     --bg-raised       #26215c    accent strip / hover
     --text-primary    #eeedfe
     --text-secondary  #afa9ec
     --text-muted      #888780
     --accent-primary  #7f77dd    CTAs, headlines
     --accent-hover    #534ab7
     --accent-teal     #1d9e75    success / yes ticks
     --danger          #EF4444

   Layout system: 12-column-feeling 1100px container, generous vertical
   rhythm. No grid library — flexbox + CSS grid where each section
   needs them.
   ───────────────────────────────────────────────────────────────── */

:root {
  --bg-primary: #0d0d1a;
  --bg-surface: #1c1c2e;
  --bg-raised: #26215c;
  --bg-card: #15152a;
  --text-primary: #eeedfe;
  --text-secondary: #afa9ec;
  --text-muted: #8a8aa3;
  --accent-primary: #7f77dd;
  --accent-hover: #534ab7;
  --accent-teal: #1d9e75;
  --accent-teal-light: #5dcaa5;
  --danger: #ef4444;
  --border: rgba(127, 119, 221, 0.18);
  --border-strong: rgba(127, 119, 221, 0.4);

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-brand: "JetBrains Mono", "Fira Code", monospace;

  --radius-card: 12px;
  --radius-btn: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  /* Subtle dot grid — same vibe as the app shell. */
  background-image:
    radial-gradient(rgba(127, 119, 221, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: 0 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.15s;
}

a:hover {
  color: var(--accent-hover);
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Navigation ──────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 13, 26, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
}

.brand-mark {
  width: 28px;
  height: 28px;
}

.brand-wordmark {
  font-family: var(--font-brand);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--accent-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
}

.nav-links a {
  color: var(--text-secondary);
}

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

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

/* ─── Buttons ─────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.15s;
  text-decoration: none;
  white-space: nowrap;
}

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

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

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

.btn-ghost:hover {
  background: rgba(127, 119, 221, 0.08);
  color: var(--text-primary);
}

.btn-lg {
  padding: 14px 24px;
  font-size: 15px;
}

.btn-block {
  display: flex;
  width: 100%;
}

/* ─── Section frame ───────────────────────────────────────────── */

section {
  padding: 96px 0;
  border-bottom: 1px solid var(--border);
}

section:last-of-type {
  border-bottom: none;
}

.section-title {
  font-size: 36px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}

.section-sub {
  color: var(--text-secondary);
  margin: 0 0 48px;
  max-width: 720px;
  font-size: 17px;
}

.eyebrow {
  font-family: var(--font-brand);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: var(--accent-primary);
  margin: 0 0 20px;
}

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

/* ─── Hero (full-bleed grid + provider strip) ──────────────────── */

.hero {
  padding: 80px 0 96px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: center;
}

.hero-content {
  max-width: 600px;
}

.hero-eyebrow {
  display: inline-block;
  margin-bottom: 24px;
  padding: 6px 14px;
  background: rgba(127, 119, 221, 0.08);
  border: 1px solid rgba(127, 119, 221, 0.25);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-primary);
}

.hero-headline {
  margin: 0 0 24px;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.hero-headline-accent {
  background: linear-gradient(135deg, var(--accent-primary), #c4b5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.hero-subhead {
  margin: 0 0 36px;
  max-width: 560px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn-large {
  font-size: 16px;
  padding: 14px 28px;
}

.btn-link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  transition: color 150ms;
}

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

.hero-providers {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.hero-providers-label {
  display: block;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-providers-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.provider-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition:
    border-color 150ms,
    color 150ms;
}

.provider-chip:hover {
  border-color: var(--accent-primary);
  color: var(--text-primary);
}

.provider-icon {
  width: 16px;
  height: 16px;
  color: var(--accent-primary);
}

.provider-tag {
  padding: 2px 6px;
  background: rgba(127, 119, 221, 0.18);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-primary);
}

.hero-visual {
  position: relative;
  /* Bleed the screenshot slightly past the grid for energy. */
  margin-right: -32px;
}

.hero-screenshot-wrapper {
  /* Flat presentation — the dashboard is busy enough that a 3D tilt
     fights the chart axes for attention. Rectangle wins. */
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 24px 48px rgba(0, 0, 0, 0.4),
    0 8px 24px rgba(127, 119, 221, 0.18);
  transition: transform 300ms ease;
}

.hero-screenshot-wrapper:hover {
  /* Subtle lift only; no perspective math. */
  transform: translateY(-4px);
}

.hero-screenshot {
  display: block;
  width: 100%;
  height: auto;
}

/* Suppress the .screenshot-trigger img scale inside the hero — the
   wrapper handles its own 3D tilt; doubling up reads as jitter. */
.hero-screenshot-wrapper .screenshot-trigger:hover img,
.hero-screenshot-wrapper .screenshot-trigger:focus-visible img {
  transform: none;
}

.hero-screenshot-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(127, 119, 221, 0.22) 0%,
    transparent 70%
  );
  z-index: -1;
  filter: blur(24px);
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-visual {
    margin-right: 0;
    max-width: 600px;
    justify-self: center;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 48px 0 64px;
  }
  .hero-headline {
    font-size: 36px;
  }
  .hero-subhead {
    font-size: 16px;
  }
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
}

/* ─── Social proof ─────────────────────────────────────────────── */

.proof {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  background: rgba(28, 28, 46, 0.4);
}

.proof-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.proof-line {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  letter-spacing: 0.02em;
}

.proof-icons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--text-muted);
}

.proof-icons li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.proof-icons svg {
  width: 18px;
  height: 18px;
}

/* ─── Card primitives ─────────────────────────────────────────── */

.cards-3,
.cards-grid {
  display: grid;
  gap: 20px;
}

.cards-3 {
  grid-template-columns: repeat(3, 1fr);
}

.cards-grid {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
}

.card h3 {
  margin: 16px 0 8px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.card-icon {
  width: 28px;
  height: 28px;
  color: var(--accent-primary);
  display: block;
}

/* Pain cards have a slightly warmer accent so they read as "before". */
.pain {
  background: linear-gradient(
    180deg,
    rgba(38, 33, 92, 0.18) 0%,
    var(--bg-card) 100%
  );
}

/* ─── Problem narrative (single-column ritual) ─────────────────── */
/*
   Replaces the prior 3-card pain grid with a single narrative block.
   The bordered "Hours. Human errors..." conclusion line acts as the
   visual punch — it must read as a verdict, not a footnote.
*/

.problem-narrative {
  max-width: 760px;
  margin: 0 auto;
}

.problem-narrative .eyebrow {
  display: inline-block;
  margin-bottom: 12px;
}

.problem-narrative h2 {
  font-size: 36px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 32px;
  color: var(--text-primary);
}

.problem-intro {
  font-size: 18px;
  color: var(--text-secondary);
  margin: 0 0 16px;
}

.problem-ritual {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}

.problem-ritual li {
  position: relative;
  padding: 10px 0 10px 32px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.problem-ritual li:last-child {
  border-bottom: none;
}

.problem-ritual li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 10px;
  color: var(--accent-primary);
  font-weight: 600;
}

.problem-conclusion {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 32px 0;
  padding: 20px 0;
  border-top: 2px solid var(--accent-primary);
  border-bottom: 2px solid var(--accent-primary);
}

.problem-truth {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-secondary);
  font-style: italic;
  margin: 0;
}

@media (max-width: 640px) {
  .problem-narrative h2 {
    font-size: 28px;
  }
  .problem-conclusion {
    font-size: 19px;
  }
}

/* ─── Solution pillars ────────────────────────────────────────── */

.pillar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
  margin: 64px 0;
}

.pillar:first-of-type {
  margin-top: 32px;
}

.pillar-reverse {
  direction: rtl;
}

.pillar-reverse > * {
  direction: ltr;
}

.pillar-copy .eyebrow {
  display: inline-block;
  margin-bottom: 8px;
}

.pillar-copy h3 {
  font-size: 26px;
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.pillar-copy p {
  color: var(--text-secondary);
  font-size: 16px;
  margin: 0 0 20px;
}

/* Pillar caption — small descriptive line under the screenshot.
   Falls outside the screenshot card border so it reads as
   commentary, not part of the UI capture. */
.pillar-caption {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: center;
}

.bullets {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bullets li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  color: var(--text-primary);
  font-size: 14.5px;
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-teal);
}

.pillar-shot {
  margin: 0;
}

/* The framing (border, padding, shadow) wraps the screenshot only —
   not the figcaption — so caption text sits outside the card. */
.pillar-shot .screenshot-trigger {
  display: block;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-card);
  background: var(--bg-card);
  padding: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.pillar-shot img {
  border-radius: 8px;
  display: block;
  width: 100%;
  height: auto;
}

/* ─── Reporting (full-width, screenshot-dominant) ─────────────── */
/*
   Different visual treatment from the pillars: the dashboard
   screenshot is the dominant element, copy sits on the left in a
   tighter column. Background flips to bg-card so the section reads
   as a distinct band of the page.
*/

.reporting {
  background: var(--bg-card);
}

.reporting .container {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: center;
}

.reporting-content h2 {
  font-size: 32px;
  line-height: 1.2;
  margin: 12px 0 24px;
  letter-spacing: -0.01em;
}

.reporting-content p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 16px;
}

.reporting-features {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.reporting-features li {
  position: relative;
  padding: 8px 0 8px 24px;
  font-size: 15px;
  color: var(--text-secondary);
}

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

.reporting-visual .screenshot-trigger {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-card);
  background: var(--bg-card);
  padding: 6px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
}

.reporting-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

@media (max-width: 1024px) {
  .reporting .container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ─── For regulated environments section ──────────────────────── */
/*
   Vendor-support narrative for self-hosted, regulated customers.
   Reads as a continuation of the operations sections: framed
   block, hairline borders top/bottom, single-column copy with
   a definition-list-style feature breakdown (label + description)
   instead of bullets — the items are explanatory, not scannable.
*/

.for-regulated {
  padding: 96px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.for-regulated-grid {
  max-width: 800px;
  margin: 0 auto;
}

.for-regulated-content h2 {
  font-size: 32px;
  margin-bottom: 24px;
}

.for-regulated-content > p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.for-regulated-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.for-regulated-features li {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.for-regulated-features li:last-child {
  border-bottom: none;
}

.for-regulated-features li strong {
  display: block;
  color: var(--text-primary);
  font-size: 16px;
  margin-bottom: 6px;
  font-weight: 600;
}

.for-regulated-features li {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* The Pillar 06 wrapper drops the section's leading top padding so
   it visually reads as a continuation of the regulated-environments /
   Reporting block rather than a fresh section frame. */
.solution-tail .pillar:first-of-type {
  margin-top: 0;
}

/* ─── Why us / comparison table ───────────────────────────────── */

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

table.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

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

table.compare thead th {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(127, 119, 221, 0.06);
}

table.compare tbody th {
  color: var(--text-primary);
  font-weight: 500;
  width: 32%;
}

table.compare td {
  color: var(--text-secondary);
}

table.compare tbody tr:last-child th,
table.compare tbody tr:last-child td {
  border-bottom: none;
}

table.compare .us {
  background: rgba(127, 119, 221, 0.08);
  color: var(--text-primary);
}

table.compare .yes {
  color: var(--accent-teal-light);
}

table.compare .yes::before {
  content: "✓ ";
  color: var(--accent-teal);
  font-weight: 700;
}

table.compare .partial {
  color: var(--text-muted);
}

table.compare .no {
  color: var(--text-muted);
}

table.compare .no::before {
  content: "✗ ";
  color: var(--danger);
}

/* ─── Pricing (2-tier: Team + Enterprise) ──────────────────────── */
/*
   Replaces the prior 3-card layout. The Team card lifts -12 px and
   gains a tinted border so the "Most Popular" cue reads even before
   the badge does. Both cards route to the Calendly demo flow; the
   Enterprise CTA inverts to a ghost-style button so the visual
   weight matches the page hierarchy.
*/

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header .eyebrow {
  display: inline-block;
}

.section-header h2 {
  font-size: 36px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 12px 0 12px;
}

.section-subtitle {
  margin: 0 auto;
  max-width: 640px;
  color: var(--text-secondary);
  font-size: 17px;
}

.pricing-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px 32px;
}

.pricing-card-featured {
  border: 2px solid var(--accent-primary);
  transform: translateY(-12px);
  box-shadow: 0 20px 48px rgba(127, 119, 221, 0.18);
}

.featured-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: var(--accent-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 999px;
  white-space: nowrap;
}

.pricing-header h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.tier-description {
  margin: 0 0 24px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

.pricing-price {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.price-label {
  display: block;
  margin-bottom: 8px;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.price-detail {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  flex-grow: 1;
}

.pricing-features li {
  position: relative;
  padding: 8px 0 8px 28px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
}

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

.pricing-note {
  text-align: center;
  margin: 48px auto 0;
  font-size: 14px;
  color: var(--text-muted);
}

.pricing-note a {
  color: var(--accent-primary);
}

.btn-secondary-style {
  background: transparent;
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
}

.btn-secondary-style:hover {
  background: var(--accent-primary);
  color: #fff;
}

@media (max-width: 768px) {
  .pricing-grid-2 {
    grid-template-columns: 1fr;
  }
  .pricing-card-featured {
    transform: none;
  }
}

/* ─── FAQ ─────────────────────────────────────────────────────── */

.faq-inner {
  max-width: 820px;
}

details {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

details:first-of-type {
  border-top: 1px solid var(--border);
}

details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  position: relative;
  padding-right: 32px;
  color: var(--text-primary);
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: -2px;
  font-size: 22px;
  color: var(--accent-primary);
  font-weight: 400;
  transition: transform 0.15s;
  line-height: 1;
}

details[open] summary::after {
  content: "−";
}

details p {
  margin: 12px 0 0;
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 720px;
}

/* ─── Final CTA ───────────────────────────────────────────────── */

.final-cta {
  text-align: center;
  background: linear-gradient(
    180deg,
    rgba(38, 33, 92, 0.4) 0%,
    var(--bg-primary) 100%
  );
}

.final-cta h2 {
  font-size: 36px;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.final-cta p {
  color: var(--text-secondary);
  font-size: 17px;
  margin: 0 0 28px;
}

.final-cta-inner .hero-ctas {
  justify-content: center;
}

/* ─── Footer ──────────────────────────────────────────────────── */

.footer {
  padding: 56px 0 24px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}

.footer-heading {
  margin: 0 0 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-family: var(--font-brand);
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer li {
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

.footer li a {
  color: var(--text-secondary);
}

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

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ─── Company narrative (landing-page section) ─────────────────── */

.narrative-inner {
  max-width: 760px;
}

.narrative-body {
  margin-top: 24px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-primary);
}

.narrative-body p {
  margin: 0 0 18px;
}

.narrative-body p strong {
  color: var(--accent-primary);
  font-weight: 600;
}

.story-link-wrap {
  margin-top: 8px !important;
}

.story-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--accent-primary);
  text-decoration: none;
}

.story-link:hover {
  text-decoration: underline;
}

.company-meta {
  list-style: none;
  margin: 40px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 32px;
  font-size: 14px;
  color: var(--text-secondary);
}

.company-meta li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.company-meta li span {
  font-family: var(--font-brand);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  color: var(--text-muted);
}

.company-meta li strong {
  color: var(--text-primary);
  font-weight: 500;
}

.company-meta a {
  color: inherit;
}

@media (max-width: 640px) {
  .company-meta {
    grid-template-columns: 1fr;
  }
}

/* ─── Long-form story page (/story.html) ───────────────────────── */
/*
   Reading-optimized: ~720 px column, serif body, generous line-
   height. The serif body deliberately departs from the rest of the
   site's Inter / JetBrains-Mono palette — long-form prose reads
   better in a serif, and the visual handoff from chrome to article
   signals "this is the long version" without needing a banner.
*/

.story-page {
  background: var(--bg-primary);
  color: var(--text-primary);
}

.story-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 96px 24px;
}

.story-header {
  text-align: center;
  margin-bottom: 72px;
}

.story-header h1 {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.story-header .subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  font-weight: 400;
  margin: 0;
}

.story-body {
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.75;
  color: var(--text-primary);
}

.story-body p {
  margin: 0 0 24px;
}

.story-body p strong {
  color: var(--accent-primary);
  font-weight: 600;
}

.story-body h2 {
  font-family: var(--font-body);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 56px 0 24px;
}

.story-cta {
  margin-top: 96px;
  padding: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
}

.story-cta h3 {
  font-family: var(--font-body);
  font-size: 24px;
  margin: 0 0 12px;
  color: var(--text-primary);
}

.story-cta p {
  font-family: var(--font-body);
  color: var(--text-secondary);
  margin: 0 0 24px;
  font-size: 16px;
}

@media (max-width: 640px) {
  .story-container {
    padding: 56px 18px;
  }
  .story-header h1 {
    font-size: 32px;
  }
  .story-header .subtitle {
    font-size: 17px;
  }
  .story-body {
    font-size: 17px;
    line-height: 1.7;
  }
  .story-body h2 {
    font-size: 22px;
    margin-top: 40px;
  }
  .story-cta {
    padding: 32px 20px;
    margin-top: 64px;
  }
}

/* ─── Pillar inline link (e.g. "See an example analysis →") ───── */

.pillar-link {
  margin: 16px 0 0;
}

/* ─── Sample-analysis preview page (/sample-analysis.html) ────── */
/*
   Mirrors the visual structure of the in-app AIAnalysisTab
   (Sparkles + section cards) so a prospect sees what the live
   product produces, not a marketing mock.
*/

.sample-container {
  max-width: 880px;
  margin: 0 auto;
  padding: 72px 24px 96px;
}

.sample-header {
  text-align: center;
  margin-bottom: 56px;
}

.sample-header h1 {
  font-size: 36px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 12px 0 20px;
}

.sample-sub {
  margin: 0 auto;
  max-width: 640px;
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.finding-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 24px;
}

.finding-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.finding-name {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}

.severity-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid;
}

.severity-high {
  background: rgba(249, 115, 22, 0.12);
  border-color: rgba(249, 115, 22, 0.4);
  color: #fdba74;
}

.finding-meta {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.finding-meta div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.finding-meta dt {
  font-family: var(--font-brand);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.finding-meta dd {
  margin: 0;
  font-size: 14px;
  color: var(--text-primary);
  font-family: var(--font-brand);
}

.ai-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 28px 28px;
}

.ai-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.ai-panel-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.ai-panel-title svg {
  color: var(--accent-primary);
}

.ai-panel-meta {
  font-family: var(--font-brand);
  font-size: 12px;
  color: var(--text-muted);
}

.ai-section {
  background: rgba(127, 119, 221, 0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 12px;
}

.ai-section:last-of-type {
  margin-bottom: 0;
}

.ai-section h3 {
  margin: 0 0 10px;
  font-family: var(--font-brand);
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.ai-section p,
.ai-section ol,
.ai-section ul {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-primary);
}

.ai-section ol,
.ai-section ul {
  padding-left: 22px;
}

.ai-section li {
  margin-bottom: 8px;
}

.ai-section li:last-child {
  margin-bottom: 0;
}

.ai-section code {
  font-family: var(--font-brand);
  font-size: 13px;
  background: rgba(127, 119, 221, 0.12);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--text-primary);
  white-space: nowrap;
}

.ai-panel-footnote {
  margin: 18px 0 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.sample-cta {
  margin-top: 56px;
  padding: 40px 32px;
  text-align: center;
  background: linear-gradient(
    180deg,
    rgba(127, 119, 221, 0.08) 0%,
    transparent 100%
  );
  border: 1px solid var(--border);
  border-radius: 12px;
}

.sample-cta h2 {
  font-size: 26px;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}

.sample-cta p {
  margin: 0 auto 24px;
  max-width: 560px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .sample-header h1 {
    font-size: 28px;
  }
  .finding-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .finding-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .finding-meta {
    grid-template-columns: 1fr;
  }
}

/* ─── Hero fade-in + scroll reveal ───────────────────────────── */
/*
   Hero pieces fade in sequentially on first paint so the page
   doesn't slam into the viewer all at once. Section-level reveals
   are handled by an IntersectionObserver in index.html — the
   .reveal-on-scroll class applies the starting state, and
   .reveal-active (added by the observer) animates to the rest.

   prefers-reduced-motion strips animations entirely so users with
   vestibular sensitivity get a static, fully-rendered page on
   load.
*/

.hero-eyebrow,
.hero-headline,
.hero-subhead,
.hero-ctas,
.hero-providers,
.hero-visual {
  opacity: 0;
  transform: translateY(16px);
  animation: heroFadeIn 600ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-eyebrow   { animation-delay: 100ms; }
.hero-headline  { animation-delay: 200ms; }
.hero-subhead   { animation-delay: 300ms; }
.hero-ctas      { animation-delay: 400ms; }
.hero-providers { animation-delay: 500ms; }
.hero-visual    { animation-delay: 350ms; }

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 600ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.reveal-active {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow,
  .hero-headline,
  .hero-subhead,
  .hero-ctas,
  .hero-providers,
  .hero-visual,
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* ─── Card hover lift ─────────────────────────────────────────── */
/*
   Card classes: the feature and problem cards live under .card.feature
   / .card.pain (not the spec's .feature-card / .problem-card — the
   landing page builds them from a shared .card primitive). The
   pricing cards use the .pricing-card family and already lift -12px
   in the featured base state, so its hover lifts further.
*/

.card.feature,
.card.pain,
.pricing-card {
  transition:
    transform 200ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 200ms;
}

.card.feature:hover,
.card.pain:hover {
  transform: translateY(-4px);
  border-color: rgba(127, 119, 221, 0.4);
}

.pricing-card:hover {
  transform: translateY(-6px);
}

.pricing-card-featured:hover {
  /* Base state already at translateY(-12px); hover lifts to -16. */
  transform: translateY(-16px);
}

@media (prefers-reduced-motion: reduce) {
  .card.feature:hover,
  .card.pain:hover,
  .pricing-card:hover,
  .pricing-card-featured:hover {
    transform: none;
  }
}

/* ─── Lightbox ────────────────────────────────────────────────── */
/*
   Click-to-zoom for screenshot thumbnails. Triggers are <button>
   so they're keyboard-accessible — Tab to focus, Enter / Space to
   activate. Without JavaScript, the buttons just look like the
   image: every screenshot remains visible, only the zoom is gone.
*/

.screenshot-trigger {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  background: none;
  border: 0;
  cursor: zoom-in;
  border-radius: 8px;
}

.screenshot-trigger:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 4px;
}

.screenshot-trigger img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 200ms ease;
}

.screenshot-trigger:hover img,
.screenshot-trigger:focus-visible img {
  transform: scale(1.02);
}

@media (prefers-reduced-motion: reduce) {
  .screenshot-trigger img {
    transition: none;
  }
  .screenshot-trigger:hover img,
  .screenshot-trigger:focus-visible img {
    transform: none;
  }
}

.lightbox[hidden] {
  /* The class rule below sets display:flex, which would normally win
     over the [hidden] attribute's UA display:none and let the modal
     intercept pointer events on every page. Keep the attribute
     authoritative. */
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: zoom-out;
  opacity: 0;
  transition: opacity 200ms ease;
}

.lightbox[data-open="true"] {
  opacity: 1;
}

.lightbox-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  cursor: default;
}

.lightbox-close {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  z-index: 10000;
  transition: background 150ms;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-close:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

body.lightbox-open {
  overflow: hidden;
}

/* ─── Responsive ──────────────────────────────────────────────── */

@media (max-width: 960px) {
  .hero-inner,
  .pillar {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .pillar-reverse {
    direction: ltr;
  }
  .cards-3,
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-headline {
    font-size: 44px;
  }
  .section-title {
    font-size: 28px;
  }
  .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  section {
    padding: 64px 0;
  }
  .cards-3,
  .cards-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-headline {
    font-size: 36px;
  }
  .hero-sub {
    font-size: 16px;
  }
  .section-title {
    font-size: 24px;
  }
  .price-num {
    font-size: 26px;
  }
  .nav-cta {
    padding: 8px 14px;
    font-size: 13px;
  }
  .proof-icons {
    gap: 18px;
  }
}

@media (max-width: 380px) {
  .container {
    padding: 0 16px;
  }
  .nav-inner {
    height: 56px;
  }
  .brand-wordmark {
    font-size: 12px;
  }
}
