/* ============================================================================
   BaiTrak marketing site — shared components & page sections
   Builds on colors_and_type.css (tokens + base typography).
   ============================================================================ */

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

body {
  background: var(--bg-page);
  color: var(--fg-1);
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

/* ---------- LAYOUT ---------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

@media (max-width: 768px) {
  .container { padding-left: 20px; padding-right: 20px; }
}

/* ---------- BUTTONS --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1;
  border-radius: var(--radius-md);
  padding: 12px 24px;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out);
  min-height: 44px;
}
.btn:focus-visible {
  outline: 2px solid var(--color-deep-blue);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--color-deep-blue);
  color: var(--color-white);
}
.btn--primary:hover {
  background: var(--color-deep-blue-hover);
  color: var(--color-white);
  text-decoration: none;
}

.btn--secondary {
  background: transparent;
  color: var(--color-deep-blue);
  border-color: var(--stroke-1);
}
.btn--secondary:hover {
  background: var(--color-surface);
  color: var(--color-deep-blue);
  text-decoration: none;
}

.btn--secondary-dark {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.2);
}
.btn--secondary-dark:hover {
  background: rgba(255,255,255,0.05);
  color: var(--color-white);
  text-decoration: none;
}

.btn--ghost {
  padding: 8px 12px;
  min-height: 0;
  background: transparent;
  color: var(--color-text-primary);
  border-color: transparent;
}
.btn--ghost:hover { color: var(--color-deep-blue); text-decoration: none; }

.btn .arrow { transition: transform var(--dur-base) var(--ease-out); }
.btn:hover .arrow { transform: translateX(2px); }

/* ---------- NAV ------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 300;
  height: var(--nav-h);
  background: var(--color-white);
  border-bottom: 1px solid var(--stroke-1);
  transition: box-shadow var(--dur-base) var(--ease-out);
}
.nav.is-scrolled {
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.nav__inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 24px;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.nav__brand img { height: 24px; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: 40px;
}
.nav__link {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-text-primary);
  text-decoration: none;
  line-height: 1;
  padding: 8px 0;
  transition: color var(--dur-fast) var(--ease-out);
}
.nav__link:hover { color: var(--color-deep-blue); text-decoration: none; }
.nav__link.is-active { color: var(--color-deep-blue); }

.nav__right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav__lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  text-decoration: none;
  line-height: 1;
}
.nav__lang .sep { color: var(--stroke-2); font-weight: 400; }
.nav__lang:hover { color: var(--color-deep-blue); text-decoration: none; }

.nav__hamburger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--color-deep-slate);
}
.nav__hamburger svg { width: 22px; height: 22px; }

/* Dark nav variant for dark hero pages -- (kept available; unused on Pages 1–2) */
.nav--dark {
  background: var(--color-deep-slate);
  border-bottom-color: rgba(255,255,255,0.08);
}
.nav--dark .nav__link { color: var(--fg-on-dark-2); }
.nav--dark .nav__link:hover,
.nav--dark .nav__link.is-active { color: var(--color-white); }
.nav--dark .nav__lang { color: var(--fg-on-dark-2); }
.nav--dark .nav__hamburger { color: var(--color-white); }

/* Dark nav CTA — Member Portal stays a primary button (Deep Blue on Deep Slate).
   Defensive: ensure no white border / secondary appearance leaks through. */
.nav--dark .btn--primary {
  background: var(--color-deep-blue);
  color: var(--color-white);
  border-color: transparent;
}
.nav--dark .btn--primary:hover {
  background: var(--color-deep-blue-hover);
  color: var(--color-white);
  border-color: transparent;
}

/* Mobile nav */
@media (max-width: 1024px) {
  .nav { height: 56px; }
  .nav__links { display: none; }
  .nav__lang { display: none; }
  .nav__cta-desktop { display: none; }
  .nav__hamburger { display: inline-flex; }
  .nav__brand img { height: 20px; }
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11,17,32,0.5);
  z-index: 350;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out);
}
.drawer-overlay.is-open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  background: var(--color-white);
  z-index: 360;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease-out);
}
.drawer.is-open { transform: translateX(0); }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--stroke-1);
  height: 56px;
}
.drawer__close {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-deep-slate);
  margin-right: -10px;
}
.drawer__close svg { width: 22px; height: 22px; }

