/* HousingAI Portal — Default Template CSS */

:root {
  --ha-navy-900: #073135;
  --ha-navy-800: #113b40;
  --ha-accent: #fbff05;
  --ha-accent-soft: #fdffc8;
  --ha-canvas: #fffff8;
  --ha-ink: #1a2c2e;
  --ha-white: #ffffff;

  --ha-muted: var(--ha-navy-900);
  --ha-border: color-mix(in srgb, var(--ha-ink) 14%, var(--ha-canvas));
  --ha-surface-alt: color-mix(in srgb, var(--ha-ink) 4%, var(--ha-canvas));
  --ha-wash: color-mix(in srgb, var(--ha-navy-900) 6%, var(--ha-canvas));
  --ha-wash-strong: color-mix(in srgb, var(--ha-navy-900) 12%, var(--ha-canvas));
  --ha-on-dark-muted: color-mix(in srgb, var(--ha-white) 58%, transparent);
  --ha-net-benefit-ink: #0f5132;

  --sidebar-width: 260px;
  --chat-panel-width: 360px;
  --font-sans: "articulat-cf", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --shadow-sm: 0 1px 2px rgba(7, 49, 53, 0.06);
  --shadow-md: 0 4px 12px rgba(7, 49, 53, 0.08);
  --shadow-lg: 0 12px 32px rgba(7, 49, 53, 0.12);
  --radius-sm: 3px;
  --radius-md: 3px;
  --radius-lg: 3px;
  --page-max-width: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background: var(--ha-canvas);
}

body {
  font-family: var(--font-sans);
  color: var(--ha-ink);
  background: var(--ha-canvas);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ═══ SIDEBAR ═══ */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--ha-navy-800);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
}

.sidebar-logo {
  padding: 28px 32px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-logo .logo-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--ha-accent), var(--ha-accent-soft));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--ha-navy-900);
}

.logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--ha-white);
  letter-spacing: -0.01em;
}

.logo-text em {
  font-style: normal;
  color: var(--ha-accent-soft);
  font-weight: 400;
}

.sidebar-customer {
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-customer .label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ha-on-dark-muted);
  margin-bottom: 4px;
}

.sidebar-customer .name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ha-wash-strong);
}

.sidebar-nav {
  flex: 1;
  padding: 12px 12px;
}

.sidebar-nav .nav-icon {
  display: none;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 5px 14px;
  border-radius: var(--radius-sm);
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.15s;
  cursor: pointer;
  margin-bottom: 0;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.nav-item.active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--ha-accent);
  font-weight: 600;
}

.nav-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  opacity: 0.65;
  flex-shrink: 0;
}

.nav-item:hover .nav-icon,
.nav-item.active .nav-icon {
  opacity: 1;
}

.sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: var(--ha-on-dark-muted);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font-sans);
}

.share-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--ha-white);
  border-color: rgba(255, 255, 255, 0.2);
}

.sidebar-user {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ha-on-dark-muted);
  font-size: 12px;
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ha-navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--ha-accent);
}

/* ═══ MAIN ═══ */
.main {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ha-canvas);
}

.page-content {
  flex: 1;
  background: var(--ha-canvas);
}

/* ═══ SHARED PAGE COMPONENTS ═══ */
.page-header {
  padding: 48px 56px 40px;
  border-bottom: 1px solid var(--ha-border);
  max-width: var(--page-max-width);
  margin-left: auto;
  margin-right: auto;
}

/* Primary page title — same typography as homepage hero */
.hero-heading,
.page-header h1 {
  font-size: 48px;
  line-height: 49px;
  font-weight: 400;
  font-family: var(--font-sans);
  color: var(--ha-navy-900);
  margin: 0 0 20px;
}

.page-header p {
  font-size: 16px;
  color: var(--ha-muted);
  max-width: 640px;
}

.page-header.dark {
  background: transparent;
  border-bottom: none;
}

.page-header.dark h1 {
  color: var(--ha-navy-900);
}

.page-header.dark p {
  color: var(--ha-muted);
}

.page-header.teal-light {
  background: linear-gradient(135deg, var(--ha-wash), var(--ha-wash-strong));
}

.page-header.green-light {
  background: linear-gradient(135deg, var(--ha-wash), var(--ha-wash));
}

.page-header.accent-light {
  background: linear-gradient(135deg, var(--ha-accent-soft), var(--ha-wash));
}

.page-body {
  padding: 48px 56px;
  max-width: var(--page-max-width);
  margin-left: auto;
  margin-right: auto;
}

.page-body.full {
  max-width: var(--page-max-width);
  margin-left: auto;
  margin-right: auto;
}

.page-body h2 {
  font-size: 28px;
  font-weight: 400;
  color: var(--ha-navy-900);
  margin: 36px 0 14px;
}

.page-body > .content-section {
  padding-left: 0;
  padding-right: 0;
}

.page-body h2:first-child {
  margin-top: 0;
}

.page-body h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--ha-ink);
  margin: 28px 0 10px;
}

.page-body p {
  font-size: 15px;
  color: var(--ha-ink);
  line-height: 1.75;
  margin-bottom: 16px;
}

.page-body .section-lead {
  font-size: 16px;
  color: var(--ha-ink);
  max-width: 720px;
}

/* Links — brand colours (navy/yellow) instead of default blue */
.page-body a {
  color: var(--ha-navy-900);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-body a:hover {
  color: var(--ha-navy-800);
  text-decoration-thickness: 2px;
}

.page-body a:visited {
  color: var(--ha-navy-900);
}

/* Links inside dark backgrounds (e.g. highlight-box) */
.highlight-box a,
.faq-answer a,
.profile-contact-block a,
.risk-card a,
.person-info a {
  color: var(--ha-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.highlight-box a:hover,
.faq-answer a:hover,
.profile-contact-block a:hover,
.risk-card a:hover,
.person-info a:hover {
  color: var(--ha-white);
}

.highlight-box {
  background: var(--ha-navy-800);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 24px 0;
}

.highlight-box p {
  color: var(--ha-accent);
  font-weight: 500;
  margin-bottom: 0;
}

.highlight-box.light {
  background: var(--ha-wash);
  border: 1px solid var(--ha-border);
}

.highlight-box.light h3,
.highlight-box.light p,
.highlight-box.light li {
  color: var(--ha-ink);
  font-weight: 400;
}

.highlight-box.light h3 {
  font-weight: 600;
}

.highlight-box.light a {
  color: var(--ha-navy-900);
}

.highlight-box.light a:hover {
  color: var(--ha-navy-800);
}

/* ═══ INFO BOX (risk sections: HousingAI mitigates / customer role) ═══ */
.info-box {
  background: var(--ha-navy-800);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 16px 0 24px;
}

.info-box-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--ha-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.info-box ul {
  margin: 0;
  padding-left: 1.2em;
}

.info-box li {
  font-size: 14px;
  color: var(--ha-accent);
  line-height: 1.7;
  margin-bottom: 4px;
}

.info-box li:last-child {
  margin-bottom: 0;
}

/* Button base */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
}

.btn-cta {
  padding: 12px 28px;
  background: var(--ha-accent);
  color: var(--ha-navy-900);
  border: none;
  font-size: 14px;
  font-weight: 700;
}

.btn-cta:hover {
  background: #e9ed04;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(251, 255, 5, 0.3);
}

/* ═══ PROFILE CONTACT BLOCK (Phil Shelton etc) ═══ */
.profile-contact-block {
  background: var(--ha-navy-800);
  border-radius: var(--radius-md);
  padding: 40px 48px;
  margin: 32px 0;
  text-align: center;
  max-width: var(--page-max-width);
  margin-left: auto;
  margin-right: auto;
}

.profile-contact-block .profile-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
  border: 3px solid var(--ha-accent);
}

.profile-contact-block .profile-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--ha-accent);
  margin-bottom: 4px;
}

.profile-contact-block .profile-role {
  font-size: 15px;
  color: var(--ha-accent);
  opacity: 0.92;
  margin-bottom: 16px;
}

.profile-contact-block .profile-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 24px;
}

.profile-contact-block .profile-links a {
  color: var(--ha-accent);
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
  transition: opacity 0.15s;
}

.profile-contact-block .profile-links a:hover {
  opacity: 0.9;
  text-decoration: underline;
}

.site-footer {
  padding: 24px 56px;
  max-width: var(--page-max-width);
  margin-left: auto;
  margin-right: auto;
  border-top: 1px solid var(--ha-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  font-weight: 400;
  line-height: 30px;
  color: #113B40;
  background: var(--ha-canvas);
}

.site-footer a {
  color: var(--ha-navy-900);
  text-decoration: none;
  font-weight: 500;
}

/* ═══ HERO (Welcome page) ═══ */
.hero {
  position: relative;
  padding: 64px 56px;
  background: transparent;
  overflow: visible;
  max-width: var(--page-max-width);
  margin-left: auto;
  margin-right: auto;
}

.hero-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 64px;
  max-width: var(--page-max-width);
  margin: 0 auto;
}

.hero-left {
  flex: 1;
  max-width: 501px;
}

.hero-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.hero-prepared-label {
  font-size: 16px;
  font-weight: 300;
  color: var(--ha-navy-900);
  line-height: 2;
  font-family: var(--font-sans);
  margin-bottom: 8px;
}

.hero-client-logo {
  width: 158px;
  height: 69px;
  object-fit: contain;
  margin-bottom: 32px;
}

.hero-subtitle {
  font-size: 16px;
  line-height: 28px;
  font-weight: 400;
  color: var(--ha-ink);
  font-family: var(--font-sans);
  max-width: 501px;
}

.hero-main-image {
  width: 763.96px;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
}

