/* ==========================================================================
   Adrivant website stylesheet

   Palette is taken from the approved Advancing Horizon mark: a deep navy
   wordmark, a mid to bright blue gradient in the mountain and swish, and a
   near white highlight. One warm accent carries primary calls to action so
   they do not disappear into a page that is otherwise entirely blue.
   ========================================================================== */

:root {
  --ink:          #0b1733;
  --navy:         #13265c;
  --navy-soft:    #1d3a7d;
  --blue:         #1557b0;
  --blue-bright:  #2b8fef;
  --sky:          #e8f1fc;
  --sky-deep:     #cfe2f8;

  --accent:       #e8820c;
  --accent-dark:  #c56b05;

  --text:         #1c2435;
  --text-muted:   #51607a;
  --surface:      #ffffff;
  --surface-alt:  #f6f9fd;
  --line:         #dde6f2;

  --radius:       14px;
  --radius-sm:    9px;
  --shadow:       0 1px 2px rgba(11, 23, 51, .06), 0 8px 28px rgba(11, 23, 51, .07);
  --shadow-lift:  0 2px 6px rgba(11, 23, 51, .08), 0 18px 48px rgba(11, 23, 51, .12);

  --measure:      70ch;
  --container:    1180px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .6em;
  letter-spacing: -.015em;
  font-weight: 700;
}
h1 { font-size: clamp(2.1rem, 1.3rem + 2.8vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1.15em; max-width: var(--measure); }

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--navy); }

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

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

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: .7rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) 0; font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }

/* --------------------------------------------------------------- navigation */

#site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
  display: flex; align-items: center; gap: 1rem;
  min-height: 70px;
}
.nav-logo { display: inline-flex; align-items: center; margin-right: auto; flex-shrink: 0; }
/*
  Constrained by height, not width. The bar is a fixed height, so sizing the
  lockup by its width lets a change in the artwork's aspect ratio push the logo
  taller than the bar. Height-first cannot do that.
*/
.nav-logo img { height: 42px; width: auto; display: block; }

.nav-links {
  display: flex; align-items: center; gap: .25rem;
  list-style: none; margin: 0; padding: 0;
}
/*
  Labels never wrap: a two-line "Request a walkthrough" breaks the bar. The
  hamburger breakpoint below is set to the width at which the full row still fits.
*/
.nav-links a {
  display: inline-block; padding: .5rem .75rem;
  color: var(--text); text-decoration: none; white-space: nowrap;
  font-weight: 500; font-size: .96rem; border-radius: var(--radius-sm);
}
.nav-links a:hover { background: var(--sky); color: var(--navy); }
.nav-links a[aria-current="page"] { color: var(--navy); font-weight: 700; }

/*
  Sign in sits between the content links and the primary action, quieter than
  both. An existing customer knows to look for it; a prospect should not have it
  competing with the walkthrough request.
*/
.nav-signin { color: var(--text-muted) !important; }
.nav-signin:hover { color: var(--navy) !important; }

.nav-cta {
  background: var(--accent); color: #fff !important;
  font-weight: 600 !important; margin-left: .4rem;
}
.nav-cta:hover { background: var(--accent-dark) !important; color: #fff !important; }

.nav-hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 10px;
  background: none; border: 1px solid var(--line); border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-hamburger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

@media (max-width: 980px) {
  .nav-hamburger { display: flex; }
  .nav-links {
    position: absolute; inset: 70px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: .5rem 1.25rem 1.25rem;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .8rem .5rem; }
  .nav-cta { margin: .5rem 0 0; text-align: center; }
}

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-block; padding: .85rem 1.5rem;
  border-radius: var(--radius-sm); font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--sky-deep); }
.btn-secondary:hover { background: var(--sky); color: var(--navy); }
.btn-on-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-on-dark:hover { background: rgba(255,255,255,.12); color: #fff; }

/*
  DARK CONTEXT OVERRIDES. Every dark surface is listed here in one place.

  The default text colours in this stylesheet are dark, because most of the page
  is light. Dropping a default-coloured element onto a dark band therefore makes
  it invisible rather than merely low contrast, and invisible text reads as a
  layout bug rather than as missing content. That has already happened twice, to
  the lead-ins and to the secondary button.

  Any new dark surface class must be added to these selectors.
*/
.hero .btn-secondary,
.section-ink .btn-secondary,
.cta-band .btn-secondary,
.site-footer .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .45);
}
.hero .btn-secondary:hover,
.section-ink .btn-secondary:hover,
.cta-band .btn-secondary:hover,
.site-footer .btn-secondary:hover {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

.hero .card-control,
.cta-band .card-control { color: var(--blue-bright); }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }

/* ------------------------------------------------------------------ sections */

