/* =========================================================================
   Horiz-in website -- plain, self-contained CSS.
   Brand tokens from the horiz-in-design skill (source of truth).
   All layout (grids, flex rows, spacing, responsive breakpoints) is written
   as explicit component CSS below, rather than relying on utility classes
   from an external framework -- this keeps rendering fully predictable
   regardless of the runtime environment.
   ========================================================================= */

:root {
  --ink-900: #1A1A1B;
  --ink-700: #3A3D42;
  --ink-500: #6B7178;
  --ink-300: #C9CDD2;
  --ink-200: #E4E7EA;
  --ink-100: #F1F3F5;
  --ink-50:  #F7F8FA;
  --white:   #FFFFFF;

  --sea-50:  #DCF9FE;
  --sea-500: #1488D8;
  --sea-600: #0F6FB8;
  --sea-700: #0B5489;

  --sun-500: #FE5E32;
  --sun-600: #E8481D;

  --font-brand: 'Lato', system-ui, sans-serif;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --shadow-brand: 0 8px 20px -4px rgba(254,94,50,0.35);
  --gradient-brand: linear-gradient(90deg, var(--sun-500), var(--sea-500));

  --container-w: 1152px;
}

.dark { }

/* ===== Reset / base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-brand); background: var(--white); color: var(--ink-700); font-size: 16px; line-height: 1.6; overflow-x: hidden; max-width: 100vw; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; }
button { font-family: inherit; }

/* ===== Layout primitives ===== */
.container { max-width: var(--container-w); margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 680px; }
.container--medium { max-width: 800px; }

.section { padding: 56px 0; }
.section--tint { background: var(--ink-50); }
.section__head { max-width: 640px; margin-bottom: 40px; }
.section__head--split {
  display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px;
}
@media (min-width: 640px) {
  .section__head--split { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}

/* ===== Typography ===== */
.overline { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--sun-500); display: inline-block; }
h1, h2, h3 { color: var(--ink-900); font-weight: 700; margin: 0; }
.display { font-weight: 900; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.08; margin: 12px 0 0; }
.heading-1 { font-weight: 700; font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.15; margin: 0; }
.heading-2 { font-weight: 700; font-size: clamp(1.4rem, 3vw, 1.875rem); line-height: 1.2; margin: 8px 0 0; }
.heading-3 { font-weight: 700; font-size: 1.25rem; line-height: 1.3; margin: 0; }
.lead { font-size: 1.125rem; color: var(--ink-500); line-height: 1.55; margin: 20px 0 0; max-width: 560px; }
.muted { color: var(--ink-500); }
.caption { font-size: 13px; color: var(--ink-500); }
.accent { color: var(--sun-500); }
.text-center { text-align: center; }

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--white); border-bottom: 1px solid var(--ink-200); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; max-width: var(--container-w); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.brand__mark { height: 32px; width: 32px; flex-shrink: 0; }
.brand__name { font-weight: 400; font-size: 20px; color: var(--ink-900); white-space: nowrap; }

