/* AAG Development LLC site. One stylesheet, system fonts, no external requests, no JavaScript.
   Extended 2026-11-20 for the Political Text Filter pages with the app icon's navy and gold.
   Contrast (measured, WCAG): white on --navy 12.3:1, white on --navy-deep 15.9:1,
   --gold on --navy-deep 8.9:1, --navy-deep ink on --gold fill 8.9:1, --gold-ink on white 5.9:1,
   --gold-ink on --gold-tint 6.4:1, --muted on --bg 6.8:1 and on --surface 6.3:1,
   --on-navy-muted on --navy 8.2:1. Gold is never small text on a light ground (1.8:1). */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #f4f5f7;
  --text: #1b1d21;
  --muted: #555b66;
  --border: #d9dce1;
  --link: #0b57d0;
  --link-visited: #6a3fb5;
  --focus: #0b57d0;
  --measure: 42rem;
  /* Brand: the app icon's gradient and slash. */
  --navy: #22335e;
  --navy-deep: #18213d;
  --gold: #f2b84b;
  --gold-ink: #8a5a00; /* gold-family text on light grounds */
  --gold-tint: #fdf6e6; /* a warm band behind dark ink */
  --on-navy: #ffffff;
  --on-navy-muted: #c9d3ea;
  --band: #f4f6fb; /* cool light band; --text 16.9:1, --muted 6.3:1 on it */
  --heading: var(--text);
  --card: #ffffff;
  --shadow: 0 1px 2px rgb(24 33 61 / 0.06), 0 8px 24px rgb(24 33 61 / 0.08);
  --wide: 72rem;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --line: #7f889b; /* connector, 3.6:1 on --bg, 3.3:1 on --band */
  --border-strong: #c3c8d1;
  --icon-bg: #e4e9f5;
  --icon-ink: #22335e; /* 10.1:1 on --icon-bg */
  --tag-ink: #7a5200; /* 6.9:1 on --bg, 6.4:1 on --band */
  --band-divider: transparent;
  --drawer-edge: #22335e;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121722;
    --surface: #1a2135;
    --text: #d9dee8; /* 13.3:1 on --bg, 11.8:1 on --band */
    --heading: #f2f5fa; /* 14.5:1 on --band */
    --muted: #a7acb6;
    --border: #2e3b66;
    --link: #8ab4f8;
    --link-visited: #c4a7f5;
    --focus: #8ab4f8;
    --gold-ink: #f2b84b; /* 10.4:1 on --bg */
    --band: #18213d; /* --text 11.8:1, --muted 7.0:1 */
    --card: #1c2747;
    --band-divider: #2e3b66;
    --tag-ink: #f2b84b;
    --drawer-edge: #7a8bc4; /* 4.8:1 on --band */
    --on-navy-muted: #c9d3ea;
    --shadow: none;
    --line: #6b7a99; /* 4.2:1 on --bg, 3.7:1 on --band */
    --border-strong: #3a4878;
    --icon-bg: #1f2a47;
    --icon-ink: #f2b84b;
  }
}

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

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
  isolation: isolate;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  padding: 0.5rem 1rem;
  background: var(--surface);
  color: var(--text);
}

.skip-link:focus {
  left: 1rem;
  z-index: 10;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1rem;
}

