/* ==========================================================================
   HiStar design system
   Brand: navy #002453 / red #e62e15, carried over from the previous site
   where they were already defined as the theme primary and secondary.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Brand */
  --brand-navy-900: #00122e;
  --brand-navy-800: #001a40;
  --brand-navy-700: #001f4b;
  --brand-navy: #002453;
  --brand-navy-500: #3b6199;
  --brand-navy-300: #8aa6c9;
  --brand-navy-100: #d6e0ed;
  --brand-navy-50: #eef3f9;

  --brand-red-700: #a32310;
  --brand-red-600: #c72713;
  /*
   * Brand red. #e62e15 is the logo red and is used for decorative marks,
   * where WCAG only asks for 3:1. --accent below is one step darker so that
   * red TEXT on white, and white text on a red button, clear 4.5:1.
   */
  --brand-red: #e62e15;
  --brand-red-text: #d42a12;
  --brand-red-300: #f27c72;
  --brand-red-50: #fdeceb;

  /* Semantic */
  --primary: var(--brand-navy);
  --primary-dark: var(--brand-navy-800);
  --accent: var(--brand-red-text);
  --accent-dark: var(--brand-red-600);
  --accent-mark: var(--brand-red);

  --bg: #ffffff;
  --bg-subtle: #f6f8fb;
  --bg-inverse: var(--brand-navy);
  --surface: #ffffff;
  --surface-raised: #ffffff;

  --text: #11203a;
  --text-muted: #56637a;
  --text-inverse: #ffffff;
  --text-inverse-muted: #b4c3d8;

  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --border-inverse: rgba(255, 255, 255, 0.18);

  --focus: var(--brand-red);

  /* Type scale */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.875rem);
  --step-0: clamp(1rem, 0.97rem + 0.13vw, 1.0625rem);
  --step-1: clamp(1.13rem, 1.08rem + 0.24vw, 1.25rem);
  --step-2: clamp(1.33rem, 1.23rem + 0.48vw, 1.6rem);
  --step-3: clamp(1.6rem, 1.4rem + 0.95vw, 2.15rem);
  --step-4: clamp(1.95rem, 1.6rem + 1.7vw, 2.95rem);
  --step-5: clamp(2.3rem, 1.75rem + 2.7vw, 3.9rem);

  /* Space */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  --section-y: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);
  --container: 1200px;
  --container-narrow: 820px;
  --gutter: clamp(1rem, 0.5rem + 2vw, 2.5rem);

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;

  --shadow-sm: 0 1px 2px rgba(0, 18, 46, 0.06);
  --shadow: 0 4px 16px rgba(0, 18, 46, 0.07);
  --shadow-lg: 0 12px 36px rgba(0, 18, 46, 0.1);

  --transition: 180ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. Reset and base
   -------------------------------------------------------------------------- */

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

/*
 * Components below set display: flex/grid, which outranks the user agent's
 * [hidden] { display: none } rule. Without this, anything toggled with the
 * hidden attribute - form status messages, the mobile drawer - stays visible.
 */
[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 var(--space-4);
  color: var(--primary);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); letter-spacing: -0.012em; }

p {
  margin: 0 0 var(--space-4);
  text-wrap: pretty;
}

p:last-child { margin-bottom: 0; }

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

a:hover { color: var(--accent); }

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

ul, ol { margin: 0 0 var(--space-4); padding-left: 1.25rem; }
li { margin-bottom: var(--space-2); }

strong { font-weight: 650; }

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

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 2rem + 2.5vw, 4rem); }
.section--subtle { background: var(--bg-subtle); }

.section--inverse {
  background: var(--bg-inverse);
  color: var(--text-inverse);
}

.section--inverse h1,
.section--inverse h2,
.section--inverse h3,
.section--inverse h4 { color: var(--text-inverse); }

.section--inverse p { color: var(--text-inverse-muted); }

.grid { display: grid; gap: var(--space-5); }

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

