/* ==========================================================================
   TA Tech — Risk-Desk Ledger world (impeccable redesign, seed 42047e07)
   Ground: near-black navy chrome · Paper: ruled light sheets
   Data ink: teal #00B8B0 (active) · blue #0066CC (secondary)
   Type: Inter (reading) · IBM Plex Mono (coordinates, status, data)
   ========================================================================== */

:root {
  --navy: #071B33;
  --ground: #050E1B;
  --ground-2: #0A1B2E;
  --chrome-line: #1C3450;
  --blue: #0066CC;
  --blue-bright: #4DA6FF;
  --blue-dark: #0052A8;
  --teal: #00B8B0;
  --teal-bright: #2AD8CE;
  --teal-dark: #009B94;
  --teal-ink: #007A74;
  --ice: #EAF5FA;
  --paper: #F7FAFC;
  --paper-2: #EEF4F8;
  --white: #FFFFFF;
  --grey: #25313C;
  --grey-60: #5A6B7B;
  --grey-30: #C7D2DC;
  --line: #D8E2EA;
  --ink-dark: #E8F0F8;
  --ink-dark-2: #A9C3DB;
  --ink-dark-3: #7E97B1;

  --font-sans: "Inter", "Noto Sans TC", "Microsoft JhengHei", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --rule: 1px solid var(--line);
  --radius: 2px;

  --section-pad: 96px;
  --header-h: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--grey);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

h1, h2, h3 {
  color: var(--navy);
  line-height: 1.18;
  letter-spacing: -0.015em;
  font-weight: 700;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 2.9vw, 2.2rem); }
h3 { font-size: 1.18rem; }

p + p { margin-top: 0.9em; }

.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

.mono { font-family: var(--font-mono); }

/* --------------------------------------------------------------------------
   Sections: paper sheets on a dark ground
   -------------------------------------------------------------------------- */
.section { padding-block: var(--section-pad); background: var(--paper); }
.section--ice { background: var(--paper-2); }
.section--navy { background: var(--ground); color: var(--ink-dark-2); }
.section--navy h2, .section--navy h3 { color: var(--ink-dark); }
.section--tight { padding-block: 56px; }

.section-head { max-width: 780px; margin-bottom: 52px; }
.section-head p { max-width: 62ch; }
.note-card p { max-width: 68ch; }
.card.note-card--row { flex-direction: row; gap: 20px; align-items: center; }
.note-card--row .btn { white-space: normal; }
.section--navy .section-head p { color: var(--ink-dark-2); }

/* Ledger head: coordinate + double rule */
.section-head::before {
  content: attr(data-coord);
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--teal-ink);
  margin-bottom: 18px;
  padding-top: 14px;
  border-top: 2px solid var(--navy);
  box-shadow: 0 -4px 0 -3px var(--grey-30);
}
.section-head--center::before { text-align: left; }
.section--navy .section-head::before { color: var(--teal-bright); border-top-color: var(--teal); box-shadow: 0 -4px 0 -3px var(--chrome-line); }

