/* ==========================================================================
   Associa8 — public site design system
   Heritage-meets-modern: deep ink, brass accent, Fraunces display + Manrope UI.
   Used by the marketing pages, signup and sign-in screens.
   ========================================================================== */

/* 1. TOKENS ------------------------------------------------------------------ */
:root {
  --ink-950: #060c1d;
  --ink-900: #0b1530;
  --ink-800: #132044;
  --ink-700: #1d2d5a;
  --ink-600: #33467a;

  --brass-600: #a37a2c;
  --brass-500: #c29a4b;
  --brass-400: #d9b56b;
  --brass-200: #efdcb3;
  --brass-100: #f7edd8;

  --paper: #faf8f3;
  --paper-2: #f3efe5;
  --white: #ffffff;
  --line: #e7e2d6;
  --line-cool: #e3e8f0;

  --text: #121a2e;
  --text-2: #4a5468;
  --text-3: #7b8496;
  --on-dark: #f4f1ea;
  --on-dark-2: rgba(244, 241, 234, 0.72);
  --on-dark-3: rgba(244, 241, 234, 0.5);

  --ok: #1b8a54;
  --bad: #c0392b;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-ui: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --shadow-1: 0 1px 2px rgba(11, 21, 48, 0.05);
  --shadow-2: 0 10px 30px -12px rgba(11, 21, 48, 0.18);
  --shadow-3: 0 30px 70px -24px rgba(6, 12, 29, 0.45);
  --ring: 0 0 0 3px rgba(194, 154, 75, 0.45);

  --container: 1200px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* 2. BASE -------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body.site {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
:where(.site) img {
  max-width: 100%;
  display: block;
}
:where(.site) a {
  color: inherit;
}
:where(.site) :is(h1, h2, h3, h4, p, figure, blockquote) {
  margin: 0;
}
:where(.site) :is(ul, ol) {
  margin: 0;
  padding: 0;
  list-style: none;
}
.site :focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 8px;
}
.site ::selection {
  background: var(--brass-200);
  color: var(--ink-900);
}
[hidden] {
  display: none !important;
}
.page-hero .lede {
  color: var(--on-dark-2);
}
.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: 1rem;
  top: -3rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--brass-400);
  color: var(--ink-900);
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: min(var(--container), calc(100% - 3rem));
  margin-inline: auto;
}

/* Type */
.display {
  font-family: var(--font-display);
  font-weight: 500;
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.h-xl {
  font-size: clamp(2.5rem, 4.6vw, 4rem);
}
.h-lg {
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  line-height: 1.1;
}
.h-md {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.2;
}
.display em {
  font-style: italic;
  color: var(--brass-600);
}
.on-dark .display em,
.display.on-dark em {
  color: var(--brass-400);
}
.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.65;
  color: var(--text-2);
  max-width: 60ch;
}
.on-dark .lede {
  color: var(--on-dark-2);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-600);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}
.on-dark .eyebrow {
  color: var(--brass-400);
}
.section-head {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
  max-width: 760px;
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}
.section-head.split {
  max-width: none;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: end;
  gap: 2rem 4rem;
}

/* 3. BUTTONS ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 700 0.95rem/1 var(--font-ui);
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), color 0.2s var(--ease);
}
.btn iconify-icon {
  font-size: 1.15em;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}
.btn-brass {
  background: linear-gradient(180deg, var(--brass-400), var(--brass-500));
  color: var(--ink-950);
  box-shadow: 0 8px 24px -10px rgba(194, 154, 75, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-brass:hover {
  box-shadow: 0 12px 28px -10px rgba(194, 154, 75, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-ink {
  background: var(--ink-900);
  color: var(--on-dark);
  box-shadow: 0 8px 20px -10px rgba(11, 21, 48, 0.6);
}
.btn-ink:hover {
  background: var(--ink-800);
}
.btn-ghost-dark {
  border-color: rgba(244, 241, 234, 0.25);
  color: var(--on-dark);
  background: rgba(255, 255, 255, 0.04);
}
.btn-ghost-dark:hover {
  border-color: rgba(244, 241, 234, 0.55);
  background: rgba(255, 255, 255, 0.08);
}
.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: var(--white);
}
.btn-ghost:hover {
  border-color: var(--text-3);
}
.btn-sm {
  min-height: 40px;
  padding: 0 1.05rem;
  font-size: 0.875rem;
}
.btn-block {
  width: 100%;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--ink-900);
  text-decoration: none;
  border-bottom: 1px solid var(--brass-400);
  padding-bottom: 2px;
}
.link-arrow:hover {
  color: var(--brass-600);
}

/* 4. HEADER / NAV ------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}
.site-header.is-solid,
.site-header.is-light {
  background: rgba(11, 21, 48, 0.86);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}
.nav {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-logo img {
  height: 42px;
  width: auto;
}
.nav-links {
  display: flex;
  gap: 0.25rem;
}
.nav-actions {
  margin-left: auto;
}
.nav-links a {
  display: inline-flex;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--on-dark-2);
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--on-dark);
  background: rgba(255, 255, 255, 0.07);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Sign-in menu */
