/* ==========================================================================
   Steel Bridge Solutions — Global Stylesheet
   Design system + components. Hand-authored, no framework.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --navy-900: #071A2C;
  --navy-800: #0B2239;
  --navy-700: #12344F;
  --navy-600: #1B4A6E;
  --blue-500: #2F6F98;
  --blue-400: #4A8FBD;
  --accent:   #1F82C8;
  --accent-dark: #16659E;

  /* Neutrals */
  --ink:      #101922;
  --body:     #4B5A68;
  --muted:    #63707D;
  --line:     #E2E8EE;
  --line-soft:#EDF1F5;
  --surface:  #F6F9FB;
  --surface-2:#EEF3F8;
  --white:    #FFFFFF;

  /* Type */
  --font-sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;

  --step-0:  clamp(1rem, 0.97rem + 0.14vw, 1.0625rem);
  --step-1:  clamp(1.125rem, 1.07rem + 0.27vw, 1.25rem);
  --step-2:  clamp(1.375rem, 1.28rem + 0.45vw, 1.625rem);
  --step-3:  clamp(1.625rem, 1.45rem + 0.86vw, 2.125rem);
  --step-4:  clamp(2rem, 1.68rem + 1.55vw, 2.875rem);
  --step-5:  clamp(2.375rem, 1.86rem + 2.45vw, 3.75rem);

  /* Space — 8px grid */
  --s-1: 4px;  --s-2: 8px;   --s-3: 12px;  --s-4: 16px;
  --s-5: 24px; --s-6: 32px;  --s-7: 40px;  --s-8: 48px;
  --s-9: 64px; --s-10: 80px; --s-11: 104px;

  --section-y: clamp(64px, 8vw, 112px);
  --radius:    8px;
  --radius-lg: 12px;
  --maxw:      1200px;
  --maxw-text: 68ch;

  --shadow-sm: 0 1px 1px rgba(16,25,34,.03), 0 2px 6px rgba(16,25,34,.04);
  --shadow-lg: 0 2px 4px rgba(16,25,34,.03), 0 12px 30px rgba(16,25,34,.06),
               0 32px 64px rgba(16,25,34,.07);

  --ease: cubic-bezier(.32, .72, 0, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --t-fast: .2s;
  --t-mid: .34s;
  --t-slow: .58s;
}

/* Cross-page fade in browsers that support it. Same-origin navigations only. */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: .5s; animation-timing-function: var(--ease-out); }

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

/* Anchor targets clear the sticky header when jumped to. */
:target { scroll-margin-top: 104px; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1, "cv11" 1;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5 {
  margin: 0 0 var(--s-4);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.008em;
  text-wrap: balance;
}

/* Serif display voice for the page-level headings; smaller headings and
   card titles stay in the sans so components read as UI, not prose. */
h1, h2 { font-family: var(--font-display); }
h3, h4, h5 { font-weight: 600; }

h1 { font-size: var(--step-5); letter-spacing: -0.012em; line-height: 1.12; }
h2 { font-size: var(--step-4); letter-spacing: -0.01em; line-height: 1.16; }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p  { margin: 0 0 var(--s-4); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--accent-dark); text-decoration: none;
  text-decoration-thickness: 1px; text-underline-offset: 3px;
  transition: color var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}
a:hover { text-decoration: underline; }

ul, ol { margin: 0 0 var(--s-4); padding-left: 1.25em; }
li { margin-bottom: var(--s-2); }
li:last-child { margin-bottom: 0; }

strong { color: var(--ink); font-weight: 600; }

hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-8) 0; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
  transition: outline-offset var(--t-fast) var(--ease);
}

::selection { background: var(--navy-800); color: #fff; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--navy-800); color: #fff;
  padding: var(--s-3) var(--s-5); border-radius: 0 0 var(--radius) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--s-5);
}
@media (min-width: 768px) { .container { padding-inline: var(--s-7); } }