/* --------------------------------------------------------------------------
   Buttons — flat, ruled, terminal registers
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--teal { background: var(--teal); color: var(--ground); }
.btn--teal:hover { background: var(--teal-bright); color: var(--ground); }
.btn--ghost { border-color: var(--chrome-line); color: var(--ink-dark); background: transparent; }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal-bright); }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: var(--paper); }
.btn .arr { transition: transform 0.15s ease; }
.btn:hover .arr { transform: translateX(3px); }
.btn-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* --------------------------------------------------------------------------
   Header — dark chrome bar
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ground);
  border-bottom: 1px solid var(--chrome-line);
  transition: border-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--teal); }

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink-dark); }
.brand__mark--img {
  border: 1px solid var(--chrome-line);
  background: var(--paper);
  border-radius: var(--radius);
  padding: 3px;
  object-fit: contain;
}
.brand:hover { color: var(--ink-dark); }
.brand__mark { flex: none; }
.brand__name { font-size: 1.26rem; font-weight: 800; letter-spacing: -0.01em; color: var(--ink-dark); }
.brand__name span { color: var(--teal); }

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav > li { list-style: none; position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 12px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-dark-2);
  border-radius: var(--radius);
}
.nav-link:hover, .nav-link:focus-visible { color: var(--teal-bright); background: var(--ground-2); }
.nav-link[aria-current="page"] { color: var(--teal-bright); font-weight: 600; }
.nav-link .nav-caret { width: 10px; height: 10px; flex: none; transition: transform 0.18s ease; }
.has-drop:hover .nav-caret, .has-drop:focus-within .nav-caret { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 280px;
  background: var(--paper);
  border: 1px solid var(--grey-30);
  border-top: 2px solid var(--teal);
  box-shadow: 0 12px 28px rgba(3, 10, 20, 0.55);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}
.has-drop:hover > .dropdown,
.has-drop:focus-within > .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

.brand__tag { display: block; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-dark-2); margin-top: -2px; }

.dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius);
  color: var(--grey);
  font-size: 0.92rem;
  font-weight: 500;
}
.dropdown a:hover, .dropdown a:focus-visible { background: var(--paper-2); color: var(--teal-ink); }
.dropdown .drop-desc { display: block; font-size: 0.8rem; color: var(--grey-60); font-weight: 400; line-height: 1.45; }

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--teal); color: var(--ground);
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em;
  padding: 10px 16px; border-radius: var(--radius); z-index: 100; text-decoration: none;
}
.skip-link:focus { left: 8px; color: var(--ground); }

.lang-toggle {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--ink-dark-2);
  border: 1px solid var(--chrome-line);
  border-radius: var(--radius);
  padding: 7px 10px;
  text-decoration: none;
  margin-right: 14px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.lang-toggle:hover, .lang-toggle:focus-visible { color: var(--teal-bright); border-color: var(--teal); }

.header-cta { flex: none; }
.header-cta .btn { padding: 10px 18px; font-size: 0.88rem; }
.nav-cta { display: none; list-style: none; }
.nav-cta .btn { font-family: inherit; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--ink-dark); transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--teal-bright); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--teal-bright); }

/* --------------------------------------------------------------------------
   Workspace instruments — static illustrative product views
   -------------------------------------------------------------------------- */
