/* ==========================================================================
   Palissade — public site palissade.ca
   Layout modelled on the Soscar template (licence bought by Groupe Solutions TI, see README « Template »),
   written from scratch for the Palissade brand (brand kit: #1F58C7, #0F2745, #A4A9B4, #E6EBF2, Segoe UI/Arial).

   Rules: no inline style anywhere (CSP style-src 'self'), no script, no third-party resource.
   Every colour goes through the tokens of :root. Light and dark through prefers-color-scheme.
   Animations are CSS only and stop under prefers-reduced-motion.

   Cascade layers: tokens < base < layout < components < utilities. The licensed template stylesheet, when dropped
   in (Website:Theme:VendorStylesheet), is unlayered and loaded last, so it wins over every layer here.
   ========================================================================== */

@layer tokens, base, layout, components, utilities;

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2");
}

/* ----- Tokens ------------------------------------------------------------ */
@layer tokens {
  :root {
    --brand-primary: #1F58C7;
    --brand-navy: #0F2745;
    --brand-silver: #A4A9B4;
    --brand-mist: #E6EBF2;

    --bg: #FFFFFF;
    --bg-alt: #F2F5FA;
    --surface: #FFFFFF;
    --ink: #0F2745;
    --muted: #4A5872;
    --line: #DCE3EE;
    --link: #1F58C7;
    --accent: #1F58C7;
    --accent-ink: #FFFFFF;
    --accent-soft: #E7EEFB;
    --focus: #1F58C7;

    --hero-from: #0F2745;
    --hero-to: #1F58C7;
    --hero-ink: #FFFFFF;
    --hero-muted: #E3EAF7;

    --footer-bg: #0F2745;
    --footer-ink: #E6EBF2;
    --footer-muted: #B9C4D6;
    --footer-line: rgb(255 255 255 / 0.12);

    --ok-bg: #E2F4EA;
    --ok-ink: #135F35;
    --warn-bg: #FFF0D6;
    --warn-ink: #7A4300;
    --todo-bg: #E4ECFB;
    --todo-ink: #18469F;

    --shadow-sm: 0 2px 8px rgb(15 39 69 / 0.06);
    --shadow: 0 12px 32px rgb(15 39 69 / 0.10);
    --shadow-lg: 0 24px 60px rgb(15 39 69 / 0.18);

    --font: "Segoe UI", Arial, system-ui, sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, Consolas, "Cascadia Mono", monospace;

    --radius-sm: 8px;
    --radius: 16px;
    --radius-lg: 28px;
    --container: 1180px;
    --gutter: 16px;
    --section: 64px;
  }

  @media (min-width: 48rem) {
    :root {
      --gutter: 24px;
      --section: 96px;
    }
  }

  @media (prefers-color-scheme: dark) {
    :root {
      --bg: #0A1A30;
      --bg-alt: #0F2745;
      --surface: #132F52;
      --ink: #E6EBF2;
      --muted: #B4C0D3;
      --line: #24426B;
      --link: #9DBBF6;
      --accent: #2D66D6;
      --accent-ink: #FFFFFF;
      --accent-soft: #173A68;
      --focus: #9DBBF6;

      --hero-from: #081628;
      --hero-to: #1A4BA8;

      --footer-bg: #06111F;

      --ok-bg: #123D2A;
      --ok-ink: #9BE3BA;
      --warn-bg: #4A3410;
      --warn-ink: #FFD58F;
      --todo-bg: #18386A;
      --todo-ink: #C3D5F8;

      --shadow-sm: 0 2px 8px rgb(0 0 0 / 0.25);
      --shadow: 0 12px 32px rgb(0 0 0 / 0.35);
      --shadow-lg: 0 24px 60px rgb(0 0 0 / 0.45);
    }
  }
}