.section { padding-block: var(--section-y); }
.section--surface {
  background: linear-gradient(180deg, #FBFCFE 0%, var(--surface) 42%, var(--surface-2) 100%);
}

.section-head { max-width: 760px; margin-bottom: var(--s-9); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { font-size: var(--step-1); color: var(--body); margin-bottom: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: 0.75rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--blue-500);
  margin-bottom: var(--s-4);
}
.eyebrow::before {
  content: ""; width: 24px; height: 1px; background: var(--blue-400);
}
.section-head--center .eyebrow::before { display: none; }

.lede { font-size: var(--step-1); color: var(--body); max-width: var(--maxw-text); }

.grid { display: grid; gap: var(--s-5); }
@media (min-width: 640px)  { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 640px)  { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px)  { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  padding: 13px 26px;
  font-size: 0.9375rem; font-weight: 600; line-height: 1.2;
  border: 1px solid transparent; border-radius: 4px;
  cursor: pointer; text-decoration: none;
  transition: background-color var(--t-mid) var(--ease), color var(--t-mid) var(--ease),
              border-color var(--t-mid) var(--ease),
              transform var(--t-mid) var(--ease-out),
              box-shadow var(--t-slow) var(--ease-out);
}
.btn:hover { text-decoration: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); transition-duration: .09s; }

.btn--primary {
  background: var(--accent); color: #fff; border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); box-shadow: var(--shadow-lg); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: #C6D4E0; background: var(--surface); box-shadow: var(--shadow-sm); }

.btn--sm { padding: 9px 18px; font-size: 0.875rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 0.9375rem; color: var(--accent-dark);
}
.link-arrow::after {
  content: "→"; transition: transform var(--t-mid) var(--ease-out); display: inline-block;
}
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover::after { transform: translateX(5px); }

/* --------------------------------------------------------------------------
   5. Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-mid) var(--ease),
              box-shadow var(--t-mid) var(--ease),
              background-color var(--t-mid) var(--ease);
}
.site-header.is-stuck { background: rgba(255,255,255,.86); }
.site-header.is-stuck {
  border-bottom-color: rgba(226,232,238,.9);
  box-shadow: 0 1px 2px rgba(16,25,34,.02), 0 10px 30px rgba(16,25,34,.05);
}

.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-6); min-height: 72px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand svg { width: 24px; height: 24px; }
.brand-name {
  display: flex; flex-direction: column; line-height: 1.1;
}
.brand-name b {
  font-size: 1rem; font-weight: 700; color: var(--ink); letter-spacing: -.02em;
}
.brand-name span {
  font-size: 0.625rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}

.nav-links { display: none; align-items: center; gap: var(--s-1); }
.nav-links a {
  padding: 8px 14px; border-radius: 10px;
  font-size: 0.9375rem; font-weight: 500; color: var(--body);
  transition: color var(--t-fast) var(--ease), background-color var(--t-mid) var(--ease);
}
.nav-links a:hover { color: var(--ink); background: var(--surface); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.nav-cta { display: none; }

@media (min-width: 1080px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; padding: 0;
  background: transparent; border: 1px solid var(--line);
  border-radius: 12px; cursor: pointer;
}
.nav-toggle {
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.nav-toggle:hover { border-color: var(--navy-600); background: var(--surface); }
.nav-toggle span {
  display: block; position: relative; width: 18px; height: 1.5px;
  background: var(--ink); border-radius: 2px;
  transition: background-color var(--t-fast) var(--ease);
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1.5px;
  background: var(--ink); border-radius: 2px;
  transition: transform var(--t-mid) var(--ease-out), top var(--t-mid) var(--ease-out);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* Animated open/close: the panel is a 0fr→1fr grid row, so it slides without
   needing a measured pixel height. Kept out of the tab order when closed. */
.mobile-menu {
  display: grid; grid-template-rows: 0fr;
  border-top: 1px solid transparent;
  background: #fff;
  opacity: 0; visibility: hidden;
  transition: grid-template-rows var(--t-slow) var(--ease-out),
              opacity var(--t-mid) var(--ease),
              border-color var(--t-slow) var(--ease),
              visibility var(--t-slow);
}
.mobile-menu > .container {
  overflow: hidden;
  padding-block: 0;
  transition: padding var(--t-slow) var(--ease-out);
}
.mobile-menu.is-open {
  grid-template-rows: 1fr; opacity: 1; visibility: visible;
  border-top-color: var(--line);
}
.mobile-menu.is-open > .container { padding-block: var(--s-5) var(--s-7); }
@media (min-width: 1080px) { .mobile-menu, .mobile-menu.is-open { display: none; } }

.mobile-menu a {
  display: block; padding: 12px 0;
  font-size: 1.0625rem; font-weight: 500; color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
  opacity: 0; transform: translateY(-6px);
  transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease-out),
              color var(--t-fast) var(--ease);
}
.mobile-menu.is-open a { opacity: 1; transform: none; }
.mobile-menu.is-open a:nth-child(1) { transition-delay: .06s; }
.mobile-menu.is-open a:nth-child(2) { transition-delay: .10s; }
.mobile-menu.is-open a:nth-child(3) { transition-delay: .14s; }
.mobile-menu.is-open a:nth-child(4) { transition-delay: .18s; }
.mobile-menu.is-open a:nth-child(5) { transition-delay: .22s; }
.mobile-menu.is-open a:nth-child(6) { transition-delay: .26s; }
.mobile-menu a:hover { text-decoration: none; color: var(--accent-dark); }
.mobile-menu .btn { margin-top: var(--s-5); width: 100%; }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
/* Compact page hero for interior pages */
.page-hero {
  background: linear-gradient(163deg, #0A2438 0%, var(--navy-900) 52%, #061626 100%);
  color: rgba(255,255,255,.76);
  padding-block: clamp(56px, 7vw, 96px);
  position: relative; overflow: hidden;
}
/* Split hero: copy on the left, diagram on the right. Stays the compact
   page-hero height rather than the full-bleed treatment. */
.split-grid { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 900px) {
  .split-grid { grid-template-columns: 1fr 1.05fr; gap: var(--s-8); }
}
.split-grid > * { min-width: 0; }
.split-art img { width: 100%; max-width: 620px; height: auto; margin-left: auto; }
/* The diagram belongs beside the heading, never stacked under it: below the
   two-column breakpoint it is dropped rather than pushed below the text. */
@media (max-width: 899px) { .split-art { display: none; } }

.page-hero--split h1 { font-size: var(--step-4); }

.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 520px at 84% 4%, rgba(47,111,152,.32), transparent 66%),
    radial-gradient(700px 460px at 6% 96%, rgba(31,130,200,.16), transparent 70%);
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; max-width: 20ch; }
.page-hero .eyebrow { color: var(--blue-400); }
.page-hero .eyebrow::before { background: rgba(74,143,189,.6); }
.page-hero p { font-size: var(--step-1); max-width: 62ch; margin-bottom: 0; }