.wrap-wide {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

header.site {
  border-bottom: 1px solid var(--border);
}

header.site .wrap,
header.site .wrap-wide {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 1.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.brand .by {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.875rem;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
}

nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 1rem;
  border-bottom: 2px solid transparent;
}

nav li + li {
  margin-top: 0;
}

main {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

main.product {
  padding-top: 0;
  padding-bottom: 0;
}

h1,
h2,
h3 {
  color: var(--heading);
}

h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0.5rem 0 1rem;
  text-wrap: balance;
}

h2 {
  font-size: 1.375rem;
  line-height: 1.3;
  margin: 2.25rem 0 0.75rem;
  text-wrap: balance;
}

h3 {
  font-size: 1.125rem;
  margin: 1.5rem 0 0.5rem;
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

li + li {
  margin-top: 0.4rem;
}

a {
  color: var(--link);
  text-underline-offset: 2px;
}

a:visited {
  color: var(--link-visited);
}

a:focus-visible,
.brand:focus-visible,
.btn:focus-visible,
.shot a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

nav a[aria-current="page"] {
  font-weight: 700;
  text-decoration: none;
  color: var(--heading);
  border-bottom-color: var(--gold-ink);
}

.lede {
  font-size: 1.1875rem;
  color: var(--muted);
}

.meta {
  color: var(--muted);
  font-size: 0.9375rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.card h2 {
  margin-top: 0.25rem;
}

main.company {
  padding-top: clamp(2rem, 6vw, 3.5rem);
}

.company .card {
  background: var(--card);
  border-top: 3px solid var(--navy);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.5rem 1.25rem;
}

.company .card .note-line {
  color: var(--muted);
  font-size: 0.9375rem;
}

.company .card ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.company .card li + li {
  margin-top: 0;
}

.card-head {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.card-head img {
  width: 56px;
  height: 56px;
  border-radius: 13px;
  flex: none;
}

.card-head h2 {
  margin: 0;
}

.card-head + p {
  margin-top: 1rem;
}

/* ---- Product pages ------------------------------------------------------------------------- */

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}

.hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--on-navy);
  padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(2.25rem, 6vw, 4.5rem);
  border-bottom: 4px solid var(--gold);
}

.hero .eyebrow {
  color: var(--gold);
}

.hero h1 {
  color: var(--on-navy);
  font-size: clamp(2.1rem, 5.2vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 1.25rem;
  max-width: 16ch;
}

.hero p {
  color: var(--on-navy-muted);
  font-size: 1.1875rem;
  max-width: 34rem;
}

.hero .free {
  color: var(--on-navy);
  font-weight: 650;
  margin: 0;
}

.cta-group {
  margin-top: 1.75rem;
}

.cta-group .actions {
  margin-top: 0.875rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero .text-link,
.hero .text-link:visited {
  color: var(--on-navy);
}

.hero .text-link:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* The hero's real app screen in a plain rounded bezel (generic, not any maker's device art). */
.hero-device {
  margin: 0;
  justify-self: center;
  width: 100%;
  max-width: 420px;
}

.hero-device .device {
  max-width: none;
  border: 1px solid rgb(255 255 255 / 0.18);
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero a:not(.btn) {
  color: var(--on-navy);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 650;
  text-decoration: none;
  line-height: 1.2;
}

.btn-primary,
.btn-primary:visited {
  background: var(--gold);
  color: var(--navy-deep);
}

.btn-primary:hover {
  background: #f6c86a;
}

.btn-quiet,
.btn-quiet:visited {
  color: var(--on-navy);
  border: 1.5px solid rgb(255 255 255 / 0.55);
}

.btn-quiet:hover {
  border-color: var(--on-navy);
}

.hero .btn:focus-visible {
  outline-color: var(--gold);
}

/* The path of one text: three cards, each with a small drawing of its step (aria-hidden). Gold
   marks only Junk. --line strokes are 3.6:1 on --bg. */
.route {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  counter-reset: route;
}

.route li {
  margin: 0;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  counter-increment: route;
}

.route .mini {
  display: block;
  width: 100%;
  max-width: 240px;
  height: 120px;
  margin: 0 0 1.25rem;
}

.route strong {
  display: block;
  position: relative;
  padding-left: 2.35rem;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  color: var(--heading);
  text-wrap: balance;
}

.route strong::before {
  content: counter(route);
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 0.875rem;
  font-weight: 700;
  background: var(--navy);
  color: var(--on-navy);
  position: absolute;
  left: 0;
  top: 0;
}

.route span {
  display: block;
  color: var(--muted);
  font-size: 1rem;
}

.route mark {
  background: var(--gold);
  color: var(--navy-deep); /* 8.9:1 */
  padding: 0 0.25em;
  border-radius: 4px;
}

.mn-bubble {
  fill: var(--icon-bg);
  stroke: var(--icon-ink);
  stroke-width: 1.5;
}

.mn-avatar {
  fill: var(--card);
  stroke: var(--icon-ink);
  stroke-width: 1.5;
}

.mn-bar {
  fill: var(--line);
}

.mn-quiet {
  opacity: 0.55;
}

.mn-q {
  fill: var(--icon-ink);
  font-size: 14px;
  font-weight: 700;
}

.mn-path {
  fill: none;
  stroke: var(--line);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mn-path-strong {
  stroke: var(--gold-ink);
  stroke-width: 2.5;
}

.mn-dashed {
  stroke-dasharray: 2 6;
}

.mn-check {
  fill: none;
  stroke: var(--icon-ink);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mn-node {
  fill: var(--navy);
  stroke: var(--gold);
  stroke-width: 2;
}

.mn-mega {
  fill: #ffffff;
}

.mn-slash {
  stroke: var(--gold);
  stroke-width: 4;
  stroke-linecap: round;
}

.mn-junk {
  fill: var(--gold);
}

.mn-junk-bar {
  fill: rgb(24 33 61 / 0.5);
}

.mn-tray {
  fill: none;
  stroke: var(--line);
  stroke-width: 1.5;
}

.section {
  padding: 56px 0;
}

.section + .section {
  border-top: 1px solid var(--band-divider);
}

@media (min-width: 46rem) {
  .section {
    padding: 80px 0;
  }
}

.section > .wrap-wide > h2:first-child,
.section h2.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-top: 0;
}

.section-intro {
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 40rem;
}

.band {
  background: var(--band);
}

.features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0 3rem;
}

.features > li {
  margin: 0;
  padding: 28px 0 28px 3.75rem;
  border-top: 1px solid var(--border-strong);
  position: relative;
}

.features .feature-lead h3 {
  font-size: 1.375rem;
}

.features .feature-lead .ico {
  background: var(--gold);
  stroke: var(--navy-deep); /* 8.9:1 on the gold tile */
}

.features .ico {
  position: absolute;
  left: 0;
  top: 28px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;
  border-radius: 12px;
  background: var(--icon-bg);
  stroke: var(--icon-ink);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.features h3 {
  margin: 0 0 0.4rem;
  font-size: 1.125rem;
  line-height: 1.35;
}

.features p {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.features p {
  max-width: 40rem;
}

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

/* Steps beside the real app screens. */
.steps {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 2rem;
  counter-reset: step;
}

.steps > li {
  margin: 0;
  display: grid;
  gap: 1rem;
  align-content: start;
  justify-items: start;
  counter-increment: step;
}

.steps h3 {
  margin: 0;
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
}

.steps h3::before {
  content: counter(step);
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 0.9rem;
  background: var(--navy);
  color: var(--on-navy);
}

.steps p {
  margin: 0;
}

.shot {
  margin: 0;
}

/* A plain rounded bezel around a real screen: radius 36, navy #18213d. Each screen is shown whole
   (the claim-safe crop), with no fade. */
.device {
  width: 100%;
  max-width: 280px;
  padding: 10px;
  border-radius: 36px;
  background: #18213d;
  box-shadow: var(--shadow);
}

.device img {
  display: block;
  width: 100%;
  border-radius: 26px;
  background: #ffffff;
}

.shot figcaption {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  color: var(--muted);
  max-width: 280px;
}

.shot .full {
  display: flex;
  width: fit-content;
  align-items: center;
  min-height: 44px;
  font-size: 1rem;
  white-space: nowrap;
}

/* "See everything the filter does": a native disclosure, open and closed without JavaScript.
   The chevron and the Show/Hide word follow [open] in CSS only. */
.drawer {
  margin: 2.5rem 0 0;
}

.drawer summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  min-height: 56px;
  padding: 0.6rem 1.25rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--heading);
  background: var(--card);
  border: 1.5px solid var(--drawer-edge);
  border-radius: var(--radius);
}

.drawer[open] summary {
  border-radius: var(--radius) var(--radius) 0 0;
}

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

.drawer .chev {
  flex: none;
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  margin-right: 0.25rem;
  transition: transform 0.15s ease;
}

.drawer[open] .chev {
  transform: rotate(45deg);
}

.drawer summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.drawer .count {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy-deep); /* 8.9:1 on the gold pill */
  background: var(--gold);
  border-radius: 999px;
  padding: 0.15rem 0.65rem;
}

.drawer .toggle-label {
  margin-left: auto;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--link);
}

.drawer .when-open,
.drawer[open] .when-closed {
  display: none;
}

.drawer[open] .when-open {
  display: inline;
}

.drawer-body {
  display: grid;
  gap: 1.25rem 2.5rem;
  padding: 1.25rem 1.25rem 1.5rem;
  background: var(--card);
  border: 1.5px solid var(--drawer-edge);
  border-top: 0;
  border-left: 3px solid var(--gold);
  border-radius: 0 0 var(--radius) var(--radius);
}

.drawer-group h3 {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--icon-ink);
  background: var(--icon-bg);
  border-radius: 6px;
  padding: 0.35rem 0.65rem;
  margin: 0 0 0.6rem;
}

