/* ==========================================================================
   Wamsoft Group Limited -- wamsoft.group
   Design system (spec section 5). Self-hosted only: no external fonts, no CDN,
   no analytics, no cookies. Every asset is served from this domain.
   ========================================================================== */

/* --- 1. Design tokens ---------------------------------------------------- */
:root {
  --navy-900: #0b1e2f;
  --navy-800: #0e2439;
  --navy-700: #16324c;
  --sand-500: #c08b3e;
  --sand-700: #8a5f1f;   /* text-safe accent: 5.6:1 on white, 5.2:1 on --paper */
  --sand-400: #d3a75f;
  --sand-100: #f2e7d5;
  --paper:     #f7f5f1;
  --white:     #ffffff;
  --ink:       #16202b;
  --muted:     #5c6b7a;
  --line:      #dcd6cb;
  --line-dark: rgba(255, 255, 255, 0.16);
  --ok:        #2f6f4f;
  --warn:      #8a4b12;

  --radius-card: 10px;
  --radius-input: 6px;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 68px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;

  --shadow-sm: 0 1px 2px rgba(11, 30, 47, 0.06);
  --shadow-md: 0 6px 20px rgba(11, 30, 47, 0.08);
  --measure: 68ch;
  --container: 1160px;
}

/* --- 2. Reset / base ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; }
img { display: block; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }
p { margin: 0 0 var(--space-2); }
a { color: var(--navy-700); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--sand-500); }
strong { font-weight: 650; }
address { font-style: normal; }
table { border-collapse: collapse; width: 100%; }
:target { scroll-margin-top: 96px; }

:focus-visible {
  outline: 3px solid var(--sand-400);
  outline-offset: 2px;
  border-radius: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--sand-500);
  color: var(--navy-900);
  padding: 12px 20px;
  font-weight: 650;
  border-radius: 0 0 var(--radius-input) 0;
}
.skip-link:focus { left: 0; color: var(--navy-900); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.icon { width: 22px; height: 22px; display: block; }

/* --- 3. Header / navigation --------------------------------------------- */
.site-header {
  background: var(--navy-900);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
  margin-right: auto;
}
.brand:hover { color: var(--white); }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-weight: 700; font-size: 1.0625rem; letter-spacing: 0.01em; }
.brand-sub { font-size: 0.75rem; color: var(--sand-400); letter-spacing: 0.04em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: var(--space-3); }
.nav-list { display: flex; align-items: center; gap: var(--space-1); }
.nav-link {
  display: block;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.9375rem;
  border-radius: var(--radius-input);
}
.nav-link:hover { color: var(--white); background: rgba(255, 255, 255, 0.08); }
.nav-link[aria-current="page"] { color: var(--white); box-shadow: inset 0 -2px 0 var(--sand-400); }
.nav-cta { display: flex; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 1px solid var(--line-dark);
  color: var(--white);
  border-radius: var(--radius-input);
  padding: 10px 14px;
  font: inherit;
  font-size: 0.9375rem;
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  content: "";
  position: relative;
}
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }

/* --- 4. Buttons, badges, links ------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-input);
  border: 1px solid transparent;
  font-weight: 650;
  font-size: 0.9375rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn--sm { padding: 9px 16px; font-size: 0.875rem; }
.btn--primary { background: var(--sand-500); color: var(--navy-900); }
.btn--primary:hover { background: var(--sand-400); color: var(--navy-900); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.45); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); }
.btn--outline { background: transparent; color: var(--navy-700); border-color: var(--navy-700); }
.btn--outline:hover { background: var(--navy-700); color: var(--white); }

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.badge--sand { background: var(--sand-100); color: #6b4708; }
.badge--navy { background: var(--navy-700); color: var(--white); }
.badge--muted { background: #e8e4dc; color: var(--muted); }

.arrow-link { font-weight: 650; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.arrow-link-mark { transition: transform 0.15s ease; }
.arrow-link:hover .arrow-link-mark { transform: translateX(3px); }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: var(--space-2) 0 0; }
.tag {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* --- 5. Layout: sections, grids ----------------------------------------- */
.site-main { display: block; }