/* ----- Base -------------------------------------------------------------- */
@layer base {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

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

  body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.65;
    overflow-wrap: break-word;
  }

  h1,
  h2,
  h3 {
    margin: 0 0 0.5em;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-wrap: balance;
  }

  h1 {
    font-size: clamp(2rem, 5.2vw, 3.4rem);
  }

  h2 {
    font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  }

  h3 {
    font-size: 1.2rem;
  }

  p {
    margin: 0 0 1em;
  }

  a {
    color: var(--link);
    text-underline-offset: 0.18em;
  }

  a:hover {
    text-decoration-thickness: 2px;
  }

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

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

  address {
    font-style: normal;
  }

  abbr[title] {
    text-decoration: none;
  }

  ul,
  ol {
    padding: 0;
    margin: 0;
    list-style: none;
  }

  main:focus {
    outline: none;
  }

  table {
    border-collapse: collapse;
    width: 100%;
  }
}

/* ----- Layout ------------------------------------------------------------ */
@layer layout {
  .container {
    width: 100%;
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
  }

  .narrow {
    max-width: calc(820px + 2 * var(--gutter));
  }

  .section {
    padding-block: var(--section);
  }

  /* Grid children may shrink below their content width (no horizontal scroll at 320 px). */
  .hero-grid > *,
  .split > *,
  .card-grid > *,
  .footer-grid > *,
  .cta-band > * {
    min-width: 0;
  }

  .section-alt {
    background: var(--bg-alt);
  }

  .split {
    display: grid;
    gap: 40px;
    align-items: center;
  }

  .split-top {
    align-items: start;
  }

  @media (min-width: 60rem) {
    .split {
      grid-template-columns: 1fr 1fr;
      gap: 72px;
    }

    .split-reverse .split-media {
      order: 2;
    }
  }

  .card-grid {
    display: grid;
    gap: 24px;
  }

  @media (min-width: 40rem) {
    .card-grid-3,
    .card-grid-4 {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (min-width: 64rem) {
    .card-grid-3 {
      grid-template-columns: repeat(3, 1fr);
    }

    .card-grid-4 {
      grid-template-columns: repeat(4, 1fr);
    }
  }
}

/* ----- Components -------------------------------------------------------- */
@layer components {
  /* Skip link */
  .skip-link {
    position: absolute;
    left: 16px;
    top: -100px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--accent);
    color: var(--accent-ink);
    border-radius: var(--radius-sm);
    font-weight: 600;
  }

  .skip-link:focus {
    top: 12px;
  }

  /* Eyebrow, intro */
  .eyebrow {
    display: block;
    margin: 0 0 14px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--link);
  }

  .eyebrow::before {
    content: "";
    display: inline-block;
    width: 28px;
    height: 2px;
    margin-inline-end: 10px;
    vertical-align: middle;
    background: currentColor;
  }

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

  .section-heading {
    max-width: 720px;
    margin: 0 auto 48px;
    text-align: center;
  }

  .section-heading .section-intro {
    color: var(--muted);
    font-size: 1.1rem;
  }

  .section-heading-start {
    margin-inline: 0;
    margin-bottom: 24px;
    text-align: start;
  }

  .lede {
    font-size: 1.15rem;
    color: var(--hero-muted);
    max-width: 640px;
  }

  /* Buttons */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 28px;
    border: 2px solid transparent;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  }

  .btn:hover {
    transform: translateY(-2px);
  }

  .btn-sm {
    min-height: 40px;
    padding: 8px 20px;
    font-size: 0.95rem;
  }

  .btn-primary {
    background: linear-gradient(135deg, var(--brand-primary), #173F92);
    color: #FFFFFF;
    box-shadow: 0 8px 20px rgb(31 88 199 / 0.3);
  }

  .btn-primary:hover {
    box-shadow: 0 12px 28px rgb(31 88 199 / 0.4);
  }

  .btn-outline {
    border-color: var(--accent);
    color: var(--link);
    background: transparent;
  }

  .btn-outline:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-ink);
  }

  .btn-light {
    background: #FFFFFF;
    color: #0F2745;
    box-shadow: 0 8px 20px rgb(6 17 31 / 0.25);
  }

  .btn-ghost {
    border-color: rgb(255 255 255 / 0.7);
    color: #FFFFFF;
  }

  .btn-ghost:hover {
    background: rgb(255 255 255 / 0.12);
  }

  .link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
  }

  .link-arrow .icon {
    width: 18px;
    transition: transform 0.2s ease;
  }

  .link-arrow:hover .icon {
    transform: translateX(4px);
  }

  .icon {
    width: 24px;
    height: 24px;
    flex: none;
  }

  /* Status chips: colour always with its text */
  .chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 12px;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    white-space: nowrap;
  }

  .chip::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
  }

  .chip-ok {
    background: var(--ok-bg);
    color: var(--ok-ink);
  }

  .chip-warn {
    background: var(--warn-bg);
    color: var(--warn-ink);
  }

  .chip-todo {
    background: var(--todo-bg);
    color: var(--todo-ink);
  }

  /* Header */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
  }

  .header-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 72px;
  }

  .brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
    margin-inline-end: auto;
  }

  .brand-symbol {
    width: 40px;
    height: 40px;
  }

  .brand-word {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: -0.01em;
  }

  .brand-tld {
    color: var(--brand-silver);
  }

  .nav-wide,
  .header-tools {
    display: none;
  }

  .nav-list {
    display: flex;
    gap: 4px;
  }

  .nav-list a,
  .nav-panel-list a {
    display: block;
    padding: 10px 12px;
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-sm);
    position: relative;
  }

  .nav-list a::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 4px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
  }

  .nav-list a:hover::after,
  .nav-list a[aria-current]::after {
    transform: scaleX(1);
  }

  .nav-list a[aria-current],
  .nav-panel-list a[aria-current] {
    color: var(--link);
  }

  .header-tools {
    align-items: center;
    gap: 12px;
  }

  .lang {
    display: flex;
    gap: 2px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
  }

  .lang a {
    display: inline-block;
    padding: 8px 8px;
    color: var(--muted);
    text-decoration: none;
    border-radius: var(--radius-sm);
  }

  .lang a[aria-current] {
    color: var(--link);
    font-weight: 500;
    text-decoration: underline;
  }

  .nav-small {
    position: relative;
  }

  .nav-small summary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
  }

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

  .burger,
  .burger::before,
  .burger::after {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.2s ease;
  }

  .burger {
    position: relative;
  }

  .burger::before,
  .burger::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .burger::before {
    top: -6px;
  }

  .burger::after {
    top: 6px;
  }

  .nav-small[open] .burger {
    background: transparent;
  }

  .nav-small[open] .burger::before {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-small[open] .burger::after {
    transform: translateY(-6px) rotate(-45deg);
  }

  .nav-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    width: min(320px, calc(100vw - 2 * var(--gutter)));
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
  }

  .nav-panel-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 12px 4px;
    border-top: 1px solid var(--line);
    margin-top: 8px;
  }

  @media (min-width: 72rem) {
    .nav-wide,
    .header-tools {
      display: flex;
    }

    .nav-small {
      display: none;
    }
  }

  /* Hero (home) */
  .hero,
  .page-hero {
    position: relative;
    overflow: hidden;
    color: var(--hero-ink);
    background: linear-gradient(120deg, var(--hero-from) 0%, var(--hero-from) 25%, var(--hero-to) 100%);
  }

  .hero::after,
  .page-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 -1px 0;
    height: 64px;
    background: var(--bg);
    clip-path: polygon(0 100%, 100% 30%, 100% 100%);
  }

  .hero-pattern,
  .page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../img/hex-pattern.svg");
    background-size: 56px 97px;
    mask-image: linear-gradient(90deg, transparent 0%, #000 60%);
    pointer-events: none;
  }

  .hero h1,
  .page-hero h1 {
    color: var(--hero-ink);
  }

  .hero a:not(.btn),
  .page-hero a:not(.btn) {
    color: var(--hero-ink);
  }

  .hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 48px;
    align-items: center;
    padding-block: 72px 120px;
  }

  @media (min-width: 64rem) {
    .hero-grid {
      grid-template-columns: 1.1fr 0.9fr;
      padding-block: 112px 160px;
    }
  }

  .hero-slogan {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--hero-ink);
    border-left: 3px solid var(--brand-silver);
    padding-left: 14px;
  }

  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
  }

  /* Sample report (fictitious) */
  .report {
    background: var(--surface);
    color: var(--ink);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 24px;
    max-width: 520px;
    margin-inline: auto;
  }

  .report-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
  }

  .report-head h2 {
    font-size: 1.35rem;
    margin: 0;
  }

  .report-kind,
  .report-foot,
  .report-code,
  .card-code {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    color: var(--muted);
    margin: 0;
  }

  .report-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px 16px;
    margin: 14px 0;
    font-size: 0.9rem;
  }

  .report-meta dt {
    color: var(--muted);
    font-size: 0.8rem;
  }

  .report-meta dd {
    margin: 0;
    font-weight: 600;
  }

  .report-list li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 12px;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid var(--line);
  }

  .report-list .chip {
    grid-column: 2;
    justify-self: start;
  }

  @media (min-width: 30rem) {
    .report-list li {
      grid-template-columns: auto 1fr auto;
    }

    .report-list .chip {
      grid-column: auto;
    }
  }

  .report-item b,
  .report-item small {
    display: block;
  }

  .report-item small {
    color: var(--muted);
    font-size: 0.85rem;
  }

  .report-foot {
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  /* Facts strip */
  .fact-strip {
    padding-block: 8px 40px;
  }

  .fact-list {
    display: grid;
    gap: 16px;
  }

  @media (min-width: 40rem) {
    .fact-list {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (min-width: 64rem) {
    .fact-list {
      grid-template-columns: repeat(4, 1fr);
    }
  }

  .fact-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    font-weight: 600;
    line-height: 1.35;
  }

  .fact-list .icon {
    width: 40px;
    height: 40px;
    padding: 8px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--link);
  }

  /* Method drawing and verbs */
  .method-figure {
    margin: 0;
    padding: 24px;
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
  }

  .method-figure figcaption {
    margin-top: 12px;
    text-align: center;
    color: var(--muted);
    font-size: 0.95rem;
  }

  .fig-fill {
    fill: var(--accent-soft);
  }

  .fig-line {
    fill: none;
    stroke: var(--brand-primary);
    stroke-width: 4;
    stroke-linejoin: round;
  }

  .fig-stake {
    fill: var(--brand-primary);
  }

  .fig-stake-alt {
    fill: var(--brand-navy);
  }

  .fig-thin {
    fill: none;
    stroke: var(--brand-silver);
    stroke-width: 2;
    stroke-dasharray: 6 6;
  }

  .fig-dot {
    fill: var(--brand-primary);
  }

  .fig-label {
    fill: var(--ink);
    font-family: var(--font-mono);
    font-size: 17px;
    font-weight: 500;
  }

  @media (prefers-color-scheme: dark) {
    .fig-stake-alt {
      fill: var(--brand-mist);
    }

    .fig-line,
    .fig-dot,
    .fig-stake {
      stroke: var(--link);
    }

    .fig-dot,
    .fig-stake {
      fill: var(--link);
    }
  }

  .verb-list {
    display: grid;
    gap: 18px;
  }

  .verb-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
  }

  .verb-list h3 {
    margin-bottom: 4px;
  }

  .verb-list p {
    margin: 0;
    color: var(--muted);
  }

  .verb-icon,
  .card-icon {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    flex: none;
    border-radius: 14px;
    background: var(--accent-soft);
    color: var(--link);
  }

  .verb-num {
    font-family: var(--font-mono);
    color: var(--link);
  }

  /* Cards */
  .card {
    position: relative;
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  }

  .card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  }

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

  .service-card .card-icon {
    margin-bottom: 18px;
    transition: background-color 0.25s ease, color 0.25s ease;
  }

  .service-card:hover .card-icon {
    background: var(--accent);
    color: var(--accent-ink);
  }

  .service-card h3 {
    margin-top: 6px;
  }

  .service-card p {
    color: var(--muted);
  }

  .card-note {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed var(--line);
    font-family: var(--font-mono);
    font-size: 0.8rem;
  }

  .card-more {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
    color: var(--hero-ink);
    border: 0;
  }

  .card-more p {
    color: var(--hero-muted);
  }

  .card-more .link-arrow {
    color: #FFFFFF;
  }

  /* Showcase illustrations */
  .illustration {
    display: block;
    width: 100%;
  }

  .il-back {
    fill: var(--accent-soft);
  }

  .il-hex {
    fill: var(--brand-primary);
    opacity: 0.85;
  }

  .il-hex-soft {
    fill: var(--brand-silver);
    opacity: 0.6;
  }

  .il-card {
    fill: var(--surface);
    filter: drop-shadow(0 12px 18px rgb(15 39 69 / 0.14));
  }

  .il-card-alt {
    fill: var(--brand-navy);
  }

  .il-ink {
    fill: var(--ink);
  }

  .il-ink-soft {
    fill: var(--ink);
    opacity: 0.35;
  }

  .il-muted {
    fill: var(--brand-silver);
  }

  .il-primary {
    fill: var(--brand-primary);
  }

  .il-ok {
    fill: var(--ok-bg);
  }

  .il-warn {
    fill: var(--warn-bg);
  }

  .il-todo {
    fill: var(--todo-bg);
  }

  .il-dot-ok {
    fill: var(--ok-ink);
  }

  .il-dot-warn {
    fill: var(--warn-ink);
  }

  .il-dot-todo {
    fill: var(--todo-ink);
  }

  .il-check-box {
    fill: var(--accent-soft);
    stroke: var(--brand-primary);
    stroke-width: 2;
  }

  .il-check {
    fill: none;
    stroke: var(--brand-primary);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .il-window {
    fill: var(--brand-mist);
  }

  .il-ground {
    stroke: var(--brand-silver);
    stroke-width: 4;
    stroke-linecap: round;
  }

  .il-ring {
    fill: none;
    stroke: var(--brand-primary);
    stroke-width: 2;
    opacity: 0.45;
  }

  .il-sweep {
    fill: var(--brand-primary);
    opacity: 0.25;
    transform-origin: 240px 180px;
  }

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

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

  /* Checklists */
  .checklist {
    display: grid;
    gap: 12px;
    margin: 0 0 1em;
  }

  .checklist li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
  }

  .checklist .icon {
    width: 22px;
    height: 22px;
    margin-top: 3px;
    padding: 3px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-ink);
    stroke-width: 3;
  }

  .check-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
  }

  .check-icon {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: none;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--link);
  }

  .checklist-card h3,
  .address-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  /* Call-to-action band */
  .cta-section {
    padding-block: var(--section);
  }

  .section-alt + .cta-section {
    background: var(--bg-alt);
  }

  .cta-band {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 24px;
    align-items: center;
    padding: 40px 28px;
    border-radius: var(--radius-lg);
    color: var(--hero-ink);
    background: linear-gradient(120deg, var(--hero-from), var(--hero-to));
    box-shadow: var(--shadow);
  }

  .cta-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../img/hex-pattern.svg");
    background-size: 56px 97px;
    mask-image: linear-gradient(270deg, #000 0%, transparent 70%);
  }

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

  .cta-band h2 {
    margin-bottom: 8px;
  }

  .cta-band p {
    color: var(--hero-muted);
    margin-bottom: 0;
  }

  .cta-text > p + p {
    margin-top: 10px;
  }

  .cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
  }

  @media (min-width: 60rem) {
    .cta-band {
      grid-template-columns: 1fr auto;
      padding: 56px 64px;
    }
  }

  /* Process steps */
  .steps {
    display: grid;
    gap: 40px;
    counter-reset: step;
  }

  @media (min-width: 60rem) {
    .steps {
      grid-template-columns: repeat(3, 1fr);
      gap: 32px;
    }
  }

  .step {
    position: relative;
    text-align: center;
    padding-inline: 12px;
  }

  .step p {
    color: var(--muted);
    max-width: 340px;
    margin-inline: auto;
  }

  .step-icon {
    position: relative;
    z-index: 1;
    display: inline-grid;
    place-items: center;
    width: 96px;
    height: 96px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: var(--surface);
    color: var(--link);
    border: 2px solid var(--accent-soft);
    box-shadow: var(--shadow);
  }

  .step-icon .icon {
    width: 36px;
    height: 36px;
  }

  .step-num {
    position: absolute;
    top: -4px;
    right: -4px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-ink);
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.9rem;
  }

  @media (min-width: 60rem) {
    .step:not(:last-child)::after {
      content: "";
      position: absolute;
      top: 48px;
      left: calc(50% + 64px);
      width: calc(100% - 128px + 32px);
      height: 2px;
      background-image: linear-gradient(90deg, var(--brand-silver) 50%, transparent 50%);
      background-size: 12px 2px;
    }
  }

  /* Products (price-table row) */
  .product-grid {
    align-items: stretch;
  }

  .product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    padding: 40px 28px;
  }

  .product-card h3 {
    font-size: 1.5rem;
    margin: 0;
  }

  .product-card h3 a {
    color: inherit;
    text-decoration: none;
  }

  .product-card h3 a:hover {
    text-decoration: underline;
  }

  .product-card p {
    color: var(--muted);
  }

  .product-card .btn {
    margin-top: auto;
  }

  .product-icon {
    display: inline-grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--link);
    margin-bottom: 6px;
  }

  .product-icon .icon {
    width: 32px;
    height: 32px;
  }

  .product-card-featured {
    background: linear-gradient(160deg, var(--hero-from), var(--hero-to));
    color: var(--hero-ink);
    border: 0;
    box-shadow: var(--shadow-lg);
  }

  .product-card-featured p,
  .product-card-featured .card-code {
    color: var(--hero-muted);
  }

  .product-card-featured .product-icon {
    background: rgb(255 255 255 / 0.14);
    color: #FFFFFF;
  }

  .product-card-featured .btn-primary {
    background: #FFFFFF;
    color: #0F2745;
  }

  @media (min-width: 64rem) {
    .product-card-featured {
      transform: scale(1.04);
    }

    .product-card-featured:hover {
      transform: scale(1.04) translateY(-6px);
    }
  }

  /* Round-icon cards (testimonial row) */
  .quote-card {
    text-align: center;
    padding-top: 56px;
    margin-top: 40px;
  }

  .quote-icon {
    position: absolute;
    top: -40px;
    left: 50%;
    translate: -50% 0;
    display: grid;
    place-items: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-navy));
    color: #FFFFFF;
    border: 4px solid var(--surface);
    box-shadow: var(--shadow);
  }

  .quote-icon .icon {
    width: 32px;
    height: 32px;
  }

  .quote-card p {
    color: var(--muted);
  }

  .quote-card .card-code {
    margin-bottom: 8px;
  }

  .center {
    text-align: center;
  }

  .center .link-arrow,
  p.center {
    margin-top: 32px;
  }

  /* Facts lists */
  .facts {
    display: grid;
    gap: 0;
    margin: 0 0 1.25em;
    border-top: 1px solid var(--line);
  }

  .facts > div {
    display: grid;
    gap: 2px 24px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  @media (min-width: 40rem) {
    .facts > div {
      grid-template-columns: 220px 1fr;
    }
  }

  .facts dt {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
  }

  .facts dt .icon {
    width: 20px;
    height: 20px;
    color: var(--link);
  }

  .facts dd {
    margin: 0;
    color: var(--muted);
  }

  /* Table */
  .table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
  }

  .table th,
  .table td {
    padding: 16px 20px;
    text-align: start;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
  }

  .table thead th {
    background: var(--accent-soft);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .table tbody tr:last-child > * {
    border-bottom: 0;
  }

  .table td {
    color: var(--muted);
  }

  /* Inner page banner */
  .page-hero-inner {
    position: relative;
    z-index: 1;
    padding-block: 56px 112px;
  }

  @media (min-width: 64rem) {
    .page-hero-inner {
      padding-block: 80px 136px;
    }
  }

  .breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--hero-muted);
  }

  .breadcrumb li + li::before {
    content: "/";
    margin-inline-end: 6px;
    opacity: 0.7;
  }

  .page-hero-status {
    margin-bottom: 16px;
  }

  .hero-404-code {
    margin: 0;
    font-family: var(--font-mono);
    font-size: clamp(4rem, 14vw, 8rem);
    line-height: 1;
    color: rgb(255 255 255 / 0.25);
  }

  /* FAQ (details/summary, no script) */
  .faq-list {
    display: grid;
    gap: 14px;
  }

  .faq-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
  }

  .faq-item summary {
    position: relative;
    padding: 20px 56px 20px 24px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
  }

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

  .faq-item summary::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    translate: 0 -50%;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--link);
    font-size: 1.2rem;
    line-height: 1;
    transition: rotate 0.25s ease;
  }

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

  .faq-answer {
    padding: 0 24px 20px;
    color: var(--muted);
  }

  .faq-answer p {
    margin: 0;
  }

  /* Legal documents */
  .doc-note {
    padding: 16px 20px;
    border-left: 4px solid var(--accent);
    background: var(--accent-soft);
    border-radius: var(--radius-sm);
  }

  .doc-section {
    padding-block: 28px;
    border-bottom: 1px solid var(--line);
  }

  .doc-section h2 {
    font-size: 1.4rem;
    margin-top: 4px;
  }

  .todo {
    color: var(--muted);
    font-style: italic;
  }

  /* Footer */
  .site-footer {
    background: var(--footer-bg);
    color: var(--footer-ink);
    padding-top: 72px;
  }

  .site-footer a {
    color: var(--footer-ink);
    text-decoration: none;
  }

  .site-footer a:hover {
    text-decoration: underline;
  }

  .site-footer :focus-visible {
    outline-color: #9DBBF6;
  }

  .footer-grid {
    display: grid;
    gap: 40px;
    padding-bottom: 56px;
  }

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

  @media (min-width: 64rem) {
    .footer-grid {
      grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
    }
  }

  .brand-inverse {
    color: #FFFFFF;
    margin-bottom: 16px;
  }

  .site-footer .brand-inverse {
    color: #FFFFFF;
  }

  .footer-about p,
  .footer-small {
    color: var(--footer-muted);
    font-size: 0.95rem;
  }

  .footer-slogan {
    color: var(--footer-ink);
    font-size: 1.05rem;
  }

  .footer-hosting {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .footer-hosting .icon {
    width: 20px;
    color: #9DBBF6;
  }

  .footer-title {
    font-size: 1.05rem;
    margin-bottom: 18px;
    color: #FFFFFF;
  }

  .footer-links {
    display: grid;
    gap: 10px;
  }

  .footer-links + .footer-links {
    margin-top: 10px;
  }

  .footer-links a {
    color: var(--footer-muted);
  }

  .footer-links a:hover,
  .footer-links a[aria-current] {
    color: #FFFFFF;
  }

  .footer-contact {
    display: grid;
    gap: 6px;
    color: var(--footer-muted);
    font-size: 0.95rem;
  }

  .footer-contact a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .footer-contact .icon {
    width: 18px;
    color: #9DBBF6;
  }

  .footer-small {
    margin-top: 14px;
  }

  .footer-bottom {
    border-top: 1px solid var(--footer-line);
  }

  .footer-bottom-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    padding-block: 20px;
    font-size: 0.9rem;
    color: var(--footer-muted);
  }

  .footer-bottom-bar p {
    margin: 0;
  }
}

