/* ─── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:      #111111;
  --primary:    #00104a;
  --secondary:  #061c59;
  --tertiary:   #8bbad4;
  --white:      #fbfaf7;
  --panel:      #fbfaf7;
  --off:        #f4f2ee;
  --surface:    #ebe8e2;
  --border:     #d9d9d9;
  --hairline:    #d9d9d9;
  --muted:      #6f6f6f;
  --body:       #232323;
  --heading:    #00104a;
  --accent:     #8bbad4;
  --ink:        #00104a;
  --brand-action: #00104a;
  --brand-action-hover: #061c59;
  --on-brand:   #fbfaf7;

  --radius-sm:  6px;
  --radius:     8px;
  --radius-lg:  8px;
  --shadow:     0 1px 3px rgba(17,17,17,.06), 0 4px 16px rgba(17,17,17,.06);
  --shadow-lg:  0 8px 40px rgba(17,17,17,.10);

  --font-display: 'DM Sans', system-ui, sans-serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --logo-clear-space: 24.6648px;

  --nav-h: 64px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --primary:    #8bbad4;
  --secondary:  #8bbad4;
  --tertiary:   #8bbad4;
  --white:      #181715;
  --panel:      #11100f;
  --off:        #0c0b0a;
  --surface:    #25231f;
  --border:     rgba(251,250,247,.18);
  --hairline:    rgba(251,250,247,.12);
  --muted:      #c8c1b8;
  --body:       #eee9e1;
  --heading:    #fbfaf7;
  --accent:     #8bbad4;
  --ink:        #fbfaf7;
  --brand-action: #8bbad4;
  --brand-action-hover: #6fa3c1;
  --on-brand:   #111111;
  --shadow:     0 1px 3px rgba(17,17,17,.28), 0 8px 24px rgba(17,17,17,.28);
  --shadow-lg:  0 14px 48px rgba(17,17,17,.34);
}

html[data-theme="dark"] .nav {
  background: rgba(17,17,17,.94);
}

html[data-theme="dark"] .nav-logogram path {
  fill: var(--tertiary);
}

html[data-theme="dark"] svg[stroke="var(--primary)"] {
  stroke: var(--tertiary);
}

html[data-theme="dark"] svg[fill="var(--primary)"],
html[data-theme="dark"] path[fill="var(--primary)"] {
  fill: var(--tertiary);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--white);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .2s, color .2s;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
input, select, textarea, button { font-family: inherit; }

/* ─── PASSWORD SCREEN ──────────────────────────────────────── */
.password-screen {
  display: none;
}

.auth-locked body {
  min-height: 100vh;
  overflow: hidden;
}

.auth-locked body > :not(.password-screen) {
  display: none !important;
}

.auth-locked .password-screen {
  --password-bg-x: 50%;
  --password-bg-y: 50%;
  --password-tilt-x: 0deg;
  --password-tilt-y: 0deg;
  --password-lift-x: 0px;
  --password-lift-y: 0px;
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  background:
    rgba(17,17,17,.42)
    url("assets/img/anjuna_aurora.webp") var(--password-bg-x) var(--password-bg-y) / 106% no-repeat;
  background-blend-mode: multiply;
  perspective: 1200px;
  transition: background-position .12s ease-out;
}

.password-panel {
  transform:
    rotateX(var(--password-tilt-y))
    rotateY(var(--password-tilt-x))
    translate3d(var(--password-lift-x), var(--password-lift-y), 0);
  transform-style: preserve-3d;
  width: min(100%, 420px);
  border: .5px solid rgba(251,250,247,.38);
  border-radius: var(--radius-lg);
  background: rgba(251,250,247,.88);
  color: var(--black);
  padding: 34px;
  box-shadow: 0 24px 80px rgba(17,17,17,.28);
  transition: transform .12s ease-out, box-shadow .12s ease-out;
  will-change: transform;
}

.password-logo {
  transform: translateZ(34px);
  width: 156px;
  height: auto;
  margin-bottom: 22px;
}

