@charset "UTF-8";

/* ================================================================
   MEMBERSPARK DIGITAL — GLOBAL STYLESHEET
   ----------------------------------------------------------------
   Single source of truth for the site's visual design.
   - Design tokens exposed as CSS custom properties (:root)
   - Modern reset (modern-normalize approach)
   - Fluid typography / spacing via clamp()
   - Layout via Grid + Flexbox (no floats / absolute hacks)
   ================================================================ */

/* ================================================================
   0. WEB FONTS — Graphik Web (self-hosted; no external requests)
   Weights: 300 Light · 400 Regular · 500 Medium.
   `font-display: swap` shows the fallback immediately, then swaps.
   ================================================================ */

@font-face {
  font-family: "Graphik Web";
  src: url("../fonts/Graphik-Light-Web.woff") format("woff"),
       url("../fonts/Graphik-Light-Web.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Graphik Web";
  src: url("../fonts/Graphik-Regular-Web.woff") format("woff"),
       url("../fonts/Graphik-Regular-Web.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Graphik Web";
  src: url("../fonts/Graphik-Medium-Web.woff") format("woff"),
       url("../fonts/Graphik-Medium-Web.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ================================================================
   1. DESIGN TOKENS
   ================================================================ */

:root {
  /* --- Brand palette --- */
  --color-navy: #20225e;          /* primary text + headings */
  --color-blue: #1f6ec4;          /* accent + links + button fills (AA: 5.2:1 on white / white-on-it) */
  --color-blue-light: #3b8ede;    /* airy accent — DECORATIVE ONLY (gradients / large fills, never text) */
  --color-blue-mid: #0042a2;      /* buttons / active */
  --color-blue-deep: #05136c;     /* deep brand surfaces */

  /* --- Neutrals / surfaces --- */
  --color-bg: #f4f5fb;            /* light lavender page background */
  --color-hero: #f6f7fe;          /* blog hero band */
  --color-surface: #ffffff;
  --color-surface-alt: #edeef7;
  --color-border: #e9eaf3;
  --color-frame: #d8dae6;         /* light-gray page frame (legacy body bg) */
  --frame-w: 17px;                /* frame width ≈ scrollbar */

  /* --- Index / gradient header + sections --- */
  --grad-top: #0e3b81;           /* gradient header top */
  --grad-bottom: #799cd8;        /* gradient header bottom */
  --color-periwinkle: #5069b6;   /* "just the basics" band (darkened so white body text clears AA 4.5:1) */
  --color-band: #143e86;         /* royal-blue "how it works" tabbed band */
  --color-faq-bg: #eaecf2;       /* FAQ section background */
  --color-footer: #10114b;       /* dark footer big zone */
  --color-menu-heading: #05136c; /* mega-menu column headings */

  /* --- Text --- */
  --color-text: #20225e;
  --color-text-soft: #4a5568;
  --color-text-muted: #5e5e82;   /* AA on white + light bands (4.5:1) */
  --color-text-faint: #5c6472;   /* labels / placeholders — AA on light surfaces */

  --color-link: var(--color-blue);
  --color-link-hover: var(--color-blue-mid);

  /* --- Typography families ---
     Brand face is Graphik Web (self-hosted, see section 0). The system
     stack is the fallback shown while the font loads / if it fails.
     Note: Graphik ships 300/400/500; the 600 (semibold) token maps to
     the nearest available weight. */
  --font-sans: "Graphik Web", system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;

  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;

  /* --- Fluid body / heading sizes (min @320px → max @1600px) --- */
  --text-body: clamp(1rem, 0.95rem + 0.22vw, 1.125rem);   /* 16 → 18 */
  --text-lead: clamp(1.05rem, 0.98rem + 0.31vw, 1.25rem);
  --text-title: clamp(1.75rem, 1.3rem + 1.6vw, 2.375rem);  /* 28 → 38 (entry-title) */
  --text-wordmark: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);   /* blog wordmark */

  /* --- Line heights --- */
  --leading-tight: 1.2;
  --leading-snug: 1.35;
  --leading-body: 2;              /* legacy entry-content ≈ 32px/16px */

  /* --- Fluid spacing scale --- */
  --space-3xs: clamp(0.25rem, 0.24rem + 0.05vw, 0.31rem);
  --space-2xs: clamp(0.5rem, 0.47rem + 0.11vw, 0.63rem);
  --space-xs:  clamp(0.75rem, 0.71rem + 0.18vw, 0.94rem);
  --space-s:   clamp(1rem, 0.93rem + 0.36vw, 1.25rem);
  --space-m:   clamp(1.5rem, 1.39rem + 0.54vw, 1.88rem);
  --space-l:   clamp(2rem, 1.79rem + 1.07vw, 2.75rem);
  --space-xl:  clamp(3rem, 2.5rem + 2.5vw, 4.5rem);

  /* --- Layout --- */
  --measure: 50rem;               /* legacy article column ≈ 800px */
  --sidebar: 15rem;               /* legacy .right-column ≈ 240px */
  --container-max: 78rem;
  --container-pad: clamp(1.25rem, 0.6rem + 3vw, 3.75rem);
  --topbar-h: 64px;

  --transition: 180ms ease;
}

/* ================================================================
   2. MODERN RESET (modern-normalize inspired)
   ================================================================ */

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
  /* The gray root background shows through the body's side/bottom margins,
     producing a boxed light-gray "frame" around the layout. */
  background-color: var(--color-frame);
  scrollbar-width: none;            /* hide scrollbar (Firefox) */
}
html::-webkit-scrollbar { width: 0; height: 0; display: none; }

body {
  min-height: 100vh;
  margin: 0 var(--frame-w) var(--frame-w);
  font-family: var(--font-sans);
  font-weight: var(--weight-regular);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
picture,
svg,
video { display: block; max-width: 100%; height: auto; }

input, button, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: var(--weight-regular);
  line-height: var(--leading-snug);
  color: var(--color-navy);
  text-wrap: balance;
  overflow-wrap: break-word;
}

p, li { text-wrap: pretty; }

ul[role="list"] { list-style: none; padding: 0; }

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}
a:hover { color: var(--color-link-hover); }

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

/* Keep the focus ring visible on dark surfaces (navy top bar, mega-menu
   bar, footer, CTA / basics bands) where the blue outline would vanish. */
.topbar--dark :focus-visible,
.megamenu__bar :focus-visible,
.footer-brand :focus-visible,
.cta-band :focus-visible,
.basics :focus-visible,
.tabs-band .tabs__list :focus-visible {
  outline-color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ================================================================
   3. LAYOUT PRIMITIVES
   ================================================================ */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

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

/* Skip link — first focusable element; slides in on keyboard focus so
   users can jump straight past the top bar / mega menu to the content. */
.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1100;
  margin: 0.5rem;
  padding: 0.65rem 1.1rem;
  background: var(--color-menu-heading);
  color: #fff;
  font-weight: var(--weight-medium);
  border-radius: 6px;
  transform: translateY(-160%);
  transition: transform var(--transition);
}
.skip-link:focus { transform: translateY(0); }

/* ================================================================
   4. TOP UTILITY BAR  (semantic <nav>, flexbox — no floats)
   ================================================================ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: var(--color-surface);
  border-block-end: 1px solid var(--color-border);
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 3.75rem);
  min-height: var(--topbar-h);
  max-width: none;
}

.topbar__brand {
  display: inline-flex;
  align-items: center;
  align-self: stretch;           /* full-height divider */
  gap: 0.85rem;
  flex-shrink: 0;
  padding-inline-end: clamp(1.25rem, 2.5vw, 2rem);
  border-inline-end: 1px solid var(--color-border);
}