/* --------------------------------------------------------------------------
   7. Cards
   -------------------------------------------------------------------------- */
.card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s-6);
  transition: border-color var(--t-slow) var(--ease), box-shadow var(--t-slow) var(--ease-out),
              transform var(--t-slow) var(--ease-out);
}
.card h3, .card h2 { font-size: var(--step-1); margin-bottom: var(--s-3); letter-spacing: -0.021em; }
.card p { font-size: 0.9375rem; margin-bottom: var(--s-4); }
.card .link-arrow { margin-top: auto; }

.card--hover:hover {
  border-color: #D3DFEA; box-shadow: var(--shadow-lg); transform: translateY(-6px);
}
.card--hover:hover .link-arrow::after { transform: translateX(4px); }

.card-media {
  position: relative;
  margin: calc(var(--s-6) * -1) calc(var(--s-6) * -1) var(--s-5);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--navy-800);
}
.card-media img { width: 100%; height: 100%; }
.card-media img {
  object-fit: cover;
  position: absolute; inset: 0;
}
/* The placeholder sits underneath; the photo covers it once it loads.
   A missing file simply never covers it. */
.card-media img[data-fade] { opacity: 0; }
.card-media img[data-fade].is-loaded { opacity: 1; }
.card-media img.is-missing { display: none; }


.card-media + .card-icon { margin-top: 0; }

.card-icon {
  width: 40px; height: 40px; margin-bottom: var(--s-5);
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; background: var(--surface-2); color: var(--navy-700);
  border: 1px solid var(--line);
}
.card-icon svg { width: 19px; height: 19px; }


/* Price on the homepage solution cards. Sits above the link, which is pinned
   to the bottom by .card .link-arrow { margin-top: auto }. */
