/* Jiminy: Brand system: Ivory #F7F6F2, Near Black #1C1F1D, Sage #4A9B5F, Gold #C9A84C */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Jost:wght@300;400;600&display=swap');

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

:root {
  --ivory:      #F7F6F2;
  --near-black: #1C1F1D;
  --text:       #1C1F1D;
  --sage:       #4A9B5F;
  --gold:       #C9A84C;
  --muted:      #4E6855;
  --white:      #FFFFFF;
  --surface:    #EDEAE2;
  --border:     #D5D2CA;

  --font-display: 'Jost', 'DIN Alternate', 'Century Gothic', 'Futura', sans-serif;
  --font-body:    'Inter', 'Helvetica Neue', -apple-system, sans-serif;

  /* Type scale */
  --text-display: 3.5rem;
  --text-h1:      2.5rem;
  --text-h2:      1.75rem;
  --text-h3:      1.25rem;
  --text-body-lg: 1.125rem;
  --text-body:    1rem;
  --text-body-sm: 0.875rem;
  --text-caption: 0.75rem;
  --text-eyebrow: 0.6875rem;

  /* Weights */
  --weight-light:    300;
  --weight-regular:  400;
  --weight-semibold: 600;

  /* Tracking */
  --tracking-tight:  -0.01em;
  --tracking-normal: 0;
  --tracking-wide:   0.35em;

  --space-xs:  0.5rem;
  --space-s:   1rem;
  --space-m:   2rem;
  --space-l:   4rem;
  --space-xl:  6rem;
  --space-2xl: 10rem;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  background-color: var(--ivory);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  max-width: 100%;
}

/* ── Utilities ─────────────────────────────────────────────── */

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

/* ── Header ─────────────────────────────────────────────────── */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-m) var(--space-l);
  border-bottom: 1px solid rgba(28, 31, 29, 0.08);
}

.logo-lockup {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  text-decoration: none;
  color: inherit;
  margin-left: -2.5rem;
}

.logo-mark {
  height: 45px;
  width: auto;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.logo-wordmark {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  color: var(--text);
  line-height: 1;
}

.logo-sub {
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: var(--weight-regular);
  letter-spacing: 0.1411em;
  color: var(--sage);
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0;
  padding-left: 1.5rem;
}

/* Dividers between nav links */
.site-nav .nav-link {
  padding: 0 1.25rem;
}
.site-nav .nav-link + .nav-link {
  border-left: 1px solid #DAD8CE;
}

/* Sign in + CTA button row */
.nav-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}

.nav-signin-mini {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.nav-signin-mini:hover { color: var(--sage); }

.nav-link {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--sage);
}

/* Grouped nav dropdowns (Product / Trust & Compliance / Company) --
   the trigger reuses .nav-link for spacing/divider parity with the plain
   top-level links it sits alongside. */
.nav-group {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-group-trigger {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}
.nav-group-trigger::after {
  content: '▾';
  font-size: 0.65em;
}
.nav-group-trigger:hover,
.nav-group-trigger.active,
.nav-group.open .nav-group-trigger {
  color: var(--sage);
}
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  min-width: 210px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 10px 28px rgba(28, 31, 29, 0.12);
  padding: 0.4rem 0;
  z-index: 60;
}
.nav-group.open .nav-dropdown {
  display: block;
}
.nav-dropdown-link {
  display: block;
  padding: 0.55rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
.nav-dropdown-link:hover,
.nav-dropdown-link[aria-current="page"] {
  color: var(--sage);
  background: rgba(74, 155, 95, 0.08);
}

/* ── Main ───────────────────────────────────────────────────── */

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-xl) var(--space-l);
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

/* ── Hero ───────────────────────────────────────────────────── */

.hero {
  margin-bottom: var(--space-xl);
}

.hero-mark {
  display: block;
  width: 72px;
  height: auto;
  margin-bottom: var(--space-m);
}

.hero-question {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.8rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: var(--space-l);
  max-width: 820px;
}

.hero-question-part2 {
  color: var(--sage);
}

.positioning {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text);
  margin-bottom: var(--space-s);
  letter-spacing: 0.01em;
}

.coming-soon {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ── Waitlist ───────────────────────────────────────────────── */

.waitlist {
  margin-top: var(--space-m);
}

.waitlist-form .form-group {
  display: flex;
  gap: var(--space-xs);
  max-width: 480px;
  flex-wrap: wrap;
}

.waitlist-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 0.7rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--white);
  border: 1px solid rgba(28, 31, 29, 0.2);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease;
  border-radius: 2px;
}

.waitlist-form input[type="email"]::placeholder {
  color: rgba(28, 31, 29, 0.35);
}

.waitlist-form input[type="email"]:focus {
  border-color: var(--sage);
}

.waitlist-form button {
  padding: 0.7rem 1.4rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  background: var(--near-black);
  color: var(--ivory);
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
  border-radius: 2px;
  white-space: nowrap;
}

