/* =====================================================================
   CREATRONIX — STYLES
   Visual identity taken from the Creatronix product brochures:
   white and soft-blue pages, navy bands, brochure blue for action,
   brochure red for product tags and alerts, Inter type, illustrations
   that switch between their light and dark versions with the theme.
   Layout: sticky header with Solutions mega-menu; 1200px column;
   sections alternate between page and soft bands.
   ===================================================================== */

:root {
  /* colour — light (brochure palette) */
  --bg: #FFFFFF;
  --soft: #F2F6FB;
  --ink: #0D1A2C;
  --ink-2: #4B5B72;
  --ink-3: #7A889C;
  --rule: #DBE3EE;
  --card: #FFFFFF;
  --card-s: #E1E8F2;
  --brand: #2D5A9B;
  --brand-2: #1D3F72;
  --brand-soft: #E8F0FA;
  --on-brand: #FFFFFF;
  --accent: #A3172B;
  --accent-soft: #FBE9EC;
  --ok: #2E8B4F;  --ok-soft: #E6F4EA;
  --warn: #9A6100; --warn-soft: #FFF3DC;
  --band: #0F2547;
  --band-ink: #FFFFFF;
  --band-ink-2: #B9C9E2;
  --logo-chip: #FFFFFF;
  --shadow: 0 1px 2px rgba(13, 26, 44, .04), 0 10px 30px -18px rgba(13, 26, 44, .28);
  --shadow-lg: 0 28px 60px -28px rgba(13, 26, 44, .45);

  /* type */
  --f-display: "Inter Tight", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  /* layout */
  --max: 1200px;
  --header-h: 76px;
  --r: 14px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A1120; --soft: #0E1828; --ink: #E9EFF8; --ink-2: #A2B2C8; --ink-3: #7487A1; --rule: #22314B;
    --card: #111C30; --card-s: #21314D; --brand: #79A6EA; --brand-2: #A9C6F3; --brand-soft: #15243C; --on-brand: #0A1120;
    --accent: #F06A7D; --accent-soft: #2A1620; --ok: #4CC27A; --ok-soft: #12291D; --warn: #F3B443; --warn-soft: #2B2112;
    --band: #0F2547; --band-ink: #FFFFFF; --band-ink-2: #B9C9E2; --logo-chip: #FFFFFF;
    --shadow: 0 1px 2px rgba(0,0,0,.35), 0 10px 30px -18px rgba(0,0,0,.7);
    --shadow-lg: 0 28px 60px -28px rgba(0,0,0,.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0A1120; --soft: #0E1828; --ink: #E9EFF8; --ink-2: #A2B2C8; --ink-3: #7487A1; --rule: #22314B;
  --card: #111C30; --card-s: #21314D; --brand: #79A6EA; --brand-2: #A9C6F3; --brand-soft: #15243C; --on-brand: #0A1120;
  --accent: #F06A7D; --accent-soft: #2A1620; --ok: #4CC27A; --ok-soft: #12291D; --warn: #F3B443; --warn-soft: #2B2112;
  --band: #0F2547; --band-ink: #FFFFFF; --band-ink-2: #B9C9E2; --logo-chip: #FFFFFF;
  --shadow: 0 1px 2px rgba(0,0,0,.35), 0 10px 30px -18px rgba(0,0,0,.7);
  --shadow-lg: 0 28px 60px -28px rgba(0,0,0,.8);
  color-scheme: dark;
}

/* light/dark versions of the same illustration */
.th-dark { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .th-light { display: none !important; }
  :root:not([data-theme="light"]) .th-dark { display: block !important; }
}
:root[data-theme="dark"] .th-light { display: none !important; }
:root[data-theme="dark"] .th-dark { display: block !important; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.65 var(--f-body); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 70; background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-2); }
h1, h2, h3, h4 { font-family: var(--f-display); color: var(--ink); margin: 0; line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; }
h1, h2.h1 { font-size: clamp(2.3rem, 5vw, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.14rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--brand); color: var(--on-brand); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 840px; }
.section { padding-block: clamp(56px, 7vw, 96px); }
.section.soft { background: var(--soft); }
.section.band { background: var(--band); color: var(--band-ink); }
.section.band h2, .section.band h3 { color: var(--band-ink); }
.section.band .lede, .section.band p { color: var(--band-ink-2); }