.card-price {
  margin-top: var(--s-4); margin-bottom: 0;
  padding-top: var(--s-4); border-top: 1px solid var(--line);
  font-size: var(--step-1); font-weight: 700; color: var(--ink);
  letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}
.card-price-label {
  display: block;
  font-size: 0.6875rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 2px;
}

/* Feature list inside cards */
.tick-list { list-style: none; padding: 0; margin: 0 0 var(--s-4); }
.tick-list li {
  position: relative; padding-left: 26px; margin-bottom: 10px;
  font-size: 0.9375rem;
}
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   8. Solution detail blocks
   -------------------------------------------------------------------------- */
.detail {
  display: grid; gap: var(--s-7);
  padding-block: var(--s-9);
  border-top: 1px solid var(--line);
}
@media (min-width: 900px) {
  .detail { grid-template-columns: 0.9fr 1.1fr; gap: var(--s-10); }
}
.detail:first-of-type { border-top: 0; padding-top: 0; }

.detail-index {
  font-size: 0.75rem; font-weight: 700; letter-spacing: .14em;
  color: var(--blue-500); text-transform: uppercase; margin-bottom: var(--s-3);
}
.detail h2 { font-size: var(--step-3); margin-bottom: var(--s-4); }

.spec {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: var(--s-6);
}
.spec h3 {
  font-size: 0.75rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: var(--s-4); font-weight: 700;
}
.spec + .spec { margin-top: var(--s-4); }

.pill-row { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.pill {
  font-size: 0.8125rem; font-weight: 500; color: var(--navy-700);
  background: #fff; border: 1px solid var(--line);
  padding: 5px 12px; border-radius: 999px;
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

/* --------------------------------------------------------------------------
   8b. Pricing
   -------------------------------------------------------------------------- */
.price-block {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  background: var(--surface);
  padding: var(--s-5);
  margin-bottom: var(--s-5);
}
.price-label {
  font-size: 0.6875rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; margin-bottom: 6px;
}
.price-figure {
  font-size: var(--step-2); font-weight: 700; color: var(--ink);
  letter-spacing: -.02em; line-height: 1.2; margin-bottom: 6px;
}
.price-note { font-size: 0.875rem; color: var(--body); margin-bottom: var(--s-4); }
.price-running {
  font-size: 0.8125rem; color: var(--muted); margin: 0;
  padding-top: var(--s-4); border-top: 1px solid var(--line);
}


/* --------------------------------------------------------------------------
   9. Process timeline
   -------------------------------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 0; }
.step h2 { font-size: var(--step-2); letter-spacing: -0.021em; }
.step {
  display: grid; gap: var(--s-4);
  padding: var(--s-7) 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 860px) {
  .step h2 { font-size: var(--step-2); letter-spacing: -0.021em; }
.step { grid-template-columns: 88px 1fr 1fr; gap: var(--s-7); align-items: start; }
}
.step-num {
  font-size: var(--step-2); font-weight: 700; color: var(--line);
  letter-spacing: -.03em; line-height: 1;
}
.step h3 { font-size: var(--step-1); margin-bottom: var(--s-2); }
.step p { font-size: 0.9375rem; margin-bottom: 0; }

.step-deliverables {
  list-style: none; padding: 0; margin: 0;
  font-size: 0.875rem; color: var(--muted);
}
.step-deliverables li {
  padding: 7px 0; border-bottom: 1px dashed var(--line-soft); margin: 0;
}
.step-deliverables li:last-child { border-bottom: 0; }

/* --------------------------------------------------------------------------
   10. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: linear-gradient(180deg, #082034 0%, var(--navy-900) 100%); color: rgba(255,255,255,.58);
  padding-block: var(--s-7);
  font-size: 0.9375rem;
}
/* Slim footer: brand on one side, a single row of links on the other. */
.footer-slim {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: var(--s-5) var(--s-8);
}
.footer-slim .brand-name b { color: #fff; }
.footer-slim .brand-name span { color: rgba(255,255,255,.45); }

.footer-nav {
  display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-6);
  font-size: 0.9375rem;
}
.footer-nav a { color: rgba(255,255,255,.72); }
.footer-nav a:hover { color: #fff; }

.footer-bottom {
  margin-top: var(--s-6); padding-top: var(--s-5);
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-6);
  justify-content: space-between; align-items: center;
  font-size: 0.8125rem; color: rgba(255,255,255,.45);
}
.footer-bottom a { color: rgba(255,255,255,.6); }
.footer-bottom a:hover { color: #fff; }
/* strong defaults to --ink, which is invisible on the dark footer. */
.site-footer strong { color: rgba(255,255,255,.85); }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: var(--s-4); }

/* --------------------------------------------------------------------------
   11. Legal / long-form pages
   -------------------------------------------------------------------------- */
.legal-layout { display: grid; gap: var(--s-8); }
/* Grid items default to min-width:auto, so a wide table's min-content stretches
   the whole track and pushes the page sideways. Allowing them to shrink lets
   .table-scroll scroll internally, which is what it is there for. */
.legal-layout > * { min-width: 0; }
@media (min-width: 980px) {
  .legal-layout { grid-template-columns: 240px 1fr; gap: var(--s-10); align-items: start; }
}

.legal-toc {
  position: sticky; top: 96px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--s-5); background: var(--surface);
}
.legal-toc h2 {
  font-size: 0.6875rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; margin-bottom: var(--s-3);
}
.legal-toc ul { list-style: none; padding: 0; margin: 0; }
.legal-toc li { margin-bottom: 6px; }
.legal-toc a { font-size: 0.875rem; color: var(--body); }
.legal-toc a:hover { color: var(--accent-dark); }

.prose { max-width: var(--maxw-text); }
.prose h2 {
  font-size: var(--step-2); margin-top: var(--s-9); margin-bottom: var(--s-4);
  padding-top: var(--s-2);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--step-1); margin-top: var(--s-7); margin-bottom: var(--s-3); }