.section { padding: var(--space-6) 0; }
.section--tight { padding: var(--space-5) 0; }
.section--paper { background: var(--paper); }
.section--sand { background: var(--sand-100); }
.section--navy { background: var(--navy-900); color: var(--white); }
.section--navy .section-title,
.section--navy .card-title { color: var(--white); }
.section--navy .section-lead,
.section--navy .card-body,
.section--navy .prose-p { color: rgba(255, 255, 255, 0.82); }
.section--navy .eyebrow, .hero .eyebrow, .page-head .eyebrow { color: var(--sand-400); }

.grid { display: grid; gap: var(--space-3); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.section-head { max-width: var(--measure); margin-bottom: var(--space-4); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  margin: 0 0 var(--space-1);
  color: var(--sand-700);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.section-title { margin: 0 0 var(--space-2); font-size: 1.875rem; line-height: 1.25; }
.section-lead { margin: 0; color: var(--muted); font-size: 1.0625rem; }

.split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--space-4); align-items: start; }
.split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.aside-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-card); padding: var(--space-3); }
.section--navy .aside-card { background: var(--navy-800); border-color: var(--line-dark); }

.prose { max-width: var(--measure); }
.prose-p { color: var(--ink); }
.prose--muted .prose-p { color: var(--muted); }

.list-plain { display: grid; gap: 10px; }
.list-plain li { padding-left: 18px; position: relative; color: var(--muted); }
.list-plain li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.7em;
  width: 6px; height: 6px;
  background: var(--sand-500);
  border-radius: 50%;
}
.section--navy .list-plain li { color: rgba(255, 255, 255, 0.82); }

