/* ==========================================================================
   StoneBrite Solutions corporate theme
   Palette: deep navy + white, brand orange (from logo) as restrained accent.
   ========================================================================== */

:root {
  --navy-900: #0b1626;
  --navy-800: #0f1f35;
  --navy-700: #16294a;
  --navy-600: #22375c;
  --ink: #142033;
  --text: #2b3647;
  --muted: #5d6a7c;
  --line: #e2e7ee;
  --line-strong: #cfd6e0;
  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --accent: #e2691a;
  --accent-600: #c8570e;
  --accent-50: #fdf1e8;
  --blue: #1f5aa6;
  --success: #1f7a4d;
  --warn: #a8660b;
  --danger: #b4332b;

  --radius: 4px;
  --radius-lg: 6px;
  --shadow-sm: 0 1px 2px rgba(15, 31, 53, .06);
  --shadow: 0 4px 16px rgba(15, 31, 53, .08);
  --shadow-lg: 0 12px 40px rgba(15, 31, 53, .16);

  --container: 1200px;
  --gutter: 24px;
  --header-h: 76px;

  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 1em; }
ul, ol.process, ol.steps { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 1000; }
.skip-link:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius);
  font: 600 15px/1.2 var(--font); border: 1px solid transparent;
  cursor: pointer; transition: background .15s, border-color .15s, color .15s;
  text-decoration: none !important; white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-600); }