.content-section {
  padding: 56px 56px;
  max-width: var(--page-max-width);
  margin-left: auto;
  margin-right: auto;
  margin-top: 0;
}

.content-section h2 {
  font-size: 28px;
  font-weight: 400;
  color: var(--ha-navy-900);
  margin-bottom: 10px;
}

.content-section .section-lead {
  font-size: 16px;
  color: var(--ha-ink);
  margin-bottom: 32px;
  max-width: 800px;
  line-height: 1.65;
}

/* ═══ STATS / FEATURES ═══ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
  max-width: var(--page-max-width);
  margin-left: auto;
  margin-right: auto;
}

.stat-card {
  background: #113B40;
  border-radius: var(--radius-md);
  padding: 24px 32px;
  height: 128px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-value {
  font-size: 48px;
  line-height: 49px;
  font-weight: 500;
  color: var(--ha-accent);
  font-family: var(--font-sans);
  margin-bottom: 8px;
}

.roi-home-hint {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ha-ink);
  max-width: var(--page-max-width);
  margin: -32px auto 0;
  text-align: center;
}

.roi-home-hint a {
  color: var(--ha-navy-900);
  font-weight: 600;
  text-decoration: underline;
}

.roi-home-hint a:hover,
.roi-home-hint a:focus-visible {
  color: var(--ha-navy-800);
}

.stat-label {
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: var(--ha-accent);
  font-family: var(--font-sans);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-card {
  display: inline-flex;
  padding: 30px 38px 32px 30px;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 5.42px;
  width: 100%;
  min-height: 199px;
  border-radius: 5px;
  background: var(--grey-green-undertone, #E8EEEA);
  transition: all 0.2s;
  box-sizing: border-box;
}

a.feature-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

a.feature-card:hover,
a.feature-card:focus-visible {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.feature-icon.primary {
  background: rgba(251, 255, 5, 0.35);
}

.feature-icon.accent {
  background: rgba(251, 255, 5, 0.4);
}

.feature-icon.secondary {
  background: rgba(251, 255, 5, 0.35);
}

.feature-icon.light {
  background: rgba(251, 255, 5, 0.28);
}

.feature-card h3 {
  font-size: 25px;
  font-weight: 400;
  color: #113B40;
  line-height: 1.35;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 16px;
  color: #113B40;
  line-height: 25px;
}

.question-card {
  display: flex;
  padding: 30px 40px 33px 30px;
  align-items: center;
  border-radius: 5px;
  background: var(--Yellow, #FBFF05);
  transition: all 0.2s;
  min-height: 160px;
}

.question-card h3 {
  width: 100%;
  color: var(--Blue, #113B40);
  font-size: 25px;
  font-weight: 400;
  line-height: 32px;
  margin: 0;
}

/* ═══ VIDEO PLACEHOLDER ═══ */
.video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--ha-navy-800);
  border: 1px solid var(--ha-accent);
  border-radius: var(--radius-md);
  min-height: 200px;
  text-align: center;
  width: 100%;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, border-color 0.2s;
  box-sizing: border-box;
}

.video-placeholder:hover {
  background: var(--ha-navy-900);
  border-color: var(--ha-accent);
}

.video-placeholder:hover .play-icon {
  transform: scale(1.1);
}

.video-placeholder .play-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--ha-accent);
  color: var(--ha-navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-top: 40px;
  transition: transform 0.2s;
}

.video-placeholder p {
  font-size: 15px;
  color: var(--ha-accent);
  margin: 0 0 40px;
}

/* ═══ VIDEO MODAL ═══ */
.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(7, 49, 53, 0.88);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.video-modal-inner {
  position: relative;
  width: 90vw;
  max-width: 960px;
}

.video-modal-inner video {
  width: 100%;
  display: block;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.video-modal-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: none;
  border: none;
  color: #fffff8;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  opacity: 0.75;
  font-family: inherit;
  transition: opacity 0.15s;
}

.video-modal-close:hover {
  opacity: 1;
}

/* ═══ QUOTE GRID ═══ */
.quote-section-heading {
  font-size: 35px;
  font-weight: 400;
  line-height: 55px;
  color: #113B40;
  margin: 0 0 24px;
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 350px);
  gap: 20px;
}

.quote-card {
  width: 350px;
  height: 413px;
  border-radius: 5px;
  background: #FBFF05;
  padding: 30px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.quote-text {
  width: 290px;
  font-size: 20px;
  font-weight: 400;
  color: #113B40;
  line-height: 30px;
  font-style: italic;
  flex: 1;
}

.quote-attr {
  width: 290px;
  font-size: 18px;
  font-weight: 600;
  color: #113B40;
  line-height: 30px;
}

.quote-role {
  width: 290px;
  font-size: 16px;
  font-weight: 400;
  color: rgba(17, 59, 64, 0.50);
  line-height: 30px;
}

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

  .quote-card {
    width: 100%;
    height: auto;
  }

  .quote-text,
  .quote-attr,
  .quote-role {
    width: 100%;
  }
}

/* ═══ CLIENT RESEARCH (ACCORDION) ═══ */
#research-section h2 {
  font-size: 35px;
  font-weight: 400;
  line-height: 55px;
  color: #113B40;
  margin-bottom: 8px;
}

#research-section .section-lead {
  font-size: 16px;
  font-weight: 400;
  line-height: 25px;
  color: #113B40;
  width: 1090px;
  max-width: 100%;
  margin-bottom: 18px;
}

#research-areas {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 40px;
}

.research-provider-card {
  --rp-gap-x: 20px;
  --rp-gap-y: 14px;
  background: none;
  padding: 0;
  border: none;
  border-radius: 0;
}

.research-provider-grid {
  display: grid;
  align-items: stretch;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--rp-gap-x);
  row-gap: var(--rp-gap-y);
}

.research-provider-item {
  min-width: 0;
  grid-column: span 4;
}

.research-provider-item--wide {
  grid-column: span 6;
  width: 100%;
  min-height: 0;
  border-radius: 5px;
  background: #E8EEEA;
  padding: 16px 24px 18px;
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  border-top: none;
  margin-top: var(--rp-gap-y);
}

.research-provider-item:not(.research-provider-item--wide) {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px 53px 33px 30px;
  border-radius: 5px;
  border: none;
  background: #113B40;
}

.research-provider-label {
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 300;
  line-height: 30px;
  color: #FBFF05;
  opacity: 1;
  text-transform: none;
  letter-spacing: 0;
}

.research-provider-value {
  font-size: 21px;
  font-weight: 400;
  line-height: 30px;
  color: #FFFFF8;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.research-provider-item--wide .research-provider-value {
  overflow-wrap: break-word;
  word-break: normal;
}

.research-provider-item--wide .research-provider-label {
  color: #113B40;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 0;
  opacity: 1;
  text-transform: none;
  letter-spacing: 0;
}

/* Badge in fixed column; heading + summary in second column so long copy wraps with a straight left edge (never flows under the badge). */
.research-provider-rating {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 16px;
  align-items: start;
  width: 100%;
}

.research-provider-rating .grade-badge {
  margin: 0;
}

.rating-content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  min-width: 0;
}

.research-provider-item--wide .research-provider-rating-summary {
  display: block;
  color: var(--Blue, #113B40);
  font-family: var(--font-sans);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 25px;
}

.research-notices {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.research-notice {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--ha-accent);
  border: 1px solid rgba(251, 255, 5, 0.25);
  background: rgba(251, 255, 5, 0.08);
}

.research-notice .notice-icon {
  margin-right: 8px;
  color: var(--ha-accent);
}

.research-area {
  overflow: hidden;
  border: none;
  background: none;
  box-shadow: none;
  border-radius: 0;
}

.research-area-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 0;
  cursor: pointer;
  user-select: none;
  background: none;
  border-radius: 0;
  box-sizing: border-box;
}

.research-area-title {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
}

.research-area-title-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 16px;
  row-gap: 8px;
  flex: 1;
  min-width: 0;
}

.research-area-title h3 {
  margin: 0;
  font-size: 30px;
  font-weight: 400;
  line-height: 40px;
  color: #8BABB3;
  flex: 0 1 auto;
  min-width: 0;
}

.area-number {
  width: auto;
  height: auto;
  flex-shrink: 0;
  border-radius: 0;
  background: none;
  display: inline-block;
  font-size: 30px;
  font-weight: 600;
  line-height: 40px;
  color: #113B40;
}

.evidence-badge {
  display: inline-flex;
  padding: 4px 12px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 1000px;
  background: #E8EEEA;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 400;
  color: #113B40;
  line-height: 1.25;
  border: none;
  vertical-align: baseline;
}

.evidence-badge.specific {
  background: #E8EEEA;
  border: none;
  color: #113B40;
}

.evidence-badge.sector {
  background: #E8EEEA;
  border: none;
  color: #113B40;
}

.grade-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 53px;
  height: 51px;
  border-radius: 5px;
  border: none;
  font-size: 20px;
  font-weight: 600;
  line-height: 30px;
}

.grade-badge.grade-green {
  background: #BFE3B5;
  color: #113B40;
}

.grade-badge.grade-amber {
  background: rgba(173, 20, 20, 0.15);
  color: #AD1414;
}

.grade-badge.grade-red {
  background: rgba(173, 20, 20, 0.15);
  color: #AD1414;
}

.research-area-header .toggle {
  flex-shrink: 0;
  font-size: 30px;
  font-weight: 400;
  line-height: 40px;
  color: #9AA4A4;
  width: 21px;
  text-align: center;
}

.research-area-body {
  padding: 20px 0 8px;
  background: none;
}

.research-area-body.collapsed {
  display: none;
}

