/* ============================================================
   PRISM — Design System
   Neumorphic + Liquid Glass · Cool minimal · Brand-true
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  /* Surface — cool gray-white, like the reference */
  --bg-base: #EDF0F4;
  --bg-base-tint: #E6EAF0;
  --bg-soft: #F4F6F9;
  --bg-elevated: #FFFFFF;
  --bg-card: rgba(255, 255, 255, 0.62);
  --bg-card-solid: #FBFCFD;
  --bg-pressed: rgba(15, 23, 42, 0.025);

  /* Ink — slightly cool, not pure black */
  --ink: #0F172A;
  --ink-2: #1F2937;
  --ink-soft: #475569;
  --ink-muted: #94A3B8;
  --ink-faint: #CBD5E1;

  /* Brand — PRISM blue + gold, used with discipline */
  --prism-blue: #003366;
  --prism-blue-2: #004B87;
  --prism-blue-soft: #1F4E8C;
  --prism-blue-tint: #E8EEF5;
  --prism-gold: #D4A574;
  --prism-gold-soft: #E8C9A0;
  --prism-gold-tint: #FAF3EA;

  /* Functional */
  --success: #2E7D32;
  --warning: #F57C00;
  --error: #D32F2F;
  --info: #1976D2;

  /* Borders */
  --border-soft: rgba(15, 23, 42, 0.06);
  --border-medium: rgba(15, 23, 42, 0.10);
  --border-strong: rgba(15, 23, 42, 0.14);
  --border-inset-light: rgba(255, 255, 255, 0.85);

  /* Shadows — the magic of neumorphism */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 -1px 0 rgba(15, 23, 42, 0.03) inset,
    0 2px 6px rgba(15, 23, 42, 0.04),
    0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow-md:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 -1px 0 rgba(15, 23, 42, 0.03) inset,
    0 8px 24px rgba(15, 23, 42, 0.06),
    0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-lg:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 -1px 0 rgba(15, 23, 42, 0.04) inset,
    0 24px 64px -12px rgba(15, 23, 42, 0.10),
    0 8px 24px -4px rgba(15, 23, 42, 0.06);
  --shadow-xl:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 -1px 0 rgba(15, 23, 42, 0.04) inset,
    0 40px 80px -20px rgba(15, 23, 42, 0.14),
    0 16px 40px -8px rgba(15, 23, 42, 0.08);

  --shadow-pressed:
    inset 0 2px 4px rgba(15, 23, 42, 0.06),
    inset 0 1px 2px rgba(15, 23, 42, 0.04);

  --shadow-button:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 -1px 0 rgba(15, 23, 42, 0.06) inset,
    0 4px 12px rgba(0, 51, 102, 0.16),
    0 2px 4px rgba(0, 51, 102, 0.12);

  --shadow-button-hover:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 -1px 0 rgba(15, 23, 42, 0.06) inset,
    0 8px 20px rgba(0, 51, 102, 0.22),
    0 4px 8px rgba(0, 51, 102, 0.14);

  /* Radii */
  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 28px;
  --r-pill: 999px;

  /* Typography */
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Roboto Mono', 'JetBrains Mono', Menlo, Consolas, monospace;

  /* Spacing scale (4px base) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;
  --s-20: 80px;
  --s-24: 96px;
  --s-32: 128px;

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 880px;
  --header-h: 72px;
  --nav-w: 72px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast: 180ms;
  --t-base: 280ms;
  --t-slow: 480ms;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  min-height: 100vh;
  overflow-x: hidden;
}

/* Ambient page background — a subtle radial like the reference's top-left glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 0% 0%, rgba(255, 255, 255, 0.7) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(0, 51, 102, 0.04) 0%, transparent 50%);
}

img, svg, video { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

::selection { background: rgba(0, 51, 102, 0.18); color: var(--prism-blue); }

/* ---------- TYPOGRAPHY ---------- */
.t-display {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: var(--ink);
}

