/* ============================================================
   AI Answer Tracking — Global design system
   Mobile-first · 8pt rhythm · max content width 1290px · no purple
   ============================================================ */

:root {
  /* ============================================================
     Brand palette — "Luminous Professionalism"
     Primary #002780 · Secondary #050C26 · Accent #001F27 · Neutral #fff
     Deep blue on white. No purple anywhere. ADA AA contrast on text.
     ============================================================ */
  --c-bg: #f4f7fd;
  /* subtle cool page tint so white cards lift */
  --c-surface: #ffffff;
  /* pure white — image sections sit on this */
  --c-surface-alt: #eef2fb;
  /* light blue tint for alternating sections */
  --c-ink: #0a1230;
  /* deep navy ink (near secondary) */
  --c-ink-soft: #0b0c0e;
  /* strong slate — AA on white (~10:1) */
  --c-ink-muted: #0b0c0e;
  /* medium slate — AA on white (~6.4:1), never washed out */
  --c-brand: #002780;
  /* PRIMARY deep blue */
  --c-brand-strong: #001a5c;
  /* hover / pressed */
  --c-brand-soft: #e4e9f7;
  /* light blue fill for badges & soft surfaces */
  --c-secondary: #050C26;
  /* SECONDARY deep navy — dark sections, footer */
  --c-accent: #001F27;
  /* ACCENT dark teal — gradient companion */
  --c-accent-soft: #dfeef0;
  /* light teal fill */
  --c-success: #11724a;
  --c-success-soft: #d8f0e4;
  --c-warning: #8a5a00;
  --c-warning-soft: #fbeecd;
  --c-danger: #b3261e;
  --c-danger-soft: #f8dedc;
  --c-info: #00528a;
  --c-info-soft: #dcecfa;
  --c-border: #dde3f1;
  /* blue-tinted hairline */
  --c-focus: #002780;
  --c-light-green: #6fe0c8;
  /* luminous mint green accent */
  --c-light-green-soft: #eafbf7;
  /* soft mint green fill */

  /* Premium dark gradient (navy → blue → teal) used on authority sections */
  --grad-brand: linear-gradient(150deg, #050C26 0%, #002780 56%, #001F27 100%);

  /* Type tokens */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --fs-xs: 16px;
  --fs-sm: 1.1rem;
  --fs-base: 17px;
  --fs-lg: 1.55rem;
  --fs-xl: 1.7rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.625rem;
  --lh-tight: 1.2;
  --lh-base: 1.6;

  /* Spacing (8pt) */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4rem;
  --sp-7: 6rem;
  --sp-8: 5rem;
  /* 80px — standard section rhythm */
  --sp-section: 5rem;
  /* 80px top/bottom on every section (desktop) */

  /* Shape & elevation */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 3px rgba(22, 36, 31, 0.08);
  --shadow: 0 6px 24px rgba(22, 36, 31, 0.09);
  --shadow-lg: 0 14px 44px rgba(22, 36, 31, 0.13);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.7, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  /* smooth in-out for hovers/reveals */
  --ease-float: cubic-bezier(0.45, 0, 0.55, 1);
  /* sine-like for idle float */
  --t-fast: 160ms;
  --t-base: 280ms;
  --t-slow: 460ms;

  --maxw: 1290px;
}

/* ---- Reset & base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--c-ink);
  background: var(--c-bg);
}

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

h1,
h2,
h3,
h4 {
  line-height: var(--lh-tight);
  margin: 0 0 var(--sp-2);
  color: var(--c-ink);
  font-weight: 500;
}

h1 {
  font-size: var(--fs-2xl);
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--fs-xl);
}

h3 {
  font-size: var(--fs-base);
}

p {
  margin: 0 0 var(--sp-2);

}

a {
  color: var(--c-brand);
}

a:hover {
  color: var(--c-brand-strong);
}

:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--c-brand);
  color: #fff;
  padding: var(--sp-1) var(--sp-2);
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (min-width: 768px) {
  h1 {
    font-size: var(--fs-3xl);
  }

  h2 {
    font-size: var(--fs-2xl);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--sp-2);
}

.container--narrow {
  max-width: 760px;
}

.container--wide {
  max-width: 1180px;
}

/* Standard section rhythm: comfortable on mobile, 80px top/bottom on desktop. */
.section {
  padding-block: var(--sp-6);
}

.section--tight {
  padding-block: var(--sp-4);
}

.section--white {
  background: var(--c-surface);
}

.section--alt {
  background: var(--c-surface-alt);
}

.section--ink {
  background: var(--c-secondary);
  color: #eaf0ff;
}

.section--ink h1,
.section--ink h2,
.section--ink h3,
.section--ink p {
  color: inherit;
}

.section--brand {
  background: var(--grad-brand);
  color: #eef3ff;
}

.section--brand h1,
.section--brand h2,
.section--brand h3,
.section--brand p {
  color: inherit;
}

/* Subtle radial texture for premium depth on brand sections. */
.section--brand.has-glow {
  position: relative;
  overflow: hidden;
}

.section--brand.has-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(60% 80% at 85% 10%, rgba(255, 255, 255, 0.10), transparent 60%),
    radial-gradient(40% 60% at 10% 100%, rgba(0, 31, 39, 0.30), transparent 60%);
}

.section--brand.has-glow>.container {
  position: relative;
  z-index: 1;
}

.grid {
  display: grid;
  gap: var(--sp-3);
}

/* Auto-fit grid: 2-up on phones, scales to 4-up on desktop — ideal for stat/KPI rows. */
.grid--fit {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--sp-2);
}

@media (min-width: 768px) {
  .section {
    padding-block: var(--sp-section);
  }

  .section--tight {
    padding-block: var(--sp-5);
  }

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

  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .grid--fit {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

.stack>*+* {
  margin-top: var(--sp-2);
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
  align-items: center;
}

.between {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  align-items: center;
  justify-content: space-between;
}

/* ---- Section heading cluster (reusable, answer-first) ---- */
.section-head {
  max-width: 720px;
  margin: 0 auto var(--sp-4);
  text-align: center;
}

.section-head--left {
  margin-inline: 0;
  text-align: left;
}

.section-head h2 {
  margin-bottom: var(--sp-1);
}

.section-head p {
  font-size: var(--fs-base);
  color: var(--c-ink-muted);
  margin: 0;
}

.section--brand .section-head p,
.section--ink .section-head p {
  color: inherit;
  opacity: 0.9;
}

.eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-accent);
  background: var(--c-accent-soft);
  border-radius: 999px;
  padding: 0.3em 1em;
  margin-bottom: var(--sp-2);
}

.section--brand .eyebrow,
.section--ink .eyebrow {
  color: #bcd2ff;
  background: rgba(255, 255, 255, 0.14);
}