.drawer-group ul {
  margin: 0;
  padding-left: 1.4rem;
}

.drawer-group li {
  font-size: 1rem;
  line-height: 1.5;
}

.drawer-group li + li {
  margin-top: 0.25rem;
}

.drawer-group li::marker {
  color: var(--gold-ink);
}

/* Enhanced Protection: the copy beside a drawing of the app's own section. */
.ep-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.ep h2 {
  margin-top: 0;
}

.ep .tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--tag-ink);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

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

.panel {
  margin: 0;
  width: 100%;
  max-width: 30rem;
  justify-self: center;
}

/* Drawn in the app's own light grouped-list look on every scheme, like the screenshots. */
.panel-rows {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0;
  background: #ffffff;
  color: #1b1d21;
  border: 1px solid #d9dce1;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.panel-rows li {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1.1rem;
  font-size: 0.9875rem;
}

.panel-rows li + li {
  border-top: 1px solid #e3e5e9;
}

.panel-status {
  color: #555b66; /* 6.8:1 on white */
  font-size: 0.9375rem;
  white-space: nowrap;
}

/* An off switch: grey track (#c7cad1, 1.6:1 decorative; the caption says each is off). */
.toggle {
  flex: none;
  position: relative;
  width: 51px;
  height: 31px;
  border-radius: 999px;
  background: #e3e5e9;
  box-shadow: inset 0 0 0 1.5px #c7cad1;
}