.instrument {
  background: var(--paper-2);
  border: var(--rule);
  border-top: 2px solid var(--teal);
  border-radius: var(--radius);
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--grey-60);
}
.instrument__bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 10px;
  border-bottom: var(--rule);
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--navy);
}
.instrument__bar .live { color: var(--teal-ink); }
.instrument__body { padding: 10px; display: grid; gap: 6px; }
.inst-row {
  display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center;
  background: var(--paper); border: var(--rule); border-radius: var(--radius);
  padding: 6px 10px;
}
.inst-id { color: var(--grey-60); }
.inst-label { color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inst-score { color: var(--grey-60); }
.inst-head { display: flex; justify-content: space-between; align-items: baseline; padding: 2px 2px 0; color: var(--navy); }
.inst-factor { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.inst-track { height: 4px; background: var(--grey-30); border-radius: 1px; position: relative; }
.inst-track i { position: absolute; inset: 0 auto 0 0; background: var(--blue); border-radius: 1px; }
.inst-track i.tl { background: var(--teal); }
.inst-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.inst-tabs span { border: var(--rule); border-radius: var(--radius); padding: 3px 7px; letter-spacing: 0.08em; color: var(--grey-60); }
.inst-tabs .on { border-color: var(--teal); color: var(--teal-ink); background: rgba(0, 184, 176, 0.07); }
.inst-timeline { display: flex; align-items: center; gap: 0; padding: 4px 2px 2px; }
.inst-timeline i { flex: 1; height: 1px; background: var(--grey-30); }
.inst-timeline b { width: 7px; height: 7px; border-radius: 50%; background: var(--paper); border: 1px solid var(--blue); }
.inst-timeline b.on { background: var(--teal); border-color: var(--teal); }
.inst-bars { display: flex; align-items: flex-end; gap: 5px; height: 44px; padding: 2px 2px 0; }
.inst-bars i { flex: 1; background: var(--grey-30); border-radius: 1px 1px 0 0; }
.inst-bars i.hi { background: var(--teal); }
.inst-chain { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.inst-chain span { border: var(--rule); border-radius: var(--radius); padding: 3px 7px; color: var(--navy); }
.inst-chain em { font-style: normal; color: var(--teal-ink); }
.inst-note { padding: 6px 10px; border-top: var(--rule); color: var(--grey-60); letter-spacing: 0.08em; }

/* --------------------------------------------------------------------------
   Hero — the desk
   -------------------------------------------------------------------------- */
.hero {
  background: var(--ground);
  color: var(--ink-dark);
  padding-block: 96px 104px;
  border-bottom: 1px solid var(--chrome-line);
  position: relative;
  overflow: hidden;
}
.hero__inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }
.hero h1 { color: var(--ink-dark); }
.hero__lede { margin-top: 22px; font-size: 1.1rem; line-height: 1.75; color: var(--ink-dark-2); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 36px; color: var(--ink-dark-2); font-size: 0.86rem; }
.hero__meta li { list-style: none; display: inline-flex; align-items: center; gap: 8px; }
.hero__meta li::before { content: "▸"; color: var(--teal); font-size: 0.75rem; }
.caret { display: inline-block; width: 0.55em; height: 1.05em; background: var(--teal); margin-left: 0.12em; animation: caret-blink 1.1s steps(1) infinite; vertical-align: baseline; }
@keyframes caret-blink { 50% { opacity: 0; } }

/* The alert-queue sheet */
.queue {
  background: var(--paper);
  border: 1px solid var(--grey-30);
  border-top: 2px solid var(--teal);
  color: var(--grey);
  box-shadow: 0 16px 32px rgba(3, 10, 20, 0.55);
}
.queue__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: var(--rule);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey-60);
}
.queue__bar .live { color: var(--teal-ink); }
.queue__row {
  display: grid;
  grid-template-columns: 3.2em 1fr auto;
  gap: 12px;
  align-items: baseline;
  padding: 13px 16px;
  border-bottom: var(--rule);
}
.queue__row:last-of-type { border-bottom: 0; }
.queue__id { font-family: var(--font-mono); font-size: 0.78rem; color: var(--grey-60); }
.queue__case { font-weight: 600; font-size: 0.92rem; color: var(--navy); }
.queue__note { grid-column: 2 / 4; font-size: 0.8rem; color: var(--grey-60); }
.status { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 3px 8px; border: 1px solid; white-space: nowrap; }
.status--ready { color: var(--teal-ink); border-color: var(--teal); background: rgba(0, 184, 176, 0.07); }
.status--review { color: #8A5A00; border-color: #C79A2E; background: rgba(199, 154, 46, 0.08); }
.status--approved { color: var(--navy); border-color: var(--blue); background: rgba(0, 102, 204, 0.07); }
button.queue__row {
  width: 100%;
  font: inherit;
  text-align: left;
  cursor: pointer;
  background: var(--paper);
}
button.queue__row:hover { background: var(--paper-2); }
button.queue__row:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
button.queue__row[aria-expanded="true"] { background: var(--paper-2); box-shadow: inset 2px 0 0 var(--teal); }
.queue__detail {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  padding: 12px 16px 14px;
}
.qd-head {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--teal-ink); margin-bottom: 8px;
}
.qd-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.qd-chip {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em;
  color: var(--navy); border: 1px solid var(--grey-30); border-radius: var(--radius);
  padding: 3px 8px; background: var(--paper);
}
.qd-note { font-size: 0.85rem; color: var(--grey-60); margin: 0; }
.qd-note strong { color: var(--navy); }

.queue__foot {
  padding: 10px 16px;
  border-top: 2px solid var(--navy);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--grey-60);
}
.queue__note-illustrative { font-size: 0.72rem; color: var(--ink-dark-2); text-align: center; margin-top: 12px; font-family: var(--font-mono); letter-spacing: 0.08em; }