.topbar__spark { width: 28px; height: 28px; }

.topbar__tagline {
  font-size: 1rem;               /* 16px */
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: var(--weight-semibold);
  color: rgba(32, 34, 94, 0.72);
  white-space: nowrap;
}

.product-nav { flex: 1; min-width: 0; }

.topbar__link--product {
  font-weight: var(--weight-semibold);
  letter-spacing: 0.06em;
}

.product-nav__list,
.utility-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 1.8vw, 1.75rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.topbar__link {
  font-size: 1rem;               /* 16px */
  font-weight: var(--weight-semibold);
  letter-spacing: 0.02em;
  color: var(--color-navy);
  opacity: 0.72;
}
.topbar__link:hover,
.topbar__link:focus-visible { opacity: 1; color: var(--color-navy); }
.topbar__link[aria-current="page"] { opacity: 1; color: var(--color-navy); }

.utility-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.5vw, 1.5rem);
  flex-shrink: 0;
  margin-inline-start: auto;
}

.utility-nav__list .topbar__link { font-weight: var(--weight-semibold); }

.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-size: 1rem;               /* 16px */
  font-weight: var(--weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(32, 34, 94, 0.72);
}
.icon-link:hover { color: var(--color-blue); }
.icon-link svg { width: 16px; height: 16px; }

@media (max-width: 900px) {
  .topbar__tagline,
  .product-nav,
  .utility-nav__list { display: none; }
  .topbar__inner { justify-content: space-between; }
}

/* ================================================================
   5. BLOG HERO BAND  (the "MemberSpark blog" wordmark + back arrow)
   ================================================================ */

.blog-hero {
  background-color: var(--color-hero);
  padding-block: clamp(2.5rem, 1.5rem + 5vw, 5rem);
}

.blog-hero__inner {
  position: relative;
  display: flex;
  justify-content: center;
}

.blog-hero__back {
  position: absolute;
  left: 0;
  top: 50%;
  translate: 0 -50%;
  display: inline-flex;
  color: var(--color-text-faint);
}
.blog-hero__back:hover { color: var(--color-navy); }
.blog-hero__back svg { width: 28px; height: 28px; }

.wordmark {
  font-size: var(--text-wordmark);
  letter-spacing: -0.01em;
  line-height: 1;
}
.wordmark strong { font-weight: var(--weight-semibold); color: var(--color-navy); }
.wordmark span { font-weight: var(--weight-light); color: var(--color-blue); }

@media (max-width: 560px) {
  .blog-hero__back { position: static; translate: none; margin-block-end: 1rem; }
  .blog-hero__inner { flex-direction: column; align-items: center; }
}

/* ================================================================
   6. BLOG CONTENT LAYOUT  (article + topics sidebar via CSS Grid)
   ================================================================ */

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--measure)) var(--sidebar);
  justify-content: center;
  gap: clamp(2rem, 4vw, 5.5rem);
  padding-block: var(--space-xl);
}

@media (max-width: 1080px) {
  .blog-layout {
    grid-template-columns: minmax(0, var(--measure));
    justify-content: center;
  }
}

/* --- Article --- */
.post__header { text-align: center; margin-block-end: var(--space-l); }

.post__title {
  font-size: var(--text-title);
  font-weight: var(--weight-light);
  color: var(--color-navy);
  margin-block-end: var(--space-m);
}

.post__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-m);
  font-size: 0.625rem;           /* 10px, matches legacy */
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: var(--weight-medium);
  color: var(--color-navy);
}

.post__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.post__meta-item svg { width: 12px; height: 12px; }

a.post__meta-item { color: var(--color-blue); }
a.post__meta-item:hover { color: var(--color-blue-mid); }

.post__body > * + * { margin-block-start: var(--space-m); }

.post__body p {
  line-height: var(--leading-body);
  color: var(--color-navy);
}

.post__body h2 { font-size: var(--text-lead); font-weight: var(--weight-medium); margin-block-start: var(--space-l); }

.post__figure { margin-block: var(--space-l); }
.post__figure img { width: 100%; }
.post__figure figcaption {
  margin-block-start: var(--space-2xs);
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  text-align: center;
  font-style: italic;
}

/* --- Topics sidebar --- */
.topics {
  font-size: 1rem;
  line-height: 1.9;
}

.topics__heading {
  font-size: 1rem;
  font-weight: var(--weight-medium);
  color: var(--color-navy);
  margin-block-end: var(--space-2xs);
}
.topics__heading:not(:first-child) {
  margin-block-start: var(--space-l);
}

