/* ============================================================
   LaunchBook by Celarin — marketing site
   Palette: Celarin Theme v2 (docs/launchbook-theme-system-v2.md) —
   warm ivory canvas, deep-navy bands, rose-mauve warmth.
   Never pure white, never true black.
   Type: Source Serif 4 (display) · Inter (body) · IBM Plex Mono (data)
   No build step. estimator.html shares this file — keep the
   "estimator aliases" block when renaming tokens.
   ============================================================ */

:root {
  /* surfaces */
  --ivory: #fbf6ec; /* background */
  --paper: #fff8ef; /* surface */
  --ivory-2: #f6eadf; /* surface-muted */
  --line: #e8d8c7; /* border */

  /* text */
  --ink: #183a59;
  --ink-2: #4f5f6c; /* text-secondary, deepened a step for body copy on ivory */
  --ink-3: #66737e;
  --on-dark: #fff8ef; /* sidebar-text: the "white" on navy */

  /* brand */
  --navy: #0e4773;
  --navy-deep: #082f52;
  --navy-abyss: #062845; /* navy-deeper */
  --navy-hover: #123f68;
  --mauve: #b87386;
  --mauve-soft: #f1dde1;
  --mauve-bright: #eba3b7; /* brand mauve, lifted to read as COLOUR (not a pale tint) on deep navy */
  --mauve-fg: #7a3d68;
  --teal: #7fa7a5;

  /* status (shared with the app) */
  --sage: #6f957a; /* on-track */
  --amber: #d7a856; /* warning */
  --rose: #b94f59; /* critical */

  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --w: 1180px;
  --r: 14px;
  --nav-h: 70px;

  /* estimator aliases (estimator.html reads these names) */
  --ivory-soft: var(--paper);
  --ivory-muted: var(--ivory-2);
  --border: var(--line);
  --radius: var(--r);
  --shadow-md: 0 12px 32px -16px rgba(8, 47, 82, 0.25);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap {
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 32px;
}
section {
  padding: 104px 0;
  scroll-margin-top: 80px;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 200;
  background: var(--paper);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 8px;
}
.skip:focus {
  left: 12px;
}

/* ---------------- shared type ---------------- */
.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mauve-fg);
  margin-bottom: 16px;
}

h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.06;
  letter-spacing: -0.028em;
  font-weight: 600;
}
h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 3.5vw, 42px);
  line-height: 1.16;
  letter-spacing: -0.022em;
  font-weight: 600;
  max-width: 26ch;
  text-wrap: balance;
}
/* A heading that is one thought and must not wrap on a wide screen. */
h2.one-line {
  max-width: none;
}
h3 {
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.22;
  letter-spacing: -0.018em;
  font-weight: 600;
}

.lead {
  font-size: 18px;
  line-height: 1.62;
  color: var(--ink-2);
  max-width: 62ch;
  margin-top: 16px;
}

.section-head {
  margin-bottom: 56px;
}
.section-head h2 {
  margin: 0;
}
.section-head.center {
  text-align: center;
}
.section-head.center h2,
.section-head.center .lead {
  margin-left: auto;
  margin-right: auto;
}

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 100px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
}
.btn:focus-visible,
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--mauve);
  outline-offset: 3px;
}
.btn-sm {
  padding: 9px 18px;
  font-size: 14px;
}
.btn-primary {
  background: var(--navy);
  color: var(--on-dark);
}
.btn-primary:hover {
  background: var(--navy-hover);
  transform: translateY(-1px);
}
.btn-cream {
  background: var(--ivory);
  color: var(--navy-deep);
}
.btn-cream:hover {
  background: var(--paper);
  transform: translateY(-1px);
}
.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--navy);
  background: rgba(14, 71, 115, 0.04);
}
.btn-ghost-dark {
  border-color: rgba(255, 248, 239, 0.28);
  color: var(--on-dark);
  background: transparent;
}
.btn-ghost-dark:hover {
  border-color: var(--on-dark);
  background: rgba(255, 248, 239, 0.08);
}

/* ---------------- the tagline stamp ---------------- */
.stamp {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mauve-soft);
}
.stamp span {
  opacity: 0;
  animation: stampIn 0.5s ease forwards;
}
.stamp span:nth-child(1) {
  animation-delay: 0.5s;
}
.stamp span:nth-child(2) {
  animation-delay: 0.85s;
}
.stamp span:nth-child(3) {
  animation-delay: 1.2s;
}
.stamp span:nth-child(4) {
  animation-delay: 1.55s;
}
@keyframes stampIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   NAV — position:fixed (sticky + backdrop-filter mis-paints in Chrome)
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(251, 246, 236, 0.97);
  border-bottom: 1px solid var(--line);
  transition:
    background 0.25s ease,
    border-color 0.25s ease;
}
.nav.at-top {
  background: transparent;
  border-bottom-color: transparent;
}
.nav.at-top .nav-logo {
  opacity: 0;
  pointer-events: none;
}
.nav.at-top .nav-links a:not(.btn) {
  color: rgba(255, 248, 239, 0.78);
}
.nav.at-top .nav-links a:not(.btn):hover {
  color: var(--on-dark);
}
.nav.at-top .nav-links .btn-primary {
  background: var(--ivory);
  color: var(--navy-deep);
}
.nav.at-top .nav-burger {
  color: var(--on-dark);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  width: 100%;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: opacity 0.25s ease;
}
.nav-logo img {
  height: 30px;
  width: auto;
}
.nav-logo .product {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  padding-left: 12px;
  border-left: 1px solid var(--line);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}
