/* ==========================================================================
   Zhuohuang Industrial Technology — international site
   Palette and type scale follow the printed document system (ZH-*-2026-EN)
   ========================================================================== */

:root {
  /* Brand palette sampled directly from the Zhuohuang logo artwork */
  --ink-900: #001c3d;   /* deepest navy — hero, footer, top bar   */
  --ink-800: #00306c;   /* BRAND navy — logo wordmark             */
  --ink-700: #003c84;   /* logo gear, mid navy                    */
  --blue:    #0078c0;   /* logo mid blue                          */
  --blue-l:  #0084cc;   /* logo bright blue                       */
  --accent:  #fc7800;   /* logo orange                            */
  --accent-d:#d96500;
  --accent-l:#ff9633;
  --body:    #2b3646;
  --muted:   #6b7889;
  --surface: #f4f7fa;
  --surface-2:#e7eef5;
  --rule:    #c6d3e0;
  --rule-l:  #e2e9f1;
  --white:   #fff;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1200px;
  --gap: 28px;
  --radius: 3px;

  --shadow-sm: 0 1px 2px rgba(12,31,49,.06), 0 2px 8px rgba(12,31,49,.05);
  --shadow-md: 0 2px 6px rgba(12,31,49,.07), 0 12px 28px rgba(12,31,49,.09);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink-700); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
  color: var(--ink-900);
  line-height: 1.18;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  font-weight: 800;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.35rem); letter-spacing: -.028em; }
h2 { font-size: clamp(1.5rem, 2.9vw, 2.1rem); letter-spacing: -.022em; }
h3 { font-size: 1.1rem; letter-spacing: -.01em; }
p  { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: .38em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 860px; margin: 0 auto; padding: 0 24px; }

