/* 迅达 Studio v5 — 灯塔节奏：单栏、品牌首屏、编号清单、少装饰
   不做：左右分栏杂志风、英文装饰标签、斜体衬线中文、碎线框卡墙 */

:root {
  --navy: #0b1f33;
  --navy-2: #14324f;
  --ink: #122033;
  --body: #3a4654;
  --muted: #667485;
  --line: #e6ebf0;
  --paper: #ffffff;
  --wash: #f4f7fa;
  --accent: #1f6b57;
  --accent-soft: #e7f3ef;
  --warn-bg: #fff4ec;
  --warn-ink: #7a3b1e;
  --pad: clamp(18px, 4vw, 40px);
  --wrap: min(1080px, calc(100% - 2 * var(--pad)));
  --header: 64px;
  --font: "Noto Sans SC", "Manrope", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-en: "Manrope", "Noto Sans SC", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --fs: 1.0625rem;
  --lh: 1.7;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs);
  line-height: var(--lh);
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
  padding-left: var(--safe-l);
  padding-right: var(--safe-r);
}

img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--navy); }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
::selection { background: var(--accent-soft); color: var(--ink); }

h1, h2, h3 {
  color: var(--ink);
  margin: 0 0 0.4em;
  line-height: 1.25;
  text-wrap: balance;
  font-weight: 700;
}
h1 {
  font-size: clamp(1.85rem, 3.2vw + 0.6rem, 2.75rem);
  letter-spacing: -0.01em;
  max-width: 16em;
}
h2 {
  font-size: clamp(1.45rem, 1.6vw + 0.85rem, 2rem);
  max-width: 18em;
}
h3 {
  font-size: 1.125rem;
  line-height: 1.4;
}
p { margin: 0 0 1em; }
.lead {
  margin: 0;
  color: var(--muted);
  max-width: 40em;
  font-size: 1.05rem;
  line-height: 1.65;
}

.skip {
  position: absolute; left: 12px; top: -56px; z-index: 80;
  background: var(--navy); color: #fff; padding: 10px 14px; text-decoration: none;
}
.skip:focus { top: calc(12px + var(--safe-t)); }
.wrap { width: var(--wrap); margin-inline: auto; }
.mt { margin-top: 20px; }

