/* =============================================================================
   VAPT Design System — main.css
   Full consolidation: tokens + reset + all 18 patterns + mobile nav drawer.
   Single :root block — no duplicates.
   Class names match pattern_library.md exactly so partials compose.
   ========================================================================== */


/* =============================================================================
   1. FOUNDATION — Tokens + Reset
   ========================================================================== */

:root {
  /* Backgrounds (dark tiers) */
  --bg:       #06142a;
  --bg-2:     #0a1f3a;
  --bg-3:     #102a4a;
  --navy:     #1a3a64;
  --navy-2:   #2a4d7a;

  /* Crimson (action + secondary brand) */
  --crimson:   #a01e2f;
  --crimson-2: #c63342;
  --crimson-d: #7a1825;

  /* Chrome (metallic emphasis) */
  --chrome:   #dbe2ec;
  --chrome-2: #8a96a8;

  /* Paper (warm light sections) */
  --paper:      #f4efe6;
  --paper-2:    #ebe3d2;
  --paper-ink:  #172234;
  --paper-soft: #5a6170;
  --paper-line: rgba(23,34,52,0.13);

  /* Elevation for dark media frames on paper (video grid §10, case-compare §24).
     Pronounced lift: inset glass top edge + contact shadow + ambient navy-tinted shadow.
     Used on .feature-clip / .clip-card / .cc-frame. */
  --elev-paper:
    inset 0 1px 0 rgba(255,255,255,0.10),
    0 4px 12px rgba(23,34,52,0.15),
    0 28px 64px rgba(23,34,52,0.24);

  /* Ink (text on dark) */
  --ink:      #f3f5f9;
  --ink-soft: #b8c4d2;
  --ink-mute: #7d8a9a;
  --line:     rgba(219,226,236,0.14);

  /* Layout */
  --max: 1240px;

  /* Typography */
  --serif: 'Source Serif 4', Georgia, serif;
  --sans:  'Manrope', system-ui, sans-serif;
  --mono:  'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;
}

/* Box model */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Smooth scroll (disabled for reduced motion below) */
html {
  scroll-behavior: smooth;
}

/* Base body */
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Selection color */
::selection {
  background: rgba(198,51,66,0.65);
  color: #fff;
}

/* Media defaults */
img,
video {
  max-width: 100%;
  display: block;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
}

/* Form elements inherit font */
button,
input,
textarea,
select {
  font: inherit;
}

/* Headings */
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 620;
  letter-spacing: -0.026em;
  line-height: 1.08;
}

p {
  margin: 0;
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--crimson-2);
  outline-offset: 4px;
}

/* Layout container */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

/* Section rhythm */
section {
  position: relative;
  padding: 112px 0;
}

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

/* Skip link (accessibility — first in body) */
.skip-link {
  position: absolute;
  top: -100vh;
  left: 0;
  z-index: 9999;
  padding: 12px 20px;
  background: var(--crimson);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 0 0 8px 0;
  transition: top 0.1s ease;
}
.skip-link:focus {
  top: 0;
}

/* Responsive adjustments */
@media (max-width: 680px) {
  .wrap { padding: 0 20px; }
  section { padding: 78px 0; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}


/* =============================================================================
   2. EYEBROW & KICKER — Pattern 2
   ========================================================================== */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--crimson-2);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

/* Eyebrow flips to darker crimson on paper/warm contexts */
.paper .eyebrow,
.warm-panel .eyebrow {
  color: var(--crimson);
}

.kicker {
  color: var(--ink-mute);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}


/* =============================================================================
   3. CHROME-TEXT EMPHASIS — Pattern 3
   Only use on dark backgrounds — gradient depends on dark stage for contrast.
   ========================================================================== */