.topics__list {
  list-style: none;
  margin: 0 0 var(--space-l);
  padding: 0;
}
.topics__list a { color: var(--color-blue); }
.topics__list a:hover { color: var(--color-blue-mid); }

.topics__help-title {
  font-weight: var(--weight-medium);
  color: var(--color-navy);
  margin-block-end: var(--space-3xs);
}
.topics__help { color: var(--color-text-soft); font-size: 0.9375rem; line-height: 1.7; }
/* Inline prose links carry an underline so they're distinguishable from the
   surrounding body text without relying on colour alone. */
.topics__help a { text-decoration: underline; }

@media (max-width: 1080px) {
  .topics {
    border-block-start: 1px solid var(--color-border);
    padding-block-start: var(--space-l);
  }
}

/* ================================================================
   7. SITE FOOTER
   ================================================================ */

.site-footer {
  background-color: var(--color-bg);
  border-block-start: 1px solid var(--color-border);
  padding-block: var(--space-xl);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
}

.footer-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-m);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer-nav__list a { color: var(--color-text-muted); }
.footer-nav__list a:hover { color: var(--color-navy); }

.site-footer__copy {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

/* ================================================================
   8. INDEX — GRADIENT HERO HEADER  (dark top bar variant)
   ================================================================ */

.hero-header {
  background: linear-gradient(180deg, var(--grad-top) 30%, var(--grad-bottom) 100%);
  color: #fff;
}

/* Dark top bar variant — solid band, full-bleed (matches legacy) */
.topbar--dark {
  position: static;
  background: var(--color-menu-heading);
  border-block-end: 0;
}
.topbar--dark .topbar__brand {
  padding-inline-end: clamp(1rem, 2vw, 1.75rem);
  border-inline-end: 1px solid rgba(255, 255, 255, 0.18);
}
.topbar--dark .topbar__tagline { color: rgba(255, 255, 255, 0.85); }
.topbar--dark .topbar__link { color: #fff; opacity: 0.9; }
.topbar--dark .topbar__link--product { color: rgba(255, 255, 255, 0.82); opacity: 1; }
.topbar--dark .topbar__link:hover,
.topbar--dark .topbar__link:focus-visible,
.topbar--dark .topbar__link[aria-current="page"] { color: #fff; opacity: 1; }
.topbar--dark .icon-link { color: rgba(255, 255, 255, 0.92); }
.topbar--dark .icon-link:hover { color: #fff; }

/* Hero lockup (logo + headline) */
.hero {
  text-align: center;
  padding-block: clamp(2rem, 1.25rem + 3.25vw, 4rem);
}
.hero__logo {
  width: min(460px, 62%);
  margin-inline: auto;
  margin-block-end: clamp(1.25rem, 0.85rem + 1.6vw, 2.25rem);
}
.hero__headline {
  color: #fff;
  font-weight: var(--weight-regular);
  font-size: clamp(1.25rem, 0.95rem + 1.35vw, 1.875rem);
  line-height: 1.4;
  max-width: 44rem;
  margin-inline: auto;
}

/* ================================================================
   9. PRODUCT TILES  (CSS Grid, native :hover)
   ================================================================ */

.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 1080px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .products { grid-template-columns: 1fr; } }

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: center;
  color: inherit;
  text-decoration: none;
  background: var(--tile-tint, var(--color-surface-alt));
  transition: box-shadow var(--transition), transform var(--transition);
}
.tile-cs { --tile-tint: #e2e2f0; }
.tile-dm { --tile-tint: #e8e8f4; }
.tile-me { --tile-tint: #efeff8; }
.tile-wd { --tile-tint: #ececf6; }

.tile__illustration {
  height: clamp(84px, 8vw, 116px);
  overflow: hidden;
  background: rgba(14, 59, 129, 0.14);
  transition: background var(--transition);
}
.tile__illustration img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.28;
  transition: opacity var(--transition);
}

.tile__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem) clamp(1rem, 0.5rem + 2vw, 2rem) clamp(2rem, 1.5rem + 2vw, 3rem);
}
.tile__abbr {
  font-size: clamp(3.5rem, 2rem + 6vw, 7.5rem);
  line-height: 1;
  font-weight: var(--weight-regular);
  color: var(--color-blue);
  margin-block-end: var(--space-xs);
}
.tile__name {
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.5rem);
  font-weight: var(--weight-medium);
  color: var(--color-navy);
  margin-block-end: var(--space-s);
}
.tile__desc {
  color: var(--color-text-soft);
  line-height: 1.6;
  margin-block-end: var(--space-m);
}
.tile__details {
  margin-block-start: auto;
  display: inline-block;
  padding: 0.5rem 1.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-blue-mid);      /* deeper blue clears AA on the tinted tile background */
  border: 1px solid var(--color-border);
  border-radius: 2px;
  transition: background var(--transition), color var(--transition);
}

/* Hover / focus — native, no JS.
   The tile scales up a few px past its grid cell and lifts on a shadow so
   it overshadows its neighbours on the top and sides. */
.tile:hover,
.tile:focus-within {
  z-index: 2;
  background: var(--color-surface);
  box-shadow: 0 18px 48px rgba(16, 17, 75, 0.28);
  transform: scale(1.045);
}
.tile:hover .tile__illustration,
.tile:focus-within .tile__illustration { background: var(--grad-top); }
.tile:hover .tile__illustration img,
.tile:focus-within .tile__illustration img { opacity: 1; }
.tile:hover .tile__details,
.tile:focus-within .tile__details { background: var(--color-blue); color: #fff; border-color: var(--color-blue); }

/* ================================================================
   10. "JUST THE BASICS" BAND
   ================================================================ */

.basics {
  background: var(--color-periwinkle);
  color: #fff;
  padding-block: clamp(3rem, 2rem + 5vw, 6rem);
}
.basics__inner { max-width: 60rem; text-align: center; }
.basics__title {
  color: #fff;
  font-weight: var(--weight-regular);
  font-size: clamp(1.5rem, 1.1rem + 2vw, 2.5rem);
  margin-block-end: var(--space-m);
}
.basics__text {
  color: #fff;
  max-width: 52ch;
  margin-inline: auto;
  line-height: 1.8;
}

/* ================================================================
   11. FAQ  (accordion-style question list)
   ================================================================ */

.faq {
  background: var(--color-faq-bg);
  padding-block: clamp(3rem, 2rem + 5vw, 6rem);
}
.faq__title {
  text-align: center;
  font-weight: var(--weight-regular);
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
  margin-block-end: var(--space-xl);
}
.faq__list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 52rem;
  display: grid;
  gap: var(--space-l);
}
.faq__q {
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem);
  font-weight: var(--weight-regular);
  color: var(--color-navy);
  margin-block-end: var(--space-2xs);
}
.faq__a { color: var(--color-text-muted); line-height: 1.75; }
.faq__cta {
  display: block;
  max-width: 52rem;
  margin: var(--space-xl) auto 0;
  padding: var(--space-m);
  text-align: center;
  background: var(--color-surface);
  border-radius: var(--space-3xs);
  color: var(--color-blue);
}
.faq__cta:hover { background: #fff; color: var(--color-blue-mid); }

/* ================================================================
   12. DARK FOOTER (index / marketing pages)
   ================================================================ */

.footer-brand {
  background: var(--color-footer);
  padding-block: clamp(3rem, 2rem + 4vw, 5rem);
  text-align: center;
}
.footer-brand__logo { width: min(360px, 60%); margin-inline: auto; }

.footer-credits {
  background: var(--color-bg);
  padding-block: var(--space-l);
}
.footer-credits__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-m);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}
.footer-credits__list a { color: var(--color-text-muted); }
.footer-credits__list a:hover { color: var(--color-navy); }