.waitlist-form button:hover {
  background: var(--sage);
}

.form-status {
  margin-top: var(--space-xs);
  font-size: 0.85rem;
  min-height: 1.2em;
  color: var(--muted);
}

.form-status--success { color: var(--sage); }
.form-status--error   { color: #9B524A; }

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

.site-footer {
  padding: var(--space-m) var(--space-l);
  border-top: 1px solid rgba(28, 31, 29, 0.08);
  display: flex;
  align-items: center;
}

.footer-mark {
  width: 18px;
  height: auto;
  opacity: 0.5;
}

/* ── Testers page ───────────────────────────────────────────── */

.testers-main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: var(--space-xl) var(--space-l);
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.testers-block {
  width: 100%;
}

.testers-block h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--text);
  margin-bottom: var(--space-s);
  letter-spacing: 0.01em;
}

.testers-block p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: var(--space-l);
  max-width: 420px;
  line-height: 1.65;
}

.testers-contact {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: var(--space-l);
}
.testers-contact-link {
  font-size: 0.9rem;
  color: var(--sage);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
}
.testers-contact-link:hover { text-decoration: underline; }
.testers-contact-icon {
  width: 24px;
  height: 24px;
  display: block;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.testers-contact-link:hover .testers-contact-icon { opacity: 0.8; transform: translateY(-2px); }

.code-form .code-group {
  display: flex;
  gap: var(--space-xs);
  max-width: 420px;
  flex-wrap: wrap;
}

.code-form input[type="text"] {
  flex: 1;
  min-width: 180px;
  padding: 0.7rem 1rem;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--white);
  border: 1px solid rgba(28, 31, 29, 0.2);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease;
  border-radius: 2px;
}

.code-form input[type="text"]:focus {
  border-color: var(--sage);
}

.code-form button {
  padding: 0.7rem 1.4rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  background: var(--near-black);
  color: var(--ivory);
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
  border-radius: 2px;
  white-space: nowrap;
}

.code-form button:hover {
  background: var(--sage);
}

.code-form button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.code-status {
  margin-top: var(--space-xs);
  font-size: 0.85rem;
  min-height: 1.2em;
  color: var(--muted);
}

.code-status--error   { color: #9B524A; }
.code-status--success { color: var(--sage); }

.testers-waitlist {
  margin-top: var(--space-l);
  padding-top: var(--space-l);
  border-top: 1px solid var(--border);
}

.testers-waitlist-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: var(--space-s);
  max-width: 420px;
  line-height: 1.6;
}

.tester-reveal {
  display: none;
  margin-top: var(--space-l);
  padding: var(--space-m);
  background: var(--white);
  border-left: 3px solid var(--sage);
}

.tester-reveal.visible {
  display: block;
}

.tester-reveal h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: var(--space-s);
  color: var(--text);
}

.tester-reveal p {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0;
  max-width: none;
}

.tester-reveal a {
  color: var(--sage);
  text-decoration: none;
}

.tester-reveal a:hover {
  text-decoration: underline;
}

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

@media (max-width: 640px) {
  .site-header {
    padding: var(--space-s) var(--space-m);
  }

  main,
  .testers-main {
    padding: var(--space-l) var(--space-m);
  }

  .site-footer {
    padding: var(--space-s) var(--space-m);
  }

  .logo-lockup {
    margin-left: 0;
  }

  .logo-sub {
    display: none;
  }
}

/* ── Reduced motion ──────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
  }
}

/* Tighten nav at tablet widths */
@media (max-width: 1100px) {
  .site-nav .nav-link { padding: 0 0.6rem; font-size: 0.78rem; }
  .nav-actions { margin-left: 0.75rem; }
}

/* ═══════════════════════════════════════════════════════════════
   MARKETING SITE COMPONENTS
   ═══════════════════════════════════════════════════════════════ */

/* ── Nav additions ──────────────────────────────────────────── */

.nav-link[aria-current="page"] {
  color: var(--text);
}

.nav-cta {
  display: inline-block;
  padding: 10px 20px;
  background: var(--near-black);
  color: var(--ivory);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-radius: 0;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--sage);
}

.btn-secondary {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: #070C08;
  background: transparent;
  border: 1px solid #DAD8CE;
  padding: 10px 20px;
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: border-color 0.2s ease;
  white-space: nowrap;
}
.btn-secondary:hover { border-color: #4A9B5F; }

.nav-signin {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav-signin:hover {
  color: var(--sage);
}

/* ── Marketing main (resets constrained main styles) ─────────── */

main.ms-main {
  padding: 0;
  max-width: none;
  margin: 0;
  justify-content: flex-start;
}

/* ── Section wrapper ─────────────────────────────────────────── */

.ms-section {
  padding: var(--space-xl) var(--space-l);
}

.ms-section.alt {
  background: var(--surface);
}

.ms-section.dark {
  background: #1C1F1D;
  color: #F7F6F2;
}

/* ── Container helpers ──────────────────────────────────────── */

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--space-l);
}

