/* ============================================================
   Pillar2OS site - editorial light theme (2026 refresh)
   Loaded after style.css on every marketing page. Overrides the
   glassmorphism layer with a flat, full-bleed, navy-accented look.
   ============================================================ */

:root {
  --h-bg: #f5f7fa;
  --h-surface: #ffffff;
  --h-ink: #0a1630;
  --h-ink-2: #3a475f;
  --h-muted: #6b778d;
  --h-line: #e1e6ee;
  --h-line-strong: #c9d2e0;
  --h-navy: #0b2559;
  --h-navy-hover: #061a44;
  --h-blue: #1d4ed8;
  --h-blue-soft: #eaf0fd;
  --h-green: #047857;
  --h-red: #b91c1c;
  --display: 'Inter Tight', 'DM Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', ui-monospace, Consolas, monospace;
  --gutter: max(24px, calc((100% - 1180px) / 2));

  /* Re-point legacy tokens so existing components follow the new palette */
  --bg: var(--h-bg);
  --text: var(--h-ink-2);
  --text-h: var(--h-ink);
  --text-muted: var(--h-muted);
  --accent: var(--h-blue);
  --accent-dark: var(--h-navy);
}

body.site-v2 {
  background: var(--h-bg);
  background-image: none;
  color: var(--h-ink-2);
  font-size: 16px;
}

/* ---- Strip the glass shell: full-bleed page ---- */
.site-v2 .dot-grid,
.site-v2 .cursor-glow,
.site-v2 .sphere,
.site-v2 .ring-1,
.site-v2 .ring-2,
.site-v2 .section-divider,
.site-v2 .glass-page::before { display: none; }

.site-v2 .glass-page {
  max-width: none;
  margin: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  overflow: visible;
  overflow-x: clip;
  counter-reset: sec;
}

/* ---- Type ---- */
.site-v2 h1,
.site-v2 h2,
.site-v2 h3 {
  font-family: var(--display);
  color: var(--h-ink);
  font-weight: 600;
}
.site-v2 h1 em,
.site-v2 h2 em {
  font-size: 1em;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: none;
  color: var(--h-blue);
}

/* ---- Buttons ---- */
.site-v2 .btn-primary,
.site-v2 .btn-demo,
.site-v2 .btn-ghost {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  padding: 15px 26px;
  border-radius: 999px;
  gap: 10px;
  transition: background .2s, border-color .2s, box-shadow .2s, color .2s, transform .15s;
}
.site-v2 .btn-primary {
  color: #fff;
  background: var(--h-navy);
  border: 1px solid var(--h-navy);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 10px 24px -12px rgba(11,37,89,.6);
}
.site-v2 .btn-primary:hover {
  background: var(--h-navy-hover);
  border-color: var(--h-navy-hover);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 14px 28px -12px rgba(11,37,89,.7);
  transform: translateY(-1px);
}
.site-v2 .btn-primary svg { transition: transform .2s; }
.site-v2 .btn-primary:hover svg { transform: translateX(3px); }

.site-v2 .btn-demo {
  color: var(--h-navy);
  background: var(--h-surface);
  border: 1px solid var(--h-line-strong);
}
.site-v2 .btn-demo:hover {
  background: var(--h-surface);
  border-color: var(--h-navy);
  transform: translateY(-1px);
}
.site-v2 .btn-ghost {
  color: var(--h-ink-2);
  border: 1px solid transparent;
  padding-inline: 12px;
}
.site-v2 .btn-ghost:hover {
  background: none;
  border-color: transparent;
  color: var(--h-navy);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.site-v2 :is(.btn-primary, .btn-demo, .btn-ghost, .nav-cta, .float-demo):focus-visible {
  outline: 2px solid var(--h-blue);
  outline-offset: 3px;
}

/* ---- Nav ---- */
.site-v2 .nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 16px var(--gutter);
  background: rgba(245,247,250,.82);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--h-line);
}
.site-v2 .nav-brand { font-family: var(--display); font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.site-v2 .nav-links { gap: 4px; }
.site-v2 .nav-links a {
  font-size: 14px;
  color: var(--h-ink-2);
  padding: 8px 14px;
  border-radius: 999px;
}
.site-v2 .nav-links a:hover { color: var(--h-ink); background: rgba(10,22,48,.05); }
.site-v2 .nav-links .nav-login { color: var(--h-ink); }
.site-v2 .nav-links .nav-cta {
  margin-left: 6px;
  padding: 10px 20px;
  background: var(--h-navy);
}
.site-v2 .nav-links .nav-cta:hover { background: var(--h-navy-hover); box-shadow: none; }
.site-v2 .nav-links .nav-active { color: var(--h-ink) !important; background: rgba(10,22,48,.06) !important; font-weight: 600 !important; }

/* ---- Section rhythm: full-bleed bands, bounded content ---- */
.site-v2 .hero,
.site-v2 .provenance-demo,
.site-v2 .tour-section,
.site-v2 section.content-section,
.site-v2 .sandbox-preview-section,
.site-v2 .faq-section,
.site-v2 .cta-section {
  padding: 120px var(--gutter);
}
.site-v2 #provenance,
.site-v2 #sandbox,
.site-v2 #templates,
.site-v2 #security,
.site-v2 #agents {
  background: var(--h-surface);
  border-block: 1px solid var(--h-line);
}

/* Section headers: editorial two-column, numbered labels */
.site-v2 .section-header {
  max-width: none;
  margin: 0 0 64px;
  text-align: left;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  column-gap: 72px;
  align-items: end;
}
.site-v2 .section-header > .section-tag,
.site-v2 .section-header > .prov-hint-row { grid-column: 1 / -1; justify-self: start; }
.site-v2 .section-header h2 {
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.02;
  letter-spacing: -.035em;
  margin: 0;
}
.site-v2 .section-header p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--h-ink-2);
  max-width: 480px;
}
.site-v2 .prov-hint-row { margin-top: 28px; }

.site-v2 .section-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--h-blue);
  background: none;
  padding: 0;
  border-radius: 0;
  margin-bottom: 28px;
}
.site-v2 .section-tag::before {
  counter-increment: sec;
  content: counter(sec, decimal-leading-zero);
  color: var(--h-ink);
}
.site-v2 .section-tag::after {
  content: '';
  order: -1;
  width: 28px;
  height: 1px;
  background: currentColor;
}

/* ---- Hero ---- */
.site-v2 .hero {
  position: relative;
  display: block;
  text-align: left;
  padding-top: 104px;
  padding-bottom: 72px;
  isolation: isolate;
}
/* architectural grid + soft light */
.site-v2 .hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(11,37,89,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11,37,89,.06) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 30%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 70% 30%, #000 10%, transparent 75%);
}
.site-v2 .hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 900px;
  height: 900px;
  right: -260px;
  top: -320px;
  background: radial-gradient(circle, rgba(29,78,216,.14) 0%, rgba(29,78,216,.05) 35%, transparent 65%);
  pointer-events: none;
}
.site-v2 .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 64px;
  align-items: center;
}
.site-v2 .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--h-blue);
  margin-bottom: 32px;
}
.site-v2 .hero-badge::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.site-v2 .hero h1 {
  font-size: clamp(46px, 7.2vw, 96px);
  line-height: .96;
  letter-spacing: -.048em;
  margin: 0 0 32px;
}
.site-v2 .hero-line-1 { display: block; }
.site-v2 .hero-accent {
  display: block;
  font-size: 1em;
  font-weight: 600;
  letter-spacing: inherit;
  text-transform: none;
  margin: 0;
  color: var(--h-blue);
  -webkit-text-fill-color: var(--h-blue);
}
.site-v2 .hero-sub {
  font-size: 19px;
  line-height: 1.6;
  color: var(--h-ink-2);
  max-width: 520px;
  margin: 0 0 40px;
}
.site-v2 .hero-actions { justify-content: flex-start; flex-wrap: wrap; gap: 12px; }
.site-v2 .hero-free-note { font-size: 13px; color: var(--h-muted); margin-top: 16px; }