.toggle::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.25);
}

.panel figcaption {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  color: var(--muted);
  text-align: center;
}

/* Questions: answer pairs in a grid, so neither column runs long. */
.faq-grid {
  display: grid;
  gap: 0 48px;
  align-items: start;
  margin-top: 0.5rem;
}

.qa p {
  font-size: 1rem;
  line-height: 1.6;
}

/* Wide screens: one question per row, the question beside its answer, so no column runs ragged. */
@media (min-width: 60rem) {
  .faq-grid {
    grid-template-columns: none;
  }

  .qa {
    display: grid;
    grid-template-columns: 20rem minmax(0, 40rem);
    gap: 0 48px;
    align-items: start;
  }

  .qa h3 {
    grid-row: 1 / span 3;
    margin: 0;
  }

  .qa p {
    grid-column: 2;
  }
}

.qa {
  padding: 1.25rem 0;
  border-top: 1px solid var(--border-strong);
}

.qa h3 {
  margin: 0 0 0.5rem;
}

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

/* The closing box: contact on the left, who it's for and why on the right. */
.closing-split {
  display: grid;
  gap: 2rem 3rem;
}

.closing-side {
  display: grid;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 0.18);
}

.closing-side h2 {
  font-size: 1.125rem;
  margin: 0 0 0.4rem;
}

.closing-side p {
  font-size: 1rem;
  margin: 0 0 0.4rem;
}

.closing-side p:last-child {
  margin-bottom: 0;
}

.closing a:not(.btn):visited {
  color: var(--on-navy);
}

@media (min-width: 60rem) {
  .closing-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .closing-side {
    padding: 0 0 0 3rem;
    border-top: 0;
    border-left: 1px solid rgb(255 255 255 / 0.18);
  }
}

.two-col {
  display: grid;
  gap: 2rem;
}

.faq h3 {
  margin-top: 1.75rem;
}

.faq h3:first-of-type {
  margin-top: 1rem;
}