.research-area-body h4 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8BABB3;
}

.research-findings ul {
  margin: 0;
  padding-left: 1.25em;
}

.research-findings li {
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.75;
  color: #113B40;
}

.research-findings li:last-child {
  margin-bottom: 0;
}

.reg-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reg-tag {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #113B40;
  border: 1px solid rgba(17, 59, 64, 0.2);
  background: #E8EEEA;
}

.reg-note {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: #113B40;
}

.research-prompts {
  margin-top: 12px;
}

.prompt-card {
  margin-top: 12px;
  padding: 14px;
  border-radius: 5px;
  border: 1px solid rgba(17, 59, 64, 0.15);
  background: #E8EEEA;
}

.prompt-persona {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #113B40;
}

.prompt-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  font-size: 14px;
  color: #FFFFF8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #113B40;
}

.prompt-text {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.75;
  color: #113B40;
}

@media (max-width: 900px) {
  .research-provider-grid {
    column-gap: 12px;
    row-gap: 12px;
  }

  .research-provider-item {
    grid-column: span 6;
  }

  .research-provider-item--wide {
    grid-column: 1 / -1;
  }

  .research-area-header {
    padding: 14px 16px;
  }

  .research-area-body {
    padding: 16px 16px 18px;
  }

  .research-area-title h3 {
    font-size: 15px;
  }
}

@media (max-width: 600px) {
  .research-provider-item {
    grid-column: 1 / -1;
  }

  .research-provider-rating {
    grid-template-columns: 1fr;
    row-gap: 10px;
  }
}

/* ═══ TABLES ═══ */
.cost-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 24px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--ha-border);
}

.cost-table th {
  background: var(--ha-accent);
  color: var(--ha-navy-900);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 20px;
  text-align: left;
  border-bottom: 1px solid var(--ha-navy-900);
}

.cost-table th:not(:last-child) {
  border-right: 1px solid var(--ha-navy-900);
}

.cost-table td {
  padding: 14px 20px;
  font-size: 14px;
  background: var(--ha-navy-900);
  color: var(--ha-accent);
  border-bottom: 1px solid var(--ha-accent);
}

.cost-table td:first-child {
  color: var(--ha-accent);
  font-weight: 500;
}

.cost-table td:not(:last-child) {
  border-right: 1px solid var(--ha-accent);
}

.cost-table tr:last-child td {
  border-bottom: none;
}

.cost-table tr:nth-child(even) td {
  background: var(--ha-navy-900);
}

.cost-table .total td {
  background: var(--ha-navy-900) !important;
  font-weight: 700;
  color: var(--ha-accent);
  border-top: 2px solid var(--ha-accent);
}

/* ═══ ROI CALCULATOR ═══ */
.roi-hero-result {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.roi-hero-card {
  background: var(--ha-navy-800);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

a.roi-hero-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

a.roi-hero-card:hover,
a.roi-hero-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.roi-hero-card .label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ha-accent);
  margin-bottom: 8px;
}

.roi-hero-card .value {
  font-size: 26px;
  font-weight: 700;
  color: var(--ha-accent);
}

.roi-hero-card.primary .value {
  color: var(--ha-accent);
}

.roi-hero-card .sub {
  font-size: 11px;
  color: var(--ha-accent);
  margin-top: 4px;
}

.roi-section {
  background: var(--ha-canvas);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  overflow: hidden;
  border: 1px solid var(--ha-border);
}

.roi-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: var(--ha-wash-strong);
  color: var(--ha-navy-900);
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid var(--ha-border);
}

/* Reset .page-body h2 margins so title + chevron stay vertically centred in the bar */
.roi-section-header h2 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ha-navy-900);
  margin: 0;
}

.roi-section-header .badge {
  background: rgba(251, 255, 5, 0.2);
  color: var(--ha-navy-900);
  padding: 3px 10px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(251, 255, 5, 0.5);
  margin-left: auto;
  flex-shrink: 0;
  align-self: center;
}

.roi-section-header .toggle {
  font-size: 18px;
  transition: transform 0.3s;
  line-height: 1;
  color: var(--ha-navy-900);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-self: center;
}

.roi-section-header .toggle.collapsed {
  transform: rotate(-90deg);
}

.roi-section-body {
  padding: 24px;
  background: var(--ha-canvas);
}

.roi-section-body.collapsed {
  display: none;
}

.roi-section-body .section-intro {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ha-muted);
  margin-bottom: 16px;
}

.page-body .roi-section-body h3.roi-band-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--ha-navy-900);
  margin: 0 0 16px;
  line-height: 1.3;
}

.page-body .roi-lead-text {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ha-muted);
  margin-bottom: 20px;
}

.page-body p.roi-callout-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--ha-accent);
  margin: 0 0 6px;
}

.page-body p.roi-callout-body,
.page-body #tier-callout-text {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ha-accent);
  margin: 0;
}

.page-body p.roi-savings-box-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ha-accent);
  margin: 0 0 10px;
}

.page-body .roi-savings-box ul {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ha-accent);
  margin: 0;
  padding-left: 1.25em;
}

.page-body .roi-footnote {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ha-muted);
  margin-top: 16px;
}

.roi-input-row {
  display: grid;
  grid-template-columns: 1fr 180px;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--ha-border);
}

.roi-input-row:last-child {
  border-bottom: none;
}

.roi-input-row label {
  font-size: 14px;
  color: var(--ha-ink);
}

.roi-input-row label small {
  display: block;
  font-size: 12px;
  color: var(--ha-muted);
  opacity: 0.88;
  font-weight: 400;
  margin-top: 2px;
}

.roi-input-row input[type="number"],
.roi-input-row input[type="text"] {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--ha-accent);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--ha-navy-900);
  background: var(--ha-accent-soft);
  text-align: right;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.roi-input-row input:focus {
  outline: none;
  border-color: var(--ha-accent);
  box-shadow: 0 0 0 3px rgba(251, 255, 5, 0.25);
}

.roi-section input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.roi-section input[type="number"]::-webkit-outer-spin-button,
.roi-section input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.roi-slider-row {
  display: grid;
  grid-template-columns: 1fr 80px 180px;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--ha-border);
}

.roi-slider-row:last-child {
  border-bottom: none;
}

.roi-slider-row label {
  font-size: 14px;
  color: var(--ha-ink);
}

.roi-slider-row label small {
  display: block;
  font-size: 12px;
  color: var(--ha-muted);
  opacity: 0.88;
  font-weight: 400;
  margin-top: 2px;
}

.roi-slider-row .current-val {
  font-size: 15px;
  font-weight: 700;
  color: var(--ha-navy-900);
  text-align: center;
}

.roi-section input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: var(--ha-wash-strong);
  border-radius: var(--radius-sm);
  outline: none;
  border: 1px solid var(--ha-border);
}

.roi-section input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  background: var(--ha-accent);
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid var(--ha-navy-900);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.roi-section input[type="range"]::-moz-range-track {
  height: 8px;
  background: var(--ha-wash-strong);
  border-radius: var(--radius-sm);
  border: 1px solid var(--ha-border);
}

.roi-section input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--ha-accent);
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid var(--ha-navy-900);
}

.roi-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 8px;
  background: var(--ha-navy-900);
  border: 1px solid var(--ha-accent);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.roi-table th {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--ha-navy-900);
  background: var(--ha-accent);
  padding: 10px 12px;
  text-align: center;
  border-bottom: 1px solid var(--ha-navy-900);
}

.roi-table th:not(:last-child) {
  border-right: 1px solid var(--ha-navy-900);
}

.roi-table th:first-child {
  text-align: left;
}

.roi-table tbody tr:last-child td {
  border-bottom: 1px solid var(--ha-accent);
}

.roi-table td {
  padding: 10px 12px;
  font-size: 14px;
  background: var(--ha-navy-900);
  color: var(--ha-accent);
  border-bottom: 1px solid var(--ha-accent);
  text-align: center;
}

.roi-table td:first-child {
  text-align: left;
  color: var(--ha-accent);
}

.roi-table td:not(:last-child) {
  border-right: 1px solid var(--ha-accent);
}

.roi-table tr:nth-child(even) td {
  background: var(--ha-navy-900);
}

.roi-table td input {
  width: 70px;
  padding: 6px 8px;
  border: 2px solid var(--ha-accent);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--ha-navy-900);
  background: var(--ha-accent-soft);
  text-align: center;
  font-family: var(--font-sans);
}

.roi-table td input.wide {
  width: 80px;
}

.roi-table td input:focus {
  outline: none;
  border-color: var(--ha-accent);
  box-shadow: 0 0 0 2px rgba(251, 255, 5, 0.3);
}

.roi-table .roi-cell-pct {
  display: inline-block;
  margin-left: 0.4em;
  vertical-align: middle;
}

.roi-table td.calculated {
  font-weight: 600;
  color: var(--ha-accent);
}

.roi-table td.saving {
  font-weight: 700;
  color: var(--ha-accent);
}

.roi-table tfoot td {
  font-weight: 700;
  background: var(--ha-navy-900) !important;
  color: var(--ha-accent);
  font-size: 15px;
  border-top: 2px solid var(--ha-accent);
  border-bottom: none;
}

.roi-summary-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--ha-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.roi-summary-grid>.roi-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-radius: 0;
  background: var(--ha-canvas);
  border-bottom: 1px solid var(--ha-border);
}

.roi-summary-row .label {
  font-size: 15px;
  color: var(--ha-ink);
}

.roi-summary-row .value {
  font-size: 18px;
  font-weight: 700;
  color: var(--ha-navy-900);
}

.roi-summary-row.total {
  background: rgba(251, 255, 5, 0.1);
}