.eyebrow { font: 700 .74rem/1.2 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--brand); }
.eyebrow.red { color: var(--accent); }
.lede { font-size: 1.12rem; color: var(--ink-2); max-width: 66ch; }
.sec-head { display: grid; gap: 12px; margin-bottom: 40px; max-width: 780px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 56px; align-items: start; }
.split > * { min-width: 0; }
.split > div:first-child { display: grid; gap: 14px; }
.prose { display: grid; gap: 16px; color: var(--ink-2); font-size: 1.06rem; max-width: 68ch; }
.split.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.split.even > div { display: block; }
@media (max-width: 880px) { .split, .split.even { grid-template-columns: 1fr; gap: 22px; } .split.even { gap: 48px; } }

/* product tag pill — as on the brochures */
.pill { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font: 700 .86rem/1.2 var(--f-body); letter-spacing: .01em; width: max-content; max-width: 100%; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.pill.blue { background: var(--brand-soft); color: var(--brand); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 .95rem/1 var(--f-body); padding: 14px 22px; border-radius: 10px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-2); color: var(--on-brand); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--rule); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-light { background: #FFFFFF; color: #0F2547; }
.btn-light:hover { background: #E8F0FA; color: #0F2547; }
.btn-line { background: transparent; color: var(--band-ink); border-color: rgba(255,255,255,.35); }
.btn-line:hover { border-color: #FFFFFF; color: #FFFFFF; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- header ---------- */
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 60; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--rule); }
.topbar-in { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; color: var(--ink); }
.brand-tile { width: 48px; height: 48px; border-radius: 12px; background: var(--logo-chip); display: grid; place-items: center; flex: none; box-shadow: 0 0 0 1px var(--rule); }
.brand-tile img { width: 38px; height: auto; }
.brand-txt { display: grid; gap: 1px; }
.brand-word { font: 800 1.32rem/1 var(--f-display); letter-spacing: -.02em; color: var(--ink); }
.brand-sub { font-size: .76rem; color: var(--ink-3); letter-spacing: .01em; }
@media (max-width: 460px) { .brand-sub { display: none; } }

.nav { display: flex; align-items: center; gap: 4px; }
.nav-link { font: 500 .97rem/1 var(--f-body); color: var(--ink); text-decoration: none; padding: 11px 14px; border-radius: 8px; transition: background .15s, color .15s; }
.nav-link:hover { background: var(--soft); color: var(--ink); }
.nav-link[aria-current="page"] { color: var(--brand); }
.nav-cta { background: var(--brand); color: var(--on-brand); margin-left: 8px; }
.nav-cta:hover, .nav-cta[aria-current="page"] { background: var(--brand-2); color: var(--on-brand); }
.nav-dd { position: relative; display: flex; align-items: center; }
.nav-dd > .nav-link { padding-right: 6px; }
.nav-dd.is-active > .nav-link { color: var(--brand); }
.dd-toggle { display: grid; place-items: center; width: 32px; height: 36px; border: 0; background: none; color: var(--ink-3); border-radius: 8px; cursor: pointer; }
.dd-toggle:hover { background: var(--soft); color: var(--ink); }
.dd-toggle svg { transition: transform .2s; }
.nav-dd.open .dd-toggle { color: var(--brand); }
.nav-dd.open .dd-toggle svg { transform: rotate(180deg); }

.mega { position: absolute; top: calc(100% + 12px); right: -64px; width: min(760px, calc(100vw - 32px)); background: var(--card); border: 1px solid var(--rule); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 18px; }
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.mega-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.mgroup { display: grid; gap: 2px; align-content: start; }
.mhead { font: 700 .68rem/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); padding: 8px 10px 6px; }
.mitem { display: grid; grid-template-columns: 38px 1fr; gap: 0 12px; align-items: center; padding: 9px 10px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.mitem:hover, .mitem[aria-current="page"] { background: var(--brand-soft); color: var(--ink); }
.mitem b { font-weight: 600; font-size: .94rem; line-height: 1.25; }
.mitem small { grid-column: 2; color: var(--ink-3); font-size: .76rem; line-height: 1.3; }
.micon { grid-row: span 2; width: 38px; height: 38px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.mitem:hover .micon { background: var(--card); }
.mega-all { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 10px 4px; border-top: 1px solid var(--rule); text-decoration: none; font-weight: 600; font-size: .94rem; color: var(--brand); }
.mega-all span { margin-right: auto; }

.top-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--rule); background: var(--card); color: var(--ink); cursor: pointer; }
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.burger { display: none; }