.container.narrow {
  max-width: 680px;
}

.container.wide {
  max-width: 1100px;
}

.container.pricing-wide {
  max-width: 1500px;
}

/* ── Typography helpers ─────────────────────────────────────── */

.text-center { text-align: center; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.ms-h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
  text-wrap: balance;
}

.ms-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.75rem);
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  text-wrap: balance;
}

.ms-h2.light { color: #F7F6F2; }

.ms-lead {
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  color: var(--muted);
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: 1.75rem;
}

.ms-lead.light { color: rgba(247, 246, 242, 0.65); }
.ms-lead.center { margin-left: auto; margin-right: auto; }

.ms-body {
  font-size: 0.93rem;
  color: var(--muted);
  line-height: 1.75;
}

/* ── Homepage hero ──────────────────────────────────────────── */

.ms-hero {
  background: #1C1F1D;
  color-scheme: dark;
  position: relative;
  overflow: hidden;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) var(--space-m);
}

.ms-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  opacity: 0.032;
  pointer-events: none;
  z-index: 2;
}

/* Ambient line field: thin drifting SVG paths, no canvas/JS animation loop */
.hero-line-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-line-field path {
  fill: none;
  stroke-width: 1;
  opacity: 0.55;
  stroke-dasharray: 6 10;
  animation: hero-line-drift 34s linear infinite;
}

.hero-line-field .sage-line { stroke: var(--sage); }
.hero-line-field .gold-line { stroke: var(--gold); }
.hero-line-field path.slow { animation-duration: 48s; }
.hero-line-field path.rev { animation-direction: reverse; }

@keyframes hero-line-drift {
  to { stroke-dashoffset: -1000; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-line-field path { animation: none; }
}

.ms-hero-inner {
  position: relative;
  z-index: 3;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.ms-hero .btn-group {
  justify-content: center;
}

.ms-hero-h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  color: #F7F6F2;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}

.ms-hero-lead {
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  color: rgba(247, 246, 242, 0.65);
  margin: 0 auto 1.5rem;
  max-width: 560px;
  line-height: 1.4;
}

.ms-hero-note {
  font-size: 0.75rem;
  color: rgba(247, 246, 242, 0.35);
  margin-top: 1.1rem;
}

/* ── Video thumbnail card (opens video modal) ───────────────── */

.hero-video-card {
  position: relative;
  display: block;
  width: 100%;
  max-width: 340px;
  border-radius: 4px;
  overflow: hidden;
  margin: 1.25rem 0;
  cursor: pointer;
  background: #000;
  border: 1px solid rgba(247, 246, 242, 0.18);
}

.hero-video-card--on-light {
  border-color: var(--border);
}

.hero-video-poster {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1900 / 1084;
  object-fit: cover;
  opacity: 0.88;
  transition: opacity 0.15s;
}

.hero-video-card:hover .hero-video-poster { opacity: 1; }

.hero-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--gold);
  color: #1C1F1D;
  font-size: 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s;
}

.hero-video-card:hover .hero-video-play { transform: translate(-50%, -50%) scale(1.08); }

.hero-video-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.6rem 0.85rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: #F7F6F2;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
}

/* ── Video modal ─────────────────────────────────────────────── */

.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 400;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}

.video-modal.open { display: flex; }

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 20, 18, 0.88);
  border: none;
  cursor: pointer;
}

.video-modal-inner {
  position: relative;
  z-index: 1;
  display: flex;
}

.video-modal-close {
  position: absolute;
  top: -2.75rem;
  right: 0;
  background: none;
  border: none;
  color: #F7F6F2;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
}

.video-modal-close:hover { color: var(--gold); }

.video-modal-frame-wrap {
  background: #000;
  border-radius: 4px;
  overflow: hidden;
  line-height: 0;
}

.video-modal-frame-wrap video {
  display: block;
  max-width: min(88vw, 1000px);
  max-height: 82vh;
  width: auto;
  height: auto;
}

.video-modal-error {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: min(88vw, 480px);
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.video-modal-error.show { display: flex; }

.video-modal-error p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(247, 246, 242, 0.75);
  margin: 0;
}

.video-modal-error a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
}

.video-modal-error a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .video-modal-close { top: -2.25rem; }
}

/* ── Button group + variants ────────────────────────────────── */

.btn-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-group.left {
  justify-content: flex-start;
}

