/* Layout idea: a confident clinical brand — deep navy hero bands, white and pale-steel sections that alternate,
   line illustrations of each device in navy with an arterial-red accent, cards before tables. */
:root {
  --bg: #ffffff;
  --alt: #f1f4f7;
  --navy: #0f2b40;
  --ink: #0e2233;
  --muted: #586977;
  --line: #dbe2e8;
  --accent: #c8102e;
  --accent-soft: #fbe8eb;
  --teal: #0a7a83;
  --on-navy: #e8f0f6;
  --on-navy-muted: #a9bccb;
  --link: #0b5f8a;
  --font-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --maxw: 1180px;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(14, 34, 51, .06), 0 6px 20px rgba(14, 34, 51, .06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1720; --alt: #111f2b; --navy: #0a1e2d; --ink: #e5edf3; --muted: #9fb1c0; --line: #233646;
    --accent: #e8455f; --accent-soft: #3a1a22; --teal: #4fc1c9; --on-navy: #e8f0f6; --on-navy-muted: #9fb3c3; --link: #7fc3ea;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c1720; --alt: #111f2b; --navy: #0a1e2d; --ink: #e5edf3; --muted: #9fb1c0; --line: #233646;
  --accent: #e8455f; --accent-soft: #3a1a22; --teal: #4fc1c9; --on-navy: #e8f0f6; --on-navy-muted: #9fb3c3; --link: #7fc3ea;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.55; }
img, svg { max-width: 100%; }
a { color: var(--link); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 700; letter-spacing: -0.015em; }
h2 { font-size: clamp(24px, 2.8vw, 32px); font-weight: 650; letter-spacing: -0.01em; }
h3 { font-size: 19px; font-weight: 650; }
p { margin: 0; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.prose { max-width: 68ch; display: grid; gap: 14px; }
.prose ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.eyebrow { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--teal); }
/* Preview only: claims the owner must confirm before launch */
.confirm { text-decoration: underline dotted var(--accent); text-underline-offset: 4px; text-decoration-thickness: 2px; }

/* Preview banner */
.preview-bar { background: #fff4d6; color: #5a4300; font-size: 14px; padding: 7px 0; }
.preview-bar .wrap { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* Header */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 21px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 32px; height: 32px; flex: none; }
.brand small { font-weight: 500; color: var(--muted); font-size: 15px; }
.nav { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; font-size: 15px; font-weight: 600; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--accent); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; font: 650 16px/1 var(--font-body); text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: transparent; color: var(--on-navy); border-color: rgba(232, 240, 246, .35); }
.btn-light:hover { border-color: var(--on-navy); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }

/* Breadcrumbs (on navy hero) */
.crumbs { font-size: 14px; padding: 18px 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; color: var(--on-navy-muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; opacity: .6; }
.crumbs a { color: var(--on-navy-muted); }
.crumbs [aria-current] { color: var(--on-navy); }

/* Hero */
.hero { background: var(--navy); color: var(--on-navy); padding: 0 0 52px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; top: -160px; width: 520px; height: 520px; border-radius: 50%; border: 1px solid rgba(232, 240, 246, .08); pointer-events: none; }
.hero .grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 44px; align-items: center; padding-top: 34px; }
.hero-copy { display: grid; gap: 18px; }
.hero .eyebrow { color: #7fd3d9; }
.lede { font-size: 19px; color: var(--on-navy-muted); max-width: 60ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 4px 0 0; padding: 0; }
.pills li { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--on-navy); background: rgba(232, 240, 246, .07); border: 1px solid rgba(232, 240, 246, .14); padding: 6px 12px; border-radius: 999px; }
.pills svg { width: 16px; height: 16px; flex: none; }
.hero-art { background: rgba(232, 240, 246, .04); border: 1px solid rgba(232, 240, 246, .1); border-radius: 18px; padding: 22px; display: grid; gap: 16px; }
.hero-art .art { color: var(--on-navy); display: grid; place-items: center; min-height: 220px; }
.hero-art .art svg { width: 100%; max-width: 360px; height: auto; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(232, 240, 246, .12); border-radius: 12px; overflow: hidden; margin: 0; }
.facts div { background: var(--navy); padding: 12px 14px; display: grid; gap: 2px; }
.facts dt { font-size: 13px; color: var(--on-navy-muted); }
.facts dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--on-navy); }