.roi-summary-row.total .label {
  font-weight: 600;
  color: var(--ha-navy-900);
}

.roi-summary-row.total .value {
  font-size: 22px;
  color: var(--ha-navy-900);
}

.roi-summary-row.cost {
  background: rgba(197, 48, 48, 0.06);
}

.roi-summary-row.cost .label {
  color: var(--ha-ink);
}

.roi-summary-row.cost .value {
  color: #c0392b;
}

.roi-summary-row.net {
  background: var(--ha-accent);
  padding: 20px;
  border-bottom: 1px solid var(--ha-border);
}

.roi-summary-row.net .label {
  color: var(--ha-net-benefit-ink);
  font-weight: 600;
  font-size: 16px;
}

.roi-summary-row.net .value {
  color: var(--ha-net-benefit-ink);
  font-size: 28px;
}

.roi-bottom-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 0;
}

.roi-bottom-metrics .roi-summary-row {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 14px 12px;
  background: var(--ha-canvas);
  border-right: 1px solid var(--ha-border);
  border-bottom: none;
}

.roi-bottom-metrics .roi-summary-row:last-child {
  border-right: none;
}

.roi-bottom-metrics .roi-summary-row .label {
  font-size: 12px;
}

.roi-bottom-metrics .roi-summary-row .value {
  font-size: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ha-navy-900);
  margin-bottom: 6px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--ha-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font-sans);
  color: var(--ha-ink);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--ha-navy-800);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ha-navy-800) 22%, transparent);
}

/* ═══ PERSONS / ADVISORY ═══ */
.person-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.person-card {
  background: var(--ha-navy-800);
  border: none;
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  gap: 16px;
  transition: all 0.2s;
}

a.person-card {
  text-decoration: none;
  color: inherit;
}

a.person-card:hover,
a.person-card:focus-visible {
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.person-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(251, 255, 5, 0.2);
  border: 2px solid var(--ha-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--ha-accent);
  flex-shrink: 0;
  overflow: hidden;
}

.person-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person-info h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--ha-accent);
  margin-bottom: 2px;
}

.person-info .role {
  font-size: 13px;
  color: var(--ha-accent);
  font-weight: 500;
  margin-bottom: 6px;
  opacity: 0.9;
}

.person-info p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  margin-bottom: 0;
}

/* ═══ RISK ═══ */
.risk-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.risk-card {
  background: var(--ha-canvas);
  border: 1px solid var(--ha-border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all 0.2s;
}

a.risk-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

a.risk-card:hover,
a.risk-card:focus-visible {
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.risk-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-md);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.risk-badge.high {
  background: rgba(197, 48, 48, 0.1);
  color: #c53030;
  border: 1px solid rgba(197, 48, 48, 0.2);
}

.risk-badge.medium {
  background: rgba(180, 83, 9, 0.1);
  color: #b45309;
  border: 1px solid rgba(180, 83, 9, 0.2);
}

.risk-badge.low {
  background: rgba(46, 125, 50, 0.1);
  color: #1b5e20;
  border: 1px solid rgba(46, 125, 50, 0.2);
}

.risk-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--ha-navy-900);
  margin-bottom: 10px;
}

.risk-card p {
  font-size: 15px;
  color: var(--ha-ink);
  line-height: 1.65;
  margin-bottom: 12px;
}

.risk-card .mitigation {
  font-size: 14px;
  color: var(--ha-muted);
  font-weight: 500;
}

/* ═══ COMPARISON TABLE ═══ */
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--ha-border);
  margin: 24px 0;
}

.comparison-table th {
  background: var(--ha-accent);
  color: var(--ha-navy-900);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 16px;
  text-align: center;
  border-bottom: 1px solid var(--ha-navy-900);
}

.comparison-table th:first-child {
  text-align: left;
}

.comparison-table th.highlight-col {
  background: var(--ha-accent);
  color: var(--ha-navy-900);
}

.comparison-table th:not(:last-child) {
  border-right: 1px solid var(--ha-navy-900);
}

.comparison-table td {
  padding: 12px 16px;
  font-size: 13px;
  background: var(--ha-canvas);
  color: var(--ha-ink);
  border-bottom: 1px solid var(--ha-border);
  text-align: center;
}

.comparison-table td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--ha-navy-900);
}

.comparison-table td:not(:last-child) {
  border-right: 1px solid var(--ha-border);
}

.comparison-table td.highlight-col {
  background: rgba(251, 255, 5, 0.06);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table .check {
  color: var(--ha-navy-800);
  font-weight: 600;
}

.comparison-table .cross {
  color: var(--ha-muted);
  font-weight: 500;
}

.comparison-table .partial {
  color: #b45309;
  font-weight: 500;
}

.check {
  color: var(--ha-navy-800);
  font-weight: 700;
}

.cross {
  color: var(--ha-muted);
}

.partial {
  color: #b45309;
}

/* ═══ QUERY FLOW COMPARISON ═══ */
.query-flow-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0 32px;
}

.query-flow-box {
  border-radius: var(--radius-md);
  padding: 24px;
  background: var(--ha-navy-900);
  border: 1px solid var(--ha-accent);
}

.query-flow-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  color: var(--ha-accent);
}

.query-flow-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.qf-step {
  display: inline-block;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(251, 255, 5, 0.45);
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 500;
  color: var(--ha-accent);
}

.qf-arrow {
  font-size: 14px;
  color: var(--ha-accent);
  font-weight: 700;
}

.query-flow-note {
  font-size: 12px;
  color: var(--ha-accent);
  line-height: 1.5;
  font-style: normal;
  font-weight: 500;
}

/* ═══ DETAIL TABLES (inside expandable sections) ═══ */
.detail-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--ha-border);
}

.detail-table th {
  background: var(--ha-accent);
  color: var(--ha-navy-900);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--ha-navy-900);
}

.detail-table th:not(:last-child) {
  border-right: 1px solid var(--ha-navy-900);
}

.detail-table td {
  padding: 12px 14px;
  font-size: 13px;
  background: var(--ha-navy-900);
  color: var(--ha-accent);
  border-bottom: 1px solid var(--ha-accent);
  vertical-align: top;
  line-height: 1.6;
}

.detail-table td:first-child {
  color: var(--ha-accent);
}

.detail-table td:not(:last-child) {
  border-right: 1px solid var(--ha-accent);
}

.detail-table tr:last-child td {
  border-bottom: none;
}

.detail-table tr.detail-table-highlight td {
  background: var(--ha-navy-900) !important;
  font-weight: 700;
  color: var(--ha-accent);
  border-top: 2px solid var(--ha-accent);
}

.detail-table tr.detail-table-highlight td:first-child {
  color: var(--ha-accent);
}

.detail-table .check {
  color: var(--ha-accent);
  font-weight: 600;
}

.detail-table .cross {
  color: var(--ha-accent);
  font-weight: 500;
}

.detail-table .partial {
  color: var(--ha-accent);
  font-weight: 500;
}

/* ═══ COMPARISON PAGE — expandable detail tables (override FAQ white cells) ═══ */
.comparison-detail-sections .faq-answer .detail-table {
  border: 1px solid var(--ha-accent);
}

.comparison-detail-sections .faq-answer .detail-table td {
  background: var(--ha-navy-900) !important;
}

.comparison-detail-sections .faq-answer .detail-table th {
  background: var(--ha-accent) !important;
  color: var(--ha-navy-900) !important;
  border-bottom: 1px solid var(--ha-navy-900) !important;
}

.comparison-detail-sections .faq-answer .detail-table td {
  color: var(--ha-accent);
}

.comparison-detail-sections .faq-answer .detail-table td:first-child {
  color: var(--ha-accent);
}

.comparison-detail-sections .faq-answer .detail-table .check {
  color: var(--ha-accent);
  font-weight: 600;
}

.comparison-detail-sections .faq-answer .detail-table .cross {
  color: var(--ha-accent);
  font-weight: 500;
}

.comparison-detail-sections .faq-answer .detail-table .partial {
  color: var(--ha-accent);
  font-weight: 500;
}

.comparison-detail-sections .faq-answer .detail-table tr.detail-table-highlight td {
  background: var(--ha-navy-900) !important;
  color: var(--ha-accent);
  font-weight: 700;
  border-top: 2px solid var(--ha-accent);
}

.comparison-detail-sections .faq-answer .detail-table tr.detail-table-highlight td:first-child {
  color: var(--ha-accent);
}