/* ---- Header / nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  min-height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 600;
  font-size: var(--fs-base);
  color: var(--c-ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo:hover {
  text-decoration: none;
}

.logo__img {
  height: 68px;
  width: auto;
  display: block;
}

.logo span {
  color: var(--c-brand);
}

@media (min-width: 768px) {
  .logo__img {
    height: 64px;
  }
}

.nav {
  display: none;
}

.nav a {
  text-decoration: none;
  color: var(--c-ink-soft);
  font-weight: 600;
  font-size: var(--fs-sm);
  padding: var(--sp-1);
  border-radius: var(--radius-sm);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--c-brand);
  background: var(--c-brand-soft);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  background: var(--c-surface);
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--c-ink);
}

@media (min-width: 900px) {
  .nav {
    display: flex;
    gap: var(--sp-1);
    align-items: center;
  }

  .nav-toggle {
    display: none;
  }
}

.nav--open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  padding: var(--sp-2);
  box-shadow: var(--shadow);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.75em 1.5em;
  font: inherit;
  font-weight: 500;
  font-size: var(--fs-sm);
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--c-brand);
  color: #fff;
}

.btn--primary:hover {
  background: var(--c-brand-strong);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn--secondary {
  background: var(--c-surface);
  color: var(--c-brand);
  border-color: var(--c-brand);
}

.btn--secondary:hover {
  background: var(--c-brand-soft);
}

.btn--ghost {
  background: transparent;
  color: var(--c-ink-soft);
}

.btn--ghost:hover {
  background: var(--c-surface-alt);
  color: var(--c-ink);
}

.btn--danger {
  background: var(--c-danger);
  color: #fff;
}

.btn--danger:hover {
  background: #962f25;
  color: #fff;
}

.btn--sm {
  min-height: 38px;
  padding: 0.4em 1em;
  font-size: var(--fs-xs);
}

.btn--lg {
  min-height: 56px;
  font-size: var(--fs-base);
  padding: 0.9em 2em;
}

.btn--block {
  width: 100%;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn .spinner {
  width: 1em;
  height: 1em;
}

/* ---- Forms ---- */
.field {
  margin-bottom: var(--sp-2);
}

.field label {
  display: block;
  font-weight: 600;
  font-size: var(--fs-sm);
  margin-bottom: 0.375rem;
  color: var(--c-ink);
}

.input,
select.input,
textarea.input {
  width: 100%;
  min-height: 48px;
  padding: 0.65em 0.9em;
  font: inherit;
  color: var(--c-ink);
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--t-fast) var(--ease);
}

.input:hover {
  border-color: var(--c-ink-muted);
}

.input:focus {
  border-color: var(--c-brand);
  outline: none;
  box-shadow: 0 0 0 3px var(--c-brand-soft);
}

.input[aria-invalid="true"] {
  border-color: var(--c-danger);
}

.field__error {
  color: var(--c-danger);
  font-size: var(--fs-xs);
  margin-top: 0.25rem;
  font-weight: 600;
}

.field__hint {
  color: var(--c-ink-muted);
  font-size: var(--fs-xs);
  margin-top: 0.25rem;
}

/* ---- Cards ---- */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: var(--sp-3);
  box-shadow: var(--shadow-sm);
}

.card--hover {
  transition: box-shadow var(--t-slow) var(--ease-soft), transform var(--t-slow) var(--ease-soft), border-color var(--t-base) var(--ease-soft);
  will-change: transform;
}

.card--hover:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  border-color: var(--c-brand-soft);
}

@media (hover: none) {
  .card--hover:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
  }
}

.card--accent {
  border-top: 4px solid var(--c-brand);
}

.card__title {
  font-size: var(--fs-base);
  margin-bottom: var(--sp-1);
}

/* ---- Badges / chips ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.2em 0.7em;
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
}

.badge--brand {
  background: var(--c-brand-soft);
  color: var(--c-brand-strong);
}

.badge--success {
  background: var(--c-success-soft);
  color: var(--c-success);
}

.badge--warning {
  background: var(--c-warning-soft);
  color: var(--c-warning);
}

.badge--danger {
  background: var(--c-danger-soft);
  color: var(--c-danger);
}

.badge--info {
  background: var(--c-info-soft);
  color: var(--c-info);
}

.badge--neutral {
  background: var(--c-surface-alt);
  color: var(--c-ink-soft);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
}

/* Confidence chips (discovery review) */
.confidence {
  font-size: var(--fs-xs);
  font-weight: 500;
}

.confidence--high {
  color: var(--c-success);
}

.confidence--medium {
  color: var(--c-warning);
}

.confidence--low {
  color: var(--c-danger);
}

/* ---- Alerts / flash ---- */
.alert {
  padding: var(--sp-2);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-bottom: var(--sp-2);
  border: 1px solid transparent;
}

.alert--success {
  background: var(--c-success-soft);
  color: var(--c-success);
  border-color: #b8e3c8;
}

.alert--error {
  background: var(--c-danger-soft);
  color: var(--c-danger);
  border-color: #efc5c0;
}

.alert--info {
  background: var(--c-info-soft);
  color: var(--c-info);
  border-color: #bcdff2;
}

/* ---- Toasts ---- */
.toast-region {
  position: fixed;
  bottom: var(--sp-2);
  left: var(--sp-2);
  right: var(--sp-2);
  z-index: 90;
  display: grid;
  gap: var(--sp-1);
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: var(--c-ink);
  color: #fff;
  padding: var(--sp-2);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: var(--fs-sm);
  font-weight: 600;
  max-width: 480px;
  animation: toast-in var(--t-base) var(--ease);
}

.toast--error {
  background: var(--c-danger);
}

.toast--success {
  background: var(--c-success);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 768px) {
  .toast-region {
    left: auto;
    width: 420px;
  }
}

/* ---- Progress ---- */
.progress {
  height: 10px;
  background: var(--c-surface-alt);
  border-radius: 999px;
  overflow: hidden;
}

.progress__bar {
  height: 100%;
  background: var(--c-brand);
  border-radius: 999px;
  transition: width 600ms var(--ease);
  min-width: 4px;
}

.spinner {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid var(--c-brand-soft);
  border-top-color: var(--c-brand);
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---- Score ring & stat tiles ---- */
.score-card {
  text-align: center;
  padding: var(--sp-3);
}

.score-card__value {
  font-size: 3.25rem;
  font-weight: 600;
  line-height: 1;
  color: var(--c-brand);
  letter-spacing: -0.03em;
}

.score-card__denom {
  font-size: var(--fs-base);
  color: var(--c-ink-muted);
  font-weight: 600;
}

.stat {
  padding: var(--sp-2);
  border-radius: var(--radius-sm);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
}

.stat__value {
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--c-ink);
  line-height: 1.2;
}