/* ----- Utilities and motion ---------------------------------------------- */
@layer utilities {
  .visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  @media (prefers-reduced-motion: no-preference) {
    @keyframes rise {
      from {
        opacity: 0;
        translate: 0 24px;
      }

      to {
        opacity: 1;
        translate: none;
      }
    }

    @keyframes float {
      0%,
      100% {
        translate: 0 0;
      }

      50% {
        translate: 0 -12px;
      }
    }

    @keyframes sweep {
      to {
        rotate: 360deg;
      }
    }

    @keyframes dash {
      to {
        background-position: 24px 0;
      }
    }

    .reveal-1,
    .reveal-2,
    .reveal-3,
    .reveal-4 {
      animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    }

    .reveal-2 {
      animation-delay: 0.12s;
    }

    .reveal-3 {
      animation-delay: 0.24s;
    }

    .reveal-4 {
      animation-delay: 0.36s;
    }

    .hero-visual .report {
      animation: float 6s ease-in-out 1.2s infinite;
    }

    .il-sweep {
      animation: sweep 6s linear infinite;
    }

    .step:not(:last-child)::after {
      animation: dash 1.2s linear infinite;
    }

    /* Scroll reveal where the browser supports scroll-driven animations; content stays visible elsewhere. */
    @supports (animation-timeline: view()) {
      .card,
      .split-media,
      .step,
      .fact-list li,
      .faq-item {
        animation: rise linear both;
        animation-timeline: view();
        animation-range: entry 0% cover 22%;
      }
    }
  }

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

    *,
    *::before,
    *::after {
      transition: none !important;
      animation: none !important;
    }
  }

  @media print {
    .site-header,
    .nav-small,
    .cta-section,
    .hero-pattern {
      display: none;
    }

    .hero,
    .page-hero,
    .site-footer {
      background: none;
      color: #000000;
    }
  }
}

