/*
 * SYNAFOX — "Grid Command" design system (WordPress port)
 * Light precision-operations aesthetic. Warm white surfaces, charcoal ink, and brand champagne (#CFA86E).
 * Fonts: Space Grotesk (display), IBM Plex Sans (body), IBM Plex Mono (labels).
 * Signature motifs: mono section labels, amber telemetry line, HUD corner brackets.
 */

/* ---------- Tokens ---------- */
:root {
  --background: oklch(0.985 0.005 80);
  --foreground: oklch(0.19 0.014 250);
  --card: oklch(1 0 0);
  --secondary: oklch(0.955 0.008 250);
  --muted-foreground: oklch(0.47 0.018 250);
  --accent: oklch(0.94 0.011 80);
  --border: oklch(0.19 0.014 250 / 14%);
  --input: oklch(0.19 0.014 250 / 18%);
  --amber-brand: oklch(0.754 0.088 76.7);
  --amber-dim: oklch(0.627 0.072 66.6);
  --amber-ink: oklch(0 0 0);
  --green-live: oklch(0.75 0.17 150);
  --font-display: "Space Grotesk", sans-serif;
  --font-sans: "IBM Plex Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; border-color: var(--border); }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; background: none; border: none; padding: 0; color: inherit; cursor: pointer; }
a[href], button, input[type="range"] { cursor: pointer; }

/* WordPress admin bar offset */
body.admin-bar .sf-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .sf-header { top: 46px; } }

/* ---------- Layout ---------- */
.sf-container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 640px) { .sf-container { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .sf-container { padding-left: 2rem; padding-right: 2rem; max-width: 1280px; } }

/* ---------- Signature utilities ---------- */
.mono-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.sf-amber { color: var(--amber-brand); }
.sf-dim85 { color: color-mix(in oklch, var(--foreground), transparent 15%); }
.sf-dim75 { color: color-mix(in oklch, var(--foreground), transparent 25%); }
.sf-dim70 { color: color-mix(in oklch, var(--foreground), transparent 30%); }
.sf-dim65 { color: color-mix(in oklch, var(--foreground), transparent 35%); }
.sf-dim60 { color: color-mix(in oklch, var(--foreground), transparent 40%); }
.sf-dim55 { color: color-mix(in oklch, var(--foreground), transparent 45%); }
.sf-dim40 { color: color-mix(in oklch, var(--foreground), transparent 60%); }
.sf-dim35 { color: color-mix(in oklch, var(--foreground), transparent 65%); }
.sf-muted { color: var(--muted-foreground); }
.sf-break-all { word-break: break-all; }

.bg-grid {
  background-image:
    linear-gradient(to right, oklch(0.19 0.014 250 / 7%) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(0.19 0.014 250 / 7%) 1px, transparent 1px);
  background-size: 64px 64px;
}

.hud-corners { position: relative; }
.hud-corners::before,
.hud-corners::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--amber-brand);
  border-style: solid;
  opacity: 0.75;
  pointer-events: none;
  transition: opacity 200ms var(--ease-out);
}
.hud-corners::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.hud-corners::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }

.telemetry-line {
  position: relative;
  height: 1px;
  background: oklch(0.19 0.014 250 / 14%);
  overflow: hidden;
}
.telemetry-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: -30%;
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--amber-brand), transparent);
  animation: telemetry-sweep 6s var(--ease-in-out) infinite;
}
@keyframes telemetry-sweep { 0% { left: -30%; } 60%, 100% { left: 100%; } }

/* Text-free hero boundary: a restrained charcoal rule with a Champagne lead. */
.sf-hero-divider { position: relative; height: 1.25rem; background: var(--background); }
.sf-hero-divider .sf-container { position: relative; height: 100%; }
.sf-hero-divider .sf-container::before,
.sf-hero-divider .sf-container::after { content: ""; position: absolute; top: 50%; height: 1px; transform: translateY(-50%); }
.sf-hero-divider .sf-container::before { right: 0; left: 0; background: var(--border); }
.sf-hero-divider .sf-container::after { left: 0; width: clamp(4rem, 10vw, 9rem); background: var(--amber-brand); }

/* Grid Command editorial signal: compact attribution for non-legal content. */
.sf-editorial-attribution { display: inline-flex; align-items: center; gap: .75rem; margin-top: 1.5rem; padding-top: .85rem; border-top: 1px solid var(--border); }
.sf-editorial-attribution a:hover { color: var(--foreground); }
.sf-breadcrumbs { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; margin-bottom: 1.35rem; font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: color-mix(in oklch, var(--foreground), transparent 50%); }
.sf-breadcrumbs a { transition: color 160ms var(--ease-out); }
.sf-breadcrumbs a:hover { color: var(--amber-brand); }
.sf-breadcrumbs [aria-current="page"] { color: color-mix(in oklch, var(--foreground), transparent 25%); }
.sf-quick-answer-label { margin-bottom: .7rem; color: var(--amber-brand); }

.sf-faq-list { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.sf-faq-item { border-bottom: 1px solid var(--border); }
.sf-faq-item:last-child { border-bottom: 0; }
.sf-faq-record { position: relative; transition: background-color 160ms var(--ease-out); }
.sf-faq-record::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: var(--amber-brand); opacity: 0; transition: opacity 160ms var(--ease-out); }
.sf-faq-record:hover, .sf-faq-record[open] { background: oklch(0.754 0.088 76.7 / 5%); }
.sf-faq-record:hover::before, .sf-faq-record[open]::before { opacity: 1; }
.sf-faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.5rem 0; cursor: pointer; list-style: none; font-family: var(--font-display); font-weight: 600; }
.sf-faq-item summary::-webkit-details-marker { display: none; }
.sf-faq-item summary span:first-child { display: flex; gap: 1rem; }
.sf-faq-item summary b { font-weight: 600; }
.sf-faq-chevron { color: var(--amber-brand); transition: transform 160ms var(--ease-out); }
.sf-faq-item[open] .sf-faq-chevron { transform: rotate(180deg); }
.sf-faq-item > p { max-width: 48rem; margin: 0; padding: 0 0 1.75rem 2.5rem; color: var(--muted-foreground); line-height: 1.7; }
@media (max-width: 760px) { .sf-faq-item > p { padding-left: 0; } }

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: var(--green-live);
  box-shadow: 0 0 8px oklch(0.75 0.17 150 / 60%);
  animation: status-pulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes status-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

@media (prefers-reduced-motion: reduce) {
  .telemetry-line::after, .status-dot { animation: none; }
}

/* Scroll reveal */
@media (prefers-reduced-motion: no-preference) {
  .fade-up {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
  }
  .fade-up.in-view { opacity: 1; transform: translateY(0); }
}

/* Section label */
.sf-section-label { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.sf-section-label .sf-tick { display: inline-block; width: 1.5rem; height: 1px; background: var(--amber-brand); }
.sf-section-label .mono-label.is-amber { color: var(--amber-brand); }
.sf-section-label .mono-label.is-light { color: color-mix(in oklch, var(--foreground), transparent 50%); }

/* ---------- Buttons ---------- */
.sf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8125rem;
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out), border-color 200ms var(--ease-out), transform 160ms var(--ease-out);
}
.sf-btn:active { transform: scale(0.97); }
.sf-btn-amber {
  background: var(--amber-brand);
  color: var(--amber-ink);
  font-weight: 500;
  padding: 1rem 1.75rem;
}
.sf-btn-amber:hover { background: var(--amber-dim); }
.sf-btn-ghost {
  border: 1px solid var(--border);
  color: color-mix(in oklch, var(--foreground), transparent 15%);
  padding: 1rem 1.75rem;
}
.sf-btn-ghost:hover { border-color: var(--amber-brand); color: var(--amber-brand); }
.sf-btn-ghost.is-hero { border-color: color-mix(in oklch, var(--foreground), transparent 72%); color: color-mix(in oklch, var(--foreground), transparent 10%); backdrop-filter: blur(4px); }
.sf-btn-ghost.is-hero:hover { border-color: var(--amber-brand); color: var(--amber-brand); }
.sf-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber-brand);
  transition: gap 200ms var(--ease-out);
}
.sf-link-arrow:hover { gap: 0.875rem; }