.nav-links a:not(.btn) {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
}
.nav-links a:not(.btn):hover {
  color: var(--navy);
}
.nav-burger {
  display: none;
  background: none;
  border: 0;
  color: var(--ink);
  margin-left: auto;
  cursor: pointer;
  padding: 6px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background:
    radial-gradient(1100px 600px at 80% 6%, rgba(184, 115, 134, 0.22), transparent 62%),
    radial-gradient(900px 520px at 5% 90%, rgba(14, 71, 115, 0.55), transparent 60%), var(--navy-abyss);
  color: var(--on-dark);
  padding: 148px 0 0;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 248, 239, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 248, 239, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(900px 520px at 50% 30%, #000, transparent 78%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
}
.hero-brandline {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 38px;
}
.hero-brand {
  height: 40px;
  width: auto;
}
.hero-divider {
  width: 1px;
  height: 26px;
  background: rgba(255, 248, 239, 0.22);
}
.hero-product {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--on-dark);
}
.hero h1 {
  color: var(--on-dark);
}
.hero h1 .accent {
  color: var(--mauve-bright);
}
.hero .lead {
  color: rgba(255, 248, 239, 0.76);
  margin-top: 26px;
  max-width: 58ch;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  margin-top: 34px;
  flex-wrap: wrap;
}

/* The hero: headline across the top, then the intro on the left and the AI panel beside it (wide screens);
   stacked below 1100px. */
@media (min-width: 1100px) {
  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
    column-gap: 56px;
    align-items: start;
  }
  .hero-brandline,
  .hero h1,
  .hero .stamp {
    grid-column: 1 / -1;
  }
  .hero-ai-panel {
    margin-top: 30px;
  }
}
.hero-left .lead {
  max-width: 60ch;
}
/* the AI panel: its two sides — built into every screen, and wherever you work */
.hero-ai-panel {
  position: relative;
  margin-top: 34px;
  padding: 24px 24px 20px;
  border-radius: 20px;
  color: rgba(255, 248, 239, 0.86);
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(184, 115, 134, 0.22), transparent 70%),
    linear-gradient(var(--navy-deep), var(--navy-deep)) padding-box,
    linear-gradient(140deg, #8fa6ec, #ae90c0, #dca0b2) border-box;
  border: 1px solid transparent;
  box-shadow: 0 0 60px -18px rgba(174, 144, 192, 0.6);
}
.hap-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.hap-badge {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(120deg, #6f86d6, #b87386);
}
.hap-title {
  font-size: 24px;
  line-height: 1.2;
  color: var(--on-dark);
}
.hap-part {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 248, 239, 0.12);
}
.hap-k {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mauve-bright);
  margin-bottom: 10px;
}
/* Plan · Run · Prove — the intro's own steps, each with what the AI does there */
.hap-steps {
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
}
.hap-steps li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: baseline;
}
.hap-step {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  padding: 3px 0;
  border-radius: 6px;
  color: var(--on-dark);
  background: rgba(174, 144, 192, 0.28);
}
.hap-reach {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.hap-reach li {
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 100px;
  color: var(--on-dark);
  border: 1px solid rgba(255, 248, 239, 0.2);
  background: rgba(255, 248, 239, 0.06);
}
.hap-sum {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.55;
}
.hap-go {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--mauve-bright);
  text-decoration: none;
}
.hap-go:hover {
  text-decoration: underline;
}
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
  list-style: none;
}
.hero-chips li {
  font-size: 13px;
  color: rgba(255, 248, 239, 0.74);
  border: 1px solid rgba(255, 248, 239, 0.16);
  background: rgba(255, 248, 239, 0.04);
  border-radius: 100px;
  padding: 6px 12px;
}
.hero-note {
  margin-top: 22px;
  max-width: 62ch;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 248, 239, 0.6);
}
/* the experience line stands out in the brand mauve (PO 2026-11-14) */
.hero-note strong {
  color: var(--mauve-bright);
  font-weight: 600;
}
.hero .stamp {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 248, 239, 0.14);
}

.hero-shot {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 64px auto 0;
  padding: 0 32px;
}