.chrome-text {
  display: inline-block;
  background: linear-gradient(180deg, #fff 0%, var(--chrome) 44%, #6e7a89 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-style: italic;
  line-height: 1.14;
  padding-inline: 0.16em 0.24em;
  padding-block: 0.03em 0.13em;
  margin-inline: -0.08em -0.16em;
}

/* Paper (cream) variant — dark-stage rule forbids the metallic gradient on light
   backgrounds (no contrast to clip against). Same emphasis role, solid crimson ink instead. */
.paper .chrome-text {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: var(--crimson-d);
  -webkit-text-fill-color: var(--crimson-d);
}


/* =============================================================================
   4. BUTTONS — Pattern 4
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 15px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}
.btn:hover {
  transform: translateY(-2px);
}

/* Primary CTA */
.btn-primary {
  background: var(--crimson);
  color: #fff;
  border-color: var(--crimson-2);
  box-shadow: 0 18px 46px rgba(160,30,47,0.28);
}
.btn-primary:hover {
  background: var(--crimson-2);
}

/* Ghost — secondary on dark */
.btn-ghost {
  color: var(--ink);
  border-color: rgba(219,226,236,0.26);
  background: rgba(6,20,42,0.22);
}
.btn-ghost:hover {
  border-color: var(--chrome);
  color: var(--chrome);
}

/* Dark — on light/paper sections */
.btn-dark {
  background: var(--bg);
  color: var(--ink);
  border-color: rgba(6,20,42,0.25);
}
.btn-dark:hover {
  background: var(--bg-2);
}

/* Paper — tertiary on paper sections */
.btn-paper {
  background: transparent;
  color: var(--paper-ink);
  border-color: var(--paper-line);
}
.btn-paper:hover {
  border-color: var(--crimson);
  color: var(--crimson-d);
}

/* Nav CTA modifier — compact */
.nav-cta {
  min-height: 42px;
  padding: 10px 18px;
  font-size: 13px;
}


/* =============================================================================
   5. FIXED NAVIGATION BAR — Pattern 5
   ========================================================================== */

nav.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  background: rgba(6,20,42,0.76);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-row {
  max-width: var(--max);
  margin: 0 auto;
  padding: 13px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 150px; /* trimmed logo intrinsic ~139px at 96px height; watch the 1201px+ threshold for nav overflow */
  flex-shrink: 0;
}

/* Logo sizing — brandref §2 Placement sizes. Classes (not inline styles) so
   the ≤680px override below actually cascades. Heights assume the trimmed
   `logo-tight.png` (whitespace cropped), so the mark fills the box. */
.vapt-logo-nav {
  height: 96px;
  width: auto;
}
.vapt-logo-hero {
  height: 104px;
  width: auto;
}
.vapt-logo-cta {
  height: 88px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px; /* 20 not 24: keeps all links on one line at the 1201px nav threshold with the larger logo */
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  list-style: none;
  margin: 0;
  padding: 0;
  /* Stretch to .nav-row's full cross-axis height (not just its own content
     height) so the <li> stretch below has a full-height box to stretch into —
     required for the sub-menu to land flush on .site-nav's bottom edge. */
  align-self: stretch;
}
.nav-links a {
  position: relative;
  white-space: nowrap;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 1px;
  background: var(--crimson-2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}
.nav-links a:hover {
  color: var(--ink);
}
.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-phone {
  color: var(--chrome);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* Hamburger toggle — visible only <1200px (raised to cover landscape tablets 941–1200px) */
.nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  border: 1px solid rgba(219,226,236,0.26);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  color: var(--ink);
  line-height: 1;
  min-height: 42px;
}
.nav-hamburger:hover {
  border-color: var(--chrome);
  color: var(--chrome);
}
/* Hamburger icon bars */
.nav-hamburger .bar {
  display: block;
  width: 20px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.nav-hamburger .bar-stack {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
/* Animate to X when open */
.nav-hamburger[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-hamburger[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
}
.nav-hamburger[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Icon buttons for mobile (phone + compact book/calendar) — hidden by default */
.nav-icon {
  display: none;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(219,226,236,0.26);
  border-radius: 8px;
  padding: 0;
  cursor: pointer;
  color: var(--ink);
  line-height: 1;
  min-height: 42px;
  min-width: 42px;
  text-decoration: none;
}
.nav-icon:hover,
.nav-icon:focus-visible {
  border-color: var(--chrome);
  color: var(--chrome);
}
.nav-icon svg {
  display: block;
}

@media (max-width: 1200px) {
  .nav-links,
  .nav-phone { display: none; }
  .nav-hamburger,
  .nav-icon-phone { display: flex; }
}
@media (max-width: 680px) {
  .nav-row { padding: 13px 20px; gap: 10px; }
  .nav-actions { gap: 8px; }
  .brand { min-width: 0; flex-shrink: 1; }
  .vapt-logo-nav { height: 84px; max-width: 100%; }
  .nav-cta { display: none; }
  .nav-icon-book { display: flex; }
}


/* =============================================================================
   MOBILE NAV DRAWER — New (not in mockup)
   ========================================================================== */

/* Overlay backdrop */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 149;
  background: rgba(6,20,42,0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.mobile-nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Drawer panel */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  width: min(360px, 92vw);
  background: var(--bg-2);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 0;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.28s ease, visibility 0.28s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-nav.open {
  transform: translateX(0);
  visibility: visible;
}

/* Drawer header row */
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
/* .mobile-nav-logo reuses .vapt-logo-nav sizing (shared 'nav' context, see helpers.php) */

/* Close button */
.mobile-nav-close {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(219,226,236,0.18);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  color: var(--ink-soft);
  min-height: 42px;
  min-width: 42px;
}
.mobile-nav-close:hover {
  color: var(--ink);
  border-color: var(--chrome-2);
}
.mobile-nav-close svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

/* Nav links list */
.mobile-nav-body {
  flex: 1;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav-body a {
  display: block;
  padding: 13px 16px;
  border-radius: 10px;
  color: var(--ink-soft);
  font-size: 16px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.mobile-nav-body a:hover,
.mobile-nav-body a:focus-visible {
  background: rgba(255,255,255,0.04);
  border-color: var(--line);
  color: var(--ink);
}

/* Drawer phone */
.mobile-nav-phone {
  display: block;
  padding: 13px 16px;
  color: var(--chrome);
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  border-top: 1px solid var(--line);
  margin-top: 12px;
}

/* Drawer footer CTA */
.mobile-nav-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}
.mobile-nav-footer .btn {
  width: 100%;
  justify-content: center;
}

/* Body scroll lock */
body.nav-open {
  overflow: hidden;
}

/* Reduced-motion: collapse transitions */
@media (prefers-reduced-motion: reduce) {
  .mobile-nav,
  .mobile-nav-overlay {
    transition: none;
  }
}

/* FIX 5 — reset <li> when nav menus use proper <ul> markup ────────────────────
   .nav-links is the flex container; <li> are now flex children.
   list-style is already none on .nav-links; reset margin/padding on li.
   .mobile-nav-body > ul: use display:contents so li become flex children
   of the nav column, preserving the gap:4px spacing between items. */
.nav-links > li {
  list-style: none;
  margin: 0;
  padding: 0;
  /* Stretch each <li> to the full cross-axis height of .nav-row so its box
     bottom edge lands on .nav-row's inner (padding) bottom edge — this makes
     the sub-menu's "top: calc(100% + <nav-row padding-bottom>)" land exactly
     on .site-nav's bottom border, regardless of link font-size or logo height. */
  display: flex;
  align-items: center;
  align-self: stretch;
}
.nav-links li { position: relative; }
/* FIX: .sub-menu's hit-box starts flush at the <li>'s own bottom edge
   (top: 100%, no gap) so the CSS hover chain (li:hover > .sub-menu) never
   breaks while the cursor travels from the link down to the panel. The
   14px offset needed to align the *visible* panel with .site-nav's true
   bottom edge (13px .nav-row padding-bottom + 1px .site-nav border-bottom)
   is done with padding-top instead of `top`, so that invisible strip is
   still part of .sub-menu's own box and stays hoverable — no dead zone. */
.nav-links .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  margin: 0;
  padding: 22px 0 8px; /* 14px gap-bridge + 8px visual top padding; 8px bottom padding */
  list-style: none;
  display: none;
  z-index: 90;
}
.nav-links li:hover > .sub-menu,
.nav-links li:focus-within > .sub-menu { display: block; }
/* Visible glass panel — a separate layer so it can start 14px below the
   .sub-menu box's own top (flush with .site-nav's bottom edge) without
   opening a gap in the hoverable area itself. */
.nav-links .sub-menu::before {
  content: "";
  position: absolute;
  inset: 14px 0 0 0;
  background: rgba(6,20,42,0.76);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: -1;
  pointer-events: none;
}
.nav-links .sub-menu a {
  position: relative;
  display: block;
  padding: 10px 20px;
  font-size: 12px;
  white-space: nowrap;
}
.nav-links .sub-menu a::after { display: none; }

.mobile-nav-body > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: contents; /* ul box removed; li become direct flex children */
}
.mobile-nav-body > ul > li {
  list-style: none;
}
.mobile-nav-body .sub-menu {
  list-style: none;
  margin: 4px 0 12px 24px;
  padding: 4px 0;
  border-left: 1px solid var(--line);
}
.mobile-nav-body .sub-menu li {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mobile-nav-body .sub-menu a {
  display: block;
  padding: 8px 16px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.mobile-nav-body .sub-menu a:hover,
.mobile-nav-body .sub-menu a:focus-visible {
  background: rgba(255,255,255,0.03);
  border-color: var(--line);
  color: var(--ink);
}


/* =============================================================================
   6. HERO + DIAGNOSTIC CONSOLE — Pattern 6
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  padding: 142px 0 76px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 15% 18%, rgba(26,58,100,0.6), transparent 64%),
    radial-gradient(700px 460px at 84% 76%, rgba(160,30,47,0.25), transparent 62%),
    linear-gradient(180deg, var(--bg) 0%, #07172e 54%, var(--bg) 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 220px;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0,1fr) 500px;
  gap: 58px;
  align-items: center;
}

.hero-copy {
  max-width: 680px;
}
.hero h1 {
  margin-top: 20px;
  font-size: clamp(48px, 6.3vw, 92px);
}
.hero-sub {
  margin-top: 26px;
  max-width: 620px;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.65;
}

/* SEO search pills */
.hero-search {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.search-pill {
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(219,226,236,0.16);
  color: var(--ink-soft);
  background: rgba(255,255,255,0.035);
  font-family: var(--mono);
  font-size: 11px;
}

.hero-cta {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* 3-cell highlight strip */
.hero-note {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  max-width: 640px;
  border: 1px solid var(--line);
  background: rgba(6,20,42,0.34);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.hero-note div {
  padding: 18px;
  border-right: 1px solid var(--line);
}
.hero-note div:last-child {
  border-right: 0;
}
.hero-note b {
  display: block;
  color: var(--chrome);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 560;
  line-height: 1;
}
.hero-note span {
  display: block;
  margin-top: 6px;
  color: var(--ink-mute);
  font-size: 12px;
}

/* Diagnostic console */
.console {
  position: relative;
  border: 1px solid rgba(219,226,236,0.2);
  border-radius: 24px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(219,226,236,0.08), rgba(219,226,236,0.02)),
    rgba(6,20,42,0.52);
  box-shadow: 0 36px 100px rgba(0,0,0,0.38);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
/* Gradient border mask-composite effect */
.console::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    130deg,
    rgba(255,255,255,0.16),
    transparent 30%,
    rgba(198,51,66,0.23)
  );
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  padding: 1px;
}

.console-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 4px 4px 14px;
  color: var(--ink-mute);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.rec-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--crimson-2);
}
.rec-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--crimson-2);
  box-shadow: 0 0 20px rgba(198,51,66,0.8);
}

/* Video screen */
.screen {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(219,226,236,0.15);
  background: #02050a;
}
.screen video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 1.8s ease;
  filter: saturate(0.82) contrast(1.16) brightness(0.78);
}
.screen video.active {
  opacity: 0.62;
  transform: scale(1);
}
/* Scanline + vignette overlay */
.screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(6,20,42,0.78),
      rgba(6,20,42,0.2) 55%,
      rgba(6,20,42,0.72)
    ),
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,0.04) 0 1px,
      transparent 1px 4px
    );
}