.preview-bar {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  padding: 8px var(--pad);
  display: flex; flex-wrap: wrap; gap: 8px 16px;
  justify-content: space-between;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  padding-top: var(--safe-t);
}
.header-inner {
  width: var(--wrap); margin-inline: auto;
  min-height: var(--header);
  display: flex; align-items: center; gap: 14px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink); margin-inline-end: auto;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--navy); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-en);
  font-weight: 800; font-size: 16px;
}
.brand strong {
  display: block;
  font-family: var(--font-en);
  font-size: 1.05rem;
  font-weight: 800;
}
.brand small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  margin-top: 1px;
}
.nav-desktop { display: none; }
.nav-desktop a {
  text-decoration: none; color: var(--body);
  font-size: 14px; font-weight: 600;
  padding: 10px 10px; min-height: 44px;
  display: inline-flex; align-items: center;
}
.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] { color: var(--navy); }
/* Contact — same pattern as live goonb: tg-pill + fab-tg icon */
.tg-pill, .header-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 14px;
  border-radius: 10px;
  background: var(--navy); color: #fff !important; text-decoration: none !important;
  font-weight: 700; font-size: 13px;
  border: 1px solid var(--navy);
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.tg-pill:hover, .header-cta:hover,
.tg-pill:focus-visible, .header-cta:focus-visible {
  background: var(--navy-2); border-color: var(--navy-2); color: #fff !important;
  box-shadow: 0 6px 18px rgba(8, 24, 40, 0.2);
  transform: translateY(-1px);
}
.tg-pill .ico, .header-cta .ico {
  width: 18px; height: 18px; display: block;
  filter: brightness(0) invert(1);
}
.tg-lg { min-height: 48px; padding: 0 20px; font-size: 15px; }
.tg-lg .ico { width: 20px; height: 20px; }
.hero .tg-pill {
  background: #fff; color: var(--navy) !important; border-color: #fff;
}
.hero .tg-pill .ico { filter: none; }
.hero .tg-pill:hover,
.hero .tg-pill:focus-visible {
  background: #dce8e3; border-color: #dce8e3; color: var(--navy) !important;
  box-shadow: 0 6px 18px rgba(8, 24, 40, 0.18);
  transform: translateY(-1px);
}
.hero-tg {
  margin-top: 16px;
  min-height: 44px;
  padding: 0 16px;
  font-size: 15px;
}
.cta-band .tg-pill {
  background: #fff; color: var(--navy) !important; border-color: #fff;
}
.cta-band .tg-pill .ico { filter: none; }
.cta-band .tg-pill:hover,
.cta-band .tg-pill:focus-visible {
  background: #dce8e3; border-color: #dce8e3; color: var(--navy) !important;
  box-shadow: 0 6px 18px rgba(8, 24, 40, 0.18);
  transform: translateY(-1px);
}
@media (max-width: 480px) {
  .header-cta span, .site-header .tg-pill span { display: none; }
  .header-cta, .site-header .tg-pill { padding-inline: 12px; }
}
.lang-switch {
  position: relative;
  flex-shrink: 0;
}
.lang-switch summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-panel {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  min-width: min(280px, calc(100vw - 32px));
  max-height: min(70vh, 420px);
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(11, 31, 51, 0.12);
}
.lang-panel a {
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.lang-panel a:hover,
.lang-panel a[aria-current="true"] {
  background: var(--accent-soft);
  color: var(--navy);
}
.mobile-langs {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.mobile-langs a {
  text-decoration: none;
  text-align: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  background: var(--wash);
}
.nav-toggle {
  width: 44px; height: 44px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--paper);
  display: grid; place-content: center; gap: 5px;
}
.nav-toggle span { width: 16px; height: 1.5px; background: var(--ink); display: block; }
.mobile-panel {
  display: none; border-top: 1px solid var(--line);
  padding: 8px var(--pad) calc(14px + var(--safe-b)); background: var(--paper);
}
.mobile-panel.open { display: block; }
.mobile-panel a {
  display: flex; align-items: center; min-height: 48px;
  text-decoration: none; color: var(--ink); font-weight: 600;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 980px) {
  .nav-desktop { display: flex; }
  .nav-toggle { display: none; }
  .mobile-panel { display: none !important; }
}

/* Buttons — one hover language on dark + light surfaces */
.btn, .btn-line, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700; font-size: 15px; text-decoration: none !important;
  border: 1.5px solid transparent;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.btn { background: #fff; color: var(--navy) !important; border-color: #fff; }
.btn:hover,
.btn:focus-visible {
  background: #dce8e3; border-color: #dce8e3; color: var(--navy) !important;
  box-shadow: 0 6px 18px rgba(8, 24, 40, 0.18);
  transform: translateY(-1px);
}
.section .btn,
.cta-band .btn { background: #fff; color: var(--navy) !important; border-color: #fff; }
.section .btn:hover,
.section .btn:focus-visible,
.cta-band .btn:hover,
.cta-band .btn:focus-visible {
  background: #dce8e3; border-color: #dce8e3; color: var(--navy) !important;
  box-shadow: 0 6px 18px rgba(8, 24, 40, 0.18);
  transform: translateY(-1px);
}
.btn-line {
  background: transparent; border-color: var(--navy); color: var(--navy) !important;
}
.btn-line:hover,
.btn-line:focus-visible {
  background: var(--accent-soft); border-color: var(--accent); color: var(--navy) !important;
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent; border-color: rgba(255, 255, 255, 0.72); color: #fff !important;
}
/* Idle = outline mark; press/hover = solid white block (obvious flip) */
.hero .btn-ghost,
.hero .actions .btn {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.78);
  color: #fff !important;
  box-shadow: none;
}
.hero .btn-ghost:hover,
.hero .btn-ghost:focus-visible,
.hero .btn-ghost:active,
.hero .actions .btn:hover,
.hero .actions .btn:focus-visible,
.hero .actions .btn:active {
  background: #fff;
  border-color: #fff;
  color: var(--navy) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  transform: translateY(-2px) scale(1.02);
}
.hero .btn-ghost:active,
.hero .actions .btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: #fff; border-color: #fff; color: var(--navy) !important;
  box-shadow: 0 8px 22px rgba(8, 24, 40, 0.22);
  transform: translateY(-1px);
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 520px) {
  .actions { flex-direction: column; }
  .actions > * { width: 100%; }
  .hero-actions { width: 100%; }
  .lang-panel { max-height: 50vh; overflow: auto; }
  .card-grid-6 { grid-template-columns: 1fr; }
}

/* ——— Hero: brand + copy left, step board right ——— */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #081828;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 12% 18%, rgba(47, 140, 112, 0.34), transparent 58%),
    radial-gradient(ellipse 55% 45% at 88% 12%, rgba(90, 150, 210, 0.22), transparent 52%),
    radial-gradient(ellipse 60% 50% at 72% 88%, rgba(20, 70, 110, 0.35), transparent 55%),
    linear-gradient(115deg, rgba(8, 24, 40, 0.55) 0%, rgba(11, 31, 51, 0.22) 42%, rgba(8, 24, 40, 0.7) 100%),
    url("/assets/img/hero-mesh.jpg") center / cover no-repeat;
  transform: scale(1.04);
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, #000 20%, transparent 78%);
  opacity: 0.55;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  opacity: 0.07;
  mix-blend-mode: soft-light;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 24px;
  padding: clamp(36px, 5.5vw, 64px) 0;
  align-items: start;
}
@media (min-width: 920px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 36px;
    align-items: stretch;
  }
}
.hero-brand {
  margin: 0 0 16px;
  font-family: var(--font-en);
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}
.hero-brand span {
  display: inline-block;
  margin-left: 10px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  vertical-align: middle;
  color: rgba(255, 255, 255, 0.78);
}
.hero h1 {
  color: #fff;
  margin-bottom: 12px;
  max-width: 16.5em;
}
.hero-tags {
  margin: 0 0 16px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #8fd0b8;
  line-height: 1.45;
}
.hero-sub {
  margin: 0 0 22px;
  max-width: 34em;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  line-height: 1.65;
}
.hero-note {
  margin: 10px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.48);
  line-height: 1.5;
}
.hero-board {
  list-style: none;
  margin: 0;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(8, 24, 40, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 18px 40px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px) saturate(1.2);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-board li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.hero-board li:last-child { border-bottom: 0; }
.hero-board span {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #8fd0b8;
  padding-top: 3px;
}
.hero-board strong {
  display: block;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.hero-board em {
  font-style: normal;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.45;
}

.policy-strip { display: none !important; }
.policy-strip-legacy {
  background: var(--warn-bg);
  border-bottom: 1px solid #f0d8c6;
  color: var(--warn-ink);
}
.policy-strip .wrap,
.policy-strip-legacy .wrap {
  display: grid;
  gap: 6px;
  padding: 16px 0;
}
@media (min-width: 720px) {
  .policy-strip .wrap {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
  }
}
.policy-strip strong { font-size: 14px; }
.policy-strip p { margin: 0; font-size: 14px; line-height: 1.55; }

/* Sections */
.section {
  padding: clamp(56px, 8vw, 96px) 0;
  border-bottom: 1px solid var(--line);
}
.section.wash { background: var(--wash); }
.section-head { margin-bottom: 28px; max-width: 42em; }
.sec-num {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 500;
}
.section-head h2 { margin-bottom: 10px; }

/* Buy / sell pair */
.pair {
  display: grid;
  gap: 14px;
}
@media (min-width: 860px) {
  .pair { grid-template-columns: 1fr 1fr; gap: 16px; }
}
.pane {
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 22px 22px;
}
.pane-alt { background: var(--paper); }
.section.wash .pane { background: var(--paper); }
.pane h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.pane > p {
  color: var(--muted);
  margin-bottom: 14px;
  font-size: 0.98rem;
}
.pane ul {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}
.pane li {
  position: relative;
  padding: 9px 0 9px 18px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink);
}
.pane li:last-child { border-bottom: 1px solid var(--line); }
.pane li::before {
  content: "";
  position: absolute; left: 0; top: 1.05em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

/* Scope tri */
.tri {
  display: grid;
  gap: 14px;
}
@media (min-width: 900px) {
  .tri { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
.tri > div {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 20px;
}
.tri h3 { margin-bottom: 8px; }
.tri p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* Specs */
.spec-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
@media (min-width: 800px) {
  .spec-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
}
.spec-grid li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 16px;
}
.section.wash .spec-grid li { background: var(--paper); }
.spec-grid span {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  padding-top: 3px;
}
.spec-grid h3 { margin: 0 0 4px; }
.spec-grid p { margin: 0; color: var(--muted); font-size: 14px; }
.tagline {
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--muted);
}

/* Table */
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}
.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.compare th, .compare td {
  text-align: start;
  padding: 14px 16px;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.compare thead th {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}
.compare tbody th {
  width: 24%;
  font-weight: 700;
  color: var(--ink);
  background: #f8fafc;
}
.compare tbody tr:last-child th,
.compare tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 720px) {
  .compare, .compare thead, .compare tbody, .compare th, .compare td, .compare tr {
    display: block; width: 100%;
  }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .compare tr { border-bottom: 1px solid var(--line); }
  .compare tbody th { width: auto; }
  .compare td::before {
    content: attr(data-label);
    display: block;
    font-size: 11px; font-weight: 700; color: var(--muted);
    margin-bottom: 4px; letter-spacing: 0.04em;
  }
}

/* Verify */
.verify-layout {
  display: grid;
  gap: 24px;
}
@media (min-width: 900px) {
  .verify-layout {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 36px;
    align-items: start;
  }
}
.verify-media, .process-media { margin: 0; }
.verify-media img, .process-media img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 14px;
  background: var(--wash);
}
.verify-media figcaption, .process-media figcaption {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.check-list li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.check-list li:first-child { border-top: 1px solid var(--line); }
.check-list span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  padding-top: 3px;
}
.check-list h3 { margin: 0 0 4px; font-size: 1.05rem; }
.check-list p { margin: 0; font-size: 14px; color: var(--muted); }