section { padding: 72px 0; }
section.tight { padding: 52px 0; }
.bg-surface { background: var(--surface); }
.bg-surface-2 { background: var(--surface-2); }
.bg-dark { background: var(--ink-900); color: #cfdae4; }
.bg-dark h2, .bg-dark h3 { color: #fff; }

/* ---------- small shared bits ------------------------------------------ */

.eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}
.eyebrow::after {
  content: ""; display: block; width: 34px; height: 3px;
  background: var(--accent); margin-top: 9px;
}
.eyebrow.no-rule::after { display: none; }
.bg-dark .eyebrow { color: var(--accent-l); }
.bg-dark .eyebrow::after { background: var(--accent-l); }

.lede { font-size: 1.12rem; color: #435262; max-width: 74ch; }
.bg-dark .lede { color: #b8c7d4; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.tiny  { font-size: .78rem; line-height: 1.55; }

.section-head { margin-bottom: 40px; max-width: 78ch; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px;
  font-size: .93rem; font-weight: 700; letter-spacing: .01em;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background .16s, color .16s, border-color .16s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #a85015; color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.42); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.btn-outline { border-color: var(--rule); color: var(--ink-800); background: #fff; }
.btn-outline:hover { border-color: var(--ink-800); color: var(--ink-800); background: var(--surface); }
.btn-arrow::after { content: "\2192"; font-weight: 600; }

.tag {
  display: inline-block; padding: 3px 9px;
  font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  background: var(--surface-2); color: var(--ink-800); border-radius: 2px;
}
.tag-accent { background: rgba(194,97,28,.12); color: #9c4d14; }
.tag-solid  { background: var(--ink-800); color: #fff; }

/* ---------- header ------------------------------------------------------ */

/* utility strip above the masthead */
.topbar { background: var(--ink-900); color: #9db4cc; font-size: .8rem; }
.topbar-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 8px 24px;
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
}
.topbar .tb-claim { font-weight: 600; letter-spacing: .02em; color: #b9cce0; }
.topbar .tb-links { margin-left: auto; display: flex; gap: 22px; flex-wrap: wrap; }
.topbar a { color: #b9cce0; text-decoration: none; font-weight: 600; }
.topbar a:hover { color: #fff; }
@media (max-width: 720px) { .topbar .tb-claim { display: none; } .topbar .tb-links { margin-left: 0; gap: 16px; } }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: #fff;
  border-bottom: 1px solid var(--rule-l);
  box-shadow: 0 1px 3px rgba(0,28,61,.05);
}
.header-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 22px; min-height: 78px;
}
.logo { display: flex; align-items: center; text-decoration: none; flex: none; }
.logo img { height: 42px; width: auto; }
@media (max-width: 480px) { .logo img { height: 34px; } }

.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav a {
  padding: 10px 13px; font-size: .875rem; font-weight: 600;
  color: var(--ink-800); text-decoration: none; border-radius: 2px;
  white-space: nowrap;
}
.nav a:hover { color: var(--accent-d); background: var(--surface); }
.nav a.active { color: var(--ink-900); box-shadow: inset 0 -3px 0 var(--accent); }
.nav .btn { margin-left: 12px; padding: 11px 20px; }
.nav .btn.btn-primary:hover { color: #fff; background: var(--accent-d); }

.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 1px solid var(--rule); border-radius: 2px;
  padding: 9px 11px; cursor: pointer;
}
.nav-toggle span { display: block; width: 19px; height: 2px; background: var(--ink-800); margin: 4px 0; }

@media (max-width: 1040px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 8px 18px 20px; gap: 0; border-bottom: 3px solid var(--accent);
    box-shadow: 0 12px 24px rgba(0,28,61,.12);
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 6px; border-bottom: 1px solid var(--rule-l); }
  .nav a.active { box-shadow: inset 3px 0 0 var(--accent); padding-left: 12px; }
  .nav .btn { margin: 16px 0 0; justify-content: center; }
}

/* footer lock-up */
.footer-logo img { height: 40px; width: auto; margin-bottom: 16px; }

/* ---------- hero -------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--ink-900);
  color: #fff;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(9,24,38,.96) 0%, rgba(9,24,38,.9) 42%, rgba(9,24,38,.58) 72%, rgba(9,24,38,.46) 100%);
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: var(--wrap); margin: 0 auto; padding: 92px 24px 72px;
}
.hero h1 { color: #fff; max-width: 17ch; margin-bottom: 22px; }
.hero .hero-sub {
  font-size: 1.16rem; line-height: 1.62; color: #c3d2df;
  max-width: 60ch; margin-bottom: 14px;
}
.hero .hero-sub strong { color: #fff; font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 30px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .74rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: #9fb3c4; margin-bottom: 24px;
}
.hero-kicker .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

/* stat bar */
.statbar { position: relative; z-index: 2; background: rgba(255,255,255,.055); border-top: 1px solid rgba(255,255,255,.11); }
.statbar-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: repeat(5, 1fr);
}
.stat { padding: 24px 20px 26px; border-left: 1px solid rgba(255,255,255,.11); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-n { font-size: 1.5rem; font-weight: 800; color: #fff; letter-spacing: -.02em; line-height: 1.1; }
.stat-l { font-size: .72rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: #93a8ba; margin-top: 7px; }
@media (max-width: 900px) {
  .statbar-inner { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,.11); }
  .stat:first-child, .stat:nth-child(2) { border-top: 0; }
}

/* page hero (interior pages) */
.page-hero { background: var(--ink-900); color: #fff; padding: 62px 0 56px; position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; right: -80px; top: -60px; width: 380px; height: 380px;
  border: 44px solid rgba(255,255,255,.035); border-radius: 50%;
}
.page-hero h1 { color: #fff; font-size: clamp(1.85rem, 3.6vw, 2.7rem); max-width: 20ch; }
.page-hero p { color: #b9c8d6; max-width: 70ch; font-size: 1.05rem; margin-bottom: 0; }
.page-hero .wrap { position: relative; z-index: 2; }

.breadcrumb { font-size: .78rem; color: #8ba0b2; margin-bottom: 16px; }
.breadcrumb a { color: #8ba0b2; text-decoration: none; }
.breadcrumb a:hover { color: #fff; }

/* ---------- grids / cards ---------------------------------------------- */

/* Grid and flex children default to min-width:auto, which stops them shrinking
   below their content's min-content width. Any column holding a wide table would
   then push the page sideways instead of letting .table-scroll scroll. */
.grid > *, .split > *, .split-wide > *, .split-narrow > *,
.cta-inner > *, .sys-card > *, .case > *, .buildup > * { min-width: 0; }
.table-scroll { max-width: 100%; }

.grid { display: grid; gap: var(--gap); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--rule-l); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .16s, box-shadow .16s, transform .16s;
}
.card-link:hover { border-color: var(--rule); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-body { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.card h2, .card h3 { margin-bottom: 8px; }
.card h2 { font-size: 1.1rem; letter-spacing: -.01em; }
.card p { font-size: .92rem; color: #4c5b6a; margin-bottom: 0; }
.card-figure { background: var(--surface); aspect-ratio: 4 / 3; overflow: hidden; }
.card-figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card-figure.contain { display: grid; place-items: center; padding: 14px; background: #fff; }
.card-figure.contain img { width: auto; height: 100%; object-fit: contain; }
.card-link:hover .card-figure img { transform: scale(1.035); }
.card-foot {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rule-l);
  font-size: .8rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 14px;
}

/* system card (home + products) */
.sys-card { display: grid; grid-template-columns: 232px 1fr; border: 1px solid var(--rule-l); background: #fff; }
.sys-card .sys-fig { background: var(--surface); display: grid; place-items: center; padding: 20px; }
.sys-card .sys-fig img { max-height: 190px; width: auto; object-fit: contain; }
.sys-card .sys-body { padding: 26px 28px 28px; }
.sys-card h3 { font-size: 1.28rem; margin-bottom: 4px; }
.sys-num {
  font-size: .72rem; font-weight: 800; letter-spacing: .14em; color: var(--accent);
  text-transform: uppercase; margin-bottom: 10px; display: block;
}
.sys-products { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.sys-products span {
  font-size: .77rem; padding: 4px 10px; background: var(--surface);
  border: 1px solid var(--rule-l); border-radius: 2px; color: #3c4b5a;
}
@media (max-width: 760px) { .sys-card { grid-template-columns: 1fr; } .sys-card .sys-fig { padding: 26px; } }

/* icon feature */
.feature { display: flex; gap: 15px; }
.feature .fnum {
  flex: none; width: 34px; height: 34px; display: grid; place-items: center;
  background: var(--ink-800); color: #fff; font-size: .82rem; font-weight: 800;
  border-radius: 2px;
}
.feature h3 { font-size: 1.02rem; margin-bottom: 5px; }
.feature p { font-size: .92rem; margin-bottom: 0; color: #4c5b6a; }
.bg-dark .feature p { color: #a9bccd; }
.bg-dark .feature .fnum { background: var(--accent); }

/* ---------- tables ------------------------------------------------------ */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--rule-l); background: #fff; }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: .885rem; }
caption { text-align: left; font-size: .82rem; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--rule-l); }
th, td { padding: 11px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule-l); }
thead th {
  background: var(--ink-800); color: #fff; font-size: .74rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; border-bottom: 0; white-space: nowrap;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: #fafcfd; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td code, .code { font-family: var(--mono); font-size: .82em; color: var(--ink-700); word-break: break-all; }
.table-note { font-size: .8rem; color: var(--muted); margin-top: 12px; line-height: 1.6; }

/* selection matrix legend markers */
.m { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 2px; font-size: .72rem; font-weight: 800; }
.m-p { background: var(--ink-800); color: #fff; }
.m-s { background: #c8d6e1; color: var(--ink-800); }
.m-a { background: #f0dcc8; color: #8d4a12; }
.m-o { background: rgba(194,97,28,.16); color: #9c4d14; }
.m-n { color: #b3bfc9; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; font-size: .82rem; color: #4c5b6a; align-items: center; }
.legend span.m { margin-right: 6px; }

/* ---------- system build-up diagram ------------------------------------- */

.buildup { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--rule); background: #fff; }
.buildup .step { padding: 24px 22px 26px; border-left: 1px solid var(--rule-l); position: relative; }
.buildup .step:first-child { border-left: 0; }
.buildup .role {
  font-size: .68rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: #fff; background: var(--ink-800); display: inline-block; padding: 4px 10px; border-radius: 2px;
  margin-bottom: 12px;
}
.buildup .step:nth-child(3) .role { background: var(--accent); }
.buildup h3 { font-size: 1rem; margin-bottom: 6px; color: var(--ink-900); }
.buildup p { font-size: .87rem; color: #4c5b6a; margin: 0; }
.buildup .when { font-size: .79rem; color: var(--muted); margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--rule); }
@media (max-width: 900px) { .buildup { grid-template-columns: repeat(2, 1fr); } .buildup .step:nth-child(3) { border-left: 0; } }
@media (max-width: 540px) { .buildup { grid-template-columns: 1fr; } .buildup .step { border-left: 0; border-top: 1px solid var(--rule-l); } .buildup .step:first-child { border-top: 0; } }

/* ---------- evidence blocks --------------------------------------------- */

.evidence { border: 1px solid var(--rule-l); background: #fff; padding: 24px 24px 26px; height: 100%; }
.evidence .ev-n { font-size: 2rem; font-weight: 800; color: var(--ink-800); letter-spacing: -.03em; line-height: 1; }
.evidence h3 { font-size: 1rem; margin: 12px 0 7px; }
.evidence p { font-size: .89rem; color: #4c5b6a; margin: 0; }

.spec-list { list-style: none; padding: 0; margin: 0; }
.spec-list li {
  display: flex; justify-content: space-between; gap: 18px;
  padding: 10px 0; border-bottom: 1px solid var(--rule-l); font-size: .9rem;
}
.spec-list li:last-child { border-bottom: 0; }
.spec-list .k { color: var(--muted); }
.spec-list .v { font-weight: 700; color: var(--ink-900); text-align: right; font-variant-numeric: tabular-nums; }

.callout {
  border-left: 3px solid var(--accent); background: var(--surface);
  padding: 18px 22px; font-size: .9rem; color: #3f4e5d;
}
.callout strong { color: var(--ink-900); }
.callout p:last-child { margin-bottom: 0; }
.callout-quiet { border-left-color: var(--rule); }

/* ---------- downloads --------------------------------------------------- */

.dl-group { margin-bottom: 42px; }
.dl-group h2 { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; font-size: 1.1rem; letter-spacing: -.01em; }
.dl-group h2 .count { font-size: .78rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.dl-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (max-width: 780px) { .dl-list { grid-template-columns: 1fr; } }
.dl {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 16px; border: 1px solid var(--rule-l); background: #fff;
  text-decoration: none; color: var(--body); border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s;
}
.dl:hover { border-color: var(--ink-800); box-shadow: var(--shadow-sm); color: var(--body); }
.dl .ico {
  flex: none; width: 34px; height: 34px; display: grid; place-items: center;
  background: #fbe9e0; color: #a4470f; border-radius: 2px;
  font-size: .6rem; font-weight: 800; letter-spacing: .04em;
}
.dl .dl-t { flex: 1; min-width: 0; }
.dl .dl-name { font-size: .9rem; font-weight: 600; color: var(--ink-900); line-height: 1.35; }
.dl .dl-meta { font-size: .76rem; color: var(--muted); margin-top: 2px; }
.dl .arr { flex: none; color: var(--muted); font-size: 1rem; }
.dl:hover .arr { color: var(--accent); }

/* ---------- projects ---------------------------------------------------- */

.case { display: grid; grid-template-columns: 1.05fr 1fr; border: 1px solid var(--rule-l); background: #fff; }
.case-fig { background: var(--surface); min-height: 260px; }
.case-fig img { width: 100%; height: 100%; object-fit: cover; }
.case-body { padding: 30px 32px 32px; }
.case.rev .case-fig { order: 2; }
@media (max-width: 820px) { .case { grid-template-columns: 1fr; } .case.rev .case-fig { order: 0; } .case-fig { min-height: 210px; } }

/* ---------- forms ------------------------------------------------------- */

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .8rem; font-weight: 700; color: var(--ink-800); letter-spacing: .02em; }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: .93rem; color: var(--body);
  padding: 11px 13px; border: 1px solid var(--rule); border-radius: var(--radius);
  background: #fff; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ink-800); box-shadow: 0 0 0 3px rgba(21,48,74,.1);
}
.field textarea { min-height: 128px; resize: vertical; }
.field .hint { font-size: .77rem; color: var(--muted); }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.form-status { display: none; padding: 13px 16px; border-radius: var(--radius); font-size: .9rem; margin-top: 16px; }
.form-status.ok  { display: block; background: #e7f2ea; border: 1px solid #b8d8c2; color: #1e5a33; }
.form-status.err { display: block; background: #fdecea; border: 1px solid #f1c4bf; color: #8c2f22; }

/* contact rail */
.contact-rail { border: 1px solid var(--rule-l); background: #fff; padding: 26px 26px 28px; }
.contact-item { display: flex; gap: 13px; padding: 15px 0; border-bottom: 1px solid var(--rule-l); }
.contact-item:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-item .ci-ico { flex: none; width: 32px; height: 32px; display: grid; place-items: center; background: var(--surface); border-radius: 2px; }
.contact-item .ci-k { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-item .ci-v { font-size: .95rem; font-weight: 600; color: var(--ink-900); word-break: break-word; }
.contact-item .ci-v a { color: var(--ink-900); text-decoration: none; }
.contact-item .ci-v a:hover { color: var(--accent); }
.contact-item .ci-note { font-size: .8rem; color: var(--muted); margin-top: 2px; }

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

.cta-band { background: var(--ink-800); color: #fff; padding: 58px 0; }
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: #bfd0de; max-width: 62ch; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 36px; flex-wrap: wrap; }
.cta-inner > div:first-child { flex: 1 1 460px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

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

.site-footer { background: var(--ink-900); color: #93a8ba; padding: 56px 0 0; font-size: .88rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 36px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  color: #fff; font-size: .76rem; letter-spacing: .13em; text-transform: uppercase;
  margin-bottom: 15px; font-weight: 700;
}
.site-footer a { color: #93a8ba; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-brand p { font-size: .86rem; line-height: 1.65; color: #8299ac; max-width: 38ch; }
.footer-bottom {
  margin-top: 44px; border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0 30px; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-size: .8rem; color: #6f8497;
}

/* ---------- utility ----------------------------------------------------- */

.flow > * + * { margin-top: 18px; }
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.mt32 { margin-top: 32px; } .mt40 { margin-top: 40px; }
.center { text-align: center; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.split-wide { grid-template-columns: 1.25fr 1fr; }
.split-narrow { grid-template-columns: 1fr 1.25fr; }
@media (max-width: 900px) { .split, .split-wide, .split-narrow { grid-template-columns: 1fr; gap: 34px; } }

.anchor { scroll-margin-top: 92px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--accent); color: #fff;
  padding: 12px 20px; z-index: 999; text-decoration: none;
}
.skip-link:focus { left: 0; color: #fff; }

.photo-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }
.photo-strip figure { margin: 0; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink-900); }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; }
.photo-strip figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 15px 12px;
  background: linear-gradient(transparent, rgba(9,24,38,.9));
  color: #fff; font-size: .8rem; font-weight: 600; line-height: 1.35;
}
@media (max-width: 860px) { .photo-strip { grid-template-columns: repeat(2, 1fr); } }

/* ---------- application sequence diagrams ------------------------------- */

.seqfig {
  margin: 0;
  border: 1px solid var(--rule-l);
  background: #fff;
  padding: 22px 24px 20px;
}
.seqfig .seq-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* the drawing has a fixed aspect ratio and stops being legible below about
   860px, so it scrolls inside its own box rather than shrinking further */
.seqfig .seq-scroll img { min-width: 860px; width: 100%; }
.seqfig figcaption {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rule-l);
  font-size: .82rem; color: var(--muted); display: flex; flex-wrap: wrap;
  gap: 6px 18px; align-items: baseline;
}
.seqfig figcaption .seq-t { font-weight: 700; color: var(--ink-900); }
@media (max-width: 640px) { .seqfig { padding: 16px 16px 14px; } }

/* ---------- nav dropdowns ----------------------------------------------- */

.nav-item { position: relative; display: flex; align-items: center; }
.nav-item > a { display: inline-flex; align-items: center; gap: 6px; }
.caret {
  width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 4px solid currentColor; opacity: .6; flex: none;
}
.subnav {
  position: absolute; top: 100%; left: 0; min-width: 250px;
  background: #fff; border: 1px solid var(--rule-l); border-top: 3px solid var(--accent);
  box-shadow: var(--shadow-md); padding: 8px 0; z-index: 70;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .14s, transform .14s, visibility .14s;
}
.nav-item:hover > .subnav,
.nav-item:focus-within > .subnav { opacity: 1; visibility: visible; transform: translateY(0); }
.subnav a {
  display: block; padding: 9px 18px; font-size: .87rem; font-weight: 500;
  color: var(--body); white-space: nowrap;
}
.subnav a:hover { background: var(--surface); color: var(--ink-800); }
.subnav a strong { color: var(--ink-800); font-weight: 700; }

@media (max-width: 1040px) {
  .nav-item { display: block; }
  .nav-item > a { justify-content: space-between; }
  .caret { display: none; }
  .subnav {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: 0; box-shadow: none; background: transparent; padding: 0 0 8px 14px;
    min-width: 0;
  }
  .subnav a { color: #9fb3c4; padding: 9px 6px; border-bottom: 1px solid rgba(255,255,255,.07); }
  .subnav a:hover { background: transparent; color: #fff; }
  .subnav a strong { color: #c2d0dc; }
}

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

.faq { padding: 22px 0; border-bottom: 1px solid var(--rule-l); }
.faq:last-of-type { border-bottom: 0; }
.faq h3 { font-size: 1.05rem; margin-bottom: 9px; }
.faq p { margin-bottom: 0; color: #43515f; }
.wrap-narrow h2 { margin-top: 8px; padding-bottom: 10px; border-bottom: 2px solid var(--ink-800); }