.nav-links { display: none; align-items: center; gap: 20px; flex-wrap: nowrap; }
@media (min-width: 1120px) { .nav-links { display: flex; } }
.nav-link { font-weight: 700; font-size: 14px; color: var(--ink-500); padding: 6px 2px; white-space: nowrap; }
.nav-link.is-active { color: var(--sea-700); border-bottom: 2px solid var(--sun-500); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-cta { display: none; }
@media (min-width: 640px) { .header-cta { display: inline-flex; } }
.nav-toggle { display: inline-flex; padding: 10px 12px; }
@media (min-width: 1120px) { .nav-toggle { display: none; } }

.mobile-nav { display: none; flex-direction: column; gap: 12px; padding: 12px 20px 20px; border-top: 1px solid var(--ink-200); background: var(--white); }
.mobile-nav.is-open { display: flex; }
@media (min-width: 1120px) { .mobile-nav { display: none !important; } }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 14px; padding: 12px 24px; border-radius: var(--radius-pill); white-space: nowrap; cursor: pointer; border: none; text-align: center; }
.btn--primary { background: var(--sun-500); color: #fff; box-shadow: var(--shadow-brand); }
.btn--primary:hover { background: var(--sun-600); }
.btn--secondary { background: var(--sea-500); color: #fff; }
.btn--secondary:hover { background: var(--sea-600); }
.btn--outline { background: var(--white); color: var(--ink-900); border: 1.5px solid var(--ink-300); }
.btn--outline:hover { border-color: var(--ink-500); }
.btn--full { width: 100%; }
.btn--xs { padding: 6px 14px; font-size: 12px; }
@media (min-width: 640px) { .btn--auto-sm { width: auto; } }

/* ===== Button rows ===== */
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; }
.btn-row--center { justify-content: center; }

/* ===== Fact pills ===== */
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.fact-pill { display: inline-flex; align-items: center; background: var(--ink-50); border: 1px solid var(--ink-200); border-radius: var(--radius-pill); padding: 8px 16px; font-size: 13px; font-weight: 700; color: var(--ink-700); }

/* ===== Cards ===== */
.card { background: var(--white); border: 1.5px solid var(--ink-200); border-radius: var(--radius-md); padding: 24px; min-width: 0; overflow-wrap: break-word; }
.card--blue .card__eyebrow { color: var(--sea-700); }
.card__eyebrow { font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-500); display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; }

/* Gradient underline beneath card headings -- reuses the same brand gradient
   rule already used under hero sections, instead of a colored border stripe. */
.card .heading-3 { padding-bottom: 12px; margin-bottom: 4px; }
.card .heading-3::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  border-radius: var(--radius-pill);
  background: var(--gradient-brand);
  margin-top: 12px;
}
.card__body { margin-top: 8px; font-size: 14px; color: var(--ink-500); line-height: 1.6; }
.card--flex { display: flex; flex-direction: column; height: 100%; min-width: 0; }
.card__body--grow { flex: 1 1 auto; }
.card__product-mark { height: 28px; width: 28px; margin-bottom: 12px; display: block; }

/* ===== Grids ===== */
.grid { display: grid; gap: 24px; min-width: 0; }
.grid > * { min-width: 0; }
.grid--2 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
.grid--4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }
.grid--split { grid-template-columns: 1fr; align-items: start; }
@media (min-width: 768px) { .grid--split { grid-template-columns: 1fr 1fr; } }
.grid--3-2 { grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid--3-2 { grid-template-columns: 3fr 2fr; } }

/* ===== Hero ===== */
.hero { padding: 64px 0 56px; }
.hero__content { max-width: 680px; }
.hero-rule { height: 3px; width: 100%; border-radius: var(--radius-pill); background: var(--gradient-brand); margin-top: 56px; }

/* ===== Trust bar ===== */
.trust-bar { text-align: center; }
.trust-bar__label { display: block; margin-bottom: 32px; text-transform: uppercase; letter-spacing: 0.08em; font-size: 14px; font-weight: 700; color: var(--ink-500); }
.trust-bar__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 48px 56px; opacity: 0.85; }
.trust-bar__logo { font-weight: 700; font-size: 16px; color: var(--ink-500); }

/* ===== Testimonials ===== */
.testimonial { background: var(--ink-50); border-radius: var(--radius-lg); padding: 32px; }
.testimonial__quote { font-size: 18px; font-weight: 400; color: var(--ink-900); line-height: 1.6; margin: 0; }
.testimonial__author { margin-top: 16px; font-weight: 700; }

/* ===== Closing CTA ===== */
.cta-section { background: linear-gradient(180deg, var(--sea-50) 0%, var(--white) 100%); padding: 56px 0; text-align: center; }
.cta-section__mark { height: 40px; width: 40px; margin: 0 auto 24px; }
.cta-section__contact { margin-top: 32px; }