@media (min-width: 900px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .grid--2-wide { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 640px) and (max-width: 899px) {
  .grid--3,
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100%;
  z-index: 200;
  padding: var(--space-3) var(--space-5);
  background: var(--primary);
  color: var(--text-inverse);
  font-weight: 600;
  border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 0;
  color: var(--text-inverse);
}

/* --------------------------------------------------------------------------
   4. Typographic components
   -------------------------------------------------------------------------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: 0 0 var(--space-4);
  color: var(--accent);
  font-size: var(--step--1);
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  background: var(--accent-mark);
  flex: none;
}

.section--inverse .eyebrow { color: var(--brand-red-300); }
.section--inverse .eyebrow::before { background: var(--brand-red-300); }

.section-head { max-width: 46rem; margin-bottom: var(--space-7); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

.lead {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--text-muted);
}

.section--inverse .lead { color: var(--text-inverse-muted); }

.muted { color: var(--text-muted); }

/*
 * Body copy inside components on a dark section. These need the extra
 * specificity because component rules such as `.feature-list p` are declared
 * later in the file and would otherwise win with --text-muted, which has far
 * too little contrast against navy.
 */
.section--inverse .feature-list p,
.section--inverse .steps p,
.section--inverse .card p,
.section--inverse .faq__answer p,
.section--inverse .product-card p { color: var(--text-inverse-muted); }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.8rem 1.6rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition),
    color var(--transition), transform var(--transition);
}

.btn:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn:active { transform: none; }

.btn--secondary {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--primary);
}

.btn--secondary:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.btn--on-dark {
  background: transparent;
  border-color: var(--border-inverse);
  color: #fff;
}

.btn--on-dark:hover {
  background: #fff;
  border-color: #fff;
  color: var(--primary);
}

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

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

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--accent);
}

.link-arrow svg { transition: transform var(--transition); flex: none; }
.link-arrow:hover svg { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   6. Header
   -------------------------------------------------------------------------- */

.topbar {
  background: var(--brand-navy-900);
  color: var(--text-inverse-muted);
  font-size: var(--step--1);
}

.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-5);
  padding-block: 0.55rem;
}

.topbar__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.topbar__list li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
}

.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--brand-red-300); }
.topbar svg { flex: none; opacity: 0.7; }

@media (max-width: 767px) {
  .topbar { display: none; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.site-header[data-scrolled="true"] { box-shadow: var(--shadow); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  min-height: 4.5rem;
}

.site-logo { display: flex; align-items: center; flex: none; }
.site-logo img { width: auto; height: 2.6rem; }

@media (min-width: 1024px) {
  .site-logo img { height: 3rem; }
}

/* Desktop nav */

.nav { display: none; }

@media (min-width: 1024px) {
  .nav {
    display: flex;
    align-items: center;
    margin-left: auto;
  }
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__list > li { margin: 0; position: relative; }

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  color: var(--primary);
  font-size: var(--step-0);
  font-weight: 550;
  text-decoration: none;
  background: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.nav__link:hover { color: var(--accent); }

.nav__link[aria-current="page"],
.nav__item--active > .nav__link {
  color: var(--accent);
}

.nav__link[aria-current="page"]::after,
.nav__item--active > .nav__link::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.15rem;
  height: 2px;
  background: var(--accent);
}

.nav__caret { transition: transform var(--transition); }
.nav__link[aria-expanded="true"] .nav__caret { transform: rotate(180deg); }

.nav__dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  z-index: 10;
  min-width: 19rem;
  margin: 0;
  padding: var(--space-3);
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--transition), transform var(--transition),
    visibility var(--transition);
}

.nav__item--open .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.nav__dropdown li { margin: 0; }

.nav__dropdown a {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: 0.6rem 0.7rem;
  border-radius: var(--radius);
  color: var(--primary);
  font-size: var(--step--1);
  font-weight: 550;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}