.drawer__links {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 8px 0;
  overflow-y: auto;
}
.drawer__link {
  display: flex;
  align-items: center;
  padding: 0 24px;
  height: 56px;
  border-bottom: 1px solid var(--stroke-1);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text-primary);
  text-decoration: none;
}
.drawer__link:hover { color: var(--color-deep-blue); text-decoration: none; }

.drawer__lang {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  height: 56px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  text-decoration: none;
  border-bottom: 1px solid var(--stroke-1);
}
.drawer__lang .sep { color: var(--stroke-2); font-weight: 400; }

.drawer__cta {
  padding: 24px;
  border-top: 1px solid var(--stroke-1);
}
.drawer__cta .btn { width: 100%; justify-content: center; }
.drawer__cta--stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.drawer__cta-btn { min-height: 56px; padding: 16px 24px; font-size: 0.9375rem; }

/* ---------- SECTION SCAFFOLDS ---------------------------------------------- */
.hero-dark {
  background: var(--color-deep-slate);
  color: var(--color-white);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}

.section-light {
  background: var(--color-white);
  padding: 96px 0;
}

.section-surface {
  background: var(--color-surface);
  padding: 64px 0;
}

@media (max-width: 768px) {
  .hero-dark { padding: 64px 0; }
  .section-light { padding: 64px 0; }
  .section-surface { padding: 48px 0; }
}

/* Eyebrow */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  line-height: 1;
}
.eyebrow--accent { color: var(--color-deep-blue); }
.eyebrow--on-dark { color: rgba(255,255,255,0.55); }

/* ---------- INDEX :: HERO --------------------------------------------------- */
.hero-home__grid {
  display: grid;
  grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
  gap: 64px;
  align-items: center;
}
@media (max-width: 1024px) {
  .hero-home__grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
}

.hero-home__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-white);
  margin: 24px 0 0 0;
  text-wrap: balance;
}
@media (max-width: 768px) {
  .hero-home__title { font-size: 2.25rem; }
}

.hero-home__sub {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  max-width: 520px;
  margin: 20px 0 0 0;
}

.hero-home__ctas {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-home__member-route {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.hero-home__route-link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.hero-home__route-link:hover {
  color: rgba(255,255,255,0.85);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero-home__route-sep {
  color: rgba(255,255,255,0.25);
  font-size: 0.875rem;
  line-height: 1;
}

/* Wallet/panels placement */
.hero-home__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 460px;
}
.hero-home__glow {
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: var(--color-deep-blue);
  opacity: 0.03;
  z-index: 0;
  filter: none;
  pointer-events: none;
}
@media (max-width: 1024px) {
  .hero-home__visual { justify-content: flex-start; min-height: 0; padding-top: 8px; }
  .hero-home__glow { width: 360px; height: 360px; opacity: 0.04; }
}

/* ---------- CREDIT WALLET COMPONENT ----------------------------------------- */
.wallet {
  position: relative;
  z-index: 1;
  background: var(--color-white);
  border: 1px solid var(--stroke-1);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 100%;
  max-width: 380px;
}
.wallet__label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  line-height: 1;
}
/* Wallet — financial figures on white use Deep Blue (WCAG-safe).
   Baicorp Green (#C4D600) is reserved for figures on Deep Slate. */
.wallet__balance {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 2rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--color-deep-blue);
  margin-top: 12px;
  letter-spacing: -0.01em;
}
.wallet__rule {
  border: 0;
  border-top: 1px solid var(--stroke-1);
  margin: 20px 0 16px 0;
}
.wallet__lines {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.wallet__line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-text-primary);
}
.wallet__line .amount {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--color-text-primary);
  font-variant-numeric: tabular-nums;
}
.wallet__footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--stroke-1);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.wallet__footer .label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
.wallet__footer .amount {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--color-deep-blue);
  font-variant-numeric: tabular-nums;
}