.signin-menu {
  position: relative;
}
.signin-menu > button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 40px;
  padding: 0 0.95rem;
  border: 1px solid rgba(244, 241, 234, 0.22);
  border-radius: 999px;
  background: transparent;
  color: var(--on-dark);
  font: 700 0.875rem/1 var(--font-ui);
  cursor: pointer;
}
.signin-menu > button:hover {
  border-color: rgba(244, 241, 234, 0.5);
}
.signin-menu > button iconify-icon {
  transition: transform 0.2s;
}
.signin-menu.open > button iconify-icon {
  transform: rotate(180deg);
}
.signin-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 290px;
  padding: 0.5rem;
  border-radius: var(--r-md);
  background: var(--white);
  box-shadow: var(--shadow-3);
  border: 1px solid var(--line);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}
.signin-menu.open .signin-pop {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.signin-pop a {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 0.15rem 0.75rem;
  align-items: center;
  padding: 0.7rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
}
.signin-pop a:hover {
  background: var(--paper);
}
.signin-pop .ico {
  grid-row: span 2;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--brass-100);
  color: var(--brass-600);
  font-size: 1.25rem;
}
.signin-pop strong {
  font-size: 0.92rem;
}
.signin-pop span {
  font-size: 0.8rem;
  color: var(--text-3);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(244, 241, 234, 0.2);
  background: transparent;
  color: var(--on-dark);
  font-size: 1.4rem;
  cursor: pointer;
  place-items: center;
}

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 150;
  pointer-events: none;
}
.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 12, 29, 0.55);
  opacity: 0;
  transition: opacity 0.25s;
}
.drawer-panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(360px, 88vw);
  padding: 1.25rem 1.5rem 2rem;
  background: var(--ink-900);
  color: var(--on-dark);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transform: translateX(100%);
  transition: transform 0.3s var(--ease);
  overflow-y: auto;
}
.drawer.open {
  pointer-events: auto;
}
.drawer.open .drawer-backdrop {
  opacity: 1;
}
.drawer.open .drawer-panel {
  transform: none;
}
.drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer-top img {
  height: 34px;
}
.drawer-close {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(244, 241, 234, 0.2);
  background: transparent;
  color: var(--on-dark);
  font-size: 1.3rem;
  cursor: pointer;
}
.drawer-links a {
  display: block;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-display);
  font-size: 1.5rem;
  text-decoration: none;
  color: var(--on-dark);
}
.drawer-actions {
  display: grid;
  gap: 0.6rem;
  margin-top: auto;
}

/* 5. HERO -------------------------------------------------------------------- */
.on-dark {
  color: var(--on-dark);
}
.hero {
  position: relative;
  overflow: hidden;
  padding: calc(76px + clamp(3rem, 7vw, 6rem)) 0 clamp(4rem, 8vw, 7rem);
  background:
    radial-gradient(60% 70% at 85% 10%, rgba(194, 154, 75, 0.22), transparent 60%),
    radial-gradient(50% 60% at 0% 100%, rgba(51, 70, 122, 0.55), transparent 65%),
    var(--ink-900);
  isolation: isolate;
}
.hero::before {
  /* Fine engraved grid, fading out to the edges. */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 5rem);
}
.hero-copy {
  display: grid;
  gap: 1.5rem;
  justify-items: start;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.9rem 0.4rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(217, 181, 107, 0.35);
  background: rgba(217, 181, 107, 0.08);
  color: var(--brass-200);
  font-size: 0.82rem;
  font-weight: 600;
}
.hero-badge b {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--brass-400);
  color: var(--ink-950);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero h1 {
  color: var(--on-dark);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.hero-assurances {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.85rem;
  color: var(--on-dark-3);
}
.hero-assurances span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.hero-assurances iconify-icon {
  color: var(--brass-400);
}

/* Product mock */
.mock {
  position: relative;
  perspective: 1600px;
}
.mock-window {
  border-radius: var(--r-lg);
  background: #f7f6f2;
  color: var(--text);
  box-shadow: var(--shadow-3), 0 0 0 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transform: rotateY(-7deg) rotateX(3deg);
  transform-origin: left center;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 0.9rem;
  background: #ece9e1;
  border-bottom: 1px solid #e0dbcf;
}
.mock-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d6d0c2;
}
.mock-bar span {
  margin-left: 0.6rem;
  font-size: 0.72rem;
  color: var(--text-3);
  font-weight: 600;
}
.mock-body {
  display: grid;
  grid-template-columns: 120px 1fr;
  min-height: 360px;
}
.mock-side {
  background: var(--ink-900);
  padding: 0.9rem 0.65rem;
  display: grid;
  align-content: start;
  gap: 0.3rem;
}
.mock-side b {
  display: block;
  margin: 0 0.3rem 0.6rem;
  font-family: var(--font-display);
  color: var(--brass-200);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.2;
}
.mock-side span {
  display: block;
  padding: 0.4rem 0.5rem;
  border-radius: 7px;
  font-size: 0.68rem;
  color: var(--on-dark-3);
  font-weight: 600;
}
.mock-side span.on {
  background: rgba(217, 181, 107, 0.15);
  color: var(--brass-200);
}
.mock-main {
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
  align-content: start;
}
.mock-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.mock-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.mock-stat {
  background: var(--white);
  border: 1px solid #ebe6da;
  border-radius: 10px;
  padding: 0.6rem 0.65rem;
}
.mock-stat small {
  display: block;
  font-size: 0.6rem;
  color: var(--text-3);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.mock-stat strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}