/* ---------------- browser frame ---------------- */
.frame {
  border-radius: 12px;
  overflow: hidden;
  background: var(--navy-deep);
  border: 1px solid rgba(255, 248, 239, 0.12);
  box-shadow: 0 40px 90px -30px rgba(6, 40, 69, 0.55);
}
.hero-shot .frame {
  border-radius: 12px 12px 0 0;
  border-bottom: 0;
}
.frame-bar {
  display: flex;
  gap: 7px;
  padding: 11px 14px;
  background: rgba(255, 248, 239, 0.06);
  border-bottom: 1px solid rgba(255, 248, 239, 0.08);
}
.frame-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 248, 239, 0.18);
}
.frame img {
  width: 100%;
  height: auto;
}
.frame.on-light {
  background: var(--paper);
  border-color: var(--line);
  box-shadow:
    0 1px 2px rgba(24, 58, 89, 0.04),
    0 24px 60px -24px rgba(24, 58, 89, 0.22);
}
.frame.on-light .frame-bar {
  background: var(--ivory-2);
  border-bottom-color: var(--line);
}
.frame.on-light .frame-bar i {
  background: var(--line);
}

.media-cap {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 16px;
  text-align: center;
}

/* ============================================================
   PROBLEM
   ============================================================ */
.incumbent {
  max-width: 860px;
  margin-bottom: 56px;
}
.incumbent .big {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.incumbent .big b {
  color: var(--mauve-fg);
  font-weight: 600;
}
.incumbent .sub {
  margin-top: 16px;
  font-size: 18px;
  color: var(--ink-2);
  max-width: 64ch;
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 30px 30px 32px;
}
.card .k {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--mauve-fg);
  display: block;
  margin-bottom: 16px;
}
.card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}
.card p {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.62;
}

/* ============================================================
   MISSION CONTROL + PRODUCT TOUR (dark band)
   ============================================================ */
.dark-band {
  background: var(--navy-deep);
  color: var(--on-dark);
}
.dark-band h2,
.dark-band h3 {
  color: var(--on-dark);
}
.dark-band .lead {
  color: rgba(255, 248, 239, 0.72);
}
.dark-band .eyebrow {
  color: var(--mauve-soft);
}

.mc-questions {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: rgba(255, 248, 239, 0.1);
  border: 1px solid rgba(255, 248, 239, 0.1);
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 44px;
  list-style: none;
}
.mc-questions li {
  background: var(--navy-deep);
  padding: 22px 20px 24px;
}
.mc-questions .q {
  display: block;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--on-dark);
  line-height: 1.3;
  margin-bottom: 8px;
}
.mc-questions .a {
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255, 248, 239, 0.66);
}

.tour-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}
.tour-tab {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 100px;
  border: 1px solid rgba(255, 248, 239, 0.2);
  background: transparent;
  color: rgba(255, 248, 239, 0.76);
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}
.tour-tab:hover {
  color: var(--on-dark);
  border-color: rgba(255, 248, 239, 0.45);
}
.tour-tab[aria-selected="true"] {
  background: var(--ivory);
  color: var(--navy-deep);
  border-color: var(--ivory);
}

.tour-panel[hidden] {
  display: none;
}
.tour-cap {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 32px;
  align-items: start;
  margin: 4px 0 22px;
}
.tour-cap h3 {
  font-size: 22px;
}
.tour-cap p {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 248, 239, 0.72);
}

.mc-extras {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 64px;
}
.mc-extra {
  border: 1px solid rgba(255, 248, 239, 0.12);
  background: rgba(255, 248, 239, 0.03);
  border-radius: var(--r);
  padding: 24px 26px;
}
.mc-extra h3 {
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 8px;
}
.mc-extra p {
  font-size: 14px;
  line-height: 1.62;
  color: rgba(255, 248, 239, 0.68);
}

/* ============================================================
   THE FOUR ACTS
   ============================================================ */
.act {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  padding: 68px 0;
  border-top: 1px solid var(--line);
}
.act.flip .act-media {
  order: -1;
}
.act-num {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--mauve-fg);
  margin-bottom: 18px;
}
.act-num span {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-left: 12px;
  border-left: 1px solid var(--line);
}
.act h3 {
  max-width: 18ch;
}
.act-copy > p {
  font-size: 16.5px;
  color: var(--ink-2);
  margin-top: 14px;
  line-height: 1.65;
  max-width: 48ch;
}

.feature-list {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
/* Block flow, not flex: a flex <li> turns the bold lead-in and the sentence after it into two columns. */
.feature-list li {
  position: relative;
  padding-left: 17px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mauve);
}
.feature-list strong {
  color: var(--ink);
  font-weight: 600;
}

.pullquote {
  margin-top: 28px;
  padding-left: 20px;
  border-left: 2px solid var(--mauve);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.45;
  color: var(--ink);
  font-style: italic;
}