/* Shared “Tell me more” accordion chrome + page groups (was inline in HTML) */
.ra-toggle-h3 {
  font-size: 30px !important;
  font-weight: 400 !important;
  line-height: 40px !important;
  color: #8babb3 !important;
  margin: 0 !important;
}
.ra-toggle-icon {
  font-size: 30px !important;
  line-height: 40px;
  color: #9aa4a4;
  width: 21px;
  text-align: center;
  flex-shrink: 0;
}
.ra-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 0;
  cursor: pointer;
  user-select: none;
  background: none;
  box-sizing: border-box;
}
.bc-accordion-group .research-area {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.bc-accordion-group .ra-header {
  order: 0;
  flex-shrink: 0;
}
.bc-accordion-group .research-area-body {
  order: 1;
  min-width: 0;
}
.bc-accordion-group .research-area-body .bc-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.bc-accordion-group .research-area-body .bc-table-wrap .cost-table {
  margin-top: 0;
}
.bc-accordion-group .research-area-body h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--ha-navy-900);
  margin: 0 0 10px;
  line-height: 1.3;
}
.bc-accordion-group .research-area-body p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ha-ink);
  margin: 0 0 14px;
}
.bc-accordion-group .research-area-body ul {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ha-ink);
  margin: 0 0 16px;
  padding-left: 1.25em;
}
.bc-accordion-group .research-area-body ul li {
  margin-bottom: 0.35em;
}
.bc-accordion-group .research-area-body ul li:last-child {
  margin-bottom: 0;
}
.impl-accordion-group .research-area {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.impl-accordion-group .ra-header {
  order: 0;
  flex-shrink: 0;
}
.impl-accordion-group .research-area-body {
  order: 1;
  min-width: 0;
}
.impl-accordion-group .research-area-body h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--ha-navy-900);
  margin: 0 0 10px;
  line-height: 1.3;
}
.impl-accordion-group .research-area-body p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ha-ink);
  margin: 0 0 14px;
}
.impl-accordion-group .research-area-body ul {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ha-ink);
  margin: 0 0 16px;
  padding-left: 1.25em;
}
.impl-accordion-group .research-area-body ul li {
  margin-bottom: 0.35em;
}
.impl-accordion-group .research-area-body ul li:last-child {
  margin-bottom: 0;
}
.comp-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
  align-items: start;
}
@media (max-width: 640px) {
  .comp-cards {
    grid-template-columns: 1fr;
  }
}
.comp-card {
  background: #113b40;
  border-radius: 5px;
  min-height: 396px;
  display: flex;
  flex-direction: column;
  padding: 32px 30px 28px;
  box-sizing: border-box;
}
.comp-label {
  color: #fffff8;
  font-size: 30px;
  font-weight: 400;
  line-height: 43px;
  margin-bottom: 12px;
  display: block;
}
.comp-excerpt {
  font-size: 16px;
  line-height: 28px;
  color: #fffff8;
  font-style: italic;
  flex: 1;
  overflow: hidden;
  position: relative;
  margin-bottom: 16px;
}
.comp-excerpt::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3em;
  background: linear-gradient(transparent, #113b40);
}
.comp-source-badge {
  display: inline-flex;
  padding: 4px 13px;
  justify-content: center;
  align-items: center;
  border-radius: 1000px;
  background: #e8eeea;
  margin-bottom: 16px;
  font-size: 14px;
  color: #113b40;
}
.comp-expand-btn {
  background: none;
  border: none;
  color: #fbff05;
  font-size: 18px;
  font-weight: 500;
  line-height: 28px;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  text-align: left;
}
.comp-expand-btn:hover {
  text-decoration: underline;
}
.comp-full-inline {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
  font-size: 16px;
  line-height: 28px;
  color: #fffff8;
}
.comp-full-inline.open {
  max-height: 380px;
  overflow-y: auto;
  opacity: 1;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}
.comp-full-inline::-webkit-scrollbar {
  width: 5px;
}
.comp-full-inline::-webkit-scrollbar-track {
  background: transparent;
}
.comp-full-inline::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 248, 0.25);
  border-radius: 3px;
}
.comp-full-inline h1,
.comp-full-inline h2,
.comp-full-inline h3 {
  margin: 1em 0 0.5em;
  font-weight: 600;
  color: #fffff8 !important;
}
.comp-full-inline h1 {
  font-size: 18px;
}
.comp-full-inline h2 {
  font-size: 16px;
}
.comp-full-inline h3 {
  font-size: 14px;
}
.comp-full-inline p {
  margin: 0 0 0.8em;
  color: #fffff8;
}
.comp-full-inline ul,
.comp-full-inline ol {
  padding-left: 24px;
  margin: 0 0 0.8em;
}
.comp-full-inline li {
  margin-bottom: 4px;
  color: #fffff8;
}
.comp-full-inline strong {
  font-weight: 600;
}
.comp-full-inline a {
  color: #fbff05;
  text-decoration: underline;
}
.comp-full-inline blockquote {
  border-left: 3px solid rgba(255, 255, 248, 0.3);
  padding-left: 16px;
  margin: 0 0 0.8em;
  color: rgba(255, 255, 248, 0.7);
}
#comparison-section > h2 {
  font-size: 35px;
  font-weight: 400;
  line-height: 55px;
  color: #113b40;
  margin: 0 0 20px;
}
.comp-full-inline table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1em;
  font-size: 14px;
}
.comp-full-inline th,
.comp-full-inline td {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 248, 0.2);
  text-align: left;
  vertical-align: top;
  color: #fffff8;
}
.comp-full-inline th {
  background: rgba(255, 255, 248, 0.1);
  font-weight: 600;
}

.ra-header-main {
  flex: 1;
  min-width: 0;
}
.bc-accordion-group {
  border-top: 1px solid rgba(17, 59, 64, 0.12);
}
.bc-accordion-group > .research-area {
  overflow: visible;
  border-bottom: 1px solid rgba(17, 59, 64, 0.12);
}
.impl-accordion-group {
  border-top: 1px solid rgba(17, 59, 64, 0.12);
  margin-top: 24px;
}
.impl-accordion-group > .research-area {
  overflow: visible;
  border-bottom: 1px solid rgba(17, 59, 64, 0.12);
}
.page-accordion-bordered {
  overflow: visible;
  border-top: 1px solid rgba(17, 59, 64, 0.12);
  border-bottom: 1px solid rgba(17, 59, 64, 0.12);
  margin: 24px 0;
}
.wih-capability-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}
@media (max-width: 720px) {
  .wih-capability-grid {
    grid-template-columns: 1fr;
  }
}
.wih-capability-card {
  padding: 24px 28px;
  background: #e8eeea;
  border-radius: 5px;
}
.wih-capability-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 14px;
  color: #113b40;
}
.wih-capability-card ul {
  margin: 0;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.8;
  color: #113b40;
}
#ditl-areas {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 40px;
  margin-bottom: 24px;
}
#ditl-areas > .research-area {
  overflow: visible;
}
.ditl-role-title {
  font-size: 30px;
  font-weight: 400;
  line-height: 40px;
  color: #8babb3;
}
.wih-ditl-heading {
  margin-top: 40px;
}
.wih-ditl-lead {
  font-size: 16px;
}
.wih-body-copy {
  font-size: 16px;
  line-height: 1.75;
  color: #113b40;
}
.wih-body-copy-tight {
  margin: 0 0 12px;
}
.wih-body-copy-spaced {
  margin: 0 0 16px;
}
.wih-subhead {
  font-size: 16px;
  font-weight: 700;
  color: #113b40;
  margin: 0 0 10px;
}
.wih-list {
  font-size: 16px;
  line-height: 1.8;
  color: #113b40;
  margin: 0 0 20px;
  padding-left: 20px;
}
.wih-list-compact {
  margin: 0 0 12px;
}
.why-section-heading {
  margin-top: 48px;
  font-size: 28px;
}
.why-lead {
  font-size: 16px;
  line-height: 1.65;
}
.why-features-tight {
  margin-bottom: 32px;
  gap: 12px;
}
.comp-question-block {
  display: none;
  margin-bottom: 24px;
}
.comp-question-block.is-open {
  display: block;
}
.comp-question-label {
  font-size: 25px;
  font-weight: 400;
  line-height: 43px;
  color: #113b40;
  margin-bottom: 4px;
}
.comp-question-text {
  font-size: 16px;
  font-weight: 400;
  line-height: 25px;
  color: #113b40;
}

/* ═══ FAQ ═══ */
.faq-accordion-group {
  border-top: 1px solid rgba(17, 59, 64, 0.12);
  margin-top: 8px;
}

.faq-accordion-group .research-area {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: visible;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  border-bottom: 1px solid rgba(17, 59, 64, 0.12);
  margin-bottom: 0;
}

.faq-accordion-group .ra-header {
  order: 0;
  flex-shrink: 0;
}

.faq-accordion-group .research-area-body {
  order: 1;
  min-width: 0;
  padding: 0 0 20px;
  background: none;
}

.faq-accordion-group .research-area-body.collapsed {
  display: none;
}

.faq-accordion-group .research-area-body p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ha-ink);
  margin: 0 0 14px;
}

.faq-accordion-group .research-area-body>p:last-child {
  margin-bottom: 0;
}

.faq-accordion-group .research-area-body h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--ha-navy-900);
  margin: 18px 0 10px;
  line-height: 1.3;
}

.faq-accordion-group .research-area-body h3:first-child {
  margin-top: 0;
}

.faq-accordion-group .research-area-body ul {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ha-ink);
  margin: 0 0 16px;
  padding-left: 1.25em;
}

.faq-accordion-group .research-area-body ul li {
  margin-bottom: 0.35em;
}

.faq-accordion-group .research-area-body ul li:last-child {
  margin-bottom: 0;
}

.faq-accordion-group .research-area-body a {
  color: var(--ha-navy-900);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq-accordion-group .research-area-body a:hover {
  color: var(--ha-navy-800);
}

@media (max-width: 900px) {
  .bc-accordion-group .ra-toggle-h3,
  .impl-accordion-group .ra-toggle-h3,
  .faq-accordion-group .ra-toggle-h3 {
    font-size: 22px !important;
    line-height: 1.3 !important;
  }

  .bc-accordion-group .ra-toggle-icon,
  .impl-accordion-group .ra-toggle-icon,
  .faq-accordion-group .ra-toggle-icon {
    font-size: 22px !important;
    line-height: 1.3 !important;
  }
}

/* Legacy: dark FAQ cards (v1 faq.html) */
.faq-item {
  border: none;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  background: var(--ha-navy-800);
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  cursor: pointer;
  transition: background 0.15s;
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.08);
}

.faq-question h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ha-accent);
  margin: 0;
}

.faq-toggle {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--ha-accent);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
  color: var(--ha-accent);
}