.btn-dark { background: var(--navy-800); color: #fff; }
.btn-dark:hover { background: var(--navy-600); }
.btn-outline { border-color: var(--line-strong); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost-light { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.link-arrow { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; color: var(--blue); }
.link-arrow svg { width: 14px; height: 14px; transition: transform .15s; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--navy-900); color: #b8c3d3; font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 16px; }
.topbar a { color: #dfe6ef; }
.topbar-items { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar-items span, .topbar-items a { display: inline-flex; align-items: center; gap: 6px; }
.topbar svg { width: 14px; height: 14px; opacity: .8; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff; border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: var(--shadow); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand img { height: 54px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink); font-weight: 500; font-size: 15px;
  padding: 8px 14px; border-radius: var(--radius); position: relative;
}
.nav a:hover { text-decoration: none; background: var(--bg-alt); }
.nav a[aria-current="page"] { color: var(--accent-600); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -19px; height: 3px; background: var(--accent);
}
.header-cta { margin-left: 12px; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-strong); border-radius: var(--radius);
  width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #d6deea; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(11,22,38,.0) 0%, rgba(11,22,38,.0) 100%),
    var(--navy-800);
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; padding-top: 88px; padding-bottom: 88px; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: #f39a5b; }
.hero .lead { font-size: 1.15rem; color: #c3cedc; max-width: 600px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-600); margin-bottom: 14px;
}
.hero .eyebrow, .on-dark .eyebrow { color: #f39a5b; }

.hero-panel {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg);
  padding: 28px;
}
.hero-panel h2 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #9fb0c6; font-weight: 600; margin-bottom: 18px; }
.fact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12); }
.fact { background: var(--navy-800); padding: 18px; }
.fact strong { display: block; font-size: 1.9rem; color: #fff; font-weight: 600; line-height: 1.1; }
.fact span { font-size: 13.5px; color: #a9b7c9; }
.hero-panel .panel-foot { margin-top: 18px; font-size: 13.5px; color: #a9b7c9; display: flex; gap: 10px; align-items: flex-start; }
.hero-panel .panel-foot svg { width: 18px; height: 18px; flex: none; color: #f39a5b; margin-top: 2px; }

/* Inner page hero */
.page-hero { background: var(--navy-800); color: #c3cedc; position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; opacity: .45;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(90deg, transparent 20%, #000 80%);
  -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 80%);
}
.page-hero .container { position: relative; padding-top: 56px; padding-bottom: 64px; }
.page-hero h1 { color: #fff; max-width: 820px; }
.page-hero p { font-size: 1.12rem; max-width: 720px; margin: 0; }
.breadcrumb { display: flex; gap: 8px; font-size: 13.5px; color: #93a4ba; margin-bottom: 22px; flex-wrap: wrap; }
.breadcrumb a { color: #c3cedc; }
.breadcrumb span[aria-hidden] { opacity: .5; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section.alt { background: var(--bg-alt); }
.section.on-dark { background: var(--navy-800); color: #c3cedc; }
.on-dark h2, .on-dark h3, .on-dark h4 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.on-dark .section-head p { color: #a9b7c9; }
.split-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.split-head .section-head { margin-bottom: 0; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Cards */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s;
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }
.card .link-arrow { margin-top: auto; padding-top: 8px; }
.icon-box {
  width: 48px; height: 48px; border-radius: var(--radius); background: var(--accent-50); color: var(--accent-600);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 20px; flex: none;
}
.icon-box svg { width: 24px; height: 24px; }
.on-dark .icon-box { background: rgba(243,154,91,.12); color: #f39a5b; }
.check-list { list-style: none; margin: 4px 0 20px; display: grid; gap: 8px; }
.check-list li { position: relative; padding-left: 24px; font-size: 14.5px; color: var(--text); }
.check-list li::before {
  content: ""; position: absolute; left: 2px; top: 7px; width: 12px; height: 7px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.on-dark .check-list li { color: #c3cedc; }

.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 18px; }
.tag { font-size: 12.5px; padding: 3px 9px; border-radius: 3px; background: var(--bg-alt); border: 1px solid var(--line); color: var(--muted); font-weight: 500; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.live { color: var(--success); }
.status.beta { color: var(--warn); }
.status.research { color: var(--blue); }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 12px; }
.card-kicker { font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 6px 0 18px; }
.metric-row div { padding: 12px 0; }
.metric-row strong { display: block; font-size: 1.35rem; color: var(--ink); font-weight: 600; }
.metric-row span { font-size: 12.5px; color: var(--muted); }

/* Stats band */
.stats-band { background: var(--navy-900); color: #a9b7c9; }
.stats-band .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 40px 24px; border-left: 1px solid rgba(255,255,255,.08); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong { display: block; color: #fff; font-size: 2.4rem; font-weight: 600; line-height: 1.1; margin-bottom: 4px; }
.stat strong small { color: #f39a5b; font-size: .7em; margin-left: 2px; }
.stat span { font-size: 14.5px; }

/* Feature (alternating) rows */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.feature-row + .feature-row { margin-top: 0; }
.service-block { padding: 88px 0; border-bottom: 1px solid var(--line); }
.service-block:nth-of-type(even) { background: var(--bg-alt); }
.service-num { font-family: var(--mono); font-size: 13px; color: var(--accent-600); font-weight: 600; letter-spacing: .06em; margin-bottom: 10px; display: block; }
.sub-features { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; margin-top: 28px; }
.sub-features h4 { margin-bottom: 6px; }
.sub-features p { font-size: 15px; color: var(--muted); margin: 0; }

.spec-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.spec-panel header { padding: 16px 22px; border-bottom: 1px solid var(--line); background: var(--bg-alt); font-weight: 600; color: var(--ink); font-size: 14.5px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 22px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th { color: var(--muted); font-weight: 500; width: 38%; }
.spec-table td { color: var(--ink); }
.spec-panel .panel-metrics { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.spec-panel .panel-metrics div { padding: 18px 22px; }
.spec-panel .panel-metrics div + div { border-left: 1px solid var(--line); }
.spec-panel .panel-metrics strong { display: block; font-size: 1.6rem; color: var(--ink); font-weight: 600; }
.spec-panel .panel-metrics span { font-size: 13px; color: var(--muted); }
.spec-panel .note { padding: 12px 22px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); margin: 0; }

/* Report (eval sample) */
.report-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.report-table td { padding: 11px 22px; border-bottom: 1px solid var(--line); }
.report-table td:last-child { text-align: right; font-family: var(--mono); font-weight: 600; color: var(--ink); }
.pill { display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: 12px; font-weight: 600; font-family: var(--font); }
.pill.ok { background: #e6f4ec; color: var(--success); }
.pill.warn { background: #fbf0dc; color: var(--warn); }
.pill.bad { background: #fbe7e5; color: var(--danger); }

/* Process */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; border-top: 2px solid var(--line); }
.process li { list-style: none; padding: 28px 24px 0 0; position: relative; }
.process li::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: -2px; left: 0; width: 48px; border-top: 2px solid var(--accent);
  padding-top: 10px; font-family: var(--mono); font-size: 13px; color: var(--accent-600); font-weight: 600;
}
.process h3 { margin-top: 16px; font-size: 1.1rem; }
.process p { font-size: 15px; color: var(--muted); }

/* Logos / stack strip */
.stack-groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.stack-groups > div { background: #fff; padding: 22px; }
.stack-groups h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 10px; }
.stack-groups p { margin: 0; color: var(--ink); font-size: 14.5px; line-height: 1.8; }

/* Industries */
.industry-list { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.industry-list div { background: #fff; padding: 24px 16px; text-align: center; font-weight: 600; color: var(--ink); font-size: 15px; }
.industry-list svg { width: 28px; height: 28px; color: var(--accent-600); margin: 0 auto 10px; display: block; }

/* Product feature (Sift) on homepage */
.product-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.product-feature .pf-body { padding: 48px; }
.product-feature .pf-side { background: var(--navy-800); color: #c3cedc; padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.pf-side h3 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 18px; }
.task-list { list-style: none; display: grid; gap: 10px; }
.task-list li { border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 12px 14px; font-size: 14.5px; background: rgba(255,255,255,.03); }

/* Session log (Sift) */
.session { background: var(--navy-900); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--navy-600); color: #c3cedc; font-size: 14px; }
.session header { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--navy-600); font-family: var(--mono); font-size: 13px; color: #93a4ba; }
.session header .status { color: #5fd39a; }
.session ol { list-style: none; margin: 0; padding: 8px 0; }
.session li { display: grid; grid-template-columns: 74px 1fr; gap: 12px; padding: 9px 18px; }
.session li b { font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: #f39a5b; font-weight: 600; padding-top: 2px; }
.session footer { border-top: 1px solid var(--navy-600); padding: 12px 18px; font-family: var(--mono); font-size: 13px; color: #5fd39a; }

/* Comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 15px; }
.compare th, .compare td { padding: 14px 20px; border-bottom: 1px solid var(--line); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { background: var(--bg-alt); color: var(--ink); font-weight: 600; font-size: 14px; }
.compare thead th.hl { background: var(--navy-800); color: #fff; }
.compare td.hl { background: #fbfcfd; font-weight: 600; }
.compare tr:last-child td { border-bottom: 0; }
.y { color: var(--success); font-weight: 700; }
.n { color: var(--danger); font-weight: 700; }
.p { color: var(--warn); font-weight: 600; font-size: 13.5px; }
.table-note { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* Case studies */
.case { padding: 72px 0; border-bottom: 1px solid var(--line); }
.case:nth-of-type(even) { background: var(--bg-alt); }
.case-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 28px; }
.case-head h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); max-width: 760px; margin-bottom: 8px; }
.case-meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.case-intro { font-size: 1.08rem; max-width: 860px; color: var(--text); }
.case-body { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; margin-top: 24px; }
.cso { display: grid; gap: 24px; }
.cso h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-600); margin-bottom: 6px; }
.cso p { margin: 0; }
.case-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; align-self: start; }
.case-metrics div { background: #fff; padding: 20px; }
.case-metrics strong { display: block; font-size: 1.6rem; color: var(--ink); font-weight: 600; line-height: 1.15; }
.case-metrics span { font-size: 13px; color: var(--muted); }
.case-aside { display: grid; gap: 18px; align-content: start; }
.case-aside .tag-row { margin: 0; }
.case-toc { display: flex; flex-wrap: wrap; gap: 8px; }
.case-toc a { border: 1px solid var(--line-strong); padding: 7px 14px; border-radius: var(--radius); font-size: 14px; color: var(--ink); background: #fff; }
.case-toc a:hover { border-color: var(--ink); text-decoration: none; }
.disclaimer { font-size: 13px; color: var(--muted); }

/* Timeline */
.timeline { list-style: none; position: relative; margin: 0; padding: 0; }
.timeline::before { content: ""; position: absolute; left: 88px; top: 6px; bottom: 6px; width: 1px; background: var(--line-strong); }
.timeline li { display: grid; grid-template-columns: 88px 1fr; gap: 36px; padding-bottom: 32px; position: relative; }
.timeline li::after { content: ""; position: absolute; left: 83px; top: 7px; width: 11px; height: 11px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); }
.timeline time { font-weight: 600; color: var(--ink); font-family: var(--mono); font-size: 14px; padding-top: 1px; }
.timeline h3 { font-size: 1.08rem; margin-bottom: 4px; }
.timeline p { color: var(--muted); margin: 0; font-size: 15px; }

blockquote.mission { margin: 0; padding: 0 0 0 28px; border-left: 3px solid var(--accent); font-size: 1.3rem; line-height: 1.55; color: var(--ink); }
blockquote.mission footer { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* CTA band */
.cta-band { background: var(--navy-800); color: #c3cedc; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 64px; padding-bottom: 64px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { margin: 0; max-width: 620px; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 14px; color: var(--ink); }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 15px; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: #fff; color: var(--ink); width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,90,166,.15); }
.field .err { font-size: 13px; color: var(--danger); display: none; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--danger); }
.field.invalid .err { display: block; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--accent); flex: none; }
.check.invalid span { color: var(--danger); }
.form-status { margin-top: 16px; padding: 12px 14px; border-radius: var(--radius); font-size: 14.5px; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: #e6f4ec; color: var(--success); }
.form-status.bad { background: #fbe7e5; color: var(--danger); }
.contact-info { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.contact-info .row { display: flex; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.contact-info .row:last-child { border-bottom: 0; }
.contact-info .row svg { width: 22px; height: 22px; color: var(--accent-600); flex: none; margin-top: 2px; }
.contact-info h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 4px; }
.contact-info p { margin: 0; color: var(--ink); }
.steps { list-style: none; display: grid; gap: 16px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; font-size: 15px; }
.steps li::before { counter-increment: s; content: counter(s); width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; font-weight: 600; color: var(--ink); background: #fff; }

/* Legal pages */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.4rem; margin-top: 2em; }
.legal h3 { margin-top: 1.5em; }
.legal ul { padding-left: 1.3em; margin-bottom: 1em; }
.legal li { margin-bottom: .4em; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 1em 0 1.5em; }
.legal th, .legal td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal th { background: var(--bg-alt); color: var(--ink); }
.legal .updated { color: var(--muted); font-size: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #93a4ba; font-size: 14.5px; }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.footer-brand .wordmark { font-size: 1.25rem; font-weight: 700; color: #fff; letter-spacing: .02em; display: block; margin-bottom: 4px; }
.footer-brand .wordmark span { color: #f39a5b; }
.footer-brand p { margin: 12px 0 0; max-width: 300px; }
.site-footer h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px; }
.site-footer ul { list-style: none; display: grid; gap: 9px; }
.site-footer a { color: #c3cedc; }
.site-footer a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; }
.footer-contact svg { width: 16px; height: 16px; flex: none; margin-top: 4px; color: #f39a5b; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 20px; padding-bottom: 20px; flex-wrap: wrap; font-size: 13.5px; }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: #c3cedc; cursor: pointer; }
.linklike:hover { color: #fff; text-decoration: underline; }

/* ---------- Cookie consent ---------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
  background: #fff; border-top: 1px solid var(--line-strong); box-shadow: 0 -8px 30px rgba(15,31,53,.12);
  transform: translateY(110%); transition: transform .3s ease;
}
.cookie-banner.show { transform: none; }
.cookie-banner .container { display: flex; gap: 32px; align-items: center; justify-content: space-between; padding-top: 22px; padding-bottom: 22px; }
.cookie-banner h2 { font-size: 1.05rem; margin-bottom: 4px; }
.cookie-banner p { margin: 0; font-size: 14.5px; color: var(--muted); max-width: 760px; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; flex: none; }

.cookie-modal { position: fixed; inset: 0; z-index: 950; display: none; align-items: center; justify-content: center; padding: 16px; }
.cookie-modal.show { display: flex; }
.cookie-modal .backdrop { position: absolute; inset: 0; background: rgba(11,22,38,.55); }
.cookie-dialog { position: relative; background: #fff; border-radius: var(--radius-lg); width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow: auto; box-shadow: var(--shadow-lg); }
.cookie-dialog header { padding: 22px 26px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.cookie-dialog header h2 { font-size: 1.15rem; margin: 0; }
.cookie-dialog .close { background: none; border: 0; cursor: pointer; color: var(--muted); padding: 4px; }
.cookie-dialog .close svg { width: 20px; height: 20px; }
.cookie-dialog .body { padding: 8px 26px 4px; }
.cookie-dialog .intro { font-size: 14.5px; color: var(--muted); margin: 14px 0 8px; }
.cookie-cat { border-bottom: 1px solid var(--line); padding: 16px 0; }
.cookie-cat:last-child { border-bottom: 0; }
.cookie-cat .row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.cookie-cat h3 { font-size: 15px; margin: 0; }
.cookie-cat p { font-size: 13.5px; color: var(--muted); margin: 6px 0 0; }
.cookie-cat .always { font-size: 13px; font-weight: 600; color: var(--success); }
.cookie-dialog footer { padding: 18px 26px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

.switch { position: relative; width: 44px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 100%; height: 100%; position: absolute; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch .track { position: absolute; inset: 0; background: var(--line-strong); border-radius: 999px; transition: background .15s; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(20px); }
.switch input:focus-visible + .track { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .cookie-banner { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid-4, .stack-groups { grid-template-columns: repeat(2, 1fr); }
  .industry-list { grid-template-columns: repeat(3, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
}
@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; background: #fff;
    flex-direction: column; align-items: stretch; padding: 16px var(--gutter); gap: 0;
    transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; border-top: 1px solid var(--line);
  }
  .nav.open { transform: none; }
  .nav a { padding: 15px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 16px; }
  .nav a[aria-current="page"]::after { display: none; }
  .header-cta { margin: 20px 0 0; justify-content: center; }
  .hero .container, .feature-row, .contact-grid, .case-body, .product-feature { grid-template-columns: 1fr; }
  .hero .container { gap: 40px; padding-top: 64px; padding-bottom: 64px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats-band .container { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat { border-top: 1px solid rgba(255,255,255,.08); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .feature-row { gap: 40px; }
  .cookie-banner .container { flex-direction: column; align-items: stretch; gap: 16px; }
  .product-feature .pf-body { padding: 32px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .section, .service-block { padding: 60px 0; }
  .case { padding: 52px 0; }
  .grid-2, .grid-3, .grid-4, .stack-groups, .sub-features, .form-grid { grid-template-columns: 1fr; }
  .industry-list { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr; gap: 32px; }
  .process { grid-template-columns: 1fr; }
  .topbar .hide-sm { display: none; }
  .brand img { height: 38px; }
  .form-card { padding: 24px; }
  .timeline::before { left: 6px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; padding-left: 30px; }
  .timeline li::after { left: 1px; }
  .cookie-actions .btn { flex: 1 1 auto; justify-content: center; }
  .stat strong { font-size: 2rem; }
  .product-feature .pf-body, .product-feature .pf-side { padding: 24px; }
}