/* ---------------- the animated dependency graph (abstracted) ---------------- */
.dag-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px 24px 20px;
  box-shadow:
    0 1px 2px rgba(24, 58, 89, 0.04),
    0 24px 60px -28px rgba(24, 58, 89, 0.2);
}
.dag-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.dag-title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}
.dag-legend {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.lg-line {
  width: 14px;
  height: 0;
  border-top: 1.8px solid var(--sage);
}
.lg-line.fail {
  border-top-style: dashed;
  border-color: var(--rose);
  margin-left: 6px;
}
#dag {
  width: 100%;
  height: auto;
  display: block;
}
#dag .edge {
  stroke: var(--line);
  transition:
    stroke 0.45s ease,
    opacity 0.45s ease;
}
#dag .edge.lit {
  stroke: var(--sage);
}
#dag .edge.fail {
  stroke: var(--line);
  opacity: 0.5;
}
#dag .edge.fail.lit {
  stroke: var(--rose);
  opacity: 1;
}
#dag .node rect {
  fill: var(--ivory);
  stroke: var(--line);
  stroke-width: 1.4;
  transition:
    fill 0.4s ease,
    stroke 0.4s ease;
}
#dag .node text {
  text-anchor: middle;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  fill: var(--ink);
}
#dag .node text.sub {
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  fill: var(--ink-3);
  transition: fill 0.4s ease;
}
#dag .node.done rect {
  fill: rgba(111, 149, 122, 0.14);
  stroke: var(--sage);
}
#dag .node.done text.sub {
  fill: #4c7458;
}
#dag .node.running rect {
  fill: rgba(14, 71, 115, 0.08);
  stroke: var(--navy);
  animation: dagPulse 1.5s ease-in-out infinite;
}
#dag .node.running text.sub {
  fill: var(--navy);
}
@keyframes dagPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.62;
  }
}
#dag .node.failed rect {
  fill: rgba(185, 79, 89, 0.12);
  stroke: var(--rose);
  animation: none;
}
#dag .node.failed text.sub {
  fill: var(--rose);
}
#dag .node.held rect {
  fill: var(--ivory-2);
  stroke: var(--amber);
  stroke-dasharray: 4 3;
}
#dag .node.held text.sub {
  fill: #8f6a22;
}
#dag .node.active rect {
  fill: rgba(184, 115, 134, 0.13);
  stroke: var(--mauve);
}
#dag .node.active text.sub {
  fill: var(--mauve-fg);
}
.dag-caption {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  min-height: 42px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
  transition: opacity 0.3s ease;
}
.dag-caption.swap {
  opacity: 0;
}
.dag-caption strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------------- the rehearsal ladder (abstracted) ----------------
   Named rehearse-ladder: estimator.html styles its own .ladder.          */
.rehearse-ladder {
  background: var(--navy-abyss);
  border-radius: var(--r);
  padding: 28px 30px 26px;
  color: var(--on-dark);
  box-shadow: 0 24px 60px -24px rgba(6, 40, 69, 0.4);
}
.ladder-head {
  margin-bottom: 22px;
}
.ladder-title {
  display: block;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
}
.ladder-sub {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 248, 239, 0.55);
}
.rung {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  margin-bottom: 6px;
  border-radius: 9px;
  background: rgba(255, 248, 239, 0.04);
  border: 1px solid rgba(255, 248, 239, 0.08);
}
.rung.live {
  background: rgba(184, 115, 134, 0.14);
  border-color: rgba(184, 115, 134, 0.55);
}
.rung-tier {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 248, 239, 0.85);
  width: 92px;
  flex-shrink: 0;
}
.rung-bar {
  flex: 1;
  height: 5px;
  border-radius: 100px;
  background: rgba(255, 248, 239, 0.1);
  overflow: hidden;
}
.rung-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 100px;
  background: var(--sage);
  transition: width 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}
.rung.live .rung-bar i {
  background: var(--mauve);
}
.rung-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255, 248, 239, 0.6);
  width: 62px;
  text-align: right;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.rung.live .rung-meta {
  color: var(--mauve-soft);
}
.ladder-insight {
  margin-top: 20px;
  padding: 15px 18px;
  border-left: 2px solid var(--sage);
  border-radius: 0 8px 8px 0;
  background: rgba(255, 248, 239, 0.05);
  font-size: 14px;
  line-height: 1.58;
  color: rgba(255, 248, 239, 0.82);
}
.ladder-insight strong {
  color: var(--on-dark);
  font-weight: 600;
}

/* ---------------- the audit timeline (abstracted) ---------------- */
.timeline {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 12px 26px;
  box-shadow: 0 1px 2px rgba(24, 58, 89, 0.04);
}
.tl-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.tl-row:last-child {
  border-bottom: 0;
}
.tl-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.tl-row.ok .tl-dot {
  background: var(--sage);
}
.tl-row.warn .tl-dot {
  background: var(--amber);
}
.tl-row.mauve .tl-dot {
  background: var(--mauve);
}
.tl-t {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}
.tl-m {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  text-align: right;
}

/* ============================================================
   BANDS
   ============================================================ */
.band {
  background: var(--ivory-2);
}
.band .card,
.band .kind-card,
.band .pb-card {
  background: var(--ivory);
}

/* ---------------- automation kinds ---------------- */
.auto-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.kind-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.kind-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 20px 22px;
}
.kind-chip {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(14, 71, 115, 0.08);
  border-radius: 6px;
  padding: 3px 8px;
  margin-bottom: 12px;
}
.kind-card h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.kind-card p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
}