/* ================================================================
   13. MEGA MENU  (full-screen overlay, CSS Grid, native JS toggle)
   ================================================================ */

.megamenu {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  flex-direction: column;
  background: rgba(13, 18, 64, 0.45);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.megamenu.is-open { display: flex; animation: mm-fade var(--transition); }
@keyframes mm-fade { from { opacity: 0; } to { opacity: 1; } }

/* Close bar (mirrors the top bar; holds the X + "Menu" label) */
.megamenu__bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: var(--topbar-h);
  padding-inline: var(--container-pad);
  background: var(--color-menu-heading);
}
.megamenu__close {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 0;
  cursor: pointer;
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.megamenu__close svg { width: 18px; height: 18px; }

/* Column grid — the sheet */
.megamenu__grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #f5f6fc;
  overflow-y: auto;
}

.megamenu__col {
  border-inline-start: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
}
.megamenu__col:first-child { border-inline-start: 0; }

.megamenu__heading {
  height: var(--topbar-h);
  line-height: var(--topbar-h);
  padding-inline: clamp(1rem, 1.5vw, 1.75rem);
  background: var(--color-menu-heading);
  color: #fff;
  font-size: 0.625rem;
  font-weight: var(--weight-medium);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.megamenu__tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

/* Big lettered service tiles */
.mm-tile {
  display: block;
  padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem) clamp(1rem, 1.5vw, 1.75rem);
  text-decoration: none;
  transition: box-shadow var(--transition), background var(--transition);
}
.mm-tile__abbr {
  display: block;
  font-size: clamp(2.25rem, 1.5rem + 2.5vw, 3.375rem);
  line-height: 1;
  font-weight: var(--weight-regular);
  color: var(--color-blue);
}
.mm-tile__desc {
  display: block;
  margin-block-start: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--color-navy);
  opacity: 0.75;
}
.mm-tile:hover,
.mm-tile:focus-visible {
  background: #fff;
  box-shadow: 0 15px 50px rgba(155, 156, 172, 0.5);
}

/* Simple link/shortcut tiles */
.mm-links {
  padding: clamp(1.25rem, 1vw, 1.75rem);
}
.mm-links__title {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: var(--weight-regular);
  color: var(--color-navy);
  opacity: 0.75;
  margin-block-end: var(--space-2xs);
}
.mm-links__list { list-style: none; margin: 0 0 var(--space-l); padding: 0; line-height: 2; }
.mm-links__list a { color: var(--color-blue); }
.mm-links__list a:hover { color: var(--color-blue-mid); }

.mm-tile__icon {
  display: block;
  margin-block-end: 0.75rem;
  color: var(--color-blue);
}
.mm-tile__icon svg { width: 28px; height: 28px; }
.mm-tile__label { color: var(--color-blue); font-size: 0.9375rem; }

/* About / contact column */
.megamenu__col--contact { padding-block-end: var(--space-l); }

.mm-contact { padding: clamp(1.25rem, 1vw, 1.75rem); }

.mm-contact__email {
  display: block;
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  color: var(--color-blue);
}

.mm-contact__form {
  margin-block-start: var(--space-s);
  padding: 0.65rem 0.75rem 0.55rem;
  background: #d5d9e8;
  border-radius: 8px;
}

.mm-links--blog {
  margin-block-start: var(--space-m);
  padding-inline: 0;
  padding-block-end: 0;
}

.mm-links__more {
  margin: var(--space-s) 0 0;
  font-size: 0.9375rem;
}
.mm-links__more a { color: var(--color-text-muted); }
.mm-links__more a:hover { color: var(--color-blue); }