.t-h1 {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.t-h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.t-h3 {
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.t-h4 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.t-body-lg {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.t-body { font-size: 16px; line-height: 1.65; color: var(--ink-soft); }
.t-small { font-size: 14px; line-height: 1.55; color: var(--ink-soft); }
.t-tiny  { font-size: 12px; line-height: 1.5; color: var(--ink-muted); }

.t-mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
}

.t-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--prism-blue);
  font-weight: 500;
}

.t-grad-blue {
  background: linear-gradient(135deg, var(--prism-blue) 0%, var(--prism-blue-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.t-grad-gold {
  background: linear-gradient(135deg, var(--prism-gold) 0%, var(--prism-gold-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- LAYOUT ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

section { padding: var(--s-20) 0; position: relative; z-index: 1; }

@media (max-width: 768px) {
  section { padding: var(--s-16) 0; }
}

.section-head {
  text-align: center;
  margin-bottom: var(--s-12);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section-head .t-eyebrow { display: inline-block; margin-bottom: 16px; }

.section-head h2 { margin-bottom: 16px; }

.section-head p { font-size: 18px; color: var(--ink-soft); line-height: 1.6; }

/* ---------- HATCHED PATTERN (signature reference detail) ---------- */
.hatched {
  position: relative;
}
.hatched::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.04) 0,
    rgba(15, 23, 42, 0.04) 1px,
    transparent 1px,
    transparent 7px
  );
  pointer-events: none;
}

/* ---------- CARDS / GLASS SURFACES ---------- */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out),
              border-color var(--t-base) var(--ease-out);
}

.card-solid {
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out);
}

.card-elevated {
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
}

.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 255, 255, 0.9);
}

.card-pressed {
  background: var(--bg-pressed);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-pressed);
  position: relative;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease-out);
  white-space: nowrap;
  user-select: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(180deg, var(--prism-blue-2) 0%, var(--prism-blue) 100%);
  color: white;
  box-shadow: var(--shadow-button);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-button-hover);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ink);
  border: 1px solid var(--border-medium);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 -1px 0 rgba(15, 23, 42, 0.04) inset,
    0 2px 6px rgba(15, 23, 42, 0.05);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.92);
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 -1px 0 rgba(15, 23, 42, 0.04) inset,
    0 6px 14px rgba(15, 23, 42, 0.08);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding: 10px 16px;
}
.btn-ghost:hover { background: var(--bg-pressed); }

.btn-dark {
  background: var(--ink);
  color: white;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 4px 12px rgba(15, 23, 42, 0.2);
}
.btn-dark:hover {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 8px 20px rgba(15, 23, 42, 0.28);
}

.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }

.btn .arrow {
  display: inline-block;
  transition: transform var(--t-fast) var(--ease-out);
}
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(237, 240, 244, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base), background var(--t-base);
}
.site-header.scrolled {
  background: rgba(237, 240, 244, 0.85);
  border-bottom-color: var(--border-soft);
}

.site-header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand-mark { width: 28px; height: 28px; flex-shrink: 0; }
.brand-text { font-weight: 700; }

.nav-primary {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 8px 14px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: all var(--t-fast) var(--ease-out);
}
.nav-link:hover { color: var(--ink); background: rgba(255, 255, 255, 0.5); }
.nav-link.active { color: var(--ink); background: rgba(255, 255, 255, 0.7); }

.nav-actions { display: flex; align-items: center; gap: 8px; }

.menu-toggle { display: none; padding: 8px; border-radius: var(--r-sm); }
.menu-toggle:hover { background: rgba(255, 255, 255, 0.5); }
.menu-toggle svg { width: 22px; height: 22px; }