/* ---------------- playbooks ---------------- */
.pb-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.pb-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 22px 24px;
}
.pb-fam {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mauve-fg);
  margin-bottom: 10px;
}
.pb-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
}
.pb-byo {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 22px;
  padding: 24px 28px;
  border: 1px dashed var(--mauve);
  border-radius: var(--r);
  background: rgba(241, 221, 225, 0.45);
}
.pb-byo .t {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}
.pb-byo .d {
  font-size: 15px;
  color: var(--ink-2);
  margin-top: 4px;
  max-width: 64ch;
}
.pb-byo .btn {
  margin-left: auto;
  white-space: nowrap;
}

/* ---------------- use cases ---------------- */
.uc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.uc {
  background: var(--ivory);
  padding: 28px 24px;
  transition: background 0.18s ease;
}
.uc:hover {
  background: var(--paper);
}
.uc h3 {
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0;
}
.uc p {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.55;
}
.uc-note {
  margin-top: 28px;
  font-size: 14.5px;
  color: var(--ink-2);
  text-align: center;
}
.uc-note strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------------- personas ---------------- */
.persona-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.persona {
  border-top: 2px solid var(--navy);
  padding-top: 24px;
}
.persona:nth-child(2) {
  border-top-color: var(--mauve);
}
.persona:nth-child(3) {
  border-top-color: var(--sage);
}
.persona .who {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: block;
  margin-bottom: 10px;
}
.persona h3 {
  font-size: 22px;
  margin-bottom: 12px;
}
.persona blockquote {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink);
  font-style: italic;
  margin-bottom: 12px;
}
.persona p {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.62;
}

/* ---------------- AI ---------------- */
/* ---- where you reach the AI: a dark panel, the AI at the centre, four places around it ---- */
.ai-orbit {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.05fr 1fr;
  grid-template-areas: "n1 core n3" "n2 core n4";
  gap: 26px 96px;
  align-items: center;
  padding: 48px;
  margin: 10px 0 48px;
  border-radius: 24px;
  overflow: hidden;
  color: var(--on-dark);
  background:
    radial-gradient(700px 380px at 50% 50%, rgba(143, 166, 236, 0.16), transparent 70%),
    radial-gradient(900px 500px at 100% 0%, rgba(184, 115, 134, 0.18), transparent 60%),
    linear-gradient(160deg, var(--navy-deep), var(--navy-abyss));
  box-shadow: 0 40px 80px -40px rgba(8, 47, 82, 0.55);
}
/* a faint dot grid, like the plan graph behind the video's title cards */
.ai-orbit::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 248, 239, 0.09) 1px, transparent 1.4px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000, transparent);
  pointer-events: none;
}
.ai-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.ai-links path {
  fill: none;
  vector-effect: non-scaling-stroke;
}
.ai-links .base path {
  stroke: rgba(255, 248, 239, 0.16);
  stroke-width: 1.5;
}
.ai-links .flow path {
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 3 22;
  animation: ai-signal 2.4s linear infinite;
}
.ai-links .flow .d2 {
  animation-delay: -0.6s;
}
.ai-links .flow .d3 {
  animation-delay: -1.2s;
}
.ai-links .flow .d4 {
  animation-delay: -1.8s;
}
@keyframes ai-signal {
  to {
    stroke-dashoffset: -100;
  }
}

.ai-core {
  grid-area: core;
  position: relative;
  text-align: center;
}
.ai-orb {
  position: relative;
  width: 148px;
  height: 148px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 38%, #1b5487, var(--navy-deep) 70%);
  box-shadow:
    0 0 0 1px rgba(255, 248, 239, 0.14),
    0 0 60px 6px rgba(174, 144, 192, 0.35);
}
.ai-orb img {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 0 14px rgba(235, 163, 183, 0.55));
}
.ai-orb .ring {
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1.5px solid rgba(235, 163, 183, 0.55);
  animation: ai-ring 3.2s ease-out infinite;
}
.ai-orb .ring.r2 {
  animation-delay: 1.6s;
}
@keyframes ai-ring {
  from {
    transform: scale(1);
    opacity: 0.8;
  }
  to {
    transform: scale(1.7);
    opacity: 0;
  }
}
.ai-core-t {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
}
.ai-core-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}
.ai-core-tags span {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 100px;
  color: rgba(255, 248, 239, 0.82);
  border: 1px solid rgba(255, 248, 239, 0.18);
  background: rgba(255, 248, 239, 0.05);
}

