/* Kiviki Group — premium sovereign software marketing.
   Radio Canada + Source Sans 3 self-hosted (SIL OFL). Licenses: assets/fonts/. */

@font-face {
  font-family: "Radio Canada";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../assets/fonts/radio-canada-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Radio Canada";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("../assets/fonts/radio-canada-italic-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../assets/fonts/source-sans-3-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url("../assets/fonts/source-sans-3-latin-italic.woff2") format("woff2");
}

:root {
  --paper: #e8eef3;
  --paper-deep: #d5dee7;
  --paper-wash: #f2f6f9;
  --surface: #ffffff;
  --surface-soft: #f7fafc;
  --ink: #0a1c28;
  --ink-deep: #061018;
  --ink-soft: #3a5160;
  --ink-faint: #5a6f7c;
  --line: #c2ced8;
  --line-soft: #d7e0e8;
  --cobalt: #1a4f8c;
  --cobalt-deep: #123a68;
  --cobalt-bright: #2a6bb5;
  --cobalt-glow: rgba(42, 107, 181, 0.35);
  --cream: #eef2f5;
  --on-ink: #f4f8fb;
  --on-ink-soft: #b7c8d4;
  --stamp: #b8331f;
  --draft: #8f2a1a;
  --draft-ink: #fff8f3;
  --draft-edge: #6e1f14;
  --select: #c5d6e8;
  --media-ink: #071018;
  --footer-muted: #b8c9d6;
  --display: "Radio Canada", "Segoe UI", Helvetica, Arial, sans-serif;
  --sans: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  --header-h: 4.5rem;
  --radius: 4px;
  --radius-lg: 10px;
  --shadow: 0 18px 40px rgba(6, 16, 24, 0.1);
  --shadow-soft: 0 10px 28px rgba(6, 16, 24, 0.08);
  --shadow-lift: 0 22px 48px rgba(6, 16, 24, 0.14);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(90% 55% at 0% 0%, rgba(26, 79, 140, 0.07), transparent 55%),
    linear-gradient(180deg, var(--paper-wash) 0%, var(--paper) 40%, var(--paper) 100%);
  text-rendering: optimizeLegibility;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  display: block;
}

a {
  color: var(--cobalt);
}

a:hover {
  color: var(--cobalt-deep);
}

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

::selection {
  background: var(--select);
  color: var(--ink);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 30;
  background: var(--surface);
  color: var(--ink);
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(1160px, calc(100% - 2.5rem));
  margin-inline: auto;
}

@media (max-width: 640px) {
  .wrap {
    width: min(1160px, calc(100% - 1.25rem));
  }
}

/* Header — letterhead field */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--cobalt);
  color: var(--cream);
  border-bottom: 1px solid rgba(238, 242, 245, 0.16);
  box-shadow: 0 8px 24px rgba(6, 16, 24, 0.18);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "brand lang"
    "nav nav";
  gap: 0.4rem 1rem;
  align-items: center;
  min-height: var(--header-h);
  padding: 0.75rem 0 0.9rem;
}

.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: #fff;
}

.brand-name {
  font-size: 1.05rem;
}

.mark {
  width: 1.75rem;
  height: 1.75rem;
  display: block;
  flex: none;
}

.nav {
  grid-area: nav;
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem 1rem;
}

.nav a {
  color: rgba(238, 242, 245, 0.82);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.35rem 0;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: #fff;
}

.nav a[aria-current="page"] {
  box-shadow: inset 0 -1px 0 #fff;
}

.lang {
  grid-area: lang;
  justify-self: end;
  display: inline-flex;
  border: 1px solid rgba(238, 242, 245, 0.4);
  border-radius: var(--radius);
  padding: 2px;
}

.lang button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--cream);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  min-width: 2.6rem;
  min-height: 2rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius);
  cursor: pointer;
}

.lang button[aria-pressed="true"] {
  background: #fff;
  color: var(--cobalt);
}

@media (min-width: 920px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "brand nav lang";
    padding: 0;
  }

  .nav {
    justify-self: end;
    margin-right: 0.85rem;
  }
}

/* Footer */

.site-footer {
  background: var(--ink-deep);
  color: var(--cream);
  margin-top: auto;
  border-top: 1px solid rgba(238, 242, 245, 0.1);
}

.footer-inner {
  display: grid;
  gap: 1.35rem;
  padding: 2.4rem 0 2rem;
}

.footer-brand {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  align-items: center;
  justify-content: space-between;
}

.footer-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.footer-brand-lockup:hover {
  color: #fff;
}

