/* =========================================================
   GMS Marketing Site - shared stylesheet
   Brand: Global Market Signals (parent) + SRS + Catalyst + Institute
   Tokens derived from gms-brand skill (v0.5)
   ========================================================= */

:root {
  /* Ground */
  --navy: #0E2A3D;
  --navy-deeper: #091F2E;
  --navy-soft: #163A52;
  --paper: #F7F9FA;
  --paper-alt: #EEF2F5;
  --ink: #0E2A3D;
  --ink-soft: #3E5160;
  --ink-mute: #6B7D8A;
  --line: #D8DFE4;
  --line-dark: #1B3C50;

  /* GMS parent */
  --aqua: #5AD9C9;
  --aqua-soft: #A9EAE1;
  --teal: #2DB8B3;
  --ocean: #1E6E8A;
  --sky: #6FB4D6;
  --deep: #0B3A5B;
  --amber: #F5A623;

  /* SRS */
  --mint: #45EBD8;
  --mint-dark: #1E8E89;
  --green: #3EE686;
  --green-dark: #1F8A54;

  /* Catalyst */
  --coral: #E9604B;
  --coral-dark: #C44A37;

  /* Scale */
  --radius: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --maxw: 1200px;
  --pad: clamp(1.25rem, 3vw, 2rem);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-fast: 140ms;
  --dur: 220ms;
  --dur-slow: 400ms;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(14,42,61,0.05), 0 1px 1px rgba(14,42,61,0.04);
  --shadow-md: 0 6px 18px -6px rgba(14,42,61,0.12), 0 2px 4px rgba(14,42,61,0.06);
  --shadow-lg: 0 20px 40px -12px rgba(14,42,61,0.18), 0 6px 12px -4px rgba(14,42,61,0.08);
  --shadow-mint: 0 14px 30px -10px rgba(30,142,137,0.35);
  --shadow-coral: 0 14px 30px -10px rgba(233,96,75,0.30);

  /* Type */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--teal);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}
a:hover { color: var(--ocean); text-decoration: underline; text-underline-offset: 3px; }

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

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.5rem, 5.5vw, 4.25rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.75rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.015em; line-height: 1.25; }
h4 { font-size: 0.92rem; }
p  { margin: 0 0 1em; max-width: 62ch; }

em { font-style: italic; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247,249,250,0.85);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.875rem var(--pad);
  max-width: var(--maxw);
  margin: 0 auto;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.nav__brand img, .nav__brand svg { height: 48px; width: auto; display: block; }
.nav__links { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.nav__links a { color: var(--ink); font-size: 0.95rem; font-weight: 500; position: relative; }
.nav__links a:hover { color: var(--teal); text-decoration: none; }
.nav__links a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav__links a:not(.nav__cta):hover::after,
.nav__links a:not(.nav__cta)[aria-current="page"]::after { transform: scaleX(1); }
.nav__links a[aria-current="page"] { color: var(--teal); }
.nav__cta {
  background: var(--navy);
  color: var(--paper) !important;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav__cta:hover { background: var(--teal); color: var(--navy) !important; text-decoration: none; }
.nav__toggle { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--ink); padding: 0.5rem 0.65rem; border-radius: var(--radius); }
.nav__toggle:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 2px; }
.btn:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; }

/* ---------- Nav dropdowns ---------- */
.nav__dropdown { position: relative; }
.nav__dropdown-toggle {
  background: none;
  border: 0;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: color var(--dur-fast) var(--ease);
}
.nav__dropdown-toggle:hover { color: var(--teal); }
.nav__dropdown-toggle::after {
  content: "▾";
  font-size: 0.68rem;
  opacity: 0.55;
  transition: transform var(--dur) var(--ease);
  display: inline-block;
}
.nav__dropdown:hover .nav__dropdown-toggle::after,
.nav__dropdown:focus-within .nav__dropdown-toggle::after { transform: rotate(180deg); }
.nav__dropdown:hover .nav__dropdown-toggle,
.nav__dropdown:focus-within .nav__dropdown-toggle { color: var(--teal); }