.ai-node {
  position: relative;
  padding: 18px 18px 16px;
  border-radius: 16px;
  background: rgba(255, 248, 239, 0.06);
  border: 1px solid rgba(255, 248, 239, 0.14);
  backdrop-filter: blur(6px);
}
.ai-node.n1 {
  grid-area: n1;
}
.ai-node.n2 {
  grid-area: n2;
}
.ai-node.n3 {
  grid-area: n3;
}
.ai-node.n4 {
  grid-area: n4;
}
.ai-node-h {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.ai-node-h .ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(143, 166, 236, 0.3), rgba(220, 160, 178, 0.3));
}
.ai-node-h .ico svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: var(--on-dark);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ai-node-h b {
  display: block;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
}
.ai-node-h small {
  display: block;
  font-size: 12.5px;
  color: rgba(255, 248, 239, 0.62);
}
/* the little examples: real behaviour, drawn small */
.ai-demo {
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 13px;
  line-height: 1.45;
  background: rgba(4, 22, 40, 0.55);
  border: 1px solid rgba(255, 248, 239, 0.08);
}
.ai-demo .ask {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  color: #fff;
  background: var(--mauve);
}
.ai-demo .q {
  margin-top: 8px;
  color: rgba(255, 248, 239, 0.88);
}
.ai-demo.chat p {
  padding: 7px 10px;
  border-radius: 10px;
  width: fit-content;
  max-width: 92%;
}
.ai-demo.chat .me {
  background: rgba(255, 248, 239, 0.1);
}
.ai-demo.chat .bot {
  margin: 6px 0 0 auto;
  background: rgba(174, 144, 192, 0.35);
}
.ai-demo.approval .k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mauve-bright);
}
.ai-demo.approval .t {
  margin-top: 4px;
  color: rgba(255, 248, 239, 0.9);
}
.ai-demo .btns {
  display: flex;
  gap: 6px;
  margin-top: 9px;
}
.ai-demo .btns span {
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 6px;
  border: 1px solid rgba(255, 248, 239, 0.24);
}
.ai-demo .btns .ok {
  background: var(--sage);
  border-color: var(--sage);
  color: #fff;
}
.ai-demo.term {
  font-family: var(--mono);
  font-size: 12px;
}
.ai-demo.term .p {
  color: var(--mauve-bright);
}
.ai-demo.term .tool {
  margin-top: 5px;
  color: #a9bdf3;
}

/* how a change happens: three light steps */
.ai-flow {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.ai-flow li {
  position: relative;
  padding: 24px 26px 26px;
  border-radius: var(--r);
  background: var(--paper);
  border: 1px solid var(--line);
}
.ai-flow li:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -17px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mauve);
  font-weight: 700;
  font-size: 18px;
}
.ai-flow .n {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--on-dark);
  background: var(--navy-deep);
}
.ai-flow h3 {
  font-size: 20px;
  margin: 12px 0 8px;
}
.ai-flow p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
}
@media (max-width: 980px) {
  .ai-orbit {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "core core" "n1 n3" "n2 n4";
    gap: 16px;
    padding: 32px 24px;
  }
  .ai-links {
    display: none;
  }
  .ai-flow {
    grid-template-columns: 1fr;
  }
  .ai-flow li:not(:last-child)::after {
    content: "↓";
    right: auto;
    left: 50%;
    top: auto;
    bottom: -19px;
    transform: translateX(-50%);
  }
}
@media (max-width: 600px) {
  .ai-orbit {
    grid-template-columns: 1fr;
    grid-template-areas: "core" "n1" "n2" "n3" "n4";
    padding: 28px 16px;
  }
}
.ai-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.ai-card {
  border-radius: var(--r);
  padding: 28px 30px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.ai-card.doesnt {
  background: var(--ivory-2);
}
.ai-card .k {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: block;
}
.ai-card.does .k {
  color: #4c7458;
}
.ai-card.doesnt .k {
  color: var(--rose);
}
.ai-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ai-card li {
  display: flex;
  gap: 10px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
}
.ai-card.does li::before {
  content: "✓";
  color: var(--sage);
  font-weight: 700;
  flex-shrink: 0;
}
.ai-card.doesnt li::before {
  content: "✕";
  color: var(--rose);
  font-weight: 700;
  flex-shrink: 0;
}

.ai-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.ai-tile {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px 26px;
}
.ai-tile h3 {
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 8px;
}
.ai-tile p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.62;
}

/* ---------------- trust ---------------- */
/* credibility: the founders' experience, at the top of the Security section */
.cred {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-bottom: 36px;
  padding: 28px 32px;
  border-radius: var(--r);
  background: rgba(255, 248, 239, 0.05);
  border: 1px solid rgba(255, 248, 239, 0.14);
}
.cred-num {
  flex-shrink: 0;
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(120deg, #8fa6ec, #dca0b2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-align: center;
}
.cred-num span {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mauve-bright);
  -webkit-text-fill-color: var(--mauve-bright);
}
.cred-text h3 {
  font-size: 22px;
  color: var(--on-dark);
}
.cred-text p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 248, 239, 0.74);
}
@media (max-width: 600px) {
  .cred {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 22px;
  }
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px 40px;
}
.trust h3 {
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.trust h3::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--mauve);
  transform: rotate(45deg);
  flex-shrink: 0;
}
.trust p {
  font-size: 14px;
  color: rgba(255, 248, 239, 0.68);
  line-height: 1.62;
}