.footer-tagline {
  margin: 0;
  max-width: 28rem;
  color: var(--footer-muted);
  font-size: 0.98rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(238, 242, 245, 0.12);
}

.footer-copy,
.footer-mail {
  margin: 0;
  color: var(--footer-muted);
  font-size: 0.95rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
}

.footer-nav a,
.footer-mail a {
  color: #fff;
  text-decoration: none;
}

.footer-nav a:hover,
.footer-mail a:hover {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.footer-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

/* Type */

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

h1,
h2,
.email-display,
.brand-hero {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.03em;
}

h1,
.brand-hero {
  margin: 0;
  font-size: clamp(2.55rem, 6.4vw, 4.5rem);
  line-height: 1.08;
}

.lede {
  margin: 1.1rem 0 0;
  max-width: 38rem;
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.lede--flush {
  margin-top: 0;
}

.fr-note {
  margin: 1rem 0 0;
  max-width: 40rem;
  color: var(--ink-soft);
}

.page-hero {
  padding: clamp(2.4rem, 5.5vw, 4rem) 0 0.35rem;
}

.section {
  padding: 1.35rem 0 clamp(3rem, 7vw, 5rem);
}

.section-title {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

/* Entrance */

@keyframes sheet-in {
  from {
    opacity: 0;
    transform: translateY(0.7rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(1rem);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.sheet-enter {
  animation: sheet-in 0.7s var(--ease-out) both;
}

/* Home — ink hero */

.hero-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--on-ink);
  padding: 4rem 1.25rem 4.25rem;
  background:
    radial-gradient(70% 80% at 88% 18%, rgba(26, 79, 140, 0.28), transparent 58%),
    radial-gradient(55% 60% at 8% 90%, rgba(26, 79, 140, 0.18), transparent 55%),
    linear-gradient(155deg, #0b2233 0%, var(--ink-deep) 48%, #0a1a28 100%);
  border-bottom: 1px solid rgba(238, 242, 245, 0.08);
}

@media (min-width: 900px) {
  .hero-band {
    padding: 6rem 1.25rem 5.75rem;
  }
}

.hero-band .wrap {
  position: relative;
  z-index: 1;
  width: min(1160px, 100%);
}

.hero-copy {
  max-width: 40rem;
  animation: hero-rise 0.9s var(--ease-out) both;
}

.brand-hero {
  max-width: 12em;
  color: #fff;
  text-wrap: balance;
}

.hero-lede {
  margin: 1.15rem 0 0;
  max-width: 34rem;
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  line-height: 1.45;
  color: #d5e0e8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  margin-top: 1.75rem;
}

.btn-on-ink.btn-primary {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

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

.btn-on-ink.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(244, 248, 251, 0.55);
}

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

/* Products as rich panels */

.products-band {
  padding: clamp(2.75rem, 6vw, 4.5rem) 0 clamp(3.25rem, 7vw, 5.5rem);
}

.products-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: end;
  justify-content: space-between;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--ink);
}

.products-head .section-title {
  margin: 0;
}

.product-stack {
  display: grid;
  gap: clamp(1.5rem, 3.5vw, 2.25rem);
}

.product-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
  padding: clamp(1.15rem, 2.5vw, 1.6rem);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(247, 250, 252, 0.92)),
    var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  position: relative;
  color: inherit;
  text-decoration: none;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.25s ease;
}

.product-panel:hover {
  color: inherit;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: #a9bdd0;
}

.product-panel:focus-visible {
  outline-offset: 3px;
}

.product-panel-body {
  display: grid;
  gap: 0.85rem;
  align-content: start;
  padding: 0.35rem 0.15rem 0.15rem 0.55rem;
}

.product-id {
  margin: 0;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cobalt);
}

.product-panel h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  line-height: 1.2;
}

.product-panel-blurb {
  margin: 0;
  color: var(--ink-soft);
  max-width: 38rem;
}

.feature-points {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.feature-points li {
  position: relative;
  padding-left: 1.05rem;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.45;
}

.feature-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 1px;
  background: var(--cobalt);
}

.product-panel-cta {
  margin-top: 0.55rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--cobalt);
}

.product-panel:hover .product-panel-cta {
  color: var(--cobalt-deep);
}

.product-panel-media {
  min-width: 0;
}

@media (min-width: 900px) {
  .product-panel {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: 1.75rem;
    padding: 1.5rem 1.5rem 1.5rem 1.65rem;
  }

  .product-panel--flip {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  }

  .product-panel--flip .product-panel-media {
    order: -1;
  }
}