/* ---------- Header ---------- */
.sf-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 300ms var(--ease-out), border-color 300ms var(--ease-out), backdrop-filter 300ms var(--ease-out);
}
.sf-header.is-scrolled, .sf-header.is-open {
  background: oklch(0.985 0.005 80 / 92%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: var(--border);
}
body.page-template-page-legal .sf-header,
body.page-template-page-legal-php .sf-header {
  background: oklch(0.985 0.005 80 / 96%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: var(--border);
}
body.page-template-page-legal .sf-header .sf-nav-link,
body.page-template-page-legal-php .sf-header .sf-nav-link { color: var(--foreground); }
.sf-header-inner { display: flex; align-items: center; justify-content: space-between; height: 4rem; }
.sf-wordmark { display: inline-flex; align-items: center; gap: 0.625rem; }
.sf-logo-img { display: block; flex: 0 0 auto; height: 2.5rem; width: auto; object-fit: contain; }
.sf-founders-single { grid-template-columns: minmax(0, 1fr); max-width: 42rem; }
.sf-wordmark-text { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; letter-spacing: -0.025em; }
.sf-wm-syna, .sf-wm-fox { color: var(--foreground); }
.sf-nav-desktop { display: none; align-items: center; gap: 1.75rem; }
@media (min-width: 1024px) {
  .sf-nav-desktop { display: flex; }
  .sf-mobile-toggle { display: none; }
}

/* ---------------------------------------------------------------
   Legal document pages (v1.4.0) — Privacy Policy, Terms of Service
   Grid Command: asymmetric sticky index + narrow prose measure,
   amber hairline rules, mono labels, hard corners.
   --------------------------------------------------------------- */
.sf-legal-head { border-bottom: 1px solid var(--border); }
.sf-legal-effective { margin-top: 2rem; }
.sf-legal-body { padding-top: 4rem; padding-bottom: 5rem; }
.sf-legal-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
.sf-legal-index-title { margin-bottom: 1rem; color: oklch(0.48 0.055 76.7); }
.sf-legal-index-list {
  list-style: none; margin: 0; padding: 0 0 0 1rem;
  border-left: 1px solid var(--border);
}
.sf-legal-index-list li {
  display: flex; gap: 0.75rem; margin-bottom: 0.65rem;
  font-size: 0.875rem; line-height: 1.35;
}
.sf-legal-index-num { color: oklch(0.48 0.055 76.7); flex-shrink: 0; padding-top: 0.15rem; }
.sf-legal-index-list a {
  color: oklch(0.34 0.018 250);
  transition: color 160ms var(--ease-out);
}
.sf-legal-index-list a:hover { color: var(--amber-brand); }
.sf-legal-prose { max-width: 46rem; }
.sf-legal-prose h2.sf-legal-h2 {
  display: flex; align-items: baseline; gap: 1rem;
  font-size: 1.375rem; font-weight: 600; letter-spacing: -0.02em;
  margin: 2.5rem 0 1rem; padding-top: 2.5rem;
  border-top: 1px solid var(--border); scroll-margin-top: 7rem;
}
.sf-legal-prose h2.sf-legal-h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.sf-legal-prose .sf-legal-num {
  font-family: var(--font-mono);
  font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--amber-brand); flex-shrink: 0;
}
.sf-legal-prose h3 { font-size: 1.0625rem; font-weight: 600; margin: 1.75rem 0 0.5rem; }
.sf-legal-prose p { font-size: 0.95rem; line-height: 1.75; }
.sf-legal-note { margin-top: 3.5rem; border: 1px solid var(--border); padding: 1.5rem; }
.sf-legal-note p:last-child { margin-bottom: 0; margin-top: 0.75rem; font-size: 0.875rem; }
@media (min-width: 1024px) {
  .sf-legal-grid { grid-template-columns: 3fr 9fr; gap: 4rem; }
  .sf-legal-index-inner { position: sticky; top: 7rem; }
}

/* Footer legal links row */
.sf-footer-bottom-left { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }
.sf-footer-legal { display: flex; align-items: center; gap: 1.25rem; }
.sf-footer-legal a {
  color: color-mix(in oklch, var(--foreground), transparent 60%);
  transition: color 160ms var(--ease-out);
}
.sf-footer-legal a:hover { color: var(--amber-brand); }
.sf-nav-link { color: color-mix(in oklch, var(--foreground), transparent 30%); transition: color 200ms var(--ease-out); }
.sf-nav-link:hover, .sf-nav-link.is-active { color: var(--amber-brand); }
.sf-nav-cta { padding: 0.625rem 1rem; font-size: 0.6875rem; }
.sf-explore { position: relative; }
.sf-explore-toggle { display: inline-flex; align-items: center; gap: .35rem; padding: 0; border: 0; background: transparent; font: inherit; cursor: pointer; }
.sf-explore-toggle span { font-size: .95rem; line-height: .7; transition: transform 160ms var(--ease-out); }
.sf-explore-toggle[aria-expanded="true"] span { transform: rotate(180deg); }
.sf-explore-menu { position: fixed; top: 5.15rem; left: 50%; right: auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.75rem; width: 47.5rem; padding: 1.5rem; border: 1px solid var(--border); background: oklch(1 0 0 / 97%); box-shadow: 0 24px 60px oklch(0.19 0.014 250 / 14%); backdrop-filter: blur(24px); transform: translateX(-50%); z-index: 80; }
body.admin-bar .sf-explore-menu { top: calc(5.15rem + 32px); }
@media (max-width: 782px) { body.admin-bar .sf-explore-menu { top: calc(5.15rem + 46px); } }
.sf-explore-menu[hidden] { display: none; }
.sf-explore-group { display: flex; flex-direction: column; gap: .55rem; }
.sf-explore-group > p { margin-bottom: .3rem; }
.sf-explore-group a { color: color-mix(in oklch, var(--foreground), transparent 30%); font-size: .8125rem; line-height: 1.35; transition: color 160ms var(--ease-out); }
.sf-explore-group a:hover { color: var(--foreground); }
.sf-mobile-toggle { padding: 0.5rem; color: var(--foreground); display: inline-flex; }
.sf-nav-mobile {
	max-height: calc(100dvh - 4rem);
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
  border-top: 1px solid var(--border);
  background: oklch(1 0 0 / 97%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.sf-nav-mobile-inner { display: flex; flex-direction: column; gap: 0.25rem; padding-top: 1rem; padding-bottom: 1rem; }
.sf-nav-mobile .sf-nav-link { padding: 0.75rem 0; color: color-mix(in oklch, var(--foreground), transparent 20%); }
.sf-mobile-explore { margin-top: .75rem; padding: 1.25rem 0; border-top: 1px solid var(--border); }
.sf-mobile-explore > p { margin-bottom: 1rem; }
.sf-mobile-explore-group { margin-top: 1.25rem; }
.sf-mobile-explore-group > p { margin-bottom: .4rem; }
.sf-mobile-explore-group a { display: block; padding: .4rem 0; color: color-mix(in oklch, var(--foreground), transparent 28%); font-size: .875rem; line-height: 1.35; transition: color 160ms var(--ease-out); }
.sf-mobile-explore-group a:hover { color: var(--amber-brand); }
.sf-nav-cta-mobile { margin-top: 0.5rem; padding: 0.75rem 1rem; text-align: center; font-size: 0.6875rem; }

/* ---------- Footer ---------- */
.sf-footer { border-top: 1px solid var(--border); }
.sf-footer-inner { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.sf-footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 768px) {
  .sf-footer-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .sf-footer-brand { grid-column: span 5; }
  .sf-footer-col-1 { grid-column: 7 / span 2; }
  .sf-footer-col { grid-column: span 2; }
}
.sf-footer-tagline { margin-top: 1rem; font-size: 0.875rem; color: var(--muted-foreground); max-width: 24rem; line-height: 1.6; }
.sf-footer-status { margin-top: 1.5rem; display: flex; align-items: center; gap: 0.625rem; }
.sf-footer-heading { margin-bottom: 1rem; }
.sf-footer-links { display: flex; flex-direction: column; gap: 0.625rem; font-size: 0.875rem; }
.sf-footer-links a { color: color-mix(in oklch, var(--foreground), transparent 30%); transition: color 200ms var(--ease-out); }
.sf-footer-links a:hover { color: var(--foreground); }
.sf-footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}
@media (min-width: 640px) { .sf-footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; } }

/* ---------- Hero (Home) ---------- */
.sf-hero { position: relative; min-height: 92vh; display: flex; align-items: flex-end; overflow: hidden; }
.sf-hero-bg { position: absolute; inset: 0; }
.sf-hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(1.1) contrast(.75) saturate(.6); }
.sf-hero-overlay-x { position: absolute; inset: 0; background: linear-gradient(to right, oklch(0.985 0.005 80 / 96%), oklch(0.985 0.005 80 / 83%), oklch(0.985 0.005 80 / 58%)); }
.sf-hero-overlay-y { position: absolute; inset: 0; background: linear-gradient(to top, oklch(0.985 0.005 80 / 95%), transparent, oklch(0.985 0.005 80 / 48%)); }
.sf-hero-content { position: relative; z-index: 10; padding-bottom: 5rem; padding-top: 10rem; }
.sf-hero-eyebrow { display: flex; align-items: center; gap: 0.625rem; margin-bottom: 1.75rem; }
.sf-h1 {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 56rem;
}
@media (min-width: 640px) { .sf-h1 { font-size: 3.75rem; } }
@media (min-width: 1024px) { .sf-h1 { font-size: 4.5rem; } }
.sf-hero-sub { margin-top: 1.75rem; font-size: 1.125rem; color: color-mix(in oklch, var(--foreground), transparent 25%); max-width: 42rem; line-height: 1.65; }
@media (min-width: 768px) { .sf-hero-sub { font-size: 1.25rem; } }
.sf-hero-actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }

/* ---------- Sections & headings ---------- */
.sf-section { padding-top: 6rem; padding-bottom: 6rem; }
@media (min-width: 768px) { .sf-section { padding-top: 8rem; padding-bottom: 8rem; } }
.sf-section-tight { padding-top: 5rem; padding-bottom: 5rem; }
@media (min-width: 768px) { .sf-section-tight { padding-top: 6rem; padding-bottom: 6rem; } }
.sf-section-mid { padding-top: 6rem; padding-bottom: 6rem; }
@media (min-width: 768px) { .sf-section-mid { padding-top: 7rem; padding-bottom: 7rem; } }
.sf-h2 { font-size: 1.875rem; font-weight: 700; line-height: 1.08; letter-spacing: -0.025em; }
@media (min-width: 768px) { .sf-h2 { font-size: 2.25rem; } }
.sf-h3-card { font-size: 1.125rem; font-weight: 600; line-height: 1.35; }
.sf-body { color: var(--muted-foreground); line-height: 1.65; }
.sf-body-sm { color: var(--muted-foreground); line-height: 1.65; font-size: 0.875rem; }
.sf-mt-6 { margin-top: 1.5rem; }
.sf-mt-4 { margin-top: 1rem; }
.sf-booking-box.is-above-form { margin-top: 0; margin-bottom: 2rem; }

/* ---------------------------------------------------------------
   Security & Compliance page (v1.5.0)
   Grid Command: asymmetric 12-col sections, hairline card grids,
   HUD corners on the deployment matrix, mono status chips.
   Honesty rule: roadmap items read as roadmap — never as badges.
   --------------------------------------------------------------- */
.sf-sec-meta { margin-top: 2rem; }
.sf-h2.is-sm { font-size: 1.5rem; }
@media (min-width: 768px) { .sf-h2.is-sm { font-size: 1.875rem; } }
.sf-h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; }
.sf-body-lg { color: var(--muted-foreground); line-height: 1.7; }
.sf-mt-5 { margin-top: 1.25rem; }
.sf-measure-2 { max-width: 36rem; }
.sf-link-amber { color: var(--amber-brand); word-break: break-word; }
.sf-link-amber:hover { text-decoration: underline; }
.sf-section-pad { padding-top: 6rem; padding-bottom: 6rem; }
@media (min-width: 768px) { .sf-section-pad { padding-top: 7rem; padding-bottom: 7rem; } }

/* Posture cards — hairline grid via background bleed */
.sf-pillar-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--border); }
@media (min-width: 640px) { .sf-pillar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sf-pillar { background: var(--background); padding: 1.75rem; height: 100%; transition: background-color 200ms var(--ease-out); }
.sf-pillar:hover { background: oklch(0.25 0.02 250 / 30%); }
.sf-pillar-icon { display: block; color: var(--amber-brand); }
.sf-pillar-title { margin-top: 1.25rem; font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; letter-spacing: -0.02em; }
.sf-pillar-body { margin-top: 0.75rem; font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.65; }

/* Deployment matrix */
.sf-deploy { background: oklch(0.195 0.016 250 / 60%); }
.sf-deploy-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  column-gap: 1.25rem;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  transition: background-color 150ms var(--ease-out);
}
@media (min-width: 768px) { .sf-deploy-row { column-gap: 2.25rem; padding-left: 2rem; padding-right: 2rem; } }
.sf-deploy-row:last-child { border-bottom: none; }
.sf-deploy-row.is-header:hover { background: none; }
.sf-deploy-row:not(.is-header):hover { background: oklch(0.25 0.02 250 / 40%); }
.sf-deploy-label { font-size: 0.875rem; color: oklch(0.93 0.008 80 / 80%); line-height: 1.4; padding-right: 0.5rem; }
.sf-deploy-cell { width: 3.5rem; display: flex; justify-content: center; }
.sf-deploy-cell.mono-label { display: block; text-align: center; }

/* Controls */
.sf-ctrl-groups { margin-top: 3.5rem; }
.sf-ctrl-group { padding-top: 3rem; padding-bottom: 3rem; }
.sf-ctrl-group + .sf-ctrl-group { border-top: 1px solid var(--border); }
.sf-ctrl-head { display: flex; align-items: baseline; gap: 1rem; }
.sf-ctrl-list { display: flex; flex-direction: column; gap: 1.25rem; margin: 0; }
.sf-ctrl-item { border-left: 1px solid var(--border); padding-left: 1.25rem; }
.sf-ctrl-term { font-size: 0.95rem; font-weight: 500; color: oklch(0.93 0.008 80 / 90%); margin: 0; }
.sf-ctrl-desc { margin: 0.375rem 0 0; font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.65; }