.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 0.85rem);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 190px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 0.45rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease), transform var(--dur) var(--ease);
  z-index: 100;
}
.nav__dropdown:hover .nav__dropdown-menu,
.nav__dropdown:focus-within .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav__dropdown-menu::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background: var(--paper);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}
.nav__dropdown-menu a {
  display: flex;
  align-items: center;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--ink);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
  white-space: nowrap;
  gap: 0.5rem;
}
.nav__dropdown-menu a::after { display: none !important; }
.nav__dropdown-menu a:hover { background: var(--paper-alt); color: var(--teal); text-decoration: none; }
.nav__dropdown-menu a[aria-current="page"] { background: var(--paper-alt); color: var(--teal); }
.nav__dropdown-menu .menu-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  padding: 0.6rem 0.9rem 0.25rem;
  display: block;
}
.nav__dropdown-menu hr { border: 0; border-top: 1px solid var(--line); margin: 0.35rem 0; }

@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem var(--pad) 1.25rem;
    gap: 0.75rem;
    display: none;
    box-shadow: var(--shadow-md);
  }
  .nav[data-open="true"] .nav__links { display: flex; }
  .nav__dropdown { width: 100%; }
  .nav__dropdown-toggle { width: 100%; justify-content: space-between; padding: 0; }
  .nav__dropdown-menu {
    position: static;
    transform: none !important;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--line);
    border-radius: 0;
    padding: 0.25rem 0 0.25rem 0.85rem;
    margin-top: 0.4rem;
    background: transparent;
    display: none;
  }
  .nav__dropdown-menu::before { display: none; }
  .nav__dropdown[data-open="true"] .nav__dropdown-menu { display: block; }
  .nav__dropdown[data-open="true"] .nav__dropdown-toggle::after { transform: rotate(180deg); }
  .nav__dropdown-menu a { padding: 0.3rem 0; font-size: 0.9rem; color: var(--ink-soft); }
  .nav__dropdown-menu .menu-label { padding: 0.5rem 0 0.1rem; }
  .nav__dropdown-menu hr { margin: 0.25rem 0; }
}

/* ---------- Sections ---------- */
section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; position: relative; }
section.dark { background: var(--navy); color: var(--paper); }
section.dark a { color: var(--aqua); }
section.dark h1, section.dark h2, section.dark h3 { color: var(--paper); }
section.paper-alt { background: var(--paper-alt); }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--teal);
  margin-bottom: 1rem;
  display: inline-block;
}
.dark .eyebrow { color: var(--aqua); }

/* ---------- Hero ---------- */
.hero {
  background: var(--navy);
  color: var(--paper);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: url('/bg/topography.svg') no-repeat center / cover;
  opacity: 0.55;
  z-index: -1;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 60% at 82% 35%, rgba(90,217,201,0.22), transparent 60%),
    radial-gradient(ellipse 50% 60% at 10% 90%, rgba(30,110,138,0.25), transparent 60%);
  pointer-events: none;
  z-index: -1;
}
.hero__inner { position: relative; z-index: 1; padding-block: clamp(4.5rem, 11vw, 8rem) clamp(4rem, 10vw, 7rem); }
.hero h1 { color: var(--paper); max-width: 18ch; }
.hero .lede { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: #CAD4DB; max-width: 58ch; }
.hero .tagline { color: var(--aqua); font-family: var(--mono); font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; }

/* Hero statline - live below the CTA row */
.hero__stat {
  margin-top: 3rem;
  display: flex; flex-wrap: wrap; gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(247,249,250,0.12);
}
.hero__stat .metric__value { color: var(--aqua); font-size: clamp(1.6rem, 2.8vw, 2.25rem); }
.hero__stat .metric__label { color: #94A3AE; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 0;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), color var(--dur) var(--ease);
  letter-spacing: -0.005em;
  line-height: 1;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--aqua); color: var(--navy) !important; }
