/* ==========================================================
   SNL Customer Offerings -- public brochure (/snl/, /snl/offerings/*)
   Static presentation only: no web fonts, no remote assets, no script.
   Colours and radii follow the SNL Customer Portal's tokens
   (apps/snl-customer-portal/public/styles/tokens.css). The left
   navigation echoes the portal's; this is a public brochure, so it is
   labelled "Customer Offerings" and never "Customer Portal".
   Minimum rendered text 12px; every text pair checked for WCAG AA.
   ========================================================== */

:root {
  --g-900: #163f1d; --g-800: #1f5f2a; --g-700: #2b7a34; --g-600: #3a9140;
  --g-500: #62b33e; --g-200: #cfe9bd; --g-100: #e6f4dc; --g-50: #f3faee;
  --lime: #d6eea6;
  --ink-900: #14201a; --ink-700: #34423a; --ink-600: #4b5a52; --ink-500: #5f6d65;
  --line: #dde3de; --line-soft: #ebefec;
  --surface: #fff; --canvas: #f5f7f4; --warm: #f7f6f0;
  --info-bg: #e8f0fb; --info-fg: #24508f;
  --prog-bg: #eef2ff; --prog-fg: #3b3f99;
  --ok-bg: #e6f4dc;   --ok-fg: #2b6a22;
  --warn-bg: #fdf1dc; --warn-fg: #7a5413;
  --neutral-bg: #eef1ee; --neutral-fg: #4b5a52;
  --radius: 10px; --radius-lg: 14px;
  --shadow: 0 1px 3px rgba(20, 32, 26, .08), 0 4px 12px rgba(20, 32, 26, .05);
  --shadow-lg: 0 18px 44px rgba(8, 28, 12, .22);
  --focus: #1f6fe0;
  --topbar-h: 72px; --sidebar-w: 256px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--warm); color: var(--ink-900); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--g-800); }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
i { font-style: normal; }

a:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.sidebar a:focus-visible, .hero a:focus-visible, .site-footer a:focus-visible { outline-color: var(--lime); }

.skip-link { position: absolute; top: -100px; left: 16px; z-index: 50; padding: 12px 16px; border-radius: 6px; background: var(--surface); color: var(--ink-900); font-weight: 700; }
.skip-link:focus { top: 12px; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }

/* ---------- buttons, badges, tags ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 8px; border: 1px solid transparent;
  font-size: 16px; font-weight: 700; line-height: 1.2; text-decoration: none;
  transition: background-color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 42px; padding: 9px 16px; font-size: 15px; }
.btn-primary { background: var(--g-800); color: #fff; }
.btn-primary:hover { background: var(--g-900); }
.btn-lime { background: var(--lime); color: var(--g-900); }
.btn-lime:hover { background: #e6f6c6; }
.btn-ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: #fff; }
.btn-outline { border-color: var(--g-800); color: var(--g-800); background: var(--surface); }
.btn-outline:hover { background: var(--g-50); }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1.4; white-space: nowrap; }
.badge-ok { background: var(--ok-bg); color: var(--ok-fg); }
.badge-pilot { background: var(--info-bg); color: var(--info-fg); }
.badge-planned { background: var(--warn-bg); color: var(--warn-fg); }
.badge-neutral { background: var(--neutral-bg); color: var(--neutral-fg); }
.tag-demo { display: inline-block; margin-right: 6px; padding: 2px 8px; border-radius: 4px; background: var(--warn-bg); color: var(--warn-fg); font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.chip { display: inline-block; flex: none; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.chip-ok { background: var(--ok-bg); color: var(--ok-fg); }
.chip-info { background: var(--info-bg); color: var(--info-fg); }
.chip-prog { background: var(--prog-bg); color: var(--prog-fg); }
.chip-warn { background: var(--warn-bg); color: var(--warn-fg); }
.chip-neutral { background: var(--neutral-bg); color: var(--neutral-fg); }

/* ---------- shell: top bar ---------- */