/* Frameworks & status chips */
.sf-fw-list { display: flex; flex-direction: column; gap: 1px; background: var(--border); }
.sf-fw { background: var(--background); padding: 1.5rem; }
@media (min-width: 768px) { .sf-fw { padding: 1.75rem; } }
.sf-fw-head { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.sf-fw-icon { color: oklch(0.93 0.008 80 / 30%); flex-shrink: 0; }
.sf-fw-name { font-family: var(--font-display); font-size: 1rem; font-weight: 600; letter-spacing: -0.02em; }
.sf-fw-desc { margin-top: 0.75rem; font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.65; }
.sf-chip { border: 1px solid var(--border); padding: 0.25rem 0.625rem; font-size: 0.625rem; }
.sf-chip.is-aligned { color: var(--amber-brand); border-color: oklch(0.754 0.088 76.7 / 40%); }
.sf-chip.is-roadmap { color: oklch(0.93 0.008 80 / 50%); border-color: var(--border); }
.sf-chip.is-available { color: var(--green-live); border-color: oklch(0.75 0.17 150 / 40%); }

/* Boxes: disclosure, related docs, note */
.sf-box { border: 1px solid var(--border); padding: 1.75rem; }
.sf-box-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.sf-box-p { font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.65; margin-bottom: 1rem; }
.sf-box-p:last-child { margin-bottom: 0; }
.sf-box-links { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.625rem; }
.sf-box-links a { font-size: 0.875rem; color: oklch(0.93 0.008 80 / 70%); transition: color 160ms var(--ease-out); }
.sf-box-links a:hover { color: var(--amber-brand); }
.sf-note { margin-top: 4rem; max-width: 48rem; padding: 1.5rem; }
.sf-note-label { margin-bottom: 0.75rem; }

/* Page hero (inner pages) */
.sf-page-hero { padding-top: 10rem; padding-bottom: 5rem; }
.sf-page-hero.is-short { padding-bottom: 4rem; }
.sf-h1-page { font-size: 2.25rem; font-weight: 700; line-height: 1.03; letter-spacing: -0.025em; max-width: 48rem; }
@media (min-width: 768px) { .sf-h1-page { font-size: 3.75rem; } }
.sf-page-hero-sub { margin-top: 1.75rem; font-size: 1.125rem; color: var(--muted-foreground); max-width: 42rem; line-height: 1.65; }

/* ---------- Traction bar ---------- */
.sf-traction { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: oklch(0.195 0.016 250 / 40%); }
.sf-traction-inner { padding-top: 1.5rem; padding-bottom: 1.5rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; row-gap: 1rem; }
@media (min-width: 768px) { .sf-traction-inner { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; column-gap: 2.5rem; } }
.sf-traction-item { display: flex; align-items: baseline; gap: 0.75rem; }
.sf-traction-value { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--amber-brand); font-variant-numeric: tabular-nums; }

/* ---------- Grid helpers ---------- */
.sf-grid-12 { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 1024px) {
  .sf-grid-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4rem; }
  .sf-col-4 { grid-column: span 4; }
  .sf-col-5 { grid-column: span 5; }
  .sf-col-6 { grid-column: span 6; }
  .sf-col-7 { grid-column: span 7; }
  .sf-col-8 { grid-column: span 8; }
  .sf-order-1 { order: 1; }
  .sf-order-2 { order: 2; }
}
.sf-items-center { align-items: center; }

/* ---------- Stat counters ---------- */
.sf-stats-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .sf-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sf-stat { padding: 1.5rem; background: oklch(0.195 0.016 250 / 60%); }
.sf-stat-value { font-family: var(--font-display); font-size: 2.25rem; font-weight: 700; color: var(--foreground); font-variant-numeric: tabular-nums; }
@media (min-width: 768px) { .sf-stat-value { font-size: 3rem; } }
.sf-stat-value .sf-suffix { color: var(--amber-brand); }
.sf-stat-label { margin-top: 0.75rem; }

/* ---------- Feature rows (Home platform overview) ---------- */
.sf-feature-rows { margin-top: 2.25rem; }
.sf-feature-row {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem 0.5rem;
  margin: 0 -0.5rem;
  border-top: 1px solid var(--border);
  transition: background-color 200ms var(--ease-out);
}
.sf-feature-row:last-child { border-bottom: 1px solid var(--border); }
.sf-feature-row:hover { background: oklch(0.195 0.016 250 / 50%); }
.sf-feature-row svg { margin-top: 0.25rem; flex-shrink: 0; color: var(--amber-brand); }
.sf-feature-row h3 { font-weight: 600; font-size: 1rem; }
.sf-feature-row p { margin-top: 0.375rem; font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.6; }

/* Figure caption */
.sf-fig-caption { margin-top: 0.75rem; color: oklch(0.93 0.008 80 / 40%); }

/* ---------- Steps grid (Home stack) ---------- */
.sf-steps-header { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 3.5rem; }
@media (min-width: 768px) { .sf-steps-header { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.sf-steps-header .sf-h2 { max-width: 36rem; }
.sf-steps-header-note { color: var(--muted-foreground); max-width: 24rem; line-height: 1.65; font-size: 0.875rem; }
.sf-steps-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--border); }
@media (min-width: 768px) { .sf-steps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sf-step-card { background: var(--background); padding: 2rem; height: 100%; transition: background-color 200ms var(--ease-out); }
.sf-step-card:hover { background: var(--card); }
.sf-step-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.sf-step-card-top svg { color: oklch(0.93 0.008 80 / 30%); transition: color 200ms var(--ease-out); }
.sf-step-card:hover .sf-step-card-top svg { color: var(--amber-brand); }
.sf-step-card p { margin-top: 0.75rem; font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.6; }

/* ---------- Audience section (Home 04, image bg) ---------- */
.sf-audience { position: relative; overflow: hidden; }
.sf-audience-bg { position: absolute; inset: 0; }
.sf-audience-bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(1.1) contrast(.75) saturate(.55); }
.sf-audience-bg .sf-scrim { position: absolute; inset: 0; background: oklch(0.985 0.005 80 / 90%); }
.sf-audience-content { position: relative; z-index: 10; }
.sf-audience-content .sf-narrow { max-width: 48rem; }
.sf-audience-text { margin-top: 1.5rem; color: color-mix(in oklch, var(--foreground), transparent 25%); line-height: 1.65; max-width: 42rem; }
.sf-audience-grid { margin-top: 2.5rem; display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .sf-audience-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sf-audience-card { background: oklch(1 0 0 / 78%); backdrop-filter: blur(4px); padding: 1.5rem; height: 100%; }
.sf-audience-card h3 { font-weight: 600; font-size: 1rem; }
.sf-audience-card p { margin-top: 0.5rem; font-size: 0.875rem; color: color-mix(in oklch, var(--foreground), transparent 35%); line-height: 1.6; }

/* ---------- CTA band ---------- */
.sf-cta-band { position: relative; border-top: 1px solid var(--border); }
.sf-cta-inner { padding-top: 6rem; padding-bottom: 6rem; }
@media (min-width: 768px) { .sf-cta-inner { padding-top: 7rem; padding-bottom: 7rem; } }
.sf-cta-inner .sf-narrow { max-width: 48rem; }
.sf-cta-eyebrow { margin-bottom: 1.25rem; color: var(--amber-brand); }
.sf-cta-h2 { font-size: 1.875rem; font-weight: 700; line-height: 1.05; letter-spacing: -0.025em; }
@media (min-width: 768px) { .sf-cta-h2 { font-size: 3rem; } }
.sf-cta-sub { margin-top: 1.25rem; color: var(--muted-foreground); font-size: 1.125rem; }
.sf-cta-actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }

/* ---------- Evidence strip (Platform) ---------- */
.sf-evidence {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 2rem;
  row-gap: 1rem;
  padding-bottom: 3.5rem;
  margin-bottom: 3.5rem;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 768px) { .sf-evidence { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Check lists ---------- */
.sf-check-list { margin-top: 1.75rem; display: flex; flex-direction: column; gap: 0.75rem; }
.sf-check-list li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.875rem; color: oklch(0.93 0.008 80 / 80%); }
.sf-check-list svg { margin-top: 0.125rem; flex-shrink: 0; color: var(--amber-brand); }

/* Tick lists (capability points) */
.sf-tick-list { display: flex; flex-direction: column; gap: 0.625rem; }
.sf-tick-list li { display: flex; align-items: flex-start; gap: 0.625rem; font-size: 0.875rem; color: oklch(0.93 0.008 80 / 75%); }
.sf-tick-list .sf-tick { margin-top: 0.5rem; display: inline-block; width: 0.75rem; height: 1px; background: var(--amber-brand); flex-shrink: 0; }

/* ---------- Data flow diagram ---------- */
.sf-flow { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 1024px) { .sf-flow { grid-template-columns: 1fr 3rem 1fr 3rem 1fr 3rem 1fr; align-items: stretch; } }
.sf-flow-stage {
  border: 1px solid var(--border);
  background: oklch(0.195 0.016 250 / 50%);
  padding: 1.75rem;
  transition: border-color 400ms var(--ease-out), background-color 400ms var(--ease-out);
  height: 100%;
}
.sf-flow-stage.is-active { border-color: oklch(0.754 0.088 76.7 / 60%); background: oklch(0.754 0.088 76.7 / 7%); }
.sf-flow-stage-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.sf-flow-stage-top svg { color: oklch(0.93 0.008 80 / 35%); transition: color 400ms var(--ease-out); }
.sf-flow-stage.is-active .sf-flow-stage-top svg { color: var(--amber-brand); }
.sf-flow-stage h3 { font-size: 1.0625rem; font-weight: 600; }
.sf-flow-stage p { margin-top: 0.5rem; font-size: 0.8125rem; color: var(--muted-foreground); line-height: 1.6; }
.sf-flow-connector { position: relative; display: none; }
@media (min-width: 1024px) { .sf-flow-connector { display: block; } }
.sf-flow-connector .sf-track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: oklch(1 0 0 / 12%);
  overflow: hidden;
}
.sf-flow-connector .sf-track::after {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--amber-brand), transparent);
  animation: flow-h 2.8s var(--ease-in-out) infinite;
}
.sf-flow-connector-v { position: relative; height: 2.5rem; width: 1px; margin: 0 auto; background: oklch(1 0 0 / 12%); overflow: hidden; }
@media (min-width: 1024px) { .sf-flow-connector-v { display: none; } }
.sf-flow-connector-v::after {
  content: "";
  position: absolute;
  left: 0;
  top: -50%;
  height: 50%;
  width: 100%;
  background: linear-gradient(180deg, transparent, var(--amber-brand), transparent);
  animation: flow-v 2.8s var(--ease-in-out) infinite;
}
@keyframes flow-h { 0% { left: -50%; } 60%, 100% { left: 100%; } }
@keyframes flow-v { 0% { top: -50%; } 60%, 100% { top: 100%; } }
@media (prefers-reduced-motion: reduce) {
  .sf-flow-connector .sf-track::after, .sf-flow-connector-v::after { animation: none; opacity: 0; }
}
.sf-flow-loop-note { margin-top: 1.5rem; display: flex; align-items: center; gap: 0.625rem; }

/* ---------- Capability strata (Platform) ---------- */
.sf-strata .sf-stratum { display: grid; grid-template-columns: 1fr; gap: 2rem; padding: 3.5rem 0; }
.sf-strata .sf-stratum + .sf-stratum { border-top: 1px solid var(--border); }
@media (min-width: 1024px) {
  .sf-strata .sf-stratum { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .sf-stratum-head { grid-column: span 4; }
  .sf-stratum-body { grid-column: span 5; }
  .sf-stratum-points { grid-column: span 3; }
}
.sf-stratum h3 { font-size: 1.5rem; font-weight: 700; line-height: 1.1; letter-spacing: -0.025em; }
@media (min-width: 768px) { .sf-stratum h3 { font-size: 1.875rem; } }

/* ---------- Comparison table (Platform) ---------- */
.sf-compare { background: oklch(0.195 0.016 250 / 60%); }
.sf-compare-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  column-gap: 1.5rem;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  transition: background-color 150ms var(--ease-out);
}
@media (min-width: 768px) { .sf-compare-row { column-gap: 3rem; padding-left: 2rem; padding-right: 2rem; } }
.sf-compare-row:last-child { border-bottom: none; }
.sf-compare-row.is-header:hover { background: none; }
.sf-compare-row:not(.is-header):hover { background: oklch(0.25 0.02 250 / 40%); }
.sf-compare-row .sf-cell-label { font-size: 0.875rem; color: oklch(0.93 0.008 80 / 85%); }
.sf-compare-col-sf { width: 4rem; display: flex; justify-content: center; }
.sf-compare-col-legacy { width: 6rem; display: flex; justify-content: center; }
.sf-compare-col-sf.mono-label, .sf-compare-col-legacy.mono-label { display: block; text-align: center; }
.sf-check-amber { color: var(--amber-brand); }
.sf-check-dim { color: oklch(0.93 0.008 80 / 50%); }
.sf-minus-dim { color: oklch(0.93 0.008 80 / 25%); }

/* ---------- Pricing ---------- */
.sf-tiers { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 1024px) { .sf-tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sf-tier {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background: oklch(0.195 0.016 250 / 50%);
  border: 1px solid var(--border);
  transition: border-color 200ms var(--ease-out);
}
.sf-tier:hover { border-color: oklch(0.93 0.008 80 / 25%); }
.sf-tier.is-featured { background: var(--card); border-color: oklch(0.754 0.088 76.7 / 40%); }
.sf-tier.is-featured:hover { border-color: oklch(0.754 0.088 76.7 / 40%); }
.sf-tier-badge {
  position: absolute;
  top: -0.75rem;
  left: 2rem;
  background: var(--amber-brand);
  color: var(--amber-ink);
  padding: 0.25rem 0.75rem;
}
.sf-tier-name { margin-top: 0.5rem; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.sf-tier-price-row { margin-top: 1.25rem; display: flex; align-items: baseline; gap: 0.5rem; }
.sf-tier-price { font-family: var(--font-display); font-size: 2.25rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.sf-tier-scale { margin-top: 0.75rem; font-size: 0.75rem; color: var(--muted-foreground); font-family: var(--font-mono); letter-spacing: 0.025em; }
.sf-tier-posture { margin-top: 0.5rem; font-size: 0.75rem; color: oklch(0.93 0.008 80 / 55%); font-family: var(--font-mono); letter-spacing: 0.025em; line-height: 1.6; }
.sf-tier-divider { margin: 1.5rem 0; height: 1px; background: var(--border); }
.sf-tier-features { display: flex; flex-direction: column; gap: 0.75rem; flex: 1; }
.sf-tier-features li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.875rem; color: oklch(0.93 0.008 80 / 80%); }
.sf-tier-features svg { margin-top: 0.125rem; flex-shrink: 0; color: var(--amber-brand); }
.sf-tier-cta { margin-top: 2rem; padding: 0.875rem 1.5rem; }
.sf-info-panels { margin-top: 3.5rem; display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--border); }
@media (min-width: 768px) { .sf-info-panels { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sf-info-panel { background: var(--background); padding: 1.75rem; }
.sf-info-panel .mono-label { margin-bottom: 0.75rem; }
.sf-info-panel p:last-child { font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.65; }

/* ---------- ROI calculator ---------- */
.sf-roi { padding: 2rem; background: oklch(0.195 0.016 250 / 60%); }
@media (min-width: 768px) { .sf-roi { padding: 2.5rem; } }
.sf-roi-header { display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; margin-bottom: 2.5rem; }
@media (min-width: 768px) { .sf-roi-header { flex-direction: row; align-items: flex-start; } }
.sf-roi-title { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.025em; }
@media (min-width: 768px) { .sf-roi-title { font-size: 1.875rem; } }
.sf-roi-note { color: oklch(0.93 0.008 80 / 40%); }
@media (min-width: 768px) { .sf-roi-note { text-align: right; max-width: 14rem; } }
.sf-roi-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 1024px) { .sf-roi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3.5rem; } }
.sf-roi-inputs { display: flex; flex-direction: column; gap: 2.25rem; }
.sf-roi-input-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1rem; }
.sf-roi-value { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.sf-roi-value .sf-unit { color: var(--amber-brand); font-size: 0.875rem; margin-left: 0.25rem; }
.sf-roi-range-labels { display: flex; justify-content: space-between; margin-top: 0.5rem; }
.sf-roi-range-labels .mono-label { color: oklch(0.93 0.008 80 / 35%); }

/* Range slider styling */
.sf-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 16px; background: transparent; margin: 0; }
.sf-slider:focus { outline: none; }
.sf-slider::-webkit-slider-runnable-track { height: 4px; background: oklch(1 0 0 / 15%); border-radius: 9999px; }
.sf-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -6px;
  border-radius: 9999px;
  background: var(--amber-brand);
  border: 2px solid var(--amber-ink);
  box-shadow: 0 0 0 1px var(--amber-brand);
  transition: transform 160ms var(--ease-out);
}
.sf-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
.sf-slider::-moz-range-track { height: 4px; background: oklch(1 0 0 / 15%); border-radius: 9999px; }
.sf-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 9999px;
  background: var(--amber-brand);
  border: 2px solid var(--amber-ink);
  box-shadow: 0 0 0 1px var(--amber-brand);
}
.sf-slider::-moz-range-progress { height: 4px; background: var(--amber-brand); border-radius: 9999px; }