.mock-stat em {
  font-style: normal;
  font-size: 0.62rem;
  color: var(--ok);
  font-weight: 700;
}
.mock-table {
  background: var(--white);
  border: 1px solid #ebe6da;
  border-radius: 10px;
  overflow: hidden;
}
.mock-row {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr 1fr;
  gap: 0.6rem;
  align-items: center;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid #f0ece2;
  font-size: 0.7rem;
}
.mock-row:last-child {
  border-bottom: 0;
}
.mock-row.head {
  background: #faf8f3;
  color: var(--text-3);
  font-weight: 700;
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.mock-row b {
  font-weight: 700;
}
.mock-row .bar {
  height: 6px;
  border-radius: 99px;
  background: #efebe1;
  overflow: hidden;
}
.mock-row .bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--brass-500), var(--brass-400));
}
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 0.95rem;
  border-radius: 14px;
  background: var(--white);
  color: var(--text);
  box-shadow: var(--shadow-3);
  font-size: 0.78rem;
  line-height: 1.35;
  animation: float 6s ease-in-out infinite;
}
.float-card .ico {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}
.float-card small {
  display: block;
  color: var(--text-3);
}
.float-a {
  left: -2.5rem;
  bottom: -2rem;
}
.float-a .ico {
  background: #e7f5ee;
  color: var(--ok);
}
.float-b {
  right: -1.5rem;
  top: -1.5rem;
  animation-delay: -3s;
}
.float-b .ico {
  background: var(--brass-100);
  color: var(--brass-600);
}
@keyframes float {
  50% {
    transform: translateY(-8px);
  }
}

/* 6. AUDIENCE STRIP ------------------------------------------------------------ */
.strip {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.strip-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem 2.5rem;
  padding: 1.6rem 0;
  flex-wrap: wrap;
  justify-content: center;
}
.strip-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.strip-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.75rem;
  justify-content: center;
}
.strip-items span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--ink-700);
}
.strip-items iconify-icon {
  color: var(--brass-500);
  font-size: 1.2rem;
}

/* 7. SECTIONS ------------------------------------------------------------------ */
.section {
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
  position: relative;
}
.section-white {
  background: var(--white);
}
.section-paper2 {
  background: var(--paper-2);
}
.section-ink {
  background:
    radial-gradient(50% 60% at 100% 0%, rgba(194, 154, 75, 0.16), transparent 60%),
    var(--ink-900);
  color: var(--on-dark);
}

/* Audience cards */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.audience-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem 1.5rem;
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.audience-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
  border-color: var(--brass-200);
}
.audience-card.featured {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: var(--on-dark);
}
.audience-card .ico {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  background: var(--brass-100);
  color: var(--brass-600);
}
.audience-card.featured .ico {
  background: rgba(217, 181, 107, 0.16);
  color: var(--brass-400);
}
.audience-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.4rem;
  line-height: 1.2;
}
.audience-card p {
  color: var(--text-2);
  font-size: 0.95rem;
}
.audience-card.featured p {
  color: var(--on-dark-2);
}
.ticks {
  display: grid;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--line);
}
.audience-card.featured .ticks {
  border-color: rgba(255, 255, 255, 0.14);
}
.ticks li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.88rem;
  font-weight: 600;
}
.ticks li::before {
  content: "";
  flex: 0 0 16px;
  height: 16px;
  margin-top: 0.22rem;
  border-radius: 50%;
  background: var(--brass-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a37a2c' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center/10px no-repeat;
}
.audience-card.featured .ticks li::before {
  background-color: rgba(217, 181, 107, 0.2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d9b56b' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E");
}

/* Hierarchy */
.hierarchy {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.tree {
  position: relative;
  display: grid;
  gap: 1.1rem;
  padding: 1.75rem;
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
}
.tree-level {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  position: relative;
}
.tree-level + .tree-level::before {
  content: "";
  position: absolute;
  top: -1.1rem;
  left: 50%;
  height: 1.1rem;
  border-left: 1px dashed rgba(217, 181, 107, 0.5);
}
.node {
  display: grid;
  gap: 0.15rem;
  min-width: 150px;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}
.node small {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-400);
}
.node strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.08rem;
}
.node span {
  font-size: 0.75rem;
  color: var(--on-dark-3);
}
.node.root {
  min-width: 240px;
  background: linear-gradient(180deg, rgba(217, 181, 107, 0.2), rgba(217, 181, 107, 0.06));
  border-color: rgba(217, 181, 107, 0.45);
}
.tree-level.leaves {
  gap: 0.5rem;
}
.node.leaf {
  min-width: 0;
  flex: 1 1 0;
  padding: 0.6rem 0.4rem;
}
.node.leaf strong {
  font-size: 0.92rem;
}
.role-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 2rem;
}
.role {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}
.role .ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(217, 181, 107, 0.14);
  color: var(--brass-400);
  font-size: 1.3rem;
}
.role strong {
  display: block;
  font-size: 0.98rem;
}
.role p {
  font-size: 0.88rem;
  color: var(--on-dark-2);
}