.faq-answer {
  padding: 16px 24px 18px;
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-answer p {
  font-size: 14px;
  color: var(--ha-accent);
  line-height: 1.7;
  margin-bottom: 12px;
}

.faq-answer>p:last-child {
  margin-bottom: 0;
}

.faq-answer h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ha-accent);
  margin: 18px 0 10px;
  line-height: 1.35;
}

.faq-answer ul {
  font-size: 14px;
  color: var(--ha-accent);
  line-height: 1.7;
  margin-bottom: 16px;
  padding-left: 1.2em;
}

.faq-answer .detail-table th {
  background: var(--ha-accent);
  color: var(--ha-navy-900);
  border-bottom: 1px solid var(--ha-navy-900);
}

.faq-answer .detail-table td {
  background: var(--ha-white);
  color: var(--ha-navy-900);
}

.faq-answer .detail-table .check {
  color: var(--ha-navy-800);
  font-weight: 700;
}

.faq-answer .detail-table .cross {
  color: var(--ha-muted);
  font-weight: 500;
}

.faq-answer .detail-table .partial {
  color: #b45309;
  font-weight: 500;
}

/* ═══ TIMELINE ═══ */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--ha-border);
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -29px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ha-navy-800);
  border: 3px solid var(--ha-wash);
}

.timeline-item h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ha-ink);
  margin-bottom: 6px;
}

.timeline-item .timing {
  font-size: 12px;
  color: var(--ha-navy-800);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.timeline-item p {
  font-size: 14px;
  color: var(--ha-muted);
  line-height: 1.65;
}

.cta-block {
  background: var(--ha-navy-900);
  border-radius: var(--radius-md);
  padding: 40px;
  margin-top: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-block::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-block h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--ha-accent);
  margin-bottom: 10px;
  position: relative;
}

.cta-block p {
  color: var(--ha-accent);
  opacity: 0.92;
  margin-bottom: 24px;
  font-size: 15px;
  position: relative;
}

/* ═══ PRICING ═══ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pricing-card {
  background: var(--ha-navy-900);
  border: 1px solid rgba(251, 255, 5, 0.4);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.2s;
  color: var(--ha-accent);
}

a.pricing-card {
  text-decoration: none;
  color: inherit;
}

a.pricing-card:hover,
a.pricing-card:focus-visible {
  border-color: var(--ha-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.pricing-card.popular {
  border: 2px solid var(--ha-accent);
  box-shadow: var(--shadow-md);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ha-accent);
  color: var(--ha-navy-900);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--radius-md);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pricing-tier {
  font-size: 20px;
  font-weight: 700;
  color: var(--ha-accent);
  margin-bottom: 2px;
}

.pricing-subtitle {
  font-size: 13px;
  color: var(--ha-accent);
  margin-bottom: 20px;
  opacity: 0.92;
}

.pricing-amount {
  margin-bottom: 4px;
  line-height: 1;
}

.pricing-amount .currency {
  font-size: 22px;
  font-weight: 700;
  color: var(--ha-accent);
  vertical-align: top;
  line-height: 1.3;
}

.pricing-amount .price {
  font-size: 42px;
  font-weight: 700;
  color: var(--ha-accent);
  letter-spacing: -0.02em;
}

.pricing-amount .period {
  font-size: 15px;
  color: var(--ha-accent);
  font-weight: 400;
  opacity: 0.9;
}

.pricing-annual-note {
  font-size: 12px;
  color: var(--ha-accent);
  margin-bottom: 20px;
  opacity: 0.88;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1;
}

.pricing-features li {
  font-size: 13px;
  color: var(--ha-accent);
  padding: 7px 0;
  border-bottom: 1px solid rgba(251, 255, 5, 0.28);
  position: relative;
  padding-left: 22px;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--ha-accent);
  font-weight: 700;
  font-size: 13px;
}

/* ═══ OTHER ═══ */
ul {
  font-size: 15px;
  color: var(--ha-muted);
  line-height: 1.75;
  margin-bottom: 16px;
  padding-left: 1.2em;
}

/* ═══ CHAT PANEL ═══ */

.chat-tab {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 150;
  background: var(--ha-navy-900);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  padding: 14px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.chat-tab:hover {
  background: var(--ha-navy-800);
  padding-right: 14px;
}

.chat-tab-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 12px;
  font-weight: 600;
  color: var(--ha-white);
  letter-spacing: 0.03em;
  font-family: var(--font-sans);
  white-space: nowrap;
}

.chat-tab-badge {
  background: var(--ha-accent);
  color: var(--ha-navy-900);
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.chat-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--chat-panel-width);
  background: var(--ha-white);
  border-left: 1px solid var(--ha-border);
  box-shadow: -4px 0 20px rgba(7, 49, 53, 0.08);
  z-index: 160;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.chat-panel.open {
  transform: translateX(0);
}

.chat-panel.collapsed {
  transform: translateX(100%);
}

.chat-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--ha-border);
  background: var(--ha-surface-alt);
  flex-shrink: 0;
}

.chat-panel-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ha-navy-900);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.chat-panel-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.chat-panel-subtitle {
  font-size: 12px;
  font-weight: 400;
  color: var(--ha-muted);
  line-height: 1.4;
  margin-top: 4px;
}

.chat-panel-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-top: 2px;
}

.chat-pin-btn,
.chat-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  color: var(--ha-muted);
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-pin-btn:hover,
.chat-close-btn:hover {
  background: var(--ha-surface-alt);
  color: var(--ha-ink);
}

.chat-close-btn {
  font-size: 14px;
}

.chat-pin-btn .pin-icon {
  transition: transform 0.2s ease;
}

.chat-pin-btn.pinned {
  color: var(--ha-navy-800);
  background: var(--ha-wash);
}

.chat-pin-btn.pinned .pin-icon {
  transform: rotate(-45deg);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
  color: var(--ha-muted);
}

.chat-empty-icon {
  font-size: 32px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.chat-empty p {
  font-size: 14px;
  margin-bottom: 4px;
}

.chat-empty .chat-empty-sub {
  font-size: 12px;
  color: var(--ha-muted);
}

.chat-msg {
  display: flex;
  gap: 10px;
  animation: chatFadeIn 0.2s ease-out;
}

@keyframes chatFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ha-navy-800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--ha-navy-800);
  flex-shrink: 0;
}

.chat-msg-avatar.self {
  background: var(--ha-wash);
  color: var(--ha-navy-800);
}

.chat-msg-content {
  flex: 1;
  min-width: 0;
}

.chat-msg-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 2px;
}

.chat-msg-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ha-ink);
}

.chat-msg-time {
  font-size: 11px;
  color: var(--ha-muted);
}

.chat-msg-body {
  font-size: 14px;
  color: var(--ha-muted);
  line-height: 1.5;
  word-wrap: break-word;
  white-space: pre-wrap;
}

.chat-msg-body .mention {
  color: var(--ha-navy-800);
  font-weight: 600;
  background: var(--ha-wash);
  padding: 1px 4px;
  border-radius: var(--radius-md);
}

.chat-date-sep {
  text-align: center;
  font-size: 11px;
  color: var(--ha-muted);
  padding: 8px 0;
  position: relative;
}

.chat-date-sep::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--ha-border);
}

.chat-date-sep span {
  position: relative;
  background: var(--ha-white);
  padding: 0 12px;
}

.chat-input-area {
  border-top: 1px solid var(--ha-border);
  padding: 12px 16px;
  background: var(--ha-surface-alt);
  flex-shrink: 0;
  position: relative;
}

.chat-input-wrapper {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background: var(--ha-white);
  border: 1px solid var(--ha-border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  transition: border-color 0.2s;
}

.chat-input-wrapper:focus-within {
  border-color: var(--ha-navy-800);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ha-navy-800) 18%, transparent);
}

.chat-input {
  flex: 1;
  border: none;
  outline: none;
  resize: none;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ha-ink);
  line-height: 1.5;
  max-height: 120px;
  background: transparent;
}

.chat-input::placeholder {
  color: var(--ha-muted);
}

.chat-send-btn {
  background: var(--ha-navy-900);
  color: var(--ha-white);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
}

.chat-send-btn:hover {
  background: var(--ha-navy-800);
}

.chat-send-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.chat-mention-dropdown {
  position: absolute;
  bottom: 100%;
  left: 16px;
  right: 16px;
  background: var(--ha-white);
  border: 1px solid var(--ha-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 4px;
}

.mention-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.1s;
}

.mention-item:hover,
.mention-item.active {
  background: var(--ha-wash);
}

.mention-item-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ha-navy-800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 600;
  color: var(--ha-navy-800);
  flex-shrink: 0;
}

.mention-item-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--ha-ink);
}

.mention-item-email {
  font-size: 11px;
  color: var(--ha-muted);
  margin-left: auto;
}

/* ═══ ANIMATIONS ═══ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-view {
  animation: fadeIn 0.3s ease-out;
}

/* ═══ RESPONSIVE ═══ */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--ha-navy-900);
  padding: 12px 16px;
  align-items: center;
  gap: 12px;
}

.mobile-header .menu-toggle {
  background: none;
  border: none;
  color: var(--ha-white);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
}

.mobile-header .logo-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--ha-white);
}

.mobile-header .logo-text em {
  font-style: normal;
  color: var(--ha-navy-800);
  font-weight: 400;
}