.site-v2 .hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 96px 0 0;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--h-line-strong);
  background: none;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-radius: 0;
  width: 100%;
  max-width: none;
}
.site-v2 .hero-stat-divider { display: none; }
.site-v2 .hero-stat {
  align-items: flex-start;
  text-align: left;
  padding: 28px 24px 0 0;
}
.site-v2 .hero-stat + .hero-stat + .hero-stat,
.site-v2 .hero-stat-divider + .hero-stat { padding-left: 24px; border-left: 1px solid var(--h-line); }
.site-v2 .hero-stat-num,
.site-v2 .hero-stat-text {
  font-family: var(--display);
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--h-ink);
}
.site-v2 .hero-stat-label {
  margin-top: 10px;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--h-muted);
}

/* Hero visual */
.hv { position: relative; padding: 28px 0 48px; }
.hv-card {
  position: relative;
  background: var(--h-surface);
  border: 1px solid var(--h-line);
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(10,22,48,.04), 0 40px 80px -32px rgba(11,37,89,.35);
  overflow: hidden;
}
.hv-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--h-ink);
  border-bottom: 1px solid var(--h-line);
  background: #fafbfd;
}
.hv-live {
  width: 8px; height: 8px; border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16,185,129,.15);
  animation: hvPulse 2s ease-in-out infinite;
}
.hv-pill {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--h-muted);
  padding: 3px 8px;
  border: 1px solid var(--h-line);
  border-radius: 6px;
}
.hv-chain { list-style: none; margin: 0; padding: 12px 20px 8px; }
.hv-node {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 16px;
  padding: 12px 0 12px 26px;
  opacity: 0;
  animation: hvIn .6s cubic-bezier(.2,.7,.2,1) forwards;
}
.hv-node:nth-child(1) { animation-delay: .15s; }
.hv-node:nth-child(2) { animation-delay: .35s; }
.hv-node:nth-child(3) { animation-delay: .55s; }
.hv-node:nth-child(4) { animation-delay: .75s; }
.hv-node:nth-child(5) { animation-delay: .95s; }
/* chain rail */
.hv-node::before {
  content: '';
  position: absolute;
  left: 5px; top: 18px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--h-surface);
  border: 2px solid var(--h-blue);
}
.hv-node:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 10px; top: 31px; bottom: -18px;
  width: 1px;
  background: linear-gradient(var(--h-blue), var(--h-line-strong));
}
.hv-det::before { background: var(--h-blue); }
.hv-src::before { border-color: var(--h-green); background: var(--h-green); }
.hv-kind {
  grid-column: 1 / -1;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--h-muted);
  margin-bottom: 3px;
}
.hv-src .hv-kind { color: var(--h-green); }
.hv-label { font-size: 14px; color: var(--h-ink-2); }
.hv-val {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--h-ink);
  white-space: nowrap;
}
.hv-det .hv-label { font-weight: 600; color: var(--h-ink); }
.hv-det .hv-val { color: var(--h-blue); }
.hv-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  font-size: 12px;
  color: var(--h-muted);
  border-top: 1px solid var(--h-line);
}
.hv-hash { font-family: var(--mono); }
.hv-float {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--h-ink);
  background: var(--h-surface);
  border: 1px solid var(--h-line);
  border-radius: 12px;
  box-shadow: 0 18px 40px -18px rgba(11,37,89,.35);
  opacity: 0;
  animation: hvIn .7s cubic-bezier(.2,.7,.2,1) forwards, hvFloat 7s ease-in-out infinite;
}
.hv-float-a { top: 0; right: -18px; animation-delay: 1.2s, 2s; }
.hv-float-b { bottom: 0; left: -32px; animation-delay: 1.4s, 2.4s; }
.hv-jur {
  font-family: var(--mono);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--h-blue-soft);
  color: var(--h-navy);
}
.hv-tag { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; }
.hv-tag-red { color: var(--h-red); background: #fdecec; }
.hv-tag-green { color: var(--h-green); background: #e6f6ef; }

@keyframes hvIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes hvFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes hvPulse { 50% { box-shadow: 0 0 0 7px rgba(16,185,129,0); } }

/* ---- Cards: flat, hairline, lift on hover ---- */
.site-v2 :is(.feature-card, .sec-card, .artefact-card, .af-card, .prov-demo-card, .sandbox-preview-card, .faq-item) {
  background: var(--h-surface);
  border: 1px solid var(--h-line);
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(10,22,48,.04);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.site-v2 :is(.feature-card, .sec-card, .af-card) {
  padding: 32px;
  transition: border-color .2s, box-shadow .25s, transform .25s;
}
.site-v2 :is(.feature-card, .sec-card, .af-card):hover {
  border-color: var(--h-line-strong);
  box-shadow: 0 24px 48px -24px rgba(11,37,89,.28);
  transform: translateY(-3px);
}
/* cards sitting on a white band get a faint tint so they separate */
.site-v2 :is(#security, #agents) :is(.sec-card, .af-card) { background: var(--h-bg); }
.site-v2 :is(#security, #agents) :is(.sec-card, .af-card):hover { background: var(--h-surface); }

.site-v2 .feature-grid,
.site-v2 .security-grid { gap: 20px; }
.site-v2 .feature-card h3,
.site-v2 .artefact-card h3 { font-size: 20px; letter-spacing: -.02em; margin: 20px 0 10px; }
.site-v2 .feature-card p,
.site-v2 .sec-card p,
.site-v2 .artefact-card p { font-size: 15px; line-height: 1.65; color: var(--h-ink-2); }
.site-v2 .sec-card strong { font-family: var(--display); font-size: 19px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 10px; }
.site-v2 .feature-icon-wrap {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--h-blue-soft);
  color: var(--h-navy);
  border: 0;
  box-shadow: none;
}

/* Cards share a height; the article tag sits on the same baseline in every card */
.site-v2 .artefact-card { padding: 28px; display: flex; flex-direction: column; min-width: 0; }
.site-v2 .artefact-card .artefact-tag { margin-top: auto; align-self: flex-start; white-space: nowrap; }
.site-v2 .artefact-card p { margin-bottom: 20px; }
.site-v2 .artefact-num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--h-blue);
  background: none;
  -webkit-text-fill-color: currentColor;
}
.site-v2 .artefact-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--h-navy);
  background: var(--h-blue-soft);
  border: 0;
}
.site-v2 .artefact-arrow { color: var(--h-line-strong); }
.site-v2 .artefact-result {
  margin-top: 40px;
  padding: 20px 24px;
  border-radius: 14px;
  color: var(--h-navy);
  background: var(--h-blue-soft);
  border: 1px solid #d3def8;
  font-weight: 600;
}

/* Sandbox frame */
.site-v2 .sandbox-preview-card { box-shadow: 0 40px 80px -40px rgba(11,37,89,.3); }
.site-v2 .sp-overlay-btn { background: var(--h-navy); }