.prose ul, .prose ol { margin-bottom: var(--s-5); }
/* Tables: styled the same whether they sit in .prose or in a bare .table-scroll */
.prose table, .table-scroll table {
  width: 100%; border-collapse: collapse; margin-bottom: var(--s-5);
  font-size: 0.9375rem;
}
.prose th, .prose td,
.table-scroll th, .table-scroll td {
  text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.prose th, .table-scroll th {
  color: var(--ink); font-weight: 600; background: var(--surface);
}

/* Wide tables scroll inside their own container; the page body never does. */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: var(--s-5);
}
.table-scroll > table { min-width: 480px; margin-bottom: 0; }

.callout {
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  background: var(--surface); border-radius: var(--radius);
  padding: var(--s-5); margin-bottom: var(--s-5);
  font-size: 0.9375rem;
}
.callout strong { display: block; margin-bottom: var(--s-2); }


.meta-line {
  font-size: 0.875rem; color: var(--muted);
  padding-bottom: var(--s-5); border-bottom: 1px solid var(--line);
  margin-bottom: var(--s-7);
}

/* --------------------------------------------------------------------------
   12. Contact page
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; gap: var(--s-8); }
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 400px; gap: var(--s-10); align-items: start; }
}
.contact-panel {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--s-6); background: var(--surface);
}
.contact-panel dl { margin: 0; }
.contact-panel dt {
  font-size: 0.6875rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; margin-bottom: 4px;
}
.contact-panel dd {
  margin: 0 0 var(--s-5); color: var(--ink); font-weight: 500;
}
.contact-panel dd:last-child { margin-bottom: 0; }

/* Consultation form. Same grid as the contact page: form left, panel right. */
.consult-form { display: grid; gap: var(--s-6); align-content: start; }

.form-row { display: grid; gap: var(--s-6); }
@media (min-width: 640px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }

.form-field { display: grid; gap: var(--s-2); }
.form-field label, .form-field legend {
  font-size: 0.8125rem; font-weight: 700; letter-spacing: .04em;
  color: var(--ink);
}
.form-field legend { padding: 0; margin-bottom: var(--s-2); }
.form-optional {
  font-weight: 500; color: var(--muted); letter-spacing: 0;
  font-size: 0.8125rem;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit; font-size: 0.9375rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-mid) var(--ease-out);
}
.form-field textarea { resize: vertical; min-height: 10em; }
.form-field input:hover, .form-field textarea:hover { border-color: #C6D4E0; }
.form-field input:focus-visible, .form-field textarea:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 1px;
}

.form-hint { font-size: 0.875rem; color: var(--muted); margin: 0; }