.btn-gold {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: var(--gold);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: 2px;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.btn-gold:hover { opacity: 0.88; }

.btn-dark-solid {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: var(--near-black);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s ease;
}

.btn-dark-solid:hover { background: var(--sage); }

.btn-outline-dark {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(28, 31, 29, 0.3);
  cursor: pointer;
  border-radius: 2px;
  transition: border-color 0.2s ease;
}

.btn-outline-dark:hover { border-color: var(--text); }

.btn-ghost-light {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: transparent;
  color: rgba(247, 246, 242, 0.7);
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(247, 246, 242, 0.25);
  cursor: pointer;
  border-radius: 2px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.btn-ghost-light:hover {
  border-color: rgba(247, 246, 242, 0.6);
  color: var(--ivory);
}

/* ── Value strip ─────────────────────────────────────────────── */

.value-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.value-cell {
  background: var(--surface);
  padding: 1.5rem 1.75rem;
  text-align: center;
}

.value-cell-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.value-cell-icon svg {
  width: 56px;
  height: 56px;
}

.value-cell-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.value-cell-desc {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Feature grid ────────────────────────────────────────────── */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: var(--space-m);
}

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

.feature-cell {
  background: var(--ivory);
  padding: 1.5rem 1.4rem;
}

a.feature-cell {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: background 0.15s;
}

a.feature-cell:hover {
  background: var(--white);
}

a.feature-cell .feat-title {
  color: var(--sage);
}

.feat-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.feat-desc {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── Integrations strip ──────────────────────────────────────── */

.integrations-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.25rem 1.5rem;
  text-align: center;
}

.integrations-label {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.75rem;
}

.integrations-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 3rem 3.5rem;
}

.integration-logo {
  height: 38px;
  width: auto;
  max-width: 192px;
  object-fit: contain;
  opacity: 0.72;
  transition: opacity 0.15s ease;
}

.integration-logo--tall {
  height: 48px;
}

.integration-logo--icon {
  height: 34px;
  max-width: none;
}

.integration-logo:hover { opacity: 1; }

.integration-otel {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.otel-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text);
  opacity: 0.72;
  transition: opacity 0.15s ease;
}

.integration-otel:hover .otel-name,
.integration-otel:hover .integration-logo { opacity: 1; }

/* ── Interception animation embed ───────────────────────────── */

.interception-embed {
  aspect-ratio: 16 / 9;
  width: 100%;
  max-width: 1000px;
  margin: var(--space-m) auto 0;
  border: 1px solid var(--border);
  overflow: hidden;
}

.interception-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ── Screenshot placeholder (dark section) ──────────────────── */

.screenshot-section {
  text-align: center;
}

.placeholder-box {
  background: #0D1110;
  border: 1px solid #2A2E2C;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
  aspect-ratio: 16 / 10;
}

.placeholder-inner {
  text-align: center;
  padding: 1.5rem;
}

.placeholder-label {
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(247, 246, 242, 0.35);
  margin-bottom: 0.6rem;
}

.placeholder-spec {
  font-size: 0.82rem;
  color: rgba(247, 246, 242, 0.6);
  margin-bottom: 0.4rem;
}

.placeholder-dim {
  font-size: 0.75rem;
  color: rgba(247, 246, 242, 0.35);
}

.screenshot-caption {
  font-size: 0.75rem;
  color: rgba(247, 246, 242, 0.35);
  margin-top: 0.9rem;
}

/* ── How it works steps ─────────────────────────────────────── */

.how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: var(--space-m);
}

.how-step {
  background: var(--ivory);
  padding: 1.5rem 1.25rem;
  position: relative;
}

/* Icon pinned top-right in light mode only */
.how-step .section-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 20px;
  height: 20px;
  margin-bottom: 0;
}

.how-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--gold);
  margin-bottom: 0.6rem;
  line-height: 1;
}

.how-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.how-desc {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── Criteria list ───────────────────────────────────────────── */

.criteria-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  margin-top: var(--space-s);
}

.criteria-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.criteria-item:last-child {
  border-bottom: none;
}

.criteria-ref {
  font-family: var(--font-display);
  font-size: 0.65rem;
  color: var(--gold);
  width: 24px;
  flex-shrink: 0;
  padding-top: 2px;
  text-align: center;
}

.criteria-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  display: block;
  margin-bottom: 0.2rem;
}

.criteria-desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Code block (dark) ──────────────────────────────────────── */

.code-block-wrap {
  background: #0D1110;
  border: 1px solid #2A2E2C;
  padding: 1rem 1.25rem;
  margin: 1.5rem auto;
  max-width: 480px;
  text-align: left;
  overflow-x: auto;
}

.code-block {
  font-family: var(--font-body);
  font-size: 0.83rem;
  color: #C8D4CC;
  line-height: 1.75;
  white-space: pre;
}