/* Stack lists (paths / process) */
.stack {
  list-style: none;
  margin: 0;
  padding: 0;
}
.stack li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.stack li:first-child { border-top: 1px solid var(--line); }
.stack > li > span {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  padding-top: 4px;
}
.stack h3 { margin: 0 0 6px; }
.stack p { margin: 0; color: var(--muted); max-width: 46em; }

.process-layout {
  display: grid;
  gap: 28px;
}
@media (min-width: 900px) {
  .process-layout {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: start;
  }
}

/* Content mini-cards — one card = one real topic / secondary page */
.card-grid {
  display: grid;
  gap: 12px;
}
@media (min-width: 640px) {
  .card-grid-2 { grid-template-columns: 1fr 1fr; }
  .card-grid-3 { grid-template-columns: 1fr 1fr; }
  .card-grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .card-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid-4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 980px) {
  .card-grid-6 { grid-template-columns: repeat(3, 1fr); }
}
.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 16px 16px;
  min-height: 100%;
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.card:hover {
  border-color: #9eb4c8;
  box-shadow: 0 12px 28px rgba(11, 31, 51, 0.08);
  color: inherit;
  transform: translateY(-2px);
}
.card-media {
  padding: 0;
  gap: 0;
}
.card-thumb {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #d9e3ec;
  flex-shrink: 0;
}
.card-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.card-media:hover .card-thumb img {
  transform: scale(1.04);
}
.card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 14px 16px;
  flex: 1;
}
.section:not(.wash) .card { background: var(--wash); }
.section:not(.wash) .card:hover { background: #eef3f7; }
.card-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.card h3 {
  margin: 0;
  font-size: 1.08rem;
  color: var(--ink);
  line-height: 1.3;
}
.card > p,
.card-body > p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}
.card-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.card-points li {
  position: relative;
  padding-left: 12px;
  font-size: 13px;
  color: var(--body);
  line-height: 1.45;
}
.card-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.card-go {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}
.card:hover .card-go { color: var(--accent); }
.card-static {
  cursor: default;
}
.card-static:hover {
  box-shadow: none;
  border-color: var(--line);
  transform: none;
}
.card-static.card-media:hover .card-thumb img {
  transform: none;
}
.section:not(.wash) .card-static:hover { background: var(--wash); }
.card-static .card-go a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}
.card-static .card-go a:hover { color: var(--accent); }