@media (max-width: 920px) {
  .nav-primary { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav-actions .btn:not(.menu-toggle) { display: none; }
  .nav-actions .btn-primary { display: inline-flex; padding: 8px 14px; font-size: 13px; }
}

/* Mobile menu drawer */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(237, 240, 244, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-base) var(--ease-out), visibility var(--t-base);
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu nav a {
  padding: 14px 16px;
  border-radius: var(--r-md);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  transition: background var(--t-fast);
}
.mobile-menu nav a:hover { background: var(--bg-elevated); }
.mobile-menu .btn { margin-top: 24px; }

/* ---------- HERO ---------- */
.hero {
  padding: clamp(48px, 8vw, 100px) 0 clamp(48px, 8vw, 80px);
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.hero-glow-1 {
  width: 800px; height: 800px;
  top: -300px; left: -200px;
  background: radial-gradient(circle, rgba(0, 75, 135, 0.08) 0%, transparent 60%);
  filter: blur(60px);
}
.hero-glow-2 {
  width: 600px; height: 600px;
  bottom: -200px; right: -100px;
  background: radial-gradient(circle, rgba(212, 165, 116, 0.06) 0%, transparent 60%);
  filter: blur(60px);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-xs);
  margin-bottom: 24px;
}
.hero-eyebrow-pill {
  background: var(--ink);
  color: white;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}
.hero-eyebrow-text { font-size: 13px; color: var(--ink-soft); font-weight: 500; }

.hero h1 { margin-bottom: 24px; }
.hero-subline { font-size: clamp(16px, 1.5vw, 19px); color: var(--ink-soft); line-height: 1.6; margin-bottom: 32px; max-width: 640px; margin-left: auto; margin-right: auto; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Hero visual — the dashboard mock */
.hero-visual {
  margin-top: 64px;
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
.hero-visual-inner {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--r-2xl);
  padding: 8px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 60px 120px -30px rgba(15, 23, 42, 0.18),
    0 30px 60px -15px rgba(0, 51, 102, 0.10);
  overflow: hidden;
}

/* ---------- VALUE GRID ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.value-card {
  padding: 32px;
  border-radius: var(--r-xl);
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  transition: all var(--t-base) var(--ease-out);
  position: relative;
  overflow: hidden;
}
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.value-card-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--prism-blue-tint);
  color: var(--prism-blue);
  border-radius: var(--r-md);
  margin-bottom: 20px;
  box-shadow: var(--shadow-pressed);
}
.value-card-icon svg { width: 22px; height: 22px; }
.value-card h3 { margin-bottom: 12px; }
.value-card p { color: var(--ink-soft); margin-bottom: 16px; font-size: 15px; line-height: 1.6; }
.value-card .result {
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid var(--border-soft);
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
}
.value-card .learn-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--prism-blue);
}
.value-card .learn-more .arrow { transition: transform var(--t-fast) var(--ease-out); }
.value-card:hover .learn-more .arrow { transform: translateX(3px); }

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

/* ---------- METRIC ROW ---------- */
.metric-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border-soft);
}
.metric {
  background: var(--bg-elevated);
  padding: 24px;
  text-align: center;
}
.metric-value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--prism-blue);
  margin-bottom: 4px;
}
.metric-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
@media (max-width: 768px) {
  .metric-row { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- TESTIMONIALS ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.testimonial {
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-xl);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.testimonial-quote {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  font-weight: 400;
  margin-bottom: 24px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
}
.testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--prism-blue) 0%, var(--prism-blue-2) 100%);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 600; font-size: 15px;
}
.testimonial-name { font-weight: 600; font-size: 14px; color: var(--ink); }
.testimonial-role { font-size: 13px; color: var(--ink-muted); }

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

/* ---------- FEATURE GRID (8 engines) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.feature-tile {
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all var(--t-base) var(--ease-out);
  position: relative;
  overflow: hidden;
}
.feature-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-medium);
}
.feature-tile-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  margin-bottom: 16px;
}
.feature-tile-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  color: var(--prism-blue);
  margin-bottom: 16px;
  box-shadow: var(--shadow-pressed);
}
.feature-tile-icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.75; }
.feature-tile h4 { margin-bottom: 8px; font-size: 16px; }
.feature-tile p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; }

@media (max-width: 1024px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- FEATURE LONG (Problem / Solution / Result) ---------- */
.feature-long {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 80px 0;
  align-items: center;
  border-bottom: 1px solid var(--border-soft);
}
.feature-long:nth-child(even) .feature-long-text { order: 2; }
.feature-long-text h2 { margin-bottom: 16px; }
.feature-long-text .lede { font-size: 17px; color: var(--ink-soft); margin-bottom: 32px; line-height: 1.6; }
.feature-long-block { margin-bottom: 24px; }
.feature-long-block-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
  color: var(--prism-blue); text-transform: uppercase; font-weight: 500;
  margin-bottom: 8px;
}
.feature-long-block p { font-size: 15px; color: var(--ink-soft); line-height: 1.6; }
.feature-long-results {
  display: grid; gap: 8px; margin-top: 24px;
}
.feature-long-results li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 15px; color: var(--ink);
}
.feature-long-results li::before {
  content: ""; flex-shrink: 0;
  width: 18px; height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='9' fill='%23003366'/%3E%3Cpath d='M5.5 9.5l2.5 2.5 5-5.5' fill='none' stroke='white' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  margin-top: 3px;
}