.stat__label {
  font-size: var(--fs-xs);
  color: var(--c-ink-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat__delta--up {
  color: var(--c-success);
  font-weight: 500;
  font-size: var(--fs-sm);
}

.stat__delta--down {
  color: var(--c-danger);
  font-weight: 500;
  font-size: var(--fs-sm);
}

/* ---- Tables (responsive: stack to cards on mobile) ---- */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
  background: var(--c-surface);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}

.table th,
.table td {
  text-align: left;
  padding: var(--sp-2);
  border-bottom: 1px solid var(--c-border);
  vertical-align: top;
}

.table th {
  background: var(--c-surface-alt);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--c-ink-muted);
}

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

.table tbody tr:hover {
  background: #fbfdfc;
}

/* ---- Accordion (FAQ) ---- */
.accordion {
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-surface);
  overflow: hidden;
}

.accordion__item+.accordion__item {
  border-top: 1px solid var(--c-border);
}

.accordion__trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-2);
  width: 100%;
  padding: var(--sp-2) var(--sp-3);
  background: none;
  border: 0;
  font: inherit;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  color: var(--c-ink);
  min-height: 56px;
}

.accordion__trigger:hover {
  background: var(--c-surface-alt);
}

.accordion__icon {
  transition: transform var(--t-base) var(--ease);
  flex-shrink: 0;
  color: var(--c-brand);
  font-weight: 600;
}

.accordion__trigger[aria-expanded="true"] .accordion__icon {
  transform: rotate(45deg);
}

.accordion__panel {
  padding: 0 var(--sp-3) var(--sp-3);
  color: var(--c-ink-soft);
}

.accordion__panel[hidden] {
  display: none;
}

/* ---- Review cards (discovery) ---- */
.review-item {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  align-items: flex-start;
  padding: var(--sp-2);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  background: var(--c-surface);
  transition: opacity var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}

.review-item__body {
  flex: 1 1 240px;
  min-width: 0;
}

.review-item__value {
  font-weight: 600;
  color: var(--c-ink);
  overflow-wrap: anywhere;
}

.review-item__meta {
  font-size: var(--fs-xs);
  color: var(--c-ink-muted);
  margin-top: 0.25rem;
}

.review-item__actions {
  display: flex;
  gap: var(--sp-1);
  flex-wrap: wrap;
}

.review-item--approved {
  border-color: var(--c-success);
  background: #f4fbf7;
}

.review-item--rejected {
  opacity: 0.45;
}

.review-item--edited {
  border-color: var(--c-info);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 0.6em;
  gap: 0.3em;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-sm);
  background: var(--c-surface);
  cursor: pointer;
  font: inherit;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--c-ink-soft);
}

.icon-btn:hover {
  border-color: var(--c-brand);
  color: var(--c-brand);
}

.icon-btn--approve:hover {
  border-color: var(--c-success);
  color: var(--c-success);
}

.icon-btn--reject:hover {
  border-color: var(--c-danger);
  color: var(--c-danger);
}

/* ---- Discovery timeline ---- */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--sp-1);
}

.timeline__step {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) 0;
  color: var(--c-ink-muted);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.timeline__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--c-border);
  flex-shrink: 0;
}

.timeline__step--active {
  color: var(--c-brand);
}

.timeline__step--active .timeline__dot {
  background: var(--c-brand);
  animation: pulse 1.4s ease-in-out infinite;
}

.timeline__step--done {
  color: var(--c-success);
}

.timeline__step--done .timeline__dot {
  background: var(--c-success);
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 var(--c-brand-soft);
  }

  50% {
    box-shadow: 0 0 0 6px var(--c-brand-soft);
  }
}

/* ---- Trend chart (pure CSS bars) ---- */
.trend {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 120px;
  padding: var(--sp-1) 0;
}

.trend__bar {
  flex: 1;
  background: var(--c-brand-soft);
  border-radius: 3px 3px 0 0;
  min-height: 4px;
  position: relative;
  transition: background var(--t-fast) var(--ease);
}

.trend__bar:hover,
.trend__bar:focus-visible {
  background: var(--c-brand);
}

.trend__bar:last-child {
  background: var(--c-brand);
}

/* ---- Hero ---- */
.hero {
  padding-block: var(--sp-6) var(--sp-5);
}

.hero__eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-accent);
  background: var(--c-accent-soft);
  border-radius: 999px;
  padding: 0.3em 1em;
  margin-bottom: var(--sp-2);
}

.section--brand .hero__eyebrow {
  color: #bcd2ff;
  background: rgba(255, 255, 255, 0.14);
}

.hero__form {
  display: grid;
  gap: var(--sp-1);
  max-width: 560px;
  margin-top: var(--sp-3);
}

@media (min-width: 560px) {
  .hero__form {
    grid-template-columns: 1fr auto;
  }
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 600;
  opacity: 0.85;
}

/* ============================================================
   Elite section components (reusable layout building blocks)
   ============================================================ */

/* Split showcase: copy + media, stacks on mobile */
.split {
  display: grid;
  gap: var(--sp-4);
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-6);
  }

  .split--reverse> :first-child {
    order: 2;
  }
}

/* Media frame for screenshots/mockups */
.media-frame {
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  background: var(--c-surface);
}

.media-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.media-frame--browser {
  padding-top: 34px;
  position: relative;
}

.media-frame--browser::before {
  content: "●　●　●";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 34px;
  line-height: 34px;
  padding-left: 14px;
  letter-spacing: 4px;
  color: #c4d2cd;
  font-size: 12px;
  background: var(--c-surface-alt);
  border-bottom: 1px solid var(--c-border);
}

/* Icon badge (circular) */
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--c-brand-soft);
  color: var(--c-brand-strong);
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-bottom: var(--sp-2);
}

.icon-badge--accent {
  background: var(--c-accent-soft);
  color: var(--c-accent);
}

/* Feature item with leading icon */
.feature {
  display: flex;
  gap: var(--sp-2);
  align-items: flex-start;
}

.feature .icon-badge {
  width: 40px;
  height: 40px;
  font-size: 1.15rem;
  margin: 0;
  border-radius: 11px;
}

.feature__body {
  min-width: 0;
}

.feature__body h3 {
  font-size: var(--fs-base);
  margin-bottom: 0.25rem;
}

.feature__body p {
  font-size: var(--fs-sm);
  margin: 0;
}

/* KPI ribbon (big-number stat row) */
.kpi-ribbon {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-2);
}

@media (min-width: 768px) {
  .kpi-ribbon {
    grid-template-columns: repeat(4, 1fr);
  }
}

.kpi {
  text-align: center;
  padding: var(--sp-2);
}

.kpi__value {
  font-size: var(--fs-2xl);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--c-brand);
}

.section--brand .kpi__value,
.section--ink .kpi__value {
  color: #fff;
}