/* Modules */
.modules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--white);
}
.module {
  padding: 2rem 1.75rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 0.7rem;
  align-content: start;
  transition: background-color 0.25s;
}
.module:hover {
  background: var(--paper);
}
.module:nth-child(3n) {
  border-right: 0;
}
.module:nth-last-child(-n + 3) {
  border-bottom: 0;
}
.module .ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  background: var(--ink-900);
  color: var(--brass-400);
}
.module h3 {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.module p {
  font-size: 0.93rem;
  color: var(--text-2);
}

/* Admission pipeline */
.pipeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
  counter-reset: step;
  position: relative;
}
.pipeline::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 8%;
  right: 8%;
  border-top: 1px dashed var(--brass-400);
}
.stage {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.6rem;
}
.stage .dot {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--white);
  border: 1px solid var(--brass-200);
  color: var(--brass-600);
  font-size: 1.35rem;
  box-shadow: 0 0 0 6px var(--paper-2);
  position: relative;
  z-index: 1;
}
.stage:last-child .dot {
  background: var(--ink-900);
  color: var(--brass-400);
  border-color: var(--ink-900);
}
.stage small {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--brass-600);
}
.stage strong {
  font-size: 0.98rem;
}
.stage p {
  font-size: 0.84rem;
  color: var(--text-2);
}

/* Split feature (member portal) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.split-copy {
  display: grid;
  gap: 1.25rem;
}
.feature-list {
  display: grid;
  gap: 1rem;
  margin-top: 0.5rem;
}
.feature-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 0.9rem;
}
.feature-list .ico {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--brass-100);
  color: var(--brass-600);
  font-size: 1.2rem;
}
.feature-list strong {
  display: block;
}
.feature-list p {
  font-size: 0.92rem;
  color: var(--text-2);
}

.phone {
  justify-self: center;
  width: min(330px, 100%);
  padding: 12px;
  border-radius: 44px;
  background: var(--ink-950);
  box-shadow: var(--shadow-3);
  position: relative;
}
.phone-screen {
  border-radius: 34px;
  overflow: hidden;
  background: var(--paper);
  min-height: 600px;
}
.phone-head {
  padding: 2.25rem 1.25rem 1.5rem;
  background:
    radial-gradient(80% 90% at 100% 0%, rgba(194, 154, 75, 0.3), transparent 60%),
    var(--ink-900);
  color: var(--on-dark);
}
.phone-head small {
  color: var(--on-dark-3);
  font-size: 0.72rem;
}
.phone-head strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.35rem;
  margin-top: 0.2rem;
}
.phone-head .chip {
  display: inline-flex;
  margin-top: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(217, 181, 107, 0.18);
  color: var(--brass-200);
  font-size: 0.68rem;
  font-weight: 700;
}
.phone-body {
  padding: 1rem;
  display: grid;
  gap: 0.7rem;
  margin-top: -0.5rem;
}
.p-card {
  background: var(--white);
  border-radius: 16px;
  padding: 0.9rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
}
.p-card small {
  display: block;
  color: var(--text-3);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.p-card strong {
  display: block;
  font-size: 1.3rem;
  margin: 0.15rem 0 0.5rem;
  font-variant-numeric: tabular-nums;
}
.p-card .bar {
  height: 7px;
  border-radius: 99px;
  background: #efebe1;
  overflow: hidden;
}
.p-card .bar i {
  display: block;
  height: 100%;
  width: 64%;
  background: linear-gradient(90deg, var(--brass-500), var(--brass-400));
}
.p-btn {
  display: block;
  margin-top: 0.7rem;
  padding: 0.6rem;
  border-radius: 10px;
  background: var(--ink-900);
  color: var(--on-dark);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
}
.p-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid #f0ece2;
  font-size: 0.78rem;
}
.p-row:last-child {
  border-bottom: 0;
}
.p-row .d {
  width: 38px;
  flex: 0 0 38px;
  text-align: center;
  border-radius: 9px;
  background: var(--paper-2);
  padding: 0.2rem 0;
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--brass-600);
  line-height: 1.2;
}
.p-row .d b {
  display: block;
  font-size: 0.95rem;
  color: var(--text);
}
.p-row em {
  margin-left: auto;
  font-style: normal;
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--ok);
  background: #e7f5ee;
  padding: 0.2rem 0.5rem;
  border-radius: 99px;
}

/* Trust */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.trust-card {
  padding: 1.75rem;
  border-radius: var(--r-lg);
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 0.75rem;
  align-content: start;
}
.trust-card .ico {
  font-size: 1.7rem;
  color: var(--brass-400);
}
.trust-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.35rem;
}
.trust-card p {
  color: var(--on-dark-2);
  font-size: 0.93rem;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.step {
  padding: 2rem 1.75rem;
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--line);
  display: grid;
  gap: 0.75rem;
  align-content: start;
  position: relative;
  overflow: hidden;
}
.step .num {
  font-family: var(--font-display);
  font-size: 3.4rem;
  line-height: 1;
  color: var(--brass-400);
  font-weight: 400;
}
.step h3 {
  font-size: 1.15rem;
}
.step p {
  color: var(--text-2);
  font-size: 0.95rem;
}