/* Screen label */
.screen-label {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
  bottom: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(219,226,236,0.16);
}
.screen-label b {
  display: block;
  margin-bottom: 6px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 560;
  letter-spacing: -0.03em;
}
.screen-label span {
  color: var(--ink-soft);
  font-size: 13px;
}

/* Diagnostic tabs */
.diagnostic-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.diag-tab {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 10px;
  background: rgba(255,255,255,0.035);
  color: var(--ink-mute);
  text-align: left;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.35;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.diag-tab:hover,
.diag-tab.active {
  border-color: var(--crimson-2);
  background: rgba(160,30,47,0.14);
  color: var(--ink);
}

/* Responsive: hero → single column at 1120px */
@media (max-width: 1120px) {
  .hero-grid { grid-template-columns: 1fr; }
  .console    { max-width: 720px; }
}
@media (max-width: 680px) {
  .hero-note       { grid-template-columns: 1fr; }
  .hero-note div   { border-right: 0; border-bottom: 1px solid var(--line); }
  .diagnostic-tabs { grid-template-columns: 1fr; }
}


/* =============================================================================
   7. TRUST STRIP — Pattern 7
   ========================================================================== */

.trust-strip {
  position: relative;
  z-index: 3;
  background: var(--navy);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-grid {
  display: grid;
  grid-template-columns: 1.25fr repeat(3, 1fr);
  gap: 1px;
  background: rgba(219,226,236,0.12);
}
.trust-card {
  padding: 24px 26px;
  background: var(--navy);
  color: var(--ink-soft);
  min-height: 112px;
}
.trust-icon {
  display: block;
  width: 22px;
  height: 22px;
  margin-bottom: 10px;
  color: var(--chrome);
}
.trust-icon svg {
  display: block;
}
.trust-card b {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 560;
  line-height: 1.08;
}
.trust-card span {
  display: block;
  margin-top: 8px;
  font-size: 13px;
}
.trust-card a {
  color: var(--chrome);
}

@media (max-width: 1120px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .trust-grid { grid-template-columns: 1fr; }
}


/* =============================================================================
   8. SECTION HEAD — Pattern 8
   ========================================================================== */

.section-head {
  max-width: 780px;
  margin-bottom: 58px;
}
.section-head h2 {
  margin-top: 16px;
  font-size: clamp(36px, 4.6vw, 62px);
}
.section-head p {
  margin-top: 20px;
  max-width: 660px;
  color: var(--ink-soft);
  font-size: 17px;
}
.paper .section-head p {
  color: var(--paper-soft);
}

/* Button row under section-intro (moved from inline PHP) */
.section-intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

/* Flush variant: collapses bottom spacing so the intro hugs the next section */
.section-intro.intro-flush {
  padding-bottom: 28px;
}
.section-intro.intro-flush .section-head {
  margin-bottom: 0;
}


/* =============================================================================
   9. THREE-STEP "THE PLAN" — Pattern 9
   ========================================================================== */

.plan {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 22px;
}
.step {
  position: relative;
  min-height: 430px;
  padding: 34px 30px 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(26,58,100,0.28), rgba(26,58,100,0.04)),
    rgba(255,255,255,0.015);
  overflow: hidden;
}
.step::after {
  content: "";
  position: absolute;
  inset: auto -20% -38% 25%;
  height: 170px;
  background: radial-gradient(circle, rgba(198,51,66,0.18), transparent 65%);
  pointer-events: none;
}
.step-num {
  font-family: var(--serif);
  font-size: 64px;
  line-height: 1;
  font-style: italic;
  background: linear-gradient(180deg, #fff 0%, var(--chrome) 42%, #6e7a89 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.step h3 {
  margin-top: 22px;
  font-size: 28px;
  letter-spacing: -0.026em;
  line-height: 1.08;
}
.step p {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 15px;
}
.branch-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
  font-size: 14px;
}
.branch-list li {
  padding: 10px 0;
  border-top: 1px dashed rgba(219,226,236,0.15);
}
.branch-list li::before {
  content: "// ";
  color: var(--crimson-2);
  font-family: var(--mono);
}
.plan-note {
  margin-top: 34px;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink-soft);
  background: rgba(6,20,42,0.28);
}
.plan-note b {
  color: var(--chrome);
}

/* Staggered scroll-in reveal (reuses global .reveal → .shown) */
.plan .step.reveal              { transition-delay: 0s; }
.plan .step.reveal:nth-child(2) { transition-delay: 0.12s; }
.plan .step.reveal:nth-child(3) { transition-delay: 0.24s; }

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


/* =============================================================================
   10. CLINICAL VIDEO GRID — Pattern 10
   ========================================================================== */

/* Paper section background */
.paper {
  background:
    radial-gradient(680px 340px at 8% 12%, rgba(255,255,255,0.62), transparent 62%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  color: var(--paper-ink);
}

/* Stacked paper sections read as one continuous surface: the first section
   in a run keeps the light-top fade + corner glow; every following paper
   section continues flat in the settled tone (no gradient reset, no
   repeated glow). */
.paper + .paper {
  background: var(--paper-2);
}

.video-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 20px;
  align-items: stretch;
}
.feature-clip,
.clip-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(23,34,52,0.22);
  background: #03060b;
  box-shadow: var(--elev-paper);
}
/* .video-grid's align-items:stretch matches .feature-clip's row height to
   .clip-list's (2 rows of 4:3 cards), which is inherently taller than a
   single 4:3 box at the same column width. Giving .feature-clip its own
   aspect-ratio there fights that stretch — Chrome resolves the conflict by
   growing the item's WIDTH via the aspect-ratio instead of respecting its
   column track, overflowing into .clip-list. So .feature-clip's shell just
   stretches naturally (min-height only as a floor for when no .clip-list
   sibling exists); safety comes from object-fit:contain on its video
   instead — that guarantees the full landscape Frenzel frame (both eyes)
   is visible no matter what height the shell ends up at. */