.kpi__label {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--c-ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.section--brand .kpi__label,
.section--ink .kpi__label {
  color: rgba(255, 255, 255, 0.8);
}

/* Compare: before / after two-panel */
.compare {
  display: grid;
  gap: var(--sp-3);
}

@media (min-width: 768px) {
  .compare {
    grid-template-columns: 1fr 1fr;
  }
}

.compare__panel {
  padding: var(--sp-3);
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
  background: var(--c-surface);
}

.compare__panel--bad {
  background: var(--c-surface-alt);
}

.compare__panel--good {
  border: 2px solid var(--c-brand);
  box-shadow: var(--shadow);
}

.compare__panel h3 {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.compare ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  font-size: var(--fs-sm);
  color: var(--c-ink-soft);
}

.compare__panel--bad li::before {
  content: "✕";
  color: var(--c-danger);
  font-weight: 600;
  margin-right: 0.5em;
}

.compare__panel--good li::before {
  content: "✓";
  color: var(--c-success);
  font-weight: 600;
  margin-right: 0.5em;
}

/* Audience tiles */
.audience-grid {
  display: grid;
  gap: var(--sp-2);
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .audience-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1100px) {
  .audience-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.audience-tile {
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-sm);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  font-weight: 500;
  font-size: var(--fs-sm);
  color: var(--c-ink);
  transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}

.audience-tile:hover {
  border-color: var(--c-brand);
  transform: translateY(-2px);
}

.audience-tile span {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--c-ink-muted);
  margin-top: 0.2rem;
}

/* Quote / testimonial */
.quote {
  border-left: 4px solid var(--c-brand);
  padding: var(--sp-2) var(--sp-3);
  background: var(--c-surface);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.quote p {
  font-size: var(--fs-base);
  color: var(--c-ink);
  font-style: italic;
}

.quote cite {
  font-style: normal;
  font-weight: 500;
  color: var(--c-ink-soft);
  font-size: var(--fs-sm);
}

/* CTA band */
.cta-band {
  text-align: center;
}

.cta-band .btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  justify-content: center;
  margin-top: var(--sp-3);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

/* ---- Scroll-reveal (progressive enhancement) ----
   Markup carries data-reveal; JS adds .reveal-init only when motion is allowed,
   so no-JS and reduced-motion users always see fully visible content. */
.reveal-init {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 640ms var(--ease-soft), transform 640ms var(--ease-soft);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal-init.reveal-in,
.section-active .reveal-init {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Sticky mobile CTA (landing) ----
   Appears after the hero scrolls away; dismissible; mobile only — desktop
   already has the header CTA. Sits below toasts (z 90) so feedback wins. */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  display: none;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-1) var(--sp-2);
  padding-bottom: calc(var(--sp-1) + env(safe-area-inset-bottom, 0px));
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  box-shadow: 0 -6px 24px rgba(22, 36, 31, 0.12);
}

.sticky-cta.is-visible {
  display: flex;
  animation: cta-in 260ms var(--ease);
}

.sticky-cta .btn {
  flex: 1;
}

@keyframes cta-in {
  from {
    transform: translateY(100%);
  }

  to {
    transform: none;
  }
}

@media (min-width: 900px) {
  .sticky-cta {
    display: none !important;
  }
}

/* ---- Live system-health chip (admin topbar) ---- */
.health-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: var(--fs-xs);
  font-weight: 500;
  white-space: nowrap;
  padding: 0.35em 0.9em;
  border-radius: 999px;
  background: var(--c-surface-alt);
  color: var(--c-ink-soft);
}

.health-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c-ink-muted);
  flex-shrink: 0;
}

.health-chip--ok {
  background: var(--c-success-soft);
  color: var(--c-success);
}

.health-chip--ok .health-dot {
  background: var(--c-success);
}

.health-chip--busy {
  background: var(--c-info-soft);
  color: var(--c-info);
}

.health-chip--busy .health-dot {
  background: var(--c-info);
  animation: pulse 1.4s ease-in-out infinite;
}

.health-chip--attention {
  background: var(--c-danger-soft);
  color: var(--c-danger);
}

.health-chip--attention .health-dot {
  background: var(--c-danger);
  animation: pulse 1.4s ease-in-out infinite;
}

/* ---- Pricing ---- */
.plan-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.plan-card--featured {
  border: 2px solid var(--c-brand);
  box-shadow: var(--shadow);
  position: relative;
}

.plan-card__price {
  font-size: var(--fs-2xl);
  font-weight: 600;
  color: var(--c-ink);
}

.plan-card__price small {
  font-size: var(--fs-sm);
  color: var(--c-ink-muted);
  font-weight: 600;
}

.plan-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  font-size: var(--fs-sm);
  color: var(--c-ink-soft);
}

.plan-card ul li::before {
  content: "✓ ";
  color: var(--c-success);
  font-weight: 600;
}

/* ============================================================
   Marketing components (Choicy-inspired, FontAwesome icons, no SVG)
   ============================================================ */

/* FontAwesome sizing inside our icon containers */
.icon-badge i {
  line-height: 1;
}

.fa-li-check {
  color: var(--c-success);
  margin-right: 0.55em;
}

/* ---- Split hero (light, image on white) ---- */
.hero-split {
  position: relative;
  overflow: hidden;
  background: var(--c-surface);
}

.hero-split::before {
  /* soft brand glow, pure CSS — no images/SVG */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(46% 60% at 88% 6%, rgba(0, 39, 128, 0.10), transparent 60%),
    radial-gradient(38% 50% at 4% 96%, rgba(0, 31, 39, 0.08), transparent 60%);
}

.hero-split>.container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  gap: var(--sp-4);
  align-items: center;
}

@media (min-width: 920px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--sp-6);
  }
}

.hero-h1 {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.hero-lede {
  font-size: var(--fs-base);
  color: var(--c-ink-soft);
  max-width: 36em;
}

/* Angled accent tag */
.tag-angled {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: var(--c-accent);
  color: #fff;
  font-weight: 500;
  font-size: var(--fs-xs);
  padding: 0.5em 1em;
  border-radius: var(--radius-sm);
  transform: rotate(-2deg);
  box-shadow: var(--shadow-sm);
}

/* Hero media: framed screenshot on white + floating micro-cards */
.hero-media {
  position: relative;
}

.hero-media .media-frame {
  position: relative;
  z-index: 1;
}

.float-card {
  position: absolute;
  z-index: 2;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-2);
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--c-ink);
  animation: float-y 7s var(--ease-float) infinite;
  will-change: transform;
  backface-visibility: hidden;
}

.float-card i {
  font-size: 1.1rem;
}

.float-card--tl {
  top: 8px;
  left: -10px;
}

.float-card--br {
  bottom: 10px;
  right: -8px;
  animation-duration: 18s;
  animation-delay: 3.5s;
}

.float-card__big {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--c-brand);
}

/* Gentle, sub-pixel-smooth idle drift — small travel so it never "jumps". */
@keyframes float-y {
  0% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -6px, 0);
  }

  100% {
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 600px) {
  .float-card {
    position: static;
    margin-top: var(--sp-2);
    animation: none;
    width: 100%;
  }
}