/* Pricing */
.billing-note {
  font-size: 0.88rem;
  color: var(--text-3);
}
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}
.plan {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 2rem 1.75rem;
  border-radius: var(--r-xl);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  position: relative;
}
.plan.featured {
  background: var(--ink-900);
  color: var(--on-dark);
  border-color: var(--ink-900);
  box-shadow: var(--shadow-3);
}
.plan-tag {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--brass-400);
  color: var(--ink-950);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.plan h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.6rem;
}
.plan-desc {
  font-size: 0.93rem;
  color: var(--text-2);
  min-height: 3em;
}
.plan.featured .plan-desc {
  color: var(--on-dark-2);
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}
.plan-price strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 3rem;
  line-height: 1;
  letter-spacing: -0.03em;
}
.plan-price span {
  color: var(--text-3);
  font-weight: 600;
}
.plan.featured .plan-price span {
  color: var(--on-dark-3);
}
.plan .ticks {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
  margin-top: 0;
}
.plan.featured .ticks {
  border-color: rgba(255, 255, 255, 0.12);
}
.plan.featured .ticks li::before {
  background-color: rgba(217, 181, 107, 0.2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d9b56b' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E");
}
.plan .btn {
  margin-top: auto;
}

/* Compare table */
.compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  font-size: 0.95rem;
}
.compare th,
.compare td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.compare th:first-child,
.compare td:first-child {
  text-align: left;
}
.compare thead th {
  background: var(--paper);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
}
.compare tbody tr:last-child td {
  border-bottom: 0;
}
.compare .group td {
  background: var(--paper-2);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-600);
  text-align: left;
}
.compare .yes {
  color: var(--ok);
  font-size: 1.2rem;
}
.compare .no {
  color: var(--text-3);
}
.table-scroll {
  overflow-x: auto;
  border-radius: var(--r-lg);
}

/* Testimonials */
.quotes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.quote {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--line);
}
.quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.45;
  color: var(--ink-900);
}
.quote blockquote::before {
  content: "\201C";
  display: block;
  font-size: 3rem;
  line-height: 0.6;
  color: var(--brass-400);
  margin-bottom: 0.4rem;
}
.quote figcaption {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: auto;
}
.quote figcaption img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.quote figcaption strong {
  display: block;
  font-size: 0.95rem;
}
.quote figcaption span {
  font-size: 0.85rem;
  color: var(--text-3);
}

/* FAQ */
.faq {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.faq-list {
  display: grid;
  gap: 0.75rem;
}
.faq-list details {
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-list details[open] {
  border-color: var(--brass-200);
  box-shadow: var(--shadow-2);
}
.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  font-weight: 700;
  font-size: 1rem;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: "+";
  flex: 0 0 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--paper-2);
  color: var(--brass-600);
  font-size: 1.2rem;
  font-weight: 500;
  transition: transform 0.25s var(--ease);
}
.faq-list details[open] summary::after {
  transform: rotate(45deg);
}
.faq-list details p {
  padding: 0 1.35rem 1.25rem;
  color: var(--text-2);
}

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.3fr auto;
  align-items: center;
  gap: 2rem;
  padding: clamp(2.5rem, 6vw, 4rem);
  border-radius: var(--r-xl);
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(194, 154, 75, 0.35), transparent 60%),
    var(--ink-900);
  color: var(--on-dark);
  box-shadow: var(--shadow-3);
}
.cta-band::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px solid rgba(217, 181, 107, 0.25);
  box-shadow: 0 0 0 30px rgba(217, 181, 107, 0.05), 0 0 0 60px rgba(217, 181, 107, 0.03);
}
.cta-band > * {
  position: relative;
  z-index: 1;
}
.cta-band .lede {
  margin-top: 0.75rem;
  color: var(--on-dark-2);
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* 8. PAGE HERO (inner pages) ------------------------------------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: calc(76px + clamp(3rem, 6vw, 5rem)) 0 clamp(3rem, 6vw, 4.5rem);
  background:
    radial-gradient(55% 80% at 90% 0%, rgba(194, 154, 75, 0.2), transparent 60%),
    var(--ink-900);
  color: var(--on-dark);
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, #000, transparent 90%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 90%);
}
.page-hero .wrap {
  display: grid;
  gap: 1.1rem;
  max-width: var(--container);
}
.page-hero .lede {
  max-width: 62ch;
}
.crumbs {
  display: flex;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--on-dark-3);
}
.crumbs a {
  color: var(--on-dark-2);
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--brass-200);
}

/* About */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat-row div {
  padding: 1.75rem 1.25rem;
  border-right: 1px solid var(--line);
}
.stat-row div:last-child {
  border-right: 0;
}
.stat-row strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2.4rem;
  line-height: 1.1;
  color: var(--ink-900);
}
.stat-row span {
  font-size: 0.9rem;
  color: var(--text-2);
}
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.value {
  padding: 1.75rem;
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--line);
  display: grid;
  gap: 0.6rem;
  align-content: start;
}
.value .ico {
  font-size: 1.6rem;
  color: var(--brass-600);
}
.value h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.3rem;
}
.value p {
  color: var(--text-2);
  font-size: 0.95rem;
}
.prose {
  display: grid;
  gap: 1.1rem;
  font-size: 1.05rem;
  color: var(--text-2);
}
.prose strong {
  color: var(--text);
}