.closing {
  background: var(--navy-deep);
  color: var(--on-navy);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.closing h2 {
  margin-top: 0;
  color: var(--on-navy);
}

.closing p:last-of-type {
  margin-bottom: 0;
}

.closing p {
  color: var(--on-navy-muted);
}

.closing a:not(.btn) {
  color: var(--on-navy);
}

/* Long-form pages (how it decides, why, trust). */
.diagram {
  margin: 1.5rem 0 1.75rem;
  padding: 1rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.diagram svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Phones get the same drawing stacked, so its labels stay about 14px. */
.diagram .dg-tall {
  display: none;
  max-width: 320px;
  margin: 0 auto;
}

/* The wide drawing only where its box is at least its 660-unit width, so labels stay 14px. */
@media (max-width: 48rem) {
  .diagram .dg-wide {
    display: none;
  }

  .diagram .dg-tall {
    display: block;
  }
}

.dg-node {
  fill: var(--bg);
  stroke: var(--line);
  stroke-width: 1.5;
}

.dg-node-key {
  stroke: var(--navy);
  stroke-width: 2;
}

.dg-notch {
  fill: var(--border);
}

.dg-title {
  fill: var(--text);
  font-size: 16px;
  font-weight: 650;
}

.dg-sub,
.dg-muted {
  fill: var(--muted);
}

.dg-sub {
  font-size: 14px;
}

.dg-label {
  fill: var(--text);
  font-size: 14px;
}

.dg-line {
  fill: none;
  stroke: var(--text);
  stroke-width: 1.75;
}

.dg-back {
  stroke: var(--line);
  stroke-dasharray: 4 5;
}

.dg-head {
  fill: var(--text);
}

/* Long pages share the header's left edge (same --wide container and gutter) and keep a
   readable measure inside it. */
main.doc {
  max-width: var(--wide);
  padding: clamp(2rem, 5vw, 3.5rem) var(--gutter) 4rem;
  font-size: 1.0625rem;
  line-height: 1.65;
}

main.doc > * {
  max-width: 46rem;
}

/* Long pages with a contents list: on wide screens it becomes a sticky rail on the right (CSS
   only; with JS off and on phones it stays in the flow under the lede). */
@media (min-width: 75rem) {
  main.doc.has-rail {
    display: grid;
    grid-template-columns: minmax(0, 46rem) 17rem;
    column-gap: 3rem;
    align-items: start;
  }

  main.doc.has-rail > * {
    grid-column: 1;
  }

  main.doc.has-rail > .toc {
    grid-column: 2;
    grid-row: 1 / span 200;
    position: sticky;
    top: 1.5rem;
    margin: 0.5rem 0 0;
  }

  main.doc.has-rail > .toc ul {
    grid-template-columns: none;
  }

  main.doc.has-rail > .toc li {
    font-size: 0.9375rem;
    line-height: 1.4;
  }
}

.doc h1 {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  margin-top: 0;
}

.doc h2 {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 64px 0 16px;
}

.doc h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 12px;
  border-radius: 2px;
  background: var(--gold);
}

.doc .closing h2 {
  margin-top: 0;
}

.doc .closing h2::after {
  display: none;
}

.closing-doc {
  margin-top: 64px;
}

.back-row {
  margin: 1.5rem 0 0;
}

.back-row a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

.back-row a::before {
  content: "\2190";
  margin-right: 0.4rem;
}

.doc .kinds {
  padding-left: 1.25rem;
}

.note {
  border-left: 4px solid var(--gold);
  background: var(--band);
  padding: 0.85rem 1.1rem;
  border-radius: 0 10px 10px 0;
  margin: 1.25rem 0;
}

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

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 1.1rem;
  margin: 1.5rem 0;
}

.toc ul {
  display: grid;
  gap: 0.15rem 2rem;
  padding-left: 1.2rem;
  margin: 0;
}

.toc li + li {
  margin-top: 0;
}

.toc a {
  display: inline-block;
  padding: 0.3rem 0;
}

@media (min-width: 46rem) {
  .toc ul {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

/* Tables never break words mid-word: a labelled scroll region on wide screens, cards on phones. */
.table-scroll {
  overflow-x: auto;
  margin: 1.25rem 0;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.table-scroll:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 36rem;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--surface);
  font-weight: 650;
}

th:first-child,
td:first-child {
  min-width: 11rem;
}

tbody tr:last-child td {
  border-bottom: 0;
}

/* A marker beside the cell's own words: the words carry the meaning, the colour repeats it. */
td.yes::before,
td.no::before {
  content: "";
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  margin-right: 0.45rem;
  border-radius: 50%;
  vertical-align: 0.05em;
}

td.yes::before {
  background: var(--gold);
  box-shadow: 0 0 0 1.5px var(--gold-ink);
}

td.no::before {
  box-shadow: inset 0 0 0 2px var(--line);
}

td .v {
  font-size: 0.875rem;
  font-weight: 700;
}

.table-note {
  margin-top: -0.5rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

footer.site {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9375rem;
}

footer.site .wrap,
footer.site .wrap-wide {
  padding-top: 1.25rem;
  padding-bottom: 2rem;
}

footer.site p {
  margin: 0 0 0.5rem;
}

@media (min-width: 46rem) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .features .feature-lead,
  .features .feature-wide {
    grid-column: 1 / -1;
  }

  .two-col {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
  }

  .drawer-body {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (min-width: 60rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 4rem;
  }

  .route {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .ep-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4rem;
  }

  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
  }
}



/* Under 26rem the drawer summary cannot hold the title (223px at 16px), the pill (62px) and the
   Show/Hide word (37px) on one line, so the word goes; the chevron and the native expanded state
   still say whether it is open. */
@media (max-width: 26rem) {
  .drawer .toggle-label {
    display: none;
  }
}

/* Phones: one-line eyebrow and banner, full-width primary button, one-row drawer summary. */
@media (max-width: 40rem) {
  .drawer summary {
    flex-wrap: nowrap;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    font-size: 1rem;
  }

  .drawer .count {
    font-size: 0.75rem;
    padding: 0.1rem 0.5rem;
    white-space: nowrap;
  }

  .drawer .toggle-label {
    font-size: 0.875rem;
  }

  .hero .eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    white-space: nowrap;
  }

  .cta-group .actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .cta-group .btn {
    width: 100%;
  }

  .cta-group .text-link {
    justify-content: center;
  }

  .hero-device {
    max-width: 100%;
  }
}