/* Avatar stack (icon-based, no fake faces) */
.icon-stack {
  display: inline-flex;
  align-items: center;
}

.icon-stack span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-brand-soft);
  color: var(--c-brand-strong);
  border: 2px solid #fff;
  margin-left: -8px;
  font-size: 0.8rem;
}

.icon-stack span:first-child {
  margin-left: 0;
}

/* ---- Service / capability cards with FA icon + hover arrow ---- */
.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card .icon-badge {
  font-size: 1.3rem;
}

.service-card__arrow {
  margin-top: auto;
  color: var(--c-brand);
  font-weight: 500;
  font-size: var(--fs-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

.service-card__arrow i {
  transition: transform var(--t-base) var(--ease);
}

.service-card.card--hover:hover .service-card__arrow i {
  transform: translateX(5px);
}

/* ---- Process steps with connecting rail ---- */
.step {
  position: relative;
  text-align: center;
}

.step__num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto var(--sp-2);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-brand);
  color: #fff;
  font-size: var(--fs-base);
  font-weight: 600;
  box-shadow: var(--shadow);
}

.step h3 {
  font-size: var(--fs-base);
}

.step p {
  font-size: var(--fs-sm);
}

/* ---- Skill / visibility progress bars (used on dark section) ---- */
.skill+.skill {
  margin-top: var(--sp-3);
}

.skill__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.skill__track {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.section--white .skill__track,
.section--alt .skill__track {
  background: var(--c-surface-alt);
}

.skill__fill {
  height: 100%;
  border-radius: 999px;
  width: 0;
  background: linear-gradient(90deg, #2f5bd0, #6fe0c8);
  transition: width 1100ms var(--ease);
}

/* ---- Newsletter / conversion capture (footer) ---- */
.capture {
  display: flex;
  gap: var(--sp-1);
  max-width: 460px;
}

.capture .input {
  background: rgba(255, 255, 255, 0.96);
  border-color: transparent;
}

@media (max-width: 480px) {
  .capture {
    flex-direction: column;
  }
}

/* ---- Checklist with FA ticks ---- */
.fa-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.fa-list li {
  display: flex;
  gap: 0.6em;
  align-items: flex-start;
  font-size: var(--fs-sm);
  color: var(--c-ink-soft);
}

.fa-list li i {
  color: var(--c-success);
  margin-top: 0.2em;
  flex-shrink: 0;
}

/* ---- Footer (deep navy, columns + social + capture) ---- */
.site-footer {
  background: var(--c-secondary);
  color: #aeb9d8;
  padding-block: var(--sp-6) var(--sp-4);
  margin-top: 0;
  font-size: var(--fs-sm);
}

.site-footer a {
  color: #d6deef;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer h3 {
  color: #fff;
  font-size: var(--fs-base);
  margin-bottom: var(--sp-1);
}

.footer-cta {
  background: var(--grad-brand);
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
  margin-bottom: var(--sp-5);
  color: #fff;
}

.footer-cta h2 {
  color: #fff;
}

.footer-grid {
  display: grid;
  gap: var(--sp-4);
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
  }
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.footer-social {
  display: flex;
  gap: var(--sp-1);
  margin-top: var(--sp-2);
}

.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  font-size: 1.05rem;
}

.footer-social a:hover {
  background: var(--c-brand);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin-top: var(--sp-4);
  padding-top: var(--sp-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  justify-content: space-between;
  align-items: center;
  color: #8e9bc0;
}

/* ============================================================
   Homepage v2 sections (discovery preview, tabs, battlecard, prompts)
   ============================================================ */

/* Hero "live discovery" preview card (illustrative product mock) */
.discover-preview {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-3);
}

.discover-preview__head {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-weight: 500;
  font-size: var(--fs-sm);
  color: var(--c-ink);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--c-border);
  margin-bottom: var(--sp-2);
}

.discover-preview__head .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c-brand);
  animation: pulse 1.4s ease-in-out infinite;
}

.discover-steps {
  list-style: none;
  margin: 0 0 var(--sp-2);
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.discover-steps li {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-size: var(--fs-xs);
  color: var(--c-ink-soft);
}

.discover-steps li i {
  color: var(--c-success);
  width: 1.1em;
  text-align: center;
}

.discover-steps li.is-pending {
  color: var(--c-ink-muted);
}

.discover-steps li.is-pending i {
  color: var(--c-brand);
}

.discover-results {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-1);
}

.discover-results .stat {
  padding: var(--sp-1) var(--sp-2);
}

.discover-results .stat__value {
  font-size: var(--fs-base);
}

/* Floating metric chips (promise section) */
.metric-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.metric-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  padding: 0.6em 1.1em;
  font-weight: 500;
  font-size: var(--fs-sm);
  color: var(--c-ink);
  box-shadow: var(--shadow-sm);
}

.metric-chip i {
  color: var(--c-brand);
}

/* Tabs (buyer-intent pathways) */
.tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: var(--sp-3);
}

.tab {
  border: 1.5px solid var(--c-border);
  background: var(--c-surface);
  color: var(--c-ink-soft);
  border-radius: 999px;
  padding: 0.55em 1.1em;
  font: inherit;
  font-weight: 500;
  font-size: var(--fs-sm);
  cursor: pointer;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  transition: background var(--t-base) var(--ease-soft), color var(--t-base) var(--ease-soft), border-color var(--t-base) var(--ease-soft);
}

.tab:hover {
  border-color: var(--c-brand);
  color: var(--c-brand);
}

.tab[aria-selected="true"] {
  background: var(--c-brand);
  border-color: var(--c-brand);
  color: #fff;
}

.tabpanel {
  animation: fade-in var(--t-slow) var(--ease-soft);
}

.tabpanel[hidden] {
  display: none;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* Battlecard (you vs competitor) */
.battlecard {
  display: grid;
  gap: var(--sp-2);
  align-items: stretch;
}

@media (min-width: 760px) {
  .battlecard {
    grid-template-columns: 1fr auto 1fr;
  }
}

.battlecard__vs {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--c-ink-muted);
  font-size: var(--fs-base);
}

.battlecard__row {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-2);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--c-border);
  font-size: var(--fs-sm);
}

.battlecard__row:last-child {
  border-bottom: 0;
}

.battlecard__row span:last-child {
  font-weight: 500;
}

/* Prompt category grid */
.prompt-cat {
  height: 100%;
}