fieldset.form-field { border: 0; padding: 0; margin: 0; min-width: 0; }
.form-checks { display: grid; gap: var(--s-2); }
@media (min-width: 640px) { .form-checks { grid-template-columns: 1fr 1fr; } }
.form-checks label {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  font-size: 0.9375rem; font-weight: 500; color: var(--body);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.form-checks label:hover { border-color: #C6D4E0; background: var(--surface); }
.form-checks input[type="checkbox"] {
  width: 17px; height: 17px; margin: 0; flex-shrink: 0;
  accent-color: var(--accent-dark);
}
.form-checks label:has(input:checked) {
  border-color: var(--blue-400); background: var(--surface); color: var(--ink);
}

.form-actions { display: grid; gap: var(--s-4); justify-items: start; }
.form-note { font-size: 0.8125rem; color: var(--muted); max-width: 52ch; margin: 0; }

/* Honeypot: present in the DOM for bots, invisible and untabbable for people. */
.form-trap {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* Submission status. Hidden until the handler redirects to #sent/#send-failed
   (no JavaScript) or scripting reveals it with .is-shown. */
.form-status { display: none; padding: var(--s-5); border-radius: var(--radius); font-size: 0.9375rem; }
.form-status:target, .form-status.is-shown { display: block; }
.form-status--ok  { background: #EFF7F0; border: 1px solid #BCDCC3; color: #1D4A28; }
.form-status--ok strong  { color: #1D4A28; }
.form-status--err { background: #FBF1F0; border: 1px solid #E8C4C0; color: #7A2E27; }
.form-status--err strong { color: #7A2E27; }
.form-status a { color: inherit; text-decoration: underline; }

/* --------------------------------------------------------------------------
   13. 404
   -------------------------------------------------------------------------- */
.error-page {
  min-height: 62vh; display: flex; align-items: center;
  text-align: center; padding-block: var(--s-10);
}
.error-code {
  font-size: clamp(4rem, 12vw, 7rem); font-weight: 800; line-height: 1;
  color: var(--line); letter-spacing: -.05em; margin-bottom: var(--s-5);
}

/* --------------------------------------------------------------------------
   14. Scroll reveal
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0; transform: translateY(16px) scale(.994);
  filter: blur(4px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out),
              filter .9s var(--ease-out);
  will-change: opacity, transform, filter;
}
[data-reveal].is-visible { filter: blur(0); }
[data-reveal].is-visible { opacity: 1; transform: none; will-change: auto; }

/* Images settle in rather than snapping once decoded. */
img[data-fade] { opacity: 0; transition: opacity .7s var(--ease); }
img[data-fade].is-loaded { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  img[data-fade] { opacity: 1; }
  .mobile-menu a { opacity: 1; transform: none; }
  .btn:hover, .card--hover:hover { transform: none; }
  @view-transition { navigation: none; }
}

/* --------------------------------------------------------------------------
   15. Utilities
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.note-inline { font-size: 0.8125rem; color: var(--muted); }
.mb-0 { margin-bottom: 0 !important; }
.mt-6 { margin-top: var(--s-6); }
.mt-8 { margin-top: var(--s-8); }

/* --------------------------------------------------------------------------
   16. Print
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .nav-toggle, .legal-toc { display: none; }
  body { color: #000; font-size: 11pt; }
  a::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
  .page-hero { background: none; color: #000; padding-block: 0 24px; }
  .page-hero h1 { color: #000; }
}


/* --------------------------------------------------------------------------
   17. Smoothing pass — consistent easing, soft edges, gentle hover states
   -------------------------------------------------------------------------- */
html { scrollbar-color: #C8D5E1 transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: #CFDAE5; border-radius: 999px; border: 3px solid #fff;
  transition: background-color var(--t-mid) var(--ease);
}
::-webkit-scrollbar-thumb:hover { background: #B4C4D3; }

.card-media img { transition: transform .9s var(--ease-out), opacity .7s var(--ease); }
.card--hover:hover .card-media img { transform: scale(1.035); }

.card-icon {
  transition: background-color var(--t-mid) var(--ease), color var(--t-mid) var(--ease),
              border-color var(--t-mid) var(--ease), transform var(--t-mid) var(--ease-out);
}
.card--hover:hover .card-icon {
  background: var(--navy-800); border-color: var(--navy-800); color: #fff;
  transform: translateY(-1px);
}

.pill:hover { border-color: #C6D4E0; color: var(--navy-600); }

.spec, .contact-panel, .legal-toc, .callout, .price-block {
  transition: border-color var(--t-slow) var(--ease), box-shadow var(--t-slow) var(--ease-out);
}
.spec:hover, .contact-panel:hover { box-shadow: var(--shadow-sm); }

.footer-nav a, .footer-bottom a, .legal-toc a, .mobile-menu a {
  transition: color var(--t-mid) var(--ease);
}

.prose tbody tr, .table-scroll tbody tr {
  transition: background-color var(--t-fast) var(--ease);
}
.prose tbody tr:hover, .table-scroll tbody tr:hover { background: var(--surface); }
.prose table, .table-scroll table { border-radius: var(--radius); overflow: hidden; }

.section-head p, .prose p, .lede, .card p { text-wrap: pretty; }

.step, .detail { border-top-color: var(--line-soft); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { filter: none; transform: none; }
  .card--hover:hover .card-media img { transform: none; }
}


/* --------------------------------------------------------------------------
   14. 2026 refresh — homepage hero, payment band, CTA band, dark price block
   -------------------------------------------------------------------------- */

/* Ghost button on dark surfaces */
.btn--ghost-dark { background: transparent; color: #C9D9E6; border-color: #2A4A66; }
.btn--ghost-dark:hover { border-color: #4FA3D9; color: #fff; background: rgba(79,163,217,.08); }

/* Hero: line-art bridge behind the copy */
.hero-art {
  position: absolute; right: -70px; top: 24px;
  opacity: .5; pointer-events: none;
}
@media (max-width: 979px) { .hero-art { display: none; } }

.hero-sub { color: rgba(255,255,255,.72); }

.hero-trust {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-8);
  border-top: 1px solid var(--navy-700);
  margin-top: var(--s-8); padding-top: var(--s-5);
}
.hero-trust li {
  display: flex; align-items: center; gap: 10px;
  list-style: none; margin: 0;
  color: #C9D9E6; font-size: 0.9063rem;
}
.hero-trust svg { flex-shrink: 0; }
ul.hero-trust { padding-left: 0; margin-bottom: 0; }

/* Payment milestones band */
.pay-band { background: var(--navy-800); color: #A9BFD1; }
.pay-band h2 { color: #fff; }
.pay-band .eyebrow { color: var(--blue-400); }
.pay-band .eyebrow::before { background: rgba(74,143,189,.6); }
.pay-grid { display: grid; gap: var(--s-8); align-items: start; }
@media (min-width: 900px) { .pay-grid { grid-template-columns: 5fr 7fr; gap: var(--s-10); } }
.pay-rows { display: flex; flex-direction: column; gap: var(--s-3); }
.pay-row {
  display: grid; grid-template-columns: 84px 1fr; gap: var(--s-5); align-items: center;
  background: #0F2B44; border: 1px solid var(--navy-600);
  border-radius: var(--radius); padding: var(--s-5) var(--s-6);
}
.pay-row-share {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.875rem; color: var(--blue-400); line-height: 1;
}
.pay-row h3 { color: #fff; font-size: 1rem; margin-bottom: 4px; }
.pay-row p { color: #A9BFD1; font-size: 0.9063rem; margin-bottom: 0; }

/* Closing CTA band */
.cta-band { text-align: center; }
.cta-band .container { display: flex; flex-direction: column; align-items: center; gap: var(--s-4); }
.cta-band h2 { margin-bottom: 0; }
.cta-band p { max-width: 640px; font-size: var(--step-1); margin-bottom: var(--s-2); }

/* Dark pricing block (voice agent maintenance plan) */
.price-block--dark {
  background: var(--navy-800);
  border-color: var(--navy-800);
  border-left-color: var(--accent);
}
.price-block--dark .price-label { color: var(--blue-400); }
.price-block--dark .price-figure { color: #fff; }
.price-block--dark .price-note { color: #A9BFD1; }
.price-block--dark .price-running { color: #A9BFD1; border-top-color: var(--navy-700); }
.price-block--dark .price-running strong { color: #fff; }