.btn--primary:hover { background: var(--paper); }
.btn--ghost { background: transparent; border: 1px solid currentColor; color: inherit !important; }
.btn--ghost:hover { background: rgba(247,249,250,0.08); box-shadow: none; }
.dark .btn--ghost:hover { background: rgba(247,249,250,0.08); }
body > section:not(.dark):not(.hero) .btn--ghost { color: var(--ink) !important; border-color: var(--line); }
body > section:not(.dark):not(.hero) .btn--ghost:hover { background: var(--paper-alt); border-color: var(--navy); }
.hero .btn--ghost { color: var(--paper) !important; border-color: rgba(247,249,250,0.55); }
.hero .btn--ghost:hover { background: rgba(247,249,250,0.08); border-color: var(--paper); }
.btn--coral { background: var(--coral); color: var(--paper) !important; }
.btn--coral:hover { background: var(--coral-dark); box-shadow: var(--shadow-coral); }
.btn--mint { background: var(--mint); color: var(--navy) !important; }
.btn--mint:hover { background: var(--aqua-soft); box-shadow: var(--shadow-mint); }
.btn-row { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.75rem; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.9rem;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
}
.card:hover { border-color: var(--teal); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card h3 { margin-top: 0.5rem; }
.card p { color: var(--ink-soft); font-size: 0.97rem; }
.card a { font-weight: 600; }

.card__tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.6rem;
}
.tag--gms { background: rgba(45,184,179,0.12); color: var(--ocean); }
.tag--srs { background: rgba(69,235,216,0.18); color: var(--teal); }
.tag--catalyst { background: rgba(69,235,216,0.18); color: var(--teal); }
.tag--institute { background: rgba(69,235,216,0.18); color: var(--teal); }
.dark .tag--srs,
.dark .tag--catalyst,
.dark .tag--institute { color: var(--aqua); }