.prompt-cat h3 {
  font-size: var(--fs-base);
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.prompt-cat h3 i {
  color: var(--c-brand);
}

.prompt-cat ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.prompt-cat li {
  font-size: var(--fs-sm);
  color: var(--c-ink-soft);
  padding: 0.4em 0.7em;
  background: var(--c-surface-alt);
  border-radius: var(--radius-sm);
}

/* Dashboard callout grid (metric explanations) */
.callout {
  display: flex;
  gap: var(--sp-2);
  align-items: flex-start;
}

.callout .icon-badge {
  width: 40px;
  height: 40px;
  font-size: 1.05rem;
  margin: 0;
}

.callout h3 {
  font-size: var(--fs-base);
  margin-bottom: 0.2rem;
}

.callout p {
  font-size: var(--fs-sm);
  margin: 0;
}

/* Report example lines */
.report-line {
  display: flex;
  gap: 0.6em;
  align-items: flex-start;
  font-size: var(--fs-sm);
  color: var(--c-ink-soft);
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--c-border);
}

.report-line:last-child {
  border-bottom: 0;
}

.report-line i {
  color: var(--c-brand);
  margin-top: 0.2em;
}

/* Page hero (interior pages: features / solutions) */
.page-hero {
  background: var(--grad-brand);
  color: #eef3ff;
}

.page-hero .eyebrow {
  color: #bcd2ff;
  background: rgba(255, 255, 255, 0.14);
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5.5vw, 3rem);
  letter-spacing: -0.02em;
}

.page-hero p {
  opacity: 0.92;
  font-size: var(--fs-base);
  max-width: 40em;
}

.breadcrumbs {
  font-size: var(--fs-xs);
  margin-bottom: var(--sp-2);
}

.breadcrumbs a {
  color: inherit;
  opacity: 0.85;
}

.breadcrumbs a:hover {
  opacity: 1;
}

/* ============================================================
   Admin panel (command-center shell)
   ============================================================ */
.admin-body {
  background: var(--c-surface-alt);
}

.admin-shell {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
}

.admin-side {
  background: var(--c-ink);
  color: #cdd9d5;
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  width: 260px;
  z-index: 60;
  transform: translateX(-100%);
  transition: transform var(--t-base) var(--ease);
  padding: var(--sp-2);
  gap: var(--sp-2);
}

.admin-side--open {
  transform: none;
  box-shadow: var(--shadow-lg);
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-1);
  background: #fff;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.admin-brand .logo__img {
  height: 64px;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  flex: 1;
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 0.7em 0.85em;
  color: #c4d2cd;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: var(--fs-sm);
}

.admin-nav a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.admin-nav a.is-active {
  background: var(--c-brand);
  color: #fff;
}

.admin-nav__icon {
  width: 1.4em;
  text-align: center;
  opacity: 0.9;
}

.admin-side__foot {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: var(--sp-2);
}

.admin-side__foot .btn--ghost {
  color: #c4d2cd;
}

.admin-side__foot .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.admin-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  padding: var(--sp-2);
}

.admin-topbar__title {
  font-size: var(--fs-base);
  margin: 0;
  flex: 1;
}

.admin-main {
  padding: var(--sp-3);
}

@media (min-width: 1000px) {
  .admin-shell {
    grid-template-columns: 260px 1fr;
  }

  .admin-side {
    position: sticky;
    top: 0;
    height: 100vh;
    transform: none;
    inset: auto;
  }

  .admin-topbar .nav-toggle {
    display: none;
  }

  .admin-main {
    padding: var(--sp-4);
  }
}

/* ---- In-page anchor nav (sticky chip row, e.g. discovery review) ---- */
.anchor-nav {
  position: sticky;
  top: 68px;
  z-index: 30;
  display: flex;
  gap: var(--sp-1);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--c-bg);
  padding: var(--sp-1) 0;
  margin-bottom: var(--sp-2);
}

.anchor-nav a {
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--c-ink-soft);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  padding: 0.5em 1em;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
}

.anchor-nav a:hover {
  border-color: var(--c-brand);
  color: var(--c-brand);
}

.anchor-nav a .count {
  background: var(--c-brand-soft);
  color: var(--c-brand-strong);
  border-radius: 999px;
  padding: 0 0.55em;
  margin-left: 0.4em;
  font-size: 0.95em;
}

.review-section {
  scroll-margin-top: 132px;
}

.review-section>summary .badge {
  margin-left: 0.5em;
}

/* ---- Sticky bottom action bar (one dominant CTA + live progress) ---- */
.action-bar {
  position: sticky;
  bottom: 0;
  z-index: 35;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  align-items: center;
  justify-content: space-between;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: 0 -6px 24px rgba(22, 36, 31, 0.10);
  padding: var(--sp-2) var(--sp-3);
  margin-top: var(--sp-4);
}

.action-bar__status {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-ink-soft);
}

.action-bar__status strong {
  color: var(--c-brand-strong);
}

/* Disclosure (native <details>): zero-JS expandable forms in admin */
.disclosure {
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-surface);
}

.disclosure>summary {
  cursor: pointer;
  padding: var(--sp-2) var(--sp-3);
  font-weight: 500;
  color: var(--c-ink);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  min-height: 48px;
}

.disclosure>summary::-webkit-details-marker {
  display: none;
}

.disclosure>summary::after {
  content: "+";
  color: var(--c-brand);
  font-weight: 600;
  font-size: 1.2em;
}

.disclosure[open]>summary::after {
  content: "–";
}

.disclosure>summary:hover {
  background: var(--c-surface-alt);
  border-radius: var(--radius);
}

.disclosure__body {
  padding: 0 var(--sp-3) var(--sp-3);
  border-top: 1px solid var(--c-border);
  padding-top: var(--sp-2);
}

.form-grid {
  display: grid;
  gap: var(--sp-2);
}