html.js .queue__row { opacity: 0; transform: translateX(10px); transition: opacity 0.4s ease, transform 0.4s ease; }
html.js .queue.is-in .queue__row { opacity: 1; transform: none; }
html.js .queue.is-in .queue__row:nth-child(3) { transition-delay: 0.10s; }
html.js .queue.is-in .queue__row:nth-child(4) { transition-delay: 0.22s; }
html.js .queue.is-in .queue__row:nth-child(5) { transition-delay: 0.34s; }
html.js .queue.is-in .queue__row:nth-child(6) { transition-delay: 0.46s; }
html.js .queue.is-in .queue__row:nth-child(7) { transition-delay: 0.58s; }

/* --------------------------------------------------------------------------
   Page hero (subpages) — chrome band
   -------------------------------------------------------------------------- */
.page-hero {
  background: var(--ground);
  color: var(--ink-dark);
  padding-block: 72px 64px;
  border-bottom: 1px solid var(--chrome-line);
}
.page-hero h1 { color: var(--ink-dark); font-size: clamp(1.9rem, 3.6vw, 2.65rem); }
.page-hero p { margin-top: 16px; max-width: 46em; color: var(--ink-dark-2); font-size: 1.05rem; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; color: var(--ink-dark-2); margin-bottom: 18px; }
.breadcrumb a { color: var(--ink-dark-2); }
.breadcrumb a:hover { color: var(--teal-bright); }

/* --------------------------------------------------------------------------
   Cards → ruled sheets
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: 0; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid > .card { border-right: var(--rule); border-bottom: var(--rule); background: var(--paper); }
.grid--3 > .card:nth-child(3n) { border-right: 0; }
.grid--2 > .card:nth-child(2n) { border-right: 0; }
.section--ice .grid > .card { background: var(--paper); }

.card {
  background: var(--paper);
  border: var(--rule);
  border-top: 2px solid var(--navy);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  transition: border-top-color 0.15s ease;
}
.card:hover { border-top-color: var(--teal); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--grey-60); font-size: 0.95rem; }
.card .icon-badge { margin-bottom: 16px; }
.card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.card__head .icon-badge { margin-bottom: 0; }
.card__head h3 { margin-bottom: 0; }

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--grey-30);
  border-radius: var(--radius);
  background: var(--paper-2);
  color: var(--teal-ink);
  flex: none;
}
.icon-badge--teal { border-color: var(--teal); background: rgba(0, 184, 176, 0.07); color: var(--teal-ink); }

.card__link { margin-top: auto; padding-top: 18px; font-weight: 600; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 7px; color: var(--teal-ink); }
.card__link:hover { color: var(--navy); }

.note-card { background: var(--paper-2); border-top-color: var(--teal); }
.note-card .icon-badge { margin: 0; flex: none; }

/* Module/status card coordinate */
.card[data-coord]::after {
  content: attr(data-coord);
  align-self: flex-end;
  order: -1;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--grey-30);
}

/* Lifecycle / queue strip */
.lifecycle {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0;
  list-style: none;
  counter-reset: step;
  border: var(--rule);
  background: var(--paper);
}
.lifecycle__step {
  counter-increment: step;
  padding: 16px 12px 14px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  border-right: var(--rule);
}
.lifecycle__step:last-child { border-right: 0; }
.lifecycle__step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--teal-ink);
  margin-bottom: 6px;
}
.section--navy .lifecycle { border-color: var(--chrome-line); background: var(--ground-2); }
.section--navy .lifecycle__step { color: var(--ink-dark); border-right-color: var(--chrome-line); }

/* --------------------------------------------------------------------------
   Split rows, lists, chips, tables
   -------------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split__figure svg { width: 100%; height: auto; }

.check-list { list-style: none; display: grid; gap: 12px; margin-top: 24px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--grey-60); }
.check-list li::before { content: "▪"; color: var(--teal-ink); font-size: 0.8rem; line-height: 1.9; flex: none; }
.section--navy .check-list li { color: var(--ink-dark-2); }
.check-list--2col { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .check-list--2col { grid-template-columns: 1fr 1fr; column-gap: 28px; }
}
.section--navy .check-list li::before { color: var(--teal-bright); }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chip--light {
  padding: 6px 12px;
  border: 1px solid var(--grey-30);
  background: var(--paper);
  color: var(--grey);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
}

table { border-collapse: collapse; }
th, td { text-align: left; }

.h3--lg { font-size: 1.4rem; }
.h3--sm { font-size: 1.02rem; }

/* --------------------------------------------------------------------------
   Product panels — dark instrument plates
   -------------------------------------------------------------------------- */