/* 9. FORMS (contact, signup, sign-in) ------------------------------------------------ */
.field {
  display: grid;
  gap: 0.45rem;
}
.field label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}
.field label .req {
  color: var(--brass-600);
}
.field-hint {
  font-size: 0.8rem;
  color: var(--text-3);
}
.input,
.site .field input,
.site .field select,
.site .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 1px solid #d9d3c4;
  background: var(--white);
  color: var(--text);
  font: 500 0.98rem/1.4 var(--font-ui);
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.site .field textarea {
  min-height: 140px;
  resize: vertical;
}
.site .field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237b8496' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  cursor: pointer;
}
.site .field input::placeholder,
.site .field textarea::placeholder {
  color: #a4a9b6;
}
.site .field input:hover,
.site .field select:hover,
.site .field textarea:hover {
  border-color: #b9b19f;
}
.site .field input:focus,
.site .field select:focus,
.site .field textarea:focus {
  outline: none;
  border-color: var(--brass-500);
  box-shadow: var(--ring);
}
.site .field .input-error,
.site .field input.input-error,
.site .field select.input-error {
  border-color: var(--bad);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.15);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.25rem;
}
.form-grid .full {
  grid-column: 1 / -1;
}
.password-wrap {
  position: relative;
}
.password-wrap input {
  padding-right: 3.25rem !important;
}
.password-wrap button {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-3);
  font-size: 1.2rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.password-wrap button:hover {
  background: var(--paper-2);
  color: var(--text);
}
.notice {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 600;
}
.notice iconify-icon {
  font-size: 1.2rem;
  flex: 0 0 auto;
  margin-top: 0.05rem;
}
.notice-error {
  background: #fbeceb;
  color: #9b2c20;
  border: 1px solid #f2cdc8;
}
.notice-ok {
  background: #e8f5ee;
  color: #166c43;
  border: 1px solid #c6e6d4;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-aside {
  display: grid;
  gap: 1rem;
}
.contact-item {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem;
  border-radius: var(--r-md);
  background: var(--white);
  border: 1px solid var(--line);
}
.contact-item .ico {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--brass-100);
  color: var(--brass-600);
  font-size: 1.3rem;
}
.contact-item strong {
  display: block;
  font-size: 0.95rem;
}
.contact-item span {
  font-size: 0.88rem;
  color: var(--text-2);
}
.card-form {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--r-xl);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  display: grid;
  gap: 1.25rem;
}

/* Signup */
.signup-shell {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.signup-steps {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 0.5rem;
  padding: 1.5rem;
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--line);
}
.signup-steps h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}
.stepper-step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0.8rem;
  align-items: center;
  padding: 0.6rem;
  border-radius: 12px;
  color: var(--text-3);
  font-weight: 600;
  font-size: 0.92rem;
  transition: background-color 0.2s, color 0.2s;
}
.stepper-step .n {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--paper);
  font-weight: 800;
  font-size: 0.85rem;
}
.stepper-step small {
  display: block;
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--text-3);
}
.stepper-step.active {
  background: var(--paper);
  color: var(--text);
}
.stepper-step.active .n {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: var(--brass-400);
}
.stepper-step.done .n {
  background: var(--brass-100);
  border-color: var(--brass-200);
  color: var(--brass-600);
}
.signup-steps .aside-note {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
  font-size: 0.85rem;
  color: var(--text-2);
}
.signup-card {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--r-xl);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
}
.form-step {
  display: none;
  gap: 1.75rem;
}
.form-step.active {
  display: grid;
  animation: stepIn 0.35s var(--ease);
}
@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
.step-head {
  display: grid;
  gap: 0.35rem;
}
.step-head small {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-600);
}
.step-head h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.75rem;
}
.step-head p {
  color: var(--text-2);
}
.step-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.step-actions.right-only {
  justify-content: flex-end;
}
.type-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}
.type-option {
  position: relative;
}
.type-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.type-option label {
  display: grid;
  gap: 0.35rem;
  justify-items: start;
  padding: 0.85rem;
  min-height: 100%;
  border-radius: 12px;
  border: 1px solid #d9d3c4;
  background: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.type-option label iconify-icon {
  font-size: 1.35rem;
  color: var(--brass-600);
}
.type-option label:hover {
  border-color: #b9b19f;
}
.type-option input:checked + label {
  border-color: var(--brass-500);
  background: var(--brass-100);
  box-shadow: inset 0 0 0 1px var(--brass-500);
}
.type-option input:focus-visible + label {
  box-shadow: var(--ring);
}
.type-grid.input-error .type-option label {
  border-color: var(--bad);
}

/* Sign-in (split screen) */
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--paper);
}
.auth-art {
  position: relative;
  overflow: hidden;
  padding: 2.5rem clamp(2rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  color: var(--on-dark);
  background:
    linear-gradient(180deg, rgba(11, 21, 48, 0.55), rgba(6, 12, 29, 0.92)),
    var(--auth-image, none) center/cover,
    var(--ink-900);
  isolation: isolate;
}
.auth-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(70% 60% at 100% 0%, rgba(194, 154, 75, 0.35), transparent 60%);
}
.auth-art img.logo {
  height: 40px;
  width: auto;
}
.auth-art blockquote {
  margin: 0;
  max-width: 30ch;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  line-height: 1.2;
}
.auth-art blockquote em {
  color: var(--brass-400);
}
.auth-art p {
  margin-top: 1rem;
  max-width: 44ch;
  color: var(--on-dark-2);
}
.auth-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.85rem;
  color: var(--on-dark-2);
}
.auth-points span {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
}
.auth-points iconify-icon {
  color: var(--brass-400);
}
.auth-panel {
  display: grid;
  place-items: center;
  padding: 2.5rem 1.5rem;
}
.auth-box {
  width: min(420px, 100%);
  display: grid;
  gap: 1.5rem;
}
.auth-box .back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
  justify-self: start;
}
.auth-box .back:hover {
  color: var(--text);
}
.auth-box h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2.3rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.auth-box .sub {
  margin-top: 0.5rem;
  color: var(--text-2);
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border-radius: 12px;
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.auth-tabs a {
  padding: 0.6rem;
  border-radius: 9px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-2);
  text-decoration: none;
}
.auth-tabs a[aria-current="page"] {
  background: var(--white);
  color: var(--text);
  box-shadow: var(--shadow-1);
}
.auth-form {
  display: grid;
  gap: 1.1rem;
}
.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.88rem;
}
.check {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
}
.check input {
  width: 18px;
  height: 18px;
  accent-color: var(--ink-900);
}
.auth-foot {
  font-size: 0.88rem;
  color: var(--text-2);
  text-align: center;
}
.auth-foot a {
  color: var(--ink-900);
  font-weight: 700;
}