.feature-long-visual {
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-xl);
  padding: 24px;
  box-shadow: var(--shadow-md);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 920px) {
  .feature-long { grid-template-columns: 1fr; gap: 32px; padding: 48px 0; }
  .feature-long:nth-child(even) .feature-long-text { order: 1; }
}

/* ---------- PRICING ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.price-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-xl);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--t-base) var(--ease-out);
  position: relative;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.price-card.featured {
  background: var(--ink);
  color: white;
  border-color: transparent;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.1) inset,
    0 24px 60px -16px rgba(15, 23, 42, 0.3),
    0 8px 20px -4px rgba(0, 51, 102, 0.15);
  transform: scale(1.02);
}
.price-card.featured .price-name { color: var(--prism-gold); }
.price-card.featured .price-amount { color: white; }
.price-card.featured .price-best-for { color: rgba(255,255,255,0.65); }
.price-card.featured .price-features li { color: rgba(255,255,255,0.85); }
.price-card.featured .price-features li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='9' fill='%23D4A574'/%3E%3Cpath d='M5.5 9.5l2.5 2.5 5-5.5' fill='none' stroke='%230F172A' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.price-card.featured .price-divider { border-top-color: rgba(255,255,255,0.15); }
.price-card.featured .btn-primary {
  background: var(--prism-gold);
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(212, 165, 116, 0.3);
}
.price-card.featured .price-tag {
  position: absolute; top: -12px; right: 24px;
  background: var(--prism-gold); color: var(--ink);
  padding: 4px 12px; border-radius: var(--r-pill);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: 600;
}

.price-name { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--prism-blue); font-weight: 500; margin-bottom: 16px; }
.price-amount { font-size: 44px; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); margin-bottom: 4px; }
.price-amount span { font-size: 16px; font-weight: 400; color: var(--ink-muted); margin-left: 4px; }
.price-best-for { font-size: 14px; color: var(--ink-muted); margin-bottom: 24px; }
.price-divider { border-top: 1px solid var(--border-soft); padding-top: 24px; margin-top: auto; }
.price-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.price-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.price-features li::before {
  content: ""; flex-shrink: 0;
  width: 18px; height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='9' fill='%23003366'/%3E%3Cpath d='M5.5 9.5l2.5 2.5 5-5.5' fill='none' stroke='white' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  margin-top: 2px;
}

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

/* ---------- COMPARISON TABLE ---------- */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-elevated);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
}
.compare-table th, .compare-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
  font-size: 14px;
}
.compare-table thead th {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
  background: var(--bg-soft);
}
.compare-table tbody th { font-weight: 500; color: var(--ink); }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table .col-highlight {
  background: var(--prism-gold-tint);
  color: var(--prism-blue);
  font-weight: 600;
}
.compare-table thead .col-highlight { color: var(--prism-blue); background: var(--prism-gold); }