.mm-links--blog .mm-posts {
  margin-block-start: var(--space-2xs);
  gap: var(--space-2xs);
}
.mm-links--blog .mm-posts__snippet {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* Compact contact form inside mega menu */
.contact-form--menu .contact-form__grid {
  grid-template-columns: 1fr;
  gap: 0.35rem;
}
.contact-form--menu .contact-form__grid > li:last-child { grid-column: auto; }
.contact-form--menu .contact-field label {
  margin-block-end: 0.12rem;
  font-size: 0.8125rem;
  font-weight: var(--weight-regular);
  letter-spacing: 0.06em;
}
.contact-form--menu .contact-field input,
.contact-form--menu .contact-field textarea {
  min-height: 2rem;
  padding: 0.4rem 0.6rem;
  font-size: 0.8125rem;
  border-color: #e8eaf4;
  background: #f4f5fb;
}
.contact-form--menu .contact-field textarea { min-height: 3.5rem; }
.contact-form--menu .contact-form__actions {
  margin-block-start: 0.35rem;
  justify-content: flex-start;
}
.contact-form__submit {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: auto;
  padding: 0.3rem 0;
  background: none;
  border: 0;
  border-radius: 0;
  color: var(--color-blue);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color var(--transition), opacity var(--transition);
}
.contact-form__submit::after {
  content: "→";
  font-size: 1em;
  letter-spacing: 0;
  transition: transform var(--transition);
}
.contact-form__submit:hover,
.contact-form__submit:focus-visible {
  color: var(--color-blue-mid);
}
.contact-form__submit:hover::after,
.contact-form__submit:focus-visible::after {
  transform: translateX(2px);
}
.contact-form--menu .contact-field__error {
  margin-block-start: 0.15rem;
  font-size: 0.75rem;
}
.cta-pill--sm {
  min-height: 2.25rem;
  padding: 0.45rem 1.25rem;
  font-size: 0.8125rem;
}
.contact-success--menu .contact-success__text {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-navy);
}

/* Legacy about column (other pages until rolled out) */
.megamenu__col--about { padding-block-end: var(--space-l); }
.mm-about { padding: clamp(1.25rem, 1vw, 1.75rem); }
.mm-about__email { font-size: clamp(1.125rem, 1rem + 0.6vw, 1.375rem); color: var(--color-blue); }
.mm-about__more { display: inline-block; margin-block-start: var(--space-s); color: var(--color-text-muted); }
.mm-posts { list-style: none; margin: var(--space-m) 0 0; padding: 0; display: grid; gap: var(--space-m); }
.mm-posts time { display: block; font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-text-faint); }
.mm-posts__title {
  font-size: 0.95rem;
  font-weight: var(--weight-medium);
  line-height: var(--leading-snug);
  margin-block: 0.25rem;
}
.mm-posts__title a { color: var(--color-navy); }
.mm-posts__title a:hover { color: var(--color-blue); }
.mm-posts__snippet { font-size: 0.85rem; line-height: 1.5; color: var(--color-text-muted); }

/* Responsive: stack columns on smaller screens */
@media (max-width: 900px) {
  .megamenu__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .megamenu__grid { grid-template-columns: 1fr; }
  .megamenu__col { border-inline-start: 0; border-block-start: 1px solid var(--color-border); }
}

body.menu-open { overflow: hidden; }

/* ================================================================
   14. COMPONENT LIBRARY  (internal reference page — brand-agnostic,
       reusable design elements consolidated from the legacy pages)
   ================================================================ */

/* --- Library page scaffolding --- */
.lib-intro { padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem) var(--space-m); }
.lib-intro__title {
  font-weight: var(--weight-medium);
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
  color: var(--color-navy);
}
.lib-intro__text { max-width: 44rem; color: var(--color-text-soft); line-height: 1.6; margin-block-start: var(--space-2xs); }

.lib { padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem); border-block-start: 1px solid var(--color-border); }
.lib__label {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: var(--weight-semibold);
  color: var(--color-text-faint);
  margin-block-end: var(--space-s);
}
.lib__heading {
  font-weight: var(--weight-regular);
  font-size: clamp(1.375rem, 1.1rem + 1.4vw, 2rem);
  color: var(--color-navy);
  margin-block-end: var(--space-m);
}
.lib__stage {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-s);
  padding: var(--space-l);
  border-radius: 8px;
}
.lib__stage--dark { background: linear-gradient(180deg, var(--grad-top), var(--grad-bottom)); }

/* --- 1. Ticket / CTA pill button --- */
.cta-pill {
  --pill-bg: var(--color-blue);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.6rem 2.25rem 0.6rem 1.5rem;
  background: var(--pill-bg);
  color: #fff;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
/* the "ticket" notch on the trailing edge */
.cta-pill::after {
  content: "";
  position: absolute;
  right: 0.9rem;
  top: 50%;
  width: 0.6rem;
  height: 0.6rem;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--color-bg);
}
.cta-pill:hover,
.cta-pill:focus-visible {
  color: #fff;
  background: var(--color-blue-mid);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 66, 162, 0.28);
}
.cta-pill--lg { min-height: 3.5rem; padding: 0.85rem 3rem 0.85rem 2rem; font-size: 1.0625rem; }
.cta-pill--lg::after { right: 1.2rem; }
.cta-pill--ghost { background: transparent; box-shadow: inset 0 0 0 2px currentColor; color: #fff; }
.cta-pill--ghost::after { display: none; }
.cta-pill--ghost:hover,
.cta-pill--ghost:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 2px currentColor;
}

/* --- 2. Product hero --- */
.product-hero {
  background: linear-gradient(180deg, var(--grad-top) 30%, var(--grad-bottom) 100%);
  color: #fff;
  overflow: hidden;
}
.product-hero__inner { text-align: center; padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem); }
.product-hero__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-block-end: var(--space-s);
}
.product-hero__title {
  color: #fff;
  font-weight: var(--weight-regular);
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3rem);
  line-height: 1.2;
  max-width: 40rem;
  margin-inline: auto;
}
.product-hero__text { max-width: 34rem; margin: var(--space-m) auto var(--space-l); line-height: 1.6; opacity: 0.92; }
.product-hero__media {
  height: clamp(180px, 30vw, 360px);
  margin-block-start: var(--space-l);
  border-radius: 10px 10px 0 0;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 -20px 60px rgba(5, 19, 108, 0.35);
}

/* --- 3. Logo strip --- */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.logo-strip__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  height: 60px;
  padding-inline: 1rem;
  border-radius: 6px;
  background: var(--color-surface-alt);
  color: var(--color-text-faint);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