.nav__dropdown a:hover,
.nav__dropdown a:focus-visible { background: var(--bg-subtle); color: var(--accent); }

.nav__dropdown .icon-chip {
  width: 2rem;
  height: 2rem;
  flex: none;
  /* Reset the card variant's bottom margin, which would space the rows out. */
  margin-bottom: 0;
  border-radius: var(--radius-sm);
}

.nav__dropdown .icon-chip svg { width: 1rem; height: 1rem; }

.header-cta { display: none; }

@media (min-width: 1024px) {
  .header-cta { display: inline-flex; margin-left: var(--space-4); flex: none; }
}

/* Mobile toggle */

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--primary);
  cursor: pointer;
}

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
}

/* Mobile drawer */

.mobile-nav {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 120;
  width: min(23rem, 88vw);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 260ms cubic-bezier(0.4, 0, 0.2, 1), visibility 260ms;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-nav[data-open="true"] { transform: none; visibility: visible; }

.mobile-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border);
}

.mobile-nav__head img { height: 2.25rem; width: auto; }

.mobile-nav__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--primary);
  cursor: pointer;
}

.mobile-nav__body { padding: var(--space-4) var(--space-5); flex: 1; }

.mobile-nav__list { margin: 0; padding: 0; list-style: none; }
.mobile-nav__list li { margin: 0; }

.mobile-nav__list > li > a,
.mobile-nav__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: var(--space-3);
  padding: 0.85rem 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: none;
  color: var(--primary);
  font: inherit;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.mobile-nav__list a[aria-current="page"] { color: var(--accent); }

.mobile-nav__toggle .nav__caret { transition: transform var(--transition); }
.mobile-nav__toggle[aria-expanded="true"] .nav__caret { transform: rotate(180deg); }

.mobile-nav__sub {
  margin: 0;
  padding: 0 0 var(--space-3) var(--space-4);
  list-style: none;
  display: none;
}

.mobile-nav__sub[data-open="true"] { display: block; }

.mobile-nav__sub a {
  display: block;
  padding: 0.55rem 0;
  color: var(--text-muted);
  font-size: var(--step--1);
  font-weight: 550;
  text-decoration: none;
}

.mobile-nav__sub a:hover,
.mobile-nav__sub a[aria-current="page"] { color: var(--accent); }

.mobile-nav__foot {
  padding: var(--space-5);
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
}

.mobile-nav__foot .btn { margin-bottom: var(--space-4); }

.mobile-nav__contact { margin: 0; padding: 0; list-style: none; font-size: var(--step--1); }
.mobile-nav__contact li { margin-bottom: var(--space-2); }
.mobile-nav__contact a { color: var(--text-muted); text-decoration: none; }

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(0, 18, 46, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 260ms, visibility 260ms;
}

.nav-backdrop[data-open="true"] { opacity: 1; visibility: visible; }

body[data-nav-open="true"] { overflow: hidden; }

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--brand-navy);
  color: var(--text-inverse);
  padding-block: clamp(4rem, 3rem + 6vw, 8rem);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60rem 30rem at 82% -10%, rgba(230, 46, 21, 0.22), transparent 62%),
    radial-gradient(48rem 26rem at 8% 108%, rgba(59, 97, 153, 0.35), transparent 60%);
  pointer-events: none;
}

.hero > .container { position: relative; }

.hero__inner { max-width: 44rem; }

.hero h1 { color: #fff; margin-bottom: var(--space-5); }

.hero__text {
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--text-inverse-muted);
  margin-bottom: var(--space-6);
  max-width: 38rem;
}

.hero .eyebrow { color: var(--brand-red-300); }
.hero .eyebrow::before { background: var(--brand-red-300); }

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  margin: var(--space-8) 0 0;
  padding: var(--space-6) 0 0;
  list-style: none;
  border-top: 1px solid var(--border-inverse);
}

.hero__stat { margin: 0; }