/* ---------------- pricing ---------------- */
.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 940px;
  margin: 0 auto;
}
.price-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 32px 34px 30px;
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border-color: var(--navy);
  box-shadow: 0 16px 48px -20px rgba(14, 71, 115, 0.3);
}
.price-tag {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mauve-fg);
  margin-bottom: 12px;
}
.price-card h3 {
  font-size: 26px;
}
.price-basis {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
}
.price-sub {
  font-size: 14.5px;
  color: var(--ink-2);
  margin-top: 12px;
  line-height: 1.6;
}
.size-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}
.size-row span {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 4px 10px;
  background: var(--ivory);
}
.price-list {
  list-style: none;
  margin: 22px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.price-list li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
}
.price-list li::before {
  content: "—";
  color: var(--ink-3);
  flex-shrink: 0;
}
.price-card .btn {
  margin-top: 26px;
  align-self: flex-start;
}
.price-note {
  max-width: 940px;
  margin: 22px auto 0;
  padding: 22px 26px;
  background: var(--ivory-2);
  border: 1px solid var(--line);
  border-radius: 11px;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.65;
}
.price-note strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------------- why / founder ---------------- */
.why-wrap {
  max-width: 780px;
}
.why-body p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-2);
  margin-bottom: 20px;
}
.why-body b {
  color: var(--ink);
  font-weight: 600;
}
.why-quote {
  margin-top: 32px;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
}
.why-quote p {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.42;
  color: var(--ink);
  font-style: italic;
  margin-bottom: 12px;
}
.why-quote footer {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------------- faq ---------------- */
.faq {
  max-width: 820px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 40px 24px 0;
  position: relative;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 20px;
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 400;
  color: var(--mauve-fg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  font-size: 15.5px;
  line-height: 1.68;
  color: var(--ink-2);
  padding: 0 40px 26px 0;
}

/* ---------------- cta ---------------- */
.cta {
  padding: 0;
}
.cta-box {
  background: radial-gradient(800px 420px at 50% 0%, rgba(184, 115, 134, 0.26), transparent 65%), var(--navy-abyss);
  border-radius: 20px;
  color: var(--on-dark);
  padding: 76px 56px 64px;
  text-align: center;
}
.cta-box .eyebrow {
  color: var(--mauve-soft);
}
.cta-box h2 {
  color: var(--on-dark);
  margin: 0 auto;
  max-width: 20ch;
}
.cta-box > p {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255, 248, 239, 0.74);
  max-width: 58ch;
  margin: 18px auto 32px;
}
.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-mail {
  margin-top: 18px;
  font-size: 14px;
  color: rgba(255, 248, 239, 0.6);
}
.cta-mail a {
  color: var(--on-dark);
}
.cta-box .stamp {
  justify-content: center;
  margin-top: 40px;
}

/* ---------------- footer ---------------- */
.site-footer {
  background: var(--navy-abyss);
  padding: 44px 0;
  margin-top: 104px;
}
.foot {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.foot img {
  height: 26px;
  width: auto;
}
.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 13.5px;
  color: rgba(255, 248, 239, 0.72);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--on-dark);
}
.foot small {
  font-size: 13px;
  color: rgba(255, 248, 239, 0.55);
  margin-left: auto;
}

/* ---------------- reveal ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------------- the tour video ---------------- */
.play-ico {
  margin-left: -2px;
}
.btn-meta {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  opacity: 0.7;
}
#tour-video {
  padding-top: 0;
}
.video-poster {
  position: relative;
  display: block;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--navy-deep);
  box-shadow:
    var(--shadow-md),
    0 40px 80px -40px rgba(8, 47, 82, 0.45);
  cursor: pointer;
  aspect-ratio: 16 / 9;
}
.video-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.4s ease,
    opacity 0.2s ease;
}
.video-poster:hover img {
  transform: scale(1.015);
  opacity: 0.92;
}
.video-play {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding-left: 5px;
  background: rgba(255, 248, 239, 0.95);
  color: var(--navy-deep);
  box-shadow: 0 10px 30px -8px rgba(6, 40, 69, 0.6);
  transition: transform 0.2s ease;
}
.video-poster:hover .video-play {
  transform: translate(-50%, -50%) scale(1.06);
}
.video-dur {
  position: absolute;
  right: 18px;
  bottom: 16px;
  padding: 5px 11px;
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--on-dark);
  background: rgba(6, 40, 69, 0.78);
}
.video-transcript {
  max-width: 1040px;
  margin: 18px auto 0;
  font-size: 15px;
  color: var(--ink-2);
}
.video-transcript summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  width: max-content;
}
.video-transcript div {
  margin-top: 12px;
  display: grid;
  gap: 10px;
  max-width: 72ch;
  line-height: 1.65;
}
.video-dialog {
  width: min(1200px, 94vw, calc((100vh - 140px) * 16 / 9));
  max-width: none;
  margin: auto; /* the page's margin reset would otherwise pin the modal to the top-left */
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.video-dialog::backdrop {
  background: rgba(4, 22, 40, 0.88);
}
.video-shell {
  position: relative;
}
.video-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: #000;
}
.video-close {
  position: absolute;
  top: -46px;
  right: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 248, 239, 0.3);
  background: transparent;
  color: var(--on-dark);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.video-close:hover {
  background: rgba(255, 248, 239, 0.1);
}
.video-end {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  text-align: center;
  /* opaque: it REPLACES the video's own end card (whose button is only a picture) rather than sitting on it */
  background: radial-gradient(ellipse at 50% 40%, var(--navy) 0%, var(--navy-abyss) 75%);
  color: var(--on-dark);
}
.video-end[hidden] {
  display: none;
}
.video-end-logo {
  height: 34px;
  width: auto;
  opacity: 0.9;
}
.video-end p {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 600;
}
.video-end-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* the Stream player, when the tour is hosted on Cloudflare Stream (it replaces the <video>) */
.video-stream {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 12px;
  background: #000;
}