.feature-clip {
  min-height: 326px;
}
.clip-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}
.clip-card {
  aspect-ratio: 4 / 3;
}
.feature-clip video,
.clip-card video {
  width: 100%;
  height: 100%;
  opacity: 0.72;
  filter: contrast(1.14) saturate(0.85) brightness(0.78);
}
.feature-clip video { object-fit: contain; }
.clip-card video    { object-fit: cover; }
.feature-clip::after,
.clip-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(2,5,10,0.08) 0%, rgba(2,5,10,0.82) 100%);
}
.clip-meta {
  position: absolute;
  z-index: 2;
  left: 20px;
  right: 20px;
  bottom: 18px;
  color: #fff;
}
.clip-meta b {
  display: block;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.05;
  font-weight: 560;
}
.clip-card .clip-meta b {
  font-size: 18px;
}
.clip-meta span {
  display: block;
  margin-top: 7px;
  color: rgba(255,255,255,0.68);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.clip-badge {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  border: 1px solid var(--crimson);
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--crimson);
  color: #fff;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  font-weight: 600;
}

@media (max-width: 940px) {
  .video-grid        { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .clip-list { grid-template-columns: 1fr; }
}


/* =============================================================================
   11. SERVICE ROW — Pattern 11
   ========================================================================== */

.service-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: var(--line);
}
.service-card {
  min-height: 310px;
  padding: 26px 22px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.18s ease, background 0.18s ease;
  text-decoration: none;
}
.service-card:hover {
  background: var(--bg-2);
  transform: translateY(-2px);
}
.service-card .slug {
  color: var(--crimson-2);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.service-card h3 {
  font-size: 25px;
  letter-spacing: -0.026em;
  line-height: 1.08;
}
.service-card p {
  color: var(--ink-soft);
  font-size: 14px;
}
.service-card .kw {
  margin-top: auto;
  color: var(--ink-mute);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.55;
}
.service-card.featured {
  background: linear-gradient(180deg, rgba(160,30,47,0.18), rgba(6,20,42,0.98));
}

@media (max-width: 1120px) {
  .service-row { grid-template-columns: repeat(2, 1fr); }
  .service-card:last-child { grid-column: span 2; }
}
@media (max-width: 680px) {
  .service-row { grid-template-columns: 1fr; }
  .service-card:last-child { grid-column: auto; }
}


/* =============================================================================
   12. PATIENT PATHWAY — Pattern 12
   ========================================================================== */

.pathway {
  position: relative;
  background: var(--bg-2);
  overflow: hidden;
  padding: 112px 0;
}
/* Grid overlay */
.pathway::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(219,226,236,0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(219,226,236,0.028) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}

.pathway-shell {
  position: relative;
  display: grid;
  grid-template-columns: 310px minmax(0,1fr);
  gap: 34px;
}

.scenario-picker {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.scenario {
  cursor: pointer;
  padding: 17px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.025);
  color: var(--ink-soft);
  text-align: left;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.scenario:hover,
.scenario.active {
  border-color: var(--crimson-2);
  background: rgba(160,30,47,0.15);
  color: var(--ink);
}
.scenario b {
  display: block;
  font-size: 14px;
}
.scenario small {
  display: block;
  margin-top: 4px;
  color: var(--ink-mute);
  font-size: 12px;
}

.map-board {
  min-height: 482px;
  border-radius: 24px;
  border: 1px solid var(--line);
  padding: 30px;
  background:
    radial-gradient(780px 330px at 80% 0%, rgba(26,58,100,0.35), transparent 68%),
    rgba(6,20,42,0.62);
}

.map-lanes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.lane {
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid rgba(219,226,236,0.13);
  color: var(--ink-mute);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.lane.active {
  color: var(--ink);
  border-color: rgba(198,51,66,0.55);
  background: rgba(160,30,47,0.13);
}

.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 42px 34px;
  align-items: stretch;
}
.node {
  position: relative;
  min-height: 106px;
  padding: 15px 17px;
  border-radius: 13px;
  border: 1px solid rgba(26,58,100,0.82);
  background: rgba(26,58,100,0.27);
  color: var(--ink);
  font-size: 14px;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
/* Forward arrow */
.node:not(.terminal)::after {
  content: "\2192";
  position: absolute;
  right: -25px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--chrome);
  font-family: var(--mono);
  font-size: 18px;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.45s ease 0.18s;
  pointer-events: none;
}
.node.in:not(.terminal)::after { opacity: 1; }
/* Line-break arrow (every 4th non-terminal) */
.node:nth-child(4n):not(.terminal)::after {
  content: "\21B5";
  right: auto;
  left: 50%;
  top: auto;
  bottom: -31px;
  transform: translateX(-50%);
}
.node.in {
  opacity: 1;
  transform: translateY(0);
}
.node.terminal {
  border-color: var(--crimson-2);
  background: rgba(160,30,47,0.17);
}

.map-meta {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px dashed var(--line);
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  color: var(--ink-soft);
  font-size: 14px;
}
.map-meta b {
  color: var(--crimson-2);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (max-width: 940px) {
  .pathway-shell { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .node:nth-child(n):not(.terminal)::after {
    content: "\2192";
    right: -25px; left: auto; top: 50%; bottom: auto;
    transform: translateY(-50%);
  }
  .node:nth-child(2n):not(.terminal)::after {
    content: "\21B5";
    right: auto; left: 50%; top: auto; bottom: -31px;
    transform: translateX(-50%);
  }
}
@media (max-width: 680px) {
  .map-lanes { grid-template-columns: 1fr; }
  .flow       { grid-template-columns: 1fr; gap: 38px; }
  .node       { min-height: auto; }
  .node:nth-child(n):not(.terminal)::after {
    content: "\2193";
    right: auto; left: 50%; top: auto; bottom: -29px;
    transform: translateX(-50%);
  }
  .map-meta { grid-template-columns: 1fr; }
}


/* =============================================================================
   13. CONDITIONS GRID — Pattern 13
   ========================================================================== */

.conditions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--paper-line);
  border: 1px solid var(--paper-line);
  border-radius: 22px;
  overflow: hidden;
}
.condition {
  min-height: 162px;
  padding: 22px;
  background: rgba(255,255,255,0.44);
  color: var(--paper-soft);
  transition: background 0.18s ease, color 0.18s ease;
  text-decoration: none;
  display: block;
}
.condition:hover {
  background: #fff;
  color: var(--paper-ink);
}
.cond-icon {
  display: block;
  width: 24px;
  height: 24px;
  margin-bottom: 13px;
  color: var(--crimson);
}
.cond-icon svg {
  display: block;
}
.condition b {
  display: block;
  margin-bottom: 7px;
  color: var(--paper-ink);
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.1;
}
.condition span {
  font-size: 13px;
}

@media (max-width: 940px) {
  .conditions-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .conditions-grid { grid-template-columns: 1fr; }
}


/* =============================================================================
   14. DOCTOR / ABOUT BLOCK — Pattern 14
   ========================================================================== */

.doctor {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.doctor-grid {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 64px;
  align-items: center;
}

/* Portrait panel (dark stage satisfies logo rule) */
.portrait-panel {
  position: relative;
  min-height: 560px;
  border-radius: 26px;
  border: 1px solid var(--line);
  overflow: hidden;
  background:
    radial-gradient(circle at 40% 24%, rgba(219,226,236,0.18), transparent 55%),
    linear-gradient(180deg, var(--navy), var(--bg-2));
  display: flex;
  align-items: center;
  justify-content: center;
}
.portrait-panel picture img,
.portrait-panel img {
  width: min(70%, 330px);
  opacity: 0.22;
  filter: blur(0.2px);
}
/* Placeholder label — remove when real portrait added */
.portrait-panel::after {
  content: "Portrait / treatment photography drops here";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-mute);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Real portrait fills the panel.
   align-self:stretch on the flex child gives it the panel's full height
   without absolute positioning (which breaks loading="lazy" intersection
   detection). object-fit:cover then crops the photo to fill the box. */
.portrait-panel.has-portrait {
  align-items: stretch; /* override the default center; stretches the img child */
}
.portrait-panel.has-portrait img {
  width: 100%;
  object-fit: cover;
  object-position: center right; 
  opacity: 1;
  filter: none;
}
/* Hide the placeholder caption once a real portrait is present */
.portrait-panel.has-portrait::after { content: none; }

.doctor-copy h2 {
  margin-top: 16px;
  font-size: clamp(34px, 4vw, 58px);
}
.doctor-copy p {
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: 17px;
  max-width: 640px;
}
.doctor-quote {
  margin-top: 32px;
  padding-left: 22px;
  border-left: 2px solid var(--crimson-2);
  color: var(--chrome);
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.4;
}

.doctor-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 34px;
}
.doctor-stat {
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.doctor-stat b {
  display: block;
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1;
  color: var(--chrome);
}
.doctor-stat span {
  display: block;
  margin-top: 8px;
  color: var(--ink-mute);
  font-size: 12px;
}

@media (max-width: 940px) {
  .doctor-grid  { grid-template-columns: 1fr; }
  .doctor-stats { grid-template-columns: repeat(2, 1fr); }
}


/* =============================================================================
   15. FAQ (ANSWER-FIRST) — Pattern 15
   ========================================================================== */

.faq-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 42px;
  align-items: start;
}
.answer-card {
  padding: 28px;
  border-radius: 22px;
  border: 1px solid var(--paper-line);
  background: rgba(255,255,255,0.5);
}
.answer-card h3 {
  font-size: 28px;
  letter-spacing: -0.026em;
  line-height: 1.08;
}
.answer-card p {
  margin-top: 14px;
  color: var(--paper-soft);
}
.faq-list {
  display: grid;
  gap: 12px;
}
details {
  border: 1px solid var(--paper-line);
  border-radius: 16px;
  background: rgba(255,255,255,0.48);
  padding: 18px 20px;
}
details[open] {
  background: rgba(255,255,255,0.64);
}
summary {
  cursor: pointer;
  color: var(--paper-ink);
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  color: var(--crimson);
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 400;
  flex-shrink: 0;
  transition: transform 0.18s ease;
}
details[open] summary::after {
  transform: rotate(45deg);
}
details p {
  margin-top: 12px;
  color: var(--paper-soft);
}

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


/* =============================================================================
   16. CTA CARD — Pattern 16
   ========================================================================== */

.cta {
  background: var(--bg);
}
.cta-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--line);
  padding: 70px 64px;
  background:
    radial-gradient(700px 360px at 88% 16%, rgba(26,58,100,0.55), transparent 66%),
    radial-gradient(620px 340px at 12% 82%, rgba(160,30,47,0.22), transparent 62%),
    linear-gradient(180deg, var(--bg-2), var(--bg-3));
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 42px;
  align-items: center;
}
.cta-card h2 {
  margin-top: 14px;
  font-size: clamp(34px, 4.4vw, 62px);
}
.cta-card p {
  margin-top: 18px;
  color: var(--ink-soft);
  max-width: 570px;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.contact-stack {
  color: var(--ink-soft);
  font-size: 14px;
}
.contact-stack div {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.contact-stack div:last-child {
  border-bottom: 0;
}
.contact-stack b {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 560;
}
.contact-stack a {
  color: var(--chrome);
}

@media (max-width: 940px) {
  .cta-card { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .cta-card { padding: 46px 24px; }
}


/* =============================================================================
   17. FOOTER — Pattern 17
   ========================================================================== */

footer {
  padding: 70px 0 40px;
  background: var(--bg);
  border-top: 1px solid var(--line);
  color: var(--ink-mute);
  font-size: 13px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.25fr repeat(4, 1fr);
  gap: 30px;
  align-items: start;
}
.vapt-logo-footer {
  height: 104px;
  width: auto;
  margin-bottom: 18px;
}
.foot-brand p {
  max-width: 260px;
}
.foot-col b {
  display: block;
  margin-bottom: 12px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 560;
}
.foot-col a,
.foot-col span {
  display: block;
  margin-bottom: 7px;
}
.foot-col a:hover {
  color: var(--chrome);
}
.legal {
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
}

@media (max-width: 940px) {
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .foot-grid { grid-template-columns: 1fr; }
}

/* ── reCAPTCHA v3 attribution (replaces the floating badge) ────────────────
   Google's terms permit hiding the badge ONLY when the branding is replaced
   with visible text linking their Privacy Policy and Terms of Service. That
   text is `.legal-recaptcha`, rendered in the footer legal bar by
   vapt_recaptcha_policy_notice(). Never remove one without the other.

   `visibility: hidden` (not `display: none`): the badge is position:fixed and
   offscreen anyway, and keeping it in the layout leaves grecaptcha's own
   scoring/telemetry untouched. Nothing paints, nothing reflows. */
.grecaptcha-badge {
  visibility: hidden;
}

/* order:1 + full basis drops the notice onto its own line beneath the
   copyright / credit pair, whatever the viewport width. */
.legal-recaptcha {
  order: 1;
  flex-basis: 100%;
  color: var(--ink-mute);
  font-size: 11px;
  line-height: 1.5;
}
.legal-recaptcha a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-recaptcha a:hover {
  color: var(--chrome);
}


/* =============================================================================
   18. REVEAL-ON-SCROLL — Pattern 18
   ========================================================================== */

/* No-JS fallback: without the `.js` class on <html> (set by an inline
   script in header.php, before wp_head() enqueues any stylesheet), .reveal
   content stays fully visible — there is no script running to ever add the
   `.shown` class that would end the hidden state below. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.72s ease, transform 0.72s ease;
}
.js .reveal.shown {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* =============================================================================
   Global Spacing Modifiers (used by all flexible sections)
   ========================================================================== */

.spacing-compact {
  padding-block: 78px;
}
.spacing-spacious {
  padding-block: 150px;
}

@media (max-width: 680px) {
  .spacing-compact { padding-block: 56px; }
  .spacing-spacious { padding-block: 100px; }
}


/* =============================================================================
   19. PROSE — Generic WYSIWYG Content
   ========================================================================== */

.prose-section {
  /* Base section padding applies; spacing-* modifiers override via padding-block */
}

.prose {
  max-width: 68ch;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.7;
}

/* Consistent vertical rhythm between block elements */
.prose > * + * {
  margin-top: 1.1em;
}

/* Prose headings — scaled for inline content, still brand serif */
.prose h2 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 620;
  letter-spacing: -0.026em;
  line-height: 1.1;
  margin-top: 1.4em;
  color: var(--ink);
}
.prose h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 620;
  letter-spacing: -0.026em;
  line-height: 1.15;
  margin-top: 1.3em;
  color: var(--ink);
}
.prose h4 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 620;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-top: 1.2em;
  color: var(--ink);
}

