/* ==========================================================================
   AC Flood Guard — site styles
   Brand palette sampled from the AC Flood Guard GraviTrip logo.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Brand */
  --navy-950: #021a36;
  --navy-900: #032245;
  --navy-800: #04305e;
  --navy-700: #044077;
  --blue-600: #0270b7;
  --blue-500: #0088c8;
  --teal-600: #006b96;
  --sky-50: #f3f9fd;
  --sky-100: #e7f2fa;
  --sky-200: #cde4f2;
  --sky-300: #a4cedc;
  --amber-400: #fcb42e;
  --amber-300: #fdc85e;
  --amber-100: #fff4dc;
  --red-700: #b42318;
  --red-50: #fdeeec;
  --green-700: #1b7a45;

  /* Neutrals */
  --ink-900: #0b1b2b;
  --ink-700: #33475b;
  --ink-500: #56677a;
  --line: #d8e3ec;
  --line-strong: #7a8ea3;
  --white: #fff;

  /* Type */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --step-2: clamp(1.3125rem, 1.15rem + 0.7vw, 1.75rem);
  --step-3: clamp(1.625rem, 1.3rem + 1.4vw, 2.5rem);
  --step-4: clamp(1.875rem, 1.45rem + 1.8vw, 2.875rem);
  --step-5: clamp(2.375rem, 1.6rem + 3.3vw, 4.25rem);

  /* Space & shape */
  --gutter: clamp(1rem, 4vw, 2rem);
  --container: 1200px;
  --section-y: clamp(3.5rem, 7vw, 7rem);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(3, 34, 69, 0.06), 0 2px 6px rgba(3, 34, 69, 0.06);
  --shadow: 0 18px 40px -20px rgba(3, 34, 69, 0.35);
  --shadow-lg: 0 30px 60px -28px rgba(3, 34, 69, 0.45);
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
}

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

h1, h2, h3, h4 {
  margin: 0;
  color: var(--navy-900);
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); font-weight: 800; letter-spacing: -0.03em; line-height: 1.04; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); letter-spacing: -0.015em; }
h4 { font-size: var(--step-1); }

p, ul, ol, dl, figure, blockquote, address { margin: 0; }
p { text-wrap: pretty; }
address { font-style: normal; }
strong { font-weight: 700; }

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

:focus-visible {
  outline: 3px solid var(--blue-600);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-dark :focus-visible { outline-color: var(--amber-400); }

::selection { background: var(--sky-200); color: var(--navy-950); }

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--navy-900);
  color: #fff;
  font-weight: 650;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; color: #fff; }

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