@layer components {
  .header-link {
    padding: 8px 6px;
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
  }

  .header-link:hover {
    color: var(--link);
    text-decoration: underline;
  }

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

  /* Home banner art: the brand symbol with floating hexagons. */
  .hero-art {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 280px;
  }

  .hero-symbol {
    position: relative;
    width: min(320px, 70vw);
    filter: drop-shadow(0 30px 40px rgb(6 17 31 / 0.45));
  }

  .hero-ring {
    position: absolute;
    width: min(420px, 90vw);
    aspect-ratio: 1;
    border-radius: 50%;
    border: 2px dashed rgb(255 255 255 / 0.25);
  }

  .hero-hex {
    position: absolute;
    width: 56px;
    aspect-ratio: 1 / 1.1547;
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
    background: rgb(255 255 255 / 0.18);
  }

  .hero-hex-1 {
    top: 6%;
    left: 12%;
  }

  .hero-hex-2 {
    bottom: 10%;
    right: 8%;
    width: 72px;
    background: var(--brand-silver);
    opacity: 0.5;
  }

  .hero-hex-3 {
    top: 18%;
    right: 14%;
    width: 36px;
    background: #FFFFFF;
    opacity: 0.35;
  }
}

@layer utilities {
  @media (prefers-reduced-motion: no-preference) {
    .hero-symbol {
      animation: float 6s ease-in-out 1s infinite;
    }

    .hero-ring {
      animation: sweep 40s linear infinite;
    }

    .hero-hex-1 {
      animation: float 5s ease-in-out infinite;
    }

    .hero-hex-2 {
      animation: float 7s ease-in-out 0.5s infinite;
    }

    .hero-hex-3 {
      animation: float 4s ease-in-out 0.2s infinite;
    }
  }
}