/* 10. FOOTER ------------------------------------------------------------------------ */
.site-footer {
  background: var(--ink-950);
  color: var(--on-dark-2);
  padding: clamp(3.5rem, 7vw, 5rem) 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2.5rem;
}
.footer-brand {
  display: grid;
  gap: 1rem;
  align-content: start;
}
.footer-brand img {
  height: 48px;
  width: auto;
}
.footer-brand p {
  max-width: 36ch;
  font-size: 0.93rem;
}
.site-footer h4 {
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-400);
}
.site-footer ul {
  display: grid;
  gap: 0.6rem;
}
.site-footer a {
  color: var(--on-dark-2);
  text-decoration: none;
  font-size: 0.93rem;
}
.site-footer a:hover {
  color: var(--on-dark);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: var(--on-dark-3);
}

/* 11. MOTION ----------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.no-js .reveal {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .float-card {
    animation: none;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* 12. RESPONSIVE ------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .audience-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pipeline {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 2rem;
  }
  .pipeline::before {
    display: none;
  }
  .mock-window {
    transform: none;
  }
}
@media (max-width: 960px) {
  .nav-links,
  .nav-actions {
    display: none;
  }
  .nav-toggle {
    display: grid;
  }
  .hero-grid,
  .hierarchy,
  .split,
  .faq,
  .contact-grid,
  .section-head.split,
  .signup-shell {
    grid-template-columns: 1fr;
  }
  .mock {
    max-width: 620px;
  }
  .float-a {
    left: 0.5rem;
  }
  .float-b {
    right: 0.5rem;
  }
  .modules,
  .trust-grid,
  .steps,
  .plans,
  .values {
    grid-template-columns: 1fr 1fr;
  }
  .module:nth-child(3n) {
    border-right: 1px solid var(--line);
  }
  .module:nth-child(2n) {
    border-right: 0;
  }
  .module:nth-last-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }
  .module:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
  .quotes {
    grid-template-columns: 1fr;
  }
  .cta-band {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .stat-row {
    grid-template-columns: 1fr 1fr;
  }
  .stat-row div:nth-child(2) {
    border-right: 0;
  }
  .stat-row div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .signup-steps {
    position: static;
    grid-template-columns: repeat(3, 1fr);
    padding: 0.75rem;
  }
  .signup-steps h2,
  .signup-steps .aside-note {
    display: none;
  }
  .stepper-step {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    font-size: 0.8rem;
  }
  .stepper-step small {
    display: none;
  }
  .type-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .auth {
    grid-template-columns: 1fr;
  }
  .auth-art {
    min-height: 260px;
    padding: 1.75rem 1.5rem;
  }
  .auth-art blockquote {
    font-size: 1.5rem;
  }
  .auth-art p,
  .auth-points {
    display: none;
  }
}
@media (max-width: 640px) {
  .wrap {
    width: calc(100% - 2rem);
  }
  .audience-grid,
  .modules,
  .trust-grid,
  .steps,
  .plans,
  .values,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .module {
    border-right: 0 !important;
    border-bottom: 1px solid var(--line) !important;
  }
  .module:last-child {
    border-bottom: 0 !important;
  }
  .pipeline {
    grid-template-columns: 1fr 1fr;
  }
  .mock-body {
    grid-template-columns: 1fr;
  }
  .mock-side {
    display: none;
  }
  .mock-stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .float-card {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-ctas .btn,
  .cta-actions .btn {
    flex: 1 1 100%;
  }
  .tree {
    padding: 1rem;
  }
  .node {
    min-width: 0;
    flex: 1 1 40%;
  }
  .node.root {
    min-width: 0;
    flex-basis: 100%;
  }
}

/* 13. APP MODAL (js/modal.js) --------------------------------------------------------- */
.app-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}
.app-modal.is-open {
  opacity: 1;
  visibility: visible;
}
.app-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 12, 29, 0.62);
  backdrop-filter: blur(4px);
}
.app-modal-dialog {
  position: relative;
  width: min(440px, 100%);
  padding: 2.25rem 2rem 1.75rem;
  text-align: center;
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  transform: translateY(16px) scale(0.96);
  transition: transform 0.3s var(--ease);
}
.app-modal.is-open .app-modal-dialog {
  transform: none;
}
.app-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-3);
  font-size: 1.3rem;
  cursor: pointer;
}
.app-modal-close:hover {
  background: var(--paper-2);
  color: var(--text);
}
.app-modal-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
}
.app-modal-title {
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
}
.app-modal-message {
  color: var(--text-2);
}
.app-modal-details {
  margin-top: 0.5rem;
  color: var(--text-3);
  font-size: 0.9rem;
}
.app-modal-error .app-modal-icon {
  background: #fbeceb;
  color: var(--bad);
}
.app-modal-success .app-modal-icon {
  background: #e8f5ee;
  color: var(--ok);
}
.app-modal-warning .app-modal-icon {
  background: #fdf3e3;
  color: #a15c07;
}
.app-modal-info .app-modal-icon {
  background: var(--brass-100);
  color: var(--brass-600);
}
.app-modal-actions {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.app-modal-button {
  min-width: 110px;
  min-height: 44px;
  padding: 0 1.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--text);
  font: 700 0.92rem/1 var(--font-ui);
  cursor: pointer;
}
.app-modal-button:hover {
  border-color: var(--text-3);
}
.app-modal-confirm {
  border-color: var(--ink-900);
  background: var(--ink-900);
  color: var(--on-dark);
}
body.app-modal-open {
  overflow: hidden;
}

