/* ==========================================================================
   ProWaste Manager — corporate software theme
   Navy / azure primary, emerald accent (eco), leaf-orange highlight.
   Typography is rem-based so the accessibility text-size control scales it.
   ========================================================================== */
:root {
  --navy-950: #081627;
  --navy-900: #0b1d33;
  --navy-800: #0f2b4c;
  --navy-700: #163a63;
  --blue-700: #1959c4;
  --blue-600: #1f6feb;
  --blue-100: #dbe8fd;
  --blue-50: #eef4fe;
  --emerald-600: #0e8a44;
  --emerald-500: #12a150;
  --emerald-50: #e8f7ef;
  --orange-500: #f2711c;
  --orange-50: #fef1e7;

  --ink: #14233a;
  --text: #334155;
  --muted: #5b6b80;
  --border: #dfe6ef;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(15, 43, 76, .06), 0 1px 3px rgba(15, 43, 76, .08);
  --shadow: 0 10px 30px rgba(15, 43, 76, .12);
  --shadow-lg: 0 24px 60px rgba(8, 22, 39, .25);

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Plus Jakarta Sans", "Inter", system-ui, "Segoe UI", Arial, sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font-body);
  font-size: 1rem;
  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-600); text-decoration: none; }
a:hover { color: var(--blue-700); text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; }
code, kbd { font-family: ui-monospace, Consolas, monospace; font-size: .9em; }
kbd { background: var(--bg-alt); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 4px; padding: 1px 6px; }
:focus-visible { outline: 3px solid var(--orange-500); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.narrow { max-width: 760px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 600 .95rem/1 var(--font-body);
  padding: .8em 1.3em; border-radius: 10px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none !important; white-space: nowrap;
  transition: background .18s, color .18s, border-color .18s, transform .18s, box-shadow .18s;
}
.btn svg { width: 1.1em; height: 1.1em; fill: currentColor; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { font-size: .85rem; padding: .6em 1em; }
.btn-lg { font-size: 1.02rem; padding: .95em 1.6em; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue-600); color: #fff; box-shadow: 0 6px 16px rgba(31, 111, 235, .28); }
.btn-primary:hover { background: var(--blue-700); color: #fff; }
.btn-accent { background: var(--emerald-500); color: #fff; box-shadow: 0 6px 16px rgba(18, 161, 80, .3); }
.btn-accent:hover { background: var(--emerald-600); color: #fff; }
.btn-ghost { background: #fff; color: var(--navy-800); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--blue-600); color: var(--blue-700); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: #fff; }
.download-item .btn svg { fill: none; stroke: currentColor; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  background: var(--navy-900); color: #fff; padding: 12px 18px; border-radius: 8px; font-weight: 700;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-950); color: #b9c7da; font-size: .82rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 38px; }
.topbar-links { display: flex; gap: 22px; }
.topbar a { color: #dbe5f2; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: #fff; text-decoration: none; }
.topbar svg { width: 14px; height: 14px; fill: var(--emerald-500); }
@media (max-width: 640px) { .topbar-tag { display: none; } .topbar-inner { justify-content: center; } }
@media (max-width: 420px) { .topbar-links a:last-child { display: none; } }

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none !important; }
.brand img { border-radius: 8px; }
.brand-text { font-family: var(--font-head); font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.brand-name em { font-style: normal; color: var(--emerald-500); }
.brand-sub { font-weight: 600; color: var(--muted); }

.primary-nav { display: flex; align-items: center; gap: 18px; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px;
  font: 600 .93rem/1 var(--font-body); color: var(--ink);
  padding: 10px 14px; border-radius: 8px; background: none; border: 0; cursor: pointer;
  text-decoration: none !important;
}
.nav-link:hover, .nav-link[aria-expanded="true"] { background: var(--blue-50); color: var(--blue-700); }
.nav-link[aria-current="page"], .nav-link.is-active { color: var(--blue-700); box-shadow: inset 0 -2px 0 var(--blue-600); border-radius: 8px 8px 0 0; }
.chev { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .2s; }
.dropdown-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 290px;
  list-style: none; margin: 0; padding: 8px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .16s, transform .16s, visibility .16s;
}
.has-dropdown.open > .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none !important; }
.dropdown a:hover, .dropdown a:focus-visible { background: var(--blue-50); }
.dropdown a[aria-current="page"] { background: var(--blue-50); box-shadow: inset 3px 0 0 var(--blue-600); }
.dd-label { display: block; font-weight: 600; font-size: .93rem; }
.dd-hint { display: block; font-size: .8rem; color: var(--muted); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.inline-form { display: inline; margin: 0; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--border); background: #fff; border-radius: 10px; cursor: pointer; padding: 11px 10px; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1020px) {
  .nav-toggle { display: flex; }
  /* backdrop-filter would make the header the containing block for the fixed menu */
  .site-header { backdrop-filter: none; background: #fff; }
  .primary-nav {
    position: fixed; inset: var(--nav-top, calc(var(--header-h) + 38px)) 0 0 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 0; padding: 16px 20px 40px;
    background: #fff; overflow-y: auto;
    transform: translateX(100%); visibility: hidden; transition: transform .25s, visibility .25s;
  }
  .primary-nav.open { transform: none; visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-link { width: 100%; justify-content: space-between; padding: 14px 8px; font-size: 1.02rem; border-bottom: 1px solid var(--border); border-radius: 0; }
  .nav-link[aria-current="page"], .nav-link.is-active { box-shadow: inset 3px 0 0 var(--blue-600); border-radius: 0; }
  .dropdown { position: static; min-width: 0; border: 0; box-shadow: none; padding: 4px 0 8px 12px; display: none; opacity: 1; visibility: visible; transform: none; }
  .has-dropdown.open > .dropdown { display: block; }
  .nav-actions { padding-top: 18px; flex-direction: column; align-items: stretch; }
  .nav-actions .btn { width: 100%; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #d7e2f1;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(31, 111, 235, .45), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(18, 161, 80, .28), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-800) 55%, var(--navy-700));
  padding: clamp(56px, 8vw, 104px) 0;
}
.hero h1 { color: #fff; }
.hero .lead { font-size: 1.15rem; color: #c3d1e6; max-width: 36em; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .9rem; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--emerald-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat; }
.eyebrow { font: 700 .78rem/1 var(--font-body); text-transform: uppercase; letter-spacing: .12em; color: var(--emerald-600); margin-bottom: 14px; }
.eyebrow-light { color: #6ee7a8; }

.mock-window { background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; background: #eef2f8; border-bottom: 1px solid var(--border); }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: #f87171; }
.mock-bar span:nth-child(2) { background: #fbbf24; }
.mock-bar span:nth-child(3) { background: #34d399; }
.mock-bar em { font-style: normal; font-size: .78rem; color: var(--muted); margin-left: 10px; }
.mock-body { padding: 18px; color: var(--text); }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-kpis div { background: var(--bg-alt); border-radius: 10px; padding: 10px 12px; }
.mock-kpis small { display: block; font-size: .7rem; color: var(--muted); }
.mock-kpis strong { font: 800 1.1rem/1.3 var(--font-head); color: var(--navy-800); }
.mock-chart { display: flex; align-items: flex-end; gap: 8px; height: 120px; margin: 16px 0; padding: 10px; border-radius: 10px; background: linear-gradient(var(--blue-50), #fff); }
.mock-chart span { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(var(--blue-600), #6aa5ff); }
.mock-chart span:nth-child(even) { background: linear-gradient(var(--emerald-500), #6ee7a8); }
.mock-rows div { display: flex; align-items: center; gap: 10px; font-size: .8rem; padding: 8px 0; border-top: 1px solid var(--border); }
.mock-rows b { margin-left: auto; font-weight: 600; color: var(--navy-700); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald-500); }
.dot.warn { background: var(--orange-500); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-visual { max-width: 520px; } .mock-window { transform: none; } }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section-tight { padding: 48px 0 72px; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head p:last-child { color: var(--muted); font-size: 1.05rem; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.feature-card, .card, .link-card, .spec-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm);
}
.feature-card { transition: transform .2s, box-shadow .2s, border-color .2s; }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--blue-100); }
.feature-card h3, .feature-card h2 { font-size: 1.08rem; margin: 14px 0 6px; }
.feature-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.feature-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--blue-50); color: var(--blue-600); flex-shrink: 0; }
.feature-icon svg { width: 24px; height: 24px; }
.feature-icon.sm { width: 36px; height: 36px; border-radius: 10px; }
.feature-icon.sm svg { width: 18px; height: 18px; }
.feature-card:nth-child(3n+2) .feature-icon { background: var(--emerald-50); color: var(--emerald-600); }
.feature-card:nth-child(3n) .feature-icon { background: var(--orange-50); color: var(--orange-500); }

.tech-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 40px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.tech-strip div { background: #fff; padding: 20px 24px; }
.tech-strip strong { display: block; color: var(--ink); font-family: var(--font-head); }
.tech-strip span { color: var(--muted); font-size: .92rem; }
@media (max-width: 760px) { .tech-strip { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.split-reverse { grid-template-columns: .8fr 1.2fr; align-items: center; }
.split-media { display: grid; gap: 20px; }
.shot-link img { border-radius: 12px; border: 1px solid var(--border); box-shadow: var(--shadow); width: 100%; }
@media (max-width: 900px) { .split, .split-reverse { grid-template-columns: 1fr; gap: 32px; } }

.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding: 6px 0 6px 32px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 10px; width: 20px; height: 20px; border-radius: 50%; background: var(--emerald-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e8a44' stroke-width='3'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/13px no-repeat; }
.addon-card h3 { margin-bottom: 12px; }
.addon-list { list-style: none; padding: 0; margin: 0; }
.addon-list li { padding: 10px 0; border-top: 1px solid var(--border); font-size: .94rem; }
.addon-list li:first-child { border-top: 0; }
.addon-list strong { color: var(--ink); }

.card-grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.link-card { display: flex; flex-direction: column; color: var(--text); text-decoration: none !important; transition: transform .2s, box-shadow .2s, border-color .2s; }
.link-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--blue-100); color: var(--text); }
.link-card h3 { margin: 16px 0 6px; }
.link-card p { color: var(--muted); flex: 1; }
.link-more { font-weight: 600; color: var(--blue-600); }

.cta-band { background: linear-gradient(120deg, var(--navy-800), var(--blue-700)); color: #d7e2f1; padding: 56px 0; }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { margin: 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Interior pages ---------- */
.page-hero {
  background:
    radial-gradient(600px 300px at 90% 0, rgba(31, 111, 235, .35), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-800));
  color: #c3d1e6; padding: 52px 0 48px;
}
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 10px; }
.page-hero .eyebrow { color: #6ee7a8; }
.page-hero .lead { font-size: 1.08rem; max-width: 46em; margin: 0; }

.page-layout { display: grid; grid-template-columns: 260px 1fr; gap: 44px; padding: 48px 0 80px; align-items: start; }
.page-content { min-width: 0; }
.page-content > h2:first-child { margin-top: 0; }
.page-content h2 { margin-top: 1.6em; }
@media (max-width: 900px) { .page-layout { grid-template-columns: 1fr; gap: 28px; } .side-nav { order: 2; } }

.side-nav { position: sticky; top: calc(var(--header-h) + 20px); }
.side-nav-title { font: 700 .78rem/1 var(--font-body); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 12px; }
.side-nav ul { list-style: none; padding: 0; margin: 0 0 20px; border-left: 2px solid var(--border); }
.side-nav a { display: block; padding: 8px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--text); font-weight: 500; font-size: .95rem; }
.side-nav a:hover { color: var(--blue-700); text-decoration: none; border-left-color: var(--blue-100); }
.side-nav a[aria-current="page"] { color: var(--blue-700); border-left-color: var(--blue-600); font-weight: 700; background: linear-gradient(90deg, var(--blue-50), transparent); }
.side-nav-card { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; font-size: .9rem; }
@media (max-width: 900px) { .side-nav { position: static; } }

.prose { font-size: 1.02rem; }
.prose h2 { font-size: 1.4rem; }
.notice { background: var(--blue-50); border: 1px solid var(--blue-100); border-left: 4px solid var(--blue-600); border-radius: var(--radius-sm); padding: 18px 20px; margin: 28px 0; }
.notice p:last-child { margin-bottom: 0; }
.footnote { color: var(--muted); font-size: .9rem; margin-top: 14px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); margin: 16px 0; }
.data-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.data-table th, .data-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table thead th { background: var(--bg-alt); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.data-table tbody tr:last-child > * { border-bottom: 0; }
.data-table tbody tr:hover { background: #fafcff; }
.data-table tbody th { width: 160px; color: var(--ink); font-weight: 700; }
.data-table .num { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
.icon-cell { width: 56px; }
.icon-cell img { width: 32px; height: 32px; border-radius: 6px; object-fit: contain; }
.icon-table td:first-child { width: 120px; }
.icon-table td:first-child img { max-height: 36px; width: auto; }
.cell-sub { display: block; color: var(--muted); font-size: .86rem; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--blue-50); color: var(--blue-700); }
.badge-soon { background: var(--orange-50); color: #b45309; margin-top: 14px; }

.module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.module-tile { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; font-weight: 600; color: var(--ink); }
.module-tile img { width: 32px; height: 32px; object-fit: contain; border-radius: 6px; }

.toc { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 28px; }
.toc-title { font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.toc ul { columns: 2 220px; margin: 0; padding-left: 18px; }
.toc li { padding: 2px 0; }
.spec-cards { display: grid; gap: 16px; }
.spec-card { scroll-margin-top: calc(var(--header-h) + 20px); }
.spec-card h2 { font-size: 1.2rem; margin: 0 0 8px; }
.spec-card p { margin: 0; }
.spec-card .spec-key { margin-top: 12px; display: inline-block; font-size: .85rem; font-weight: 600; color: var(--emerald-600); background: var(--emerald-50); border-radius: 6px; padding: 4px 10px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.shot { margin: 0; }
.shot a, .doc-shot { display: block; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); cursor: zoom-in; transition: box-shadow .2s, transform .2s; }
.shot a:hover, .doc-shot:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.shot img, .doc-shot img { width: 100%; }
.shot figcaption { font-size: .88rem; color: var(--muted); padding-top: 8px; text-align: center; }
.doc-shot { margin: 14px 0 8px; max-width: 760px; }
.inline-img { border: 1px solid var(--border); border-radius: 8px; margin: 10px 0 18px; }

.steps { list-style: none; counter-reset: step; padding: 0; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 36px 56px; border-left: 2px solid var(--border); margin-left: 18px; }
.steps > li:last-child { border-left-color: transparent; }
.steps > li::before { content: counter(step); position: absolute; left: -19px; top: -4px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-600); color: #fff; font-weight: 800; box-shadow: 0 0 0 5px #fff; }
.steps h2 { font-size: 1.2rem; margin: 0 0 6px !important; }

.field-list { display: grid; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin: 12px 0; }
.field-list > div { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 12px 18px; border-top: 1px solid var(--border); background: #fff; }
.field-list > div:first-child { border-top: 0; }
.field-list > div:nth-child(even) { background: #fafcff; }
.field-list dt { font-weight: 700; color: var(--ink); }
.field-list dd { margin: 0; }
@media (max-width: 600px) { .field-list > div { grid-template-columns: 1fr; gap: 2px; } }

.download-list { display: grid; gap: 16px; max-width: 900px; }
.download-item { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); scroll-margin-top: calc(var(--header-h) + 20px); }
.download-item h2 { font-size: 1.1rem; margin: 0 0 4px; }
.download-item p { margin: 0; color: var(--muted); }
.download-item:target { border-color: var(--blue-600); box-shadow: 0 0 0 4px var(--blue-50); }
@media (max-width: 640px) { .download-item { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.contact-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; padding: 48px 0 80px; align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
.form-card { padding: 30px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field-full, .form-grid .alert { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.form-field { display: grid; gap: 6px; margin-bottom: 4px; }
.form-field label { font-weight: 600; color: var(--ink); font-size: .92rem; }
.form-field input, .form-field textarea, .subscribe-form input {
  width: 100%; font: inherit; color: var(--ink); padding: 12px 14px;
  border: 1px solid #c9d4e2; border-radius: 10px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.form-field input:focus, .form-field textarea:focus, .subscribe-form input:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 4px var(--blue-50); }
.form-field .input-validation-error { border-color: #dc2626; }
.field-error { color: #b91c1c; font-size: .85rem; }
.alert { border-radius: 10px; padding: 14px 16px; margin-bottom: 18px; }
.alert-success { background: var(--emerald-50); border: 1px solid #a7e3c1; color: #065f46; }
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.alert-error ul { margin: 0; padding-left: 18px; }
.validation-summary-valid { display: none; }
.check { display: flex; align-items: center; gap: 8px; margin: 6px 0 20px; font-size: .92rem; }
.check input { width: 18px; height: 18px; accent-color: var(--blue-600); }

.contact-side { display: grid; gap: 16px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 4 / 3; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

.auth-section { min-height: 70vh; display: grid; place-items: center; padding: 56px 20px; background: linear-gradient(160deg, var(--bg-alt), #fff); }
.auth-card { width: min(440px, 100%); padding: 34px; box-shadow: var(--shadow); }
.auth-head { text-align: center; margin-bottom: 24px; }
.auth-head h1 { font-size: 1.7rem; margin: 14px 0 4px; }
.auth-foot { text-align: center; margin: 18px 0 0; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 70px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: var(--bg-alt); color: var(--navy-700); font-weight: 600; font-size: .8rem; padding: 6px 10px; border-radius: 6px; cursor: pointer; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #9fb0c6; font-size: .93rem; }
.site-footer a { color: #dbe5f2; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr 1fr 1.2fr; gap: 40px; padding: 64px 0 44px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.brand-footer { color: #fff; margin-bottom: 18px; }
.brand-footer .brand-sub { color: #9fb0c6; }
.footer-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: #fff; margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.footer-note { color: #7f93ad; }
.site-footer address { font-style: normal; line-height: 1.9; }
.spec-list { margin: 0; display: grid; gap: 8px; }
.spec-list div { display: grid; grid-template-columns: 110px 1fr; gap: 8px; }
.spec-list dt { color: #fff; font-weight: 600; }
.spec-list dd { margin: 0; }
.subscribe-form { display: flex; flex-wrap: wrap; gap: 8px; }
.subscribe-form input { flex: 1 1 180px; background: #0f2440; border-color: #284566; color: #fff; }
.subscribe-form input::placeholder { color: #7f93ad; }
.section-tight .subscribe-form input { background: #fff; color: var(--ink); border-color: #c9d4e2; }
.form-status { flex-basis: 100%; margin: 4px 0 0; min-height: 1.2em; font-size: .88rem; }
.form-status.ok { color: #6ee7a8; }
.form-status.err { color: #fca5a5; }
.footer-bottom { border-top: 1px solid #1a2f4b; }
.footer-bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 18px 0 100px; font-size: .84rem; }
.footer-bottom p { margin: 0; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 400; background: rgba(8, 22, 39, .88); display: grid; place-items: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); }
.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: 10px; box-shadow: var(--shadow-lg); background: #fff; }
.lightbox figcaption { color: #dbe5f2; text-align: center; margin-top: 12px; }
.lightbox-close { position: absolute; top: 18px; right: 18px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font-size: 1.2rem; cursor: pointer; }

/* ---------- Install PWA prompt ---------- */
#install-banner {
  position: fixed; left: 16px; right: 110px; bottom: 20px; z-index: 200; max-width: 640px;
  background: var(--navy-900); color: #fff; border-radius: var(--radius);
  padding: 14px 18px; display: none; align-items: center; justify-content: space-between; gap: 14px;
  box-shadow: var(--shadow-lg);
}
#install-banner.show { display: flex; }
.install-actions { display: flex; align-items: center; gap: 8px; }
#install-banner button.dismiss { background: none; border: none; color: #cfd8e3; cursor: pointer; font-size: 1.1rem; padding: 6px; }
@media (max-width: 500px) {
  #install-banner { right: 16px; bottom: 96px; flex-direction: column; align-items: stretch; text-align: center; }
  .install-actions { justify-content: center; }
}

/* ---------- Accessibility: respect reduced-motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .001ms !important; animation-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
html.a11y-reduce-motion * { transition-duration: .001ms !important; animation-duration: .001ms !important; }
html.a11y-reduce-motion { scroll-behavior: auto; }
html.a11y-reduce-motion .mock-window { transform: none; }

/* ---------- Accessibility toolbar ---------- */
#a11y-toggle {
  position: fixed; right: 20px; bottom: 20px; z-index: 250;
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--blue-600); color: #fff; border: 3px solid #fff;
  cursor: pointer; font-size: 2.2rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
}
#a11y-toggle:hover { background: var(--blue-700); }
#a11y-panel {
  position: fixed; right: 20px; bottom: 100px; z-index: 250;
  width: min(300px, calc(100vw - 32px));
  background: #fff; color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 18px; display: none;
}
#a11y-panel.open { display: block; }
#a11y-panel h2 { font-size: 1rem; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.a11y-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.a11y-row span { font-size: .9rem; font-weight: 700; }
.a11y-row .a11y-btns { display: flex; gap: 6px; }
.a11y-row button, #a11y-reset {
  border: 1px solid var(--border); background: #fff; color: var(--ink); border-radius: 6px;
  padding: 6px 10px; font-weight: 700; cursor: pointer; font-size: .85rem; font-family: inherit;
}
.a11y-row button[aria-pressed="true"] { background: var(--blue-600); color: #fff; border-color: var(--blue-600); }
.a11y-row button:hover, #a11y-reset:hover { border-color: var(--blue-600); }
#a11y-reset { width: 100%; margin-top: 4px; }
.a11y-text-btns-row button { line-height: 1; }
@media (max-width: 500px) {
  #a11y-toggle { right: 14px; bottom: 14px; width: 64px; height: 64px; font-size: 1.9rem; }
  #a11y-panel { right: 14px; bottom: 88px; }
}

/* ---------- Accessibility: underline links ---------- */
html.a11y-underline-links a:not(.btn):not(.brand) { text-decoration: underline !important; }

/* ---------- Accessibility: text size scaling ---------- */
html.a11y-text-lg { font-size: 112.5%; }
html.a11y-text-xl { font-size: 125%; }
html.a11y-text-xxl { font-size: 137.5%; }

/* ---------- Accessibility: high contrast ---------- */
html.a11y-contrast body { background: #000 !important; color: #fff !important; }
html.a11y-contrast .topbar,
html.a11y-contrast .site-header,
html.a11y-contrast .primary-nav,
html.a11y-contrast .dropdown,
html.a11y-contrast .site-footer,
html.a11y-contrast .hero,
html.a11y-contrast .page-hero,
html.a11y-contrast .section-alt,
html.a11y-contrast .cta-band,
html.a11y-contrast .auth-section,
html.a11y-contrast .feature-card,
html.a11y-contrast .card,
html.a11y-contrast .link-card,
html.a11y-contrast .spec-card,
html.a11y-contrast .notice,
html.a11y-contrast .toc,
html.a11y-contrast .side-nav-card,
html.a11y-contrast .table-wrap,
html.a11y-contrast .data-table th,
html.a11y-contrast .data-table td,
html.a11y-contrast .field-list > div,
html.a11y-contrast .module-tile,
html.a11y-contrast .download-item,
html.a11y-contrast .tech-strip div,
html.a11y-contrast .mock-window,
html.a11y-contrast .mock-body,
html.a11y-contrast .mock-kpis div,
html.a11y-contrast #install-banner,
html.a11y-contrast #a11y-panel { background: #000 !important; color: #fff !important; border-color: #fff !important; box-shadow: none !important; }
html.a11y-contrast h1, html.a11y-contrast h2, html.a11y-contrast h3,
html.a11y-contrast p, html.a11y-contrast span, html.a11y-contrast li,
html.a11y-contrast dt, html.a11y-contrast dd, html.a11y-contrast strong,
html.a11y-contrast label, html.a11y-contrast address, html.a11y-contrast .muted { color: #fff !important; }
html.a11y-contrast a, html.a11y-contrast .nav-link { color: #ffe600 !important; text-decoration: underline !important; }
html.a11y-contrast .btn-primary, html.a11y-contrast .btn-accent, html.a11y-contrast .btn-ghost,
html.a11y-contrast .a11y-row button[aria-pressed="true"] { background: #ffe600 !important; color: #000 !important; border-color: #ffe600 !important; text-decoration: none !important; }
html.a11y-contrast .btn-primary *, html.a11y-contrast .btn-accent *, html.a11y-contrast .btn-ghost * { color: #000 !important; }
html.a11y-contrast .btn-outline-light { color: #ffe600 !important; border-color: #ffe600 !important; }
html.a11y-contrast .feature-icon, html.a11y-contrast .badge { background: #000 !important; color: #ffe600 !important; border: 1px solid #ffe600; }
html.a11y-contrast .form-field input, html.a11y-contrast .form-field textarea, html.a11y-contrast .subscribe-form input { background: #000 !important; color: #fff !important; border-color: #fff !important; }
html.a11y-contrast .nav-toggle { background: #000; border-color: #fff; }
html.a11y-contrast .nav-toggle span { background: #fff; }
html.a11y-contrast #a11y-toggle { background: #ffe600; color: #000; border-color: #000; }
html.a11y-contrast img:not(.brand img) { filter: grayscale(.2) contrast(1.1); }

@media print {
  .topbar, .site-header, .site-footer, #a11y-toggle, #a11y-panel, #install-banner, .side-nav, .cta-band { display: none !important; }
  .page-hero, .hero { background: none !important; color: #000; padding: 0 0 16px; }
  .page-hero h1, .hero h1 { color: #000; }
  .page-layout { display: block; padding: 0; }
}