@media (max-width: 1024px) {
  .hero-split {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
  }

  .hero-right {
    order: -1;
    justify-content: center;
  }

  .hero-main-image {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
  }

  .hero-left {
    max-width: none;
  }

  .hero-subtitle {
    max-width: none;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main {
    margin-left: 0;
  }

  .mobile-header {
    display: flex;
  }

  body {
    padding-top: 52px;
  }

  .hero,
  .content-section,
  .page-body,
  .page-header,
  .profile-contact-block {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  .profile-contact-block .profile-links {
    flex-direction: column;
  }

  .stats-row,
  .features-grid,
  .person-grid,
  .risk-grid,
  .roi-grid,
  .query-flow-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    padding: 24px 24px 28px;
    min-height: unset;
  }

  .feature-card h3 {
    font-size: 20px;
    line-height: 1.35;
  }

  .question-card {
    padding: 24px 24px 28px;
    min-height: unset;
  }

  .question-card h3 {
    font-size: 20px;
    line-height: 1.35;
  }

  .research-area-title h3 {
    font-size: 18px;
    line-height: 1.35;
  }

  .area-number {
    font-size: 18px;
    line-height: 1.35;
  }

  .research-provider-item--wide {
    min-height: unset;
    margin-top: 0;
  }

  .hero-heading,
  .page-header h1 {
    font-size: 32px;
    line-height: 1.2;
  }

  .stat-value {
    font-size: 36px;
    line-height: 1.2;
  }

  .stat-card {
    height: auto;
    min-height: 100px;
  }

  .roi-hero-result {
    grid-template-columns: repeat(2, 1fr);
  }

  .roi-input-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .roi-slider-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .roi-table {
    font-size: 12px;
  }

  .roi-hero-card .value {
    font-size: 20px;
  }

  .roi-bottom-metrics {
    grid-template-columns: 1fr;
  }

  .roi-bottom-metrics .roi-summary-row {
    border-right: none;
    border-bottom: 1px solid var(--ha-border);
  }

  .roi-bottom-metrics .roi-summary-row:last-child {
    border-bottom: none;
  }

  .detail-table {
    font-size: 12px;
  }

  .detail-table th,
  .detail-table td {
    padding: 8px 10px;
  }

  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer {
    padding: 20px 24px;
    flex-direction: column;
    gap: 8px;
  }

  :root {
    --chat-panel-width: 100vw;
  }

  .chat-tab {
    top: auto;
    bottom: 20px;
    transform: none;
  }
}

/* ═══ ONBOARDING FORM ═══ */
.onboarding-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 8px;
}

.onboarding-contact-grid .form-group {
  margin-bottom: 10px;
}

.onboarding-checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 8px;
  font-size: 13px;
  color: var(--ha-muted);
  cursor: pointer;
}

.onboarding-checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--ha-navy-800);
  cursor: pointer;
}

/* Tier selector — radio cards */
.tier-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.tier-option {
  position: relative;
}

.tier-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.tier-option label {
  display: block;
  padding: 18px 16px;
  border: 2px solid var(--ha-border);
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--ha-white);
}

.tier-option label:hover {
  border-color: var(--ha-navy-800);
}

.tier-option input:checked+label {
  border-color: var(--ha-navy-800);
  background: rgba(139, 171, 179, 0.08);
  box-shadow: 0 0 0 1px var(--ha-navy-800);
}

.tier-option .tier-name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--ha-navy-900);
  margin-bottom: 2px;
}

.tier-option .tier-desc {
  display: block;
  font-size: 12px;
  color: var(--ha-muted);
}

/* EULA panel */
.eula-panel {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid var(--ha-border);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  background: var(--ha-white);
  font-size: 13px;
  line-height: 1.75;
  color: var(--ha-muted);
  margin-bottom: 20px;
}

.eula-panel h2 {
  font-size: 18px;
  color: var(--ha-navy-900);
  margin: 0 0 4px;
}

.eula-panel h3 {
  font-size: 14px;
  color: var(--ha-navy-800);
  margin: 20px 0 8px;
}

.eula-panel p {
  margin: 0 0 12px;
}

.eula-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--ha-white);
  color: var(--ha-navy-800);
  border: 2px solid var(--ha-border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
  font-family: var(--font-sans);
}

.btn-secondary:hover {
  border-color: var(--ha-navy-800);
  background: rgba(139, 171, 179, 0.05);
}

/* Signature field */
.signature-section {
  background: var(--ha-surface-alt);
  border: 1px solid var(--ha-border);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-top: 24px;
}

.signature-field {
  margin-bottom: 16px;
}

.signature-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ha-muted);
  margin-bottom: 8px;
}

.signature-field input {
  width: 100%;
  padding: 14px 18px;
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 26px;
  color: var(--ha-navy-900);
  border: 2px dashed var(--ha-navy-800);
  border-radius: var(--radius-sm);
  background: var(--ha-white);
  box-sizing: border-box;
}

.signature-field input:focus {
  outline: none;
  border-style: solid;
  border-color: var(--ha-navy-800);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ha-navy-800) 22%, transparent);
}

.signature-field input::placeholder {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ha-muted);
}

.eula-agree-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--ha-muted);
  line-height: 1.5;
  cursor: pointer;
}

.eula-agree-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  flex-shrink: 0;
  accent-color: var(--ha-navy-800);
  cursor: pointer;
}

.btn-sign {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--ha-accent);
  color: var(--ha-navy-900);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font-sans);
}

.btn-sign:hover:not(:disabled) {
  background: #e9ed04;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(251, 255, 5, 0.3);
}

.btn-sign:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* Post-signing confirmation */
.onboarding-success {
  background: rgba(36, 77, 59, 0.06);
  border: 2px solid var(--ha-navy-800);
  border-radius: var(--radius-md);
  padding: 36px 40px;
  text-align: center;
  margin-top: 32px;
}

.onboarding-success h2 {
  font-size: 22px;
  color: var(--ha-navy-800);
  margin: 0 0 8px;
}

.onboarding-success p {
  font-size: 14px;
  color: var(--ha-muted);
  line-height: 1.7;
  margin: 0 0 8px;
}

.onboarding-success .signed-detail {
  font-size: 12px;
  color: var(--ha-muted);
  margin-top: 16px;
}

/* Save indicator */
.save-indicator {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  z-index: 50;
  transition: all 0.3s;
  font-family: var(--font-sans);
  pointer-events: none;
}

.save-indicator.saved {
  background: rgba(36, 77, 59, 0.1);
  color: var(--ha-navy-800);
  opacity: 1;
}

.save-indicator.saving {
  background: var(--ha-accent-soft);
  color: var(--ha-muted);
  opacity: 1;
}

.save-indicator.hidden {
  opacity: 0;
}

/* Section numbering for onboarding */
.onboarding-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--ha-navy-900);
  color: var(--ha-accent);
  border: 1px solid var(--ha-navy-900);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  margin-right: 10px;
  flex-shrink: 0;
}

/* form inputs keep accent-soft background and yellow border — clear interactive signal on light bg */
.roi-section-body .form-group input,
.roi-section-body .form-group select {
  background: var(--ha-accent-soft);
  color: var(--ha-navy-900);
  border: 2px solid var(--ha-accent);
  font-weight: 600;
}

.roi-section-body .form-group input::placeholder {
  color: color-mix(in srgb, var(--ha-navy-900) 42%, transparent);
  font-weight: 400;
}

.roi-section-body .form-group input:focus,
.roi-section-body .form-group select:focus {
  outline: none;
  border-color: var(--ha-accent);
  box-shadow: 0 0 0 3px rgba(251, 255, 5, 0.25);
}

/* checkboxes: white box, navy border; filled navy with yellow tick when checked */
.roi-section-body .onboarding-checkbox-row input[type="checkbox"],
.roi-section-body .eula-agree-row input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin: 0;
  border: 2px solid var(--ha-border);
  border-radius: var(--radius-sm);
  background: var(--ha-white);
  cursor: pointer;
  transition: box-shadow 0.15s;
}

.roi-section-body .eula-agree-row input[type="checkbox"] {
  margin-top: 1px;
}

.roi-section-body .onboarding-checkbox-row input[type="checkbox"]:checked,
.roi-section-body .eula-agree-row input[type="checkbox"]:checked {
  background-color: var(--ha-navy-900);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23fbff05' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2.5 6l2.5 3 4.5-5.5'/%3E%3C/svg%3E");
  background-size: 11px 11px;
  background-position: center;
  background-repeat: no-repeat;
  border-color: var(--ha-navy-900);
}

.roi-section-body .onboarding-checkbox-row input[type="checkbox"]:focus-visible,
.roi-section-body .eula-agree-row input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(7, 49, 53, 0.2);
}

/* signature section: subtle top rule, no dark background */
.roi-section-body .signature-section {
  background: transparent;
  border: none;
  border-top: 1px solid var(--ha-border);
  border-radius: 0;
  padding: 24px 0 0;
  margin-top: 24px;
}

/* signature input keeps accent-soft bg and yellow border — deliberate sign-here emphasis */
.roi-section-body .signature-field input {
  background: var(--ha-accent-soft);
  border: 2px solid var(--ha-accent);
  border-style: solid;
  color: var(--ha-navy-900);
}

.roi-section-body .signature-field input:focus {
  border-color: var(--ha-accent);
  box-shadow: 0 0 0 3px rgba(251, 255, 5, 0.25);
}

.roi-section-body .signature-field input::placeholder {
  color: color-mix(in srgb, var(--ha-navy-900) 42%, transparent);
}

/* Responsive overrides */
@media (max-width: 768px) {
  .onboarding-contact-grid {
    grid-template-columns: 1fr;
  }

  .tier-selector {
    grid-template-columns: 1fr 1fr;
  }

  .eula-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .signature-section {
    padding: 20px;
  }

  .roi-section-body .signature-section {
    padding: 20px 0 0;
  }

  .onboarding-success {
    padding: 24px 20px;
  }
}