/* First heading should sit tight if it leads the block */
.prose > h2:first-child,
.prose > h3:first-child,
.prose > h4:first-child {
  margin-top: 0;
}

/* In-content links — visible chrome underline (never the gradient chrome-text) */
.prose a {
  color: var(--chrome);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.prose a:hover,
.prose a:focus-visible {
  color: var(--crimson-2);
}

/* Lists */
.prose ul,
.prose ol {
  padding-left: 1.4em;
  margin-top: 0.6em;
  margin-bottom: 0.6em;
}
.prose li + li {
  margin-top: 0.35em;
}
.prose ul li::marker {
  color: var(--crimson-2);
}

/* Blockquote — echoes doctor-quote and hairline language */
.prose blockquote {
  margin: 1.4em 0;
  padding-left: 22px;
  border-left: 2px solid var(--crimson-2);
  color: var(--chrome);
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.45;
}
.prose blockquote p {
  margin: 0;
}
.prose blockquote cite {
  display: block;
  margin-top: 0.6em;
  font-family: var(--mono);
  font-style: normal;
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
}

/* Horizontal rule */
.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.8em 0;
}

/* Code / pre */
.prose code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: rgba(219,226,236,0.08);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}
.prose pre {
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.5;
  background: rgba(6,20,42,0.6);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  overflow-x: auto;
}
.prose pre code {
  background: none;
  padding: 0;
}

