/* ==========================================================================
   CloudERP Accounting & Business Solutions — design system
   --------------------------------------------------------------------------
   One stylesheet, no build step, no external font requests. Everything below
   is driven by the custom properties in :root, so a rebrand is a twelve-line
   edit rather than a rewrite.

   Contrast-checked pairings (WCAG AA minimum 4.5:1 for body text):
     #243247 on #FFFFFF  = 13.6:1
     #243247 on #F7F9FC  = 12.9:1
     #10243A on #FFFFFF  = 16.1:1
     #FFFFFF on #10243A  = 16.1:1
     #FFFFFF on #007F82  =  5.3:1
     #FFFFFF on #0B6063  =  7.0:1  (button hover / small text)
     #6B4E1F on #FBF6EC  =  8.2:1  (gold used as text only in this pairing)
   Muted gold #B88A44 on white is 2.9:1 and is therefore never used for text —
   it appears only as a decorative rule, icon fill or badge background.
   ========================================================================== */

:root {
  /* Brand palette ------------------------------------------------------- */
  --navy:        #10243A;
  --navy-700:    #1B3550;
  --navy-600:    #274563;
  --teal:        #007F82;
  --teal-dark:   #0B6063;
  --teal-tint:   #E6F2F2;
  --gold:        #B88A44;
  --gold-soft:   #FBF6EC;
  --gold-line:   #EADCC3;
  --gold-text:   #6B4E1F;
  --bg:          #F7F9FC;
  --surface:     #FFFFFF;
  --text:        #243247;
  --text-muted:  #5A6B80;   /* 5.0:1 on #FFFFFF */
  --text-faint:  #7A8899;   /* 3.6:1 — large text and decorative use only */
  --line:        #E1E8F2;
  --line-soft:   #EDF1F7;
  --danger:      #A32C2C;
  --danger-bg:   #FCEFEF;
  --success:     #1E6B45;
  --success-bg:  #EAF5EF;
  --info-bg:     #EEF4FA;

  /* Type ---------------------------------------------------------------- */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
          "Noto Sans", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono",
               Menlo, Consolas, monospace;

  --step--1: 0.875rem;   /* 14px */
  --step-0:  1rem;       /* 16px */
  --step-1:  1.125rem;   /* 18px */
  --step-2:  1.375rem;   /* 22px */
  --step-3:  1.75rem;    /* 28px */
  --step-4:  2.25rem;    /* 36px */
  --step-5:  3rem;       /* 48px */

  --leading-tight: 1.2;
  --leading-body:  1.65;

  /* Space --------------------------------------------------------------- */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;

  /* Shape and depth ----------------------------------------------------- */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(16, 36, 58, .06), 0 1px 3px rgba(16, 36, 58, .05);
  --shadow-md: 0 4px 14px rgba(16, 36, 58, .08);
  --shadow-lg: 0 18px 40px rgba(16, 36, 58, .12);
  --ring: 0 0 0 3px rgba(0, 127, 130, .35);

  /* Layout -------------------------------------------------------------- */
  --wrap: 1180px;
  --wrap-wide: 1360px;
  --wrap-narrow: 760px;
  --header-h: 78px;
}

/* ------------------------------------------------------------------ reset */

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: var(--leading-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0 0 var(--s-4); line-height: var(--leading-tight); font-weight: 650; letter-spacing: -0.015em; color: var(--navy); }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); margin-top: var(--s-7); }
h3 { font-size: var(--step-2); margin-top: var(--s-5); }
h4 { font-size: var(--step-1); }

p { margin: 0 0 var(--s-4); }
p:last-child { margin-bottom: 0; }

a { color: var(--teal-dark); text-underline-offset: 3px; }
a:hover { color: var(--navy); }

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

ul, ol { margin: 0 0 var(--s-4); padding-left: 1.3rem; }
li { margin-bottom: var(--s-2); }

hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-6) 0; }

table { border-collapse: collapse; width: 100%; font-size: var(--step--1); }
caption { text-align: left; font-weight: 600; padding-bottom: var(--s-3); color: var(--navy); }
th, td { text-align: left; padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--navy); color: #fff; font-weight: 600; border-bottom: 0; }
thead th:first-child { border-radius: var(--r-sm) 0 0 0; }
thead th:last-child { border-radius: 0 var(--r-sm) 0 0; }
tbody th { font-weight: 600; color: var(--navy); white-space: nowrap; }
tbody tr:nth-child(even) { background: var(--bg); }
.table-wrap { overflow-x: auto; margin: var(--s-5) 0; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); }
.table-wrap--narrow { max-width: 520px; }