.code-kw  { color: #C09550; }
.code-mod { color: #7EB3C4; }
.code-str { color: #8AB08A; }

/* ── Industry grid ──────────────────────────────────────────── */

.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: var(--space-m);
}

.industry-card {
  border: 1px solid var(--border);
  background: var(--white);
  padding: 1.5rem;
}

.ind-img-placeholder {
  height: 100px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  margin: -1.5rem -1.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ind-img-spec {
  font-size: 0.65rem;
  color: var(--muted);
}

.ind-title {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.ind-desc {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 0.9rem;
}

.ind-frameworks-label {
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  display: block;
  margin-bottom: 0.2rem;
}

.ind-frameworks {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Testimonial ────────────────────────────────────────────── */

.testimonial-pull {
  border-left: 3px solid var(--gold);
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  margin: var(--space-m) 0;
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.testimonial-attr {
  font-size: 0.73rem;
  color: var(--muted);
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Principles grid ────────────────────────────────────────── */

.principles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: var(--space-s);
}

.principle-cell {
  background: var(--ivory);
  padding: 1.5rem;
}

.principle-title {
  font-family: var(--font-display);
  font-size: 0.73rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.principle-body {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── Photo placeholder ──────────────────────────────────────── */

.photo-placeholder {
  aspect-ratio: 2 / 1;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 400px;
}

.photo-placeholder-inner { text-align: center; }

.photo-spec-label {
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.photo-spec-text {
  font-size: 0.83rem;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.photo-spec-dim {
  font-size: 0.72rem;
  color: var(--muted);
}

/* ── Team grid ──────────────────────────────────────────────── */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: var(--space-m);
}

.team-card {
  border: 1px solid var(--border);
  background: var(--white);
  padding: 1.5rem;
}

.team-avatar {
  width: 56px;
  height: 56px;
  background: var(--near-black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ivory);
  margin-bottom: 0.9rem;
}

.team-avatar.sage-bg { background: var(--sage); }
.team-avatar.gold-bg { background: var(--gold); color: var(--text); }

.team-headshot-placeholder {
  width: 64px;
  height: 64px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
}

.team-headshot-spec {
  font-size: 0.6rem;
  color: var(--muted);
}

.team-headshot-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  object-position: center top;
  display: block;
  margin-bottom: 0.9rem;
  border-radius: 2px;
}

.team-name {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.team-role {
  font-size: 0.73rem;
  color: var(--gold);
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.team-bio {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.65;
}

.team-social {
  display: inline-block;
  margin-top: 0.75rem;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.team-social:hover { opacity: 0.8; transform: translateY(-2px); }
.team-social-icon {
  width: 28px;
  height: 28px;
  display: block;
}

/* ── Dark footer ─────────────────────────────────────────────── */

.footer-dark {
  background: var(--near-black);
  padding: var(--space-m) var(--space-l);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-dark-logo {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  color: rgba(247, 246, 242, 0.35);
  text-transform: uppercase;
  text-decoration: none;
}

.footer-dark-links {
  display: flex;
  gap: 1.25rem;
}

.footer-dark-link {
  font-size: 0.78rem;
  color: rgba(247, 246, 242, 0.35);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-dark-link:hover {
  color: rgba(247, 246, 242, 0.7);
}

/* ── Inner page hero ────────────────────────────────────────── */

.page-hero {
  padding: var(--space-xl) var(--space-l) var(--space-m);
  border-bottom: 1px solid var(--border);
}

/* ── Industry card image ────────────────────────────────────── */

.ind-card-img {
  display: block;
  width: calc(100% + 3rem);
  height: 160px;
  object-fit: cover;
  object-position: center;
  margin: -1.5rem -1.5rem 1rem;
}

/* ── Responsive: marketing components ───────────────────────── */

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

  .industry-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .value-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1400px) {
  .site-nav .nav-link {
    display: none;
  }

  .site-nav .nav-signin {
    display: none;
  }

  .nav-signin-mini {
    display: none;
  }

  .nav-actions .btn-secondary {
    display: none;
  }

  .site-nav .nav-cta {
    display: inline-block;
  }
}

@media (max-width: 768px) {
  .integrations-logos {
    gap: 2rem 2.5rem;
  }

  .integration-logo { height: 31px; }
  .integration-logo--tall { height: 39px; }
  .integration-logo--icon { height: 26px; }
}

@media (max-width: 1023px) {
  .ms-hero {
    padding: var(--space-xl) var(--space-m) var(--space-l);
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .ms-hero {
    padding: var(--space-xl) var(--space-m) var(--space-l);
  }

  .ms-section {
    padding: var(--space-l) var(--space-m);
  }

  .page-hero {
    padding: var(--space-l) var(--space-m) var(--space-s);
  }

  .container {
    padding: 0 var(--space-m);
  }

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

  .how-steps {
    grid-template-columns: 1fr;
  }

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

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

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

  .footer-dark {
    flex-direction: column;
    gap: var(--space-s);
    padding: var(--space-m);
    text-align: center;
  }

  .footer-dark-links {
    justify-content: center;
  }
}

/* ── Real screenshot images ─────────────────────────────────── */

.dashboard-screenshot {
  display: block;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  border-radius: 6px;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.product-photo-img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  object-position: top center;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* ── Theme toggle button (marketing) ────────────────────────── */

.theme-toggle-mktg {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
  padding: 4px 9px;
  cursor: pointer;
  border-radius: 3px;
  transition: border-color .15s, color .15s;
  flex-shrink: 0;
  margin-left: 24px;
}
.theme-toggle-mktg:hover { border-color: var(--sage); color: var(--sage); }

@media (max-width: 1400px) {
  .theme-toggle-mktg { display: none; }
}

/* ── Dark mode ───────────────────────────────────────────────── */


:root[data-theme="dark"] {
  --ivory:   #181B19;
  --near-black: #111412;
  --text:    #E8EAE5;
  --white:   #232723;
  --surface: #1C201A;
  --border:  #2E3429;
  --muted:   #7AAB80;
}

:root[data-theme="light"] {
  --ivory:   #F7F6F2;
  --near-black: #1C1F1D;
  --text:    #1C1F1D;
  --white:   #FFFFFF;
  --surface: #EDEAE2;
  --border:  #D5D2CA;
  --muted:   #4E6855;
}

/* Dark mode element overrides */

:root[data-theme="dark"] {
  .site-header { border-bottom-color: var(--border); }
  .nav-cta { background: var(--sage); }
  .nav-cta:hover { background: var(--muted); }
  .btn-secondary { color: #F7F6F2; border-color: #3A3D3A; }
  .site-nav .nav-link + .nav-link { border-left-color: #3A3D3A; }
  .btn-dark-solid { background: var(--text); color: var(--near-black); }
  .btn-dark-solid:hover { background: var(--sage); color: var(--ivory); }
  .btn-outline-dark { color: var(--text); border-color: var(--border); }
  .btn-outline-dark:hover { border-color: var(--text); }
  .page-hero { border-bottom-color: var(--border); }
  .value-strip { border-top-color: var(--border); border-bottom-color: var(--border); }
  .value-cell { border-right-color: var(--border); }
  .feature-grid { border-color: var(--border); }
  .feature-cell { border-color: var(--border); }
  .criteria-item { border-bottom-color: var(--border); }
  .industry-card { border-color: var(--border); }
  .code-block-wrap { border-color: var(--border); }
  .team-card { background: var(--white); border-color: var(--border); }
  .principle-cell { border-color: var(--border); }
  .testimonial-pull { border-color: var(--border); }
  .integrations-strip { border-top-color: var(--border); border-bottom-color: var(--border); }
  .integration-logo { filter: brightness(0) invert(1); opacity: 0.6; }
  .integration-logo.icon-dk { filter: none; opacity: 0.85; }
  .integration-logo:hover { opacity: 0.9; }
  .integration-otel:hover .integration-logo { opacity: 0.9; }
}

:root[data-theme="light"] {
  .site-header { border-bottom-color: rgba(28, 31, 29, 0.08); }
  .nav-cta { background: var(--near-black); }
  .nav-cta:hover { background: var(--sage); }
  .btn-secondary { color: #070C08; border-color: #DAD8CE; }
  .site-nav .nav-link + .nav-link { border-left-color: #DAD8CE; }
  .btn-dark-solid { background: var(--near-black); color: var(--ivory); }
  .btn-dark-solid:hover { background: var(--sage); }
  .btn-outline-dark { color: var(--text); border-color: var(--near-black); }
  .btn-outline-dark:hover { border-color: var(--near-black); }
  .integration-logo { filter: none; }
}

/* ── Pricing page ─────────────────────────────────────────────────────────── */

.pricing-hero {
  padding-bottom: 0;
}

.pricing-grid-section {
  padding: var(--space-l) 0;
}

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

.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 0;
}

.pricing-card--featured {
  border-color: var(--gold);
  border-top: 3px solid var(--gold);
}

.pricing-card:not(.pricing-card--featured) {
  border-top: 3px solid var(--sage);
}

.pricing-card-badge {
  position: absolute;
  top: -1px;
  right: 1.5rem;
  background: var(--gold);
  color: var(--white);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--font-display);
  padding: 0.2rem 0.6rem;
}

.pricing-card-header {
  padding: 2rem 2rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.pricing-eyebrow {
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.pricing-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 1rem;
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  margin-bottom: 0.75rem;
}

.pricing-currency {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--muted);
}

.pricing-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.pricing-number-text {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--text);
}

.pricing-per {
  font-size: 0.8rem;
  color: var(--muted);
  margin-left: 0.15rem;
}

.pricing-desc {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.65;
}

.pricing-features {
  list-style: none;
  padding: 1.5rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pricing-feature {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.83rem;
  color: var(--text);
  line-height: 1.5;
}

.feat-check {
  color: var(--sage);
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.pricing-cta-wrap {
  padding: 0 2rem 2rem;
}

.pricing-cta {
  display: block;
  text-align: center;
}

.pricing-not-included {
  margin: 0 2rem 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.not-included-label {
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.not-included-text {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Readiness Review ── */

.readiness-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--sage);
  padding: 2rem;
}

.readiness-terms {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.65;
  margin-top: 0.75rem;
}

.readiness-cta-wrap {
  padding: 1.5rem 0 0;
}

.readiness-cta-wrap .btn-outline-dark {
  display: inline-block;
}

/* ── Pricing FAQ ── */

.pricing-faq {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.faq-item {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.faq-q {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.faq-a {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ── Pricing responsive ── */

@media (max-width: 1440px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}


:root[data-theme="dark"] {
  .pricing-card {
    background: #1C201A;
    border-color: #2E3429;
  }
  .pricing-card--featured {
    border-color: var(--gold);
  }
  .pricing-card-header {
    border-color: #2E3429;
  }
  .pricing-features {
    border-color: #2E3429;
  }
  .pricing-not-included {
    border-color: #2E3429;
  }
  .readiness-card {
    background: #1C201A;
    border-color: #2E3429;
  }
  .faq-item {
    border-color: #2E3429;
  }
}

:root[data-theme="light"] {
  .pricing-card {
    background: var(--white);
    border-color: var(--border);
  }
  .pricing-card--featured {
    border-color: var(--gold);
  }
  .pricing-card-header {
    border-color: var(--border);
  }
  .pricing-features {
    border-color: var(--border);
  }
  .pricing-not-included {
    border-color: var(--border);
  }
  .readiness-card {
    background: var(--white);
    border-color: var(--border);
  }
  .faq-item {
    border-color: var(--border);
  }
}

/* ── Section icons ──────────────────────────────────────────────────────── */

.section-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.75rem;
  display: block;
  object-fit: contain;
}

.section-icon--lg {
  width: 48px;
  height: 48px;
}

.principle-cell .section-icon {
  width: 84px;
  height: 84px;
  margin: 0 auto;
}

/* Criteria row icons, stacked above C-number in a narrow left column */
.criteria-lead {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  width: 40px;
  flex-shrink: 0;
  padding-top: 0.6rem;
}

.criteria-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

/* Team card icon, replaces the avatar initial block */
.team-icon {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 0.75rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Theme-aware icon switching
   Single-variant icons (sage/gold/rust) need no class.
   Near-black/white dual variants: use .icon-lt and .icon-dk */
.icon-dk { display: none; }


:root[data-theme="dark"] .icon-lt { display: none; }
:root[data-theme="dark"] .icon-dk { display: block; }
:root[data-theme="light"] .icon-lt { display: block; }
:root[data-theme="light"] .icon-dk { display: none; }

/* ── Utility ─────────────────────────────────────────────────── */

.hidden { display: none !important; }

/* ── Discovery page ─────────────────────────────────────────── */

.discovery-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem 4rem;
}

.discovery-inner {
  width: 100%;
  max-width: 640px;
}

.discovery-masthead {
  text-align: center;
  margin-bottom: 2.5rem;
}

.discovery-masthead-eyebrow {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.6rem;
}

.discovery-masthead-sub {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

.discovery-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 2.75rem 2.5rem;
}

.disc-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 2rem;
}

.disc-progress-seg {
  height: 3px;
  flex: 1;
  background: var(--border);
  transition: background 300ms ease;
}

.disc-progress-seg.active {
  background: var(--sage);
}

.disc-q-eyebrow {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}

.disc-q-prompt {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 400;
  color: var(--near-black);
  line-height: 1.3;
  margin-bottom: 0.65rem;
}

.disc-q-hint {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
  line-height: 1.55;
}

.disc-options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.disc-option {
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--near-black);
  background: var(--ivory);
  border: 1px solid var(--border);
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
  line-height: 1.4;
}

.disc-option:hover {
  border-color: var(--sage);
  background: #EFF4F0;
}

.disc-back {
  margin-top: 1.5rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.disc-back:hover { color: var(--sage); }

.disc-outcome-eyebrow {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.disc-outcome-title {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 400;
  color: var(--near-black);
  line-height: 1.25;
  margin-bottom: 1.1rem;
}

.disc-outcome-body {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #3A3D38;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 520px;
}

.disc-outcome-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.disc-cta-primary {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ivory);
  background: var(--near-black);
  padding: 0.85rem 1.5rem;
  text-decoration: none;
  display: inline-block;
  letter-spacing: 0.06em;
}

.disc-cta-restart {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--near-black);
  background: transparent;
  border: 1px solid var(--border);
  padding: 0.85rem 1.5rem;
  cursor: pointer;
  letter-spacing: 0.06em;
}

.disc-cta-restart:hover { border-color: var(--muted); }

.discovery-footer-note {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  margin-top: 1.25rem;
}

:root[data-theme="dark"] .discovery-card { background: #222722; border-color: #3A3D38; }
:root[data-theme="dark"] .disc-option { background: #1C1F1D; border-color: #3A3D38; color: #F7F6F2; }
:root[data-theme="dark"] .disc-option:hover { background: #293029; border-color: var(--sage); }
:root[data-theme="dark"] .disc-outcome-body { color: #B8BAB5; }
:root[data-theme="dark"] .disc-cta-primary { background: var(--gold); color: #1C1F1D; }
:root[data-theme="dark"] .disc-cta-restart { color: #F7F6F2; border-color: #3A3D38; }
:root[data-theme="dark"] .disc-q-prompt { color: var(--text); }
:root[data-theme="dark"] .disc-outcome-title { color: var(--text); }
:root[data-theme="light"] .discovery-card { background: #FFFFFF; border-color: var(--border); }
:root[data-theme="light"] .disc-option { background: var(--ivory); border-color: var(--border); color: var(--near-black); }
:root[data-theme="light"] .disc-outcome-body { color: #3A3D38; }
:root[data-theme="light"] .disc-cta-primary { background: var(--near-black); color: var(--ivory); }
:root[data-theme="light"] .disc-q-prompt { color: var(--near-black); }
:root[data-theme="light"] .disc-outcome-title { color: var(--near-black); }

@media (max-width: 560px) {
  .discovery-card { padding: 2rem 1.25rem; }
  .disc-q-prompt { font-size: 1.25rem; }
  .disc-outcome-title { font-size: 1.5rem; }
}

/* ── Media page ─────────────────────────────────────────────── */

.media-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem 5rem;
  width: 100%;
}

.media-hero {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.media-hero .eyebrow {
  margin-bottom: 0.75rem;
}

.media-lead {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.3vw, 1.05rem);
  color: var(--muted);
  max-width: 560px;
  line-height: 1.65;
}

.media-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.25rem;
}

.media-filter-btn {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  padding: 0.45rem 1rem;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
  white-space: nowrap;
}

.media-filter-btn:hover {
  border-color: var(--sage);
  color: var(--sage);
}

.media-filter-btn.active {
  background: var(--sage);
  border-color: var(--sage);
  color: #fff;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.media-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 200ms ease;
  text-decoration: none;
  color: inherit;
}

.media-card:hover {
  border-color: var(--sage);
}

.media-card-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.media-card-domain {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  color: var(--muted);
  text-transform: uppercase;
}

.media-card-date {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--muted);
  opacity: 0.7;
}

.media-card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.35;
}

.media-card-excerpt {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}

.media-card-note {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--sage);
  line-height: 1.5;
  font-style: italic;
}

.media-card-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.media-tag {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--border);
  color: var(--muted);
}

.media-loading,
.media-empty {
  text-align: center;
  padding: 4rem 0;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--muted);
}

:root[data-theme="dark"] .media-card { background: #222722; border-color: #3A3D38; }
:root[data-theme="dark"] .media-filter-btn { border-color: #3A3D38; color: #8A9B8E; }
:root[data-theme="light"] .media-card { background: #FFFFFF; border-color: var(--border); }
:root[data-theme="light"] .media-filter-btn { border-color: var(--border); color: var(--muted); }

@media (max-width: 640px) {
  .media-main { padding: 0 1rem 4rem; }
  .media-hero { padding: 2.5rem 0 2rem; }
  .media-grid { grid-template-columns: 1fr; }
}

/* ── Mobile navigation ──────────────────────────────────────── */

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem;
  color: var(--text);
  flex-shrink: 0;
}

.hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.nav-hamburger:hover .hamburger-bar { background: var(--sage); }

@media (max-width: 1400px) {
  .nav-hamburger { display: flex; }
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 300;
  flex-direction: column;
  padding: 5rem 2rem 3rem;
  overflow-y: auto;
}

.mobile-nav.open { display: flex; }

.mobile-nav-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text);
  line-height: 1;
  padding: 0.25rem;
}

.mobile-nav-link {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  display: block;
}

.mobile-nav-link:hover { color: var(--sage); }

.mobile-nav-cta {
  display: inline-block;
  margin-top: 2rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ivory);
  background: var(--near-black);
  padding: 0.85rem 1.75rem;
  text-decoration: none;
  align-self: flex-start;
}

/* The base .mobile-nav rules above use var(--text), var(--white), var(--border)
   which are all redefined at :root for dark mode, so they work automatically.
   Only the CTA needs an override: in dark mode var(--ivory) and var(--near-black)
   both resolve to near-black, making the button invisible. Use gold instead. */
:root[data-theme="dark"] .mobile-nav-cta { background: var(--gold); color: #111412; }

.mobile-nav-group-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 1.1rem 0 0.3rem;
}

/* Media card read indicator */
.media-card-read {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--sage);
  margin-top: auto;
  padding-top: 0.5rem;
}