@media (min-width: 720px) {
  .form-grid--2 {
    grid-template-columns: 1fr 1fr;
  }

  .form-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.danger-zone {
  border: 1px solid var(--c-danger);
  border-radius: var(--radius);
  padding: var(--sp-3);
  background: var(--c-danger-soft);
}

.danger-zone h3 {
  color: var(--c-danger);
}

/* Admin KPI cards */
.kpi-grid {
  display: grid;
  gap: var(--sp-2);
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 720px) {
  .kpi-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.kpi-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: var(--sp-2);
  box-shadow: var(--shadow-sm);
}

.kpi-card__label {
  font-size: var(--fs-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--c-ink-muted);
}

.kpi-card__value {
  font-size: var(--fs-2xl);
  font-weight: 600;
  color: var(--c-ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.kpi-card__sub {
  font-size: var(--fs-xs);
  color: var(--c-ink-muted);
}

.kpi-card--accent {
  border-top: 3px solid var(--c-brand);
}

/* ---- App shell ---- */
.app-shell {
  display: grid;
  min-height: 100vh;
  grid-template-rows: auto 1fr;
}

.app-main {
  padding-block: var(--sp-3) var(--sp-6);
}

.page-head {
  margin-bottom: var(--sp-3);
}

.page-head h1 {
  font-size: var(--fs-xl);
  margin-bottom: 0.25rem;
}

.page-head p {
  color: var(--c-ink-muted);
  font-size: var(--fs-sm);
  margin: 0;
}

@media (min-width: 768px) {
  .page-head h1 {
    font-size: var(--fs-2xl);
  }
}

/* ---- Empty states ---- */
.empty {
  text-align: center;
  padding: var(--sp-5) var(--sp-3);
  border: 2px dashed var(--c-border);
  border-radius: var(--radius);
  color: var(--c-ink-muted);
  background: var(--c-surface);
}

.empty h3 {
  color: var(--c-ink-soft);
}

/* ---- Utility ---- */
.muted {
  color: var(--c-ink-muted);
}

.small {
  font-size: var(--fs-sm);
}

.xs {
  font-size: var(--fs-xs);
}

.mt-0 {
  margin-top: 0;
}

.mt-1 {
  margin-top: var(--sp-1);
}

.mt-2 {
  margin-top: var(--sp-2);
}

.mt-3 {
  margin-top: var(--sp-3);
}

.mt-4 {
  margin-top: var(--sp-4);
}

.mx-auto {
  margin-inline: auto;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: var(--sp-1);
}

.mb-2 {
  margin-bottom: var(--sp-2);
}

.mb-3 {
  margin-bottom: var(--sp-3);
}

.text-center {
  text-align: center;
}

.w-100 {
  width: 100%;
}

.nowrap {
  white-space: nowrap;
}

/* ---- Print (client-ready reports) ---- */
@media print {

  .site-header,
  .site-footer,
  .no-print,
  .toast-region {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
}

/* ============================================================
   Elite Typewriter, Visual Hierarchy & Animation Classes
   ============================================================ */

/* Typewriter & Gradient Text styles */
.hero-h1-wrap {
  margin-bottom: var(--sp-3);
}

.hero-h1-static {
  display: block;
  font-weight: 600;
  color: var(--c-ink);
  font-size: clamp(2rem, 5.5vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.hero-h1-dynamic {
  display: block;
  font-weight: 600;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  line-height: 1.15;
  margin-top: 0.25rem;
  min-height: 1.3em;
  /* prevent page layout jump during typing */
}

.aeo-gradient-text {
  background: linear-gradient(135deg, var(--c-brand) 0%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: var(--c-brand);
  /* Fallback */
}

.aeo-cursor {
  font-weight: 300;
  color: var(--c-light-green);
  animation: aeo-blink 0.8s infinite;
  margin-left: 2px;
  display: inline-block;
}

@keyframes aeo-blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-brand-strong);
  background: var(--c-brand-soft);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  margin-bottom: var(--sp-3);
  border: 1px solid rgba(0, 39, 128, 0.15);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Hero call row & trust line */
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
  margin-bottom: var(--sp-3);
}

.hpn-btn-call {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.75em 1.5em;
  font-weight: 600;
  font-size: var(--fs-sm);
  color: #fff;
  background: var(--c-brand);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
  border: 2px solid transparent;
}

.hpn-btn-call:hover {
  background: var(--c-brand-strong);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.hero-trust-note {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-ink-soft);
}

.hero-trust-note i {
  color: #10b981;
}

/* Platform tags/chips list */
.hero-platforms {
  margin-top: var(--sp-3);
}

.hero-platforms-label {
  font-size: var(--fs-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-ink-muted);
  margin-bottom: 0.5rem;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-chip {
  font-size: var(--fs-xs);
  font-weight: 600;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  color: var(--c-ink-soft);
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.hero-chip:hover {
  border-color: var(--c-brand);
  color: var(--c-brand);
}

/* Image Frames & Badging */
.hero-img-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #ffffff;
  /* must be solid white background */
  padding: 0.5rem;
  border: 1px solid var(--c-border);
}

.hero-img-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.hero-img-badge {
  position: absolute;
  bottom: var(--sp-2);
  right: var(--sp-2);
  background: rgba(10, 18, 48, 0.9);
  backdrop-filter: blur(4px);
  color: #ffffff;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-img-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-light-green);
}

/* Rated Stars Badge */
.badge-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-ink);
  background: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-border);
  margin-top: 0.5rem;
}

.stars-rating {
  color: #ffb400;
  /* Star yellow */
  display: inline-flex;
  gap: 2px;
}

/* Section image rules */
.image-section-white {
  background: #ffffff !important;
}

/* Competency grid card */
.competency-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: var(--sp-3);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-slow) var(--ease-soft), box-shadow var(--t-slow) var(--ease-soft), border-color var(--t-base) var(--ease-soft);
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
}

.competency-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--c-brand-soft);
}

.competency-card h3 {
  font-size: var(--fs-base);
  margin-bottom: var(--sp-1);
}

.competency-card ul {
  list-style: none;
  margin: 0 0 var(--sp-2) 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.competency-card ul li {
  display: flex;
  gap: 0.5em;
  font-size: var(--fs-sm);
  color: var(--c-ink-soft);
}

.competency-card ul li i {
  color: var(--c-brand);
  margin-top: 0.2em;
}

.competency-card__arrow {
  margin-top: auto;
  font-weight: 500;
  font-size: var(--fs-sm);
  color: var(--c-brand);
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

.competency-card__arrow i {
  transition: transform var(--t-base) var(--ease);
}

.competency-card:hover .competency-card__arrow i {
  transform: translateX(5px);
}

/* Zoom Image Container */
.zoom-img-container {
  overflow: hidden;
  border-radius: var(--radius);
}

.zoom-img-container img {
  transition: transform var(--t-slow) var(--ease-soft);
}

.card:hover .zoom-img-container img,
.media-frame:hover img {
  transform: scale(1.04);
}

/* Blog Cards */
.blog-card {
  background: #ffffff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-slow) var(--ease-soft), box-shadow var(--t-slow) var(--ease-soft);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.blog-card__img-wrap {
  height: 200px;
  overflow: hidden;
  background: var(--c-surface-alt);
}

.blog-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease-soft);
}

.blog-card:hover .blog-card__img-wrap img {
  transform: scale(1.05);
}

.blog-card__body {
  padding: var(--sp-2) var(--sp-3);
}

.blog-card__meta {
  font-size: var(--fs-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-ink-muted);
  margin-bottom: 0.5rem;
}

.blog-card__title {
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--c-ink);
  margin-bottom: 0.5rem;
  transition: color var(--t-fast) var(--ease);
}

.blog-card:hover .blog-card__title {
  color: var(--c-brand);
}

.blog-card__desc {
  font-size: var(--fs-sm);
  color: var(--c-ink-soft);
  margin: 0;
}

/* Nav dropdown styles */
.nav-item--has-dropdown {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  display: none;
  min-width: 240px;
  z-index: 100;
  text-align: left;
}

.nav-dropdown a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--c-ink-soft);
  text-decoration: none;
  font-weight: 500;
  border-radius: 6px;
  width: 100%;
}

.nav-dropdown a:hover {
  background: var(--c-brand-soft);
  color: var(--c-brand);
  text-decoration: none;
}