/* --- 4. Statement band --- */
.statement { background: var(--color-surface-alt); padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); text-align: center; }
.statement__title {
  font-weight: var(--weight-regular);
  font-size: clamp(1.5rem, 1.1rem + 2vw, 2.5rem);
  color: var(--color-navy);
  max-width: 34rem;
  margin-inline: auto;
}
.statement__text { max-width: 42rem; margin: var(--space-m) auto 0; color: var(--color-text-soft); line-height: 1.7; }
.statement__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-s);
  margin-block-start: var(--space-l);
}
.statement__actions .cta-pill { margin-block-start: 0; }
.statement .cta-pill { margin-block-start: var(--space-l); }
.statement .cta-pill--ghost {
  color: var(--color-navy);
  box-shadow: inset 0 0 0 2px var(--color-navy);
}
.statement .cta-pill--ghost:hover,
.statement .cta-pill--ghost:focus-visible {
  color: #fff;
  background: var(--color-navy);
  box-shadow: inset 0 0 0 2px var(--color-navy);
}

/* --- 6. Feature cards (3-up) --- */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.75rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (max-width: 820px) { .feature-cards { grid-template-columns: 1fr; max-width: 34rem; margin-inline: auto; } }
.feature-card__media {
  height: clamp(140px, 18vw, 200px);
  border-radius: 8px;
  background: var(--color-surface-alt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24' fill='none' stroke='%239da6b2' stroke-width='1.5'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='M21 15l-5-5L5 21'/%3E%3C/svg%3E") center / 40px no-repeat;
  margin-block-end: var(--space-m);
}
.feature-card__title { font-weight: var(--weight-medium); font-size: 1.25rem; color: var(--color-navy); margin-block-end: var(--space-2xs); }
.feature-card__text { color: var(--color-text-soft); line-height: 1.6; }

/* --- 7. Feature rows (alternating media + text) --- */
.feature-rows { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
.feature-row { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem); }
.feature-row:nth-child(even) .feature-row__media { order: 2; }
.feature-row__media {
  height: clamp(200px, 24vw, 320px);
  border-radius: 10px;
  background: linear-gradient(135deg, var(--color-surface-alt), #dfe1ef);
}
.feature-row__title { font-weight: var(--weight-medium); font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); color: var(--color-navy); margin-block-end: var(--space-s); }
.feature-row__text { color: var(--color-text-soft); line-height: 1.7; margin-block-end: var(--space-s); }
@media (max-width: 760px) {
  .feature-row { grid-template-columns: 1fr; }
  .feature-row:nth-child(even) .feature-row__media { order: 0; }
}

/* --- 8. Feature grid (capability tiles) --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (max-width: 980px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-grid__item {
  padding: var(--space-m);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
}
.feature-grid__icon {
  display: block;
  width: 40px;
  height: 40px;
  margin-block-end: var(--space-s);
  border-radius: 8px;
  background: var(--color-blue);
  opacity: 0.9;
}
.feature-grid__title { font-weight: var(--weight-medium); font-size: 1.0625rem; color: var(--color-navy); margin-block-end: var(--space-3xs); }
.feature-grid__text { font-size: 0.9375rem; color: var(--color-text-soft); line-height: 1.55; }

/* --- 9. Numbered steps --- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; max-width: 34rem; margin-inline: auto; } }
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--color-blue);
  color: #fff;
  font-size: 1.25rem;
  font-weight: var(--weight-semibold);
  margin-block-end: var(--space-s);
}
.step__title { font-weight: var(--weight-medium); font-size: 1.25rem; color: var(--color-navy); margin-block-end: var(--space-2xs); }
.step__text { color: var(--color-text-soft); line-height: 1.6; }

/* --- 10. Integration grid + partner CTA --- */
.integrations { display: grid; grid-template-columns: 2fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
@media (max-width: 860px) { .integrations { grid-template-columns: 1fr; } }
.integration-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (max-width: 480px) { .integration-grid { grid-template-columns: repeat(2, 1fr); } }
.integration-grid__item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-m);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
}
.integration-grid__item .logo-strip__item { background: transparent; min-width: 0; height: auto; }
.integrations__title { font-weight: var(--weight-regular); font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); color: var(--color-navy); margin-block-end: var(--space-s); }
.integrations__text { color: var(--color-text-soft); line-height: 1.6; margin-block-end: var(--space-m); }

/* --- 11. Tabs ---
   Base tabs are neutral (light context). The .tabs-band wrapper turns the
   whole component into the royal-blue "how it works" band from the original,
   with icon-over-label tabs. */
.tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
  border-block-end: 1px solid var(--color-border);
  margin-block-end: var(--space-l);
}
.tabs__tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: none;
  border: 0;
  border-block-end: 2px solid transparent;
  margin-block-end: -1px;
  cursor: pointer;
  color: var(--color-text-muted);
  font-weight: var(--weight-medium);
  transition: color var(--transition), border-color var(--transition);
}
.tabs__tab:hover { color: var(--color-navy); }
.tabs__tab.is-active { color: var(--color-blue); border-block-end-color: var(--color-blue); }
.tabs__icon { display: none; }
.tabs__panel { color: var(--color-text-soft); line-height: 1.7; }
.tabs__panel[hidden] { display: none; }
.tabs__panel > p { max-width: 46rem; }