.sf-roi-outputs { display: flex; flex-direction: column; }
.sf-roi-cells { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--border); flex: 1; }
@media (min-width: 640px) { .sf-roi-cells { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sf-roi-cell { background: var(--background); padding: 1.5rem; }
.sf-roi-cell .mono-label { margin-bottom: 0.75rem; display: block; }
.sf-roi-cell-value { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; color: oklch(0.93 0.008 80 / 85%); }
.sf-roi-cell-note { margin-top: 0.5rem; color: oklch(0.93 0.008 80 / 35%); display: block; }
.sf-roi-cell.is-total { border: 1px solid oklch(0.754 0.088 76.7 / 50%); }
.sf-roi-cell.is-total .mono-label { color: var(--amber-brand); }
.sf-roi-cell.is-total .sf-roi-cell-value { font-size: 1.875rem; color: var(--amber-brand); }
.sf-roi-cta { margin-top: 1.5rem; padding: 1rem 1.5rem; }
.sf-roi-disclaimer { margin-top: 1rem; color: oklch(0.93 0.008 80 / 35%); line-height: 1.6; }

/* ---------- Company ---------- */
.sf-founders { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .sf-founders { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sf-founder { background: oklch(0.195 0.016 250 / 60%); padding: 2rem; height: 100%; }
.sf-founder-head { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.5rem; }
.sf-founder-avatar {
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: oklch(0.754 0.088 76.7 / 12%);
  border: 1px solid oklch(0.754 0.088 76.7 / 40%);
  color: var(--amber-brand);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
}
.sf-founder-name { font-size: 1.25rem; font-weight: 600; }
.sf-founder-role { margin-top: 0.25rem; color: var(--amber-brand); }
.sf-team { margin-top: 3rem; }
.sf-team-label { color: oklch(0.93 0.008 80 / 45%); margin-bottom: 1.25rem; letter-spacing: 0.15em; }
.sf-team-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .sf-team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .sf-team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sf-team-card { background: oklch(0.195 0.016 250 / 60%); padding: 1.75rem; height: 100%; }
.sf-team-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.sf-team-avatar {
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: oklch(0.754 0.088 76.7 / 12%);
  border: 1px solid oklch(0.754 0.088 76.7 / 40%);
  color: var(--amber-brand);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  flex-shrink: 0;
}
.sf-team-name { font-size: 1.125rem; }
.sf-team-card .sf-founder-role { margin-top: 0.35rem; }
.sf-milestones .sf-milestone {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem 0.5rem;
  margin: 0 -0.5rem;
  border-top: 1px solid var(--border);
  transition: background-color 200ms var(--ease-out);
}
.sf-milestones .sf-milestone:last-child { border-bottom: 1px solid var(--border); }
.sf-milestones .sf-milestone:hover { background: oklch(0.195 0.016 250 / 50%); }
.sf-milestone-tag { width: 6rem; flex-shrink: 0; padding-top: 0.25rem; color: var(--amber-brand); }
.sf-milestone p { color: oklch(0.93 0.008 80 / 85%); }
.sf-regions { margin-top: 2.5rem; background: oklch(0.195 0.016 250 / 60%); padding: 1.75rem; }
.sf-regions .mono-label { margin-bottom: 0.75rem; display: block; }
.sf-regions p:last-child { color: oklch(0.93 0.008 80 / 85%); line-height: 1.65; }
.sf-mb-14 { margin-bottom: 3.5rem; }
.sf-max-2xl { max-width: 42rem; }

/* ---------- Demo page ---------- */
.sf-demo-section { padding-top: 10rem; padding-bottom: 6rem; min-height: 100vh; }
.sf-demo-grid { display: grid; grid-template-columns: 1fr; gap: 3.5rem; }
@media (min-width: 1024px) {
  .sf-demo-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .sf-demo-left { grid-column: span 5; }
  .sf-demo-right { grid-column: span 7; }
}
.sf-h1-demo { font-size: 2.25rem; font-weight: 700; line-height: 1.05; letter-spacing: -0.025em; }
@media (min-width: 768px) { .sf-h1-demo { font-size: 3rem; } }
.sf-demo-check-list { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.sf-demo-check-list li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.875rem; color: oklch(0.93 0.008 80 / 85%); }
.sf-demo-check-list svg { margin-top: 0.125rem; flex-shrink: 0; color: var(--amber-brand); }
.sf-booking-box { margin-top: 2.5rem; background: oklch(0.195 0.016 250 / 60%); padding: 1.5rem; }
.sf-booking-box-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.sf-booking-box-head svg { color: var(--amber-brand); }
.sf-booking-box .sf-body-sm { margin-bottom: 1rem; }

.sf-form { background: var(--card); padding: 2rem; }
@media (min-width: 768px) { .sf-form { padding: 2.5rem; } }
.sf-form-title { margin-bottom: 2rem; color: var(--amber-brand); }
.sf-form-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) {
  .sf-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sf-form-field.is-full { grid-column: span 2; }
}
.sf-form-field { display: flex; flex-direction: column; gap: 0.5rem; }
.sf-form-field input,
.sf-form-field textarea {
  background: var(--background);
  border: 1px solid var(--input);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-family: var(--font-sans);
  color: var(--foreground);
  border-radius: 0;
  transition: border-color 150ms var(--ease-out);
}
.sf-form-field input::placeholder,
.sf-form-field textarea::placeholder { color: oklch(0.93 0.008 80 / 30%); }
.sf-form-field input:focus,
.sf-form-field textarea:focus { outline: none; border-color: var(--amber-brand); }
.sf-form-field textarea { resize: vertical; min-height: 8rem; }
.sf-form-consent { display: flex; align-items: flex-start; gap: 0.75rem; margin-top: 1.5rem; padding: 0.875rem 1rem; border-left: 2px solid color-mix(in oklch, var(--amber-brand), transparent 30%); background: color-mix(in oklch, var(--amber-brand), transparent 95%); }
.sf-form-consent input { width: 1rem; height: 1rem; flex: 0 0 auto; margin-top: 0.1875rem; accent-color: var(--amber-brand); }
.sf-form-consent label { color: color-mix(in oklch, var(--foreground), transparent 20%); font-size: 0.875rem; line-height: 1.6; cursor: pointer; }
.sf-form-consent a { color: var(--amber-brand); text-decoration: underline; text-underline-offset: 4px; }
.sf-form-submit { margin-top: 2rem; width: 100%; padding: 1rem 2rem; }
@media (min-width: 640px) { .sf-form-submit { width: auto; } }
.sf-form-submit[disabled] { opacity: 0.6; cursor: wait; }
.sf-form-status { margin-top: 1.25rem; font-size: 0.875rem; line-height: 1.6; color: oklch(0.93 0.008 80 / 70%); }
.sf-form-status a { color: var(--amber-brand); text-decoration: underline; text-underline-offset: 4px; }
.sf-form-status.is-error { color: oklch(0.75 0.15 25); }
.sf-hidden { display: none !important; }

/* ---------- Generic page (fallback) ---------- */
.sf-generic-content { padding-top: 10rem; padding-bottom: 6rem; }
.sf-generic-content .sf-prose { max-width: 48rem; }
.sf-prose h1, .sf-prose h2, .sf-prose h3 { margin: 1.5rem 0 0.75rem; }
.sf-prose p, .sf-prose ul, .sf-prose ol { margin: 0 0 1rem; color: var(--muted-foreground); }
.sf-prose ul { list-style: disc; padding-left: 1.5rem; }
.sf-prose ol { list-style: decimal; padding-left: 1.5rem; }
.sf-prose a { color: var(--amber-brand); text-decoration: underline; text-underline-offset: 4px; }


/* v1.3.4 fix: hide mobile toggle + mobile menu panel on desktop */
@media (min-width: 1024px) {
  .sf-nav-desktop { display: flex; }
  .sf-mobile-toggle { display: none !important; }
  .sf-nav-mobile { display: none !important; }
}

/* ---------- Expansion pages: solutions, platform, learn, resources ---------- */
.sf-exp-hero { max-width: 1120px; }
.sf-exp-hero-wrap { position: relative; overflow: hidden; }
.sf-exp-telemetry { position: absolute; top: 0; right: 0; bottom: 0; width: 38%; padding: 2.5rem 2rem; border-left: 1px solid var(--border); background: radial-gradient(circle at 70% 40%, oklch(0.754 0.088 76.7 / 12%), transparent 53%); }
.sf-exp-telemetry svg { display: block; width: 100%; max-width: 340px; margin-top: 2.5rem; }
.sf-exp-telemetry path:first-child { stroke: var(--amber-brand); stroke-width: 1; opacity: .5; }
.sf-exp-telemetry path:nth-child(2) { stroke: var(--foreground); stroke-width: 1; opacity: .38; }
.sf-exp-telemetry circle { fill: var(--amber-brand); }
.sf-exp-telemetry rect { stroke: var(--foreground); stroke-width: 1; opacity: .15; }
.sf-exp-ready { position: absolute; right: 2rem; bottom: 2.25rem; left: 2rem; display: flex; justify-content: space-between; padding-top: 1rem; border-top: 1px solid var(--border); color: var(--muted-foreground); }
.sf-exp-ready span { color: var(--amber-brand); }
.sf-exp-signal-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: oklch(0.955 0.008 250 / 76%); }
.sf-exp-signal-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.sf-exp-signal-grid p { display: flex; align-items: center; gap: 1rem; min-height: 82px; margin: 0; padding: 1rem 1.5rem; border-left: 1px solid var(--border); }
.sf-exp-signal-grid p:first-child { padding-left: 0; border-left: 0; }
.sf-exp-signal-grid strong { font-family: var(--font-display); font-size: 1.6rem; color: var(--amber-brand); }
.sf-exp-signal-grid span { font-family: var(--font-mono); font-size: .68rem; line-height: 1.5; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-foreground); }
.sf-exp-editor { max-width: 920px; }
.sf-exp-editor { counter-reset: evidence-finding; }
.sf-exp-editor h2 { max-width: 780px; margin: 0 0 1.25rem; font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 3.5rem); line-height: 1.06; letter-spacing: -0.045em; }
.sf-exp-editor h2 { display: grid; grid-template-columns: minmax(5.5rem, 8rem) minmax(0, 1fr); gap: 1rem; align-items: baseline; }
.sf-exp-editor h2::before { counter-increment: evidence-finding; content: "FINDING " counter(evidence-finding, decimal-leading-zero); color: var(--amber-brand); font-family: var(--font-mono); font-size: .62rem; font-weight: 500; letter-spacing: .14em; line-height: 1.5; text-transform: uppercase; }
.sf-exp-editor h2:not(:first-child) { margin-top: 5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.sf-exp-editor h3 { margin: 2.25rem 0 1rem; font-family: var(--font-mono); font-size: .78rem; line-height: 1.5; letter-spacing: .16em; text-transform: uppercase; color: var(--amber-brand); }
.sf-exp-editor h4 { margin: 0; font-family: var(--font-display); font-size: 1.25rem; line-height: 1.2; }
.sf-exp-editor p, .sf-exp-editor li { max-width: 780px; font-size: 1.125rem; line-height: 1.72; color: var(--muted-foreground); }
.sf-exp-editor p + p { margin-top: 1.1rem; }
.sf-exp-editor ul { margin: 1.5rem 0 0; padding-left: 0; list-style: none; border-left: 1px solid var(--border); }
.sf-exp-editor li { position: relative; padding: .15rem 0 .15rem 1.6rem; }
.sf-exp-editor li::before { content: '✓'; position: absolute; left: .45rem; color: var(--amber-brand); }
.sf-exp-editor .sf-article-section-heading { margin-top: 4rem; }
.sf-exp-editor .sf-checklist,
.sf-exp-editor .sf-evaluation-considerations,
.sf-exp-editor .sf-internal-links,
.sf-exp-editor .sf-source-list { margin: 1.5rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--border); border-left: 0; }
.sf-exp-editor .sf-checklist-item,
.sf-exp-editor .sf-evaluation-considerations-item,
.sf-exp-editor .sf-internal-links-item,
.sf-exp-editor .sf-source-list-item { position: relative; display: grid; grid-template-columns: 1.75rem minmax(0, 1fr); gap: .55rem; max-width: none; margin: 0; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.sf-exp-editor .sf-checklist-item::before,
.sf-exp-editor .sf-evaluation-considerations-item::before,
.sf-exp-editor .sf-internal-links-item::before,
.sf-exp-editor .sf-source-list-item::before { position: static; font-family: var(--font-mono); font-size: .72rem; line-height: 1.7; color: var(--amber-brand); }
.sf-exp-editor .sf-checklist-item::before { content: '✓'; }
.sf-exp-editor .sf-evaluation-considerations-item::before { content: '□'; }
.sf-exp-editor .sf-internal-links-item::before { content: '↗'; }
.sf-exp-editor .sf-source-list-item::before { content: '•'; }
.sf-exp-editor .sf-internal-links-item a,
.sf-exp-editor .sf-source-list-item a { text-underline-offset: 3px; }
.sf-exp-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 2.5rem; border: 1px solid var(--border); background: var(--border); }
.sf-exp-card-grid > div { position: relative; min-height: 190px; padding: 2rem; background: var(--card); }
.sf-exp-card-grid > div::before, .sf-exp-card-grid > div::after { content: ''; position: absolute; width: 12px; height: 12px; border-color: var(--amber-brand); opacity: .7; pointer-events: none; }
.sf-exp-card-grid > div::before { top: 0; left: 0; border-top: 1px solid; border-left: 1px solid; }
.sf-exp-card-grid > div::after { bottom: 0; right: 0; border-bottom: 1px solid; border-right: 1px solid; }
.sf-exp-card-grid p { margin: 1rem 0 0; font-size: 1rem; line-height: 1.62; }
.sf-exp-blog-index { margin-top: 4rem; }
.sf-exp-card-grid > a { position: relative; display: block; min-height: 190px; padding: 2rem; background: var(--card); color: var(--foreground); text-decoration: none; transition: background .2s ease, color .2s ease; }
.sf-exp-card-grid > a::before, .sf-exp-card-grid > a::after { content: ''; position: absolute; width: 12px; height: 12px; border-color: var(--amber-brand); opacity: .7; pointer-events: none; }
.sf-exp-card-grid > a::before { top: 0; left: 0; border-top: 1px solid; border-left: 1px solid; }
.sf-exp-card-grid > a::after { bottom: 0; right: 0; border-bottom: 1px solid; border-right: 1px solid; }
.sf-exp-card-grid > a:hover { background: var(--bg-2); color: var(--amber-brand); }
.sf-exp-card-grid > a .mono-label { display: inline-block; margin-top: 1.5rem; }
.sf-exp-related-wrap { padding-top: 5rem; padding-bottom: 5rem; }
.sf-exp-related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin-top: 2rem; }
.sf-exp-related-link { display: flex; align-items: center; justify-content: space-between; min-height: 92px; padding: 1.25rem; border: 1px solid var(--border); background: var(--card); color: var(--foreground); text-decoration: none; transition: border-color .2s ease, color .2s ease, transform .2s ease; }
.sf-exp-related-link strong { display: block; margin-top: .4rem; font-family: var(--font-display); font-size: 1.1rem; }
.sf-exp-related-link svg { color: var(--amber-brand); }
.sf-exp-related-link:hover { border-color: var(--amber-brand); color: var(--amber-brand); transform: translateY(-2px); }
@media (max-width: 760px) { .sf-exp-editor h2:not(:first-child) { margin-top: 3.5rem; } .sf-exp-editor h2 { grid-template-columns: 1fr; gap: .4rem; } .sf-exp-editor p, .sf-exp-editor li { font-size: 1rem; } .sf-exp-card-grid, .sf-exp-related { grid-template-columns: 1fr; } .sf-exp-card-grid > div, .sf-exp-card-grid > a { min-height: auto; padding: 1.5rem; } }
@media (max-width: 900px) { .sf-exp-telemetry { display: none; } .sf-exp-signal-grid { grid-template-columns: 1fr; } .sf-exp-signal-grid p, .sf-exp-signal-grid p:first-child { min-height: 58px; padding: .9rem 0; border-top: 1px solid var(--border); border-left: 0; } .sf-exp-signal-grid p:first-child { border-top: 0; } }