.section { padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0; }
.section-alt { background: var(--surface-alt); }
.section-ink { background: var(--ink); color: #dce6f5; }
.section-ink h2, .section-ink h3 { color: #fff; }
.section-ink p { color: #c3d2e8; }

.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.eyebrow {
  display: inline-block; margin-bottom: .9rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--blue);
}
.section-ink .eyebrow { color: var(--blue-bright); }
.lede { font-size: 1.15rem; color: var(--text-muted); }
.section-ink .lede { color: #b9cae4; }

/* --------------------------------------------------------------------- hero */

.hero {
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(43, 143, 239, .28), transparent 62%),
    linear-gradient(160deg, var(--ink) 0%, var(--navy) 58%, var(--navy-soft) 100%);
  color: #fff;
  padding: clamp(3.5rem, 2.5rem + 5vw, 7rem) 0;
}
.hero h1 { color: #fff; }
.hero p { color: #c9d8ef; font-size: 1.2rem; max-width: 42rem; }
.hero-grid {
  display: grid; grid-template-columns: 1.25fr .75fr; gap: 3rem; align-items: center;
}
.hero-mark { justify-self: center; }
.hero-mark img { width: min(380px, 100%); }
.hero-panel { min-width: 0; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-mark { display: none; }
}

/* -------------------------------------------------------- governed run panel */

/*
  Light card on the dark hero, so it reads as a window into the product rather
  than as decoration. Built from markup rather than a screenshot: it reflows at
  phone width, it is indexed, and it does not go stale when the product restyles.
*/
.run-panel {
  margin: 0;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  color: var(--text);
  font-size: .92rem;
}

.run-panel-flags {
  display: flex; gap: .5rem; align-items: center;
  padding: .7rem 1.1rem;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--line);
  font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--text-muted);
}
.run-panel-flag-sep { opacity: .5; }

.run-panel-head { padding: 1rem 1.1rem .4rem; }
.run-panel-label {
  display: block; margin-bottom: .2rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--text-muted);
}
.run-panel-head p { margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--ink); max-width: none; }

.run-panel-steps { list-style: none; margin: .6rem 0 0; padding: 0; }
.run-panel-steps li {
  display: grid; grid-template-columns: 1.6rem 1fr auto; gap: .75rem; align-items: center;
  padding: .6rem 1.1rem;
  border-top: 1px solid var(--line);
}
.run-step-n { color: var(--text-muted); font-variant-numeric: tabular-nums; font-size: .85rem; }
.run-step-name { color: var(--text); }

/* The waiting step is the point of the panel, so it is the only tinted row. */
.run-step-waiting { background: #fff6ec; }
.run-step-waiting .run-step-name { font-weight: 700; color: var(--ink); }

.run-chip {
  padding: .2rem .55rem; border-radius: 999px;
  background: var(--surface-alt); border: 1px solid var(--line);
  font-size: .76rem; color: var(--text-muted); white-space: nowrap;
}
.run-chip-info { background: var(--sky); border-color: var(--sky-deep); color: var(--navy); }
.run-chip-waiting {
  background: #fdebd8; border-color: #f3c795; color: #9a5600; font-weight: 600;
}

.run-panel-artifact {
  display: flex; gap: .75rem; align-items: center;
  padding: .85rem 1.1rem;
  border-top: 1px solid var(--line);
  background: var(--surface-alt);
}
.run-artifact-icon {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: var(--radius-sm);
  background: #fff; border: 1px solid var(--line);
  font-size: .58rem; font-weight: 700; letter-spacing: .04em; color: var(--text-muted);
}
.run-panel-artifact strong { display: block; color: var(--ink); }
.run-panel-artifact span { font-size: .85rem; color: var(--text-muted); }

.run-panel-foot {
  margin: 0; padding: .7rem 1.1rem;
  border-top: 1px solid var(--line);
  font-size: .72rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--text-muted); max-width: none;
}

@media (max-width: 560px) {
  .run-panel { font-size: .86rem; }
  .run-panel-steps li { grid-template-columns: 1.3rem 1fr; row-gap: .3rem; }
  .run-chip { grid-column: 2; justify-self: start; }
}

/* On a light section the panel needs its own boundary, the shadow alone is weak. */
.run-panel-wrap { max-width: 44rem; margin: 2.5rem 0 0; }
.run-panel-wrap .run-panel { border: 1px solid var(--line); }
.run-panel-note {
  margin: 1rem 0 0; font-size: .95rem; color: var(--text-muted); max-width: var(--measure);
}

/* -------------------------------------------------------------------- cards */

/*
  Fixed column counts, not auto-fit. An auto-fit grid reflows card sets into a
  ragged final row at common laptop widths, which reads as a layout defect
  rather than a design choice.
*/
.card-grid { display: grid; gap: 1.25rem; }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) {
  .card-grid-3, .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .card-grid-2, .card-grid-3, .card-grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .45rem; }