/* ===== Forms ===== */
.form-card { background: var(--white); border: 1.5px solid var(--ink-200); border-radius: var(--radius-lg); padding: 32px; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, 1fr); } }
.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.field__label { font-weight: 700; font-size: 13px; color: var(--ink-900); margin-bottom: 6px; }
.field__input, .field__textarea, .field__select {
  width: 100%; border: 1.5px solid var(--ink-300); border-radius: var(--radius-md);
  padding: 12px 14px; font-family: var(--font-brand); font-size: 14px; color: var(--ink-900); background: var(--white);
}
.field__input:focus, .field__textarea:focus, .field__select:focus { outline: none; border-color: var(--sea-500); }
.form-note { margin-top: 12px; }
.form-submit-row { margin-top: 24px; }

/* ===== Footer ===== */
.site-footer { background: #1A1A1B; color: #C9CDD2; }
.site-footer__inner { max-width: var(--container-w); margin: 0 auto; padding: 48px 20px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.footer-brand__mark { height: 28px; width: 28px; }
.footer-brand__name { font-weight: 400; font-size: 18px; color: #FFFFFF; }
.footer-heading { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: #FFFFFF; margin-bottom: 12px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer-link { color: #C9CDD2; }
.footer-link:hover { color: #FFFFFF; }
.footer-muted { color: #9AA0A6; }
.footer-rule { height: 3px; border-radius: var(--radius-pill); background: var(--gradient-brand); opacity: 0.6; margin: 40px 0 24px; }

/* ===== Misc content components ===== */
.list-plain { margin: 12px 0 0; padding-left: 20px; }
.list-plain li { margin-top: 4px; font-size: 14px; color: var(--ink-500); line-height: 1.6; }

/* ===== "Not built yet" toast (bottom-right) ===== */
.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  max-width: 320px;
  background: var(--ink-900);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 16px 40px 16px 16px;
  box-shadow: 0 12px 24px -6px rgba(0,0,0,0.35);
}
.toast__title { font-weight: 700; font-size: 13px; color: var(--sun-500); text-transform: uppercase; letter-spacing: 0.05em; }
.toast__body { font-size: 14px; margin-top: 4px; line-height: 1.5; color: #E4E7EA; }
.toast__close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  color: #9AA0A6;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}
.toast__close:hover { color: #fff; }

/* ===== Chart card (used in place of marketing imagery) ===== */
.chart-card {
  background: var(--white);
  border: 1.5px solid var(--ink-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-brand-soft, 0 12px 28px -12px rgba(26,26,27,0.12));
}
.chart-card__bar {
  background: var(--ink-50);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--ink-200);
}
.chart-card__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-300); }
.chart-card__title { font-size: 12px; font-weight: 700; color: var(--ink-500); margin-left: 6px; }
.chart-card__body { padding: 24px; position: relative; }
.chart-card__callout {
  position: absolute;
  top: -14px;
  right: 20px;
  background: var(--sun-500);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-brand);
}

.bar-chart { display: flex; flex-direction: column; gap: 14px; }
.bar-row { display: grid; grid-template-columns: 120px 1fr 40px; align-items: center; gap: 12px; }
.bar-row__label { font-size: 13px; font-weight: 700; color: var(--ink-700); }
.bar-row__track { background: var(--ink-100); border-radius: var(--radius-pill); height: 12px; overflow: hidden; }
.bar-row__fill { background: var(--sea-500); height: 100%; border-radius: var(--radius-pill); }
.bar-row__fill--accent { background: var(--sun-500); }
.bar-row__value { font-size: 13px; font-weight: 700; color: var(--ink-700); text-align: right; }

.hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 1fr; } }

/* ===== Testimonial avatar ===== */
.testimonial__meta { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.testimonial__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.testimonial__author { font-weight: 700; }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 16px; }
.faq-item { background: var(--white); border: 1.5px solid var(--ink-200); border-radius: var(--radius-md); padding: 20px 24px; }
.faq-item__q { font-weight: 700; font-size: 16px; color: var(--ink-900); margin: 0; }
.faq-item__a { margin-top: 8px; font-size: 14px; color: var(--ink-500); line-height: 1.6; }

/* ===== Nav dropdowns (Populate / Validate) ===== */
.nav-item--dropdown { position: relative; }
.nav-dropdown-trigger { display: inline-flex; align-items: center; gap: 4px; }
.nav-dropdown-trigger svg { width: 12px; height: 12px; }
.nav-item--dropdown { padding-bottom: 8px; margin-bottom: -8px; }
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 8px;
  z-index: 50;
}
.nav-dropdown__panel {
  background: var(--white);
  border: 1.5px solid var(--ink-200);
  border-radius: var(--radius-md);
  padding: 8px;
  min-width: 180px;
  box-shadow: 0 12px 24px -8px rgba(26,26,27,0.14);
}
.nav-item--dropdown:hover .nav-dropdown,
.nav-item--dropdown:focus-within .nav-dropdown,
.nav-dropdown.is-open { display: block; }
.nav-item--dropdown.force-closed .nav-dropdown { display: none !important; }
.nav-dropdown__panel a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink-700);
}
.nav-dropdown__icon { height: 16px; width: 16px; flex-shrink: 0; }
.nav-dropdown__panel a:hover { background: var(--ink-50); }