/* Device / window frame */

.device {
  background: linear-gradient(180deg, #1a2833, #0d171f);
  border: 1px solid #2a3a48;
  border-radius: 8px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    var(--shadow);
  overflow: hidden;
}

.device-chrome {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.1rem;
  padding: 0.55rem 0.85rem;
  background: linear-gradient(180deg, #243442, #1a2630);
  border-bottom: 1px solid rgba(0, 0, 0, 0.35);
}

.device-dots {
  display: inline-flex;
  gap: 0.35rem;
}

.device-dots i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #5a6d7a;
  display: block;
}

.device-dots i:nth-child(1) {
  background: #7a8b97;
}

.device-title {
  margin: 0;
  color: #c5d2db;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.device-screen {
  background: #0a1218;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.device-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 28% 0;
}

/* Per-product framing: bias past dark nav rails toward content panes */
.device-screen img.device-shot--hr {
  object-position: 32% 0;
}

.device-screen img.device-shot--cad {
  object-position: 38% 0;
}

.device-screen img.device-shot--csdb {
  object-position: 42% 0;
}

.device-screen img.device-shot--xml {
  object-position: 35% 0;
}

.device--tall .device-screen {
  aspect-ratio: 16 / 11;
}

.product-page-hero {
  display: grid;
  gap: 1.5rem;
  padding: clamp(2.2rem, 5vw, 3.75rem) 0 0.5rem;
}

@media (min-width: 900px) {
  .product-page-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    align-items: center;
    gap: 2rem;
  }

  .product-page-hero--media-first {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  }

  .product-page-hero--media-first .product-page-copy {
    order: 1;
  }
}

.product-page-copy .lede {
  max-width: 34rem;
}

.home-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 clamp(2.5rem, 6vw, 4rem);
  padding: 1.5rem 1.4rem;
  background:
    linear-gradient(120deg, rgba(26, 79, 140, 0.08), transparent 55%),
    var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.home-contact p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 28rem;
}

.home-contact a {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

/* Product pages */

.callout {
  margin: 1.5rem 0 0;
  max-width: 46rem;
  padding: 1.25rem 1.25rem;
  background:
    linear-gradient(180deg, rgba(26, 79, 140, 0.05), transparent),
    var(--paper-deep);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.callout p {
  margin: 0;
  max-width: 38rem;
  font-family: var(--display);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.75rem;
  align-items: flex-start;
  margin-top: 1.6rem;
}

.action p,
.help {
  margin: 0.5rem 0 0;
  max-width: 36rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 2.9rem;
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s var(--ease-out);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--cobalt);
  color: #fff;
  border-color: var(--cobalt);
  box-shadow: 0 8px 20px rgba(6, 16, 24, 0.18);
}

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

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: #fff;
}

a[data-todo] {
  cursor: not-allowed;
}

.todo-badge {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  padding: 0.28rem 0.4rem;
  border: 1px solid currentColor;
  border-radius: var(--radius);
}

.btn-primary .todo-badge {
  color: inherit;
}

.btn-ghost .todo-badge {
  color: var(--stamp);
  border-color: var(--stamp);
}

.feature-list {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  max-width: 70ch;
  border-top: 1px solid var(--ink);
}

.feature-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.price-line {
  margin: 1.6rem 0 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
}

.shot {
  margin: 1.5rem 0 0;
}

.shot-frame {
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 0.65rem;
  overflow-x: auto;
  overflow-y: hidden;
  box-shadow: var(--shadow);
}

.shot-frame img {
  display: block;
  width: 100%;
  min-width: 0;
  height: auto;
}

.shot-frame--video {
  display: flex;
  justify-content: center;
  overflow: hidden;
  background: var(--media-ink);
}

.shot-frame--video video {
  display: block;
  width: min(100%, 26rem);
  max-height: min(70vh, 42rem);
  height: auto;
  background: var(--media-ink);
}

.shot-frame--logo {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 1.75rem 1.5rem;
  background: var(--surface);
}

.shot-frame--logo .product-wordmark {
  width: min(100%, 22rem);
  min-width: 0;
  height: auto;
}

.shot figcaption {
  margin-top: 0.65rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.legal-pointer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  align-items: baseline;
  margin-top: 1.75rem;
  color: var(--ink-soft);
}

.legal-pointer a {
  font-weight: 600;
}

.email-display {
  margin: 1.35rem 0 0;
  font-size: clamp(1.7rem, 4vw, 2.75rem);
  line-height: 1.15;
}

.email-display a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
}