.password-note {
  transform: translateZ(22px);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.3;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.password-form {
  transform: translateZ(18px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.password-form label {
  color: var(--black);
  font-size: 13px;
  font-weight: 700;
}

.password-field {
  display: flex;
  gap: 8px;
}

.password-form > input,
.password-field input {
  flex: 1;
  min-width: 0;
  border: .5px solid rgba(17,17,17,.22);
  border-radius: var(--radius-sm);
  background: rgba(251,250,247,.86);
  color: var(--black);
  font-size: 15px;
  padding: 12px 14px;
  outline: none;
}

.password-form > input {
  width: 100%;
}

.password-form label + input {
  margin-bottom: 4px;
}

.password-form > input:focus,
.password-field input:focus {
  border-color: var(--tertiary);
  box-shadow: 0 0 0 3px rgba(139,186,212,.2);
}

.password-field button {
  border: .5px solid rgba(17,17,17,.22);
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--on-brand);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  padding: 0 18px;
}

.password-error {
  min-height: 18px;
  color: var(--secondary);
  font-size: 12.5px;
}

/* ─── NAV ───────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251,250,247,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}
html[data-theme="dark"] .nav { background: rgba(17,17,17,.94); }

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding-inline: var(--logo-clear-space);
  margin-left: calc(var(--logo-clear-space) * -1);
}

.logo-mark {
  width: 32px; height: 32px;
  background: var(--brand-action);
  color: var(--on-brand);
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}
.logo-mark--sm { width: 26px; height: 26px; font-size: 10px; }

.nav-logogram {
  display: block;
  flex-shrink: 0;
  width: auto;
  height: 26px;
  margin-inline: 4px;
}

.logo-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--heading);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  font-size: 13.5px;
  font-weight: 400;
  color: var(--body);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: background .15s, color .15s;
}
.nav-links a:hover { background: var(--surface); color: var(--heading); }

.nav-cta {
  background: var(--brand-action) !important;
  color: var(--on-brand) !important;
  margin-left: 8px;
}
.nav-cta:hover { background: var(--brand-action-hover) !important; opacity: 1; }

.theme-toggle,
.mobile-theme-toggle {
  border: none;
  background: none;
  color: var(--body);
  cursor: pointer;
}

.theme-toggle {
  flex-shrink: 0;
  padding: 4px;
}

.theme-toggle__track {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 58px;
  height: 30px;
  padding: 4px 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  transition: background .2s, border-color .2s, color .2s;
}

.theme-toggle__thumb {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform .2s, background .2s;
}

.theme-toggle__icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle__icon--sun { color: var(--tertiary); }
.theme-toggle__icon--moon { color: var(--muted); }
.theme-toggle:focus-visible,
.mobile-theme-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
html[data-theme="dark"] .theme-toggle__thumb { transform: translateX(28px); }
html[data-theme="dark"] .theme-toggle__track {
  background: var(--surface);
  border-color: var(--tertiary);
}
html[data-theme="dark"] .theme-toggle__icon--moon { color: var(--heading); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--heading);
  border-radius: 2px;
  transition: .2s;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 12px 0;
}
.mobile-menu a {
  padding: 12px 24px;
  font-size: 15px;
  color: var(--body);
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu.open { display: flex; }
.mobile-theme-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  border-top: 1px solid var(--border);
  color: var(--body);
  font-size: 15px;
  text-align: left;
}

/* ─── HERO ──────────────────────────────────────────────────── */
.hero {
  background: var(--white);
  padding: 80px 24px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
}
html[data-theme="dark"] .hero::before {
  background: transparent;
}

.hero-wave-motion {
  position: absolute;
  inset: auto -18% 8px;
  height: 240px;
  color: var(--secondary);
  opacity: .2;
  pointer-events: none;
  animation: heroWaveLayer 12s ease-in-out infinite alternate;
}

.hero-wave-motion svg {
  width: 136%;
  height: 100%;
  transform: translateX(-10%);
}

.wave-line {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: .9;
  filter: drop-shadow(0 0 10px currentColor);
  animation: heroWaveDrift 8s ease-in-out infinite alternate;
}

.wave-line--one {
  animation-name: heroWaveDrift, heroWavePulse;
  animation-duration: 8s, 5.5s;
  animation-timing-function: ease-in-out, ease-in-out;
  animation-iteration-count: infinite, infinite;
  animation-direction: alternate, alternate;
}

.wave-line--two {
  opacity: .72;
  stroke-width: .7;
  animation-duration: 11s;
  animation-delay: -3s;
}

html[data-theme="dark"] .hero-wave-motion {
  color: var(--tertiary);
  opacity: .2;
}

@keyframes heroWaveDrift {
  from { transform: translateX(-52px) translateY(0); }
  to { transform: translateX(52px) translateY(8px); }
}

@keyframes heroWaveLayer {
  from { transform: translateX(-18px); }
  to { transform: translateX(18px); }
}

@keyframes heroWavePulse {
  from { opacity: .5; stroke-width: .7; }
  to { opacity: 1; stroke-width: 1.1; }
}

.hero-inner {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  border: 1px solid var(--tertiary);
  background: var(--surface);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 60px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--heading);
  margin-bottom: 20px;
}
.hero-title em {
  font-style: normal;
  color: var(--body);
}

.hero-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* Search */
.hero-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 12px 18px;
  max-width: 520px;
  margin: 0 auto 48px;
  box-shadow: var(--shadow);
  transition: border-color .2s, box-shadow .2s;
}
.hero-search:focus-within {
  border-color: var(--brand-action);
  box-shadow: 0 0 0 3px rgba(139,186,212,.18);
}
html[data-theme="dark"] .hero-search:focus-within {
  box-shadow: 0 0 0 3px rgba(139,186,212,.24);
}
.hero-search svg { color: var(--muted); flex-shrink: 0; }
.hero-search input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  color: var(--heading);
  background: transparent;
}
.hero-search input::placeholder { color: var(--muted); }
.hero-search kbd {
  font-family: var(--font-body);
  font-size: 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--muted);
}