/* ---------- CTA BAND ---------- */
.cta-band {
  background: var(--ink);
  color: white;
  border-radius: var(--r-2xl);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.08) inset,
    0 24px 60px -16px rgba(15, 23, 42, 0.3);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.025) 0,
    rgba(255, 255, 255, 0.025) 1px,
    transparent 1px,
    transparent 8px
  );
  pointer-events: none;
}
.cta-band-glow {
  position: absolute;
  top: 50%; left: 50%;
  width: 600px; height: 600px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(212, 165, 116, 0.12) 0%, transparent 60%);
  pointer-events: none;
}
.cta-band-content { position: relative; z-index: 1; }
.cta-band h2 { color: white; margin-bottom: 16px; }
.cta-band p { color: rgba(255, 255, 255, 0.7); font-size: 17px; margin-bottom: 32px; max-width: 540px; margin-left: auto; margin-right: auto; }
.cta-band .btn-primary {
  background: var(--prism-gold);
  color: var(--ink);
}
.cta-band .btn-primary:hover { background: var(--prism-gold-soft); }

@media (max-width: 768px) { .cta-band { padding: 48px 24px; } }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--bg-base-tint);
  border-top: 1px solid var(--border-soft);
  padding: 64px 0 32px;
  margin-top: 80px;
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand { max-width: 320px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }
.footer-col h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 14px;
  color: var(--ink-soft);
  transition: color var(--t-fast);
}
.footer-col a:hover { color: var(--ink); }

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy { font-size: 13px; color: var(--ink-muted); }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-sm);
  color: var(--ink-soft);
  transition: all var(--t-fast);
}
.footer-social a:hover { color: var(--prism-blue); border-color: var(--border-medium); transform: translateY(-1px); }
.footer-social svg { width: 16px; height: 16px; }

@media (max-width: 920px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- DASHBOARD MOCK (for hero) ---------- */
.mock-dash {
  display: grid;
  grid-template-columns: 60px 1fr 1fr;
  gap: 14px;
  padding: 14px;
  background: var(--bg-base-tint);
  border-radius: var(--r-xl);
}
.mock-sidebar {
  background: var(--bg-elevated);
  border-radius: var(--r-md);
  padding: 14px 8px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  box-shadow: var(--shadow-xs);
}
.mock-sidebar-icon {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-muted);
  background: transparent;
  transition: all var(--t-base);
}
.mock-sidebar-icon.active {
  background: var(--ink);
  color: white;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
}
.mock-sidebar-icon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.75; }

.mock-panel {
  background: var(--bg-elevated);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 360px;
}
.mock-panel-title { font-size: 18px; font-weight: 600; }
.mock-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-soft);
  background: var(--bg-elevated);
  font-size: 13px; color: var(--ink-soft);
  position: relative;
  overflow: hidden;
}
.mock-row.active {
  background: rgba(15, 23, 42, 0.025);
  border-color: var(--border-medium);
  color: var(--ink);
  font-weight: 500;
}
.mock-row.active::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.04) 0,
    rgba(15, 23, 42, 0.04) 1px,
    transparent 1px,
    transparent 7px
  );
  pointer-events: none;
}
.mock-row-icon { width: 18px; height: 18px; opacity: 0.6; }
.mock-row-left { display: flex; align-items: center; gap: 10px; }
.mock-pill {
  font-size: 11px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  padding: 2px 8px;
  border-radius: var(--r-pill);
  color: var(--ink-soft);
  font-family: var(--mono);
  letter-spacing: 0.05em;
}