/* ═══ OUR TEAM & WHY HOUSINGAI (v2 nav extras) ═══ */
.exec-summary {
  background: linear-gradient(135deg, var(--ha-wash), var(--ha-wash));
  border-radius: var(--radius-md);
  padding: 36px 40px;
  margin-bottom: 40px;
}

.exec-summary h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--ha-navy-900);
  margin-bottom: 16px;
}

.exec-summary p {
  font-size: 18px;
  color: var(--ha-muted);
  line-height: 1.65;
  margin-bottom: 0;
}

.exec-summary .exec-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.exec-summary .exec-stat {
  text-align: center;
  padding: 16px;
  background: var(--ha-white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.exec-summary .exec-stat .value {
  font-size: 32px;
  font-weight: 700;
  color: var(--ha-navy-900);
}

.exec-summary .exec-stat .label {
  font-size: 14px;
  color: var(--ha-muted);
  margin-top: 6px;
}

.exec-summary.dark {
  background: var(--ha-navy-800);
  border: 1px solid var(--ha-accent);
}

.exec-summary.dark h2,
.exec-summary.dark p {
  color: var(--ha-accent);
}

.exec-summary.dark .exec-stat,
.exec-summary.dark .stat-card {
  background: var(--ha-navy-900);
  border: 1px solid rgba(251, 255, 5, 0.35);
  box-shadow: none;
}

.exec-summary.dark .exec-stat .value,
.exec-summary.dark .exec-stat .label,
.exec-summary.dark .stat-value,
.exec-summary.dark .stat-label {
  color: var(--ha-accent);
}

/* Pillar grid — business case "four dimensions" 2x2 */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 20px 0 28px;
}

.pillar-card {
  background: #E8EEEA;
  border: none;
  border-radius: 5px;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pillar-card .pillar-icon {
  font-size: 26px;
  line-height: 1;
}

.pillar-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--ha-navy-900);
  margin: 0;
}

.pillar-card p {
  font-size: 15px;
  color: var(--ha-ink);
  line-height: 1.65;
  margin: 0;
}

.pillar-card .pillar-stat {
  font-size: 13px;
  font-weight: 600;
  color: #113B40;
  background: rgba(17, 59, 64, 0.08);
  border: 1px solid rgba(17, 59, 64, 0.15);
  border-radius: 1000px;
  display: inline-block;
  padding: 4px 14px;
  margin-top: 6px;
  align-self: flex-start;
}

@media (max-width: 640px) {
  .pillar-grid {
    grid-template-columns: 1fr;
  }
}

.detail-section {
  margin: 24px 0;
}

.detail-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--ha-navy-800);
  border: 1px solid var(--ha-accent);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  color: var(--ha-accent);
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font-sans);
}

.detail-toggle:hover {
  border-color: var(--ha-accent);
  background: var(--ha-navy-900);
}

.detail-toggle .arrow {
  transition: transform 0.2s;
  font-size: 11px;
}

.detail-section.open .detail-toggle .arrow {
  transform: rotate(90deg);
}

.detail-body {
  display: none;
  margin-top: 20px;
  padding: 32px;
  background: var(--ha-navy-900);
  border: 1px solid var(--ha-accent);
  border-radius: var(--radius-md);
  color: var(--ha-accent);
}

.detail-body h3 {
  color: var(--ha-accent);
}

.detail-body p {
  color: var(--ha-accent);
}

.detail-body ul {
  color: var(--ha-accent);
}

.detail-body li {
  color: var(--ha-accent);
}

.detail-section.open .detail-body {
  display: block;
}

.compare-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 28px 0;
}

.compare-card {
  border-radius: var(--radius-md);
  padding: 28px;
}

.compare-card.neutral {
  background: var(--ha-surface-alt);
  border: 1px solid var(--ha-border);
}

.compare-card.positive {
  background: var(--ha-wash);
  border: 1px solid rgba(139, 171, 179, 0.3);
}

.compare-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 18px;
}

.compare-card.neutral h3 {
  color: var(--ha-muted);
}

.compare-card.positive h3 {
  color: var(--ha-navy-800);
}

.compare-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.compare-card li {
  font-size: 16px;
  line-height: 1.6;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
  padding-left: 28px;
}

.compare-card li:last-child {
  border-bottom: none;
}

.compare-card.neutral li {
  color: var(--ha-muted);
}

.compare-card.positive li {
  color: var(--ha-ink);
}

.compare-card.neutral li::before {
  content: '~';
  position: absolute;
  left: 0;
  color: var(--ha-muted);
  font-weight: 700;
}

.compare-card.positive li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--ha-navy-800);
  font-weight: 700;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.team-card {
  background: var(--ha-white);
  border: 1px solid var(--ha-border);
  border-radius: var(--radius-md);
  padding: 36px;
  text-align: center;
  transition: all 0.2s;
}

.team-card:hover {
  border-color: var(--ha-navy-800);
  box-shadow: var(--shadow-md);
}

.team-card .team-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  margin: 0 auto 22px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ha-wash-strong), var(--ha-wash-strong));
}

.team-card .team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--ha-navy-900);
  margin-bottom: 6px;
}

.team-card .team-role {
  font-size: 15px;
  color: var(--ha-navy-800);
  font-weight: 500;
  margin-bottom: 12px;
}

.team-card p {
  font-size: 15px;
  color: var(--ha-muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .exec-summary .exec-stats {
    grid-template-columns: 1fr;
  }

  .compare-section {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.page-brand-dark .exec-summary {
  background: var(--ha-navy-800);
  border: 1px solid var(--ha-accent);
}

.page-brand-dark .exec-summary h2,
.page-brand-dark .exec-summary p {
  color: var(--ha-accent);
}

.page-brand-dark .exec-summary .exec-stat {
  background: var(--ha-navy-900);
  border: 1px solid rgba(251, 255, 5, 0.35);
  box-shadow: none;
}

.page-brand-dark .exec-summary .exec-stat .value,
.page-brand-dark .exec-summary .exec-stat .label {
  color: var(--ha-accent);
}

.page-brand-dark .compare-card.neutral,
.page-brand-dark .compare-card.positive {
  background: var(--ha-navy-900);
  border: 1px solid var(--ha-accent);
}

.page-brand-dark .compare-card h3,
.page-brand-dark .compare-card li {
  color: var(--ha-accent);
}

.page-brand-dark .compare-card li {
  border-bottom-color: rgba(251, 255, 5, 0.22);
}

.page-brand-dark .compare-card.neutral li::before,
.page-brand-dark .compare-card.positive li::before {
  color: var(--ha-accent);
}

.page-brand-dark .detail-toggle {
  background: var(--ha-navy-900);
  color: var(--ha-accent);
  border: 1px solid var(--ha-accent);
}

.page-brand-dark .detail-toggle:hover {
  background: var(--ha-navy-800);
  border-color: var(--ha-accent);
}

.page-brand-dark .detail-body {
  background: var(--ha-navy-900);
  border: 1px solid var(--ha-accent);
  color: var(--ha-accent);
}

.page-brand-dark .detail-body p,
.page-brand-dark .detail-body h3,
.page-brand-dark .detail-body li,
.page-brand-dark .detail-body strong {
  color: var(--ha-accent);
}

.page-brand-dark .detail-body a {
  color: var(--ha-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-brand-dark .detail-body a:hover {
  color: var(--ha-white);
}

.page-brand-dark .team-card {
  background: var(--ha-navy-900);
  border: 1px solid var(--ha-accent);
}

.page-brand-dark .team-card:hover {
  border-color: var(--ha-accent);
  box-shadow: var(--shadow-lg);
}

.page-brand-dark .team-card .team-photo {
  background: var(--ha-navy-800);
  border: 2px solid var(--ha-accent);
}

.page-brand-dark .team-card h3,
.page-brand-dark .team-card .team-role,
.page-brand-dark .team-card p {
  color: var(--ha-accent);
}

.page-brand-dark .team-card .team-role {
  opacity: 0.92;
}

.page-brand-dark .highlight-box {
  border-radius: var(--radius-md);
  border: 1px solid var(--ha-accent);
}

.page-brand-dark .feature-card,
.page-brand-dark .risk-card {
  background: var(--ha-navy-800);
  border: 1px solid var(--ha-accent);
}

.page-brand-dark .feature-card h3 {
  color: var(--ha-accent);
}

.page-brand-dark .feature-card p {
  color: var(--ha-accent);
}

.page-brand-dark .comparison-table,
.page-brand-dark .cost-table {
  border: 1px solid var(--ha-accent);
}

/* ═══ D2: FAQ CALLOUT COMPONENT ═══ */
.faq-callout {
  background: var(--ha-surface-alt);
  border: 1px solid var(--ha-border);
  border-radius: var(--radius-md);
  margin: 16px 0;
  overflow: hidden;
}

.faq-callout-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--ha-ink);
  text-align: left;
  gap: 12px;
}

.faq-callout-toggle:hover {
  background: var(--ha-wash);
}

.faq-callout-toggle .faq-arrow {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--ha-muted);
  transition: transform 0.2s;
}

.faq-callout.open .faq-callout-toggle .faq-arrow {
  transform: rotate(180deg);
}

.faq-callout-body {
  display: none;
  padding: 0 18px 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ha-ink);
}

.faq-callout.open .faq-callout-body {
  display: block;
}

.page-brand-dark .faq-callout {
  border: 1px solid var(--ha-accent);
  background: rgba(255, 255, 255, 0.05);
}

.page-brand-dark .faq-callout-toggle {
  color: var(--ha-accent);
}

.page-brand-dark .faq-callout-body {
  color: var(--ha-accent-soft);
}

.white-box {
  width: 100px;
  height: 80px;
  overflow: hidden;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.white-box img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}