/* Sections */
section.block { padding: 64px 0; }
section.block.alt { background: var(--alt); }
.section-head { display: grid; gap: 8px; margin-bottom: 28px; max-width: 72ch; }
.section-head .muted { font-size: 18px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; display: grid; gap: 10px; align-content: start; text-decoration: none; color: var(--ink); position: relative; }
a.card:hover { border-color: var(--accent); }
a.card:hover h3 { color: var(--accent); }
.card .ico { width: 64px; height: 64px; color: var(--navy); border-radius: 14px; background: var(--alt); display: grid; place-items: center; }
:root[data-theme="dark"] .card .ico, .card .ico { color: var(--ink); }
.card .ico svg { width: 46px; height: 46px; }
.card p { color: var(--muted); font-size: 16px; }
.card .meta { font-size: 13px; font-weight: 700; color: var(--teal); letter-spacing: .04em; text-transform: uppercase; }
.card .row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.card-link { font-weight: 650; color: var(--accent); }

.lines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.line-card { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.line-card .top { background: var(--navy); color: var(--on-navy); padding: 22px; display: flex; gap: 16px; align-items: center; }
.line-card .top svg { width: 56px; height: 56px; flex: none; }
.line-card .top h3 a { color: var(--on-navy); text-decoration: none; }
.line-card .top p { color: var(--on-navy-muted); font-size: 15px; }
.line-card ul { list-style: none; margin: 0; padding: 8px 22px 18px; display: grid; }
.line-card li + li { border-top: 1px solid var(--line); }
.line-card li a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; color: var(--ink); text-decoration: none; }
.line-card li a:hover { color: var(--accent); }
.line-card li a span { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }

/* Benefits */
.benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.benefit { display: grid; gap: 10px; align-content: start; }
.benefit .ico { width: 52px; height: 52px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.benefit .ico svg { width: 26px; height: 26px; }
.benefit p { color: var(--muted); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; list-style: none; margin: 0; padding: 0; position: relative; }
.steps li { padding: 0 24px 0 0; display: grid; gap: 8px; position: relative; align-content: start; }
.steps li::before { counter-increment: step; content: counter(step); width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--on-navy); display: grid; place-items: center; font: 700 18px var(--font-display); position: relative; z-index: 1; }
.steps li::after { content: ""; position: absolute; left: 44px; right: 0; top: 22px; border-top: 2px dashed var(--line); }
.steps li:last-child::after { display: none; }
.steps p { color: var(--muted); }

/* Brands strip */
.brands { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; padding: 0; margin: 0; align-items: center; }
.brands li { font: 700 18px var(--font-display); color: var(--muted); letter-spacing: -.01em; }
.chiplinks { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.chiplinks a { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; background: var(--bg); color: var(--ink); text-decoration: none; font-weight: 600; }
.chiplinks a:hover { border-color: var(--accent); color: var(--accent); }
.chiplinks svg { width: 22px; height: 22px; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 650; color: var(--muted); font-size: 13px; background: var(--alt); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: color-mix(in srgb, var(--alt) 60%, transparent); }
td.num { font-variant-numeric: tabular-nums; }
td .prod { font-weight: 650; color: var(--ink); }
td a.prod { color: var(--link); }
.row-cta { white-space: nowrap; text-align: right; }
.row-cta button { background: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font: 650 14px var(--font-body); color: var(--accent); cursor: pointer; }
.row-cta button:hover { border-color: var(--accent); background: var(--accent-soft); }
.table-group + .table-group { margin-top: 36px; }
.table-group h3 { margin-bottom: 12px; }
.table-group .muted { margin: -6px 0 12px; }

/* Spec */
.spec dl { margin: 0; display: grid; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.spec dl div { display: grid; grid-template-columns: minmax(150px, .8fr) minmax(0, 1.2fr); gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.spec dl div:last-child { border-bottom: 0; }
.spec dt { color: var(--muted); font-size: 15px; }
.spec dd { margin: 0; font-variant-numeric: tabular-nums; }
.spec-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; font-size: 14px; font-variant-numeric: tabular-nums; background: var(--alt); }
.note-card { background: var(--alt); border-radius: var(--radius); padding: 20px; display: grid; gap: 10px; }
.note-card svg { width: 72px; height: 72px; color: var(--ink); }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 82ch; }
.faq details { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.faq summary { cursor: pointer; font-weight: 650; font-size: 17px; }
.faq details[open] summary { margin-bottom: 8px; }
.faq p { color: var(--muted); }

/* Lead form */
.lead { background: var(--navy); color: var(--on-navy); }
.lead .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 44px; padding-top: 60px; padding-bottom: 64px; }
.lead-copy { display: grid; gap: 14px; align-content: start; }
.lead-copy p, .lead-copy li { color: var(--on-navy-muted); }
.lead-copy ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
form.quote { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; background: var(--bg); color: var(--ink); border-radius: 16px; padding: 24px; box-shadow: var(--shadow); }
form.quote .full { grid-column: 1 / -1; }
form.quote label { display: grid; gap: 6px; font-size: 14px; font-weight: 650; min-width: 0; }
form.quote input { width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); font: 16px var(--font-body); }
form.quote .product-pill { font-size: 14px; color: var(--muted); background: var(--alt); border-radius: 8px; padding: 8px 12px; }
form.quote .product-pill strong { color: var(--ink); }
form.quote .legal { font-size: 13px; color: var(--muted); }
.form-msg { grid-column: 1 / -1; font-size: 15px; padding: 10px 12px; border-radius: 8px; background: var(--alt); display: none; }
.form-msg.show { display: block; }