@media (max-width: 940px) {
  .burger { display: grid; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 2px; background: var(--bg); border-bottom: 1px solid var(--rule); box-shadow: var(--shadow-lg); padding: 10px max(20px, env(safe-area-inset-right, 0px)) 18px max(20px, env(safe-area-inset-left, 0px)); max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .nav:not(.open) { display: none; }
  .nav-link { padding: 14px 12px; font-size: 1.02rem; }
  .nav-cta { margin: 8px 0 0; text-align: center; }
  .nav-dd { flex-wrap: wrap; }
  .nav-dd > .nav-link { flex: 1; }
  .dd-toggle { width: 46px; height: 46px; }
  .mega { position: static; width: 100%; box-shadow: none; border: 0; padding: 0 0 8px 6px; background: transparent; }
  .mega::before { display: none; }
  .mega-grid { grid-template-columns: 1fr; gap: 6px; }
}

/* ---------- home hero ---------- */
.hero { padding-block: clamp(48px, 7vw, 88px) 0; background: linear-gradient(180deg, var(--soft), var(--bg) 70%); }
.hero-in { display: grid; gap: 22px; max-width: 860px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lede { font-size: 1.2rem; }
.hero-figure { margin: clamp(36px, 5vw, 56px) 0 0; display: grid; gap: 18px; }
.scene { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--rule); background: var(--card); }
.scene img { width: 100%; }

/* numbered legend (matches the markers in the illustrations) */
.legend { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 16px 22px; }
.legend li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; }
.legend .n { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font: 700 .82rem/1 var(--f-body); font-variant-numeric: tabular-nums; }
.legend b { display: block; font-weight: 700; font-size: .96rem; line-height: 1.3; }
.legend span { color: var(--ink-2); font-size: .86rem; line-height: 1.4; display: block; }

/* ---------- product family (home) ---------- */
.family { display: grid; gap: 22px; }
.fam-card { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0; background: var(--card); border: 1px solid var(--rule); border-radius: 20px; overflow: hidden; text-decoration: none; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.fam-card:hover { border-color: var(--brand); box-shadow: var(--shadow); color: var(--ink); }
.fam-media { background: var(--soft); display: grid; align-items: center; min-height: 240px; }
.fam-media img { width: 100%; height: 100%; object-fit: cover; }
.fam-body { padding: clamp(22px, 3vw, 36px); display: grid; gap: 12px; align-content: center; }
.fam-body p { color: var(--ink-2); }
.fam-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.fam-list span { font-size: .84rem; font-weight: 600; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--rule); color: var(--ink-2); }
@media (max-width: 860px) { .fam-card { grid-template-columns: 1fr; } .fam-media { min-height: 0; } }

/* ---------- tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.tile { display: grid; grid-template-rows: auto auto auto 1fr auto; background: var(--card); border: 1px solid var(--rule); border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--ink); transition: border-color .2s, box-shadow .2s, transform .2s; }
.tile:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.tile-media { aspect-ratio: 12 / 7; background: var(--soft); overflow: hidden; display: grid; place-items: center; color: var(--brand); border-bottom: 1px solid var(--rule); }
.tile-media img { width: 100%; height: 100%; object-fit: cover; }
.tile-media.contain img { object-fit: contain; padding: 14px; }
.tile-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 18px 22px 0; }
.tile-code { font: 700 .72rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.tile h3 { padding: 8px 22px 0; }
.tile p { padding: 8px 22px 0; color: var(--ink-2); font-size: .95rem; }
.tile-go { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--brand); padding: 14px 22px 20px; }
.tile:hover .tile-go svg { transform: translateX(3px); }
.tile-go svg { transition: transform .2s; }
.badge { font: 700 .66rem/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); white-space: nowrap; }
.badge.soon { background: var(--soft); color: var(--ink-3); border: 1px solid var(--rule); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { font: 500 .92rem/1 var(--f-body); padding: 10px 14px; border-radius: 999px; cursor: pointer; border: 1px solid var(--rule); background: var(--card); color: var(--ink); display: inline-flex; gap: 8px; align-items: center; }
.chip span { font-size: .78rem; color: var(--ink-3); }
.chip:hover { border-color: var(--brand); }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.chip[aria-pressed="true"] span { color: var(--on-brand); opacity: .8; }

/* ---------- inner page head ---------- */
.page-head { padding-block: clamp(48px, 6vw, 84px) clamp(32px, 4vw, 52px); background: linear-gradient(180deg, var(--soft), var(--bg)); border-bottom: 1px solid var(--rule); }
.page-head .wrap { display: grid; gap: 16px; }