/* Dark royal-blue band variant (matches the legacy "how Go works" section) */
.tabs-band {
  background: var(--color-band);
  padding-block: clamp(3rem, 2rem + 4vw, 6rem);
}
.tabs-band__title {
  color: #fff;
  text-align: center;
  font-weight: var(--weight-regular);
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
  margin-block-end: var(--space-xl);
}
.tabs-band .tabs__list {
  gap: 0;
  border-block-end-color: rgba(255, 255, 255, 0.18);
}
.tabs-band .tabs__tab {
  flex: 1 1 0;
  flex-direction: column;
  gap: 0.75rem;
  padding-block: var(--space-s) var(--space-m);
  color: #c3d3f0;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-block-end-width: 2px;
}
.tabs-band .tabs__icon {
  display: block;
  width: 40px;
  height: 40px;
  opacity: 0.85;
}
.tabs-band .tabs__icon svg { width: 100%; height: 100%; }
.tabs-band .tabs__tab:hover { color: #fff; }
.tabs-band .tabs__tab.is-active { color: #fff; border-block-end-color: #fff; }
.tabs-band .tabs__tab.is-active .tabs__icon { opacity: 1; }
.tabs-band .tabs__panels { margin-block-start: var(--space-l); }
.tabs-band .tabs__panel { color: rgba(255, 255, 255, 0.85); }
.tabs-band .tabs__panel > p { max-width: 52rem; margin-inline: auto; text-align: center; }
.tabs-band .case-label { color: rgba(255, 255, 255, 0.7); text-align: center; }
.tabs-band .case-grid { margin-block-start: var(--space-s); }

/* --- 11b. Case-study grid (used inside tab panels or standalone) ---
   Carousel-free: every card is visible, keyboard-reachable, and reflows
   from 1 up to 4 columns. Drop a real logo <img> into .case-card__logo. */
.case-label {
  margin-block: var(--space-l) var(--space-s);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: var(--weight-semibold);
  color: var(--color-text-faint);
}
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.case-card {
  padding: var(--space-m);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
}
.case-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  margin-block-end: var(--space-s);
}
.case-card__logo img { max-height: 100%; max-width: 75%; width: auto; object-fit: contain; }
.case-card__note { font-size: 0.9375rem; line-height: 1.6; color: var(--color-text-soft); }

/* --- Drop-in images for the placeholder media boxes ---
   Add an <img> inside any of these and it fills the box without distortion. */
.product-hero__media,
.feature-card__media,
.feature-row__media { overflow: hidden; }
.product-hero__media img,
.feature-card__media img,
.feature-row__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* --- 14. Big CTA band --- */
.cta-band {
  background: var(--color-footer);
  color: #fff;
  text-align: center;
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem);
}
.cta-band__title {
  color: #fff;
  font-weight: var(--weight-regular);
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
  margin-block-end: var(--space-l);
}

/* ================================================================
   15. HELP PAGE  (page-grid.html — light topbar + topic grid)
   ================================================================ */

.help-hero {
  background: linear-gradient(180deg, #fafafc 0%, #efeff9 220px, var(--color-bg) 220px);
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 4rem) 0;
  text-align: center;
}

.help-hero__title {
  font-weight: var(--weight-regular);
  font-size: clamp(1.375rem, 1rem + 1.5vw, 2.25rem);
  line-height: 1.52;
  color: var(--color-navy);
  max-width: 46rem;
  margin: var(--space-l) auto 0;
  text-wrap: balance;
}

.help-grid {
  padding-block: clamp(2.5rem, 1.5rem + 3vw, 3.75rem);
}

.help-grid__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block-end: 3px solid #dddeec;
}
.help-grid__row:first-child { border-block-start: 3px solid #dddeec; }

@media (max-width: 760px) {
  .help-grid__row { grid-template-columns: 1fr; }
}

.help-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 280px;
  padding: clamp(2rem, 3vw, 2.75rem) clamp(1.25rem, 2.5vw, 2rem) clamp(2.5rem, 3vw, 3.5rem);
  border-inline-end: 3px solid #dddeec;
  text-align: center;
  color: var(--color-blue);
  transition: color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.help-grid__row .help-card:last-child { border-inline-end: 0; }
.help-card:hover,
.help-card:focus-within {
  color: var(--color-blue-mid);
  background: var(--color-surface);
  box-shadow: 0 8px 28px rgba(32, 34, 94, 0.12);
  transform: scale(1.02);
  z-index: 2;
}
.help-card--static {
  cursor: default;
  color: var(--color-navy);
}
.help-card--static:hover,
.help-card--static:focus-within {
  transform: none;
  box-shadow: none;
  background: transparent;
}

.help-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  margin-block-end: var(--space-m);
  border-radius: 50%;
  flex-shrink: 0;
}
.help-card__icon svg { width: 40px; height: 40px; }
.help-card__icon--safe { background: #d4ead8; color: #2d6a4f; }
.help-card__icon--mail { background: #d6e4f7; color: #1f6ec4; }
.help-card__icon--lock { background: #d4ead8; color: #1f6ec4; }
.help-card__icon--phone { background: #e8e0f4; color: #5069b6; }
.help-card__icon--close { background: #fde8e8; color: #c45c5c; }
.help-card__icon--more { background: #e8eaf3; color: var(--color-navy); }

.help-card__title {
  font-weight: var(--weight-regular);
  font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.375rem);
  line-height: 1.5;
  max-width: 16rem;
}

.help-submit {
  text-align: center;
  padding-block: clamp(3rem, 2rem + 4vw, 6rem);
  border-block-start: 3px solid #dddeec;
}
.help-submit__title {
  font-size: clamp(1.25rem, 1rem + 0.8vw, 1.75rem);
  font-weight: var(--weight-regular);
  color: var(--color-navy);
  margin-block-end: var(--space-l);
}

/* ================================================================
   16. LEGAL / PROSE PAGES  (privacy, terms — text-forward layout)
   ================================================================ */

.page-header {
  background: linear-gradient(180deg, var(--grad-top) 0%, var(--grad-bottom) 100%);
  color: #fff;
  text-align: center;
  padding-block: clamp(3rem, 2rem + 5vw, 5.5rem);
}
.page-header__title {
  font-weight: var(--weight-regular);
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.375rem);
  color: #fff;
  line-height: var(--leading-snug);
}

.prose {
  max-width: 46rem;
  margin-inline: auto;
  padding-block: var(--space-xl);
  line-height: 1.75;
  color: var(--color-text-soft);
}
.prose > * + * { margin-block-start: var(--space-m); }
.prose h2 {
  font-size: var(--text-lead);
  font-weight: var(--weight-medium);
  color: var(--color-navy);
  margin-block-start: var(--space-l);
}
.prose h3 {
  font-size: 1.0625rem;
  font-weight: var(--weight-medium);
  color: var(--color-navy);
  margin-block-start: var(--space-m);
}
.prose p { line-height: 1.75; }
.prose a { text-decoration: underline; }

/* ================================================================
   17. SERVICE PAGE LAYOUTS  (tile stubs — distinct patterns)
   ================================================================ */

.service-intro {
  text-align: center;
  padding-block: clamp(3rem, 2rem + 5vw, 5rem);
}
.service-intro__label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: var(--weight-semibold);
  color: var(--color-text-faint);
  margin-block-end: var(--space-s);
}
.service-intro__title {
  font-size: clamp(2rem, 1.4rem + 2.5vw, 3rem);
  font-weight: var(--weight-regular);
  color: var(--color-navy);
  margin-block-end: var(--space-m);
}
.service-intro__text {
  max-width: 40rem;
  margin-inline: auto;
  color: var(--color-text-soft);
  line-height: 1.7;
}

.service-section {
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
}
.service-section__title {
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem);
  font-weight: var(--weight-regular);
  color: var(--color-navy);
  text-align: center;
  margin-block-end: var(--space-l);
}

.ticket-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-s);
  padding: var(--space-m) var(--container-pad);
  background: linear-gradient(90deg, var(--color-blue-deep), var(--color-blue));
}
.ticket-strip .cta-pill--ghost { font-size: 0.9375rem; }