[hidden] { display: none !important; }
html:not(.js) .js-only { display: none !important; }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}
.container--narrow { --container: 820px; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: calc(var(--section-y) * 0.6); }
.section--tint { background: var(--sky-50); }
.section--navy {
  background:
    radial-gradient(900px 420px at 90% 0%, rgba(0, 136, 200, 0.22), transparent 65%),
    var(--navy-900);
  color: #c8d8e8;
}
.section--navy h2,
.section--navy h3 { color: #fff; }
.section + .section--tint,
.section--tint + .section { border-top: 0; }

.section-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head > * + * { margin-top: 1rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--split {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
}
.section-head--split > * + * { margin-top: 0; }
.section-head--split > div { max-width: 720px; }
.section-head--split > div > * + * { margin-top: 1rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-600);
}
.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.on-dark .eyebrow,
.section--navy .eyebrow { color: var(--amber-400); }

.lead { font-size: var(--step-1); line-height: 1.6; color: var(--ink-700); }
.on-dark .lead,
.section--navy .lead { color: #c8d8e8; }
.muted { color: var(--ink-500); }
.small { font-size: var(--step--1); }

.stack > * + * { margin-top: var(--stack, 1rem); }
.stack-lg > * + * { margin-top: 1.5rem; }

.grid { display: grid; gap: var(--gap, 1.5rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.split--start { align-items: start; }
.split--wide-left { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
.split--wide-right { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
@media (max-width: 900px) {
  .split, .split--wide-left, .split--wide-right { grid-template-columns: minmax(0, 1fr); }
  .split--reverse-mobile > :first-child { order: 2; }
}

.list-check { list-style: none; padding: 0; display: grid; gap: 0.75rem; }
.list-check li { position: relative; padding-left: 2rem; }
.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--sky-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%230270b7' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 0.9rem no-repeat;
}
.section--navy .list-check li::before,
.on-dark .list-check li::before {
  background-color: rgba(252, 180, 46, 0.16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23fcb42e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.list-bullets { padding-left: 1.25rem; display: grid; gap: 0.5rem; }
.list-bullets li::marker { color: var(--blue-600); }

/* --------------------------------------------------------------------------
   Buttons & links
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn--sm { min-height: 42px; padding: 0.55rem 1.1rem; font-size: 0.9375rem; }

.btn--primary { background: var(--navy-700); color: #fff; box-shadow: 0 8px 20px -12px rgba(4, 64, 119, 0.8); }
.btn--primary:hover { background: var(--navy-900); color: #fff; }
.btn--accent { background: var(--amber-400); color: var(--navy-950); box-shadow: 0 8px 22px -12px rgba(252, 180, 46, 0.9); }
.btn--accent:hover { background: var(--amber-300); color: var(--navy-950); }
.btn--secondary { background: #fff; color: var(--navy-700); border-color: var(--sky-200); }
.btn--secondary:hover { border-color: var(--navy-700); color: var(--navy-900); }
.btn--ghost-light { color: #fff; border-color: rgba(255, 255, 255, 0.5); background: transparent; }
.btn--ghost-light:hover { color: #fff; background: rgba(255, 255, 255, 0.1); border-color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 650;
  text-decoration: none;
}
.link-arrow svg { width: 1.1em; height: 1.1em; transition: transform 0.2s var(--ease); }
.link-arrow:hover { text-decoration: underline; }
.link-arrow:hover svg { transform: translateX(3px); }
.on-dark .link-arrow,
.section--navy .link-arrow { color: #fff; }

/* --------------------------------------------------------------------------
   Header & navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -24px rgba(3, 34, 69, 0.6);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; flex: none; border-radius: 8px; }
.brand img { height: 44px; width: auto; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.site-nav a:not(.btn) {
  display: block;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  color: var(--ink-900);
  font-weight: 560;
  font-size: 0.975rem;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.site-nav a:not(.btn):hover { background: var(--sky-100); color: var(--navy-900); }
.site-nav a[aria-current="page"]:not(.btn) {
  color: var(--navy-700);
  background: var(--sky-100);
  font-weight: 650;
}
.site-nav__cta { margin-left: 0.5rem; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--navy-900);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 959.98px) {
  .brand img { height: 38px; }
  .site-header__inner { flex-wrap: wrap; }
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    padding: 1.25rem var(--gutter) 2rem;
    background: #fff;
    border-top: 1px solid var(--line);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s linear 0.2s;
  }
  .js .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  }
  .js .site-nav ul { flex-direction: column; align-items: stretch; gap: 0.25rem; }
  .js .site-nav a:not(.btn) { padding: 0.9rem 1rem; font-size: 1.125rem; border-radius: 12px; }
  .js .site-nav__cta { margin: 1rem 0 0; }
  .js .site-nav__cta .btn { width: 100%; min-height: 52px; }
  html:not(.js) .site-nav { width: 100%; padding-bottom: 0.75rem; }
  html:not(.js) .site-nav ul { flex-wrap: wrap; }
  body.nav-open { overflow: hidden; }
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(3rem, 7vw, 6.5rem);
  background:
    radial-gradient(900px 520px at 88% 8%, rgba(0, 136, 200, 0.14), transparent 62%),
    radial-gradient(700px 420px at 0% 100%, rgba(164, 206, 220, 0.25), transparent 60%),
    linear-gradient(180deg, #f6fafd 0%, #fff 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(4, 64, 119, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(4, 64, 119, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 70% 30%, #000 20%, transparent 75%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero__copy > * + * { margin-top: 1.5rem; }
.hero__copy .lead { max-width: 36rem; }
.hero .btn-row { margin-top: 2rem; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem 0.35rem 0.4rem;
  border: 1px solid var(--sky-200);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--navy-800);
  font-size: 0.875rem;
  font-weight: 600;
}
.pill__dot {
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--amber-400);
  color: var(--navy-950);
}
.pill__dot svg { width: 0.95rem; height: 0.95rem; }

/* Hero kicker: the patent pill with the installation video link on the same line */
.hero__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.pill--link {
  color: var(--blue-600);
  text-decoration: none;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}
.pill--link:hover { color: var(--navy-800); border-color: var(--blue-600); background: #fff; text-decoration: underline; }
.pill__dot--play { background: var(--navy-700); color: #fff; }
.pill__dot--play svg { width: 0.8rem; height: 0.8rem; margin-left: 2px; }

.trust {
  list-style: none;
  padding: 0;
  margin-top: 2.25rem !important;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  color: var(--ink-700);
  font-size: 0.9375rem;
  font-weight: 560;
}
.trust li { display: inline-flex; align-items: center; gap: 0.5rem; }
.trust svg { width: 1.25rem; height: 1.25rem; color: var(--blue-600); flex: none; }

.hero__media { position: relative; }
.hero__stage {
  position: relative;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  padding: clamp(1rem, 2.5vw, 2rem);
}
.hero__stage img { width: 100%; mix-blend-mode: multiply; }
.hero__badge {
  position: absolute;
  top: -0.9rem;
  right: clamp(0.5rem, 3vw, 1.5rem);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: var(--navy-900);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow);
}
.hero__badge svg { width: 1rem; height: 1rem; color: var(--amber-400); }
.hero__inset {
  position: absolute;
  left: clamp(-1.75rem, -2vw, -0.5rem);
  bottom: clamp(-2.5rem, -3vw, -1rem);
  width: clamp(9.5rem, 15vw, 12rem);
  margin: 0;
  padding: 0.5rem 0.5rem 0.65rem;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}
.hero__inset img { border-radius: 12px; aspect-ratio: 1; object-fit: cover; }
.hero__inset figcaption {
  margin-top: 0.5rem;
  padding-inline: 0.25rem;
  color: var(--ink-700);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__media { max-width: 560px; margin-inline: auto; margin-bottom: 1.5rem; }
  .hero__inset { left: -0.25rem; }
}

/* --------------------------------------------------------------------------
   Inner page hero & breadcrumb
   -------------------------------------------------------------------------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 6vw, 5rem);
  background:
    radial-gradient(800px 400px at 95% 0%, rgba(0, 136, 200, 0.28), transparent 65%),
    radial-gradient(600px 300px at 0% 120%, rgba(252, 180, 46, 0.12), transparent 60%),
    var(--navy-900);
  color: #c8d8e8;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
  mask-image: linear-gradient(90deg, transparent, #000 60%);
  pointer-events: none;
}
.page-hero > .container { position: relative; }
.page-hero h1 { color: #fff; font-size: var(--step-4); max-width: 22ch; }
.page-hero__body { max-width: 760px; }
.page-hero__body > * + * { margin-top: 1.25rem; }
.page-hero .btn-row { margin-top: 2rem; }
.page-hero__meta {
  list-style: none;
  padding: 0;
  margin-top: 2rem !important;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.page-hero__meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #e3edf7;
  font-size: 0.875rem;
  font-weight: 560;
}
.page-hero__meta svg { width: 1rem; height: 1rem; color: var(--amber-400); }

.breadcrumb ol {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.875rem;
}
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; color: rgba(255, 255, 255, 0.5); }
.breadcrumb a { color: #dbe7f3; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb [aria-current="page"] { color: #fff; font-weight: 600; }

/* --------------------------------------------------------------------------
   Cards, features, stats
   -------------------------------------------------------------------------- */

.card {
  position: relative;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.card > * + * { margin-top: 0.85rem; }
.card h3 { font-size: var(--step-1); }
.card--flat { box-shadow: none; }
.card--tint { background: var(--sky-50); border-color: var(--sky-200); }

.icon-tile {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  background: var(--sky-100);
  color: var(--blue-600);
}
.icon-tile svg { width: 1.6rem; height: 1.6rem; }
.icon-tile--amber { background: var(--amber-100); color: #8a5a00; }
.icon-tile--navy { background: var(--navy-700); color: #fff; }

.audience-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s;
}
.audience-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--sky-200); }
.audience-card h3 { font-size: var(--step-2); }
.audience-card p { color: var(--ink-700); }
.audience-card .card-actions { margin-top: auto; padding-top: 0.75rem; display: grid; gap: 0.5rem; justify-items: start; }

.stats {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: clamp(1.4rem, 2.4vw, 2rem);
  background: var(--navy-900);
}
.stat dt { order: 2; color: #c8d8e8; font-size: 0.975rem; line-height: 1.5; }
.stat dd {
  order: 1;
  margin: 0;
  color: #fff;
  font-size: clamp(2.1rem, 1.5rem + 2vw, 3rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}
.stat--accent dd { color: var(--amber-400); }
@media (min-width: 600px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat--accent { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .stat--accent { grid-column: auto; }
}
.stats-note { margin-top: 1.25rem; font-size: 0.8125rem; color: #a9bfd4; }

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

.how-steps { list-style: none; padding: 0; display: grid; gap: 1.25rem; counter-reset: how; }
.how-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding: 1.25rem 1.25rem 1.25rem 1.1rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}
.how-steps li::before {
  counter-increment: how;
  content: counter(how);
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  background: var(--navy-700);
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
}
.how-steps h3,
.how-steps h4 { font-size: var(--step-1); margin-bottom: 0.35rem; }
.how-steps p { color: var(--ink-700); font-size: 0.975rem; }
.how-steps p + p { margin-top: 0.5rem; }

.diagram-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fff, var(--sky-50));
  border: 1px solid var(--sky-200);
  box-shadow: var(--shadow);
  padding: clamp(0.75rem, 2vw, 1.5rem);
}
.diagram-card figcaption { margin-top: 0.75rem; font-size: var(--step--1); color: var(--ink-500); text-align: center; }

/* System illustration (inline SVG) */
.sys-svg { width: 100%; height: auto; }
.sys-svg text { font-family: var(--font); }
.sys-svg .dg-label { font-size: 19px; font-weight: 650; fill: var(--navy-900); }
.sys-svg .dg-sub { font-size: 13px; font-weight: 500; fill: var(--ink-500); }
.sys-svg .dg-water { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0.12); }
.sys-svg .dg-flow { stroke-dasharray: 6 12; opacity: 0; }
.sys-svg .dg-status-off { opacity: 0; }

@media (prefers-reduced-motion: no-preference) {
  .sys-svg.is-animated .dg-water { animation: dg-fill 9s var(--ease) infinite; }
  .sys-svg.is-animated .dg-hang { animation: dg-drop 9s var(--ease) infinite; }
  .sys-svg.is-animated .dg-flow { animation: dg-flow 9s linear infinite; }
  .sys-svg.is-animated .dg-status-off { animation: dg-show 9s step-end infinite; }
  .sys-svg.is-animated .dg-status-on { animation: dg-hide 9s step-end infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .sys-svg .dg-water { transform: scaleY(0.9); }
  .sys-svg .dg-hang { transform: translateY(6px); }
  .sys-svg .dg-status-on { opacity: 0; }
  .sys-svg .dg-status-off { opacity: 1; }
}
@keyframes dg-fill {
  0%, 8% { transform: scaleY(0.12); }
  52%, 84% { transform: scaleY(0.9); }
  94%, 100% { transform: scaleY(0.12); }
}
@keyframes dg-drop {
  0%, 50% { transform: translateY(0); }
  56%, 86% { transform: translateY(6px); }
  94%, 100% { transform: translateY(0); }
}
@keyframes dg-flow {
  0%, 8% { opacity: 0; stroke-dashoffset: 0; }
  10% { opacity: 1; }
  50% { opacity: 1; stroke-dashoffset: -120; }
  54%, 100% { opacity: 0; stroke-dashoffset: -130; }
}
@keyframes dg-show { 0% { opacity: 0; } 55% { opacity: 1; } 90% { opacity: 0; } }
@keyframes dg-hide { 0% { opacity: 1; } 55% { opacity: 0; } 90% { opacity: 1; } }

/* Three-step flow */
.flow { list-style: none; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.flow li {
  position: relative;
  padding: 2rem 1.5rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.flow li + li::before {
  content: "";
  position: absolute;
  left: -0.75rem;
  top: 50%;
  width: 0.8rem;
  height: 0.8rem;
  border-top: 3px solid var(--sky-300);
  border-right: 3px solid var(--sky-300);
  transform: translate(-50%, -50%) rotate(45deg);
}
.flow__num {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--navy-700);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 800;
}
.flow__icon {
  display: grid;
  place-items: center;
  width: 6rem;
  height: 6rem;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: var(--sky-100);
  color: var(--navy-700);
}
.flow__icon svg { width: 3.4rem; height: 3.4rem; }
.flow h3 { font-size: var(--step-1); }
.flow p { margin-top: 0.5rem; color: var(--ink-700); font-size: 0.975rem; }
@media (max-width: 760px) {
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow li + li::before { left: 50%; top: -0.75rem; transform: translate(-50%, -50%) rotate(135deg); }
}

/* Layered protection */
.layers { list-style: none; padding: 0; display: grid; gap: 0.75rem; }
.layers li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
}
.layers li.is-highlight { border-color: var(--amber-400); background: rgba(252, 180, 46, 0.1); }
.layers__tag {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 800;
}
.layers li.is-highlight .layers__tag { background: var(--amber-400); color: var(--navy-950); }
.layers h3 { font-size: 1.0625rem; color: #fff; }
.layers p { margin-top: 0.25rem; color: #c8d8e8; font-size: 0.9375rem; }

/* Failure chain */
.chain-steps { list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: chain; }
.chain-steps li {
  position: relative;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}
.chain-steps li::before {
  counter-increment: chain;
  content: counter(chain);
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: var(--sky-100);
  color: var(--navy-700);
  font-weight: 800;
  font-size: 0.875rem;
}
.chain-steps li:last-child { background: var(--red-50); border-color: #f2b8b2; }
.chain-steps li:last-child::before { background: var(--red-700); color: #fff; }
.chain-steps h3 { font-size: 1.0625rem; }
.chain-steps p { margin-top: 0.35rem; font-size: 0.9375rem; color: var(--ink-700); }
@media (max-width: 900px) { .chain-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .chain-steps { grid-template-columns: minmax(0, 1fr); } }

.founder-note {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: var(--sky-50);
  border: 1px solid var(--sky-200);
}
.founder-note > * + * { margin-top: 1rem; }
.founder-note p { font-size: var(--step-1); line-height: 1.6; color: var(--ink-900); }
.founder-note footer { font-size: 0.975rem; color: var(--ink-700); }
.founder-note cite { font-style: normal; font-weight: 700; color: var(--navy-900); }

/* --------------------------------------------------------------------------
   Story / quote
   -------------------------------------------------------------------------- */

.quote {
  position: relative;
  padding-left: 1.5rem;
  border-left: 4px solid var(--amber-400);
}
.quote p {
  font-size: var(--step-2);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--navy-900);
}
.quote footer { margin-top: 1rem; color: var(--ink-700); font-size: 0.975rem; }
.quote cite { font-style: normal; font-weight: 700; color: var(--navy-900); }

.photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--sky-100);
  box-shadow: var(--shadow);
}
.photo-frame img { width: 100%; }
.photo-frame figcaption {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(2, 26, 54, 0.82);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
}
.photo-frame--portrait { max-width: 420px; margin-inline: auto; }

/* --------------------------------------------------------------------------
   Video facade
   -------------------------------------------------------------------------- */

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy-950);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}
.video__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video__play {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  width: 100%;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(2, 26, 54, 0.1) 0%, rgba(2, 26, 54, 0.55) 100%);
  color: #fff;
  font: inherit;
  cursor: pointer;
}
.video__play-icon {
  display: grid;
  place-items: center;
  width: clamp(4rem, 9vw, 5.5rem);
  height: clamp(4rem, 9vw, 5.5rem);
  border-radius: 50%;
  background: var(--amber-400);
  color: var(--navy-950);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.6);
  transition: transform 0.25s var(--ease);
}
.video__play-icon svg { width: 42%; height: 42%; margin-left: 8%; }
.video__play:hover .video__play-icon { transform: scale(1.06); }
.video__play:focus-visible { outline-offset: -6px; }
.video__label {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(2, 26, 54, 0.75);
  font-weight: 650;
  font-size: 0.975rem;
}
.video__pending {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: rgba(2, 26, 54, 0.88);
  color: #fff;
  font-weight: 560;
}
.video__pending a { color: #fff; }
.video__pending svg { width: 1.4rem; height: 1.4rem; color: var(--amber-400); flex: none; }
.video iframe { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; border: 0; }

/* Video spans the full column, with the chapter list below it */
.video-layout {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
}
.video-layout .chapters { display: block; columns: 2 16rem; column-gap: 1.5rem; }
.video-layout .chapters li { break-inside: avoid; margin-bottom: 0.15rem; }

.chapters { list-style: none; padding: 0; display: grid; gap: 0.15rem; }
.chapters button,
.chapters span.chapter {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 0.75rem;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-900);
  font: inherit;
  font-size: 0.9375rem;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}
.chapters span.chapter { cursor: default; }
.chapters button:hover { background: var(--sky-100); }
.chapters time { color: var(--teal-600); font-weight: 700; font-variant-numeric: tabular-nums; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 40px;
  padding: 0.4rem 0.85rem;
  border: 1.5px solid var(--sky-200);
  border-radius: 999px;
  background: #fff;
  color: var(--navy-700);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 650;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.chip:hover { border-color: var(--navy-700); background: var(--sky-50); }
.chip svg { width: 1rem; height: 1rem; }

/* --------------------------------------------------------------------------
   Callouts
   -------------------------------------------------------------------------- */

.callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--sky-200);
  border-left-width: 5px;
  border-radius: 14px;
  background: var(--sky-50);
  color: var(--ink-900);
}
.callout > svg { width: 1.5rem; height: 1.5rem; margin-top: 0.1rem; color: var(--blue-600); }
.callout__body > * + * { margin-top: 0.5rem; }
.callout__title { font-size: inherit; font-weight: 750; line-height: 1.4; letter-spacing: 0; color: var(--navy-900); }
.callout--warning { background: var(--amber-100); border-color: #f2c86b; border-left-color: var(--amber-400); }
.callout--warning > svg { color: #8a5a00; }
.callout--danger { background: var(--red-50); border-color: #f2b8b2; border-left-color: var(--red-700); }
.callout--danger > svg { color: var(--red-700); }
.callout--danger .callout__title { color: var(--red-700); }
.callout ul { padding-left: 1.15rem; display: grid; gap: 0.3rem; }

/* --------------------------------------------------------------------------
   Installation guide
   -------------------------------------------------------------------------- */

.guide {
  display: grid;
  grid-template-columns: 16.5rem minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.guide__content { min-width: 0; }
.guide__nav { align-self: stretch; }
.plain-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

.toc {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  max-height: calc(100vh - var(--header-h) - 3rem);
  overflow-y: auto;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.toc summary {
  list-style: none;
  cursor: pointer;
  font-weight: 750;
  color: var(--navy-900);
  font-size: 0.9375rem;
  padding: 0.25rem 0.5rem 0.5rem;
}
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.1rem; }
.toc a {
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  gap: 0.6rem;
  align-items: center;
  padding: 0.45rem 0.5rem;
  border-radius: 10px;
  color: var(--ink-700);
  font-size: 0.9rem;
  line-height: 1.3;
  text-decoration: none;
}
.toc a:hover { background: var(--sky-50); color: var(--navy-900); }
.toc a[aria-current="true"] { background: var(--sky-100); color: var(--navy-900); font-weight: 650; }
.toc__num {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 8px;
  background: var(--sky-100);
  color: var(--navy-700);
  font-size: 0.8rem;
  font-weight: 750;
}
.toc a[aria-current="true"] .toc__num { background: var(--navy-700); color: #fff; }
.toc__num--dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.toc__progress {
  height: 4px;
  margin: 0.25rem 0.5rem 0.75rem;
  border-radius: 4px;
  background: var(--sky-100);
  overflow: hidden;
}
.toc__progress span {
  display: block;
  height: 100%;
  width: var(--progress, 0%);
  background: linear-gradient(90deg, var(--blue-600), var(--teal-600));
  transition: width 0.3s var(--ease);
}

@media (max-width: 1023.98px) {
  .guide { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; max-height: none; }
  .toc[open] ol { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
  .toc summary { display: flex; align-items: center; justify-content: space-between; }
  .toc summary::after {
    content: "";
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s;
  }
  .toc[open] summary::after { transform: rotate(-135deg); }
}
@media (min-width: 1024px) {
  .toc summary { pointer-events: none; }
}

.guide-section { padding-block: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line); }
.guide-section:first-child { border-top: 0; padding-top: 0; }
.guide-section > * + * { margin-top: 1.5rem; }
.guide-section h2 { font-size: var(--step-3); }

.step__header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem 1.25rem;
  align-items: center;
}
.step__num {
  display: grid;
  place-items: center;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 18px;
  background: var(--navy-700);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 800;
  box-shadow: 0 10px 22px -14px rgba(4, 64, 119, 0.9);
}
.step__kicker {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--teal-600);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.step__header .chip { justify-self: end; }
@media (max-width: 640px) {
  .step__header { grid-template-columns: auto minmax(0, 1fr); }
  .step__header .chip { grid-column: 1 / -1; justify-self: start; }
}

.step__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}
.step__body--wide-media { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
.step__text > * + * { margin-top: 1.25rem; }
@media (max-width: 1180px) {
  .step__body, .step__body--wide-media { grid-template-columns: minmax(0, 1fr); }
}

.instructions { list-style: none; padding: 0; display: grid; gap: 0.9rem; counter-reset: ins; }
.instructions > li { position: relative; padding-left: 2.6rem; min-height: 1.85rem; }
.instructions > li::before {
  counter-increment: ins;
  content: counter(ins);
  position: absolute;
  left: 0;
  top: 0.05rem;
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: var(--sky-100);
  color: var(--navy-700);
  font-size: 0.875rem;
  font-weight: 750;
}

.figure-pair { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }

/* Annotated photos */
.annotated { display: grid; gap: 0.9rem; }
.annotated__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sky-100);
  box-shadow: var(--shadow-sm);
}
.annotated__media img { width: 100%; }
.annotated--contain .annotated__media { max-width: 460px; margin-inline: auto; width: 100%; }
.pin {
  position: absolute;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 2.5px solid #fff;
  border-radius: 50%;
  background: var(--navy-700);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 3px 10px rgba(2, 26, 54, 0.5);
  transform: translate(-50%, -50%);
  transition: transform 0.15s var(--ease), background-color 0.15s, color 0.15s;
  pointer-events: none;
}
.pin.is-active, .pin.is-flash { background: var(--amber-400); color: var(--navy-950); transform: translate(-50%, -50%) scale(1.2); }
@media (prefers-reduced-motion: no-preference) {
  .pin.is-flash { animation: pin-pulse 0.9s var(--ease) 2; }
}
@keyframes pin-pulse {
  from { box-shadow: 0 0 0 0 rgba(252, 180, 46, 0.85), 0 3px 10px rgba(2, 26, 54, 0.5); }
  to { box-shadow: 0 0 0 16px rgba(252, 180, 46, 0), 0 3px 10px rgba(2, 26, 54, 0.5); }
}
.annotated figcaption { font-size: 0.9375rem; color: var(--ink-700); }
.annotated figcaption > p { margin-bottom: 0.5rem; }
.legend { list-style: none; padding: 0; display: grid; gap: 0.15rem; counter-reset: lg; }
.legend--cols { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); column-gap: 1rem; }
.legend li {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 0.6rem;
  align-items: start;
  padding: 0.3rem 0.4rem;
  border-radius: 8px;
  transition: background-color 0.15s;
}
.legend li::before {
  counter-increment: lg;
  content: counter(lg, upper-alpha);
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.05rem;
  border-radius: 50%;
  background: var(--navy-700);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 750;
}
.legend li.is-active, .legend li.is-flash { background: var(--amber-100); }
.legend li:focus-visible { border-radius: 8px; outline-offset: 1px; }
.legend strong { color: var(--navy-900); }

/* In-text letter badges that point to a photo pin. Kept display: inline (not inline-block)
   so the &nbsp; before each badge keeps it on the same line as the word it labels. */
.ref {
  padding: 0.22em 0.5em;
  margin-inline: 0.05rem;
  border-radius: 999px;
  background: var(--navy-700);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s, color 0.15s;
}
.ref:hover, .ref.is-active, .ref.is-flash { background: var(--amber-400); color: var(--navy-950); }
.ref:focus-visible { border-radius: 999px; outline-offset: 2px; }

/* Annotated figure with legend beside the photo */
@media (min-width: 760px) {
  .annotated--side {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: start;
  }
  .annotated--side.annotated--contain .annotated__media { max-width: none; }
}
.annotated--tall .annotated__media { max-width: 360px; margin-inline: auto; width: 100%; }
.annotated--medium .annotated__media { max-width: 440px; margin-inline: auto; width: 100%; }

.substep + .substep { margin-top: clamp(2rem, 4vw, 3rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px dashed var(--line); }
.substep__title { font-size: var(--step-1); margin-bottom: 1rem; }
.substep__title span { color: var(--teal-600); }

.how-steps--row { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.how-steps--row a { font-size: 0.9375rem; font-weight: 650; }
/* Stage cards show an icon instead of a number so they don't compete with the step numbers */
.how-steps--icons li::before { content: none; }

.fail-steps { list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.fail-steps li { padding: 1.25rem; border-radius: var(--radius); background: var(--sky-50); border: 1px solid var(--sky-200); }
.fail-steps .fail-steps__no { display: block; color: var(--teal-600); font-size: 1.5rem; font-weight: 800; line-height: 1; }
.fail-steps h4 { margin-top: 0.75rem; font-size: 1rem; letter-spacing: 0.06em; text-transform: uppercase; }
.fail-steps p { margin-top: 0.4rem; color: var(--ink-700); font-size: 0.9375rem; }

.page-hero__media { margin: 0; }
.page-hero__media img { width: 100%; border-radius: var(--radius-lg); border: 1px solid rgba(255, 255, 255, 0.18); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7); }
.page-hero__media figcaption { margin-top: 0.75rem; color: #a9bfd4; font-size: 0.875rem; }
@media (max-width: 900px) { .page-hero__media { display: none; } }

.small-heading { font-size: 0.8125rem; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-600); margin-bottom: 0.75rem; }

/* Wiring diagram */
.wiring { padding: clamp(1rem, 2.5vw, 1.75rem); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.wiring svg { width: 100%; height: auto; }
.wiring svg text { font-family: var(--font); }
.wiring figcaption { margin-top: 1rem; font-size: 0.9375rem; color: var(--ink-700); }
.wiring__art { border-radius: 12px; overflow: hidden; }
.wiring__compact { display: none; }
@media (max-width: 699.98px) {
  .wiring__wide { display: none; }
  .wiring__compact { display: block; max-width: 420px; margin-inline: auto; }
}
.wiring .w-strong { font-size: 17px; font-weight: 750; fill: var(--navy-900); }
.wiring .w-label { font-size: 15px; font-weight: 650; fill: var(--navy-900); }
.wiring .w-small { font-size: 14px; font-weight: 500; fill: var(--ink-500); }
.wiring .w-term { font-size: 18px; font-weight: 800; fill: var(--navy-700); }
.wiring .w-cut { font-size: 14px; font-weight: 750; fill: var(--red-700); }

/* Tools / at-a-glance boxes */
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 0.75rem; }
.kv div { padding: 1rem 1.1rem; border-radius: 14px; background: var(--sky-50); border: 1px solid var(--sky-200); }
.kv dt { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-600); }
.kv dd { margin: 0.25rem 0 0; font-weight: 650; color: var(--navy-900); line-height: 1.4; }

/* Checklist */
.checklist { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.checklist label {
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.checklist label:hover { border-color: var(--sky-300); }
.checklist input {
  width: 1.3rem;
  height: 1.3rem;
  margin: 0.15rem 0 0;
  accent-color: var(--navy-700);
}
.checklist label:has(input:checked) { background: #eef8f2; border-color: #a8d8bb; }
.checklist__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* --------------------------------------------------------------------------
   Tables, definition lists, FAQ
   -------------------------------------------------------------------------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.table { width: 100%; border-collapse: collapse; font-size: 0.975rem; }
.table caption { text-align: left; padding: 1rem 1.25rem 0; font-weight: 700; color: var(--navy-900); }
.table th, .table td { padding: 0.9rem 1.25rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table tr:last-child > * { border-bottom: 0; }
.table thead th { font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-600); background: var(--sky-50); }
.table tbody th { width: 34%; font-weight: 650; color: var(--navy-900); }
.table .qty { width: 4.5rem; font-weight: 800; color: var(--navy-700); font-variant-numeric: tabular-nums; }

.faq { display: grid; gap: 0.75rem; }
.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq details[open] { border-color: var(--sky-300); box-shadow: var(--shadow-sm); }
.faq summary {
  position: relative;
  padding: 1.1rem 3.5rem 1.1rem 1.25rem;
  font-weight: 650;
  color: var(--navy-900);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 1.4rem;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--blue-600);
  border-bottom: 2px solid var(--blue-600);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq__body { padding: 0 1.25rem 1.25rem; color: var(--ink-700); }
.faq__body > * + * { margin-top: 0.75rem; }

.legal-text { font-size: 0.9375rem; color: var(--ink-700); }
.legal-text > * + * { margin-top: 1rem; }
.legal-text .caps { text-transform: uppercase; font-weight: 650; color: var(--ink-900); font-size: 0.875rem; letter-spacing: 0.01em; }

/* --------------------------------------------------------------------------
   Timeline & patents
   -------------------------------------------------------------------------- */

.timeline { list-style: none; padding: 0; position: relative; display: grid; gap: 1.75rem; }
.timeline::before {
  content: "";
  position: absolute;
  left: 0.6rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(var(--sky-300), var(--sky-200));
}
.timeline li { position: relative; padding-left: 2.75rem; }
.timeline li::before {
  content: "";
  position: absolute;
  left: 0.05rem;
  top: 0.25rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--blue-600);
}
.timeline li.is-current::before { background: var(--amber-400); border-color: var(--navy-700); }
.timeline time, .timeline .when {
  display: block;
  color: var(--teal-600);
  font-size: 0.8125rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.timeline h3 { font-size: var(--step-1); margin-top: 0.2rem; }
.timeline p { margin-top: 0.35rem; color: var(--ink-700); }

.patent {
  display: grid;
  gap: 0.6rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
}
.patent__no { color: #fff; font-size: var(--step-2); font-weight: 800; letter-spacing: -0.02em; }
.patent dl { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 1rem; font-size: 0.9375rem; }
.patent dt { color: #a9bfd4; }
.patent dd { margin: 0; color: #e3edf7; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts div { background: #fff; padding: 1.25rem 1.4rem; }
.facts dt { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-600); }
.facts dd { margin: 0.35rem 0 0; color: var(--navy-900); font-weight: 600; line-height: 1.45; }

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

.cta-band {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 2rem;
  align-items: center;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 28px;
  background:
    radial-gradient(500px 300px at 100% 0%, rgba(0, 136, 200, 0.45), transparent 70%),
    linear-gradient(135deg, var(--navy-800), var(--navy-950));
  color: #c8d8e8;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; font-size: var(--step-3); }
.cta-band p { margin-top: 0.75rem; max-width: 40rem; }
.cta-band::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -90px;
  width: 260px;
  height: 260px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
@media (max-width: 800px) { .cta-band { grid-template-columns: minmax(0, 1fr); } }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.form { display: grid; gap: 1.25rem; }
.form-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .field--full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

.field { display: grid; gap: 0.4rem; align-content: start; }
.field label, .field legend { font-weight: 650; color: var(--navy-900); }
.field .req { color: var(--red-700); }
.field__hint { font-size: 0.875rem; color: var(--ink-500); }
.field__error { font-size: 0.875rem; font-weight: 600; color: var(--red-700); }
.field__error:empty { display: none; }

.input, .select, .textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink-900);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.textarea { min-height: 9rem; resize: vertical; }
.select {
  appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 7.5l5 5 5-5' fill='none' stroke='%23044077' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 1.1rem;
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--navy-700); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible {
  outline: 3px solid var(--blue-600);
  outline-offset: 1px;
  border-color: var(--blue-600);
}
[aria-invalid="true"] { border-color: var(--red-700) !important; }

.form-status { padding: 1rem 1.15rem; border-radius: 12px; font-weight: 560; }
.form-status:empty { display: none; }
.form-status--success { background: #eef8f2; border: 1px solid #a8d8bb; color: #14532d; }
.form-status--info { background: var(--sky-50); border: 1px solid var(--sky-200); color: var(--navy-900); }
.form-status--error { background: var(--red-50); border: 1px solid #f2b8b2; color: #7a1a12; }

.error-summary { padding: 1rem 1.15rem; border: 2px solid var(--red-700); border-radius: 12px; background: var(--red-50); }
.error-summary h2 { font-size: 1.0625rem; color: var(--red-700); }
.error-summary ul { margin-top: 0.5rem; padding-left: 1.15rem; }
.error-summary a { color: var(--red-700); font-weight: 600; }

.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.contact-aside { display: grid; gap: 1rem; }
.contact-line { display: grid; grid-template-columns: auto 1fr; gap: 0.9rem; align-items: start; }
.contact-line h3 { font-size: 1rem; }
.form-card h2 { font-size: var(--step-3); }

/* --------------------------------------------------------------------------
   Downloads
   -------------------------------------------------------------------------- */

.download {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.download__thumbs { display: flex; gap: 0.5rem; }
.download__thumbs img { width: 5.5rem; border-radius: 6px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.download h3 { font-size: var(--step-1); }
.download p { margin-top: 0.35rem; color: var(--ink-700); font-size: 0.9375rem; }
.download .btn { margin-top: 0.85rem; }
@media (max-width: 560px) { .download { grid-template-columns: minmax(0, 1fr); } }

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

.site-footer {
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  background: var(--navy-950);
  color: #bccde0;
  font-size: 0.9375rem;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
.footer-brand > * + * { margin-top: 1rem; }
.footer-logo { display: inline-block; padding: 0.6rem 0.9rem; border-radius: 14px; background: #fff; }
.footer-logo img { height: 40px; width: auto; }
.footer-safety { font-size: 0.8125rem; color: #a9bfd4; }
.footer-title { font-size: 0.8125rem; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber-400); margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.footer-legal {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  font-size: 0.8125rem;
  color: #a9bfd4;
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

.plain-list { list-style: none; padding: 0; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.75rem; }
.mt-2 { margin-top: 1.5rem; }
.mt-3 { margin-top: 2.5rem; }
.text-center { text-align: center; }
.no-wrap { white-space: nowrap; }
.max-prose { max-width: 68ch; }

.not-found { min-height: 60vh; display: grid; align-content: center; justify-items: start; gap: 1.25rem; }
.not-found__code { font-size: clamp(4rem, 12vw, 8rem); font-weight: 800; line-height: 1; letter-spacing: -0.05em; color: var(--blue-600); }

/* --------------------------------------------------------------------------
   Motion preferences
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .btn:hover, .audience-card:hover { transform: none; }
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */

@media print {
  @page { margin: 14mm; }
  :root { --header-h: 0px; }
  body { font-size: 10.5pt; line-height: 1.45; color: #000; }
  .skip-link, .site-header, .site-footer, .toc, .cta-band, .video-section, .chip, .checklist__actions,
  .btn-row, .no-print, .breadcrumb, .page-hero__media, .hero::before, .page-hero::before { display: none !important; }
  .page-hero { background: none !important; color: #000; padding: 0 0 12pt; border-bottom: 2pt solid #044077; }
  .page-hero h1 { color: #044077; font-size: 22pt; max-width: none; }
  .page-hero .lead, .page-hero__meta li { color: #000; border-color: #999; background: none; }
  .section, .guide-section { padding-block: 10pt; }
  .guide { display: block; }
  .step__body { grid-template-columns: 1.1fr 0.9fr !important; gap: 12pt; }
  .annotated, .wiring, .callout, .checklist li, .table-wrap, .faq details { break-inside: avoid; }
  .guide-section { break-inside: auto; }
  h2, h3 { break-after: avoid; }
  .pin, .legend li::before, .ref, .step__num, .instructions > li::before {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .annotated__media, .wiring { box-shadow: none; }
  .faq details:not([open]) > :not(summary) { display: block; }
  a { color: #000; text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; color: #444; word-break: break-all; }
  .checklist label { padding: 6pt 8pt; }
}