/* ---------- cards & grids ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 18px; }
.cards.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .cards.c3, .cards.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards.c3, .cards.c2, .cards.c4 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: 22px; display: grid; gap: 9px; align-content: start; }
.section.soft .card { border-color: var(--card-s); }
.card p { color: var(--ink-2); font-size: .95rem; }
.card ul { margin: 2px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; color: var(--ink-2); font-size: .93rem; }
.card li { display: grid; grid-template-columns: 14px 1fr; gap: 8px; }
.card li::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--brand); margin-top: .6em; }
.ic { width: 44px; height: 44px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 4px; }
.ic.red { background: var(--accent-soft); color: var(--accent); }
.card .tag { justify-self: start; font: 700 .64rem/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; }
.tag.available { background: var(--ok-soft); color: var(--ok); }
.tag.upcoming { background: var(--warn-soft); color: var(--warn); }
.tag.roadmap { background: var(--soft); color: var(--ink-3); border: 1px solid var(--rule); }
.card.head { padding: 0; overflow: hidden; }
.card.head .card-h { background: var(--brand); color: var(--on-brand); padding: 18px 22px; display: grid; gap: 2px; }
.card.head .card-h b { font: 700 1.08rem/1.2 var(--f-display); }
.card.head .card-h span { font-size: .84rem; opacity: .85; }
.card.head ul { padding: 18px 22px 22px; }

/* stat strip */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; margin: 0; }
.stats > div { padding: 18px 20px; display: flex; flex-direction: column; gap: 3px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 0 -1px -1px 0; min-width: 0; }
.stats .k { font: 700 .64rem/1.4 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.stats .v { font: 800 1.5rem/1.15 var(--f-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stats .l { font-size: .84rem; color: var(--ink-2); line-height: 1.35; }

/* numbered steps — real sequences only */
.steps4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps4.s3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps4 li { counter-increment: s; border-top: 3px solid var(--brand); padding-top: 16px; display: grid; gap: 6px; align-content: start; }
.steps4 li::before { content: counter(s, decimal-leading-zero); font: 800 1.6rem/1 var(--f-display); color: var(--brand); }
.steps4 b { font: 700 1.05rem/1.25 var(--f-display); }
.steps4 span { color: var(--ink-2); font-size: .93rem; }
@media (max-width: 900px) { .steps4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .steps4.s3 { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .steps4 { grid-template-columns: 1fr; } }
.section.band .steps4 li { border-top-color: var(--band-ink-2); }
.section.band .steps4 li::before { color: #FFFFFF; }
.section.band .steps4 b { color: #FFFFFF; }
.section.band .steps4 span { color: var(--band-ink-2); }

/* motor protection strip */
.protect { background: var(--card); border: 1px solid var(--rule); border-radius: 20px; padding: clamp(22px, 3vw, 34px); display: grid; gap: 22px; }
.protect-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 28px; }
.protect-item { display: grid; grid-template-columns: 48px 1fr; gap: 14px; }
.protect-item .ic { margin: 0; width: 48px; height: 48px; border-radius: 50%; }
.protect-item b { display: block; font: 700 1rem/1.3 var(--f-display); margin-bottom: 3px; }
.protect-item span { color: var(--ink-2); font-size: .92rem; }
@media (max-width: 900px) { .protect-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .protect-grid { grid-template-columns: 1fr; } }

/* tables */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--r); background: var(--card); }
.tbl { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 520px; }
.tbl th { text-align: left; font: 700 .7rem/1.2 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--brand); background: var(--soft); padding: 14px 18px; border-bottom: 1px solid var(--rule); }
.tbl td { padding: 13px 18px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td:first-child { font-weight: 600; }
.tbl .yes, .tbl .no { text-align: center; }
.tbl th.c { text-align: center; }
.tick { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); }
.dash { color: var(--ink-3); font-weight: 700; }
.spec-list { display: grid; border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; background: var(--card); margin: 0; }
.spec-list > div { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); gap: 18px; padding: 14px 20px; border-bottom: 1px solid var(--rule); }
.spec-list > div:last-child { border-bottom: 0; }
.spec-list dt { color: var(--ink-3); font-size: .9rem; font-weight: 600; }
.spec-list dd { margin: 0; font-weight: 500; }
@media (max-width: 520px) { .spec-list > div { grid-template-columns: 1fr; gap: 4px; } }
.spec-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; align-items: start; }
.spec-groups h3 { font: 700 .72rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.note { margin-top: 14px; color: var(--ink-3); font-size: .88rem; }

/* growth ladder (One platform, three steps) */
.ladder { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: l; }
.rung { counter-increment: l; display: grid; gap: 6px; align-content: start; padding: 20px 22px; border-radius: var(--r); border: 1px solid var(--rule); background: var(--card); text-decoration: none; color: var(--ink); position: relative; }
.rung::before { content: counter(l); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font: 800 .9rem/1 var(--f-body); margin-bottom: 4px; }
.rung b { font: 700 1.05rem/1.25 var(--f-display); }
.rung span { color: var(--ink-2); font-size: .92rem; }
.rung:hover { border-color: var(--brand); color: var(--ink); }
.rung.here { border: 2px solid var(--brand); background: var(--brand-soft); }
.rung.here::before { background: var(--brand); color: var(--on-brand); }
.rung .badge { position: absolute; top: 18px; right: 18px; background: var(--brand); color: var(--on-brand); }
@media (max-width: 760px) { .ladder { grid-template-columns: 1fr; } }

/* two-column comparison (before / after) */
.vs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.vs > div { border-radius: var(--r); padding: 22px 24px; display: grid; gap: 12px; align-content: start; }
.vs .before { background: var(--card); border: 1px solid var(--rule); }
.vs .after { background: var(--ok-soft); border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent); }
.vs h3 { display: flex; align-items: center; gap: 10px; }
.vs ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.vs li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; color: var(--ink-2); }
.vs li::before { content: "–"; color: var(--ink-3); font-weight: 700; }
.vs .after li::before { content: "✓"; color: var(--ok); }
@media (max-width: 720px) { .vs { grid-template-columns: 1fr; } }