.hero__stat a {
  display: inline-block;
  font-size: var(--step--1);
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-inverse-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color var(--transition), border-color var(--transition);
}

.hero__stat a:hover {
  color: #fff;
  border-bottom-color: var(--brand-red-300);
}

/* Compact page hero for inner pages */

.page-hero {
  background: var(--brand-navy);
  color: var(--text-inverse);
  padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) clamp(2.5rem, 2rem + 3vw, 4rem);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(52rem 24rem at 88% 0%, rgba(230, 46, 21, 0.2), transparent 62%);
  pointer-events: none;
}

.page-hero > .container { position: relative; }
.page-hero .eyebrow { color: var(--brand-red-300); }
.page-hero .eyebrow::before { background: var(--brand-red-300); }
.page-hero__inner { max-width: 44rem; }
.page-hero h1 { color: #fff; margin-bottom: var(--space-4); }

.page-hero__text {
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--text-inverse-muted);
  max-width: 40rem;
  margin-bottom: 0;
}

.page-hero .btn-row { margin-top: var(--space-6); }

/* --------------------------------------------------------------------------
   8. Breadcrumb
   -------------------------------------------------------------------------- */

.breadcrumb { margin-bottom: var(--space-5); }

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--step--1);
}

.breadcrumb li { margin: 0; display: flex; align-items: center; gap: var(--space-2); }
.breadcrumb li + li::before { content: "/"; opacity: 0.45; }
.breadcrumb a { color: var(--text-inverse-muted); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: #fff; font-weight: 550; }

/* --------------------------------------------------------------------------
   9. Cards
   -------------------------------------------------------------------------- */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), box-shadow var(--transition),
    transform var(--transition);
}

.card h3 { font-size: var(--step-1); margin-bottom: var(--space-3); }
.card p { color: var(--text-muted); font-size: var(--step--1); line-height: 1.6; }

.card__body { flex: 1; }
.card__foot { margin-top: var(--space-5); }

.card--link:hover {
  border-color: var(--brand-navy-300);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

/* Whole card is clickable via the stretched title link */
.card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.card__link { text-decoration: none; color: inherit; }

.icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: var(--space-5);
  border-radius: var(--radius);
  background: var(--brand-navy-50);
  color: var(--primary);
  flex: none;
}

.icon-chip svg { width: 1.5rem; height: 1.5rem; }

.card--link:hover .icon-chip { background: var(--brand-red-50); color: var(--accent); }

.section--inverse .card {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-inverse);
}

.section--inverse .card h3 { color: #fff; }
.section--inverse .card p { color: var(--text-inverse-muted); }
.section--inverse .icon-chip { background: rgba(255, 255, 255, 0.08); color: #fff; }

/* Numbered feature list */

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 640px) { .feature-list--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .feature-list--3 { grid-template-columns: repeat(3, 1fr); } }

.feature-list li {
  margin: 0;
  padding-left: var(--space-6);
  position: relative;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 1px;
  background: var(--accent-mark);
  transform: rotate(45deg);
}

.feature-list h3,
.feature-list h4 {
  font-size: var(--step-1);
  margin-bottom: var(--space-2);
}
.feature-list p { color: var(--text-muted); font-size: var(--step--1); margin: 0; }

/* Check list */

.check-list { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-3); }

@media (min-width: 640px) { .check-list--2 { grid-template-columns: repeat(2, 1fr); } }

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin: 0;
  font-size: var(--step-0);
}

.check-list svg { flex: none; margin-top: 0.3em; color: var(--accent); }

.section--inverse .check-list li { color: var(--text-inverse-muted); }
.section--inverse .check-list svg { color: var(--brand-red-300); }

/* Process steps */

.steps {
  counter-reset: step;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps--5 { grid-template-columns: repeat(5, 1fr); }
  .steps--4 { grid-template-columns: repeat(4, 1fr); }
  .steps--3 { grid-template-columns: repeat(3, 1fr); } }