.topbar { position: relative; z-index: 20; display: flex; align-items: center; gap: 16px; min-height: var(--topbar-h); padding: 0 24px; background: var(--surface); border-bottom: 1px solid var(--line); }
.brand img { width: 142px; }
.topbar-title { padding-left: 16px; border-left: 1px solid var(--line); font-size: 17px; font-weight: 700; color: var(--g-900); }
.topbar-actions { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.topbar-link { font-size: 15px; font-weight: 600; color: var(--ink-700); text-decoration: none; }
.topbar-link:hover { color: var(--g-800); text-decoration: underline; text-underline-offset: 5px; }

/* ---------- shell: sidebar ---------- */

.layout { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); align-items: start; }
.sidebar {
  position: sticky; top: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  min-height: calc(100vh - var(--topbar-h)); max-height: 100vh; overflow-y: auto;
  padding: 22px 14px; background: var(--g-900); color: #d7e6d9;
}
.side-nav .nav-group { margin: 18px 12px 6px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #a6c8ab; }
.side-nav ul { display: grid; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 9px 12px; border-radius: 8px; color: #e1ece2; font-size: 15px; font-weight: 600; text-decoration: none; }
.side-nav a .i { color: #a6c8ab; width: 1.2em; height: 1.2em; }
.side-nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.side-nav a.is-current { background: var(--g-700); color: #fff; box-shadow: inset 3px 0 0 var(--lime); }
.side-nav a.is-current .i { color: var(--lime); }
.side-foot { padding: 14px 12px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 14px; }
.side-foot p { color: #a6c8ab; margin-bottom: 4px; }
.side-foot a { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 700; text-decoration: none; }
.side-foot a:hover { text-decoration: underline; text-underline-offset: 4px; }

.content { min-width: 0; }
main { padding: 36px 44px 56px; max-width: 1180px; }
.explore { display: none; }

/* ---------- shared sections ---------- */

.eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--g-700); }
.eyebrow .i { width: 1.35em; height: 1.35em; }
.eyebrow-light { color: var(--lime); }
h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.4vw, 46px); line-height: 1.12; letter-spacing: -.015em; }
h2 { font-size: 21px; line-height: 1.3; letter-spacing: -.005em; }
h3 { font-size: 18px; line-height: 1.35; }

.section { padding: 56px 0 0; }
.section-tint { margin-top: 56px; padding: 44px; border-radius: var(--radius-lg); background: var(--canvas); border: 1px solid var(--line-soft); }
.section-head { max-width: 760px; margin-bottom: 28px; }
.section-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 2.8vw, 38px); line-height: 1.15; }
.section-lede { margin-top: 12px; font-size: 18px; color: var(--ink-600); }

.card { padding: 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.ticks { display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; color: var(--ink-700); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 2px solid var(--g-600); border-bottom: 2px solid var(--g-600); transform: rotate(-45deg); }

/* ---------- offering page template ---------- */

.page-head { max-width: 860px; margin-bottom: 28px; }
.page-head h1 { margin-bottom: 14px; }
.lede { font-size: 18px; color: var(--ink-600); }
.avail { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 16px; font-size: 15px; color: var(--ink-600); }

.page-top { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px; align-items: start; }
.do h2 { margin-bottom: 14px; }
.page-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.page-grid > section > h2, .twin > h2 { margin-bottom: 14px; }

.why { display: grid; gap: 14px; }
.why li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-700); }
.why .i { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--g-100); color: var(--g-800); }
.why strong { color: var(--ink-900); }

.flow { display: grid; gap: 12px; counter-reset: flow; }
.flow li { position: relative; padding: 0 0 0 44px; color: var(--ink-700); counter-increment: flow; }
.flow li::before { content: counter(flow); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--g-800); color: #fff; font-weight: 700; font-size: 14px; }
.flow li + li::after { content: ""; position: absolute; left: 14px; top: -12px; height: 12px; border-left: 2px solid var(--g-200); }

.context dl { display: grid; gap: 12px; }
.context dl > div { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 12px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.context dt { font-weight: 700; color: var(--g-800); }
.context dd { color: var(--ink-700); }

.expect { padding: 22px 24px; border-radius: var(--radius-lg); background: #fffaf0; border: 1px solid #f0dcaf; }
.expect ul { display: grid; gap: 8px; }
.expect li { position: relative; padding-left: 18px; color: var(--ink-700); }
.expect li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--warn-fg); }