/* ---------- Light-mode surface normalization ---------- */
.sf-pillar:hover,
.sf-deploy-row:not(.is-header):hover,
.sf-feature-row:hover,
.sf-milestones .sf-milestone:hover,
.sf-compare-row:not(.is-header):hover { background: var(--accent); }

.sf-deploy,
.sf-traction,
.sf-stat,
.sf-flow-stage,
.sf-compare,
.sf-tier,
.sf-roi,
.sf-founder,
.sf-team-card,
.sf-regions,
.sf-booking-box { background: var(--card); }

.sf-deploy-label,
.sf-ctrl-term,
.sf-box-links a,
.sf-check-list li,
.sf-tick-list li,
.sf-compare-row .sf-cell-label,
.sf-tier-posture,
.sf-tier-features li,
.sf-roi-cell-value,
.sf-milestone p,
.sf-regions p:last-child,
.sf-demo-check-list li,
.sf-form-status { color: color-mix(in oklch, var(--foreground), transparent 15%); }

.sf-fig-caption,
.sf-roi-note,
.sf-roi-range-labels .mono-label,
.sf-roi-cell-note,
.sf-roi-disclaimer,
.sf-team-label,
.sf-form-field input::placeholder,
.sf-form-field textarea::placeholder { color: color-mix(in oklch, var(--foreground), transparent 60%); }