/* ---------------- booking ---------------- */
.book-dialog {
  width: min(520px, 92vw);
  max-width: none;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(6, 40, 69, 0.6);
}
.book-dialog::backdrop {
  background: rgba(4, 22, 40, 0.7);
}
.book-form {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 30px 30px 26px;
}
.book-form h2 {
  font-size: 26px;
  line-height: 1.2;
}
.book-lead {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}
.book-field {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}
.book-field input,
.book-field textarea {
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}
.book-field textarea {
  resize: vertical;
  line-height: 1.5;
}
.book-hint {
  font-weight: 400;
  color: var(--ink-3);
  margin-left: 4px;
}
.book-field[hidden],
.book-lead[hidden],
.book-alt[hidden],
.book-submit [hidden] {
  display: none;
}
/* the "request ready" panel shown after the email opens */
.book-done {
  display: grid;
  gap: 14px;
  padding: 30px;
}
.book-form[hidden],
.book-done[hidden] {
  display: none;
}
.book-done h2 {
  font-size: 26px;
}
.book-done .btn {
  justify-self: start;
}
.book-field input:focus-visible,
.book-field textarea:focus-visible {
  outline: 2px solid var(--mauve);
  outline-offset: 1px;
}
.book-error {
  font-size: 14px;
  color: var(--rose);
}
.book-error[hidden] {
  display: none;
}
.book-submit {
  justify-self: start;
}
.book-alt {
  font-size: 13px;
  color: var(--ink-3);
}
.book-alt a {
  color: var(--ink);
}
.book-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    /* biome-ignore lint/complexity/noImportantStyles: reduced motion must override every animation on the page */
    animation: none !important;
    /* biome-ignore lint/complexity/noImportantStyles: reduced motion must override every transition on the page */
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .stamp span {
    opacity: 1;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .mc-questions {
    grid-template-columns: repeat(3, 1fr);
  }
  .pb-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-links {
    gap: 18px;
  }
}

@media (max-width: 980px) {
  section {
    padding: 76px 0;
  }
  .wrap {
    padding: 0 22px;
  }

  .nav-burger {
    display: block;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 22px 22px;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a:not(.btn) {
    padding: 10px 0;
  }
  .nav.at-top {
    background: rgba(251, 246, 236, 0.97);
    border-bottom-color: var(--line);
  }
  .nav.at-top .nav-logo {
    opacity: 1;
    pointer-events: auto;
  }
  .nav.at-top .nav-burger {
    color: var(--ink);
  }
  .nav.at-top .nav-links a:not(.btn) {
    color: var(--ink-2);
  }
  .nav.at-top .nav-links .btn-primary {
    background: var(--navy);
    color: var(--on-dark);
  }

  .hero {
    padding-top: 116px;
  }
  .hero-shot {
    margin-top: 48px;
    padding: 0 22px;
  }

  .cards-3,
  .persona-grid,
  .trust-grid,
  .ai-split,
  .ai-tiles,
  .price-grid,
  .mc-extras,
  .auto-grid,
  .tour-cap {
    grid-template-columns: 1fr;
  }
  .tour-cap {
    gap: 10px;
  }
  .uc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .auto-grid {
    gap: 36px;
  }

  .act {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 0;
  }
  .act.flip .act-media {
    order: 0;
  }

  .pb-byo {
    flex-direction: column;
    align-items: flex-start;
  }
  .pb-byo .btn {
    margin-left: 0;
  }

  .cta-box {
    padding: 56px 24px 50px;
    border-radius: 16px;
  }
  .foot small {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .wrap {
    padding: 0 16px;
  }
  .hero-shot {
    padding: 0 16px;
  }
  .mc-questions,
  .uc-grid,
  .pb-grid,
  .kind-grid {
    grid-template-columns: 1fr;
  }
  /* The bar already carries the lockup on a phone; and the desktop line breaks orphan words here. */
  .hero-brandline {
    display: none;
  }
  .hero h1 {
    font-size: 36px;
  }
  .hero h1 br {
    display: none;
  }
  .hero h1 .accent {
    display: block;
    margin-top: 6px;
  }
  .stamp {
    gap: 12px;
    font-size: 11px;
    letter-spacing: 0.14em;
  }
  .tour-tab {
    font-size: 13px;
    padding: 8px 13px;
  }
  .rung {
    gap: 10px;
    padding: 12px;
  }
  .rung-tier {
    width: 78px;
  }
  .tl-row {
    flex-wrap: wrap;
  }
  .tl-m {
    margin-left: 23px;
    text-align: left;
    width: 100%;
  }
  .faq summary {
    font-size: 15.5px;
  }
}