.service-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
@media (max-width: 760px) { .service-split { grid-template-columns: 1fr; } }
.service-split__media {
  height: clamp(220px, 28vw, 360px);
  border-radius: 10px;
  background: linear-gradient(135deg, var(--color-surface-alt), #dfe1ef);
}

/* ================================================================
   18. CONTACT PAGE  (Piano modal form styling, inline on page)
   ================================================================ */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
  padding-block: var(--space-xl);
}
@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; }
}

.contact-intro__title {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.375rem);
  font-weight: var(--weight-regular);
  color: var(--color-navy);
  margin-block-end: var(--space-m);
}
.contact-intro__text {
  color: var(--color-text-soft);
  line-height: 1.7;
  max-width: 34rem;
}
.contact-intro__email {
  display: inline-block;
  margin-block-start: var(--space-m);
  font-weight: var(--weight-medium);
  text-decoration: underline;
}

.contact-panel {
  position: relative;
  padding: clamp(1.25rem, 2vw, 2rem);
  background: #d5d9e8;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(32, 34, 94, 0.08);
}

.contact-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-m);
  list-style: none;
  margin: 0;
  padding: 0;
}
.contact-form__grid > li:last-child { grid-column: 1 / -1; }
@media (max-width: 560px) {
  .contact-form__grid { grid-template-columns: 1fr; }
}

.contact-field label {
  display: block;
  margin-block-end: 0.25rem;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: var(--weight-regular);
  color: var(--color-text-faint);
}
.contact-field input,
.contact-field textarea {
  width: 100%;
  min-height: 3.125rem;
  padding: 0.85rem 1rem;
  border: 1px solid #e8eaf4;
  border-radius: 6px;
  background: #f4f5fb;
  color: var(--color-navy);
  font-size: 0.9375rem;
  transition: background var(--transition), border-color var(--transition);
}
.contact-field textarea {
  min-height: 9.375rem;
  resize: vertical;
  line-height: 1.6;
}
.contact-field input::placeholder,
.contact-field textarea::placeholder { color: var(--color-text-muted); }
.contact-field input:hover,
.contact-field textarea:hover { background: #fff; }
.contact-field input:focus,
.contact-field textarea:focus {
  background: #fff;
  border-color: var(--color-blue);
  outline: none;
}
.contact-field.is-invalid input,
.contact-field.is-invalid textarea {
  border-color: #e56a49;
  color: #c45c5c;
}
.contact-field__error {
  margin-block-start: 0.35rem;
  font-size: 0.8125rem;
  color: #c45c5c;
}

.contact-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-s);
  margin-block-start: var(--space-l);
}
.contact-form__status {
  flex: 1 1 100%;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.contact-form__status--error { color: #c45c5c; }
.contact-form__status[hidden] { display: none; }

.contact-form.is-submitting .contact-form__submit { opacity: 0.6; pointer-events: none; }

.contact-success {
  text-align: center;
  padding: clamp(2rem, 4vw, 3rem);
}
.contact-success[hidden] { display: none; }
.contact-success__title {
  font-size: clamp(1.5rem, 1.1rem + 1.5vw, 1.875rem);
  font-weight: var(--weight-regular);
  color: var(--color-navy);
  margin-block-end: var(--space-s);
}
.contact-success__text {
  color: var(--color-text-soft);
  line-height: 1.7;
  max-width: 28rem;
  margin-inline: auto;
}

/* --- Blog index --- */
.blog-layout .blog-index {
  padding-block: 0;
}
.blog-layout .blog-index__list {
  max-width: none;
  margin-inline: 0;
}
.blog-index__list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 46rem;
  margin-inline: auto;
}
.blog-index {
  padding-block: var(--space-xl);
}
.blog-index__item {
  padding-block: var(--space-m);
  border-block-end: 1px solid var(--color-border);
}
.blog-index__item:first-child { border-block-start: 1px solid var(--color-border); }
.blog-index__date {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-block-end: 0.35rem;
}
.blog-index__title {
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  font-weight: var(--weight-medium);
  line-height: var(--leading-snug);
}
.blog-index__title a { color: var(--color-navy); }
.blog-index__title a:hover { color: var(--color-blue); }
.blog-index__snippet {
  margin-block-start: 0.35rem;
  font-size: 0.9375rem;
  color: var(--color-text-soft);
  line-height: 1.6;
}

.work-section { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4rem); }
.work-section__title {
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem);
  font-weight: var(--weight-regular);
  color: var(--color-navy);
  text-align: center;
  margin-block-end: var(--space-l);
}

/* --- Internal blank page templates --- */
.blank-stage {
  min-height: 50vh;
  padding-block: clamp(3rem, 2rem + 5vw, 6rem);
}
.blank-stage__label {
  color: var(--color-text-faint);
  font-size: 0.9375rem;
  text-align: center;
}