/* Resources: standard header with the button under the intro */
.site-v2 #templates .section-header { margin-bottom: 0; }
.site-v2 .sh-side .btn-primary { margin-top: 28px; }

/* Agents + FAQ headers */
.site-v2 .af-header,
.site-v2 .faq-header { text-align: left; max-width: 720px; margin: 0 0 56px; }
.site-v2 .af-header h2,
.site-v2 .faq-header h2 { font-size: clamp(34px, 4.2vw, 52px); line-height: 1.04; letter-spacing: -.035em; }
.site-v2 .af-subtitle,
.site-v2 .faq-subtitle { font-size: 17px; color: var(--h-ink-2); margin-top: 16px; }
.site-v2 .faq-inner { max-width: none; }
.site-v2 .faq-item { margin-bottom: 12px; }
.site-v2 .faq-item[open] { border-color: var(--h-line-strong); }
.site-v2 .faq-q { font-family: var(--display); font-size: 18px; font-weight: 600; color: var(--h-ink); }

/* ---- Closing CTA: deep navy band ---- */
.site-v2 .cta-section {
  position: relative;
  isolation: isolate;
  text-align: left;
  background: var(--h-navy);
  color: rgba(255,255,255,.72);
  overflow: hidden;
}
.site-v2 .cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 60% 90% at 85% 50%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 90% at 85% 50%, #000 10%, transparent 75%);
}
.site-v2 .cta-section h2 {
  color: #fff;
  font-size: clamp(40px, 6vw, 80px);
  line-height: .98;
  letter-spacing: -.045em;
  margin-bottom: 24px;
}
.site-v2 .cta-section h2 em { color: #93b4ff; }
.site-v2 .cta-section p { font-size: 19px; color: rgba(255,255,255,.72); margin-bottom: 40px; }
.site-v2 .cta-section .btn-primary { background: #fff; color: var(--h-navy); border-color: #fff; box-shadow: none; }
.site-v2 .cta-section .btn-primary:hover { background: #e8eefc; border-color: #e8eefc; }
.site-v2 .cta-section .btn-demo { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.site-v2 .cta-section .btn-demo:hover { border-color: #fff; }

/* ---- Footer ---- */
.site-v2 .footer {
  padding: 64px var(--gutter);
  background: var(--h-surface);
  border-top: 1px solid var(--h-line);
}
.site-v2 .footer-links h4 { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--h-muted); }
.site-v2 .footer-links a { color: var(--h-ink-2); }
.site-v2 .footer-links a:hover { color: var(--h-navy); }

/* ---- Floating demo pill ---- */
.float-demo {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  font: 600 14px/1 var(--sans);
  color: #fff;
  background: var(--h-navy);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 16px 40px -12px rgba(11,37,89,.6);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity .3s, transform .3s, background .2s;
}
.float-demo.show { opacity: 1; transform: none; pointer-events: auto; }
.float-demo:hover { background: var(--h-navy-hover); }

/* ---- Reveal on scroll (classes added by JS only) ---- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.rv.in { opacity: 1; transform: none; }
/* hover lift must not fight the reveal transform */
.site-v2 :is(.feature-card, .sec-card, .af-card).rv.in:hover { transform: translateY(-3px); }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .site-v2 .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hv { max-width: 560px; }
  .hv-float-a { right: 0; }
  .hv-float-b { left: 0; }
  .site-v2 .section-header { grid-template-columns: 1fr; row-gap: 20px; }
}
@media (max-width: 768px) {
  :root { --gutter: 16px; }
  .site-v2 .nav { padding: 12px 16px; }
  .site-v2 .hero,
  .site-v2 .provenance-demo,
  .site-v2 .tour-section,
  .site-v2 section.content-section,
  .site-v2 .sandbox-preview-section,
  .site-v2 .faq-section,
  .site-v2 .cta-section { padding-top: 72px; padding-bottom: 72px; }
  .site-v2 .hero { padding-top: 56px; }
  .site-v2 .hero-sub { font-size: 17px; }
  .site-v2 .hero-actions > * { flex: 1 1 100%; justify-content: center; }
  .site-v2 .hero-stats { margin-top: 56px; }
  .site-v2 .hero-stat { padding: 20px 12px 0 0 !important; }
  .site-v2 .hero-stat + .hero-stat + .hero-stat,
  .site-v2 .hero-stat-divider + .hero-stat { padding-left: 12px !important; }
  .site-v2 .hero-stat-num, .site-v2 .hero-stat-text { font-size: 30px; }
  .site-v2 .hero-stat-label { font-size: 12px; }
  .hv-float { display: none; }
  .hv-label { font-size: 13px; }
  .hv-val { font-size: 13px; }
  .site-v2 :is(.feature-card, .sec-card, .af-card) { padding: 24px; }
  .site-v2 .footer { padding: 48px 16px; }
  .float-demo { right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .hv-node, .hv-float { animation: none; opacity: 1; }
  .hv-live { animation: none; }
  .rv { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Product tour: staged, auto-playing run-through
   ============================================================ */
.site-v2 .tour-section {
  position: relative;
  isolation: isolate;
  background: linear-gradient(180deg, var(--h-bg) 0%, #edf2fb 100%);
}
.site-v2 .tour-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(11,37,89,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11,37,89,.05) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 70%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 70%, #000 10%, transparent 75%);
}
.site-v2 .tour-section .section-header { margin-bottom: 48px; }

/* Stage stepper */
.tour-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 20px;
}
.tour-step {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  padding: 14px 4px 0 0;
  font: 600 15px/1.2 var(--sans);
  color: var(--h-muted);
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  transition: color .2s;
}
.tour-step:hover { color: var(--h-ink); }
.tour-step:focus-visible { outline: 2px solid var(--h-blue); outline-offset: 4px; border-radius: 4px; }
.ts-num { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--h-muted); }
.ts-bar {
  flex: 1 0 100%;
  order: -1;
  height: 2px;
  margin-bottom: 12px;
  background: var(--h-line-strong);
  border-radius: 2px;
  overflow: hidden;
}
.ts-bar i { display: block; height: 100%; width: 0; background: var(--h-navy); }
.tour-step.done .ts-bar i { width: 100% !important; background: #93a9d6; }
.tour-step.active { color: var(--h-ink); }
.tour-step.active .ts-num { color: var(--h-blue); }

/* Frame */
.tour-frame {
  background: var(--h-surface);
  border: 1px solid var(--h-line);
  border-radius: 22px;
  box-shadow: 0 1px 2px rgba(10,22,48,.04), 0 60px 120px -48px rgba(11,37,89,.38);
  overflow: hidden;
}
.tour-chrome {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--h-line);
  background: #fafbfd;
  font-size: 12px;
  color: var(--h-muted);
}
.tc-dots { display: inline-flex; gap: 6px; }
.tc-dots i { width: 10px; height: 10px; border-radius: 50%; background: #d8dee8; }
.tc-url { font-family: var(--mono); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-url b { font-weight: 500; color: var(--h-ink); }
.tc-meta { margin-left: auto; white-space: nowrap; }

.tour-body {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: 48px;
  padding: 44px;
}

/* Left copy: stages stacked in one cell so the height never jumps */
.tour-copy { display: grid; grid-template-rows: auto auto; align-content: start; }
.tstage {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .45s, transform .45s, visibility 0s .45s;
}
.tstage.active { opacity: 1; visibility: visible; transform: none; transition: opacity .5s .1s, transform .5s .1s, visibility 0s; }
.tstage-tag { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--h-blue); margin-bottom: 18px; }
.site-v2 .tstage h3 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.12; letter-spacing: -.03em; margin: 0 0 24px; }
.tstage ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.tstage li {
  position: relative;
  padding-left: 30px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--h-ink-2);
}
.tstage li::before {
  content: '';
  position: absolute;
  left: 0; top: 2px;
  width: 18px; height: 18px;
  border-radius: 6px;
  background: var(--h-blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b2559' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.tour-cta {
  grid-row: 2;
  justify-self: start;
  margin-top: 36px;
  font-weight: 600;
  font-size: 15px;
  color: var(--h-navy);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.tour-cta:hover { color: var(--h-blue); }

/* Right preview */
.tour-preview {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 14px;
  background: #eef2f8;
  border: 1px solid var(--h-line);
  border-radius: 16px;
}
.tp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 2px 12px; }
.tp-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--h-muted);
}
.tp-live { width: 7px; height: 7px; border-radius: 50%; background: #10b981; animation: hvPulse 2s ease-in-out infinite; box-shadow: 0 0 0 3px rgba(16,185,129,.15); }
.tour-preview.paused .tp-live { animation: none; background: var(--h-muted); box-shadow: none; }
.tp-pause {
  font: 600 11px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--h-navy);
  background: var(--h-surface);
  border: 1px solid var(--h-line-strong);
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
}
.tp-pause:hover { border-color: var(--h-navy); }
.tp-pause:focus-visible { outline: 2px solid var(--h-blue); outline-offset: 2px; }

.tp-screen {
  position: relative;
  height: 356px;
  background: var(--h-surface);
  border: 1px solid var(--h-line);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(10,22,48,.05);
  overflow: hidden;
}
.tscene {
  position: absolute;
  inset: 0;
  padding: 20px 22px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s, visibility 0s .35s;
  font-size: 13px;
  color: var(--h-ink-2);
}
.tscene.active { opacity: 1; visibility: visible; transition: opacity .35s; }
.tscene [style*="--i"] { opacity: 0; }
.tscene.active [style*="--i"] {
  animation: tIn .55s cubic-bezier(.2,.7,.2,1) both;
  animation-delay: calc(var(--i) * 110ms + 120ms);
}
@keyframes tIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.tp-caption { min-height: 48px; margin: 14px 4px 12px; font-size: 14px; line-height: 1.5; color: var(--h-ink-2); transition: opacity .25s; }
.tp-caption.swap { opacity: 0; }
.tp-subtabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0 4px 4px; }
.tp-subtab {
  display: block;
  padding: 0 0 8px;
  font: 500 12px/1.3 var(--sans);
  color: var(--h-muted);
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tp-subtab::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--h-line-strong); }
.tp-subtab i { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--h-navy); z-index: 1; }
.tp-subtab.active { color: var(--h-ink); }
.tp-subtab.done i { width: 100% !important; background: #93a9d6; }
.tp-subtab:hover { color: var(--h-ink); }
.tp-subtab:focus-visible { outline: 2px solid var(--h-blue); outline-offset: 2px; }

/* ---- Scene building blocks ---- */
.sc-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sc-title span { font-family: var(--display); font-size: 16px; font-weight: 600; color: var(--h-ink); letter-spacing: -.01em; }
.sc-title em { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--h-muted); white-space: nowrap; }

