/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ---- Design tokens ----
   Sampled from the New Horizon Diagnostics logo and slide deck (img/source/):
   gold sunrise (#f2a900), blue horizon (#0e2f8c -> #0a56d1), navy heading
   text (#0b1440), light slide background (#f5f7fb). */

:root {
  --color-navy-950: #0b1440;
  --color-blue-900: #0e2f8c;
  --color-blue-700: #14459e;
  --color-blue-600: #0a56d1;
  --color-blue-500: #2f74e6;
  --color-amber-500: #f2a900;
  --color-amber-400: #ffc233;

  --color-bg: #f5f7fb;
  --color-surface: #ffffff;
  --color-text: #16204a;
  --color-text-muted: #57628a;
  --color-text-invert: #eef2fb;
  --color-text-invert-muted: #aab8e0;
  --color-border: #e1e6f2;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(11, 20, 64, .06);
  --shadow-md: 0 8px 24px rgba(11, 20, 64, .1);
  --shadow-lg: 0 20px 48px rgba(11, 20, 64, .2);

  --container-w: 1160px;
  --header-h: 72px;

  --space-1: .5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 6rem;

  --transition: .25s ease;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans), serif;
  color: var(--color-text);
  background: var(--color-bg);
}

body {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 var(--space-2);
}

h1 {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
}

h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 var(--space-2);
  color: var(--color-text-muted);
  line-height: 1.6;
}

a {
  color: inherit;
}

.container {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-navy-950);
  color: #fff;
  padding: var(--space-1) var(--space-2);
  z-index: 200;
}

.skip-link:focus {
  left: var(--space-2);
  top: var(--space-2);
}

section[id] {
  scroll-margin-top: var(--header-h);
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-5);
  color: var(--color-navy-950);
}

.section-title.tight {
  margin-bottom: var(--space-2);
}

.section-lead {
  max-width: 68ch;
  margin-inline: auto;
  margin-bottom: var(--space-5);
  text-align: center;
  font-size: 1.05rem;
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .7em 1.4em;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-blue-600);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--color-blue-500);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, .08);
}

.btn-large {
  padding: .85em 1.8em;
  font-size: 1.05rem;
}

/* ---- Header / nav ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(11, 20, 64, .92);
  backdrop-filter: blur(6px);
  color: var(--color-text-invert);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: inherit;
  font-weight: 700;
}

.brand-icon {
  height: 30px;
  width: auto;
  display: block;
}

.brand-name {
  font-size: 1.05rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.site-nav a {
  text-decoration: none;
  color: var(--color-text-invert-muted);
  font-weight: 500;
  transition: color var(--transition);
}

.site-nav a:hover {
  color: var(--color-text-invert);
}

.site-nav .nav-cta {
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-text-invert);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ---- Hero ---- */

.hero {
  position: relative;
  background: linear-gradient(160deg, var(--color-navy-950), var(--color-blue-900));
  color: var(--color-text-invert);
  padding-block: var(--space-7) var(--space-6);
  overflow: hidden;
}

.hero-bg-mark {
  position: absolute;
  right: -8%;
  bottom: -12%;
  width: 560px;
  max-width: 60vw;
  opacity: .35;
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-6);
  align-items: center;
}

.eyebrow {
  color: var(--color-amber-400);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  font-size: .85rem;
  margin-bottom: var(--space-2);
}

.hero-copy h1 {
  color: #fff;
}

.hero-sub {
  color: var(--color-text-invert-muted);
  font-size: 1.1rem;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

/* ---- Hero slider ---- */

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.slider {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 3 / 4;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4);
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s ease;
}

.slide.is-active {
  opacity: 1;
  visibility: visible;
}

.slide p {
  color: var(--color-text-invert-muted);
  margin: 0;
  font-size: .95rem;
}