/* 14. APPLICANT EXAM FLOW (cbt-*.php) ------------------------------------------------- */
.exam-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 2rem);
  background: var(--ink-900);
}
.exam-top img {
  height: 36px;
  width: auto;
}
.exam-top .btn {
  min-height: 38px;
}
.exam-page {
  min-height: calc(100vh - 70px);
  display: grid;
  place-items: center;
  padding: clamp(2rem, 6vw, 4rem) 1.25rem;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(194, 154, 75, 0.12), transparent 70%),
    var(--paper);
}
.exam-card {
  width: min(100%, 520px);
  padding: clamp(1.75rem, 5vw, 2.75rem);
  border-radius: var(--r-xl);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  display: grid;
  gap: 1.25rem;
  text-align: center;
}
.exam-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--ink-900);
  color: var(--brass-400);
  font-size: 1.7rem;
}
.exam-card h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.exam-card > p {
  color: var(--text-2);
}
.exam-card form {
  display: grid;
  gap: 1.1rem;
  text-align: left;
}
.exam-steps {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.exam-steps b {
  color: var(--brass-600);
}
.code-boxes {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
}
.code-box {
  width: 52px;
  height: 60px;
  border: 1px solid #d9d3c4;
  border-radius: 12px;
  background: var(--white);
  text-align: center;
  font: 700 1.4rem/1 var(--font-ui);
  text-transform: uppercase;
  color: var(--ink-900);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.code-box:focus {
  outline: none;
  border-color: var(--brass-500);
  box-shadow: var(--ring);
}
.result-score {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 4.5rem;
  line-height: 1;
  color: var(--ink-900);
  letter-spacing: -0.03em;
}
.result-status {
  justify-self: center;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.9rem;
}
.result-status.passed {
  background: #e8f5ee;
  color: #166c43;
}
.result-status.failed {
  background: #fbeceb;
  color: #9b2c20;
}
.result-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  text-align: left;
}
.result-meta div {
  padding: 0.85rem 1rem;
  background: var(--paper);
}
.result-meta div + div {
  border-left: 1px solid var(--line);
}
.result-meta small {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.result-meta strong {
  font-size: 1rem;
}

/* Assessment */
.assessment-page {
  min-height: calc(100vh - 70px);
  padding: clamp(1.5rem, 4vw, 2.5rem) 1.25rem 3rem;
  background: var(--paper);
  user-select: none;
  -webkit-user-select: none;
}
.assessment-shell {
  width: min(100%, 860px);
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}
.assessment-header,
.question-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}
.assessment-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1.35rem 1.5rem;
  position: sticky;
  top: 0.75rem;
  z-index: 5;
}
.assessment-header p {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-600);
}
.assessment-header h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.2;
}
.countdown {
  min-width: 120px;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  text-align: center;
  font-weight: 800;
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
  color: var(--brass-200);
  background: var(--ink-900);
}
.quiz-progress {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-2);
}
.question-card {
  display: none;
  padding: clamp(1.25rem, 4vw, 2rem);
}
.question-card.is-active {
  display: block;
  animation: stepIn 0.3s var(--ease);
}
.question-card h2 {
  font-size: 1.12rem;
  line-height: 1.5;
  margin-bottom: 1.1rem !important;
}
.question-card img {
  border-radius: 12px;
}
.answer-option {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  margin-top: 0.6rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.answer-option:hover {
  border-color: var(--brass-400);
  background: var(--paper);
}
.answer-option:has(input:checked) {
  border-color: var(--brass-500);
  background: var(--brass-100);
  box-shadow: inset 0 0 0 1px var(--brass-500);
}
.answer-option input {
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  accent-color: var(--ink-900);
}
.quiz-navigation {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
}
.quiz-navigation .btn {
  min-width: 140px;
}
.submit-assessment {
  margin-left: auto;
}
@media (max-width: 600px) {
  .assessment-header {
    flex-direction: column;
    align-items: stretch;
  }
  .countdown {
    width: 100%;
  }
  .code-box {
    width: 42px;
    height: 52px;
  }
  .quiz-navigation .btn {
    min-width: 0;
    flex: 1;
  }
}

/* Trial marker on plan cards */
.plan-trial {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: -0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ok);
}
.plan.featured .plan-trial {
  color: #7fd3a8;
}