.steps li {
  counter-increment: step;
  margin: 0;
  padding-top: var(--space-5);
  border-top: 2px solid var(--border);
  transition: border-color var(--transition);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: var(--space-3);
  color: var(--accent);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.steps h3 { font-size: var(--step-1); margin-bottom: var(--space-2); }
.steps p { color: var(--text-muted); font-size: var(--step--1); margin: 0; }

.section--inverse .steps li { border-color: var(--border-inverse); }
.section--inverse .steps li::before { color: var(--brand-red-300); }

/* Split section */

.split {
  display: grid;
  gap: var(--space-7);
  align-items: start;
}

@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-9); align-items: center; }
  .split--narrow-left { grid-template-columns: 5fr 6fr; }
}

/* Panel - a bordered emphasis block */

.panel {
  padding: var(--space-6);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.panel--accent { border-left: 3px solid var(--accent); }

/* Tag pills */

.tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }

.tags li {
  margin: 0;
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 550;
  letter-spacing: 0.01em;
}

/* Product category card */

.product-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.product-card:hover { box-shadow: var(--shadow); border-top-color: var(--accent); }
.product-card h3 { font-size: var(--step-1); margin-bottom: var(--space-3); }
.product-card p { color: var(--text-muted); font-size: var(--step--1); flex: 1; }
.product-card .tags { margin-top: var(--space-5); }
.product-card__foot { margin-top: var(--space-5); }

/* --------------------------------------------------------------------------
   10. FAQ
   -------------------------------------------------------------------------- */

.faq { max-width: 48rem; }

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  color: var(--primary);
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}

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

.faq summary:hover { color: var(--accent); }

.faq summary::after {
  content: "";
  flex: none;
  width: 0.7rem;
  height: 0.7rem;
  margin-top: 0.45em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--transition);
}

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

.faq__answer { padding: 0 0 var(--space-5); max-width: 44rem; }
.faq__answer p { color: var(--text-muted); margin: 0; }

/* --------------------------------------------------------------------------
   11. Forms
   -------------------------------------------------------------------------- */

.form { display: grid; gap: var(--space-5); }

.form__row { display: grid; gap: var(--space-5); }

@media (min-width: 640px) { .form__row--2 { grid-template-columns: repeat(2, 1fr); } }

.field { display: flex; flex-direction: column; gap: var(--space-2); }

.field label {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--primary);
}

.field .req { color: var(--accent); }

.field__hint { font-size: 0.8rem; color: var(--text-muted); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: var(--step-0);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.field textarea { min-height: 9rem; resize: vertical; }

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%2356637a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.4rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 36, 83, 0.12);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--accent);
}

.field input[aria-invalid="true"]:focus,
.field textarea[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(230, 46, 21, 0.14);
}

.field__error {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.8rem;
  font-weight: 550;
  color: var(--brand-red-700);
}

/* Honeypot - hidden from sighted users and assistive tech alike */
.form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--border);
  border-left-width: 3px;
  border-radius: var(--radius);
  font-size: var(--step--1);
}

.form-status svg { flex: none; margin-top: 0.15em; }
.form-status p { margin: 0; }
.form-status strong { display: block; margin-bottom: 0.15rem; font-size: var(--step-0); }

.form-status--success {
  border-color: #b7e3c6;
  border-left-color: #16794a;
  background: #f1faf4;
  color: #14532d;
}

.form-status--success svg { color: #16794a; }

.form-status--error {
  border-color: #f3c3bc;
  border-left-color: var(--accent);
  background: var(--brand-red-50);
  color: var(--brand-red-700);
}

.form-status--error svg { color: var(--accent); }

.btn .spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

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

.form[data-submitting="true"] .btn--submit { opacity: 0.7; pointer-events: none; }

/* Contact info list */

.contact-list { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-5); }

.contact-list li { display: flex; gap: var(--space-4); margin: 0; }