/* Phones: still one table, header pinned while its rows scroll by; smaller type, no min widths. */
@media (max-width: 40rem) {
  table {
    min-width: 0;
    font-size: 0.9375rem;
    line-height: 1.45;
  }

  .table-scroll {
    overflow: visible;
  }

  th,
  td {
    padding: 0.6rem 0.55rem;
  }

  th:first-child,
  td:first-child {
    min-width: 0;
  }

  thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    box-shadow: 0 1px 0 var(--border);
  }
}

@media (max-width: 30rem) {
  h1 {
    font-size: 1.6875rem;
  }
}

@media (prefers-color-scheme: dark) {
  /* Component overrides, after the base rules so they win the cascade. */
  .hero {
    background: linear-gradient(180deg, #1b2a4f 0%, var(--navy-deep) 100%);
  }

  .route strong::before {
    background: #2c3d6b;
  }

  .mn-node {
    fill: #2c3d6b;
  }

  .device {
    box-shadow: 0 0 0 1px #2e3b66;
  }

  .dg-node-key {
    stroke: var(--gold);
  }

  .company .card {
    border-top-color: var(--gold);
  }

  .steps h3::before {
    background: var(--gold);
    color: var(--navy-deep);
  }

  .closing {
    background: #22335e;
    border: 1px solid #3a4a7c;
  }

  /* App screens stay light (they show the app as it is), dimmed a little on a dark page. */
  .device img {
    filter: brightness(0.92);
  }

  .brand img,
  .card-head img {
    box-shadow: 0 0 0 1px #3a3f4a;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  :root {
    --bg: #ffffff;
    --text: #000000;
    --muted: #333333;
    --border: #999999;
    --band: #ffffff;
    --card: #ffffff;
    --surface: #ffffff;
  }

  body {
    font-size: 11pt;
  }

  .skip-link,
  header.site nav,
  .actions {
    display: none;
  }

  .hero,
  .closing {
    background: none;
    color: #000000;
    border: 0;
    padding: 0 0 1rem;
  }

  .hero p,
  .hero .free,
  .hero h1,
  .hero .eyebrow,
  .closing p {
    color: #000000;
  }

  .hero-device,
  .route .mini,
  .drawer .toggle-label,
  .drawer .chev,
  .shot .full {
    display: none;
  }

  .route li,
  .drawer summary,
  .drawer-body {
    box-shadow: none;
    border-color: #999999;
  }

  .route strong::before {
    background: #ffffff;
    color: #000000;
    border: 1px solid #000000;
  }

  .device {
    padding: 0;
    background: none;
    box-shadow: none;
  }

  .features .ico {
    background: none;
  }

  .drawer::details-content {
    content-visibility: visible;
    height: auto;
  }


  .panel-rows {
    box-shadow: none;
  }

  .features > li,
  .steps > li,
  .shot,
  tr,
  .note {
    break-inside: avoid;
    box-shadow: none;
  }

  .device img {
    max-width: 240px;
    border: 1px solid #999999;
  }

  a[href^="mailto:"]::after,
  main a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
  }
}

/* Pre-launch availability note under the hero buttons. */
.hero .hero-note {
  margin: 1rem 0 0;
  font-size: 0.9375rem;
  color: var(--on-navy-muted);
}

@media print {
  .hero .hero-note {
    color: #000000;
  }
}