/* ---------- TRUST BAR ------------------------------------------------------- */
.trustbar {
  background: var(--color-surface);
  border-top: 1px solid var(--stroke-1);
  border-bottom: 1px solid var(--stroke-1);
  padding: 24px 0;
}
.trustbar__line {
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}
.trustbar__line .dot {
  color: var(--stroke-2);
  margin: 0 12px;
  display: inline-block;
}
@media (max-width: 768px) {
  .trustbar__line .dot { margin: 0 8px; }
  .trustbar__line { font-size: 0.8125rem; }
}

/* ---------- PILLARS (TechCard grid) ----------------------------------------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 1024px) {
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .pillars { grid-template-columns: 1fr; }
}

.section-head {
  margin-bottom: 56px;
  max-width: 640px;
}
.section-head__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.25rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
  margin: 16px 0 0 0;
}
.section-head__sub {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin: 16px 0 0 0;
}
@media (max-width: 768px) {
  .section-head { margin-bottom: 40px; }
  .section-head__title { font-size: 1.75rem; }
}

.techcard {
  background: var(--color-surface);
  border: 1px solid var(--stroke-1);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: border-color var(--dur-base) var(--ease-out);
}
.techcard:hover { border-color: var(--color-deep-blue); }
/* On Surface-tinted sections, flip the card ground to white for contrast. */
.section-surface .techcard { background: var(--color-white); }

/* Centred section intro used above techcard grids on Surface sections. */
.section-intro {
  max-width: 720px;
  margin: 0 auto 32px auto;
  text-align: center;
}
.section-intro__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.75rem;
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--color-text-primary);
  margin: 0;
}
.techcard__icon {
  width: 24px;
  height: 24px;
  color: var(--color-deep-blue);
  margin-bottom: 20px;
}
.techcard__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.002em;
  color: var(--color-text-primary);
  margin: 0;
}
.techcard__body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-primary);
  margin: 12px 0 0 0;
}

/* ---------- BOTTOM CTA (dark) ---------------------------------------------- */
.bottom-cta {
  text-align: center;
}
.bottom-cta__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.25rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-white);
  margin: 0;
  text-wrap: balance;
}
.bottom-cta__sub {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  max-width: 480px;
  margin: 16px auto 0 auto;
}
.bottom-cta__ctas {
  display: flex;
  justify-content: center;
  margin-top: 32px;
  gap: 16px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .bottom-cta__title { font-size: 1.75rem; }
}

/* ---------- FLEX-ENGINE :: HERO (LIGHT) ------------------------------------ */
.hero-light {
  background: var(--color-white);
  padding: 96px 0;
  text-align: center;
}
@media (max-width: 768px) { .hero-light { padding: 64px 0; } }

.hero-light__container {
  max-width: 720px;
  margin: 0 auto;
}
.hero-light__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
  margin: 20px 0 0 0;
  text-wrap: balance;
}
@media (max-width: 768px) {
  .hero-light__title { font-size: 2rem; }
}
.hero-light__sub {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  max-width: 560px;
  margin: 20px auto 0 auto;
}

/* ---------- COMPARISON TABLE (DataLockTable) ------------------------------- */
.comparison-wrap {
  max-width: 960px;
  margin: 0 auto;
}
.comparison-heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.75rem;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--color-text-primary);
  text-align: center;
  margin: 0 0 40px 0;
  text-wrap: balance;
}
@media (max-width: 768px) {
  .comparison-heading { font-size: 1.5rem; margin-bottom: 32px; }
}

.dtable-shell {
  background: var(--color-white);
  border: 1px solid var(--stroke-1);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.dtable {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
}
.dtable thead th {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  text-align: left;
  padding: 18px 20px;
  border-bottom: 2px solid var(--stroke-1);
  background: transparent;
  vertical-align: middle;
}
.dtable tbody td {
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-text-primary);
  padding: 18px 20px;
  border-bottom: 1px solid var(--stroke-1);
  vertical-align: top;
}
.dtable tbody tr:last-child td { border-bottom: 0; }
.dtable tbody tr:nth-child(even) td { background: var(--color-surface); }