.nav-item--has-dropdown:hover .nav-dropdown,
.nav-item--has-dropdown:focus-within .nav-dropdown {
  display: block;
}

.nav-item--has-dropdown>a::after {
  content: " \f107";
  font-family: "Font Awesome 6 Free";
  font-weight: 600;
  font-size: 0.85em;
  color: var(--c-ink-muted);
  margin-left: 4px;
}

/* Mobile dropdown adjustments */
@media (max-width: 899px) {
  .nav-item--has-dropdown {
    width: 100%;
  }

  .nav-item--has-dropdown>a {
    border-bottom: 1px solid var(--c-border);
    border-radius: 0;
  }

  .nav-dropdown {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
    display: block;
    /* always visible in mobile drawer */
  }

  .nav-dropdown a {
    padding: 0.4rem 0.8rem;
  }
}

/* ============================================================
   Elite Header Visuals & AI Branded Consistency
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(12px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(190%) !important;
  border-bottom: 1px solid var(--c-border) !important;
  transition: background var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}

.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-brand) 0%, var(--c-light-green) 50%, var(--c-info) 100%);
  z-index: 101;
}

.site-header__inner {
  min-height: 72px;
}

.site-header--scrolled {
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: var(--shadow-sm);
}

/* Live indicator chip */
.ai-indicator-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--c-light-green-soft);
  color: var(--c-success);
  border: 1px solid rgba(111, 224, 200, 0.4);
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  margin-left: 8px;
  cursor: default;
}

.ai-indicator-chip .pulse-dot {
  width: 6px;
  height: 6px;
  background: var(--c-success);
  border-radius: 50%;
  position: relative;
}

.ai-indicator-chip .pulse-dot::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--c-success);
  border-radius: 50%;
  animation: pulse 1.6s infinite ease-in-out;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  100% {
    transform: scale(2.8);
    opacity: 0;
  }
}

/* Header Search form (App layout) */
.header-search-bar {
  position: relative;
  max-width: 240px;
  display: none;
}

@media (min-width: 1100px) {
  .header-search-bar {
    display: block;
  }
}

.header-search-bar input {
  background: var(--c-surface-alt);
  border: 1px solid var(--c-border);
  border-radius: 99px;
  padding: 6px 12px 6px 32px;
  font-size: 13px;
  width: 100%;
  color: var(--c-ink);
  font-family: var(--font-body);
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}

.header-search-bar input:focus {
  border-color: var(--c-brand);
  background: #fff;
  outline: none;
}

.header-search-bar i {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--c-ink-soft);
  font-size: 12px;
}

/* User initials profile widget */
.user-profile-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: var(--sp-1);
}

.user-avatar-initials {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid var(--c-border);
  transition: border-color var(--t-fast) var(--ease);
}

.user-avatar-initials:hover {
  border-color: var(--c-brand);
}

/* Smooth fade-in and slide-up chart transitions */
@keyframes chartContainerReveal {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

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

.chart-reveal-anim {
  opacity: 0;
  animation: chartContainerReveal 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ============================================================
   Immersive Section Scroll Reveal Animations (Mobile Friendly)
   ============================================================ */
.section-reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.99);
  transition: opacity 800ms cubic-bezier(0.16, 1, 0.3, 1), transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.section-reveal.section-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Hero section animations trigger immediately for instant above-the-fold display */
.section.hero,
.features-hero {
  animation: heroReveal 1000ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

/* Hardware accelerated transition for contents */
.section-active .container {
  opacity: 1;
  transition: opacity 800ms ease-out;
}

/* Scroll Progress Bar (Immersive & Enterprise-Grade) */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--c-brand) 0%, var(--c-light-green) 100%);
  z-index: 10001;
  /* Above the site-header */
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 120ms cubic-bezier(0.1, 0.8, 0.2, 1);
  will-change: transform;
}

/* Sidebar Nav Link Styles */
.sidebar-nav-link {
  transition: all var(--t-fast) var(--ease);
  border-left: 3px solid transparent;
}
.sidebar-nav-link:hover {
  background: #f1f5f9;
  color: var(--c-brand) !important;
}
.sidebar-nav-link.active {
  background: var(--c-brand-soft) !important;
  color: var(--c-brand) !important;
  border-left: 3px solid var(--c-brand) !important;
  padding-left: 11px !important;
}

/* ============================================================
   Mockup-Specific Dashboard UI Components
   ============================================================ */

/* Engine Tabs navigation row */
.engine-tabs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--c-border);
  padding-bottom: 12px;
  margin-bottom: 24px;
}
.engine-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--c-border);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--t-fast) var(--ease);
}
.engine-tab-btn:hover {
  border-color: var(--c-brand);
  color: var(--c-brand);
}
.engine-tab-btn.active {
  border-color: var(--c-brand);
  background: var(--c-brand-soft);
  color: var(--c-brand);
  box-shadow: var(--shadow-sm);
}

/* KPI cards styling */
.kpi-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.kpi-card__title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--c-ink-muted);
  letter-spacing: 0.05em;
  margin: 0;
}
.kpi-card__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.kpi-card__value {
  font-size: 26px;
  font-weight: 800;
  color: var(--c-brand);
  line-height: 1.1;
}
.kpi-card__delta {
  font-size: 13px;
  font-weight: 700;
}
.kpi-card__delta--up {
  color: var(--c-success);
}
.kpi-card__delta--down {
  color: var(--c-danger);
}
.kpi-card__subtitle {
  font-size: 11px;
  color: var(--c-ink-muted);
  margin-top: 2px;
}

/* Conversation/Chat bubble elements */
.chat-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
}
.chat-message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 85%;
}
.chat-message--user {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.chat-message--ai {
  align-self: flex-start;
}
.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: #fff;
  border: 1px solid var(--c-border);
}
.chat-avatar--user {
  background: var(--c-brand);
  color: #fff;
  font-weight: 700;
  font-size: 11px;
}
.chat-avatar--ai {
  background: var(--c-success-soft);
  color: var(--c-success);
}
.chat-bubble {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--c-ink);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.chat-bubble--user {
  background: var(--c-brand-soft);
  color: var(--c-brand);
  border-top-right-radius: 2px;
}
.chat-bubble--ai {
  background: #fff;
  border: 1px solid var(--c-border);
  border-top-left-radius: 2px;
}

/* Status dots matrix */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid transparent;
}
.status-pill--visible {
  background: #eafbf7;
  color: #0d9488;
  border-color: #ccfbf1;
}
.status-pill--cited {
  background: #eff6ff;
  color: #2563eb;
  border-color: #dbeafe;
}
.status-pill--mentioned {
  background: #fef3c7;
  color: #d97706;
  border-color: #fde68a;
}
.status-pill--notvisible {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fee2e2;
}
.status-pill--pending {
  background: #f1f5f9;
  color: #64748b;
  border-color: #e2e8f0;
}