/* --- 6. Hero / page head ------------------------------------------------ */
.hero { background: var(--navy-900); color: var(--white); padding: var(--space-6) 0; }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: var(--space-5);
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-3);
}
.hero-title { margin: 0 0 var(--space-3); font-size: 2.6rem; line-height: 1.15; letter-spacing: -0.01em; }
.hero-lead { margin: 0 0 var(--space-4); font-size: 1.1875rem; color: rgba(255, 255, 255, 0.86); max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.hero-facts {
  margin: 0;
  background: var(--navy-800);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-card);
  padding: var(--space-3);
  display: grid;
  gap: var(--space-2);
}
.hero-fact { display: grid; gap: 2px; }
.hero-fact-label { color: var(--sand-400); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.hero-fact-value { margin: 0; color: var(--white); font-weight: 600; }

.page-head { background: var(--navy-900); color: var(--white); padding: var(--space-5) 0; }
.page-title { margin: 0 0 var(--space-2); font-size: 2.125rem; line-height: 1.2; }
.page-lead { margin: 0; color: rgba(255, 255, 255, 0.84); font-size: 1.0625rem; max-width: 72ch; }
.page-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.page-head .eyebrow { color: var(--sand-400); }

/* --- 7. Cards ----------------------------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: var(--space-3);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--sand-100);
  color: var(--navy-700);
}
.card-tag { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.card-title { margin: 0; font-size: 1.125rem; }
.card-body { margin: 0; color: var(--muted); font-size: 0.9375rem; }
.card-link { margin: auto 0 0; }
.section--paper .card { background: var(--white); }

/* --- 8. Stats, steps, tables ------------------------------------------- */
.stat-band {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: var(--space-3);
}
.stat-band--c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-band--c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.section--navy .stat-band { background: var(--navy-800); border-color: var(--line-dark); }
.stat { display: flex; flex-direction: column-reverse; gap: 2px; }
.stat-label { color: var(--muted); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.06em; }
.stat-value { margin: 0; font-size: 1.25rem; font-weight: 700; color: var(--navy-800); }
.section--navy .stat-label { color: rgba(255, 255, 255, 0.7); }
.section--navy .stat-value { color: var(--white); }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); counter-reset: step; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); padding: var(--space-3); position: relative; }
.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--white);
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 12px;
}
.step-title { margin: 0 0 6px; font-size: 1rem; }
.step-body { margin: 0; color: var(--muted); font-size: 0.9375rem; }
.section--navy .step { background: var(--navy-800); border-color: var(--line-dark); }
.section--navy .step-body { color: rgba(255, 255, 255, 0.8); }
.section--navy .step-title { color: var(--white); }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--white);
}
.table-wrap:focus-visible { outline: 3px solid var(--sand-400); outline-offset: 2px; }
.data-table, .kv-table { min-width: 560px; font-size: 0.9375rem; }
.kv-table { min-width: 100%; }
.data-table caption, .kv-table caption {
  caption-side: top;
  text-align: left;
  padding: var(--space-2) var(--space-3);
  font-weight: 650;
  color: var(--navy-800);
  border-bottom: 1px solid var(--line);
}
.data-table th, .data-table td,
.kv-table th, .kv-table td {
  padding: 12px var(--space-3);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.data-table thead th { background: var(--paper); color: var(--navy-800); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.05em; }
.data-table tbody tr:last-child td, .kv-table tbody tr:last-child td, .kv-table tbody tr:last-child th { border-bottom: 0; }
.data-table tbody tr:nth-child(even) { background: #fbfaf8; }
.kv-table th { width: 34%; background: var(--paper); color: var(--navy-800); font-weight: 650; }
.table-note { margin: 10px 0 0; color: var(--muted); font-size: 0.875rem; }

/* --- 9. Callouts, checklists, CTA --------------------------------------- */
.callout {
  border-left: 4px solid var(--sand-500);
  background: var(--sand-100);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  padding: var(--space-3);
}
.callout--info { border-left-color: var(--navy-700); background: #eef2f6; }
.callout--warn { border-left-color: var(--warn); background: #fbf1e5; }
.callout--ok { border-left-color: var(--ok); background: #eaf3ee; }
.callout-title { margin: 0 0 6px; font-weight: 700; }
.callout-body { margin: 0; color: var(--ink); font-size: 0.9375rem; }

.check-list { display: grid; gap: 10px; }
.check-item { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); }
.check-item .icon { flex: none; width: 18px; height: 18px; margin-top: 4px; color: var(--ok); }
.section--navy .check-item { color: rgba(255, 255, 255, 0.84); }
.section--navy .check-item .icon { color: var(--sand-400); }

.cta-band { background: var(--navy-800); color: var(--white); padding: var(--space-5) 0; }
.cta-band--sand { background: var(--sand-500); color: var(--navy-900); }
.cta-band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); }
.cta-band-copy { max-width: 62ch; }
.cta-band-title { margin: 0 0 6px; font-size: 1.5rem; }
.cta-band-body { margin: 0; color: rgba(255, 255, 255, 0.84); }
.cta-band--sand .cta-band-body { color: rgba(11, 30, 47, 0.85); }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.cta-band--sand .btn--primary { background: var(--navy-900); color: var(--white); }
.cta-band--sand .btn--ghost { color: var(--navy-900); border-color: rgba(11, 30, 47, 0.5); }
.cta-band--sand .btn--ghost:hover { background: rgba(11, 30, 47, 0.08); color: var(--navy-900); }

/* --- 10. Breadcrumb ----------------------------------------------------- */
.breadcrumb { background: var(--navy-800); color: rgba(255, 255, 255, 0.8); border-bottom: 1px solid var(--line-dark); }
.breadcrumb-list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px var(--space-3); max-width: var(--container); margin: 0 auto; font-size: 0.8125rem; }
.breadcrumb-item a { color: rgba(255, 255, 255, 0.85); }
.breadcrumb-item a:hover { color: var(--sand-400); }
.breadcrumb-sep { color: rgba(255, 255, 255, 0.4); }
/* breadcrumb rendered inside a dark page head: no second background band */
.page-head .breadcrumb { background: transparent; border-bottom: 0; }
.page-head .breadcrumb-list { padding: 0 0 var(--space-2); max-width: none; }

/* --- 11. Brand cards ---------------------------------------------------- */
.brand-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--sand-500);
  border-radius: var(--radius-card);
  padding: var(--space-3);
  box-shadow: var(--shadow-sm);
}
.brand-card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); flex-wrap: wrap; }
.brand-card-name { margin: 0; font-size: 1.5rem; letter-spacing: 0.04em; }
.brand-meta { margin: 10px 0 0; font-size: 0.9375rem; color: var(--ink); }
.brand-meta-label { display: block; color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; }
.brand-apps, .brand-cats { margin: 10px 0 0; display: grid; gap: 6px; }
.brand-app, .brand-cat { color: var(--muted); font-size: 0.9375rem; padding-left: 16px; position: relative; }
.brand-app::before, .brand-cat::before {
  content: ""; position: absolute; left: 0; top: 0.7em; width: 6px; height: 6px;
  background: var(--sand-500); border-radius: 50%;
}
.brand-note { margin: var(--space-2) 0 0; font-size: 0.9375rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: var(--space-2); }