.product-card { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.product-card__panel {
  background: var(--ground-2);
  border: 1px solid var(--chrome-line);
  border-top: 2px solid var(--teal);
  padding: 30px 26px;
  color: var(--ink-dark);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.product-card__panel .p-name { font-size: 1.25rem; font-weight: 800; }
.product-card__panel .p-sub { color: var(--ink-dark-2); font-size: 0.9rem; }
.product-card__panel svg { width: 100%; height: auto; margin-top: 6px; }
.product-card h3 { font-size: 1.45rem; }
.product-card .btn { margin-top: 24px; align-self: flex-start; }

/* --------------------------------------------------------------------------
   CTA band — console close
   -------------------------------------------------------------------------- */
.cta-band {
  background: var(--ground);
  border-top: 1px solid var(--chrome-line);
  color: var(--ink-dark);
  text-align: center;
  padding-block: 84px;
}
.cta-band h2 { color: var(--ink-dark); }
.cta-band p { color: var(--ink-dark-2); max-width: 44em; margin: 16px auto 0; }
.cta-band .btn-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* --------------------------------------------------------------------------
   Contact form — sheet
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: start; }
.form-card { background: var(--paper); border: var(--rule); border-top: 2px solid var(--teal); padding: 36px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-family: var(--font-mono); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy); }
.form-field input, .form-field select, .form-field textarea {
  font: inherit;
  color: var(--grey);
  padding: 12px 14px;
  border: 1px solid var(--grey-30);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 184, 176, 0.15);
}
.form-note { grid-column: 1 / -1; font-size: 0.8rem; color: var(--grey-60); }
.form-status { margin-top: 16px; font-size: 0.9rem; font-weight: 600; display: none; }
.form-status.is-ok { display: block; color: var(--teal-ink); }