/* Tables — hairline borders (shared by .prose and .doctor-body free-form fields) */
.prose table,
.doctor-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 1.2em 0;
}
.prose th,
.prose td,
.doctor-body th,
.doctor-body td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
}
.prose th,
.doctor-body th {
  background: rgba(26,58,100,0.25);
  font-weight: 600;
  color: var(--chrome);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Desktop overflow-x scroll safety net for very wide free-form tables
   (JS wraps each table in .table-wrap). Prevents a wide table from blowing
   out the 68ch prose column; below 680px the table stacks instead (see §19b). */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table-wrap > table {
  margin: 1.2em 0;
}

/* Figures / captions */
.prose figure {
  margin: 1.4em 0;
}
.prose figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-mute);
  font-family: var(--mono);
  letter-spacing: 0.06em;
}

/* Emphasis */
.prose strong {
  color: var(--ink);
  font-weight: 600;
}
.prose em {
  font-style: italic;
}

/* Paper (cream) variant — respect dark-stage rule: no chrome text/links on paper */
.paper .prose {
  color: var(--paper-ink);
}
.paper .prose h2,
.paper .prose h3,
.paper .prose h4,
.paper .prose strong {
  color: var(--paper-ink);
}
.paper .prose a {
  color: var(--crimson-d);
}
.paper .prose a:hover,
.paper .prose a:focus-visible {
  color: var(--crimson);
}
.paper .prose blockquote {
  color: var(--paper-ink);
  border-left-color: var(--crimson);
}
.paper .prose blockquote cite {
  color: var(--paper-soft);
}
.paper .prose figcaption,
.paper .prose th {
  color: var(--paper-soft);
}
.paper .prose code {
  background: rgba(23,34,52,0.08);
}
.paper .prose pre {
  background: rgba(255,255,255,0.5);
  border-color: var(--paper-line);
}
.paper .prose hr {
  border-top-color: var(--paper-line);
}
.paper .prose th {
  background: rgba(23,34,52,0.06);
}

/* ── 19b. Responsive tables — stack into labeled cards on phones ──────────────
   Below the 680px phone breakpoint, any free-form table (.prose / .doctor-body)
   collapses so each row becomes a bordered card. MODULE 8 in main.js injects a
   data-label (the column header) onto each cell; here that label is rendered as
   a mono micro-heading above the value, so a 4-column comparison table stays
   readable without horizontal crush. The thead is visually clipped (not removed)
   so screen readers keep their header↔cell association. */
@media (max-width: 680px) {
  .prose table,
  .doctor-body table {
    border: 0;
    font-size: 15px;
  }

  /* Clip the header row: off-screen for sighted users (labels are inline via
     ::before) but still present for assistive tech. */
  .prose thead,
  .doctor-body thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  .prose tr,
  .doctor-body tr {
    display: block;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(10,31,58,0.35);
    margin: 0 0 14px;
    padding: 4px 0;
  }

  .prose td,
  .prose th,
  .doctor-body td,
  .doctor-body th {
    display: block;
    border: 0;
    padding: 8px 14px;
    text-align: left;
  }

  /* Column-header micro-label above each value (mono, uppercase — mirrors the
     desktop th aesthetic). Only appears where MODULE 8 set a data-label. */
  .prose td[data-label]::before,
  .doctor-body td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--chrome);
    opacity: 0.85;
  }

  /* Leading row-header (<th scope="row">) becomes the card title. */
  .prose th[scope="row"],
  .doctor-body th[scope="row"] {
    background: transparent;
    color: var(--chrome);
    font-family: var(--mono);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--line);
    margin-bottom: 4px;
    padding-bottom: 8px;
  }

  /* Paper-variant cards: keep chrome micro-labels legible on the cream stage. */
  .paper .prose tr {
    background: rgba(23,34,52,0.04);
    border-color: var(--paper-line);
  }
  .paper .prose td[data-label]::before,
  .paper .prose th[scope="row"] {
    color: var(--paper-soft);
    opacity: 1;
  }
  .paper .prose th[scope="row"] {
    border-bottom-color: var(--paper-line);
  }
}


/* =============================================================================
   20. HERO SIGNAL — Pattern 22 (interior video hero)
   ========================================================================== */

/* Same gradient stack as .hero so the section stands on its own when the
   ambient video/poster is absent (media never loads on mobile/reduced-motion). */
.hero-signal {
  position: relative;
  min-height: 64vh;
  padding: 142px 0 64px; /* top clears the fixed nav, same as .hero */
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 15% 18%, rgba(26,58,100,0.6), transparent 64%),
    radial-gradient(700px 460px at 84% 76%, rgba(160,30,47,0.25), transparent 62%),
    linear-gradient(180deg, var(--bg) 0%, #07172e 54%, var(--bg) 100%);
}
.hero-signal::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 140px;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
  z-index: 1;
}

/* Full-bleed ambient backdrop */
.hero-signal-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-signal-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  filter: saturate(0.82) contrast(1.16) brightness(0.6);
}
/* Heavy navy scrim + scanlines (dimmer sibling of .screen::after — copy
   sits directly on this layer, so contrast comes first) */
.hero-signal-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(6,20,42,0.88),
      rgba(6,20,42,0.55) 55%,
      rgba(6,20,42,0.82)
    ),
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,0.04) 0 1px,
      transparent 1px 4px
    );
}

.hero-signal .wrap {
  position: relative;
  z-index: 2;
}
/* Interior display scale — a step below the homepage hero */
.hero-signal h1 {
  margin-top: 20px;
  font-size: clamp(40px, 5vw, 68px);
}

@media (max-width: 680px) {
  .hero-signal { min-height: 0; }
}


/* =============================================================================
   21. HERO LEDGER — Pattern 23 (typographic case-file hero)
   ========================================================================== */

.hero-ledger {
  position: relative;
  padding: 158px 0 56px; /* auto height — the type carries the section */
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg) 0%, #0a1f3a 70%, var(--bg) 100%);
}
.hero-ledger h1 {
  margin-top: 20px;
  font-size: clamp(40px, 5vw, 68px);
}

