/* TruckCrave ELD - site styles */

:root {
  --ink: #0c1e29;
  --ink-2: #23394a;
  --muted: #5a6b77;
  --line: #e2e8ec;
  --soft: #f4f7f8;
  --soft-2: #eaf3f2;
  --white: #ffffff;
  --teal: #0b7a72;
  --teal-dark: #075e58;
  --teal-light: #d9efec;
  --amber: #f2a93b;
  --amber-light: #fdf1dc;
  --red: #b4372f;
  --red-light: #fbe9e7;
  --blue: #2563a8;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(12, 30, 41, .06);
  --shadow: 0 8px 24px rgba(12, 30, 41, .08);
  --shadow-lg: 0 24px 60px rgba(12, 30, 41, .16);
  --max: 1180px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: .35em; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: var(--soft); padding: .1em .35em; border-radius: 4px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }

/* ---------- Top bar & header ---------- */

.topbar { background: var(--ink); color: #c9d6de; font-size: .85rem; }
.topbar .container { display: flex; justify-content: flex-end; align-items: center; gap: 16px; min-height: 38px; flex-wrap: wrap; }
.topbar a { color: #fff; }
.topbar-links { display: flex; gap: 20px; }
@media (max-width: 720px) { .topbar-note { display: none; } .topbar .container { justify-content: center; } }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }

.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 1.2rem; letter-spacing: .02em; }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand img { height: 38px; width: auto; }
.brand span b { color: var(--teal); font-weight: 800; }
.brand small { display: block; font-size: .62rem; letter-spacing: .14em; color: var(--muted); font-weight: 600; margin-top: -2px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink-2); font-weight: 550; font-size: .95rem; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { background: var(--soft); text-decoration: none; color: var(--ink); }
.nav a[aria-current="page"] { color: var(--teal); }
.nav .btn { margin-left: 8px; color: #fff; }
.nav .btn:hover { color: #fff; background: var(--teal-dark); }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; width: 44px; height: 44px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 72px; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 16px 20px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 650; font-size: .95rem; padding: 12px 22px; border-radius: 8px; border: 1px solid transparent; background: var(--teal); color: #fff; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { background: var(--teal-dark); color: #fff; text-decoration: none; }
.btn-outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { background: var(--soft); color: var(--ink); border-color: #cfd8de; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--soft-2); color: var(--ink); }
.btn-ghost-light { background: transparent; border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Sections ---------- */

.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--ink); color: #c9d6de; }
.section-dark h2, .section-dark h3 { color: #fff; }

.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: 12px; }
.section-dark .eyebrow { color: var(--amber); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.lead { font-size: 1.12rem; color: var(--muted); }
.section-dark .lead { color: #a9bac5; }

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #f3f9f8 0%, #ffffff 100%); padding: 72px 0 88px; }
.hero::before { content: ""; position: absolute; right: -180px; top: -120px; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, rgba(11, 122, 114, .10), rgba(11, 122, 114, 0) 70%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 span { color: var(--teal); }
.hero .lead { max-width: 560px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-points { display: flex; gap: 24px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; color: var(--ink-2); font-size: .92rem; font-weight: 550; }
.hero-points li { display: flex; align-items: center; gap: 8px; margin: 0; }
.hero-points svg { width: 18px; height: 18px; color: var(--teal); flex: none; }
.hero-visual { position: relative; width: fit-content; margin: 0 auto; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding-top: 48px; } }

.badge { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 8px; font-size: .82rem; font-weight: 600; color: var(--ink-2); margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.badge i { display: inline-block; font-style: normal; background: var(--teal); color: #fff; border-radius: 999px; padding: 2px 8px; font-size: .72rem; letter-spacing: .04em; }

/* ---------- Page hero (inner pages) ---------- */

.page-hero { background: var(--ink); color: #c9d6de; padding: 64px 0 56px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -120px; bottom: -200px; width: 480px; height: 480px; border-radius: 50%; border: 60px solid rgba(242, 169, 59, .08); }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
.page-hero .lead { color: #a9bac5; max-width: 720px; margin: 0; }
.breadcrumb { font-size: .85rem; margin-bottom: 16px; color: #8ea2ae; }
.breadcrumb a { color: #c9d6de; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; font-size: .85rem; color: #8ea2ae; }
.doc-meta strong { color: #fff; font-weight: 600; }

/* ---------- Cards & grids ---------- */

.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); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; transition: box-shadow .2s, transform .2s, border-color .2s; }
.card:hover { box-shadow: var(--shadow); border-color: #d3dde2; }
.card p { color: var(--muted); margin: 0; font-size: .96rem; }
.card h3 { margin-bottom: 8px; }
.card-link { display: flex; flex-direction: column; color: inherit; }
.card-link:hover { text-decoration: none; color: inherit; transform: translateY(-2px); }
.card-link .more { margin-top: auto; padding-top: 16px; font-weight: 650; color: var(--teal); font-size: .92rem; }

.icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--teal-light); color: var(--teal); margin-bottom: 18px; }
.icon svg { width: 24px; height: 24px; }
.icon.amber { background: var(--amber-light); color: #b67412; }

.section-dark .card { background: #13293a; border-color: #20394c; }
.section-dark .card p { color: #a9bac5; }

/* ---------- Split / feature rows ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split + .split { margin-top: 96px; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } .split.reverse > :first-child { order: 0; } }

.checklist { list-style: none; padding: 0; margin: 20px 0 0; }
.checklist li { position: relative; padding-left: 32px; margin-bottom: 12px; color: var(--ink-2); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--teal-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b7a72' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat; }
.section-dark .checklist li { color: #c9d6de; }

/* ---------- Stats strip ---------- */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); }
.stat { padding: 28px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: 1.05rem; color: var(--ink); margin-bottom: 4px; }
.stat span { font-size: .9rem; color: var(--muted); }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; } .stat { border-right: 0; border-bottom: 1px solid var(--line); } .stat:last-child { border-bottom: 0; } }

/* ---------- Steps ---------- */

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { position: relative; padding-top: 56px; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; top: 0; left: 0; font-size: 2rem; font-weight: 800; color: var(--teal); opacity: .9; }
.step p { color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Tables ---------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 1.5em; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; background: #fff; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--soft); font-weight: 650; color: var(--ink); font-size: .85rem; letter-spacing: .02em; }
tr:last-child td { border-bottom: 0; }
td code { white-space: nowrap; }
.spec-table th { width: 38%; background: #fff; font-size: .94rem; letter-spacing: 0; color: var(--muted); font-weight: 550; }
.spec-table td { font-weight: 600; }

/* ---------- Notices ---------- */

.notice { border-left: 4px solid var(--teal); background: var(--soft-2); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; margin: 0 0 1.5em; font-size: .96rem; }
.notice p:last-child { margin: 0; }
.notice strong:first-child { color: var(--teal-dark); }
.notice.warn { border-color: var(--amber); background: var(--amber-light); }
.notice.warn strong:first-child { color: #8a5508; }
.notice.danger { border-color: var(--red); background: var(--red-light); }
.notice.danger strong:first-child { color: var(--red); }

.placeholder { background: #fff4c2; color: #6b5300; border: 1px dashed #d8b200; border-radius: 4px; padding: 0 .3em; font-weight: 600; white-space: nowrap; }

/* ---------- Documentation layout ---------- */

.doc-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; padding-top: 56px; padding-bottom: 96px; }
.toc { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 120px); overflow: auto; font-size: .9rem; }
.toc h4 { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.toc li { margin: 0; }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-2); }
.toc a:hover { color: var(--teal); text-decoration: none; border-left-color: #b9d8d4; }
.toc a.active { color: var(--teal); border-left-color: var(--teal); font-weight: 600; }
.toc .toc-actions { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.toc .toc-actions .btn { font-size: .85rem; padding: 9px 14px; }
@media (max-width: 960px) { .doc-layout { grid-template-columns: 1fr; gap: 24px; padding-top: 32px; } .toc { position: static; max-height: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; } }

.doc { max-width: 780px; }
.doc section { scroll-margin-top: 96px; padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.doc section:last-child { border-bottom: 0; }
.doc h2 { font-size: 1.6rem; display: flex; gap: 14px; align-items: baseline; }
.doc h2 .num { flex: none; font-size: .95rem; font-weight: 700; color: var(--teal); background: var(--teal-light); border-radius: 8px; padding: 2px 10px; }
.doc h3 { margin-top: 1.6em; }
.doc ol.procedure { counter-reset: proc; list-style: none; padding: 0; }
.doc ol.procedure > li { counter-increment: proc; position: relative; padding-left: 44px; margin-bottom: 14px; }
.doc ol.procedure > li::before { content: counter(proc); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .8rem; font-weight: 700; display: grid; place-items: center; }
.doc-figure { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 32px; align-items: start; margin: 24px 0; }
.doc-figure figcaption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: 12px; }
@media (max-width: 720px) { .doc-figure { grid-template-columns: 1fr; } .doc-figure figure { max-width: 260px; margin: 0 auto; } }
figure { margin: 0; }

.ui { display: inline-block; font-weight: 650; font-size: .9em; background: #fff; border: 1px solid #cfd8de; border-bottom-width: 2px; border-radius: 6px; padding: 0 .45em; white-space: nowrap; color: var(--ink); }

/* ---------- Phone mockups (original artwork, built in HTML/CSS) ---------- */

.phone { width: 270px; background: #0f1c24; border-radius: 38px; padding: 10px; box-shadow: var(--shadow-lg); position: relative; flex: none; }
.phone.sm { width: 230px; border-radius: 32px; padding: 8px; }
.phone-screen { background: #fff; border-radius: 30px; overflow: hidden; font-size: 11px; line-height: 1.35; color: var(--ink); min-height: 520px; display: flex; flex-direction: column; }
.phone.sm .phone-screen { border-radius: 25px; min-height: 440px; font-size: 10px; }
.ph-status { display: flex; justify-content: space-between; align-items: center; padding: 10px 18px 6px; font-size: 10px; font-weight: 600; background: var(--ink); color: #fff; }
.ph-status i { display: inline-block; width: 18px; height: 8px; border: 1px solid #fff; border-radius: 2px; position: relative; }
.ph-status i::after { content: ""; position: absolute; inset: 1px 4px 1px 1px; background: #fff; }
.ph-bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 12px; }
.ph-bar img { height: 20px; }
.ph-dot { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: var(--teal-light); color: var(--teal); }
.ph-dot svg { width: 13px; height: 13px; }
.ph-body { padding: 12px 14px; flex: 1; }
.ph-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); padding: 8px 4px 12px; text-align: center; font-size: 9px; color: var(--muted); }
.ph-tabs span::before { content: ""; display: block; width: 14px; height: 14px; margin: 0 auto 3px; border-radius: 4px; background: #d6dee3; }
.ph-tabs span.on { color: var(--teal); font-weight: 700; }
.ph-tabs span.on::before { background: var(--teal); }

.ph-status-card { display: flex; align-items: center; justify-content: space-between; background: var(--soft); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
.ph-status-card b { font-size: 13px; }
.ph-chip { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: 10px; padding: 3px 9px; border-radius: 999px; background: var(--teal); color: #fff; }
.ph-chip.off { background: #6b7c87; }
.ph-chip.on { background: var(--amber); color: var(--ink); }
.ph-clocks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.ph-clock { text-align: center; }
.ph-ring { width: 66px; height: 66px; margin: 0 auto 4px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--teal) calc(var(--p) * 1%), #e3ebee 0); }
.ph-ring.amber { background: conic-gradient(var(--amber) calc(var(--p) * 1%), #e3ebee 0); }
.ph-ring b { width: 54px; height: 54px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 12px; }
.ph-clock small { color: var(--muted); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.ph-label { font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 6px 0; }

.ph-graph { display: grid; grid-template-columns: 22px 1fr 30px; font-size: 8px; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.ph-graph > div { height: 18px; display: flex; align-items: center; border-bottom: 1px solid var(--line); padding: 0 4px; }
.ph-graph > div:nth-last-child(-n+3) { border-bottom: 0; }
.ph-graph .lane { padding: 0; position: relative; background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 24 - 1px), #edf1f3 calc(100% / 24 - 1px) calc(100% / 24)); }
.ph-graph .seg { position: absolute; top: 50%; height: 3px; margin-top: -1.5px; background: var(--teal); border-radius: 2px; }
.ph-graph .tot { justify-content: flex-end; color: var(--ink); }

.ph-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ph-row:last-child { border-bottom: 0; }
.ph-row span { color: var(--muted); }

.ph-block { border-bottom: 1px solid var(--line); padding: 14px 4px; text-align: center; }
.ph-block:last-of-type { border-bottom: 0; }
.ph-block p { margin: 0 0 8px; font-size: 11px; font-weight: 600; }
.ph-block small { display: block; color: var(--muted); font-size: 9px; margin: -4px 0 8px; }
.ph-btn { display: inline-block; border: 1px solid var(--ink); border-radius: 6px; padding: 5px 12px; font-size: 10px; font-weight: 600; }
.ph-btn.fill { background: var(--teal); border-color: var(--teal); color: #fff; }
.ph-input { border: 1px solid #cfd8de; border-radius: 6px; padding: 6px 8px; color: #97a6b0; font-size: 10px; text-align: left; margin-bottom: 8px; }

.ph-modal-wrap { position: relative; flex: 1; background: #5c6a73; display: flex; align-items: center; justify-content: center; padding: 14px; }
.ph-modal { background: #fff; border-radius: 12px; width: 100%; text-align: center; overflow: hidden; }
.ph-modal .ring { width: 64px; height: 64px; border-radius: 50%; margin: 16px auto 10px; display: grid; place-items: center; background: conic-gradient(var(--red) 93%, #e3ebee 0); }
.ph-modal .ring b { width: 54px; height: 54px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 13px; line-height: 1.1; }
.ph-modal .ring b small { display: block; font-size: 7px; color: var(--muted); }
.ph-modal p { padding: 0 16px; margin: 0 0 12px; font-weight: 600; }
.ph-modal .acts { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.ph-modal .acts span { padding: 10px 4px; font-weight: 700; color: var(--muted); }
.ph-modal .acts span + span { border-left: 1px solid var(--line); color: var(--teal); }

.ph-sign { border: 1px dashed #b9c6ce; border-radius: 8px; height: 90px; margin: 8px 0 10px; position: relative; }
.ph-sign svg { position: absolute; inset: 10px 18px; width: calc(100% - 36px); height: calc(100% - 20px); color: var(--ink); }

/* Hero composition */
.hero-device { position: absolute; z-index: 2; right: -120px; bottom: -30px; width: 190px; filter: drop-shadow(0 18px 30px rgba(12, 30, 41, .25)); }
.hero-float { position: absolute; z-index: 2; left: -130px; top: 372px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow); font-size: .8rem; display: flex; gap: 10px; align-items: center; }
.hero-float b { display: block; font-size: .85rem; }
.hero-float span { color: var(--muted); }
.hero-float .ico { width: 32px; height: 32px; border-radius: 8px; background: var(--teal-light); color: var(--teal); display: grid; place-items: center; }
.hero-float .ico svg { width: 18px; height: 18px; }
@media (max-width: 1100px) { .hero-device { right: -60px; } .hero-float { left: -70px; } }
@media (max-width: 560px) { .hero-float { display: none; } .hero-device { width: 130px; right: -30px; bottom: -40px; } }

/* ---------- Document cards (compliance downloads) ---------- */

.doc-card { display: flex; gap: 18px; align-items: flex-start; }
.doc-card .icon { margin: 0; flex: none; }
.doc-card h3 { font-size: 1.05rem; }

/* ---------- FAQ ---------- */

.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-weight: 650; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 0 22px; color: var(--muted); }

/* ---------- CTA ---------- */

.cta { background: linear-gradient(120deg, var(--teal-dark), var(--teal)); color: #e3f3f1; border-radius: 20px; padding: 56px; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin-bottom: 8px; }
.cta p { margin: 0; max-width: 560px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 600px) { .cta { padding: 32px 24px; } }

/* ---------- Forms ---------- */

.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
input, select, textarea { width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid #cfd8de; border-radius: 8px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(11, 122, 114, .15); }
textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--muted); }

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); margin: 0; }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .icon { margin: 0; width: 40px; height: 40px; flex: none; }
.contact-list .icon svg { width: 20px; height: 20px; }
.contact-list b { display: block; }
.contact-list span { color: var(--muted); font-size: .94rem; }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: #a9bac5; padding: 72px 0 0; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand .brand { color: #fff; margin-bottom: 16px; }
.footer-brand .brand img { background: #fff; border-radius: 8px; padding: 4px 6px; height: 40px; }
.footer-brand .brand small { color: #8ea2ae; }
.footer-brand p { max-width: 320px; }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #c9d6de; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #20394c; padding: 24px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: #8ea2ae; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Utility ---------- */

.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-32 { margin-top: 32px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

/* ---------- Print (manuals are printed and kept in the cab) ---------- */

@media print {
  .topbar, .site-header, .site-footer, .toc, .cta, .no-print, .skip-link { display: none !important; }
  body { font-size: 11pt; color: #000; }
  .page-hero { background: none; color: #000; padding: 0 0 16px; border-bottom: 2px solid #000; }
  .page-hero::after { display: none; }
  .page-hero h1, .page-hero .lead, .doc-meta, .doc-meta strong { color: #000; }
  .breadcrumb { display: none; }
  .doc-layout { display: block; padding: 16px 0; }
  .doc { max-width: none; }
  .doc section { break-inside: auto; page-break-inside: auto; border: 0; padding-bottom: 8px; margin-bottom: 16px; }
  .doc h2, .doc h3 { break-after: avoid; }
  .phone { box-shadow: none; border: 2px solid #000; }
  .doc-figure { grid-template-columns: 1fr 200px; }
  .notice, table { break-inside: avoid; }
  a { color: #000; }
  .placeholder { border: 0; background: none; }
}