.info-list { list-style: none; display: grid; gap: 20px; margin-top: 28px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .icon-badge { width: 44px; height: 44px; }
.info-list h3 { font-size: 0.98rem; margin-bottom: 2px; }
.info-list p { color: var(--grey-60); font-size: 0.9rem; }

details { border: var(--rule); border-top: 2px solid var(--navy); border-radius: var(--radius); padding: 16px 18px; background: var(--paper); }
details[open] { border-top-color: var(--teal); }
summary { cursor: pointer; font-weight: 600; color: var(--navy); }

/* --------------------------------------------------------------------------
   Footer — chrome
   -------------------------------------------------------------------------- */
.site-footer { background: var(--ground); border-top: 1px solid var(--chrome-line); color: var(--ink-dark-2); font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 44px; padding-block: 60px 40px; }
.site-footer h3 { color: var(--ink-dark); font-family: var(--font-mono); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: var(--ink-dark-2); }
.site-footer a:hover { color: var(--teal-bright); }
.footer-brand p { margin-top: 16px; max-width: 30em; line-height: 1.75; }
.footer-bottom { border-top: 1px solid var(--chrome-line); padding-block: 28px 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 0.8rem; color: var(--ink-dark-2); }

/* --------------------------------------------------------------------------
   Browser surfaces & authored motion
   -------------------------------------------------------------------------- */
::selection { background: var(--teal); color: var(--ground); }
body { caret-color: var(--teal); }
html { scrollbar-color: var(--chrome-line) var(--ground); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.section--navy :focus-visible, .cta-band :focus-visible, .page-hero :focus-visible, .site-header :focus-visible { outline-color: var(--teal-bright); }
.section:not(.section--navy) :focus-visible { outline-color: var(--blue); }

.hero-ring { transform-box: fill-box; transform-origin: center; animation: hero-spin 28s linear infinite; }
@keyframes hero-spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   Reveal-on-scroll (JS-gated)
   -------------------------------------------------------------------------- */
.anchor-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.anchor-toc a {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-dark-2);
  border: 1px solid var(--chrome-line); border-radius: var(--radius);
  padding: 7px 11px; text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.anchor-toc a:hover, .anchor-toc a:focus-visible { color: var(--teal-bright); border-color: var(--teal); }
.anchor-toc .toc-coord { color: var(--teal-bright); }

.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-bright);
  background: var(--ground-2);
  border: 1px solid var(--chrome-line);
  border-radius: var(--radius);
  padding: 10px 12px;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.to-top.is-in { opacity: 1; visibility: visible; transform: none; }
a.to-top:hover { color: var(--teal-bright); border-color: var(--teal); }

html.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.45s ease, transform 0.45s ease; }
html.js .reveal.is-in { opacity: 1; transform: none; }
html.js .reveal[data-delay="1"] { transition-delay: 0.08s; }
html.js .reveal[data-delay="2"] { transition-delay: 0.16s; }
html.js .reveal[data-delay="3"] { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .queue__row { opacity: 1 !important; transform: none !important; }
  .caret { animation: none; }
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1060px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 > .card:nth-child(3n) { border-right: var(--rule); }
  .grid--3 > .card:nth-child(2n) { border-right: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1199px) {
  .header-cta { display: none; }
  .nav-toggle { display: flex; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--ground-2);
    border-bottom: 1px solid var(--teal);
    padding: 14px 24px 22px;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    display: none;
  }
  .site-header.nav-open .main-nav { display: flex; }
  .nav-link { padding: 12px 8px; font-size: 1rem; justify-content: space-between; }
  .dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    border: 0;
    border-left: 2px solid var(--teal);
    margin: 0 0 6px 10px;
    padding: 2px 0 2px 10px;
    min-width: 0;
    background: transparent;
    opacity: 1;
    visibility: visible;
    display: none;
  }
  .main-nav > li.nav-open > .dropdown { display: block; }
  .dropdown a { color: var(--ink-dark-2); display: flex; align-items: center; min-height: 44px; padding: 10px 14px; }
  .dropdown a:hover { color: var(--teal-bright); background: var(--ground); }
  .dropdown .drop-desc { color: var(--ink-dark-2); }
  .has-drop:hover .nav-caret, .has-drop:focus-within .nav-caret { transform: none; }
  .has-drop.nav-open .nav-caret { transform: rotate(180deg); }
  .nav-cta { display: list-item; margin-top: 10px; }
  .nav-cta .btn { width: 100%; }
}

@media (max-width: 900px) {
  :root { --section-pad: 68px; }
  .hero { padding-block: 64px 72px; }
  .hero__inner { grid-template-columns: 1fr; gap: 44px; }
  .hero__figure { max-width: 560px; margin-inline: auto; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .product-card { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
.table-scroll { overflow-x: auto; }
.table-scroll table { min-width: 640px; }
.table-hint { display: none; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey-60); margin-top: 8px; }

@media (max-width: 640px) {
  .table-hint { display: block; }
  .card.note-card--row { flex-direction: column; align-items: flex-start; }
  .container { width: calc(100% - 36px); }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .grid > .card { border-right: 0 !important; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero__actions .btn { width: 100%; }
  .cta-band .btn-row .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */
@media print {
  .anchor-toc { display: none; }
  .to-top { display: none; }
  .site-header, .site-footer, .btn, .hero__figure, .caret { display: none; }
  body { color: #000; background: #fff; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .section, .section--navy, .cta-band, .page-hero, .hero { background: none !important; color: var(--grey) !important; }
  .section--navy h2, .section--navy h3, .cta-band h2, .page-hero h1, .hero h1 { color: var(--navy) !important; }
  .section--navy p, .cta-band p, .page-hero p, .hero__lede, .hero__meta,
  .section--navy .check-list li, .check-list li { color: var(--grey) !important; }
  .card, .form-card, .lifecycle { box-shadow: none !important; border: 1px solid var(--grey-30) !important; }
}