/* legacy aliases */
.hub-grid { display: grid; gap: 12px; }
.hub-card { /* superseded by .card */ }

/* Guides */
.toc { display: grid; gap: 12px; }
@media (min-width: 800px) {
  .toc { grid-template-columns: 1fr 1fr; }
}
.toc a {
  display: grid;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 18px;
}
.section:not(.wash) .toc a { background: var(--wash); }
.toc a:hover { border-color: #c9d5e0; }
.toc h3 { margin: 0; color: var(--ink); }
.toc p { margin: 0; color: var(--muted); font-size: 14px; }
.toc span {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

/* Related rail on secondary pages */
.related {
  margin: 28px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
}
.related strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
}
.related ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
@media (min-width: 720px) {
  .related ul { grid-template-columns: 1fr 1fr; }
}
.related a {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  background: var(--wash);
}
.related a:hover { border-color: #b8c9d8; color: var(--navy); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  min-height: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-weight: 700; font-size: 16px; color: var(--ink); padding: 10px 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 22px;
  color: var(--muted);
  line-height: 1;
  flex-shrink: 0;
}
.faq details[open] summary::after { content: "–"; }
.faq p {
  margin: 0 0 18px;
  color: var(--body);
  max-width: 46em;
  font-size: 15px;
}

.note {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* CTA */
.cta-band {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.72);
  padding: clamp(56px, 8vw, 88px) 0;
}
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band .lead { color: rgba(255, 255, 255, 0.62); margin-bottom: 22px; }
.cta-band .btn { background: #fff; color: var(--navy) !important; border-color: #fff; }

/* Inner pages */
.page-hero {
  padding: clamp(40px, 6vw, 72px) 0 36px;
  border-bottom: 1px solid var(--line);
  background: var(--wash);
}
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--ink); text-decoration: none; font-weight: 600; }
.prose { padding: clamp(36px, 5vw, 64px) 0 80px; max-width: 40rem; }
.prose h2 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: 0.45em; }
.meta-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 0 0 28px;
  font-size: 15px;
}
.copy-row {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; margin: 14px 0 22px;
}
.copy-row code {
  font-family: var(--font-mono); font-size: 13px;
  background: var(--wash); padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 10px;
  flex: 1; min-width: 200px; white-space: pre-wrap;
}
.copy-btn {
  min-height: 48px; padding: 0 18px; border-radius: 10px;
  background: var(--navy); color: #fff; font-weight: 700; font-size: 13px;
}