/* figures */
.figure { margin: 0; display: grid; gap: 12px; }
.figure .frame { border-radius: 18px; overflow: hidden; border: 1px solid var(--rule); background: var(--card); }
.figure .frame.scroll { overflow-x: auto; }
.figure .frame.scroll img { min-width: 720px; }
.figure figcaption { color: var(--ink-3); font-size: .88rem; }

/* fence dashboard mock */
.fdash { background: var(--card); border: 1px solid var(--rule); border-radius: 18px; padding: clamp(18px, 3vw, 28px); display: grid; gap: 20px; box-shadow: var(--shadow); }
.fdash-top { display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; align-items: baseline; }
.fdash-top b { font: 700 1.05rem/1.2 var(--f-display); }
.fdash-top span { color: var(--ink-3); font-size: .85rem; }
.fdash-cols { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; }
.fdash h4 { font: 700 .68rem/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.segs { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; }
.seg { border-radius: 8px; padding: 10px 0; text-align: center; font: 700 .78rem/1 var(--f-body); background: var(--ok-soft); color: var(--ok); }
.seg.alert { background: var(--accent); color: #fff; }
.fstats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.fstats div { border: 1px solid var(--rule); border-radius: 10px; padding: 12px 14px; }
.fstats b { font: 800 1.35rem/1 var(--f-display); display: block; }
.fstats span { font-size: .8rem; color: var(--ink-3); }
.fstats .red b { color: var(--accent); }
.events { list-style: none; margin: 0; padding: 0; display: grid; }
.events li { display: grid; grid-template-columns: 52px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: .9rem; }
.events li:last-child { border-bottom: 0; }
.events time { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.events .bad b { color: var(--accent); }
@media (max-width: 760px) { .fdash-cols { grid-template-columns: 1fr; } .segs { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* connection chips (SMPS) */
.pairs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.pair { background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 14px; display: grid; gap: 4px; }
.pair b { font: 700 1.02rem/1.2 var(--f-mono); }
.pair span { color: var(--ink-2); font-size: .86rem; font-family: var(--f-mono); }
.dots { display: inline-flex; gap: 4px; margin-right: 6px; vertical-align: middle; }
.dots i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
@media (max-width: 900px) { .pairs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 460px) { .pairs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bigrow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px; }
.bigrow > div { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--rule); }
.bigrow .v { font: 800 1.25rem/1.2 var(--f-mono); }
.bigrow b { display: block; font: 700 1.02rem/1.3 var(--f-display); }
.bigrow span { color: var(--ink-2); font-size: .93rem; }
@media (max-width: 720px) { .bigrow { grid-template-columns: 1fr; } }

/* ---------- product page ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .82rem; color: var(--ink-3); padding-top: 24px; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.crumbs [aria-current] { color: var(--ink); }
.p-hero { padding-block: 22px 40px; }
.p-hero-in { display: grid; gap: 18px; max-width: 900px; }
.p-tagline { font: 700 clamp(1.2rem, 2.2vw, 1.55rem)/1.3 var(--f-display); color: var(--brand); letter-spacing: -.015em; max-width: 46ch; }
.p-hero .lede { font-size: 1.1rem; }
.p-hero-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; max-width: var(--max); }
.p-hero-split .media { min-width: 0; }
.p-hero-split .media img { border-radius: 18px; }
@media (max-width: 880px) { .p-hero-split { grid-template-columns: 1fr; gap: 28px; } }
.bullets { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bullets li { display: grid; grid-template-columns: 14px 1fr; gap: 12px; font-weight: 500; }
.bullets li::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--ok); margin-top: .45em; }

/* edition tabs */
.editions { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border: 1px solid var(--rule); border-radius: 12px; background: var(--soft); width: max-content; max-width: 100%; }
.editions button { font: 600 .92rem/1 var(--f-body); padding: 11px 16px; border-radius: 8px; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; }
.editions button:hover { color: var(--ink); }
.editions button[aria-selected="true"] { background: var(--card); color: var(--brand); box-shadow: 0 1px 3px rgba(13,26,44,.12); }

/* CTA band */
.cta-band { background: var(--band); color: var(--band-ink); padding-block: clamp(48px, 6vw, 76px); }
.cta-in { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between; }
.cta-in > div { display: grid; gap: 10px; max-width: 660px; }
.cta-band h2 { color: var(--band-ink); }
.cta-band p { color: var(--band-ink-2); }

/* ---------- about ---------- */
.lifecycle { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--rule); border-radius: 18px; overflow: hidden; background: var(--card); counter-reset: s; }
.stage { padding: 24px 22px; display: grid; gap: 8px; align-content: start; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); counter-increment: s; margin: 0 -1px -1px 0; }
.stage::before { content: counter(s, decimal-leading-zero); font: 800 1.1rem/1 var(--f-display); color: var(--accent); }
.stage p { color: var(--ink-2); font-size: .94rem; }
@media (max-width: 1000px) { .lifecycle { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .lifecycle { grid-template-columns: 1fr; } }
.scale { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.scale > div { border-top: 3px solid var(--brand); padding-top: 18px; display: grid; gap: 8px; }
.scale > div:nth-child(2) { border-top-color: var(--brand-2); }
.scale > div:nth-child(3) { border-top-color: var(--accent); }
.scale p { color: var(--ink-2); }
@media (max-width: 760px) { .scale { grid-template-columns: 1fr; } }
.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; }
.checks li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; color: var(--ink-2); }
.checks li b { color: var(--ink); display: block; font-weight: 700; }
.checks svg { color: var(--ok); margin-top: 2px; }
@media (max-width: 700px) { .checks { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form-card { background: var(--card); border: 1px solid var(--rule); border-radius: 18px; padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .9rem; }
.field label i { font-style: normal; color: var(--ink-3); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; font: 400 1rem/1.4 var(--f-body); color: var(--ink); background: var(--soft); border: 1px solid var(--rule); border-radius: 10px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.field [aria-invalid="true"] { border-color: var(--accent); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: space-between; }
.form-foot small { color: var(--ink-3); max-width: 46ch; }
.form-status { grid-column: 1 / -1; padding: 14px 16px; border-radius: 10px; font-size: .95rem; }
.form-status.ok { background: var(--ok-soft); color: var(--ok); }
.form-status.err { background: var(--accent-soft); color: var(--accent); }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }
.info-list { display: grid; border-top: 1px solid var(--rule); }
.info-list > div { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.info-list .ic { margin: 0; }
.info-list .lbl { display: block; font: 700 .68rem/1.4 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 2px; }
.info-list a, .info-list p { font-weight: 600; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.info-list a:hover { color: var(--brand); }
.aside { display: grid; gap: 24px; }
.aside .note { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* ---------- blog / news ---------- */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.post-card { display: grid; background: var(--card); border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--ink); }
.post-card:hover { border-color: var(--brand); color: var(--ink); }
.post-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-body { padding: 22px; display: grid; gap: 10px; }
.post-body p { color: var(--ink-2); }
.empty { border: 1px dashed var(--rule); border-radius: 16px; padding: 48px 24px; text-align: center; display: grid; gap: 10px; justify-items: center; color: var(--ink-2); background: var(--card); }
.empty h3 { color: var(--ink); }
.post-hero { margin: 28px 0; }
.post-hero img { border-radius: 16px; width: 100%; }
.article { margin-top: 28px; color: var(--ink); font-size: 1.08rem; }
.article h2 { margin-top: 18px; font-size: 1.5rem; }
.article img { border-radius: 12px; }

/* ---------- footer ---------- */
.footer { background: var(--band); color: var(--band-ink-2); padding-block: 56px 28px; font-size: .94rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr) minmax(0, 1.4fr) minmax(0, 1.1fr); gap: 36px; }
.foot-brand { display: grid; gap: 14px; align-content: start; }
.footer .brand-word { color: #FFFFFF; }
.footer .brand-sub { color: var(--band-ink-2); }
.footer .brand-tile { box-shadow: none; }
.foot-brand p { max-width: 34ch; }
.footer h4 { font: 700 .7rem/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: #FFFFFF; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer a { color: var(--band-ink-2); text-decoration: none; }
.footer a:hover { color: #FFFFFF; }
.foot-contact li { display: flex; gap: 10px; align-items: flex-start; }
.foot-contact svg { flex: none; margin-top: 3px; color: #FFFFFF; }
.foot-contact a { overflow-wrap: anywhere; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); font-size: .86rem; }
@media (max-width: 960px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* platform views (tabbed dashboards) */
.views { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
.views > * { min-width: 0; }
.views .editions { overflow-x: auto; flex-wrap: nowrap; max-width: 100%; }
.views .editions button { white-space: nowrap; }
.view { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px; align-items: start; }
.view-copy { display: grid; gap: 12px; position: sticky; top: calc(var(--header-h) + 24px); }
.view-copy h3 { font-size: 1.4rem; }
.view-copy p { color: var(--ink-2); }
.view .frame { box-shadow: var(--shadow); }
@media (max-width: 900px) { .view { grid-template-columns: 1fr; } .view-copy { position: static; } }

/* protocol chip rows */
.chiprows { display: grid; border-top: 1px solid var(--rule); }
.chiprow { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); align-items: center; }
.chiprow > b { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.chiprow > b svg { color: var(--brand); flex: none; }
.pchips { display: flex; flex-wrap: wrap; gap: 8px; }
.pchips span { font-size: .88rem; font-weight: 500; padding: 7px 12px; border-radius: 9px; border: 1px solid var(--rule); background: var(--card); }
@media (max-width: 680px) { .chiprow { grid-template-columns: 1fr; } }

/* big-figure callout */
.callout { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 40px; align-items: center; background: var(--card); border: 1px solid var(--rule); border-radius: 22px; padding: clamp(24px, 4vw, 44px); }
.callout .big { font: 800 clamp(3.4rem, 9vw, 6rem)/1 var(--f-display); letter-spacing: -.04em; color: var(--brand); white-space: nowrap; font-variant-numeric: tabular-nums; }
.callout > div { display: grid; gap: 10px; }
@media (max-width: 760px) { .callout { grid-template-columns: 1fr; gap: 16px; } }

/* verticals */
.verticals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.vert { background: var(--card); border: 1px solid var(--rule); border-top: 4px solid var(--vc); border-radius: 16px; padding: 20px 22px; display: grid; gap: 12px; align-content: start; }
.vert h3 { display: flex; align-items: center; gap: 10px; }
.vert h3 svg { color: var(--vc); }
.vert ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; color: var(--ink-2); font-size: .93rem; }
.vert li { display: grid; grid-template-columns: 12px 1fr; gap: 8px; }
.vert li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--vc); margin-top: .6em; }
@media (max-width: 980px) { .verticals { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .verticals { grid-template-columns: 1fr; } }
.view .frame img { max-height: 720px; width: auto; max-width: 100%; margin: 0 auto; display: block; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 900px; }
.faq details { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 0 20px; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-weight: 600; font-size: 1.04rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; color: var(--brand); transition: transform .2s; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq-a { padding: 0 0 18px; color: var(--ink-2); }
.section.soft .faq details { background: var(--card); }