/* Mono key/value "case file" readout strip (kin to .hero-note) */
.ledger-strip {
  margin: 34px 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  max-width: 880px;
  border: 1px solid var(--line);
  border-left: 0;
  background: rgba(6,20,42,0.34);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.ledger-item {
  padding: 16px 18px;
  border-left: 1px solid var(--line);
}
.ledger-item dt {
  color: var(--ink-mute);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.ledger-item dd {
  margin: 6px 0 0;
  color: var(--chrome);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 680px) {
  .ledger-strip { grid-template-columns: 1fr 1fr; }
  /* An odd item count (e.g. 3 pricing items) otherwise strands the last
     cell alone in the left column with dead space to its right. */
  .ledger-item:last-child:nth-child(odd) { grid-column: 1 / -1; }
}


/* =============================================================================
   24. CASE COMPARISON (BEFORE / AFTER RECOVERY VIEWER) — Pattern 24
    Dark infrared clinical clips, framed on a .paper section. Reuses the
    .feature-clip / .clip-card infrared grade (contrast 1.14 / saturate .85 /
    brightness .78, base opacity .72) and the .clip-badge / .clip-meta
    overlay styles from §10 verbatim.
   Scope: everything below is namespaced under .case-compare / .cc-*.
   ========================================================================== */

/* Section head — centered variant of §8 .section-head, for the intro copy
   above the first .cc-viewer */
.case-compare .cc-head {
  max-width: 720px;
  margin: 0 auto 58px;
  text-align: center;
}
.case-compare .cc-head .eyebrow {
  justify-content: center;
}
.cc-head h2 {
  margin-top: 16px;
  font-size: clamp(36px, 4.6vw, 62px);
}
.cc-intro {
  margin: 20px auto 0;
  max-width: 620px;
  color: var(--paper-soft);
  font-size: 17px;
}

/* One case per .cc-viewer; multiple viewers stack with a hairline divider
   and generous spacing so each case reads as its own "case file" entry. */
.cc-viewer {
  padding: 48px 0;
  border-top: 1px solid var(--paper-line);
}
/* The first viewer drops its top divider whether or not a .cc-head (also a
   <div>) precedes it — :first-of-type alone would miss when .cc-head is present. */
.cc-viewer:first-of-type,
.cc-head + .cc-viewer {
  padding-top: 0;
  border-top: 0;
}
.cc-viewer + .cc-viewer {
  margin-top: 12px;
}

/* Case-file readout strip (kin to §23 .ledger-strip, adapted for the paper/
   light stage this section sits on) */
.cc-case-head {
  max-width: 640px;
  margin: 0 auto 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--paper-line);
  text-align: center;
}
.cc-case-head .eyebrow {
  justify-content: center;
}
.cc-case-head h3 {
  margin-top: 10px;
  font-size: clamp(22px, 2.6vw, 30px);
  color: var(--paper-ink);
}
.cc-context {
  margin-top: 10px;
  color: var(--paper-soft);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Segmented tab control (Pre-Treatment / Post-Treatment) */
.cc-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  max-width: 480px;
  margin: 0 auto 28px;
}
.cc-tab {
  flex: 1;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 13px 18px;
  border: 1px solid var(--paper-line);
  background: transparent;
  color: var(--paper-soft);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.cc-tab-timeframe {
  display: block;
  margin-top: 3px;
  font-size: 9px;
  font-weight: 500;
  opacity: 0.82;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cc-tab:first-child {
  border-right: 0;
  border-radius: 999px 0 0 999px;
}
.cc-tab:last-child {
  border-radius: 0 999px 999px 0;
}
.cc-tab.active {
  background: var(--crimson);
  border-color: var(--crimson);
  color: #fff;
}
.cc-tab:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid var(--crimson-2);
  outline-offset: 2px;
}

/* Stage — desktop shows Pre | connector | Post side by side; mobile is pure
   tab mode (one frame visible at a time, connector hidden). */
.cc-stage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
}

/* Infrared frame — matches .feature-clip/.clip-card shell exactly (radius,
   border, dark bg, overflow, bottom scrim). Aspect ratio 4/3 (not 16/9):
   the clinical Frenzel footage is a close-in eye/face crop, so 4/3 keeps the
   frame boxier — the same choice already made for .clip-card in §10 — and
   two 4/3 frames read cleanly on either side of the narrow .cc-connector
   column at the 1fr auto 1fr desktop grid, without going letterboxed-thin. */
.cc-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 22px;
  border: 1px solid rgba(23,34,52,0.22);
  background: #03060b;
  box-shadow: var(--elev-paper);
}
.cc-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  filter: contrast(1.14) saturate(0.85) brightness(0.78);
}
.cc-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(2,5,10,0.08) 0%, rgba(2,5,10,0.82) 100%);
}

/* Connector — vertical rule + mono interval chip + arrow, pre → post.
   Desktop-only; collapses away in tab mode below 992px. */