.next { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 40px; padding: 26px 30px; border-radius: var(--radius-lg); background: var(--g-900); color: #d7e6d9; }
.next h2 { color: #fff; }
.next p { max-width: 560px; margin-top: 4px; }
.next p a { color: #fff; font-weight: 700; }
.next-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.next .btn-primary { background: var(--lime); color: var(--g-900); }
.next .btn-primary:hover { background: #e6f6c6; }
.next .btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.next .btn-outline:hover { background: rgba(255, 255, 255, .08); }
.next a:focus-visible { outline-color: var(--lime); }

.twin { margin-top: 40px; }
.twin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.twin-grid .card { display: flex; flex-direction: column; gap: 12px; }
.twin-purpose { color: var(--ink-600); }
.facts { display: grid; gap: 10px; }
.facts > div { display: grid; grid-template-columns: 112px 1fr; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.facts dt { font-weight: 700; color: var(--ink-900); }
.facts dd { color: var(--ink-700); }
.twin-grid .text-link { margin-top: auto; }

.models { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
.model-kicker { display: inline-block; margin-bottom: 12px; padding: 4px 12px; border-radius: 999px; background: var(--g-900); color: var(--lime); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.model h2 { margin-bottom: 14px; }
.model .ticks a { white-space: nowrap; font-weight: 600; }
.hybrid h2 { margin-bottom: 10px; }
.hybrid p { color: var(--ink-700); }

/* ---------- visuals ---------- */

.visual { min-width: 0; }
.visual figcaption { margin-top: 12px; font-size: 14px; color: var(--ink-600); }
.visual-wide { margin-top: 8px; }

.mock { border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; font-size: 14px; line-height: 1.45; }
.mock-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--g-900); color: #fff; font-weight: 700; }
.mock-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--g-500); }
.mock-body { padding: 18px; background: var(--canvas); display: grid; gap: 12px; }
.mock-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.mock-row-head { font-weight: 700; font-size: 16px; }
.mock-row small { display: block; font-weight: 400; font-size: 13px; color: var(--ink-500); }
.mock-meta, .mock-foot, .mock-note { font-size: 13px; color: var(--ink-600); }
.mock-foot { display: flex; align-items: center; gap: 6px; }
.mock-note { padding: 10px 12px; border-radius: 8px; background: var(--warn-bg); color: var(--warn-fg); }
.mock-sub { font-weight: 700; font-size: 13px; color: var(--ink-600); text-transform: uppercase; letter-spacing: .06em; }
.mock-box { padding: 12px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 4px; }
.mock-line { color: var(--ink-700); }
.mock-file { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 8px; border: 1px dashed #b9c6bb; background: var(--surface); font-weight: 600; overflow-wrap: anywhere; }
.mock-kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock-kv div, .aging div { padding: 10px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); }
.mock-kv span, .aging span { display: block; font-size: 12px; color: var(--ink-500); }
.mock-kv b { font-size: 15px; }
.aging { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.aging-3 { grid-template-columns: repeat(3, 1fr); }
.aging b { font-size: 20px; }

.mock-table { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.mock-table > div { display: grid; grid-template-columns: 84px 1fr auto; gap: 10px; align-items: center; padding: 9px 12px; border-top: 1px solid var(--line-soft); }
.mock-table > div:first-child { border-top: 0; }
.mock-table .mt-head { background: #f9fbf8; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-500); }
.mock-table-inv > div { grid-template-columns: 76px 1fr auto; }
.mock-table-ar > div { grid-template-columns: 1fr 64px auto; }
.mock-table-bulk > div { grid-template-columns: 48px 1fr auto; }
.mt-blank { color: var(--ink-500); }

.stepper { display: grid; }
.stepper li { position: relative; padding: 5px 0 5px 30px; color: var(--ink-500); }
.stepper li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #c3cec5; background: var(--surface); }
.stepper li + li::after { content: ""; position: absolute; left: 9px; top: -7px; height: 17px; border-left: 2px solid #c3cec5; }
.stepper .done { color: var(--ink-700); }
.stepper .done::before { background: var(--g-600); border-color: var(--g-600); }
.stepper .done + li::after { border-color: var(--g-600); }
.stepper .now { color: var(--ink-900); font-weight: 700; }
.stepper .now::before { border-color: var(--prog-fg); background: var(--prog-bg); box-shadow: 0 0 0 3px var(--prog-bg); }

.tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.tabs span { padding: 5px 10px; border-radius: 6px; font-size: 13px; color: var(--ink-600); background: var(--surface); border: 1px solid var(--line); }
.tabs .is-active { background: var(--g-100); border-color: var(--g-200); color: var(--ok-fg); font-weight: 700; }

.bubble { max-width: 88%; padding: 10px 14px; border-radius: 12px; color: var(--ink-700); }
.bubble b { display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-600); }
.bubble-snl { background: var(--surface); border: 1px solid var(--line); }
.bubble-you { justify-self: end; background: var(--g-100); border: 1px solid var(--g-200); }

.models-diagram { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.md-kicker { margin-bottom: 10px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--g-700); }
.md-flow { display: grid; gap: 8px; }
.md-flow span { padding: 8px 12px; border-radius: 8px; background: var(--canvas); border: 1px solid var(--line); color: var(--ink-700); }
.md-core { display: grid; justify-items: center; gap: 6px; max-width: 250px; padding: 22px; border-radius: var(--radius-lg); background: var(--g-900); color: #d7e6d9; text-align: center; }
.md-core strong { color: #fff; font-size: 17px; }
.md-core span:last-child { font-size: 14px; }
.md-core-ico, .int-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(214, 238, 166, .16); color: var(--lime); font-size: 20px; }

.int-diagram { display: grid; grid-template-columns: 1fr minmax(120px, .6fr) 1fr; gap: 16px; align-items: center; padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px dashed #c9d2ca; }
.int-node { display: grid; justify-items: center; gap: 6px; padding: 20px; border-radius: var(--radius-lg); background: var(--canvas); border: 1px solid var(--line); text-align: center; color: var(--ink-600); }
.int-node strong { color: var(--ink-900); }
.int-node .int-ico { background: var(--g-100); color: var(--g-800); }
.int-node-snl { background: var(--g-900); border-color: var(--g-900); color: #d7e6d9; }
.int-node-snl strong { color: #fff; }
.int-node-snl .int-ico { background: rgba(214, 238, 166, .16); color: var(--lime); }
.int-link { display: flex; align-items: center; gap: 8px; }
.int-line { flex: 1; border-top: 2px dashed var(--warn-fg); opacity: .6; }

/* ---------- overview ---------- */

.hero { padding: 40px; border-radius: var(--radius-lg); background: radial-gradient(900px 400px at 90% 0%, #245c2d 0%, transparent 60%), var(--g-900); color: #fff; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.hero h1 { font-family: var(--font); font-size: clamp(36px, 3.8vw, 54px); font-weight: 700; line-height: 1.06; letter-spacing: -.025em; margin-bottom: 18px; }
.hero h1 em { font-family: var(--serif); font-weight: 400; font-style: italic; color: var(--lime); }
.hero-lede { font-size: 18px; color: #dce8dd; margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 16px; font-size: 15px; color: #bfd3c2; }
.hero-visual figcaption { color: #bfd3c2; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .16); }
.values li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; line-height: 1.55; color: #cfe0d1; }
.values strong { display: block; font-size: 17px; color: #fff; }
.values .i { width: 38px; height: 38px; padding: 8px; border-radius: 10px; background: rgba(214, 238, 166, .14); color: var(--lime); }

.app { background: var(--canvas); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, .2); color: var(--ink-900); font-size: 14px; line-height: 1.4; }
.app-top { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.app-logo img { width: 76px; }
.app-title { font-weight: 700; font-size: 14px; }
.app-pill { margin-left: auto; padding: 4px 10px; border-radius: 999px; background: var(--g-100); color: var(--ok-fg); font-size: 12px; font-weight: 700; }
.app-main { padding: 16px; display: grid; gap: 10px; }
.app-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.app-stats div { padding: 10px 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.app-stats span { display: block; font-size: 12px; color: var(--ink-500); }
.app-stats strong { font-size: 22px; }
.app-card { padding: 12px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.app-card-h { font-weight: 700; margin-bottom: 4px; }
.app-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; padding: 8px 0; border-top: 1px solid var(--line-soft); }
.app-row:first-of-type { border-top: 0; }
.app-name { min-width: 0; font-weight: 600; }
.app-name small { display: block; font-weight: 400; font-size: 12.5px; color: var(--ink-500); }
.app-card-alert { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; border-color: #f0d9a8; background: #fffaf0; }
.app-card-alert .app-name { flex: 1 1 180px; }
.app-alert-ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--warn-bg); color: var(--warn-fg); flex: none; }

.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.tile { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; height: 100%; padding: 20px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink-700); text-decoration: none; transition: border-color .15s, transform .15s; }
.tile:hover { border-color: var(--g-500); transform: translateY(-1px); }
.tile-ico, .path-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--g-100); color: var(--g-800); font-size: 20px; }
.tile-body strong { display: block; margin-bottom: 2px; font-size: 17px; color: var(--ink-900); }
.tile-body span { font-size: 15px; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 22px; font-size: 14px; color: var(--ink-600); }
.legend li { display: flex; align-items: center; gap: 10px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.step-num { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 14px; border-radius: 50%; background: var(--g-800); color: #fff; font-weight: 700; }
.step h3 { margin-bottom: 6px; font-size: 20px; }
.step p { color: var(--ink-600); }
.note-bar { margin-top: 18px; padding: 14px 18px; border-left: 4px solid var(--g-500); border-radius: 0 var(--radius) var(--radius) 0; background: var(--g-50); color: var(--ink-700); }

.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.path { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.path p { color: var(--ink-600); }
.path .btn { margin-top: auto; }

/* ---------- footer ---------- */

.site-footer { margin: 0 44px 32px; padding: 32px; border-radius: var(--radius-lg); background: #0f2c15; color: #cddccf; max-width: calc(1180px - 88px); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-bottom: 22px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer-brand { display: grid; gap: 8px; }
.footer-logo { display: inline-block; padding: 8px 12px; border-radius: 8px; background: #fff; justify-self: start; }
.footer-logo img { width: 128px; }
.footer-brand p { font-size: 15px; }
.footer-brand a, .footer-links a { color: #fff; font-weight: 600; text-decoration: none; }
.footer-brand a:hover, .footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; align-self: center; }
.footer-links a { display: inline-block; padding: 8px 0; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px; padding-top: 18px; }
.expectations { max-width: 700px; font-size: 14px; color: #b8cbba; }
.powered { font-size: 13px; color: #9fb7a3; }

/* ---------- responsive ---------- */

@media (max-width: 1240px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 720px; }
}

@media (max-width: 1100px) {
  :root { --sidebar-w: 236px; }
  main { padding: 32px 32px 48px; }
  .site-footer { margin: 0 32px 28px; }
  .page-top { grid-template-columns: 1fr; }
  .page-top .visual { max-width: 640px; }
}

@media (max-width: 900px) {
  .layout { display: block; }
  .sidebar { display: none; }
  .topbar-link { display: none; }
  .explore { display: block; position: relative; z-index: 10; margin: 16px 20px 0; border-radius: 12px; background: var(--g-900); color: #fff; }
  .explore summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; min-height: 52px; padding: 12px 16px; border-radius: 12px; cursor: pointer; list-style: none; font-weight: 700; }
  .explore summary::-webkit-details-marker { display: none; }
  .explore summary:focus-visible { outline-color: var(--lime); }
  .explore-label { display: inline-flex; align-items: center; gap: 10px; }
  .explore-current { padding: 3px 10px; border-radius: 999px; background: rgba(214, 238, 166, .16); color: var(--lime); font-size: 14px; }
  .explore[open] summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .14); }
  .explore .side-nav { padding: 6px 10px 14px; }
  .explore .side-nav a:focus-visible { outline-color: var(--lime); }
  main { padding: 24px 20px 40px; }
  .site-footer { margin: 0 20px 24px; }
  .page-grid, .twin-grid, .models, .paths, .steps { grid-template-columns: 1fr; }
  .page-grid { gap: 32px; }
  .models-diagram, .int-diagram { grid-template-columns: 1fr; justify-items: stretch; }
  .md-core { max-width: none; }
  .int-link { justify-content: center; }
  .int-line { max-width: 60px; }
}

@media (max-width: 640px) {
  .topbar { padding: 0 16px; min-height: 64px; gap: 10px; }
  .brand img { width: 96px; }
  .topbar-title { padding-left: 10px; font-size: 14px; white-space: nowrap; }
  .topbar .btn-sm { min-height: 40px; padding: 8px 10px; font-size: 13.5px; white-space: nowrap; }
  .topbar .btn-sm .i { display: none; }
  .explore { margin: 12px 16px 0; }
  main { padding: 20px 16px 36px; }
  .site-footer { margin: 0 16px 20px; padding: 24px 20px; }
  .hero { padding: 26px 20px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .values { grid-template-columns: 1fr; }
  .app-title { display: none; }
  .app-main { padding: 12px; }
  .app-stats strong { font-size: 20px; }
  .tiles { grid-template-columns: 1fr; }
  .tile { grid-template-columns: auto 1fr; }
  .tile .badge { grid-column: 2; justify-self: start; }
  .section-tint { padding: 26px 18px; }
  .card, .expect, .path, .step { padding: 20px; }
  .context dl > div, .facts > div { grid-template-columns: 1fr; gap: 2px; }
  .next { padding: 22px 20px; }
  .next-actions, .next-actions .btn, .path .btn { width: 100%; }
  .mock-kv, .aging { grid-template-columns: 1fr 1fr; }
  .mock-table > div { grid-template-columns: 1fr auto; }
  .mock-table > div > span:first-child { grid-column: 1 / -1; font-size: 13px; color: var(--ink-500); }
  .mock-table .mt-head { display: none; }
  .legend li { flex-direction: column; align-items: flex-start; gap: 4px; }
  .footer-grid, .footer-base { flex-direction: column; }
}

@media (max-width: 360px) {
  .topbar-title { display: none; }
  .app-stats { grid-template-columns: 1fr 1fr; }
  .app-stats div:last-child { grid-column: 1 / -1; }
  .aging-3 { grid-template-columns: 1fr 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .tile { transition: none; }
  .btn:hover, .tile:hover { transform: none; }
}