.mock-clock {
  background: linear-gradient(180deg, #FBFCFD 0%, #F1F4F8 100%);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: var(--shadow-sm);
}
.mock-clock-face {
  width: 72px; height: 72px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  position: relative;
  box-shadow: var(--shadow-pressed);
}
.mock-clock-text { font-size: 20px; font-weight: 600; color: var(--ink); }
.mock-clock-text small { display: block; font-size: 12px; font-weight: 400; color: var(--ink-muted); margin-top: 2px; }

@media (max-width: 768px) {
  .mock-dash { grid-template-columns: 1fr; }
  .mock-dash > .mock-sidebar { display: none; }
}

/* ---------- ACCORDION ---------- */
.accordion { display: flex; flex-direction: column; gap: 8px; }
.accordion-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: box-shadow var(--t-fast);
}
.accordion-item:hover { box-shadow: var(--shadow-sm); }
.accordion-trigger {
  width: 100%;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background var(--t-fast);
}
.accordion-trigger:hover { background: var(--bg-soft); }
.accordion-trigger svg {
  width: 18px; height: 18px;
  stroke: var(--ink-muted);
  fill: none; stroke-width: 1.75;
  transition: transform var(--t-base) var(--ease-out);
}
.accordion-item.open .accordion-trigger svg { transform: rotate(180deg); }
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-base) var(--ease-out);
}
.accordion-content-inner {
  padding: 0 22px 22px;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.accordion-item.open .accordion-content { max-height: 800px; }

/* ---------- MODAL ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-base), visibility var(--t-base);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-backdrop.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--bg-elevated);
  border-radius: var(--r-xl);
  width: 100%;
  max-width: 500px;
  padding: 32px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-soft);
  transform: translateY(16px) scale(0.98);
  transition: transform var(--t-base) var(--ease-out);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-backdrop.open .modal { transform: translateY(0) scale(1); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 8px; }
.modal h3 { margin-bottom: 4px; }
.modal p { font-size: 14px; color: var(--ink-soft); margin-bottom: 24px; }
.modal-close {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  color: var(--ink-muted);
  transition: all var(--t-fast);
  flex-shrink: 0;
}
.modal-close:hover { background: var(--bg-soft); color: var(--ink); }

.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  font-size: 14px;
  color: var(--ink);
  transition: all var(--t-fast);
  box-shadow: var(--shadow-pressed);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--prism-blue);
  background: white;
  box-shadow:
    var(--shadow-pressed),
    0 0 0 3px rgba(0, 51, 102, 0.1);
}
.field textarea { min-height: 80px; resize: vertical; }

/* ---------- BLOG ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--t-base) var(--ease-out);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.blog-card-img {
  aspect-ratio: 16 / 10;
  background: var(--bg-soft);
  position: relative;
  overflow: hidden;
}
.blog-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-card-meta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 12px; }
.blog-card h3 { margin-bottom: 12px; font-size: 19px; line-height: 1.3; }
.blog-card p { font-size: 14px; color: var(--ink-soft); line-height: 1.55; flex: 1; margin-bottom: 16px; }
.blog-card-link { font-size: 14px; font-weight: 500; color: var(--prism-blue); display: inline-flex; gap: 6px; align-items: center; }
.blog-card:hover .blog-card-link .arrow { transform: translateX(3px); }

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

/* Blog post */
.post-hero { padding: 80px 0 48px; }
.post-hero .container-narrow { text-align: center; }
.post-hero .t-eyebrow { margin-bottom: 16px; }
.post-hero h1 { margin-bottom: 16px; }
.post-hero .lede { font-size: 19px; color: var(--ink-soft); line-height: 1.55; max-width: 640px; margin: 0 auto 24px; }
.post-meta { font-size: 13px; color: var(--ink-muted); display: flex; gap: 16px; justify-content: center; align-items: center; }
.post-meta .dot { width: 4px; height: 4px; background: var(--ink-faint); border-radius: 50%; }

.prose {
  max-width: 720px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
}
.prose > * { margin-bottom: 1.2em; }
.prose h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-top: 2em;
  margin-bottom: 0.6em;
  color: var(--ink);
}
.prose h3 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-top: 1.6em;
  margin-bottom: 0.4em;
}
.prose p { color: var(--ink); }
.prose strong { font-weight: 600; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.4em; margin-bottom: 1.4em; }
.prose ul li { list-style: disc; margin-bottom: 0.5em; color: var(--ink-soft); }
.prose ol li { list-style: decimal; margin-bottom: 0.5em; color: var(--ink-soft); }
.prose blockquote {
  border-left: 3px solid var(--prism-gold);
  padding: 8px 0 8px 24px;
  font-style: italic;
  color: var(--ink-soft);
  background: var(--prism-gold-tint);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  margin: 1.5em 0;
}
.prose code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--bg-soft);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--prism-blue);
  border: 1px solid var(--border-soft);
}
.prose pre {
  background: var(--ink);
  color: #E2E8F0;
  padding: 20px 24px;
  border-radius: var(--r-md);
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
  font-family: var(--mono);
  margin-bottom: 1.5em;
}
.prose pre code {
  background: transparent;
  border: none;
  color: inherit;
  padding: 0;
}
.prose hr { border: none; border-top: 1px solid var(--border-soft); margin: 2.5em 0; }