.dtable .col-dim {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-text-primary);
  width: 22%;
}
.dtable .col-trad {
  color: var(--color-text-secondary);
  width: 39%;
}
.dtable .col-bait {
  color: var(--color-text-primary);
  width: 39%;
}

@media (max-width: 768px) {
  .dtable thead { display: none; }
  .dtable, .dtable tbody, .dtable tr, .dtable td { display: block; width: 100%; }
  .dtable tbody tr {
    padding: 20px;
    border-bottom: 1px solid var(--stroke-1);
  }
  .dtable tbody tr:nth-child(even) { background: var(--color-surface); }
  .dtable tbody tr:nth-child(even) td { background: transparent; }
  .dtable tbody td {
    padding: 0;
    border-bottom: 0;
    margin-top: 12px;
  }
  .dtable tbody td:first-child { margin-top: 0; }
  .dtable tbody td::before {
    display: block;
    content: attr(data-label);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.6875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    margin-bottom: 6px;
  }
  .dtable tbody td.col-dim::before { display: none; }
  .dtable .col-dim, .dtable .col-trad, .dtable .col-bait { width: 100%; }
  .dtable .col-dim { margin-bottom: 4px; }
}

.comparison-footnote {
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  margin: 20px 0 0 0;
}

/* ---------- CREDIT CALCULATION (two-col + code block) ---------------------- */
.calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}
@media (max-width: 1024px) {
  .calc { grid-template-columns: 1fr; gap: 40px; }
}
.calc__heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.75rem;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--color-text-primary);
  margin: 0;
  text-wrap: balance;
}
@media (max-width: 768px) {
  .calc__heading { font-size: 1.5rem; }
}
.calc__body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-primary);
  margin: 16px 0 0 0;
}

.codeblock {
  background: var(--color-deep-slate);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 28px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.85;
  color: var(--color-white);
  font-variant-numeric: tabular-nums;
  overflow-x: auto;
}
.codeblock__row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  white-space: nowrap;
}
.codeblock__row .k {
  color: rgba(255,255,255,0.5);
  flex: 0 0 130px;
}
.codeblock__row .v {
  color: var(--color-white);
}
.codeblock__row .v--num {
  color: var(--color-baicorp-green);
  margin-left: auto;
  text-align: right;
}
.codeblock__divider {
  border: 0;
  border-top: 1px dashed rgba(255,255,255,0.18);
  margin: 12px 0;
}
@media (max-width: 480px) {
  .codeblock { font-size: 0.8125rem; padding: 20px; }
  .codeblock__row .k { flex-basis: 100px; }
}

/* ---------- FOOTER ---------------------------------------------------------- */
.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--stroke-1);
  padding: 64px 0 24px 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 48px;
  margin-bottom: 56px;
}
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
}

.footer__brand img { height: 24px; }
.footer__brand-line {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  max-width: 240px;
  margin: 16px 0 0 0;
  line-height: 1.6;
}
.footer__brand-sub {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  max-width: 240px;
  margin: 16px 0 0 0;
  line-height: 1.6;
}

.footer__col-head {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin: 0 0 16px 0;
  line-height: 1;
}
.footer__col-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__col-list a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-text-primary);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.footer__col-list a:hover {
  color: var(--color-deep-blue);
  text-decoration: none;
}

.footer__bottom {
  border-top: 1px solid var(--stroke-1);
  padding-top: 24px;
}
.footer__legal {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  margin: 0;
}

/* ============================================================================
   LOGIN MENU (nav dropdown)
   ============================================================================ */
.login-menu {
  position: relative;
}
.login-menu__toggle {
  gap: 6px;
}
.login-menu__chevron {
  width: 14px;
  height: 14px;
  transition: transform var(--dur-base) var(--ease-out);
}
.login-menu[data-open="true"] .login-menu__chevron {
  transform: rotate(180deg);
}

.login-menu__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 280px;
  background: var(--color-white);
  border: 1px solid var(--stroke-1);
  border-radius: var(--radius-lg);
  padding: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.07);
  z-index: 320;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.login-menu__panel[hidden] {
  display: none;
}