.slide-art {
  width: 100%;
  max-height: 62%;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.slider-dots {
  display: flex;
  gap: var(--space-1);
}

@media (min-width: 769px) {
  .hero-inner {
    align-items: stretch;
  }

  .hero-visual {
    height: 100%;
  }

  .slider {
    flex: 1 1 auto;
    min-height: 0;
    aspect-ratio: auto;
  }
}

.slider-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(238, 242, 248, .3);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.slider-dots button.is-active {
  background: var(--color-amber-400);
  transform: scale(1.2);
}

/* ---- Value strip ---- */

.value-strip {
  background: var(--color-blue-900);
  color: var(--color-text-invert);
  padding-block: var(--space-4);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  text-align: center;
}

.value-item {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.value-item strong {
  color: var(--color-amber-400);
  font-size: 1.15rem;
}

.value-item span {
  color: var(--color-text-invert-muted);
  font-size: .9rem;
}

/* ---- Problem / solution ---- */

.problem-solution {
  background: var(--color-surface);
  padding-block: var(--space-7);
}

.ps-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-6);
  align-items: center;
}

.ps-copy h2 {
  color: var(--color-navy-950);
}

.ps-media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ---- People band (AI-first, human-decided) ---- */

.people-band {
  background: linear-gradient(160deg, var(--color-navy-950), var(--color-blue-900));
  color: var(--color-text-invert);
  padding-block: var(--space-7);
}

.people-band-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-6);
  align-items: center;
}

.people-band-copy h2 {
  color: #fff;
}

.people-band-copy p {
  color: var(--color-text-invert-muted);
}

.people-band-copy p:last-child {
  margin-bottom: 0;
}

.people-figure {
  margin: 0;
}

.people-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.people-figure figcaption {
  margin-top: var(--space-2);
  color: var(--color-text-invert-muted);
  font-size: .85rem;
  line-height: 1.5;
}

/* ---- People / roles ---- */

.people {
  background: var(--color-surface);
  padding-block: var(--space-7);
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5) var(--space-4);
}

.person-media {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  background: var(--color-bg);
}

.person-role {
  margin: var(--space-3) 0 .35rem;
  color: var(--color-blue-600);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  font-size: .78rem;
}

.person h3 {
  color: var(--color-navy-950);
  margin-bottom: .5rem;
}

.person p {
  margin: 0;
}

/* ---- Benefits ---- */

.benefits {
  background: var(--color-bg);
  padding-block: var(--space-7);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4);
}

.benefit-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.benefit-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: var(--color-bg);
}

.benefit-body {
  padding: var(--space-4);
}

.benefit-card h3 {
  color: var(--color-navy-950);
}

.benefit-card p {
  margin: 0;
}

/* ---- How it works ---- */

.how-it-works {
  background: var(--color-surface);
  padding-block: var(--space-7);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: var(--space-2);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-navy-950);
  color: var(--color-amber-400);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.step h3 {
  color: var(--color-navy-950);
}

.step p {
  margin: 0;
}

/* ---- FAQ ---- */

.faq {
  background: var(--color-bg);
  padding-block: var(--space-7);
}

.faq-list {
  max-width: 780px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  cursor: pointer;
  font-weight: 600;
  color: var(--color-navy-950);
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  color: var(--color-blue-600);
  font-size: 1.3rem;
  line-height: 1;
  transition: transform var(--transition);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin: var(--space-2) 0 0;
}

/* ---- CTA banner ---- */

.cta-banner {
  position: relative;
  background: linear-gradient(135deg, var(--color-navy-950), var(--color-blue-900));
  color: #fff;
  padding-block: var(--space-6);
  overflow: hidden;
}

.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 60ch;
  margin-inline: auto;
}

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

.cta-inner p {
  color: var(--color-text-invert-muted);
  margin-bottom: var(--space-3);
}

/* ---- Footer ---- */

.site-footer {
  background: var(--color-navy-950);
  color: var(--color-text-invert-muted);
  padding-block: var(--space-4);
}

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

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.footer-nav a {
  text-decoration: none;
  color: var(--color-text-invert-muted);
}

.footer-nav a:hover {
  color: var(--color-text-invert);
}

.footer-copy {
  margin: 0;
  font-size: .85rem;
  width: 100%;
  text-align: center;
  order: 3;
}

/* ---- Scroll reveal ---- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---- Responsive ---- */

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

@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

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

  .ps-inner {
    grid-template-columns: 1fr;
  }

  .ps-media {
    order: -1;
  }

  .people-band-inner {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .people-figure {
    order: -1;
  }

  .people-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

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

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
    background: var(--color-navy-950);
    padding: var(--space-3);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transition: opacity var(--transition);
  }

  .site-nav.is-open {
    max-height: 480px;
    visibility: visible;
    opacity: 1;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}