.card p { font-size: .98rem; color: var(--text-muted); margin-bottom: 0; }
.card p + p { margin-top: .7rem; }
.card-control {
  margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--line);
  font-size: .9rem; color: var(--navy); font-weight: 600;
}
.section-alt .card { background: #fff; }
.section-ink .card {
  background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14);
  box-shadow: none;
}
.section-ink .card p { color: #b9cae4; }
.section-ink .card-control { color: var(--blue-bright); border-top-color: rgba(255,255,255,.14); }

/* --------------------------------------------------------------- lead-in list */

/*
  Flowing prose with a bold lead-in, rather than bullet lists. Long form reads
  better for the people who make the buying decision, and it survives a reader
  who never looks at the pictures.
*/
.leadin { max-width: var(--measure); }
.leadin p strong { color: var(--ink); }

/*
  On a dark band the lead-in must be re-coloured. --ink is both the lead-in color
  and the .section-ink background, so without this rule the bold opening of every
  paragraph is dark navy on dark navy: invisible, and it reads as a stray indent
  rather than as missing text. See the dark context overrides above.
*/
.hero .leadin p strong,
.section-ink .leadin p strong,
.cta-band .leadin p strong { color: #ffffff; }

/* ------------------------------------------------------------------ product */

.product-head { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: center; }
.product-head img { width: 118px; }
@media (max-width: 680px) {
  .product-head { grid-template-columns: 1fr; }
  .product-head img { width: 92px; }
}

.callout {
  border-left: 4px solid var(--blue-bright);
  background: var(--sky);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.25rem 1.4rem;
  margin: 2rem 0;
  max-width: var(--measure);
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--navy); }

/* ----------------------------------------------------------------- leadership */

/* Founder bios: photo beside text, stacked on narrow screens. */
.people-list { display: grid; gap: 1.5rem; }
.person-bio {
  display: grid; grid-template-columns: 200px 1fr; gap: 2rem; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow);
}
.person-photo img {
  display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: var(--radius);
}
.person-text h3 { margin-bottom: .2rem; font-size: 1.25rem; }
.person-text .person-role { margin: 0 0 1rem; font-weight: 600; color: var(--text-muted); }
.person-text p { margin: 0 0 .85rem; }
.person-text p:last-child { margin-bottom: 0; }
@media (max-width: 640px) {
  .person-bio { grid-template-columns: 1fr; gap: 1.25rem; padding: 1.25rem; }
  .person-photo { max-width: 220px; }
}

/* ------------------------------------------------------------------- contact */

.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; gap: 2rem; } }

.contact-card {
  background: var(--surface-alt); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.75rem;
}
.contact-card h3 { margin-bottom: 1rem; }
.contact-card a { font-weight: 600; }

/* ------------------------------------------------------------------ the form */

.form-group { margin-bottom: 1rem; }

.form-label {
  display: block; margin-bottom: .35rem;
  font-size: .9rem; font-weight: 600; color: var(--ink);
}
.req { color: var(--accent-dark); }

.form-control {
  width: 100%; padding: .7rem .85rem;
  font: inherit; font-size: .98rem; color: var(--text);
  background: #fff;
  border: 1px solid var(--sky-deep); border-radius: var(--radius-sm);
}
.form-control:focus-visible { border-color: var(--blue-bright); }
.form-control::placeholder { color: #93a2bb; }
textarea.form-control { resize: vertical; min-height: 7rem; }

/* Marked only after a failed submit, never while somebody is still typing. */
.form-control.is-invalid { border-color: #b3261e; background: #fff7f6; }
.form-field-error { margin: .3rem 0 0; font-size: .85rem; color: #b3261e; }

.form-consent {
  margin: 0 0 1rem; font-size: .83rem; line-height: 1.55; color: var(--text-muted);
  max-width: none;
}
.form-consent strong { color: var(--text); }

.form-submit { width: 100%; justify-content: center; }

.form-banner {
  margin: 0 0 1.25rem; padding: .85rem 1rem;
  border-radius: var(--radius-sm); border: 1px solid; font-size: .92rem;
}
.form-banner-ok { background: #eef7ee; border-color: #bcd9bd; color: #1f5223; }
.form-banner-bad { background: #fdf2f1; border-color: #e8bdb8; color: #8c2018; }
.form-banner a { color: inherit; }

.contact-fallback {
  margin: 1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line);
  font-size: .88rem; color: var(--text-muted); max-width: none;
}

/* --------------------------------------------------------------------- band */

.cta-band {
  background: linear-gradient(150deg, var(--navy) 0%, var(--ink) 100%);
  color: #fff; border-radius: var(--radius);
  padding: clamp(2rem, 1.5rem + 2vw, 3.25rem);
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #c3d2e8; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; }

/* ------------------------------------------------------------------- footer */

.site-footer { background: var(--ink); color: #aebcd4; padding: 3.5rem 0 2rem; margin-top: 0; }
.footer-main {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem;
  padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.1);
}
@media (max-width: 950px) { .footer-main { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 560px) { .footer-main { grid-template-columns: 1fr; } }

.footer-brand img { height: 54px; width: auto; margin-bottom: 1rem; }
.footer-brand p { font-size: .94rem; color: #9aabc6; max-width: 32ch; }

.footer-col h2 {
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; margin-bottom: .9rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .55rem; }
.footer-col a { color: #aebcd4; text-decoration: none; font-size: .94rem; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.ext-mark { margin-left: .25rem; font-size: .8em; }

.footer-bottom { padding-top: 1.75rem; }
.footer-bottom p { font-size: .88rem; color: #8798b5; margin: 0; max-width: none; }

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

.fade-up { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.fade-up.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1 !important; transform: none !important; transition: none !important; }
}