.login-menu__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease-out);
}
.login-menu__item:hover,
.login-menu__item:focus-visible {
  background: var(--color-surface);
  text-decoration: none;
  outline: none;
}
.login-menu__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-deep-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.login-menu__icon svg { width: 20px; height: 20px; }
.login-menu__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.login-menu__label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.3;
  color: var(--color-text-primary);
}
.login-menu__desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--color-text-secondary);
}

/* ============================================================================
   HERO STACKED PANELS (CBA / Invoice / Member)
   ============================================================================ */
.hpanels {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
}
.hpanel {
  position: relative;
  background: var(--color-white);
  border: 1px solid var(--stroke-1);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  font-family: var(--font-body);
}
.hpanel--back {
  z-index: 1;
  width: 88%;
  align-self: flex-start;
  transform: translate(-10px, 0);
  opacity: 0.92;
}
.hpanel--mid {
  z-index: 2;
  width: 94%;
  align-self: center;
  margin-top: -36px;
  transform: translate(6px, 0);
  opacity: 0.97;
}
.hpanel--front {
  z-index: 3;
  width: 100%;
  align-self: flex-end;
  margin-top: -32px;
  box-shadow: 0 1px 2px rgba(11,17,32,0.04);
}

.hpanel__head {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.625rem; /* 10px */
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  line-height: 1;
  margin-bottom: 14px;
}

/* Panel 1 · CBA checklist */
.hpanel__check {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hpanel__check li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--color-text-primary);
}
.hpanel__check-icon {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  color: var(--color-deep-blue);
}

/* Panel 2 · Consolidated invoice */
.hpanel__lines {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hpanel__lines li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.hpanel__line-label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--color-text-primary);
  line-height: 1.4;
}
.hpanel__line-amount {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--color-deep-blue);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.hpanel__rule {
  border: 0;
  border-top: 1px solid var(--stroke-1);
  margin: 12px 0 10px 0;
}
.hpanel__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.hpanel__total-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--color-text-primary);
}
.hpanel__total-amount {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--color-deep-blue);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* Panel 3 · Member dashboard */
.hpanel__member-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem; /* 16px */
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--color-text-primary);
  margin-bottom: 10px;
}
.hpanel__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.hpanel__badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.6875rem; /* 11px */
  line-height: 1.3;
  letter-spacing: 0.01em;
}
.hpanel__badge--solid {
  background: var(--color-deep-blue);
  color: var(--color-white);
}
.hpanel__badge--soft {
  background: var(--color-surface);
  color: var(--color-deep-blue);
}
.hpanel__summary {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.hpanel__summary > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.hpanel__summary dt {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--color-text-secondary);
}
.hpanel__summary dd {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--color-text-primary);
  text-align: right;
}

@media (max-width: 1024px) {
  .hpanels { max-width: 460px; }
}
@media (max-width: 480px) {
  .hpanels { max-width: 100%; }
  .hpanel { padding: 14px 16px; }
  .hpanel--back { transform: translate(-6px, 0); }
  .hpanel--mid { transform: translate(4px, 0); margin-top: -28px; }
  .hpanel--front { margin-top: -24px; }
}

/* ============================================================================
   OPERATIONAL DISCIPLINE SECTION
   ============================================================================ */
.op-disc {
  padding: 96px 0;
}
@media (max-width: 768px) {
  .op-disc { padding: 64px 0; }
}

.op-disc__head {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.op-disc__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.25rem; /* 36px */
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-white);
  margin: 16px 0 0 0;
  text-wrap: balance;
}
@media (max-width: 768px) {
  .op-disc__title { font-size: 1.75rem; }
}
.op-disc__sub {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  max-width: 560px;
  margin: 16px auto 0 auto;
}

.op-disc__grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 1024px) {
  .op-disc__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .op-disc__grid { grid-template-columns: 1fr; gap: 20px; }
}