/* ---------- PAGE HEADER (inner pages) ---------- */
.page-hero {
  padding: 80px 0 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero .t-eyebrow { margin-bottom: 16px; display: inline-block; }
.page-hero h1 { margin-bottom: 20px; max-width: 800px; margin-left: auto; margin-right: auto; }
.page-hero .lede { font-size: 19px; color: var(--ink-soft); line-height: 1.55; max-width: 640px; margin: 0 auto; }

/* ---------- LISTS WITH DOT MARKERS ---------- */
.list-checks {
  display: flex; flex-direction: column; gap: 8px;
}
.list-checks li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.list-checks li::before {
  content: "✓"; flex-shrink: 0;
  color: var(--prism-blue);
  font-weight: 700;
  margin-top: -1px;
}

.list-x li::before {
  content: "✕";
  color: var(--ink-muted);
}

/* ---------- BADGE / TAG ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-pill);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}
.tag-blue { background: var(--prism-blue); color: white; border-color: transparent; }
.tag-gold { background: var(--prism-gold); color: var(--ink); border-color: transparent; }

/* ---------- ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- UTILS ---------- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.flex { display: flex; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.hide-mobile { display: initial; }
@media (max-width: 768px) { .hide-mobile { display: none; } }

/* ---------- SECURITY / API specific ---------- */
.two-col {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
}
@media (max-width: 920px) { .two-col { grid-template-columns: 1fr; } }

.docs-nav {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  max-height: calc(100vh - var(--header-h) - 48px);
  overflow-y: auto;
}
.docs-nav-heading {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
  margin-bottom: 10px;
  padding-top: 8px;
}
.docs-nav-heading:first-child { padding-top: 0; }
.docs-nav a {
  display: block;
  padding: 6px 10px;
  font-size: 13px;
  color: var(--ink-soft);
  border-radius: var(--r-xs);
  transition: all var(--t-fast);
}
.docs-nav a:hover { background: var(--bg-soft); color: var(--ink); }
.docs-nav a.active { background: var(--prism-blue-tint); color: var(--prism-blue); font-weight: 500; }

.docs-content h2 { margin-top: 48px; margin-bottom: 16px; padding-top: 16px; }
.docs-content h2:first-child { margin-top: 0; padding-top: 0; }
.docs-content h3 { margin-top: 32px; margin-bottom: 12px; }
.docs-content p { color: var(--ink-soft); margin-bottom: 16px; line-height: 1.65; }
.docs-content pre {
  background: var(--ink);
  color: #E2E8F0;
  padding: 20px 24px;
  border-radius: var(--r-md);
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
  font-family: var(--mono);
  margin-bottom: 1.5em;
}
.docs-content pre code { color: inherit; background: transparent; padding: 0; border: none; }
.docs-content code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: var(--bg-soft);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--prism-blue);
  border: 1px solid var(--border-soft);
}
.docs-content ul { padding-left: 1.4em; margin-bottom: 1em; }
.docs-content ul li { list-style: disc; color: var(--ink-soft); margin-bottom: 0.4em; }
.docs-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.5em; }
.docs-content th, .docs-content td { padding: 12px 16px; border-bottom: 1px solid var(--border-soft); text-align: left; font-size: 14px; }
.docs-content th { font-weight: 600; color: var(--ink); background: var(--bg-soft); }

/* docs-layout: API page two-column grid */
.docs-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 920px) {
  .docs-layout { grid-template-columns: 1fr; gap: 32px; }
  .docs-layout .docs-nav { position: static; max-height: none; }
}
.docs-nav h6 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
  margin: 16px 0 6px;
  padding: 0 10px;
}
.docs-nav h6:first-child { margin-top: 0; }
.docs-content h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.docs-content h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}
.docs-content > p, .docs-content > ul {
  font-size: 15px;
}