/* Footer */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding: 36px 0 44px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.site-footer h3 { font-size: 14px; color: var(--ink); margin-bottom: 8px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-footer a { color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px; font-size: 14px; max-width: calc(100% - 32px); display: none; z-index: 10; }
.toast.show { display: block; }

@media (max-width: 960px) {
  .hero .grid, .lead .wrap, .spec-grid { grid-template-columns: 1fr; }
  .lines { grid-template-columns: 1fr; }
  .benefits { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 20px; }
  .steps li::after { display: none; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  form.quote, .facts { grid-template-columns: 1fr; }
  .benefits { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .nav { gap: 12px; }
  section.block { padding: 44px 0; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
svg .a { stroke: var(--accent); }
.hero svg .a { stroke: #ff6b7f; }
.line-card ul { align-content: start; }
table.models { table-layout: fixed; min-width: 640px; }
table.models th:nth-child(1) { width: 32%; }
table.models th:nth-child(2) { width: 20%; }
table.models th:nth-child(4) { width: 120px; }
/* Preview only: fields the owner must fill in */
.todo { background: #fff4d6; color: #5a4300; border-radius: 4px; padding: 1px 6px; font-weight: 600; }
.site-footer .wrap { grid-template-columns: 2fr repeat(4, 1fr); }
@media (max-width: 960px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } }
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .contact-grid { grid-template-columns: 1fr; } }
.audience { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
.audience li { display: flex; gap: 10px; align-items: flex-start; }
.audience li svg { width: 22px; height: 22px; flex: none; color: var(--teal); margin-top: 2px; }
@media (max-width: 700px) { .audience { grid-template-columns: 1fr; } }
/* Preview-only English site map */
.preview-bar a { color: #5a4300; font-weight: 700; }
.tree, .tree ul { list-style: none; margin: 0; padding: 0; }
.tree ul { margin-left: 22px; padding-left: 18px; border-left: 2px solid var(--line); }
.tree li { margin: 10px 0; }
.node { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
.node a { font-weight: 700; color: var(--ink); text-decoration: none; }
.node a:hover { color: var(--accent); }
.node .es { color: var(--muted); font-size: 14px; }
.node .kw { font-size: 13px; color: var(--teal); font-weight: 700; text-align: right; white-space: nowrap; }
.node p { grid-column: 1 / -1; color: var(--muted); font-size: 15px; }
.node.l0 { border-color: var(--navy); border-width: 2px; }
.node.l1 { background: var(--alt); }
.badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-radius: 4px; padding: 1px 6px; margin-right: 6px; background: var(--alt); color: var(--muted); vertical-align: 2px; }
.badge.cat { background: #e6f4f5; color: var(--teal); }
.badge.prod { background: var(--accent-soft); color: var(--accent); }
.flow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; list-style: none; margin: 0; padding: 0; }
.flow li { background: var(--alt); border-radius: 999px; padding: 8px 14px; font-weight: 600; }
.flow li + li::before { content: "→"; margin-right: 10px; color: var(--muted); }

/* Why this platform exists: problem -> answer cards */
.why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.why article { background: var(--bg); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; display: grid; gap: 10px; align-content: start; }
.why .k, .why .ans b { font: 700 12px var(--font-display); letter-spacing: .08em; text-transform: uppercase; }
.why .k { color: var(--accent); }
.why h3 { margin: 0; font-size: 19px; line-height: 1.25; }
.why .ans { color: var(--muted); font-size: 16px; padding-top: 12px; border-top: 1px dashed var(--line); margin: 0; }
.why .ans b { display: block; color: var(--teal); margin-bottom: 4px; }
.why-intro { max-width: 68ch; color: var(--muted); margin: -8px 0 24px; }
@media (max-width: 980px) { .why { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .why { grid-template-columns: 1fr; } }

/* Preview-only language switch */
.lang-switch { margin-left: auto; display: inline-flex; border: 1px solid #c9a94a; border-radius: 999px; overflow: hidden; }
.lang-switch button { font: 700 13px var(--font-display); letter-spacing: .04em; padding: 4px 12px; border: 0; background: transparent; color: #5a4300; cursor: pointer; }
.lang-switch button[aria-pressed="true"] { background: #5a4300; color: #fff4d6; }
.lang-switch button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Honeypot field for spam bots (hidden from people and screen readers) */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