/* Product badges */
.hero-products {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 920px;
  margin: 0 auto;
  padding-bottom: 64px;
}
.hero-products span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--heading);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

/* ─── MAIN / SECTIONS ───────────────────────────────────────── */
.main { background: var(--off); }

.section { padding: 72px 24px; }
.section-alt { background: var(--white); }

.container { max-width: 1200px; margin: 0 auto; }
.container--narrow { max-width: 700px; margin: 0 auto; }

.section-header {
  margin-bottom: 40px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 8px;
}
.section-desc {
  font-size: 15px;
  color: var(--muted);
  max-width: 480px;
}

.section-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  background: var(--brand-action);
  border-radius: var(--radius-sm);
  color: var(--on-brand);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 14px;
  transition: background .15s, transform .1s;
}
.section-cta:hover { background: var(--brand-action-hover); transform: translateY(-1px); }

/* ─── CARDS ─────────────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.cards-grid--wide {
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow .2s, transform .2s;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.section-alt .card { background: var(--off); }

.card-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-body { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.card-body h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.3;
}
.card-body p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}

.card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tag {
  font-size: 11px;
  font-weight: 400;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--body);
  padding: 2px 8px;
  border-radius: 100px;
}
.section-alt .tag { background: var(--white); }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 400;
  color: var(--heading);
  padding: 8px 14px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  align-self: flex-start;
  transition: background .15s, gap .15s;
  border: 1px solid var(--border);
}
.card-link:hover { background: var(--border); gap: 10px; }
.card-link--disabled {
  color: var(--muted);
  cursor: default;
  pointer-events: none;
}

/* ─── TEMPLATE MAP ──────────────────────────────────────────── */
.wip-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--tertiary);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 18px;
  color: var(--heading);
}
html[data-theme="dark"] .wip-banner {
  background: var(--surface);
  border-color: var(--tertiary);
}
.wip-banner strong {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
}
.wip-banner span {
  color: var(--body);
  font-size: 13.5px;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.template-card {
  min-height: 100%;
  background: var(--off);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: box-shadow .2s, transform .2s;
}
.template-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.template-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.template-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-action);
  color: var(--on-brand);
  font-size: 12px;
  font-weight: 700;
}
.status-pill {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  color: var(--muted);
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
}

.template-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.template-card__body h3 {
  font-size: 15px;
  line-height: 1.3;
  color: var(--heading);
  font-weight: 700;
}
.template-card__body p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.template-card__body ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
}
.template-card__body li {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--body);
  font-size: 12px;
  line-height: 1.3;
  padding: 5px 9px;
}

.template-grid .template-action {
  width: 100%;
}