.op-item {
  padding: 4px;
}
.op-item__icon {
  width: 24px;
  height: 24px;
  color: var(--color-deep-blue);
}
.op-item__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem; /* 16px */
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--color-white);
  margin: 12px 0 0 0;
}
.op-item__body {
  font-family: var(--font-body);
  font-size: 0.875rem; /* 14px */
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
  margin: 8px 0 0 0;
}

/* ============================================================================
   PHASE 3 — 2x2 TechCard grid (Infrastructure security grid)
   ============================================================================ */
.tech-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .tech-grid-2x2 { grid-template-columns: 1fr; gap: 20px; }
}

/* ============================================================================
   PHASE 3 — TWO-COLUMN CONTENT (Continuity / Contact form layouts)
   ============================================================================ */
.twocol {
  display: grid;
  gap: 64px;
  align-items: start;
  max-width: 960px;
  margin: 0 auto;
}
.twocol--5050 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.twocol--4060 { grid-template-columns: minmax(0, 40fr) minmax(0, 60fr); }

@media (max-width: 900px) {
  .twocol { grid-template-columns: 1fr; gap: 48px; }
}

.twocol__heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.75rem;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--color-text-primary);
  margin: 0;
  text-wrap: balance;
}
@media (max-width: 768px) {
  .twocol__heading { font-size: 1.5rem; }
}
.twocol__body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-primary);
  margin: 16px 0 0 0;
}

/* ============================================================================
   PHASE 3 — PROCESS TIMELINE CARD (Carrier Migration)
   ============================================================================ */
.process-card {
  background: var(--color-white);
  border: 1px solid var(--stroke-1);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.process-card__label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.625rem; /* 10px */
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  line-height: 1;
  margin: 0 0 24px 0;
}
.process-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}
.process-steps::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--color-deep-blue);
}
.process-step {
  position: relative;
  padding: 0 0 18px 28px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.8125rem; /* 13px */
  line-height: 1.5;
  color: var(--color-text-primary);
}
.process-step:last-child { padding-bottom: 0; }
.process-step::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-deep-blue);
  outline: 3px solid var(--color-white);
}
.process-step--final {
  color: var(--color-deep-blue);
  font-weight: 600;
}
.process-card__foot {
  margin: 8px 0 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--stroke-1);
  font-family: var(--font-body);
  font-size: 0.6875rem; /* 11px */
  color: var(--color-text-secondary);
  line-height: 1.4;
}

/* ============================================================================
   PHASE 3 — TechCard CTA link
   ============================================================================ */
.techcard__cta {
  margin-top: 16px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-deep-blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--dur-fast) var(--ease-out);
}
.techcard__cta:hover { text-decoration: underline; text-underline-offset: 3px; gap: 8px; }

/* ============================================================================
   PHASE 3 — VALUE PROP block (SMB page)
   ============================================================================ */
.valueprop {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.valueprop__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.75rem;
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--color-text-primary);
  margin: 0 0 16px 0;
  text-wrap: balance;
}
@media (max-width: 768px) {
  .valueprop__title { font-size: 1.5rem; }
}
.valueprop__body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin: 0;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================================
   PHASE 3 — CONTACT DETAILS LIST
   ============================================================================ */
.contact-details {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-detail__label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  line-height: 1;
  margin: 0;
}
.contact-detail__value {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-primary);
  margin: 6px 0 0 0;
}

/* ============================================================================
   PHASE 3 — CONTACT FORM
   ============================================================================ */
.form-card {
  background: var(--color-white);
  border: 1px solid var(--stroke-1);
  border-radius: var(--radius-lg);
  padding: 32px;
}
@media (max-width: 640px) {
  .form-card { padding: 24px; }
}

.form-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  line-height: 1;
}

.form-input,
.form-select,
.form-textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--color-text-primary);
  background: var(--color-white);
  border: 1px solid var(--stroke-1);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  width: 100%;
  transition: border-color var(--dur-base) var(--ease-out),
              outline-color var(--dur-base) var(--ease-out);
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: #94A3B8;
}
.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: var(--stroke-2);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: 2px solid var(--color-deep-blue);
  outline-offset: 0;
  border-color: var(--color-deep-blue);
}
.form-textarea {
  min-height: 120px;
  resize: vertical;
  font-family: var(--font-body);
}
.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='1.75' stroke-linecap='square'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
  padding-right: 40px;
}