.site-footer {
  background: #071523;
  color: rgba(255, 255, 255, 0.55);
  padding: 48px var(--pad) calc(100px + var(--safe-b));
  font-size: 14px;
}
.site-footer .wrap { display: grid; gap: 28px; }
@media (min-width: 800px) {
  .site-footer .wrap { grid-template-columns: 1.5fr 1fr 1fr; }
}
.site-footer strong {
  display: block; color: #fff; margin-bottom: 8px; font-size: 1rem;
}
.site-footer p { margin: 0; }
.site-footer a { color: #9fd0bf; text-decoration: none; }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.site-footer .links a {
  color: rgba(255, 255, 255, 0.55);
  min-height: 40px; display: inline-flex; align-items: center;
}
.site-footer .links a:hover { color: #fff; }
.foot-note { margin-top: 12px; font-size: 12px; opacity: 0.7; }

.fab-tg, .fab {
  position: fixed;
  right: max(16px, var(--safe-r));
  bottom: max(16px, var(--safe-b));
  z-index: 60;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--navy); color: #fff;
  display: grid; place-items: center;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(11, 31, 51, 0.18);
  transition: transform 0.2s ease, background 0.2s ease;
}
.fab-tg:hover, .fab:hover,
.fab-tg:focus-visible, .fab:focus-visible {
  color: #fff; background: var(--navy-2); transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(8, 24, 40, 0.28);
}
.fab-tg img {
  width: 22px; height: 22px; display: block;
  filter: brightness(0) invert(1);
}

/* legacy class bridges for personal / guides pages */
.eyebrow { font-size: 12px; color: var(--muted); letter-spacing: 0.08em; margin-bottom: 10px; }
.feature-list, .feature-row, .split-actions, .split-pane, .spec-list, .process, .check-grid, .check-item, .toc-list, .toc-item, .media-band, .pill-row, .pill, .compare-wrap { }
.spec-matrix { display: contents; }
.spec-cell { display: contents; }

@media (max-width: 359px) { .brand small { display: none; } }
@media print {
  .preview-bar, .site-header, .fab, .nav-toggle, .mobile-panel { display: none !important; }
}

.preview-bar{display:none!important}