.template-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}
.template-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: var(--radius-sm);
  background: var(--brand-action);
  border: 1px solid var(--brand-action);
  color: var(--on-brand);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  padding: 8px 12px;
  transition: background .15s, border-color .15s, transform .1s;
}
.template-action:hover {
  background: var(--brand-action-hover);
  border-color: var(--brand-action-hover);
  transform: translateY(-1px);
}
.template-action--secondary {
  background: var(--white);
  border-color: var(--border);
  color: var(--heading);
}
.template-action--secondary:hover {
  background: var(--surface);
  border-color: var(--border);
}

.resource-subsection {
  margin-top: 28px;
  background: var(--off);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.eoy-panel {
  background: var(--white);
  border-color: var(--tertiary);
}
.eoy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.eoy-meta span {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--heading);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
}
.resource-subsection__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.resource-subsection__header h3 {
  color: var(--heading);
  font-size: clamp(21px, 3vw, 26px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 6px;
}
.resource-subsection__header p:last-child {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 560px;
}

.product-downloads {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.product-download {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
}
.product-download h4 {
  color: var(--heading);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
}
.product-download__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.product-download__links a {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--heading);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  padding: 6px 8px;
  transition: background .15s, color .15s;
}
.product-download__links a:hover {
  background: var(--brand-action);
  border-color: var(--brand-action);
  color: var(--on-brand);
}
.product-downloads-note {
  color: var(--body) !important;
  font-size: 12.5px !important;
}

/* ─── SEARCH RESULTS ────────────────────────────────────────── */
.search-results-wrap { padding: 48px 24px; background: var(--off); }
.search-label { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.search-label span { font-weight: 700; color: var(--heading); }
.no-results { font-size: 14px; color: var(--muted); text-align: center; padding: 40px 0; }

/* ─── TEAM ──────────────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.team-card {
  background: var(--white);
  border: 1px solid var(--secondary);
  border-radius: var(--radius-lg);
  min-width: 0;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow .2s;
}
html[data-theme="dark"] .team-card {
  background: var(--white);
}
.team-card:hover { box-shadow: var(--shadow); }

.team-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  background: var(--brand-action);
  box-shadow: inset 0 0 0 2px rgba(251,250,247,.28);
  color: var(--on-brand);
  flex-shrink: 0;
}

.team-info { flex: 1; min-width: 0; }
.team-info h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 2px;
  overflow-wrap: anywhere;
}
.team-role { font-size: 12px; font-weight: 400; color: var(--muted); }

.team-contact {
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  flex-shrink: 0;
  transition: background .15s, color .15s;
}
.team-contact:hover { background: var(--surface); color: var(--heading); }

/* ─── REQUEST FORM ──────────────────────────────────────────── */
.request-layout {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.request-note {
  border-top: 2px solid var(--brand-action);
  padding-top: 18px;
}

.request-note h3 {
  color: var(--heading);
  font-size: clamp(21px, 3vw, 26px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 10px;
}

.request-note p:last-child {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  max-width: 300px;
}

.request-form {
  background: var(--white);
  border: 1px solid var(--secondary);
  border-top: 4px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
html[data-theme="dark"] .request-form {
  background: var(--white);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--heading);
}
.field label span { color: var(--primary); }
.field-help,
.field-error {
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
}
.field-help { color: var(--muted); }
.field-error { color: #b3261e; }
html[data-theme="dark"] .field-error { color: #ffb4ab; }

.field input[type="text"],
.field input[type="email"],
.field input[type="date"],
.field textarea {
  border: 1.5px solid var(--secondary);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  color: var(--heading);
  background: var(--white);
  outline: none;
  transition: border-color .2s, background .2s;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--brand-action);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(139,186,212,.18);
}

.select-wrap { position: relative; }
.select-wrap select {
  width: 100%;
  border: 1.5px solid var(--secondary);
  border-radius: var(--radius-sm);
  padding: 10px 36px 10px 14px;
  font-size: 14px;
  color: var(--heading);
  background: var(--white);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color .2s;
}
.select-wrap select:focus { border-color: var(--brand-action); box-shadow: 0 0 0 3px rgba(139,186,212,.18); }
.select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.radio-group { display: flex; gap: 8px; flex-wrap: wrap; }
.radio-group--grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.radio-option input { display: none; }
.radio-pill {
  display: inline-block;
  padding: 7px 16px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  transition: all .15s;
  color: var(--body);
  background: var(--off);
}
.radio-group--grid .radio-pill {
  display: flex;
  flex-direction: column;
  gap: 2px;
  height: 100%;
  white-space: normal;
}
.radio-pill small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.25;
}
.radio-option input:checked + .radio-pill {
  background: var(--brand-action);
  color: var(--on-brand);
  border-color: var(--brand-action);
}
.radio-option input:checked + .radio-pill small {
  color: inherit;
}
.radio-pill--urgent { color: var(--primary); border-color: var(--tertiary); background: var(--surface); }
.radio-option input:checked + .radio-pill--urgent {
  background: var(--brand-action);
  border-color: var(--brand-action);
  color: var(--on-brand);
}

.hidden { display: none; }

.submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-action);
  color: var(--on-brand);
  border: none;
  border-radius: var(--radius-sm);
  padding: 13px 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  align-self: flex-start;
  transition: opacity .15s, transform .1s;
}
.submit-btn:hover { opacity: .88; }
.submit-btn:active { transform: scale(.98); }
.submit-btn:disabled { opacity: .5; cursor: not-allowed; }

.form-success {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--secondary);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 14px;
  color: var(--heading);
}

/* ─── FOOTER ────────────────────────────────────────────────── */
.disclaimer {
  background: var(--white);
  border-top: 1px solid var(--border);
  color: var(--muted);
  padding: 16px 24px;
}

.disclaimer p {
  font-size: 12.5px;
  line-height: 1.6;
  margin: 0;
}

.footer {
  background: var(--brand-action);
  color: rgba(251,250,247,.78);
  padding: 24px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-left { display: flex; align-items: center; gap: 10px; }
.footer .logo-mark { background: rgba(251,250,247,.12); }
.footer-copy { font-size: 13px; }
.footer-credit {
  color: rgba(251,250,247,.72);
  font-size: 12px;
  font-weight: 700;
}
.footer-version {
  border: 1px solid rgba(251,250,247,.36);
  border-radius: 999px;
  color: rgba(251,250,247,.9);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
}
.footer-right a { font-size: 13px; color: rgba(251,250,247,.82); transition: color .15s; }
.footer-right a:hover { color: var(--on-brand); }

html[data-theme="dark"] .footer {
  color: rgba(17,17,17,.76);
}

html[data-theme="dark"] .footer .logo-mark {
  background: rgba(17,17,17,.1);
}

html[data-theme="dark"] .footer-logogram-path {
  fill: #111111;
}

html[data-theme="dark"] .footer-credit,
html[data-theme="dark"] .footer-right a {
  color: rgba(17,17,17,.78);
}

html[data-theme="dark"] .footer-version {
  border-color: rgba(17,17,17,.28);
  color: #111111;
}

html[data-theme="dark"] .footer-right a:hover {
  color: #111111;
}

.nav,
.mobile-menu,
.mobile-menu a,
.mobile-theme-toggle,
.hero-search,
.hero-eyebrow,
.hero-products span,
.card,
.tag,
.card-link,
.wip-banner,
.template-card,
.status-pill,
.template-card__body li,
.template-action,
.resource-subsection,
.eoy-meta span,
.product-download,
.product-download__links a,
.team-card,
.team-contact,
.request-form,
.field input[type="text"],
.field input[type="email"],
.field input[type="date"],
.field textarea,
.select-wrap select,
.radio-pill,
.form-success,
.disclaimer {
  border-width: .5px;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="date"],
.field textarea,
.select-wrap select,
.radio-pill {
  border-color: var(--hairline);
}

html[data-theme="dark"] .hero,
html[data-theme="dark"] .section-alt,
html[data-theme="dark"] .mobile-menu,
html[data-theme="dark"] .card,
html[data-theme="dark"] .team-card,
html[data-theme="dark"] .request-form,
html[data-theme="dark"] .product-download,
html[data-theme="dark"] .eoy-panel,
html[data-theme="dark"] .eoy-meta span,
html[data-theme="dark"] .template-action--secondary,
html[data-theme="dark"] .disclaimer {
  background: var(--white);
}

html[data-theme="dark"] .template-card,
html[data-theme="dark"] .resource-subsection,
html[data-theme="dark"] .section-alt .card {
  background: var(--panel);
}

html[data-theme="dark"] .card,
html[data-theme="dark"] .template-card,
html[data-theme="dark"] .resource-subsection,
html[data-theme="dark"] .team-card,
html[data-theme="dark"] .request-form,
html[data-theme="dark"] .product-download,
html[data-theme="dark"] .hero-search {
  border-color: var(--hairline);
  border-width: .5px;
}

html[data-theme="dark"] .wip-banner,
html[data-theme="dark"] .eoy-panel,
html[data-theme="dark"] .request-form {
  border-color: rgba(139,186,212,.42);
  border-width: .5px;
}

html[data-theme="dark"] .card-link,
html[data-theme="dark"] .template-action--secondary,
html[data-theme="dark"] .tag,
html[data-theme="dark"] .template-card__body li,
html[data-theme="dark"] .hero-products span,
html[data-theme="dark"] .status-pill,
html[data-theme="dark"] .radio-pill,
html[data-theme="dark"] .form-success,
html[data-theme="dark"] .eoy-meta span,
html[data-theme="dark"] .product-download__links a,
html[data-theme="dark"] .mobile-menu a,
html[data-theme="dark"] .mobile-theme-toggle,
html[data-theme="dark"] .theme-toggle__track,
html[data-theme="dark"] .field input[type="text"],
html[data-theme="dark"] .field input[type="email"],
html[data-theme="dark"] .field input[type="date"],
html[data-theme="dark"] .field textarea,
html[data-theme="dark"] .select-wrap select {
  background: var(--surface);
  border-color: var(--hairline);
  border-width: .5px;
}

html[data-theme="dark"] .nav,
html[data-theme="dark"] .mobile-menu,
html[data-theme="dark"] .disclaimer {
  border-color: var(--hairline);
}

html[data-theme="dark"] .request-form {
  border-top-width: 2px;
}

html[data-theme="dark"] .card-link:hover,
html[data-theme="dark"] .template-action--secondary:hover,
html[data-theme="dark"] .team-contact:hover,
html[data-theme="dark"] .product-download__links a:hover {
  background: var(--tertiary);
  border-color: var(--tertiary);
  color: var(--black);
}

html[data-theme="dark"] .section-eyebrow,
html[data-theme="dark"] .section-desc,
html[data-theme="dark"] .card-body p,
html[data-theme="dark"] .template-card__body p,
html[data-theme="dark"] .resource-subsection__header p:last-child,
html[data-theme="dark"] .team-role,
html[data-theme="dark"] .search-label,
html[data-theme="dark"] .disclaimer {
  color: var(--muted);
}

html[data-theme="dark"] .template-icon,
html[data-theme="dark"] .team-avatar {
  background: var(--tertiary);
  color: var(--black);
}

html[data-theme="dark"] .hero-eyebrow,
html[data-theme="dark"] .field label span,
html[data-theme="dark"] .radio-pill--urgent {
  color: var(--tertiary);
}

html[data-theme="dark"] .nav-cta,
html[data-theme="dark"] .section-cta,
html[data-theme="dark"] .template-action,
html[data-theme="dark"] .submit-btn,
html[data-theme="dark"] .product-download__links a:hover,
html[data-theme="dark"] .radio-option input:checked + .radio-pill {
  border: .5px solid rgba(251,250,247,.28);
  box-shadow: none;
}

html[data-theme="dark"] .nav-cta:hover,
html[data-theme="dark"] .section-cta:hover,
html[data-theme="dark"] .template-action:hover {
  border-color: rgba(139,186,212,.58);
  box-shadow: none;
}

/* ─── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav { height: auto; }
  .nav-inner { height: var(--nav-h); }

  .hero { padding: 56px 20px 0; }
  .hero-products {
    justify-content: flex-start;
    padding-bottom: 48px;
  }
  .hero-products span {
    max-width: 100%;
    white-space: normal;
  }

  .form-grid { grid-template-columns: 1fr; }
  .request-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .request-note p:last-child {
    max-width: none;
  }
  .radio-group--grid {
    grid-template-columns: 1fr;
  }
  .request-form { padding: 24px; }

  .section { padding: 56px 20px; }
  .section-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .resource-subsection__header {
    flex-direction: column;
  }
  .product-downloads {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .template-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .cards-grid, .cards-grid--wide { grid-template-columns: 1fr; }
  .template-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .hero-search kbd { display: none; }
  .wip-banner {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

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