/* blog-card image variant + meta-bottom styling */
.blog-card-image {
  height: 200px;
  overflow: hidden;
  background: var(--prism-blue);
  border-bottom: 1px solid var(--border-soft);
}
.blog-card-image svg { display: block; width: 100%; height: 100%; }
.blog-card-body .t-eyebrow {
  display: block;
  margin-bottom: 12px;
  font-size: 10px;
}
.blog-card .blog-card-meta {
  margin-top: auto;
  margin-bottom: 0;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
}

/* ============================================================
   PRISM Research — paper-specific styles
   ============================================================ */

/* Document header bar */
.paper-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-soft);
}
.paper-meta-bar a:hover { color: var(--prism-blue); }

/* Body — denser, more editorial than marketing prose */
.paper-body {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink);
  max-width: 720px;
}
.paper-body h2 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 56px 0 20px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.paper-body h2:first-child { margin-top: 0; }
.paper-body h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 36px 0 12px;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.paper-body p { margin-bottom: 16px; color: var(--ink); }
.paper-body p strong { font-weight: 600; }
.paper-body ul, .paper-body ol {
  margin: 16px 0 24px;
  padding-left: 24px;
}
.paper-body ul li, .paper-body ol li {
  margin-bottom: 10px;
  line-height: 1.7;
}
.paper-body ul li { list-style: disc; }
.paper-body ol li { list-style: decimal; }
.paper-body em { font-style: italic; color: var(--ink); }

/* Section divider */
.paper-rule {
  border: none;
  border-top: 1px solid var(--border-soft);
  margin: 56px 0;
  position: relative;
}
.paper-rule::after {
  content: '§';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-base);
  padding: 0 12px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink-muted);
}

/* Country part-marker — visual separator between parts */
.part-marker {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 32px 0 16px;
  margin: 24px 0 0;
  border-bottom: 2px solid var(--ink);
}
.part-marker .part-number {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--prism-blue);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.part-marker .part-country {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}

/* Pull-out callout boxes for key findings */
.paper-callout {
  background: linear-gradient(135deg, var(--prism-blue-tint), rgba(232, 238, 245, 0.4));
  border-left: 3px solid var(--prism-blue);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 24px 28px;
  margin: 32px 0;
}
.paper-callout p { margin: 0; font-weight: 400; }

/* Sources list */
.sources-list {
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-soft);
  padding-left: 22px !important;
}
.sources-list li {
  list-style: square !important;
  margin-bottom: 8px !important;
  padding-left: 4px;
}
.sources-list li em { color: var(--ink); }

/* TOC styling tightened for long papers */
.docs-nav h6 {
  margin-top: 20px;
}
.paper-body .compare-table th { font-size: 13px; }
.paper-body .compare-table td { font-size: 13px; }

/* ============================================================
   PROCESS ACCORDION — "walk through our process"
   Native <details>/<summary>: collapsed = straightforward,
   expanded = in-depth. No JS required.
   ============================================================ */
.process-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
}
.process-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}
.process-item[open] {
  box-shadow: var(--shadow-md);
}
.process-item summary {
  list-style: none;
  cursor: pointer;
  padding: 26px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  -webkit-user-select: none;
  user-select: none;
}
.process-item summary::-webkit-details-marker { display: none; }
.process-item summary::marker { content: ""; }
.process-item .process-num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--prism-blue);
  letter-spacing: 0.06em;
  flex-shrink: 0;
  width: 26px;
}
.process-item .process-summary-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.process-item .process-title {
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.process-item .process-teaser {
  font-size: 14px;
  color: var(--ink-muted);
}
.process-item .process-chevron {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  transition: transform 0.25s ease, color 0.25s ease;
}
.process-item[open] .process-chevron {
  transform: rotate(180deg);
  color: var(--prism-blue);
}
.process-item .process-body {
  padding: 0 28px 30px 74px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.process-item .process-body p + p {
  margin-top: 14px;
}
.process-item .process-body .process-deliverable {
  margin-top: 18px;
  padding: 16px 20px;
  background: var(--prism-blue-tint);
  border-radius: var(--r-md);
  font-size: 14px;
  color: var(--prism-blue);
  line-height: 1.6;
}
@media (max-width: 640px) {
  .process-item .process-body { padding-left: 28px; }
}