.form-submit {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}

.form-footnote {
  font-family: var(--font-body);
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--color-text-secondary);
  margin: 16px 0 0 0;
}

/* ============================================================================
   PHASE 4 — BROKER HERO (centred, dark) + overline
   ============================================================================ */
.broker-hero {
  text-align: center;
}
.broker-hero__inner {
  max-width: 800px;
  margin: 0 auto;
}
.broker-hero__overline {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem; /* 12 */
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  line-height: 1;
  margin: 0;
}
.broker-hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.75rem; /* 44 */
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-white);
  margin: 20px 0 0 0;
  text-wrap: balance;
}
@media (max-width: 768px) {
  .broker-hero__title { font-size: 2.125rem; }
}
.broker-hero__sub {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  margin: 20px auto 0 auto;
}

/* ============================================================================
   PHASE 4 — BROKER VALUE PROP (3-col TechCard grid on Surface)
   ============================================================================ */
.broker-vp__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .broker-vp__grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ============================================================================
   PHASE 4 — WHAT WE HANDLE (45 / 55 two-col + checklist card)
   ============================================================================ */
.twocol--4555 {
  display: grid;
  gap: 64px;
  align-items: start;
  grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
  max-width: 1000px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .twocol--4555 { grid-template-columns: 1fr; gap: 40px; }
}

.checklist-card {
  background: var(--color-white);
  border: 1px solid var(--stroke-1);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.checklist-card__label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  line-height: 1;
  margin: 0 0 16px 0;
}
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.875rem; /* 14 */
  line-height: 1.5;
  color: var(--color-text-primary);
}
.checklist__icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--color-deep-blue);
  margin-top: 3px;
}
.checklist--muted li { color: var(--color-text-secondary); }
.checklist--muted .checklist__icon { color: var(--color-text-secondary); }

.checklist-card__divider {
  border: 0;
  border-top: 1px solid var(--stroke-1);
  margin: 20px 0 16px 0;
}

/* ============================================================================
   PHASE 4 — FIREWALL TRUST POINTS (3-up on dark)
   ============================================================================ */
.firewall {
  text-align: center;
}
.firewall__inner {
  max-width: 720px;
  margin: 0 auto;
}
.firewall__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.25rem; /* 36 */
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-white);
  margin: 0;
  text-wrap: balance;
}
@media (max-width: 768px) {
  .firewall__title { font-size: 1.75rem; }
}
.firewall__sub {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  margin: 16px auto 0 auto;
}
.trust-points {
  margin: 40px auto 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  max-width: 720px;
}
@media (max-width: 720px) {
  .trust-points { grid-template-columns: 1fr; gap: 28px; }
}
.trust-point {
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.18);
  text-align: center;
}
.trust-point__label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem; /* 12 */
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-white);
  line-height: 1.2;
  margin: 0;
}
.trust-point__caption {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.6);
  margin: 6px 0 0 0;
}

/* ============================================================================
   PHASE 4 — BROKER BOTTOM CTA (white, 64px, centred, primary button)
   ============================================================================ */
.broker-cta {
  padding: 64px 0;
  background: var(--color-white);
  text-align: center;
}
.broker-cta__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.25rem; /* 36 */
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
  margin: 0;
  text-wrap: balance;
}
@media (max-width: 768px) {
  .broker-cta__title { font-size: 1.75rem; }
}
.broker-cta__sub {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  max-width: 480px;
  margin: 16px auto 0 auto;
}
.broker-cta__ctas {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

/* ============================================================================
   BOTTOM CTA — LIGHT (Surface) variant
   ============================================================================ */
.bottom-cta-light {
  padding: 80px 0;
}
@media (max-width: 768px) {
  .bottom-cta-light { padding: 56px 0; }
}
.bottom-cta__title--light {
  color: var(--color-text-primary);
}
.bottom-cta__sub--light {
  color: var(--color-text-secondary);
}