blockquote {
  margin: var(--s-5) 0; padding: var(--s-4) var(--s-5);
  border-left: 4px solid var(--teal); background: var(--teal-tint);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
blockquote p { margin: 0; font-size: var(--step-1); }

code, kbd { font-family: var(--font-mono); font-size: .9em; background: var(--line-soft); padding: .1em .35em; border-radius: 4px; }

/* ------------------------------------------------------- accessibility */

.sr-only {
  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 {
  position: absolute; left: var(--s-4); top: -100px; z-index: 200;
  background: var(--navy); color: #fff; padding: var(--s-3) var(--s-5);
  border-radius: 0 0 var(--r-md) var(--r-md); text-decoration: none; font-weight: 600;
  transition: top .15s ease;
}
.skip-link:focus { top: 0; color: #fff; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 2px; }
.section--dark :focus-visible,
.hero :focus-visible,
.cta-band :focus-visible { outline-color: #fff; }

.icon { flex: none; vertical-align: -0.15em; }

.muted { color: var(--text-muted); }

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

/* ---------------------------------------------------------------- layout */

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s-5); }
.wrap--wide { max-width: var(--wrap-wide); }
.wrap--narrow { max-width: var(--wrap-narrow); }

.section { padding: var(--s-8) 0; }
.section--tint { background: var(--surface); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section--tint { background: #FFFFFF; }
.section--dark { background: var(--navy); color: #E8EDF4; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .lead { color: #C3CEDD; }
.section--brandline { background: var(--surface); padding: var(--s-7) 0; border-bottom: 1px solid var(--line); }
.section--wide { padding-left: 0; padding-right: 0; }

.section-head { max-width: 780px; margin-bottom: var(--s-6); }
.section-foot { margin-top: var(--s-6); font-weight: 600; }

.eyebrow {
  display: inline-block; margin: 0 0 var(--s-3);
  font-size: var(--step--1); font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--teal-dark);
}
.eyebrow--light { color: var(--gold); }

.lead { font-size: var(--step-1); color: var(--text-muted); max-width: 70ch; }
.section--dark .lead { color: #C3CEDD; }

.subhead { margin-top: var(--s-7); font-size: var(--step-2); }

.note {
  font-size: var(--step--1); color: var(--text-muted);
  padding: var(--s-3) var(--s-4); background: var(--bg);
  border-left: 3px solid var(--line); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin: var(--s-4) 0;
}

.callout {
  margin: var(--s-5) 0; padding: var(--s-5);
  background: var(--gold-soft); border: 1px solid var(--gold-line);
  border-radius: var(--r-md); color: var(--gold-text); font-weight: 500;
}
.callout--info { background: var(--info-bg); border-color: #D6E3F1; color: #1E3A57; }
.callout--warn { background: #FDF4E7; border-color: #F0DFC0; color: #6B4E1F; }

.textlink { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 600; text-decoration: none; }
.textlink:hover { text-decoration: underline; }

.linklist { list-style: none; padding: 0; display: grid; gap: var(--s-3); }
.linklist a { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 600; text-decoration: none; }
.linklist a:hover { text-decoration: underline; }

.chip-row { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: var(--s-4) 0; }
.chip {
  display: inline-flex; align-items: center; padding: var(--s-2) var(--s-4);
  border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--surface); text-decoration: none; font-size: var(--step--1); font-weight: 600;
  color: var(--navy); transition: border-color .15s ease, background .15s ease;
}
.chip:hover { border-color: var(--teal); background: var(--teal-tint); color: var(--navy); }
.chip--muted { border-style: dashed; color: var(--text-muted); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }

/* ---------------------------------------------------------------- header */

.utility { background: var(--navy); color: #C9D4E2; font-size: var(--step--1); }
.utility__inner { display: flex; flex-wrap: wrap; gap: var(--s-5); align-items: center; min-height: 38px; }
.utility__item { display: inline-flex; align-items: center; gap: var(--s-2); color: #C9D4E2; text-decoration: none; }
.utility__item:hover { color: #fff; }
.utility__item svg { opacity: .7; }

.site-header { position: sticky; top: 0; z-index: 60; }
.site-header__main { background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.site-header__inner { display: flex; align-items: center; gap: var(--s-5); min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.brand__logo { width: 188px; height: 40px; }

.nav { flex: 1; display: flex; justify-content: flex-end; }
.nav__list { display: flex; align-items: center; gap: var(--s-1); list-style: none; margin: 0; padding: 0; }
.nav__list > li { margin: 0; position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: var(--s-1);
  padding: var(--s-3) var(--s-3); border: 0; background: none; cursor: pointer;
  font: inherit; font-size: var(--step--1); font-weight: 600; color: var(--navy);
  text-decoration: none; border-radius: var(--r-sm);
}
.nav__link:hover { background: var(--bg); color: var(--teal-dark); }
.nav__link.is-current { color: var(--teal-dark); box-shadow: inset 0 -2px 0 var(--teal); border-radius: 0; }
.nav__toggle svg { transition: transform .18s ease; }
.nav__item--has-menu > .nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.nav__menu {
  position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  min-width: 268px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg); padding: var(--s-2);
  animation: menuIn .16s ease-out;
}
@keyframes menuIn { from { opacity: 0; transform: translateX(-50%) translateY(-6px); } }
.nav__menu ul { list-style: none; margin: 0; padding: 0; }
.nav__menu a {
  display: block; padding: var(--s-2) var(--s-3); border-radius: var(--r-sm);
  font-size: var(--step--1); color: var(--text); text-decoration: none; font-weight: 500;
}
.nav__menu a:hover { background: var(--bg); color: var(--teal-dark); }
.nav__link--emphasis { font-weight: 700; color: var(--teal-dark) !important; }
.nav__group {
  padding: var(--s-3) var(--s-3) var(--s-1); font-size: .72rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: var(--text-faint);
}

.site-header__actions { display: flex; align-items: center; gap: var(--s-3); flex: none; }

.nav-burger { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); cursor: pointer; }
.nav-burger__bar { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--navy); border-radius: 2px; transition: transform .18s ease, opacity .18s ease; }
.nav-burger[aria-expanded="true"] .nav-burger__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger[aria-expanded="true"] .nav-burger__bar:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] .nav-burger__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav { background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); max-height: calc(100vh - 120px); overflow-y: auto; }
.mobile-nav__list { list-style: none; margin: 0; padding: var(--s-3); }
.mobile-nav__list > li { margin: 0; border-bottom: 1px solid var(--line-soft); }
.mobile-nav__list > li > a,
.mobile-nav__list summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  padding: var(--s-4) var(--s-2); font-weight: 600; color: var(--navy); text-decoration: none; cursor: pointer; list-style: none;
}
.mobile-nav__list summary::-webkit-details-marker { display: none; }
.mobile-nav__list summary svg { transition: transform .18s ease; }
.mobile-nav__list details[open] summary svg { transform: rotate(180deg); }
.mobile-nav__sub { list-style: none; margin: 0 0 var(--s-3); padding: 0 0 0 var(--s-4); border-left: 2px solid var(--line); }
.mobile-nav__sub a { display: block; padding: var(--s-2) 0; font-size: var(--step--1); text-decoration: none; color: var(--text); }
.mobile-nav__group { font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--text-faint); padding-top: var(--s-3); }
.mobile-nav__footer { padding: var(--s-4) var(--s-5) var(--s-6); display: grid; gap: var(--s-3); border-top: 1px solid var(--line); background: var(--bg); }
.mobile-nav__contact { display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--step--1); font-weight: 600; text-decoration: none; }

/* ------------------------------------------------------------------ hero */

.hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; padding: var(--s-9) 0 var(--s-8); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(0, 127, 130, .34), transparent 62%),
    radial-gradient(620px 380px at 4% 108%, rgba(184, 138, 68, .18), transparent 60%);
  pointer-events: none;
}
.hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: var(--s-8); align-items: center; }
.hero h1 { color: #fff; font-size: var(--step-5); margin-bottom: var(--s-5); max-width: 20ch; }
.hero__lead { font-size: var(--step-1); color: #CBD6E4; max-width: 52ch; margin-bottom: var(--s-6); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.hero__wa { margin-top: var(--s-5); font-size: var(--step--1); }
.hero__wa a { display: inline-flex; align-items: center; gap: var(--s-2); color: #8FE0E1; text-decoration: none; font-weight: 600; }
.hero__wa a:hover { color: #fff; text-decoration: underline; }
.hero__note { margin-top: var(--s-5); font-size: var(--step--1); color: #93A3B8; }
.hero__aside { min-width: 0; }

.page-hero { background: var(--surface); border-bottom: 1px solid var(--line); padding: var(--s-7) 0 var(--s-6); }
.page-hero h1 { font-size: var(--step-4); margin-bottom: var(--s-4); }
.page-hero .lead { margin: 0; }
.page-hero__aside { margin-top: var(--s-6); }

.breadcrumbs { margin-bottom: var(--s-5); font-size: var(--step--1); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; margin: 0; padding: 0; color: var(--text-faint); }
.breadcrumbs li + li::before { content: "/"; margin-right: var(--s-2); color: var(--line); }
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; color: var(--teal-dark); }
.breadcrumbs [aria-current] { color: var(--navy); font-weight: 600; }

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  padding: .8rem 1.4rem; border: 1px solid transparent; border-radius: var(--r-sm);
  font: inherit; font-size: var(--step-0); font-weight: 650; line-height: 1.2;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .1s ease;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.btn--block { display: flex; width: 100%; }
.btn--sm { padding: .55rem 1rem; font-size: var(--step--1); }

.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--teal-dark); color: #fff; }

.btn--outline { background: transparent; color: var(--teal-dark); border-color: var(--teal); }
.btn--outline:hover { background: var(--teal-tint); color: var(--teal-dark); }

.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { background: var(--bg); border-color: var(--text-faint); }

.btn--onDark { background: var(--teal); color: #fff; }
.btn--onDark:hover { background: #0A9497; color: #fff; }
.btn--onDarkOutline { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn--onDarkOutline:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.btn--onDarkGhost { background: transparent; color: #C9D4E2; border-color: transparent; }
.btn--onDarkGhost:hover { color: #fff; background: rgba(255,255,255,.08); }

.btn--whatsapp { background: #128C4B; color: #fff; }
.btn--whatsapp:hover { background: #0E7A40; color: #fff; }

.btn__spinner {
  width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ----------------------------------------------------------------- cards */

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

.card {
  display: flex; flex-direction: column; gap: var(--s-3);
  padding: var(--s-6); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease;
}
.card--tight { padding: var(--s-5); }
.card--link { text-decoration: none; color: inherit; }
.card--link:hover { border-color: var(--teal); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card__icon { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; background: var(--teal-tint); color: var(--teal-dark); border-radius: var(--r-md); }
.card__title { margin: 0; font-size: var(--step-1); }
.card__title a { color: var(--navy); text-decoration: none; }
.card__title a:hover { text-decoration: underline; }
.card__meta { margin: 0; font-size: var(--step--1); color: var(--text-muted); font-weight: 600; }
.card__body { margin: 0; color: var(--text-muted); font-size: var(--step--1); }
.card__foot { margin: 0; font-size: var(--step--1); color: var(--text-faint); }
.card__link { display: inline-flex; align-items: center; gap: var(--s-2); margin-top: auto; font-weight: 650; color: var(--teal-dark); font-size: var(--step--1); }
.card__links { margin: 0; font-size: var(--step--1); }
.card__address { font-style: normal; font-size: var(--step--1); color: var(--text); }
.card--flagship { border-color: var(--gold); background: linear-gradient(180deg, #FFFDFA, #FFFFFF); }
.card--example { border-style: dashed; }
.card--category { justify-content: flex-start; }

/* ------------------------------------------------------------ brand blocks */

.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); margin-top: var(--s-6); }
.pillar { padding: var(--s-6); background: var(--bg); border-radius: var(--r-lg); border-top: 3px solid var(--teal); }
.pillar__icon { display: inline-flex; margin-bottom: var(--s-3); color: var(--teal-dark); }
.pillar h3 { margin: 0 0 var(--s-3); font-size: var(--step-1); }
.pillar p { margin: 0; color: var(--text-muted); font-size: var(--step--1); }

.positioning__statement {
  font-size: var(--step-2); font-weight: 600; color: var(--navy);
  max-width: 62ch; margin: 0 auto var(--s-5); text-align: center;
}
.positioning { text-align: left; }
.positioning .pillars { text-align: left; }

.challenge-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--s-4); padding: 0; margin: 0; }
.challenge {
  padding: var(--s-5); background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--gold); border-radius: var(--r-md);
}
.challenge h3 { margin: 0 0 var(--s-2); font-size: var(--step-0); }
.challenge p { margin: 0; font-size: var(--step--1); color: var(--text-muted); }

.pathways { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--s-5); }
.pathway {
  padding: var(--s-6); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
}
.pathway__icon { display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; background: var(--navy); color: #fff; border-radius: var(--r-md); margin-bottom: var(--s-4); }
.pathway h3 { margin: 0 0 var(--s-2); font-size: var(--step-1); }
.pathway > p { color: var(--text-muted); font-size: var(--step--1); }
.pathway__links { list-style: none; padding: 0; margin: var(--s-4) 0 0; border-top: 1px solid var(--line-soft); }
.pathway__links li { margin: 0; }
.pathway__links a { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-3) 0; border-bottom: 1px solid var(--line-soft); font-weight: 600; font-size: var(--step--1); text-decoration: none; color: var(--navy); }
.pathway__links a:hover { color: var(--teal-dark); }
.pathway__links svg { color: var(--teal); }

.feature-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--s-5); }
.feature { display: flex; gap: var(--s-4); }
.feature__icon { flex: none; display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; background: var(--teal-tint); color: var(--teal-dark); border-radius: var(--r-md); }
.feature__title { margin: 0 0 var(--s-2); font-size: var(--step-0); }
.feature p { margin: 0; font-size: var(--step--1); color: var(--text-muted); }

.steps { list-style: none; counter-reset: step; padding: 0; margin: var(--s-6) 0 0; display: grid; gap: var(--s-4); }
.step { display: grid; grid-template-columns: 48px 1fr; gap: var(--s-4); align-items: start; padding: var(--s-5); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-md); }
.section:not(.section--dark) .step { background: var(--surface); border-color: var(--line); }
.step__num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: #2B2009; font-weight: 700; font-size: var(--step-1); }
.step__title { margin: 0 0 var(--s-2); font-size: var(--step-1); }
.step p { margin: 0; color: var(--text-muted); font-size: var(--step--1); }
.section--dark .step p { color: #C3CEDD; }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: var(--s-4); margin: var(--s-5) 0 var(--s-3); }
.stat { padding: var(--s-5); background: var(--bg); border-radius: var(--r-md); border: 1px solid var(--line); text-align: center; }
.stat__value { display: block; font-size: var(--step-3); font-weight: 700; color: var(--navy); line-height: 1.1; }
.stat__label { display: block; margin-top: var(--s-2); font-size: var(--step--1); color: var(--text-muted); }

/* ------------------------------------------------------------- dashboard mock */

.mock { margin: 0; }
.mock svg { width: 100%; height: auto; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.mock figcaption { margin-top: var(--s-3); font-size: var(--step--1); color: #93A3B8; text-align: center; }

/* --------------------------------------------------------------- flagship */

.flagship {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: var(--s-6); padding: var(--s-7); margin: var(--s-5) 0;
  background: var(--surface); border: 1px solid var(--gold-line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-md);
}
.flagship--wide { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.flagship__badge { display: inline-flex; align-items: center; gap: var(--s-2); margin: 0 0 var(--s-3); padding: var(--s-1) var(--s-3); background: var(--gold-soft); color: var(--gold-text); border: 1px solid var(--gold-line); border-radius: var(--r-pill); font-size: var(--step--1); font-weight: 700; }
.flagship h2, .flagship h3 { margin: 0 0 var(--s-3); }
.flagship__headline { font-size: var(--step-1); font-weight: 600; color: var(--navy); }
.flagship__points { list-style: none; padding: 0; margin: var(--s-5) 0; display: grid; gap: var(--s-3); }
.flagship__points li { display: grid; grid-template-columns: 20px 1fr; gap: var(--s-2); margin: 0; font-size: var(--step--1); color: var(--text-muted); }
.flagship__points svg { color: var(--teal); margin-top: 3px; }
.flagship__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }
.flagship__modules { padding: var(--s-5); background: var(--bg); border-radius: var(--r-md); border: 1px solid var(--line); max-height: 460px; overflow-y: auto; }
.flagship__modules-title { margin: 0 0 var(--s-4); font-weight: 700; color: var(--navy); font-size: var(--step--1); text-transform: uppercase; letter-spacing: .07em; }
.flagship__modules ul { list-style: none; padding: 0; margin: 0; }
.flagship__modules li { display: grid; gap: 2px; padding: var(--s-3) 0; border-bottom: 1px solid var(--line-soft); font-size: var(--step--1); }
.flagship__modules li:last-child { border-bottom: 0; }
.flagship__modules strong { color: var(--navy); font-size: var(--step--1); }
.flagship__modules span { color: var(--text-muted); font-size: .8rem; }

.relationship-note {
  display: flex; gap: var(--s-3); align-items: flex-start;
  padding: var(--s-4) var(--s-5); background: var(--info-bg);
  border: 1px solid #D6E3F1; border-radius: var(--r-md); color: #1E3A57;
  font-size: var(--step--1); margin: 0;
}
.relationship-note svg { flex: none; margin-top: 3px; }

.tier-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--s-5); margin: var(--s-5) 0; }
.tier { padding: var(--s-6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.tier h3 { margin: 0 0 var(--s-2); }
.tier__for { font-size: var(--step--1); color: var(--text-muted); min-height: 3.2em; }
.tier__price { font-weight: 700; color: var(--teal-dark); font-size: var(--step--1); }
.tier ul { list-style: none; padding: 0; margin: var(--s-4) 0 0; border-top: 1px solid var(--line-soft); }
.tier li { display: grid; grid-template-columns: 16px 1fr; gap: var(--s-2); padding: var(--s-2) 0; font-size: var(--step--1); border-bottom: 1px solid var(--line-soft); }
.tier li svg { color: var(--teal); margin-top: 3px; }

/* ------------------------------------------------------------------ prose */

.prose h2 { margin-top: var(--s-7); font-size: var(--step-2); }
.prose h3 { margin-top: var(--s-6); font-size: var(--step-1); }
.prose p { max-width: 74ch; }
.prose ul, .prose ol { max-width: 74ch; }
.prose--legal h2 { font-size: var(--step-1); border-bottom: 1px solid var(--line); padding-bottom: var(--s-2); }

.bullets { list-style: none; padding: 0; max-width: 74ch; }
.bullets li { position: relative; padding-left: 1.5rem; margin-bottom: var(--s-3); }
.bullets li::before { content: ""; position: absolute; left: .35rem; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.bullets--ordered { counter-reset: b; }
.bullets--ordered li { padding-left: 2rem; }
.bullets--ordered li::before { content: counter(b) "."; counter-increment: b; position: absolute; left: 0; top: 0; font-weight: 700; color: var(--teal-dark); background: none; width: auto; height: auto; }
.bullets--ticks { list-style: none; }
.bullets--ticks li::before { content: ""; position: absolute; left: 0; top: .28em; width: 14px; height: 14px; background: var(--teal); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m4.5 12.5 5 5 10-11'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m4.5 12.5 5 5 10-11'/%3E%3C/svg%3E") center/contain no-repeat; }
.bullets--cross li::before { background: var(--danger); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") center/contain no-repeat; }
.bullets--warn li::before { background: var(--gold); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 4v10M12 19h.01'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 4v10M12 19h.01'/%3E%3C/svg%3E") center/contain no-repeat; }

.checklist { list-style: none; padding: 0; max-width: 74ch; }
.checklist li { display: grid; grid-template-columns: 20px 1fr; gap: var(--s-3); padding: var(--s-3) 0; border-bottom: 1px solid var(--line-soft); align-items: start; }
.checklist svg { color: var(--teal); margin-top: 4px; }

.deliverables { list-style: none; counter-reset: d; padding: 0; margin: var(--s-5) 0; display: grid; gap: var(--s-4); }
.deliverable { position: relative; padding: var(--s-5) var(--s-5) var(--s-5) var(--s-7); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.deliverable::before { counter-increment: d; content: counter(d, decimal-leading-zero); position: absolute; left: var(--s-5); top: var(--s-5); font-weight: 700; color: var(--gold); font-size: var(--step--1); }
.deliverable h3 { margin: 0 0 var(--s-2); font-size: var(--step-0); }
.deliverable p { margin: 0; font-size: var(--step--1); color: var(--text-muted); }

.audience-note { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-4) var(--s-5); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); font-size: var(--step--1); }
.audience-note svg { flex: none; color: var(--teal-dark); margin-top: 3px; }

.address-block { font-style: normal; font-size: var(--step-1); line-height: 1.8; padding: var(--s-5); background: var(--bg); border-radius: var(--r-md); border: 1px solid var(--line); }

.contact-list, .meta-list { margin: 0; }
.contact-list > div, .meta-list > div { display: grid; grid-template-columns: auto 1fr; gap: var(--s-3); padding: var(--s-3) 0; border-bottom: 1px solid var(--line-soft); align-items: start; }
.contact-list dt, .meta-list dt { display: flex; align-items: center; gap: var(--s-2); font-weight: 600; color: var(--text-muted); font-size: var(--step--1); }
.contact-list dd, .meta-list dd { margin: 0; font-size: var(--step--1); }

/* --------------------------------------------------------------- accordion */

.accordion { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__item:last-child { border-bottom: 0; }
.accordion__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-5); cursor: pointer; font-weight: 650; color: var(--navy); list-style: none;
}
.accordion__item summary::-webkit-details-marker { display: none; }
.accordion__item summary:hover { background: var(--bg); }
.accordion__item summary svg { flex: none; color: var(--teal); transition: transform .18s ease; }
.accordion__item[open] summary svg { transform: rotate(180deg); }
.accordion__panel { padding: 0 var(--s-5) var(--s-5); color: var(--text-muted); font-size: var(--step--1); }
.accordion__panel p { max-width: 74ch; }

/* ------------------------------------------------------------------ split */

.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s-8); align-items: start; }
.split__main { min-width: 0; }
.split__main > h2:first-child { margin-top: 0; }
.split__side { display: grid; gap: var(--s-5); position: sticky; top: calc(var(--header-h) + var(--s-5)); }

.panel { padding: var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.panel--sticky { position: relative; }
.panel__title { margin: 0 0 var(--s-4); font-size: var(--step-1); }
.panel__sub { margin: var(--s-5) 0 var(--s-2); font-size: var(--step--1); }
.panel__list { list-style: none; padding: 0; margin: 0 0 var(--s-4); }
.panel__list li { position: relative; padding-left: 1.4rem; margin-bottom: var(--s-3); font-size: var(--step--1); color: var(--text-muted); }
.panel__list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.panel__contact { display: grid; gap: var(--s-2); margin-bottom: var(--s-4); padding: var(--s-4) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.panel__contact p { display: flex; align-items: center; gap: var(--s-2); margin: 0; font-size: var(--step--1); }
.panel__contact svg { color: var(--teal); flex: none; }
.panel__contact a { text-decoration: none; font-weight: 600; }
.panel__links { list-style: none; padding: 0; margin: 0; }
.panel__links li { margin: 0; border-bottom: 1px solid var(--line-soft); }
.panel__links a { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-3) 0; font-size: var(--step--1); font-weight: 600; text-decoration: none; }
.panel__links a:hover { color: var(--teal-dark); }
.panel__address { font-style: normal; font-size: var(--step--1); margin-bottom: var(--s-4); }
.panel__steps { padding-left: 1.2rem; margin: 0 0 var(--s-4); font-size: var(--step--1); color: var(--text-muted); }
.panel__icon { display: inline-flex; color: var(--teal-dark); margin-bottom: var(--s-2); }
.panel .btn { margin-top: var(--s-3); }
.panel--contents .toc { list-style: none; padding: 0; margin: 0; }
.panel--contents .toc a { display: block; padding: var(--s-2) 0; font-size: var(--step--1); text-decoration: none; border-bottom: 1px solid var(--line-soft); color: var(--text-muted); }
.panel--contents .toc a:hover { color: var(--teal-dark); }

/* ------------------------------------------------------------------ forms */

.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-6); box-shadow: var(--shadow-sm); }
.form--compact { padding: var(--s-5); }
.form__intro { font-size: var(--step--1); color: var(--text-muted); margin-bottom: var(--s-5); }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--s-4) var(--s-5); }
.form__grid .field:has(textarea),
.form__grid .field--group,
.form__grid .field--check,
.form__grid .field--locked { grid-column: 1 / -1; }
.form__footer { margin-top: var(--s-5); display: grid; gap: var(--s-3); }
.form__wa { margin: 0; font-size: var(--step--1); color: var(--text-muted); }
.form__privacy { margin: 0; font-size: .8rem; color: var(--text-faint); max-width: 62ch; }

.field { display: grid; gap: var(--s-2); min-width: 0; }
.field label, .field legend { font-weight: 650; font-size: var(--step--1); color: var(--navy); padding: 0; }
.field legend { margin-bottom: var(--s-2); }
.field__hint { margin: 0; font-size: .8rem; color: var(--text-muted); }
.field__error { margin: 0; font-size: .8rem; color: var(--danger); font-weight: 600; }
.req { color: var(--danger); }

input[type="text"], input[type="email"], input[type="tel"], input[type="search"], textarea, select {
  width: 100%; padding: .7rem .85rem; font: inherit; font-size: var(--step-0); color: var(--text);
  background: var(--surface); border: 1px solid #C8D3E1; border-radius: var(--r-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { resize: vertical; min-height: 120px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A6B80' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9.5 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .7rem center; background-size: 16px; padding-right: 2.2rem; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--teal); box-shadow: var(--ring); }
input.is-locked { background: var(--bg); color: var(--text-muted); }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--danger); background: var(--danger-bg); }
input[aria-invalid="true"]:focus, textarea[aria-invalid="true"]:focus, select[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(163, 44, 44, .25); }

.radio-grid { display: grid; gap: var(--s-2); grid-template-columns: repeat(2, minmax(0,1fr)); }
.radio-grid--wide { grid-template-columns: 1fr; }
.radio { display: flex; align-items: flex-start; gap: var(--s-3); padding: var(--s-3) var(--s-4); border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; font-size: var(--step--1); font-weight: 500; transition: border-color .15s ease, background .15s ease; }
.radio:hover { border-color: var(--teal); background: var(--teal-tint); }
.radio input { margin: 3px 0 0; accent-color: var(--teal); }
.radio:has(input:checked) { border-color: var(--teal); background: var(--teal-tint); box-shadow: inset 0 0 0 1px var(--teal); }

.check { display: flex; align-items: flex-start; gap: var(--s-3); font-size: var(--step--1); cursor: pointer; }
.check input { margin: 3px 0 0; accent-color: var(--teal); width: 18px; height: 18px; flex: none; }

.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.form-status, .form-error { padding: var(--s-4) var(--s-5); border-radius: var(--r-sm); font-size: var(--step--1); margin-bottom: var(--s-4); }
.form-status { background: var(--success-bg); color: var(--success); border: 1px solid #CDE4D6; font-weight: 600; }
.form-error { background: var(--danger-bg); color: var(--danger); border: 1px solid #F0D2D2; font-weight: 600; }

.notice { padding: var(--s-5); border-radius: var(--r-md); margin-bottom: var(--s-5); }
.notice--info { background: var(--info-bg); border: 1px solid #D6E3F1; color: #1E3A57; }
.notice p { margin: 0 0 var(--s-3); font-size: var(--step--1); }
.notice p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------- finder */

.finder { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-6); }
.finder__progress { height: 6px; background: var(--line); border-radius: var(--r-pill); overflow: hidden; margin-bottom: var(--s-4); }
.finder__progress span { display: block; height: 100%; width: 0; background: var(--teal); transition: width .25s ease; }
.finder__step { font-size: var(--step--1); color: var(--text-muted); font-weight: 600; margin-bottom: var(--s-4); }
.finder__questions { list-style: none; padding: 0; margin: 0; }
.finder__question fieldset { border: 0; padding: 0; margin: 0; }
.finder__question legend { font-size: var(--step-1); font-weight: 650; color: var(--navy); margin-bottom: var(--s-4); }
.finder__nav { display: flex; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.finder__result { margin-top: var(--s-6); padding-top: var(--s-6); border-top: 2px solid var(--line); }
.finder__list { padding-left: 1.2rem; }
.finder__list li { margin-bottom: var(--s-4); }
.finder__list strong { color: var(--navy); }
.finder__list .score { display: inline-block; margin-left: var(--s-2); font-size: .8rem; color: var(--text-muted); }

/* ------------------------------------------------------------- resources */

.outline { display: grid; gap: var(--s-5); margin: var(--s-5) 0; }
.outline__section { padding: var(--s-5); background: var(--bg); border-radius: var(--r-md); border: 1px solid var(--line); }
.outline__section h3 { margin: 0 0 var(--s-3); font-size: var(--step-0); }
.outline__section ul { list-style: none; padding: 0; margin: 0; }
.outline__section li { display: grid; grid-template-columns: 18px 1fr; gap: var(--s-3); padding: var(--s-2) 0; font-size: var(--step--1); color: var(--text-muted); border-bottom: 1px solid var(--line-soft); }
.outline__section li:last-child { border-bottom: 0; }
.outline__section svg { color: var(--teal); margin-top: 3px; }

.resource-list { display: grid; gap: var(--s-4); }
.resource-row { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s-5); align-items: center; padding: var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.resource-row__icon { display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; background: var(--teal-tint); color: var(--teal-dark); border-radius: var(--r-md); }
.resource-row h3 { margin: 0 0 var(--s-1); font-size: var(--step-1); }
.resource-row p { margin: 0 0 var(--s-2); font-size: var(--step--1); color: var(--text-muted); }

/* -------------------------------------------------------------- articles */

.article-list { display: grid; gap: var(--s-4); }
.article-row { display: grid; grid-template-columns: 190px 1fr auto; gap: var(--s-5); align-items: start; padding: var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); transition: border-color .15s ease, box-shadow .15s ease; }
.article-row:hover { border-color: var(--teal); box-shadow: var(--shadow-sm); }
.article-row__meta p { margin: 0; font-size: var(--step--1); font-weight: 700; color: var(--teal-dark); }
.article-row__meta .muted { font-weight: 500; color: var(--text-faint); }
.article-row h3 { margin: 0 0 var(--s-2); font-size: var(--step-1); }
.article-row h3 a { color: var(--navy); text-decoration: none; }
.article-row h3 a:hover { text-decoration: underline; }
.article-row p { margin: 0 0 var(--s-2); font-size: var(--step--1); color: var(--text-muted); }
.article-row__author { font-size: .8rem !important; color: var(--text-faint) !important; }
.article-row__arrow { color: var(--teal); padding-top: var(--s-1); }

.article__meta { display: flex; align-items: center; gap: var(--s-2); font-size: var(--step--1); color: var(--text-muted); margin-bottom: var(--s-5); }
.article__meta svg { color: var(--teal); }

.article-resource { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); flex-wrap: wrap; padding: var(--s-5); margin: var(--s-6) 0; background: var(--gold-soft); border: 1px solid var(--gold-line); border-radius: var(--r-md); }
.article-resource h2 { margin: 0 0 var(--s-2); font-size: var(--step-1); color: var(--gold-text); }
.article-resource p { margin: 0; font-size: var(--step--1); color: var(--gold-text); max-width: 52ch; }

.article-share { display: flex; flex-wrap: wrap; gap: var(--s-4); margin: var(--s-6) 0; padding: var(--s-4) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: var(--step--1); }
.article-share a { font-weight: 600; text-decoration: none; }
.article-disclaimer { font-size: var(--step--1); color: var(--text-muted); padding: var(--s-4); background: var(--bg); border-radius: var(--r-sm); }

/* ------------------------------------------------------------- CTA bands */

.cta-band { background: var(--navy); color: #fff; padding: var(--s-8) 0; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 300px at 92% 0%, rgba(0,127,130,.3), transparent 60%); pointer-events: none; }
.cta-band__inner { position: relative; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: var(--s-7); align-items: center; }
.cta-band h2 { color: #fff; margin: 0 0 var(--s-3); font-size: var(--step-3); max-width: 24ch; }
.cta-band p { margin: 0; color: #C3CEDD; max-width: 56ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }

.inline-cta { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: var(--s-6); align-items: center; padding: var(--s-7); margin: var(--s-7) 0; background: var(--teal-tint); border: 1px solid #CBE3E3; border-radius: var(--r-lg); }
.inline-cta h2 { margin: 0 0 var(--s-2); font-size: var(--step-2); }
.inline-cta p { margin: 0; color: var(--text-muted); max-width: 58ch; }
.inline-cta__actions { display: grid; gap: var(--s-3); min-width: 220px; }

/* --------------------------------------------------------------- related */

.related { margin: var(--s-7) 0; padding: var(--s-6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.related__title { margin: 0 0 var(--s-5); font-size: var(--step-1); }
.related__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--s-5); }
.related h3 { margin: 0 0 var(--s-3); font-size: var(--step--1); text-transform: uppercase; letter-spacing: .07em; color: var(--text-faint); }
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { border-bottom: 1px solid var(--line-soft); }
.related a { display: block; padding: var(--s-2) 0; font-size: var(--step--1); text-decoration: none; }
.related a:hover { color: var(--teal-dark); text-decoration: underline; }

/* --------------------------------------------------------------- footer */

.site-footer { background: var(--navy); color: #B9C6D6; padding: var(--s-8) 0 var(--s-6); font-size: var(--step--1); }
.site-footer a { color: #DCE4EE; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr) 1.1fr; gap: var(--s-6); padding-bottom: var(--s-7); border-bottom: 1px solid rgba(255,255,255,.12); }
.site-footer__brand img { width: 188px; height: 40px; margin-bottom: var(--s-4); }
.site-footer__tagline { color: var(--gold); font-weight: 600; margin-bottom: var(--s-4); }
.site-footer__address, .site-footer__contact, .site-footer__hours { margin: 0 0 var(--s-3); line-height: 1.7; }
.site-footer__hours span { color: #93A3B8; }
.site-footer__heading { color: #fff; font-size: var(--step--1); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 var(--s-4); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: var(--s-2); }
.site-footer__offices li { padding-bottom: var(--s-3); margin-bottom: var(--s-3); border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer__offices span { display: block; color: #93A3B8; }
.site-footer__all-locations { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 600; }
.site-footer__bottom { padding-top: var(--s-5); display: grid; gap: var(--s-4); }
.site-footer__bottom p { margin: 0; color: #93A3B8; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: var(--s-5); list-style: none; padding: 0; margin: 0; }
.site-footer__note { font-size: .78rem; max-width: 90ch; color: #7E8DA1; }

/* --------------------------------------------------------- WhatsApp float */

.wa-float {
  position: fixed; right: var(--s-5); bottom: var(--s-5); z-index: 70;
  display: inline-flex; align-items: center; gap: var(--s-3);
  padding: .7rem 1.1rem; background: #128C4B; color: #fff;
  border-radius: var(--r-pill); text-decoration: none; font-weight: 650; font-size: var(--step--1);
  box-shadow: 0 8px 24px rgba(18, 140, 75, .34);
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.wa-float:hover { background: #0E7A40; color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(18, 140, 75, .4); }
.wa-float__label { white-space: nowrap; }

/* Keeps the button clear of form controls and mobile browser chrome. */
@media (max-width: 640px) {
  .wa-float { right: var(--s-4); bottom: calc(var(--s-4) + env(safe-area-inset-bottom, 0px)); padding: .8rem; border-radius: 50%; }
  .wa-float__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* --------------------------------------------------------------- consent */

.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 28px rgba(16,36,58,.12); padding: var(--s-5) 0 calc(var(--s-5) + env(safe-area-inset-bottom, 0px)); }
.consent__inner { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: var(--s-5); align-items: center; }
.consent__text p { margin: 0 0 var(--s-2); font-size: var(--step--1); color: var(--text-muted); max-width: 78ch; }
.consent__text strong { color: var(--navy); }
.consent__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.consent-panel { position: fixed; left: 0; right: 0; bottom: 0; z-index: 81; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 28px rgba(16,36,58,.14); padding: var(--s-6) 0; }
.consent-panel__title { margin: 0 0 var(--s-5); font-size: var(--step-1); }
.consent-panel__row { display: grid; grid-template-columns: 1fr auto; gap: var(--s-5); align-items: center; padding: var(--s-4) 0; border-bottom: 1px solid var(--line-soft); }
.consent-panel__row strong { color: var(--navy); }
.consent-panel__row p { margin: var(--s-1) 0 0; font-size: var(--step--1); color: var(--text-muted); }
.consent-panel__state { font-size: var(--step--1); font-weight: 600; color: var(--text-muted); }

/* ------------------------------------------------------------ 404 / confirm */

.section--error { padding-top: var(--s-9); text-align: left; }
.section--error h1 { font-size: var(--step-4); }
.error__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }

.section--confirm { padding: var(--s-9) 0; }
.confirm { text-align: center; max-width: 640px; margin: 0 auto; }
.confirm__icon { display: inline-flex; width: 72px; height: 72px; align-items: center; justify-content: center; background: var(--success-bg); color: var(--success); border-radius: 50%; margin-bottom: var(--s-5); }
.confirm h1 { font-size: var(--step-3); }
.confirm .lead { margin: 0 auto var(--s-5); }
.confirm h2 { text-align: left; font-size: var(--step-1); }
.confirm ol { text-align: left; }
.confirm__ref { font-size: var(--step--1); color: var(--text-muted); padding: var(--s-3) var(--s-4); background: var(--bg); border-radius: var(--r-sm); }
.confirm__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); margin: var(--s-6) 0; }
.confirm__contact { font-size: var(--step--1); color: var(--text-muted); }
.confirm__related { margin-top: var(--s-8); text-align: left; }

/* ------------------------------------------------------------- responsive */

@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; gap: var(--s-7); }
  .hero h1 { max-width: 24ch; }
  .split { grid-template-columns: 1fr; }
  .split__side { position: static; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .site-footer__grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid--3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .challenge-grid, .pathways, .pillars { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .flagship, .flagship--wide { grid-template-columns: 1fr; }
  .cta-band__inner { grid-template-columns: 1fr; }
  .inline-cta { grid-template-columns: 1fr; }
  .tier-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  :root { --step-4: 1.9rem; --step-5: 2.4rem; --step-3: 1.5rem; }
  .nav { display: none; }
  .site-header__actions .btn { display: none; }
  .nav-burger { display: block; }
  .utility__item--hide-sm { display: none; }
  .article-row { grid-template-columns: 1fr; gap: var(--s-3); }
  .article-row__arrow { display: none; }
  .resource-row { grid-template-columns: 1fr; }
  .resource-row__icon { display: none; }
}

@media (max-width: 720px) {
  .section { padding: var(--s-7) 0; }
  .hero { padding: var(--s-7) 0 var(--s-6); }
  .card-grid--2, .card-grid--3 { grid-template-columns: 1fr; }
  .challenge-grid, .pathways, .pillars, .feature-list, .radio-grid { grid-template-columns: 1fr; }
  .form__grid { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .consent__inner { grid-template-columns: 1fr; }
  .consent__actions { flex-direction: column; }
  .consent__actions .btn { width: 100%; }
  .step { grid-template-columns: 1fr; }
  .step__num { width: 34px; height: 34px; font-size: var(--step-0); }
  th, td { padding: var(--s-3); }
  .brand__logo { width: 152px; height: 32px; }
}

@media (max-width: 480px) {
  .site-footer__grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .hero__actions, .btn-row, .cta-band__actions, .inline-cta__actions, .flagship__actions { display: grid; }
  .confirm__actions { display: grid; }
}

/* ------------------------------------------------------------------ print */

@media print {
  .site-header, .site-footer, .wa-float, .consent, .consent-panel, .split__side, .cta-band, .inline-cta, .related { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding: 0; }
  a { color: #000; text-decoration: underline; }
}

/* ==========================================================================
   Component gaps
   --------------------------------------------------------------------------
   These classes are emitted by src/lib/blocks.js and the templates but had no
   rule of their own, so they fell back to browser defaults. Found by diffing
   every class attribute in the built HTML against the selectors defined here.
   ========================================================================== */

/* Main landmark. The header is fixed, so the content needs to clear it. */
.main { display: block; min-width: 0; }
.main:focus { outline: none; }

/* Hero: the copy column. .hero__inner already lays the two columns out. */
.hero__content { min-width: 0; }

/* Footer: each column is a grid child of .site-footer__grid. */
.site-footer__col { min-width: 0; }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }

/* Process steps. .step is a 48px/1fr grid, so the body column must not overflow. */
.step__body { min-width: 0; }

/* CTA band: the heading-and-copy column, paired with .cta-band__actions. */
.cta-band__text { min-width: 0; }

/* Flagship (ZhiftERP) panel: the narrative column beside the module list. */
.flagship__body { min-width: 0; display: grid; align-content: start; }

/* Card variants. Each only needs to differ where the content does. */
.card--article { display: grid; gap: var(--s-2); align-content: start; }
.card--office { display: grid; gap: var(--s-3); align-content: start; }
.card--office .card__address { white-space: pre-line; }

/* Panel variants. */
.panel--map-note { background: var(--gold-soft); border-color: var(--gold-line); }
.panel--map-note .panel__title { color: var(--gold-text); }
.panel--resource { display: grid; gap: var(--s-3); align-content: start; }

/* Editorial rows: the middle column carries the title and standfirst. */
.article-row__body { min-width: 0; }
.resource-row__body { min-width: 0; }

/* Article prose. Slightly wider measure than the generic .prose, and the
   standfirst is set apart from the body copy. */
.prose--article { font-size: var(--step-0); }
.prose--article > p:first-of-type { font-size: var(--step-1); color: var(--navy); font-weight: 500; max-width: 62ch; }
.prose--article h2 { margin-top: var(--s-8); }
.prose--article blockquote { margin: var(--s-6) 0; padding-left: var(--s-5); border-left: 3px solid var(--gold); color: var(--navy); font-size: var(--step-1); }

/* The evidence note that sits under the case-study methodology. */
.evidence { margin: var(--s-5) 0; padding: var(--s-4) var(--s-5); background: var(--info-bg); border-left: 3px solid var(--teal); border-radius: 0 var(--r-md) var(--r-md) 0; font-size: var(--step--1); color: var(--text-muted); }
.evidence p { margin: 0; }
.evidence p + p { margin-top: var(--s-2); }

/* Confirmation pages (thank-you screens). The header nav stays: it is how a
   visitor leaves the page, and a dead end is worse than a quiet one. Only the
   utility bar is dropped, because its phone and email links compete with the
   reference number that is the point of the page. */
.page-confirm .main { padding: var(--s-9) 0; }
.page-confirm .utility { display: none; }

/* ==========================================================================
   Notes on unused selectors
   --------------------------------------------------------------------------
   Verified by diffing every class in the built HTML against the rules here:
     .brand__logo--dark   removed. It was left behind when the second header
                          logo was dropped and produced a hidden image request
                          on every page.
     .panel--dark,
     .section-head--center removed. Nothing emitted them.
   Kept, because src/lib/*.js still emits them under an option that no current
   page uses, so deleting them would silently break the next page that does:
     .card--flagship, .field--group, .field--locked, .is-locked,
     .page-hero__aside, .section--wide, .wrap--wide
   .score is applied by assets/js/main.js as the solution finder scores answers,
   so it never appears in the static HTML.
   ========================================================================== */