/* --- 12. Media / figures ------------------------------------------------ */
.media { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; }
.media-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.media-caption { padding: 10px var(--space-2); font-size: 0.8125rem; color: var(--muted); }
.figure-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }

/* --- 13. Legal prose ---------------------------------------------------- */
.legal-prose { max-width: 76ch; }
.legal-h { margin: var(--space-4) 0 var(--space-2); font-size: 1.25rem; }
.legal-h:first-child { margin-top: 0; }
.legal-p { color: var(--ink); }
.legal-updated { color: var(--muted); font-size: 0.875rem; margin-bottom: var(--space-4); }
.legal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: var(--space-4); align-items: start; }
.legal-toc { position: sticky; top: 96px; }
.legal-toc-title { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 10px; }

/* --- 14. Forms ---------------------------------------------------------- */
.form { max-width: 760px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field-label { font-weight: 650; font-size: 0.9375rem; }
.field-required { color: var(--warn); }
.field-input, .field-select, .field-textarea {
  font: inherit;
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #b9b2a6;
  border-radius: var(--radius-input);
  padding: 11px 12px;
  width: 100%;
}
.field-textarea { resize: vertical; min-height: 140px; }
.field-input:focus, .field-select:focus, .field-textarea:focus {
  border-color: var(--navy-700);
  outline: 3px solid var(--sand-400);
  outline-offset: 1px;
}
.field-help { margin: 0; font-size: 0.8125rem; color: var(--muted); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-top: var(--space-3); }
.form-status { margin: 0; font-size: 0.9375rem; }
.form-status[data-state="ok"] { color: var(--ok); }
.form-status[data-state="error"] { color: var(--warn); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: var(--space-2) 0 0; font-size: 0.8125rem; color: var(--muted); }

/* --- 15. Footer --------------------------------------------------------- */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, 0.82); padding: var(--space-5) 0 var(--space-3); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--space-4); }
.footer-title { margin: 0 0 var(--space-2); color: var(--white); font-size: 0.9375rem; text-transform: uppercase; letter-spacing: 0.07em; }
.footer-blurb { font-size: 0.875rem; color: rgba(255, 255, 255, 0.78); }
.footer-address { font-size: 0.875rem; color: rgba(255, 255, 255, 0.78); margin-bottom: var(--space-2); }
.footer-list { display: grid; gap: 8px; }
.footer-link { color: rgba(255, 255, 255, 0.86); text-decoration: none; font-size: 0.9375rem; }
.footer-link:hover { color: var(--sand-400); text-decoration: underline; }
.footer-legal { margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--line-dark); display: grid; gap: 6px; }
.footer-legal-line { margin: 0; font-size: 0.8125rem; color: rgba(255, 255, 255, 0.72); }
.footer-legal-line--ids strong { color: var(--white); }