/* Mobile nav grouping (flat list, indented sub-items) */
.mobile-nav-group__label { font-weight: 700; font-size: 14px; color: var(--ink-900); padding: 6px 2px; margin-top: 8px; }
.mobile-nav-group__item { padding-left: 16px; }

/* ===== Matrix (Build vs Validate x Lite/Flagship) ===== */
.matrix-row { margin-bottom: 32px; }
.matrix-row:last-child { margin-bottom: 0; }
.matrix-row__label { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-500); margin-bottom: 16px; display: block; }

/* ===== Breadcrumb (hub -> tier pages) ===== */
.breadcrumb { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink-500); margin-bottom: 16px; }
.breadcrumb a { color: var(--sea-700); }
.breadcrumb a:hover { text-decoration: underline; }

/* ===== Matrix table (literal grid: rows = Validate/Build, columns = Lite/Flagship) ===== */
.matrix-table {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--ink-200);
}
.matrix-table__corner,
.matrix-table__col-head { display: none; }
.matrix-table__row-head {
  font-weight: 700;
  font-size: 19px;
  color: var(--ink-900);
  background: var(--ink-50);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
a.matrix-table__row-head, a.matrix-table__col-head-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
a.matrix-table__row-head:hover, a.matrix-table__col-head-link:hover { color: var(--sea-700); }
.matrix-table__link-arrow { color: var(--sun-500); font-weight: 700; }
.matrix-table__cell {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border-top: 1px solid var(--ink-200);
  background: var(--white);
  min-height: 120px;
}
.matrix-table__cell-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--sea-700); display: inline-flex; align-items: center; gap: 6px; }
.matrix-table__cell-icon { height: 16px; width: 16px; display: inline-block; }
@media (min-width: 768px) {
  .matrix-table__cell-icon { display: none; }
}
.matrix-table__cell-text { font-size: 16px; font-weight: 700; color: var(--ink-900); line-height: 1.4; }
.matrix-table__cell-cta { align-self: flex-start; }

@media (min-width: 768px) {
  .matrix-table {
    display: grid;
    grid-template-columns: 200px 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 1px;
    background: var(--ink-200);
    border: none;
  }
  .matrix-table > * { background: var(--white); }
  .matrix-table__corner { display: block; background: var(--ink-50); grid-column: 1; grid-row: 1; }
  .matrix-table__col-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    background: var(--ink-50);
  }
  .matrix-table__col-head-mark { height: 28px; width: 28px; margin-bottom: 8px; }
  .matrix-table__col-head-name { font-weight: 700; font-size: 16px; color: var(--ink-900); }
  .matrix-table__col-head-rule { width: 56px; height: 3px; border-radius: var(--radius-pill); background: var(--gradient-brand); margin-top: 10px; }
  .matrix-table__row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px;
    border-top: none;
  }
  .matrix-table__col-head-link {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .matrix-table__cell { border-top: none; }
  .matrix-table--r1-lite { grid-column: 2; grid-row: 1; }
  .matrix-table--r1-flagship { grid-column: 3; grid-row: 1; }
  .matrix-table--r2-label { grid-column: 1; grid-row: 2; }
  .matrix-table--r2-lite { grid-column: 2; grid-row: 2; }
  .matrix-table--r2-flagship { grid-column: 3; grid-row: 2; }
  .matrix-table--r3-label { grid-column: 1; grid-row: 3; }
  .matrix-table--r3-lite { grid-column: 2; grid-row: 3; }
  .matrix-table--r3-flagship { grid-column: 3; grid-row: 3; }
}