.sf-fw-icon,
.sf-step-card-top svg,
.sf-flow-stage-top svg,
.sf-check-dim,
.sf-chip.is-roadmap { color: color-mix(in oklch, var(--foreground), transparent 50%); }

.sf-minus-dim { color: color-mix(in oklch, var(--foreground), transparent 70%); }
.sf-tier:hover { border-color: color-mix(in oklch, var(--foreground), transparent 70%); }
.sf-flow-connector .sf-track,
.sf-flow-connector-v,
.sf-slider::-webkit-slider-runnable-track,
.sf-slider::-moz-range-track { background: color-mix(in oklch, var(--foreground), transparent 82%); }

/* Pricing ROI Estimator: high-contrast supporting data for light-mode review surfaces. */
.sf-roi { background: var(--card); border: 1px solid var(--border); }
.sf-roi-note { color: oklch(0.34 0.018 250); }
.sf-roi-value, .sf-roi-cell-value { color: var(--foreground); }
.sf-roi-input-head .mono-label,
.sf-roi-cell .mono-label { color: oklch(0.38 0.018 250); }
.sf-roi-range-labels .mono-label,
.sf-roi-cell-note,
.sf-roi-disclaimer { color: oklch(0.36 0.018 250); }
.sf-roi-cell { background: oklch(0.99 0.003 80); }
.sf-roi-cell.is-total { background: oklch(0.94 0.025 76.7); border-color: oklch(0.62 0.088 76.7 / 72%); }
.sf-roi-cell.is-total .mono-label, .sf-roi-cell.is-total .sf-roi-cell-value { color: oklch(0.46 0.088 76.7); }
.sf-slider::-webkit-slider-runnable-track, .sf-slider::-moz-range-track { background: oklch(0.45 0.018 250); }
.sf-slider::-webkit-slider-thumb, .sf-slider::-moz-range-thumb { background: var(--amber-brand); border-color: var(--foreground); box-shadow: 0 0 0 2px var(--card), 0 0 0 3px var(--amber-brand); }

/* Native WordPress ROI controls: render the visible completed segment on Chromium while preserving native Firefox progress. */
.sf-slider {
  --sf-roi-progress: 0%;
  background: transparent;
}
.sf-slider::-webkit-slider-runnable-track {
  background: linear-gradient(to right, var(--amber-brand) 0, var(--amber-brand) var(--sf-roi-progress), oklch(0.45 0.018 250) var(--sf-roi-progress), oklch(0.45 0.018 250) 100%);
}
.sf-slider::-webkit-slider-thumb {
  background: var(--card);
  border-color: var(--amber-brand);
  box-shadow: 0 0 0 1px oklch(0.19 0.014 250 / 35%);
}
.sf-slider::-moz-range-track { background: oklch(0.45 0.018 250); }
.sf-slider::-moz-range-progress { background: var(--amber-brand); }
.sf-slider::-moz-range-thumb {
  background: var(--card);
  border-color: var(--amber-brand);
  box-shadow: 0 0 0 1px oklch(0.19 0.014 250 / 35%);
}

/* Mobile legal pages: force the Contents index onto solid light-mode ink after WebKit's route stylesheet cascade. */
@media (max-width: 1023px) {
  body.page-template-page-legal .sf-legal-index-title,
  body.page-template-page-legal-php .sf-legal-index-title,
  body.page-template-page-legal .sf-legal-index-num,
  body.page-template-page-legal-php .sf-legal-index-num {
    color: #8a672f !important;
    opacity: 1 !important;
  }
  body.page-template-page-legal .sf-legal-index-list a,
  body.page-template-page-legal-php .sf-legal-index-list a {
    color: #27313a !important;
    opacity: 1 !important;
  }
}