.contact-list h3 {
  font-size: var(--step--1);
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-1);
}

.contact-list a { text-decoration: none; font-weight: 550; }
.contact-list p { margin: 0; }

.contact-list .icon-chip { width: 2.5rem; height: 2.5rem; margin-bottom: 0; }
.contact-list .icon-chip svg { width: 1.15rem; height: 1.15rem; }

.map {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  line-height: 0;
}

.map iframe { width: 100%; height: clamp(18rem, 40vw, 26rem); border: 0; }

/* --------------------------------------------------------------------------
   12. CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--brand-navy);
  color: var(--text-inverse);
  padding-block: clamp(3rem, 2.5rem + 3vw, 5rem);
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(44rem 22rem at 90% 110%, rgba(230, 46, 21, 0.25), transparent 60%);
  pointer-events: none;
}

.cta-band > .container { position: relative; }

.cta-band__inner {
  display: grid;
  gap: var(--space-6);
  align-items: center;
}

@media (min-width: 900px) {
  .cta-band__inner { grid-template-columns: 1fr auto; gap: var(--space-8); }
}

.cta-band h2 { color: #fff; margin-bottom: var(--space-3); font-size: var(--step-3); }
.cta-band p { color: var(--text-inverse-muted); margin: 0; max-width: 34rem; }

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--brand-navy-900);
  color: var(--text-inverse-muted);
  font-size: var(--step--1);
}

.site-footer__top { padding-block: var(--space-8) var(--space-7); }

.site-footer__grid { display: grid; gap: var(--space-7); }

@media (min-width: 640px) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }

@media (min-width: 1000px) {
  .site-footer__grid { grid-template-columns: 2.2fr 1fr 1.4fr 1.6fr; gap: var(--space-6); }
}

.site-footer h2 {
  font-size: var(--step--1);
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--space-5);
}

.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: var(--space-3); }
.site-footer a { color: var(--text-inverse-muted); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer p { color: var(--text-inverse-muted); }

.site-footer__logo img {
  height: 3.75rem;
  width: auto;
  margin-bottom: var(--space-5);
}

.site-footer__contact li { display: flex; gap: var(--space-3); align-items: flex-start; }
.site-footer__contact svg { flex: none; margin-top: 0.3em; opacity: 0.6; }

.site-footer__bottom {
  padding-block: var(--space-5);
  border-top: 1px solid var(--border-inverse);
}

.site-footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-5);
}

.site-footer__bottom p { margin: 0; font-size: 0.82rem; }

/* --------------------------------------------------------------------------
   14. 404
   -------------------------------------------------------------------------- */

.error-page {
  display: flex;
  align-items: center;
  min-height: 60vh;
  padding-block: var(--section-y);
  text-align: center;
}

.error-page__code {
  display: block;
  font-size: clamp(4rem, 3rem + 8vw, 8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  /* Large decorative numeral - kept at 3:1 or better against white. */
  color: #6f90bb;
  margin-bottom: var(--space-4);
}

.error-page .btn-row { justify-content: center; }

.error-page__links {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}

/* --------------------------------------------------------------------------
   15. Motion
   -------------------------------------------------------------------------- */

/*
 * Reveal-on-scroll. Scoped to .js, which the inline script in the document
 * head sets. Without JavaScript the starting styles never apply, so the
 * content is simply visible rather than stuck at opacity 0.
 */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 520ms ease, transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js [data-reveal].is-visible { opacity: 1; transform: none; }

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js [data-reveal] { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   16. Print
   -------------------------------------------------------------------------- */

@media print {
  .site-header,
  .topbar,
  .mobile-nav,
  .nav-backdrop,
  .cta-band,
  .site-footer { display: none; }

  body { color: #000; }
  .hero, .page-hero { background: none; color: #000; padding-block: 1rem; }
  .hero h1, .page-hero h1 { color: #000; }
}