.cc-connector {
  position: relative;
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 64px;
}
.cc-connector span {
  position: relative;
  z-index: 1;
  padding: 6px 12px;
  border: 1px solid var(--paper-line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--crimson);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Ghost replay control — hidden by [hidden] until JS reveals it after the
   Pre → Post auto-advance sequence completes. */
.cc-replay[hidden] {
  display: none;
}
.cc-replay {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 28px auto 0;
  padding: 10px 18px;
  border: 1px solid var(--paper-line);
  border-radius: 999px;
  background: transparent;
  color: var(--paper-soft);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.cc-replay:hover,
.cc-replay:focus-visible {
  color: var(--crimson);
  border-color: var(--crimson);
}

/* Desktop ≥992px: side-by-side, both frames visible, active frame promoted */
@media (min-width: 992px) {
  .cc-stage {
    grid-template-columns: 1fr auto 1fr;
    gap: 28px;
  }
  /* Defensive: a one-sided case (pre-only or post-only, so no connector)
     falls back to a single centered column instead of hugging the left half. */
  .cc-stage:not(:has(.cc-connector)) {
    grid-template-columns: minmax(0, 640px);
    justify-content: center;
  }
  .cc-connector {
    display: flex;
  }
  .cc-connector::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: var(--paper-line);
    transform: translateX(-50%);
  }
  .cc-connector::after {
    content: "\2192";
    position: absolute;
    bottom: -8px;
    padding: 0 4px;
    background: var(--paper-2);
    color: var(--crimson);
    font-family: var(--mono);
    font-size: 15px;
  }
  .cc-frame {
    transition: opacity 0.3s ease, transform 0.3s ease, filter 0.3s ease;
  }
  .cc-frame:not(.active) {
    opacity: 0.45;
    filter: grayscale(0.5);
  }
  .cc-frame.active {
    opacity: 1;
    transform: scale(1.015);
  }
}

/* Below 992px: pure tab mode — one frame at a time */
@media (max-width: 991px) {
  .cc-frame:not(.active) {
    display: none;
  }
}

/* Narrow phones: stack the two tabs instead of squeezing them side by side */
@media (max-width: 420px) {
  .cc-tabs {
    flex-direction: column;
  }
  .cc-tab:first-child {
    border-right: 1px solid var(--paper-line);
    border-bottom: 0;
    border-radius: 14px 14px 0 0;
  }
  .cc-tab:last-child {
    border-radius: 0 0 14px 14px;
  }
}

/* Reduced motion: no frame promotion animation, no tab/replay transitions */
@media (prefers-reduced-motion: reduce) {
  .cc-frame,
  .cc-tab,
  .cc-replay {
    transition: none;
  }
  .cc-frame.active {
    transform: none;
  }
}


/* =============================================================================
   25. PRICING OPTIONS — Pattern 25 (rate-card ledger)
   Dark-first by default; .paper flips figures/cards to the light stage per
   the dark-stage rule (chrome gradient never renders on paper).
   ========================================================================== */

.pricing {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.pricing.paper {
  background: none; /* .paper (§10) supplies the cream gradient */
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: 34px 28px 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(26,58,100,0.28), rgba(26,58,100,0.04)),
    rgba(255,255,255,0.015);
}
.paper .price-card {
  border-color: var(--paper-line);
  background: rgba(255,255,255,0.5);
}

.price-card.featured {
  border-color: rgba(198,51,66,0.5);
  background:
    linear-gradient(180deg, rgba(160,30,47,0.2), rgba(160,30,47,0.03)),
    rgba(255,255,255,0.015);
}
.paper .price-card.featured {
  background:
    linear-gradient(180deg, rgba(160,30,47,0.1), transparent),
    rgba(255,255,255,0.7);
}

.price-badge {
  position: absolute;
  top: -13px;
  left: 28px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--crimson);
  color: #fff;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.price-card-label {
  color: var(--crimson-2);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.paper .price-card-label {
  color: var(--crimson);
}

.price-figure {
  margin-top: 16px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.price-amount {
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 40px);
  font-weight: 620;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--chrome);
}
.paper .price-amount {
  color: var(--crimson-d);
}
.price-note-text {
  color: var(--ink-mute);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.paper .price-note-text {
  color: var(--paper-soft);
}

.price-card-desc {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
}
.paper .price-card-desc {
  color: var(--paper-soft);
}

.price-card-cta {
  margin-top: auto;
  align-self: flex-start;
  padding-top: 26px;
}

.pricing-notes {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  color: var(--ink-mute);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
}
.paper .pricing-notes {
  color: var(--paper-soft);
}
.pricing-notes li::before {
  content: "// ";
  color: var(--crimson-2);
}
.paper .pricing-notes li::before {
  color: var(--crimson);
}

@media (max-width: 940px) {
  .pricing-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 680px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card { min-height: 0; }
  /* Without a forced card min-height, .price-card-cta's margin-top: auto
     collapses to 0 — its 26px padding-top was propping up the illusion of a
     gap by padding the button's own text box, leaving it lopsided (26px
     above the label, 15px below). Give the gap back to margin and restore
     the button's normal symmetric padding. */
  .price-card-cta {
    margin-top: 24px;
    padding-top: 15px;
  }
}


/* =============================================================================
   26. CONTACT FORM PANEL — Pattern 26 (direct-message form + contact stack)
   Dark-first console-style form fields; .paper flips to light inputs.
   Reuses .contact-stack (§16) verbatim for the aside column.
   ========================================================================== */

.contact-panel {
  background: var(--bg);
}
.contact-panel.paper {
  background: none; /* .paper (§10) supplies the cream gradient */
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}

.contact-form-col .section-head {
  margin-bottom: 32px;
}

/* Notices */
.form-notice {
  margin-bottom: 24px;
  padding: 16px 20px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.55;
}
.form-notice.success {
  border: 1px solid rgba(198,51,66,0.35);
  background: rgba(160,30,47,0.12);
  color: var(--ink);
}
.form-notice.error {
  border: 1px solid var(--crimson-2);
  background: rgba(160,30,47,0.18);
  color: var(--ink);
}
.paper .form-notice.success,
.paper .form-notice.error {
  color: var(--paper-ink);
  background: rgba(160,30,47,0.08);
  border-color: rgba(160,30,47,0.3);
}

/* Honeypot — off-canvas, unreachable by keyboard/AT, real users never see it */
.vapt-hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.vapt-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-field label {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.paper .form-field label {
  color: var(--paper-soft);
}
.req-mark {
  color: var(--crimson-2);
}
.paper .req-mark {
  color: var(--crimson);
}

.field-error {
  color: var(--crimson-2);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}
.paper .field-error {
  color: var(--crimson);
}

.form-field input,
.form-field textarea {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.035);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  border-color: var(--crimson-2);
}
.paper .form-field input[aria-invalid="true"],
.paper .form-field textarea[aria-invalid="true"] {
  border-color: var(--crimson);
}
.form-field textarea {
  resize: vertical;
  min-height: 120px;
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--ink-mute);
}
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--crimson-2);
  background: rgba(255,255,255,0.06);
}
.paper .form-field input,
.paper .form-field textarea {
  border-color: var(--paper-line);
  background: rgba(255,255,255,0.7);
  color: var(--paper-ink);
}
.paper .form-field input::placeholder,
.paper .form-field textarea::placeholder {
  color: var(--paper-soft);
}
.paper .form-field input:focus,
.paper .form-field textarea:focus {
  border-color: var(--crimson);
  background: #fff;
}

.vapt-form .btn {
  align-self: flex-start;
  margin-top: 6px;
  border: none;
  cursor: pointer;
}

.contact-aside {
  padding: 30px 32px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,0.02);
}
.paper .contact-aside {
  border-color: var(--paper-line);
  background: rgba(255,255,255,0.5);
}
.paper .contact-stack {
  color: var(--paper-soft);
}
.paper .contact-stack div {
  border-bottom-color: var(--paper-line);
}
.paper .contact-stack b {
  color: var(--paper-ink);
}
.paper .contact-stack a {
  color: var(--crimson-d);
}

@media (max-width: 940px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-aside { order: -1; }
}
@media (max-width: 680px) {
  .form-row.two-col { grid-template-columns: 1fr; }
  .contact-aside { padding: 24px; }
}


/* =============================================================================
   27. REVIEWS WIDGET — Pattern 27 (EmbedSocial Google reviews, dark stage)
   ========================================================================== */

.reviews {
  background: var(--bg);
  padding-block: 110px;
}
.reviews.paper {
  background: var(--paper);
  color: var(--ink-on-paper, #1a2433);
}
.reviews .section-head {
  margin-bottom: 36px;
  max-width: 720px;
}
.reviews .section-head h2 {
  margin-top: 14px;
  font-size: clamp(30px, 3.8vw, 48px);
}
.reviews .section-head p {
  margin-top: 16px;
  color: var(--ink-soft);
  max-width: 560px;
}
.reviews.paper .section-head p {
  color: var(--ink-soft-on-paper, rgba(26, 36, 51, 0.72));
}

/* Shell keeps the third-party widget inside the brand frame without fighting
   EmbedSocial's internal layout. Dark stage matches cta_card adjacency. */
.reviews-widget-shell {
  position: relative;
  border-radius: 22px;
  border: 1px solid var(--line);
  padding: 18px 14px 10px;
  background:
    radial-gradient(640px 280px at 90% 0%, rgba(26, 58, 100, 0.42), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg-3));
  overflow: hidden;
  min-height: 120px;
}
.reviews.paper .reviews-widget-shell {
  border-color: rgba(26, 36, 51, 0.12);
  background:
    radial-gradient(640px 280px at 90% 0%, rgba(26, 58, 100, 0.08), transparent 70%),
    linear-gradient(180deg, #fff, var(--paper-2, #ebe4d8));
}

/* Attribution fallback shown before aht.js hydrates the widget. */
.reviews .powered-by-es {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 4px 12px;
  color: var(--ink-mute);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.reviews .powered-by-es img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.reviews .powered-by-es:hover {
  color: var(--chrome);
}

@media (max-width: 680px) {
  .reviews {
    padding-block: 72px;
  }
  .reviews-widget-shell {
    padding: 12px 8px 6px;
    border-radius: 16px;
  }
}


/* =============================================================================
   WordPress Core Alignments (for any block content areas)
   ========================================================================== */

.alignleft  { float: left;  margin-right: 1.5em; }
.alignright { float: right; margin-left: 1.5em; }
.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.alignwide  { width: 100%; }
.alignfull  { width: 100vw; margin-left: calc(50% - 50vw); }