/* --- 16. Responsive: 1024 / 768 per spec section 5.3 -------------------- */
@media (max-width: 1023px) {
  .grid--3, .grid--4, .steps, .figure-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-band, .stat-band--c3, .stat-band--c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero { padding: var(--space-5) 0; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .legal-layout { grid-template-columns: minmax(0, 1fr); }
  .legal-toc { position: static; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--navy-800);
    border-top: 1px solid var(--line-dark);
    padding: var(--space-2) var(--space-3) var(--space-3);
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2);
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  .nav[data-open="true"] { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link { padding: 13px 12px; font-size: 1rem; }
  .nav-cta { justify-content: flex-start; }
  .header-inner { position: relative; }
}

@media (max-width: 767px) {
  body { font-size: 16px; }
  .section { padding: var(--space-5) 0; }
  .grid--2, .grid--3, .grid--4, .steps, .figure-grid, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .stat-band, .stat-band--c3, .stat-band--c4 { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-title { font-size: 1.9rem; }
  .page-title { font-size: 1.7rem; }
  .section-title { font-size: 1.5rem; }
  .container { padding: 0 var(--space-2); }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
  .hero-facts { padding: var(--space-2); }
  .brand-card-head { flex-direction: column; align-items: flex-start; }
}

/* --- 17. Motion & print ------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle, .skip-link, .breadcrumb { display: none !important; }
  body { font-size: 11pt; color: #000; }
  .section { padding: 12pt 0; }
  a[href^="/"]::after { content: " (wamsoft.group" attr(href) ")"; font-size: 9pt; }
  .table-wrap { overflow: visible; }
  .data-table, .kv-table { min-width: 0; }
}

/* --- 18. Component-library additions ------------------------------------ */
.page { display: block; }

.nav-item { display: block; }
.nav-toggle-text { font-weight: 600; }

.hero-copy { max-width: 62ch; }
.hero-aside { align-self: stretch; }

.split-aside { min-width: 0; }
.legal-aside { min-width: 0; }
.legal-toc-title-p { margin: 0 0 10px; font-size: 0.9375rem; font-weight: 650; }

.footer-inner { display: block; }
.footer-col { min-width: 0; }
.footer-item { min-width: 0; }
.footer-list--contact { margin-top: 4px; }
.footer-list--legal .footer-link { font-size: 0.9375rem; }
.footer-col--about .btn { margin-top: 6px; }

.brand-meta--block { margin-bottom: 0; }

/* FAQ list */
.faq-list { display: grid; gap: var(--space-3); max-width: 92ch; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: var(--space-3);
  box-shadow: var(--shadow-sm);
}
.faq-question {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin: 0 0 8px;
  font-size: 1.0625rem;
  line-height: 1.4;
}
.faq-index { flex: none; color: var(--sand-700); font-weight: 700; font-size: 0.875rem; }
.faq-answer { margin: 0; color: var(--muted); }

/* Product tiles */
.product-tile {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.product-tile-link { display: block; color: inherit; text-decoration: none; }
.product-tile-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.product-tile-body { display: block; padding: var(--space-2) var(--space-3) var(--space-3); }
.product-tile-eyebrow {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sand-700);
}
.product-tile-title { display: block; font-size: 1.125rem; font-weight: 700; margin: 4px 0 6px; }
.product-tile-note { display: block; font-size: 0.875rem; color: var(--muted); }
.product-tile-link:hover .product-tile-title { color: var(--sand-500); }
.product-tile-link:focus-visible { outline: 3px solid var(--sand-400); outline-offset: -3px; }

.footer-col--contact { min-width: 0; }
.footer-col--contact .footer-address { margin-bottom: var(--space-2); }

/* --- 19. Legal sidebar links (light card, so not the footer palette) --- */
.aside-list { display: grid; gap: 8px; }
.aside-item { min-width: 0; }
.aside-link { color: var(--navy-700); font-size: 0.9375rem; }
.aside-link:hover { color: var(--sand-700); }

/* 品牌卡片：实体信息按需提供的说明行 */
.brand-meta--note {
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}