/* ===== Stat strip (real quantified outcomes) ===== */
.stat-strip { display: grid; grid-template-columns: 1fr; gap: 24px; text-align: center; }
@media (min-width: 640px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .stat-strip { grid-template-columns: repeat(4, 1fr); } }
.stat-strip__item { padding: 8px; }
.stat-strip__number { font-size: 40px; font-weight: 900; color: var(--sun-500); line-height: 1.1; }
.stat-strip__label { font-size: 14px; color: var(--ink-500); margin-top: 6px; }
.stat-strip__note { text-align: center; margin-top: 24px; }

/* ===== Use case insight cards (real charts/screenshots) ===== */
.insight-card { background: var(--white); border: 1.5px solid var(--ink-200); border-radius: var(--radius-lg); overflow: hidden; }
.insight-card img { width: 100%; height: auto; display: block; }
.insight-card__body { padding: 24px; }

/* ===== Before / after comparison list ===== */
.before-after { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .before-after { grid-template-columns: 1fr 1fr; } }
.before-after__col { padding: 24px; border-radius: var(--radius-lg); }
.before-after__col--before { background: var(--ink-50); }
.before-after__col--after { background: var(--sea-50); }
.before-after__heading { font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px; }
.before-after__col--before .before-after__heading { color: var(--ink-500); }
.before-after__col--after .before-after__heading { color: var(--sea-700); }
.before-after__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.before-after__list li { padding-left: 24px; position: relative; font-size: 14px; line-height: 1.5; }
.before-after__col--before .before-after__list li { color: var(--ink-500); }
.before-after__col--before .before-after__list li::before { content: "\2013"; position: absolute; left: 0; color: var(--ink-400); font-weight: 700; }
.before-after__col--after .before-after__list li { color: var(--ink-900); }
.before-after__col--after .before-after__list li::before { content: "\2713"; position: absolute; left: 0; color: var(--sea-500); font-weight: 700; }

/* ===== Single spotlight testimonial ===== */
.testimonial-spotlight { max-width: 720px; margin: 0 auto; text-align: center; }

/* ===== AI differentiator band ===== */
.differentiator-band { padding: 32px 0; border-top: 1px solid var(--ink-200); border-bottom: 1px solid var(--ink-200); background: var(--ink-50); }
.differentiator-band p { max-width: 760px; margin: 0 auto; text-align: center; font-size: 19px; font-weight: 700; color: var(--ink-900); line-height: 1.5; }
.differentiator-band .accent { color: var(--sun-500); }

/* ===== Hero positioning line ===== */
.hero__positioning { font-size: 18px; font-weight: 700; color: var(--sea-700); margin-top: 16px; }

/* ===== Decisions section ===== */
.decision-card { background: var(--white); border: 1.5px solid var(--ink-200); border-radius: var(--radius-md); padding: 24px; min-width: 0; }
.decision-card__q { font-weight: 700; font-size: 16px; color: var(--ink-900); margin: 0; }
.decision-card__a { margin-top: 10px; font-size: 14px; color: var(--ink-500); line-height: 1.6; }
.decisions-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .decisions-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== Trust bar section: give it more room ===== */
.trust-bar-section { padding: 64px 0; }
.trust-bar__logo-img { height: 44px; width: auto; max-width: 180px; object-fit: contain; filter: grayscale(100%); opacity: 0.6; }

/* ===== Pillar promise line (merged eyebrow + heading) ===== */
.pillar-promise { font-size: 20px; font-weight: 700; line-height: 1.4; color: var(--ink-900); margin: 0; }
.pillar-promise .accent { color: var(--sun-500); }