.contact-note {
  margin-top: 1rem;
  max-width: 36rem;
  color: var(--ink-soft);
}

.contact-shell {
  margin-top: 1.5rem;
  padding: 1.5rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  max-width: 42rem;
}

/* Legal */

.draft-banner {
  background: var(--draft);
  color: var(--draft-ink);
  text-align: center;
  padding: 0.95rem 1.25rem;
  border-bottom: 1px solid var(--draft-edge);
}

.draft-banner p {
  margin: 0.12rem auto;
  max-width: 46rem;
}

.draft-banner-title {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.prose {
  max-width: 70ch;
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

.prose h2 {
  margin: 2.4rem 0 0.7rem;
  font-size: clamp(1.45rem, 2.4vw, 1.8rem);
  line-height: 1.35;
}

.prose h3 {
  margin: 1.45rem 0 0.4rem;
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0;
}

.prose p,
.prose li {
  font-size: 1.05rem;
}

.prose p {
  margin: 0.7rem 0 0;
}

.prose ul,
.prose ol {
  margin: 0.7rem 0 0;
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.35rem;
}

.prose .lede {
  color: var(--ink);
  font-size: 1.12rem;
}

.note-box {
  margin: 1.1rem 0 0;
  padding: 0.95rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.toc {
  margin: 1.25rem 0 0;
  padding: 0.9rem 1rem 1rem 1.6rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.toc li {
  margin: 0.2rem 0;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 0.8rem;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.8rem 0.6rem 0;
  border-bottom: 1px solid var(--line);
}

.prose th {
  font-weight: 600;
}

.prose a {
  overflow-wrap: anywhere;
}

.prose code {
  font-family: ui-monospace, "Source Code Pro", monospace;
  font-size: 0.88em;
  overflow-wrap: anywhere;
}

.removed {
  margin-top: 0.8rem;
  padding-left: 1rem;
  border-left: 1px solid var(--line);
  color: var(--ink-soft);
}

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

  .sheet-enter,
  .hero-copy {
    animation: none;
  }

  .btn,
  .product-panel {
    transition: none;
  }

  .product-panel:hover {
    transform: none;
  }

  .btn:active {
    transform: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .skip,
  .lang {
    display: none;
  }

  body {
    background: #fff;
    color: var(--ink);
    display: block;
  }

  .hero-band {
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--ink);
  }

  .brand-hero,
  .hero-lede {
    color: var(--ink);
  }

  .draft-banner {
    background: #fff;
    color: var(--ink);
    border: 2px solid var(--ink);
  }

  a {
    color: var(--ink);
  }

  .product-panel,
  .device,
  .shot-frame,
  .note-box,
  .callout,
  .home-contact,
  .contact-shell {
    box-shadow: none;
  }

  .shot-frame--video video {
    max-height: none;
  }
}

/* Cookie consent banner (PostHog analytics) */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: #0a1c28;
  color: #eef2f5;
  border-top: 1px solid rgba(238, 242, 245, 0.18);
  padding: 0.9rem 1rem;
}

.cookie-banner__inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
}

.cookie-banner__copy {
  flex: 1 1 18rem;
  min-width: 0;
}

.cookie-banner__title {
  margin: 0 0 0.25rem;
  font-family: var(--display, "Radio Canada", sans-serif);
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: #fff;
}

.cookie-banner__body {
  margin: 0;
  font-family: var(--sans, "Source Sans 3", sans-serif);
  font-size: 0.88rem;
  line-height: 1.4;
  color: rgba(238, 242, 245, 0.88);
  max-width: 52ch;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.cookie-banner__btn {
  appearance: none;
  font-family: var(--sans, "Source Sans 3", sans-serif);
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.2;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius, 2px);
  border: 1px solid transparent;
  cursor: pointer;
}

.cookie-banner__btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.cookie-banner__btn--accept {
  background: #1a4f8c;
  color: #fff;
  border-color: #1a4f8c;
}

.cookie-banner__btn--accept:hover {
  background: #2463ad;
  border-color: #2463ad;
}

.cookie-banner__btn--decline {
  background: transparent;
  color: #eef2f5;
  border-color: rgba(238, 242, 245, 0.45);
}

.cookie-banner__btn--decline:hover {
  border-color: #fff;
  color: #fff;
}

@media (max-width: 40rem) {
  .cookie-banner {
    padding: 0.85rem 0.85rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
  }

  .cookie-banner__actions {
    width: 100%;
  }

  .cookie-banner__btn {
    flex: 1 1 auto;
    text-align: center;
  }
}