.card--dark { background: var(--navy-soft); color: var(--paper); border-color: var(--line-dark); }
.card--dark h3 { color: var(--paper); }
.card--dark p { color: #B6C3CB; }
.card--dark:hover { border-color: var(--aqua); }
.card--dark a { color: var(--aqua); }

/* Card variants that pick up sub-brand hover accents */
.card--srs:hover { border-color: var(--mint); }
.card--catalyst:hover { border-color: var(--mint); }
.card--institute:hover { border-color: var(--teal); }

/* Whole-card click target: applies to .card--linked, expands the first inline link to fill the card */
.card--linked { cursor: pointer; }
.card--linked > a:last-of-type::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* ---------- Pillar strip ---------- */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.pillar {
  padding: 1.4rem 1.4rem;
  border-left: 2px solid var(--aqua);
  background: rgba(90,217,201,0.06);
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.pillar:hover { background: rgba(90,217,201,0.12); border-left-color: var(--teal); }
.pillar .mono { font-size: 0.72rem; color: var(--teal); letter-spacing: 0.1em; font-weight: 600; }
.pillar p { margin: 0.4rem 0 0; font-size: 0.97rem; color: var(--ink); font-weight: 500; }
.dark .pillar p { color: var(--paper); }
.dark .pillar .mono { color: var(--aqua); }

/* ---------- Metric block ---------- */
.metric { display: flex; flex-direction: column; gap: 0.35rem; }
.metric__value {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(2.2rem, 4.5vw, 3.25rem);
  color: var(--teal);
  line-height: 1;
  letter-spacing: -0.02em;
}
.dark .metric__value { color: var(--aqua); }
.metric__label { font-size: 0.85rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 500; }
.dark .metric__label { color: #94A3AE; }

.metrics-banded {
  position: relative;
}
.metrics-banded::before {
  content: "";
  position: absolute; inset: 0;
  background: url('/bg/datagrid.svg') repeat;
  opacity: 0.35;
  pointer-events: none;
}
.metrics-banded .wrap { position: relative; z-index: 1; }

/* ---------- Footer ---------- */
footer {
  background: var(--navy-deeper);
  color: #C3CED6;
  padding: 3.5rem 0 2rem;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}
footer::before {
  content: "";
  position: absolute; inset: 0;
  background: url('/bg/datagrid.svg') repeat;
  opacity: 0.25;
  pointer-events: none;
}
footer .wrap { position: relative; z-index: 1; }
footer a { color: var(--aqua); }
footer a:hover { color: var(--paper); }
footer .cols {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2.5rem;
}
@media (max-width: 720px) { footer .cols { grid-template-columns: 1fr 1fr; gap: 1.75rem; } }
footer h4 { color: var(--paper); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.9rem; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 0.5rem; }
footer .fine { border-top: 1px solid var(--line-dark); margin-top: 3rem; padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; color: #7A8B98; font-size: 0.82rem; }

/* ---------- Sub-brand hero variants ---------- */
.hero--catalyst { background: var(--navy); }
.hero--catalyst::before { opacity: 0.4; }
.hero--catalyst::after {
  background:
    radial-gradient(ellipse 55% 60% at 85% 35%, rgba(233,96,75,0.28), transparent 60%),
    radial-gradient(ellipse 50% 60% at 10% 90%, rgba(14,42,61,0.4), transparent 60%);
}
.hero--catalyst .tagline { color: var(--coral); }
.hero--catalyst .wordmark {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 900;
  font-size: clamp(3.5rem, 9vw, 7rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
  color: var(--paper);
  margin: 0.2em 0 0.5em;
}
.hero--catalyst .wordmark em { color: var(--coral); font-style: italic; }

.hero--srs::before { opacity: 0.45; }
.hero--srs::after {
  background:
    radial-gradient(ellipse 55% 60% at 85% 35%, rgba(69,235,216,0.28), transparent 60%),
    radial-gradient(ellipse 50% 60% at 10% 90%, rgba(31,138,84,0.22), transparent 60%);
}
.hero--srs .tagline { color: var(--mint); }

.hero--institute::before { opacity: 0.4; }
.hero--institute::after {
  background:
    radial-gradient(ellipse 55% 60% at 85% 35%, rgba(111,180,214,0.22), transparent 60%),
    radial-gradient(ellipse 50% 60% at 10% 90%, rgba(14,42,61,0.5), transparent 60%);
}
.hero--institute .tagline { color: var(--sky); }

/* ---------- Form placeholders ---------- */
.form-embed {
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}
.form-embed .mono { color: var(--teal); font-size: 0.8rem; letter-spacing: 0.08em; }
.dark .form-embed { background: rgba(255,255,255,0.04); border-color: #2A4C60; color: #A8B5BE; box-shadow: none; }
.dark .form-embed .mono { color: var(--aqua); }

/* ---------- Signup modal (Catalyst) ---------- */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 9999; align-items: center; justify-content: center; padding: 1rem; }
.modal-overlay.open { display: flex; }
.modal-box { background: var(--paper); border-radius: var(--radius-lg); width: 100%; max-width: 480px; overflow: hidden; }
.modal-hd { background: var(--navy); padding: 1.25rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.modal-eyebrow { font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--coral); margin: 0 0 0.25rem; font-weight: 500; }
.modal-title { font-size: 1.05rem; font-weight: 600; color: var(--paper); margin: 0; }
.modal-close { background: rgba(255,255,255,0.1); border: none; color: #94A3AE; width: 28px; height: 28px; border-radius: 50%; font-size: 1.1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; line-height: 1; }
.modal-close:hover { background: rgba(255,255,255,0.2); color: var(--paper); }
.modal-bd { padding: 1.5rem; }
/* HubSpot form field resets */
.modal-bd .hs-form-field { margin-bottom: 0.85rem; }
.modal-bd .hs-form-field label { display: block; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-soft); margin-bottom: 0.3rem; }
.modal-bd .hs-form-field input[type=text],
.modal-bd .hs-form-field input[type=email] { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: var(--radius); padding: 0.5rem 0.75rem; font-size: 0.9rem; color: var(--ink); background: var(--paper); }
.modal-bd .hs-form-field input:focus { border-color: var(--coral); outline: none; }
.modal-bd .hs-button { background: var(--coral); color: var(--paper) !important; border: none; border-radius: var(--radius); padding: 0.65rem 1.5rem; font-size: 0.9rem; font-weight: 600; cursor: pointer; width: 100%; margin-top: 0.5rem; }
.modal-bd .hs-button:hover { background: var(--coral-dark); }
.modal-bd .hs-error-msgs { list-style: none; padding: 0; margin: 0.25rem 0 0; }
.modal-bd .hs-error-msgs li { font-size: 0.8rem; color: var(--coral-dark); }
/* Dark mode - follows system preference */
@media (prefers-color-scheme: dark) {
  .modal-box { background: #1B3C50; }
  .modal-bd { background: #1B3C50; }
  .modal-bd .hs-form-field label { color: #94A3AE; }
  .modal-bd .hs-form-field input[type=text],
  .modal-bd .hs-form-field input[type=email] { background: #0E2A3D; color: var(--paper); border-color: #2A4C60; }
  .modal-bd .hs-error-msgs li { color: #F09090; }
}

/* ---------- SRS stamps ---------- */
.stamps { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1.25rem; }
.stamp-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.stamp-card:hover { transform: translateY(-2px); border-color: var(--aqua); }
.stamp-card img { width: 100%; max-width: 180px; aspect-ratio: 1; border-radius: var(--radius); }
.stamp-card .caption {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: #A8B5BE;
  text-align: center;
  letter-spacing: 0.08em;
}

/* Legacy CSS-proxy stamps (kept for fallback) */
.stamp {
  aspect-ratio: 1;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
  color: var(--navy);
  font-family: var(--mono);
  font-size: 0.75rem;
}
.stamp--certified { background: var(--mint-dark); color: var(--paper); }
.stamp--practitioner { background: var(--green); }
.stamp--partner { background: var(--green-dark); color: var(--paper); }
.stamp--licensee { background: #E5ECEF; color: var(--navy); }
.stamp .tick { font-size: 1.6rem; line-height: 1; }
.stamp .tier { text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; }
.stamp .expiry { opacity: 0.8; }

/* ---------- Catalyst firewall demo ---------- */
.firewall {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.firewall__byline { font-family: var(--mono); font-size: 0.88rem; color: var(--navy); font-weight: 700; letter-spacing: 0.02em; }
.firewall__sep { height: 1px; background: var(--line); margin: 0.9rem 0; }
.firewall__sponsor { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-mute); text-transform: uppercase; letter-spacing: 0.12em; }

/* ---------- News list ---------- */
.news-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.75rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: background var(--dur) var(--ease);
}
.news-item:hover { background: rgba(90,217,201,0.04); }
.news-item time { font-family: var(--mono); font-size: 0.82rem; color: var(--ink-mute); letter-spacing: 0.06em; }
.news-item h3 { margin: 0.25rem 0 0.4rem; }
.news-item p { color: var(--ink-soft); }
@media (max-width: 600px) { .news-item { grid-template-columns: 1fr; gap: 0.4rem; } }

/* ---------- Filter tabs (news / contact) ---------- */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.filter-tabs button {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.filter-tabs button:hover { border-color: var(--teal); color: var(--teal); }
.filter-tabs button[aria-pressed="true"],
.filter-tabs button.active {
  background: var(--navy); color: var(--paper); border-color: var(--navy);
}

/* ---------- Small utilities ---------- */
.lede { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-soft); max-width: 58ch; }
.dark .lede { color: #CAD4DB; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.stack > * + * { margin-top: 2rem; }
.soft-divider { height: 1px; background: var(--line); margin: 3rem 0; }
.dark .soft-divider { background: var(--line-dark); }

/* Section header row (heading + trailing link) */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

/* ---------- Coming-soon tag ---------- */
.coming-soon {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  background: rgba(14,42,61,0.06);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(14,42,61,0.08);
}
.dark .coming-soon {
  background: rgba(255,255,255,0.05);
  color: #94A3AE;
  border-color: rgba(255,255,255,0.08);
}
.coming-soon--aqua { color: var(--teal); border-color: rgba(45,184,179,0.2); background: rgba(45,184,179,0.06); }
.dark .coming-soon--aqua { color: var(--aqua); background: rgba(90,217,201,0.06); border-color: rgba(90,217,201,0.15); }

/* Muted/disabled footer links */
footer .muted-link {
  color: #7A8B98;
  cursor: default;
  pointer-events: none;
}
footer .muted-link::after {
  content: " · soon";
  font-size: 0.72rem;
  color: #5F6F7B;
  font-family: var(--mono);
  letter-spacing: 0.06em;
}

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