/* ===== Unstructured -> Horiz-in -> Structured flow diagram ===== */
.diff-flow { display: flex; flex-direction: column; align-items: center; gap: 24px; }
@media (min-width: 900px) { .diff-flow { flex-direction: row; justify-content: center; align-items: center; gap: 16px; } }
.diff-flow__col { display: flex; flex-direction: column; align-items: center; text-align: center; width: 220px; }
.diff-flow__cloud {
  position: relative; width: 160px; height: 110px; margin-bottom: 16px;
}
.diff-flow__cloud span {
  position: absolute; border: 2px solid var(--sun-500); border-radius: 50%; background: var(--white);
}
.diff-flow__cloud span:nth-child(1) { width: 90px; height: 90px; left: 0; top: 10px; }
.diff-flow__cloud span:nth-child(2) { width: 70px; height: 70px; left: 55px; top: 30px; border-color: var(--sun-400); }
.diff-flow__cloud-label { position: absolute; font-size: 10px; font-weight: 700; color: var(--ink-500); }
.diff-flow__cloud-label--ext { left: 12px; top: 48px; }
.diff-flow__cloud-label--int { left: 62px; top: 62px; }
.diff-flow__tag { display: inline-block; background: var(--ink-200); color: var(--ink-700); font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 4px 10px; border-radius: var(--radius-sm, 6px); margin-top: 8px; }
.diff-flow__caption { font-size: 13px; color: var(--ink-500); margin-top: 8px; line-height: 1.4; }
.diff-flow__logo { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.diff-flow__logo img { height: 40px; width: 40px; }
.diff-flow__logo span { font-weight: 900; font-size: 18px; color: var(--ink-900); }
.diff-flow__arrow { color: var(--ink-300); font-size: 28px; transform: rotate(90deg); }
@media (min-width: 900px) { .diff-flow__arrow { transform: none; } }
.diff-flow__tables { position: relative; width: 140px; height: 100px; margin-bottom: 16px; }
.diff-flow__tables span {
  position: absolute; width: 110px; height: 72px; border: 2px solid var(--sea-500); border-radius: 6px;
  background-image: linear-gradient(var(--ink-100) 1px, transparent 1px), linear-gradient(90deg, var(--ink-100) 1px, transparent 1px);
  background-size: 22px 18px; background-color: var(--white);
}
.diff-flow__tables span:nth-child(1) { left: 20px; top: 0; }
.diff-flow__tables span:nth-child(2) { left: 10px; top: 12px; border-color: var(--sea-300); }
.diff-flow__tables span:nth-child(3) { left: 0; top: 24px; border-color: var(--sea-200, var(--sea-500)); }

/* ===== Force-directed outcomes graph (Vega) ===== */
.force-graph { display: flex; flex-direction: column; gap: 24px; margin-top: 40px; }
@media (min-width: 860px) { .force-graph { flex-direction: row; align-items: stretch; } }
.force-graph__chart {
  flex: none; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: var(--ink-50); border: 1.5px solid var(--ink-200); border-radius: var(--radius-lg);
  padding: 20px; min-height: 420px; position: relative;
}
.force-graph__chart canvas, .force-graph__chart svg { max-width: 100%; height: auto; }
.force-graph__chart-inner { position: relative; transform-origin: top left; }
.force-graph__chart-scalewrap { position: relative; }
.force-graph__label-on {
  position: absolute; transform: translate(-50%, -50%);
  text-align: center; font-weight: 800; line-height: 1.05; pointer-events: none;
  white-space: nowrap;
}
.force-graph__label-on--hub { font-size: 12px; color: #ffffff; }
.force-graph__label-on--sector { font-size: 10px; color: #ffffff; }
.force-graph__label-on--purpose { font-size: 10px; color: #ffffff; }
.force-graph__label-on--stat { font-size: 10.5px; color: var(--sea-700); }
.force-graph__detail {
  flex: 35 1 0%; background: var(--white); border: 1.5px solid var(--ink-200);
  border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm);
  display: flex; align-items: center;
}
.force-graph__detail-inner { width: 100%; }
.force-graph__quote { margin-top: 16px; padding-left: 14px; border-left: 3px solid var(--sun-400); }
.force-graph__quote p { font-style: italic; color: var(--ink-700); font-size: 14px; line-height: 1.6; margin: 0; }
.force-graph__quote-attr { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.force-graph__quote-attr img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.force-graph__quote-attr cite { font-style: normal; font-size: 13px; color: var(--ink-500); }
#forceGraphChart svg path { transition: opacity 0.2s ease; }
.force-graph__label-on { transition: opacity 0.2s ease; }

/* ===== Mobile callout for selected graph node (hidden on wide screens where the
   side-by-side detail panel is already visible) ===== */
.force-graph__chart-wrap { position: relative; flex: 65 1 0%; }
.force-graph__callout { display: none; position: absolute; left: 12px; right: 12px; top: 12px; z-index: 1000; }
.force-graph__callout.is-visible { display: block; }
@media (min-width: 860px) { .force-graph__callout { display: none !important; } }

.force-graph__callout-collapsed {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--white); border: 1.5px solid var(--ink-200); border-radius: var(--radius-lg);
  padding: 14px 16px; box-shadow: var(--shadow-lg);
}
.force-graph__callout.is-expanded .force-graph__callout-collapsed { display: none; }
.force-graph__callout-summary { font-weight: 700; font-size: 14px; color: var(--ink-900); line-height: 1.4; }
.force-graph__callout-summary .accent { font-weight: 900; }
.force-graph__callout-expand {
  flex-shrink: 0; background: var(--sun-500); color: #fff; border: none; border-radius: var(--radius-pill);
  padding: 8px 16px; font-weight: 700; font-size: 13px; cursor: pointer; white-space: nowrap;
}
.force-graph__callout-expand:hover { background: var(--sun-600); }

.force-graph__callout-expanded {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: var(--white); overflow-y: auto; padding: 16px 20px 40px;
}
.force-graph__callout.is-expanded .force-graph__callout-expanded { display: block; }
.force-graph__callout-shrink {
  position: sticky; top: 0; margin-left: auto; display: flex;
  width: 36px; height: 36px; align-items: center; justify-content: center;
  border-radius: 50%; border: 1.5px solid var(--ink-200); background: var(--white);
  font-size: 22px; line-height: 1; color: var(--ink-700); cursor: pointer;
}
.force-graph__callout-full { margin-top: 8px; max-width: 560px; }

/* ===== Post-audit additions ===== */
/* Dropdown triggers are now <button> elements (real controls, not javascript: links) */
button.nav-link { background: none; border: 0; cursor: pointer; font-family: inherit; }

/* HTML fallback for force-graph outcome factoids — collapsed by default */
.outcomes-facts {
  margin-top: 12px;
  text-align: right;
}
.outcomes-facts__toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink-500);
  user-select: none;
}
.outcomes-facts__toggle::-webkit-details-marker { display: none; }
.outcomes-facts__toggle::marker { content: ''; }
.outcomes-facts__toggle:hover { color: var(--ink-700); }
.outcomes-facts__chevron {
  display: inline-block;
  font-size: 14px;
  line-height: 1;
  transform: translateY(0.5px);
  transition: transform 0.15s ease;
}
.outcomes-facts[open] .outcomes-facts__chevron {
  transform: rotate(90deg) translateX(1px);
}
.outcomes-facts[open] .outcomes-facts__toggle {
  margin-bottom: 16px;
}
.outcomes-facts__panel {
  text-align: left;
}
.outcomes-facts__title {
  margin: 0 0 8px;
}
.outcomes-facts__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
}
.outcomes-facts__list li {
  list-style: none;
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-500);
}
.outcomes-facts__list li strong { color: var(--ink-900); }
.outcomes-facts__stat {
  display: block;
  font-weight: 900;
  font-size: 22px;
  color: var(--sea-700);
  margin-bottom: 4px;
}