.jur {
  display: inline-block;
  min-width: 26px;
  margin-right: 6px;
  padding: 2px 5px;
  font: 500 10.5px/1.3 var(--mono);
  text-align: center;
  color: var(--h-navy);
  background: var(--h-blue-soft);
  border-radius: 5px;
}
.jur.lg { font-size: 12px; padding: 4px 7px; }
.chip {
  display: inline-block;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--h-ink-2);
  background: #f0f3f8;
  border-radius: 999px;
  white-space: nowrap;
}
.chip.navy { color: #fff; background: var(--h-navy); }
.chip.green { color: var(--h-green); background: #e6f6ef; }
.chip.red { color: var(--h-red); background: #fdecec; }
.chip.amber { color: #92400e; background: #fdf3e2; }

.sc-table { width: 100%; border-collapse: collapse; }
.sc-table th {
  padding: 0 8px 8px;
  font: 500 10.5px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--h-muted);
  text-align: left;
  border-bottom: 1px solid var(--h-line);
}
.sc-table td { padding: 10px 8px; border-bottom: 1px solid #eef1f6; white-space: nowrap; }
.sc-table th:first-child, .sc-table td:first-child { padding-left: 0; }
.sc-table .r { text-align: right; }
.sc-table td:first-child { color: var(--h-ink); font-weight: 500; }
.sc-table code { font-family: var(--mono); font-size: 11px; color: var(--h-muted); margin-right: 6px; }
.sc-table tr.warn td { background: #fffaf2; }
.sc-grid td:not(:first-child) { font-family: var(--mono); font-size: 12px; }
.sc-grid tr.warn td { background: #fff5f5; }

.ok, .x { display: inline-block; width: 16px; height: 16px; border-radius: 50%; vertical-align: -3px; margin-right: 4px; }
.ok { background: #e6f6ef url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23047857' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 10px no-repeat; }
.x { background: #f3f4f7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa4b5' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center / 9px no-repeat; }

.conf { display: inline-block; width: 56px; height: 4px; margin-right: 8px; vertical-align: 2px; background: #eef1f6; border-radius: 4px; overflow: hidden; }
.conf i { display: block; height: 100%; background: var(--h-green); }
.conf.low i { background: #d97706; }

.tscene .bar i, .tscene .conf i, .tscene .etr-gauge .fill { width: 0; transition: none; }
.tscene.active .bar i,
.tscene.active .conf i,
.tscene.active .etr-gauge .fill {
  width: var(--w);
  transition: width 1.1s cubic-bezier(.2,.7,.2,1);
  transition-delay: calc(var(--i, 0) * 180ms + 350ms);
}

/* checklist */
.sc-checks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.sc-checks li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  font-size: 13.5px;
  color: var(--h-ink);
  background: #f8fafc;
  border: 1px solid #eef1f6;
  border-radius: 10px;
}
.sc-checks li.warn { background: #fffaf2; border-color: #f7e4c3; }
.tick {
  flex: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--h-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.tick.amber { background: #d97706 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M12 7v6M12 17h.01'/%3E%3C/svg%3E") center / 12px no-repeat; }
.tscene.active .sc-checks .tick { animation: tickPop .4s cubic-bezier(.3,1.6,.5,1) both; animation-delay: calc(var(--i) * 110ms + 420ms); }
@keyframes tickPop { from { transform: scale(0); } to { transform: scale(1); } }

/* ownership tree */
.sc-tree { display: flex; flex-direction: column; align-items: center; padding-top: 10px; }
.tree-root, .tree-node {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--h-ink);
  background: var(--h-surface);
  border: 1px solid var(--h-line-strong);
  border-radius: 10px;
  box-shadow: 0 4px 12px -6px rgba(11,37,89,.18);
}
.tree-root { position: relative; margin-bottom: 44px; }
.tree-root::after { content: ''; position: absolute; left: 50%; top: 100%; width: 1px; height: 22px; background: var(--h-line-strong); }
.tree-kids { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; width: 100%; }
.tree-kids::before { content: ''; position: absolute; top: -22px; left: 12.5%; right: 12.5%; height: 1px; background: var(--h-line-strong); }
.tree-node { position: relative; flex-direction: column; align-items: flex-start; gap: 6px; font-size: 12px; }
.tree-node::before { content: ''; position: absolute; left: 50%; bottom: 100%; width: 1px; height: 22px; background: var(--h-line-strong); }
.tree-node b { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--h-blue); }

/* jurisdiction cards */
.sc-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.jcard { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; row-gap: 8px; padding: 14px; background: #f8fafc; border: 1px solid #eef1f6; border-radius: 12px; }
.jcard strong { font-size: 13.5px; color: var(--h-ink); }
.jcard .regimes { grid-column: 1 / -1; display: flex; gap: 6px; }
.jcard .regimes i { font: 500 10.5px/1 var(--mono); font-style: normal; padding: 4px 7px; color: var(--h-navy); background: var(--h-surface); border: 1px solid var(--h-line); border-radius: 5px; }
.jcard small { grid-column: 1 / -1; font-size: 11.5px; color: var(--h-muted); }

/* outcome */
.sc-outcome { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; padding-top: 8px; }
.sc-outcome .big { display: flex; flex-direction: column; font-family: var(--display); font-size: 88px; font-weight: 600; line-height: .9; letter-spacing: -.05em; color: var(--h-navy); }
.sc-outcome .big small { font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--h-muted); margin-top: 12px; max-width: 120px; line-height: 1.35; }
.out-list { display: grid; gap: 8px; }
.out-list > div { display: flex; align-items: center; gap: 4px; padding: 10px 12px; font-weight: 500; color: var(--h-ink); background: #f8fafc; border: 1px solid #eef1f6; border-radius: 10px; }
.out-list .chip { margin-left: auto; }
.out-list .hot { background: #fff5f5; border-color: #f7d4d4; }

/* files */
.sc-files { display: grid; gap: 10px; }
.file { display: flex; align-items: center; gap: 12px; padding: 11px 14px; background: #f8fafc; border: 1px solid #eef1f6; border-radius: 10px; }
.file > div { flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr auto; column-gap: 12px; row-gap: 6px; align-items: baseline; }
.file strong { font-size: 13px; color: var(--h-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file small { font-size: 11.5px; color: var(--h-muted); }
.file .bar { grid-column: 1 / -1; height: 4px; background: #e6eaf1; border-radius: 4px; overflow: hidden; }
.file .bar i { display: block; height: 100%; background: var(--h-navy); }
.fi { flex: none; width: 40px; padding: 7px 0; font: 500 10px/1 var(--mono); text-align: center; color: var(--h-navy); background: var(--h-blue-soft); border-radius: 7px; }
.file.share { background: var(--h-blue-soft); border-color: #d3def8; }
.file.share .fi { background: var(--h-navy); color: #fff; }
.tscene.active .file > .tick { animation: tickPop .4s cubic-bezier(.3,1.6,.5,1) both; animation-delay: calc(var(--i) * 110ms + 500ms); }

/* calculation rows */
.sc-rows { display: grid; gap: 2px; }
.sc-rows > div { display: grid; grid-template-columns: 1fr auto auto; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid #eef1f6; }
.sc-rows span { color: var(--h-ink); font-weight: 500; }
.sc-rows em { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--h-muted); }
.sc-rows b { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--h-ink); min-width: 130px; text-align: right; }
.sc-rows b span { font-weight: 500; color: inherit; }
.sc-rows .em b { color: var(--h-red); }
.sc-rows .total { border-bottom: 0; border-top: 1px solid var(--h-ink); margin-top: 6px; padding-top: 12px; }
.sc-rows .total b { color: var(--h-blue); font-size: 15px; }

.etr-gauge { position: relative; height: 10px; margin: 44px 0 0; background: #eef1f6; border-radius: 10px; }
.etr-gauge .fill { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #f3a5a5, var(--h-red)); border-radius: 10px; }
.etr-gauge .min { position: absolute; top: -8px; bottom: -8px; width: 2px; background: var(--h-navy); }
.etr-gauge .min i { position: absolute; top: 30px; left: 50%; transform: translateX(-50%); font: 500 11px/1 var(--mono); font-style: normal; color: var(--h-navy); white-space: nowrap; }
.etr-gauge .val { position: absolute; top: -26px; transform: translateX(-50%); font: 600 12px/1 var(--mono); color: var(--h-red); }

/* allocation flow */
.sc-flow { display: flex; flex-direction: column; align-items: center; padding-top: 6px; }
.fl-box { display: flex; flex-direction: column; gap: 6px; padding: 14px 18px; background: #f8fafc; border: 1px solid var(--h-line); border-radius: 12px; min-width: 260px; }
.fl-box small { font-size: 12px; color: var(--h-muted); }
.fl-box b { font-family: var(--mono); font-size: 18px; font-weight: 500; color: var(--h-ink); }
.fl-box em { font-style: normal; font-size: 11.5px; color: var(--h-muted); }
.fl-box.hot { background: var(--h-blue-soft); border-color: #c9d7f7; }
.fl-box.hot b { color: var(--h-navy); }
.fl-box.muted b { color: var(--h-muted); }
.fl-arrow { width: 1px; height: 36px; background: var(--h-line-strong); position: relative; margin: 6px 0; }
.fl-arrow::after { content: ''; position: absolute; left: -4px; bottom: -2px; border: 4.5px solid transparent; border-top-color: var(--h-line-strong); }
.fl-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; }
.fl-split .fl-box { min-width: 0; }

/* GIR summary + simulated click */
.sc-summary { display: grid; gap: 8px; }
.sc-summary > div { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid #eef1f6; border-radius: 10px; background: #f8fafc; }
.sc-summary span { color: var(--h-ink-2); }
.sc-summary b { font-family: var(--mono); font-weight: 500; color: var(--h-ink); }
.tscene.active .click-target {
  animation: tIn .55s cubic-bezier(.2,.7,.2,1) both, clickHi .5s ease forwards;
  animation-delay: calc(var(--i) * 110ms + 120ms), 2.4s;
}
@keyframes clickHi { to { background: var(--h-blue-soft); border-color: var(--h-blue); box-shadow: 0 0 0 4px rgba(29,78,216,.12); } }
.ripple { position: absolute; right: 64px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: rgba(29,78,216,.35); opacity: 0; pointer-events: none; }
.tscene.active .ripple { animation: ripple .6s ease-out 2.3s; }
@keyframes ripple { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(6); } }
.fake-cursor { position: absolute; right: 56px; top: 50%; margin-top: -2px; opacity: 0; pointer-events: none; z-index: 2; filter: drop-shadow(0 2px 3px rgba(10,22,48,.3)); }
.tscene.active .fake-cursor { animation: cursorMove 1.5s cubic-bezier(.45,.05,.2,1) .8s forwards, cursorTap .15s ease 2.3s 2 alternate; }
@keyframes cursorMove { 0% { opacity: 0; translate: 120px 110px; } 20% { opacity: 1; } 100% { opacity: 1; translate: 0 0; } }
@keyframes cursorTap { to { scale: .82; } }

/* provenance chain */
.sc-chain { list-style: none; margin: 0; padding: 0 0 0 4px; }
.sc-chain li { position: relative; display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: baseline; padding: 11px 0 11px 26px; }
.sc-chain li::before { content: ''; position: absolute; left: 1px; top: 16px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--h-blue); background: var(--h-surface); }
.sc-chain li:not(:last-child)::after { content: ''; position: absolute; left: 6px; top: 29px; bottom: -16px; width: 1px; background: linear-gradient(var(--h-blue), var(--h-line-strong)); }
.sc-chain li.det::before { background: var(--h-blue); }
.sc-chain li.src::before { background: var(--h-green); border-color: var(--h-green); }
.sc-chain span { color: var(--h-ink); font-weight: 500; }
.sc-chain li.src span { color: var(--h-green); font-family: var(--mono); font-size: 12px; font-weight: 400; }
.sc-chain em { font-style: normal; font: 500 10.5px/1 var(--mono); padding: 4px 7px; color: var(--h-navy); background: var(--h-blue-soft); border-radius: 5px; }
.sc-chain b { font-family: var(--mono); font-weight: 500; color: var(--h-ink); min-width: 96px; text-align: right; }
.sc-chain.hashes li { grid-template-columns: 1fr auto; }
.sc-chain code { display: inline-grid; font-family: var(--mono); font-size: 12px; min-width: 110px; text-align: right; }
.sc-chain code s, .sc-chain code ins { grid-area: 1 / 1; text-decoration: none; }
.sc-chain code s { color: var(--h-muted); }
.sc-chain code ins { color: #b45309; opacity: 0; }
.tscene.active .sc-chain code s { animation: hashOut .35s ease forwards; animation-delay: calc(2s + (4 - var(--i)) * 220ms); }
.tscene.active .sc-chain code ins { animation: hashIn .35s ease forwards; animation-delay: calc(2s + (4 - var(--i)) * 220ms); }
@keyframes hashOut { to { opacity: 0; transform: translateY(-6px); } }
@keyframes hashIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* XML */
.sc-xml {
  margin: 0;
  padding: 16px 18px;
  font: 12px/1.75 var(--mono);
  color: #c5d0e6;
  background: #0b1733;
  border-radius: 10px;
  white-space: normal;
  overflow: hidden;
}
.sc-xml span { display: block; white-space: pre; }
.sc-xml b { font-weight: 400; color: #8fb3ff; }
.sc-xml em { font-style: normal; color: #fbd38d; }

/* Tour responsive */
@media (max-width: 1024px) {
  .tour-body { grid-template-columns: 1fr; gap: 32px; padding: 32px; }
  .tour-steps { display: flex; overflow-x: auto; scrollbar-width: none; gap: 16px; margin-inline: -24px; padding-inline: 24px; }
  .tour-steps::-webkit-scrollbar { display: none; }
  .tour-step { flex: 0 0 auto; min-width: 128px; }
}
@media (max-width: 768px) {
  .tour-steps { margin-inline: -16px; padding-inline: 16px; }
  .tour-frame { border-radius: 16px; }
  .tour-chrome { padding: 10px 14px; }
  .tc-meta { display: none; }
  .tour-body { padding: 20px 14px; gap: 24px; }
  .tstage li:nth-child(n+4) { display: none; }
  .tour-preview { padding: 8px; }
  .tp-screen { height: 420px; }
  .tscene { padding: 16px 12px; font-size: 12px; }
  .sc-title em { display: none; }
  .sc-table td, .sc-table th { padding-inline: 4px; }
  .sc-table td:first-child { white-space: normal; }
  .sc-table td { padding-block: 8px; }
  .sc-table code { display: none; }
  .sc-table tr.opt { display: none; }
  .conf { display: none; }
  .sc-checks { gap: 7px; }
  .sc-checks li { padding: 9px 12px; font-size: 12.5px; }
  .sc-grid td:not(:first-child) { font-size: 0; }
  .sc-grid th { font-size: 9px; letter-spacing: .02em; white-space: normal; }
  .tree-kids { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 10px; }
  .tree-kids::before, .tree-node::before, .tree-root::after { display: none; }
  .tree-root { margin-bottom: 16px; }
  .sc-cards { gap: 8px; }
  .jcard { padding: 10px; }
  .jcard .regimes i { font-size: 9.5px; padding: 3px 5px; }
  .sc-outcome { grid-template-columns: 1fr; gap: 14px; }
  .sc-outcome .big { flex-direction: row; align-items: baseline; gap: 12px; font-size: 56px; }
  .sc-outcome .big small { max-width: none; margin-top: 0; }
  .sc-rows > div { grid-template-columns: 1fr auto; gap: 2px 12px; padding: 7px 0; }
  .sc-rows em { grid-column: 1; grid-row: 2; }
  .sc-rows b { grid-row: 1 / 3; grid-column: 2; align-self: center; min-width: 0; }
  .sc-chain li { grid-template-columns: 1fr auto; gap: 4px 10px; padding: 8px 0 8px 24px; }
  .sc-chain em { grid-row: 2; justify-self: start; }
  .sc-chain b { grid-row: 1 / 3; grid-column: 2; align-self: center; min-width: 0; }
  .sc-chain.hashes code { grid-row: 1; grid-column: 2; min-width: 0; }
  .sc-chain li.src span { font-size: 10.5px; }
  .fl-box { min-width: 0; width: 100%; }
  .fl-box b { font-size: 15px; }
  .sc-xml { font-size: 9px; padding: 12px 10px; }
  .sc-xml span { white-space: pre-wrap; padding-left: 4ch; text-indent: -4ch; }
  .tp-subtabs { gap: 8px; }
  .tp-subtab { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .tscene.active [style*="--i"], .tscene.active .tick, .tscene.active .ripple { animation: none; opacity: 1; }
  .tscene.active .fake-cursor { display: none; }
  .tscene.active .sc-chain code s { animation: none; opacity: 0; }
  .tscene.active .sc-chain code ins { animation: none; opacity: 1; }
  .tscene.active .bar i, .tscene.active .conf i, .tscene.active .etr-gauge .fill { transition: none; }
}

/* ============================================================
   Content pages (resources, security, blog, pilot, posts)
   Page-specific classes keep their own layout; this layer brings
   their heroes, cards and buttons onto the site-v2 look.
   ============================================================ */
.site-v2 :is(.rs-wrap, .sc-wrap, .bl-wrap, .pt-wrap) {
  max-width: calc(1180px + 48px); /* content edge lines up with the nav */
  margin: 0 auto;
  padding: 0 24px 104px;
}
.site-v2.page-post .bl-wrap { max-width: calc(860px + 48px); }

/* Heroes: left-aligned, editorial */
.site-v2 :is(.rs-hero, .sc-hero, .bl-hero, .pt-hero) {
  display: block;
  max-width: none;
  margin: 0;
  padding: 88px 0 56px;
  text-align: left;
}
.site-v2 :is(.rs-hero, .sc-hero, .bl-hero, .pt-hero) h1 {
  font-family: var(--display);
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.045em;
  color: var(--h-ink);
  margin: 0 0 22px;
  max-width: 900px;
}
.site-v2 :is(.rs-hero > p, .sc-hero-sub, .bl-hero > p, .pt-hero-sub) {
  max-width: 640px;
  margin: 0;
  font-size: 18px;
  line-height: 1.65;
  color: var(--h-ink-2);
  text-align: left;
}
.site-v2 :is(.rs-section-tag, .sc-hero-tag, .bl-section-tag, .pt-hero-tag, .pt-section-label) {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 26px;
  padding: 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--h-blue);
  background: none;
  border: 0;
  border-radius: 0;
}
.site-v2 :is(.rs-section-tag, .sc-hero-tag, .bl-section-tag, .pt-hero-tag)::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
}
.site-v2 :is(.sc-hero-tag, .pt-hero-tag) svg { display: none; }
.site-v2 .pt-section-label { margin-bottom: 10px; }

/* Pilot hero extras */
.site-v2 .pt-hero-price {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  margin: 36px 0 24px;
  padding: 18px 22px;
  background: var(--h-surface);
  border: 1px solid var(--h-line);
  border-radius: 16px;
  box-shadow: 0 20px 40px -28px rgba(11,37,89,.4);
}
.site-v2 .pt-hero-price-amount { font-family: var(--display); font-size: 40px; font-weight: 600; letter-spacing: -.04em; color: var(--h-ink); }
.site-v2 .pt-hero-price-note { font-size: 14px; color: var(--h-muted); }
.site-v2 .pt-hero-cta { display: flex; width: max-content; }
.site-v2 .pt-hero-note { text-align: left; margin-top: 14px; }
.site-v2 .sc-updated { justify-content: flex-start; }

/* Buttons onto navy */
.site-v2 :is(.pt-hero-cta, .pt-submit, .rs-btn-primary, .sc-cta-btn) {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font: 600 15px/1 var(--sans);
  color: #fff;
  background: var(--h-navy);
  border: 1px solid var(--h-navy);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 10px 24px -12px rgba(11,37,89,.6);
  transition: background .2s, transform .15s;
}
.site-v2 :is(.pt-hero-cta, .pt-submit, .rs-btn-primary, .sc-cta-btn):hover { background: var(--h-navy-hover); transform: translateY(-1px); }
.site-v2 .rs-btn-ghost { border-radius: 999px; color: var(--h-navy); border-color: var(--h-line-strong); }
.site-v2 .rs-dl-btn {
  color: var(--h-navy);
  background: var(--h-surface);
  border: 1px solid var(--h-line-strong);
  border-radius: 12px;
  transition: border-color .2s, transform .15s, box-shadow .2s;
}
.site-v2 .rs-dl-btn:hover { border-color: var(--h-navy); transform: translateY(-1px); box-shadow: 0 14px 28px -18px rgba(11,37,89,.5); }
.site-v2 .rs-dl-icon { background: var(--h-navy); color: #fff; }
.site-v2 .rs-dl-label { color: var(--h-navy); }

/* Cards: flat white, hairline */
.site-v2 :is(.rs-card, .sc-card, .pt-card, .bl-card, .bl-post-card, .rs-media-card, .rs-press-card, .pt-form-card, .rs-cta) {
  background: var(--h-surface);
  border: 1px solid var(--h-line);
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(10,22,48,.04);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.site-v2 :is(.rs-card, .pt-card, .rs-media-card, .rs-press-card, .pt-form-card) h2,
.site-v2 .sc-section-title,
.site-v2 .pt-card h2 {
  font-family: var(--display);
  letter-spacing: -.02em;
  color: var(--h-ink);
}
.site-v2 :is(.rs-tag, .bl-tag, .rs-badge) {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--h-navy);
  background: var(--h-blue-soft);
  border: 0;
  border-radius: 5px;
}
.site-v2 .rs-tab { font-weight: 600; }
.site-v2 .rs-tab.active,
.site-v2 .rs-tab[aria-selected="true"] { color: var(--h-navy); border-color: var(--h-navy); }
.site-v2 .sc-section-icon { border-radius: 10px; }

/* Blog index: two-column grid, newest post featured */
.site-v2.page-blog .bl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.site-v2.page-blog .bl-card {
  display: flex;
  flex-direction: column;
  padding: 30px;
  transition: border-color .2s, box-shadow .25s, transform .25s;
}
.site-v2.page-blog .bl-card:hover {
  border-color: var(--h-line-strong);
  box-shadow: 0 24px 48px -24px rgba(11,37,89,.28);
  transform: translateY(-3px);
}
.site-v2.page-blog .bl-card h2 { font-family: var(--display); font-size: 21px; line-height: 1.25; letter-spacing: -.02em; }
.site-v2.page-blog .bl-card .bl-read-link { margin-top: auto; padding-top: 18px; color: var(--h-navy); font-weight: 600; }
.site-v2.page-blog .bl-card:first-child {
  grid-column: 1 / -1;
  padding: 44px;
  background: var(--h-navy);
  border-color: var(--h-navy);
  color: rgba(255,255,255,.75);
}
.site-v2.page-blog .bl-card:first-child h2 { font-size: clamp(26px, 3vw, 38px); color: #fff; max-width: 760px; }
.site-v2.page-blog .bl-card:first-child p { color: rgba(255,255,255,.75); max-width: 720px; font-size: 16px; }
.site-v2.page-blog .bl-card:first-child :is(.bl-card-meta, .bl-card-meta span) { color: rgba(255,255,255,.6); }
.site-v2.page-blog .bl-card:first-child .bl-tag { color: #fff; background: rgba(255,255,255,.14); }
.site-v2.page-blog .bl-card:first-child .bl-read-link { color: #93b4ff; }

/* Blog posts */
.site-v2 .bl-post-card { padding: 56px; }
.site-v2 .bl-post-card h1 {
  font-family: var(--display);
  font-size: clamp(32px, 4.4vw, 48px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.035em;
  color: var(--h-ink);
}
.site-v2 .bl-post-subtitle { font-size: 18px; line-height: 1.6; color: var(--h-ink-2); }
.site-v2 .bl-post-body { font-size: 16.5px; line-height: 1.75; color: var(--h-ink-2); }
.site-v2 .bl-post-body h2 { font-family: var(--display); font-size: 24px; letter-spacing: -.02em; color: var(--h-ink); }
.site-v2 .bl-post-body a { color: var(--h-blue); }
.site-v2 .bl-post-body table { border-collapse: collapse; border: 1px solid var(--h-line); border-radius: 12px; overflow: hidden; }
.site-v2 .bl-post-body th { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--h-muted); background: var(--h-bg); }
.site-v2 .bl-post-body td { font-variant-numeric: tabular-nums; }
.site-v2 .bl-back-btn { margin-top: 40px; font-weight: 600; color: var(--h-navy); }

@media (max-width: 768px) {
  .site-v2 :is(.rs-wrap, .sc-wrap, .bl-wrap, .pt-wrap) { padding: 0 16px 72px; }
  .site-v2 :is(.rs-hero, .sc-hero, .bl-hero, .pt-hero) { padding: 56px 0 40px; }
  .site-v2 :is(.rs-hero > p, .sc-hero-sub, .bl-hero > p, .pt-hero-sub) { font-size: 16.5px; }
  .site-v2.page-blog .bl-grid { grid-template-columns: 1fr; }
  .site-v2.page-blog .bl-card, .site-v2.page-blog .bl-card:first-child { padding: 24px; }
  .site-v2 .bl-post-card { padding: 28px 20px; }
  .site-v2 .pt-hero-price { flex-wrap: wrap; }
  /* wide control tables scroll inside their card instead of being clipped */
  .site-v2 .sc-card { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* =============================================================
   Book a demo: two-column modal (demo details | booking form)
   ============================================================= */
.site-v2 .demo-modal-overlay { background: rgba(6, 18, 44, .62); }
.site-v2 .demo-modal-card.dm-v2 {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  max-width: 1040px;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--h-line);
  border-radius: 20px;
  box-shadow: 0 40px 100px -30px rgba(6,18,44,.55);
}
.site-v2 .dm-v2 .demo-modal-close { z-index: 2; background: #fff; border: 1px solid var(--h-line); color: var(--h-ink-2); }

/* Left: navy screen with the grid backdrop */
.site-v2 .dm-info {
  position: relative;
  padding: 36px 36px 32px;
  color: #fff;
  background:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 28px 28px,
    radial-gradient(120% 90% at 0% 0%, #16357a 0%, #0b2559 50%, #071a42 100%);
  overflow-y: auto;
  max-height: 92vh;
}
.site-v2 .dm-host { display: flex; gap: 16px; align-items: flex-start; padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,.12); }
.site-v2 .dm-host-avatar { position: relative; flex-shrink: 0; width: 48px; height: 48px; }
.site-v2 .dm-host-live {
  position: absolute; right: 1px; bottom: 3px;
  width: 11px; height: 11px; border-radius: 50%;
  background: #34d399; border: 2px solid #0b2559;
}
.site-v2 .dm-host-name { font: 600 18px/1.2 var(--display); letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.site-v2 .dm-host-badge {
  font: 500 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: #93b4ff; border: 1px solid rgba(147,180,255,.4); border-radius: 999px; padding: 5px 8px;
}
.site-v2 .dm-host-bio { margin: 8px 0 0; font-size: 13.5px; line-height: 1.6; color: rgba(255,255,255,.74); }

.site-v2 .dm-block { padding-top: 22px; }
.site-v2 .dm-label {
  font: 500 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: #93b4ff; margin-bottom: 14px;
}
.site-v2 .dm-agenda, .site-v2 .dm-gets, .site-v2 .dm-next { list-style: none; margin: 0; padding: 0; }
.site-v2 .dm-agenda li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 8px 0; }
.site-v2 .dm-agenda li + li { border-top: 1px dashed rgba(255,255,255,.1); }
.site-v2 .dm-time {
  font: 500 11px/1 var(--mono); color: #fff; opacity: .9;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  border-radius: 6px; height: 24px; display: grid; place-items: center;
}
.site-v2 .dm-agenda strong { font-size: 14px; font-weight: 600; }
.site-v2 .dm-agenda p { margin: 2px 0 0; font-size: 12.5px; line-height: 1.5; color: rgba(255,255,255,.62); }
.site-v2 .dm-gets li { position: relative; padding: 0 0 10px 24px; font-size: 13.5px; line-height: 1.5; color: rgba(255,255,255,.86); }
.site-v2 .dm-gets li::before {
  content: ''; position: absolute; left: 2px; top: 5px; width: 11px; height: 6px;
  border-left: 2px solid #34d399; border-bottom: 2px solid #34d399; transform: rotate(-45deg);
}
.site-v2 .dm-next li { display: flex; gap: 12px; align-items: flex-start; padding-bottom: 10px; font-size: 13.5px; line-height: 1.5; color: rgba(255,255,255,.86); }
.site-v2 .dm-next b {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  font: 600 11px/1 var(--mono); color: #0b2559; background: #fff;
}

/* Right: the form */
.site-v2 .dm-book { padding: 36px 36px 32px; overflow-y: auto; max-height: 92vh; }
.site-v2 .dm-v2 .demo-modal-tag {
  display: inline-block; font: 500 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--h-navy); background: var(--h-blue-soft); border: 0; border-radius: 999px; padding: 6px 10px;
}
.site-v2 .dm-v2 .demo-modal-header h2 { font: 600 26px/1.15 var(--display); letter-spacing: -.03em; color: var(--h-ink); margin: 14px 0 6px; }
.site-v2 .dm-v2 .demo-modal-header p { font-size: 14px; color: var(--h-ink-2); margin: 0 0 22px; }
.site-v2 .dm-v2 .dmf-field label { font-size: 12.5px; font-weight: 600; color: var(--h-ink); }
.site-v2 .dm-v2 :is(.dmf-field input, .dmf-field select, .dmf-field textarea) {
  background-color: #fff; border: 1px solid var(--h-line-strong); border-radius: 10px; color: var(--h-ink); font-size: 14px;
}
.site-v2 .dm-v2 :is(.dmf-field input, .dmf-field select, .dmf-field textarea):focus {
  outline: none; border-color: var(--h-blue); box-shadow: 0 0 0 3px rgba(29,78,216,.12);
}
.site-v2 .dm-v2 .dmf-submit {
  width: 100%; min-height: 48px; padding: 12px 24px; justify-content: center;
  border-radius: 999px; background: var(--h-navy); color: #fff; border: 1px solid var(--h-navy);
  white-space: nowrap; box-shadow: 0 12px 24px -14px rgba(11,37,89,.7);
}
.site-v2 .dm-v2 .dmf-submit:hover:not(:disabled) { background: #061a44; }

@media (max-width: 860px) {
  .site-v2 .demo-modal-overlay { padding: 12px; align-items: flex-start; overflow-y: auto; }
  .site-v2 .demo-modal-card.dm-v2 { grid-template-columns: minmax(0, 1fr); max-height: none; overflow: visible; }
  .site-v2 .dm-info, .site-v2 .dm-book { max-height: none; overflow: visible; padding: 26px 20px 22px; }
  .site-v2 .dm-book { order: -1; }   /* form first on phones; details follow */
  .site-v2 .dm-info { border-radius: 0 0 20px 20px; }
}

/* Hero: two clear actions plus factual proof points (replaces the "free / no card" note) */
.site-v2 .hero-actions > * { white-space: nowrap; }
.site-v2 .btn-demo svg { flex-shrink: 0; color: var(--h-blue); }
.site-v2 .hero-proof {
  list-style: none; margin: 24px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px 22px;
}
.site-v2 .hero-proof li {
  position: relative; padding-left: 20px;
  font-size: 13.5px; color: var(--h-ink-2);
}
.site-v2 .hero-proof li::before {
  content: ''; position: absolute; left: 2px; top: 5px; width: 9px; height: 5px;
  border-left: 1.75px solid var(--h-blue); border-bottom: 1.75px solid var(--h-blue);
  transform: rotate(-45deg);
}
.site-v2 .cta-free { margin-top: 18px; font-size: 14px; color: var(--h-muted); }
.site-v2 .cta-free a { color: var(--h-navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.site-v2 .cta-section p.cta-free { font-size: 14px; margin: 22px 0 0; color: rgba(255,255,255,.6); }
.site-v2 .cta-section .cta-free a { color: #fff; }
.site-v2 .cta-section .btn-demo svg { color: #93b4ff; }

/* Wordmark: "Pillar" + brand-blue "2" + lighter "OS" */
.site-v2 .wordmark { font-family: var(--display); font-weight: 600; letter-spacing: -.035em; white-space: nowrap; }
.site-v2 .wordmark b { font-weight: 600; color: var(--h-blue); }
.site-v2 .wordmark span { font-weight: 500; letter-spacing: 0; margin-left: .02em; }
.site-v2 .cta-section .wordmark b, .site-v2 .dark .wordmark b { color: #93b4ff; }
.site-v2 .brand-mark-img { display: block; flex-shrink: 0; }
.site-v2 .nav-brand { display: inline-flex; align-items: center; gap: 10px; }
.site-v2 .nav-brand .brand-mark-img { width: 26px; height: 26px; }
.site-v2 .footer-brand .brand-mark-img { width: 22px; height: 22px; }
