/* ==========================================================================
   Hexert — design system
   --------------------------------------------------------------------------
   1.  Fonts (self-hosted variable woff2)
   2.  Design tokens (light + dark themes)
   3.  Reset & base
   4.  Typography helpers, container, sections
   5.  Buttons
   6.  Header & navigation
   7.  Footer
   8.  Hero
   9.  Statement band (home intro)
   10. Feature tabs + code editor
   11. CTA band
   12. Steps grid
   13. Testimonials
   14. Accordion
   15. Prose (rich text)
   16. Services: vertical tabs
   17. Segmented tabs
   18. Multi-column cards
   19. Metrics
   20. Story (picture) split
   21. Contact page
   22. Policy pages
   23. Error pages
   24. Consent banner
   25. Reveal animations
   26. Utilities
   ========================================================================== */

/* 1. Fonts ---------------------------------------------------------------- */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin.65850a373e25.woff2") format("woff2");
  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;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.01ba6c2a184b.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/space-grotesk-latin.25ea4a783c12.woff2") format("woff2");
  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;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/space-grotesk-latin-ext.dea099b7d5a5.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin.570751c5f8b4.woff2") format("woff2");
  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;
}

/* 2. Design tokens --------------------------------------------------------- */

:root {
  color-scheme: light;

  /* Surfaces */
  --bg: #f7f8f4;
  --surface: #ffffff;
  --surface-2: #eef0e9;
  --border: #e3e6dc;
  --border-strong: #c9cec0;

  /* Text */
  --text: #171a1c;
  --text-muted: #545c63;
  --text-faint: #6b7178;

  /* Brand accent (lime) */
  --accent: #b8e325;
  --accent-hover: #a9d31c;
  --accent-contrast: #131600;
  --accent-text: #52680d;
  --accent-glow: rgba(163, 205, 24, 0.28);
  --ring: #7c9a16;

  --error: #d92d20;

  /* Ink panels — always dark, both themes (code editor, CTA band) */
  --ink: #0e1116;
  --ink-2: #151a21;
  --ink-border: rgba(255, 255, 255, 0.08);
  --ink-text: #f0f2ed;
  --ink-muted: #9aa4ae;

  /* Decorative honeycomb grid */
  --hex-grid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='rgba(23,26,28,0.08)' stroke-width='1'/%3E%3Cpath d='M28 0L28 34L0 50L0 84L28 100L56 84L56 50' fill='none' stroke='rgba(23,26,28,0.08)' stroke-width='1'/%3E%3C/svg%3E");
  --hex-grid-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='rgba(255,255,255,0.06)' stroke-width='1'/%3E%3Cpath d='M28 0L28 34L0 50L0 84L28 100L56 84L56 50' fill='none' stroke='rgba(255,255,255,0.06)' stroke-width='1'/%3E%3C/svg%3E");

  /* Type */
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  --font-display: "Space Grotesk", var(--font-body);
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --container: 74rem;
  --header-h: 4.5rem;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(18, 22, 12, 0.05);
  --shadow-md: 0 8px 28px -8px rgba(18, 22, 12, 0.12);
  --shadow-lg: 0 24px 60px -16px rgba(18, 22, 12, 0.22);

  --header-bg: rgba(247, 248, 244, 0.82);
}

[data-theme="dark"] {
  color-scheme: dark;

  --bg: #0c0e10;
  --surface: #14171a;
  --surface-2: #1c2025;
  --border: #262b30;
  --border-strong: #3c434a;

  --text: #eef1ea;
  --text-muted: #a4abb2;
  --text-faint: #79818a;

  --accent: #d3f24b;
  --accent-hover: #dff76c;
  --accent-contrast: #151800;
  --accent-text: #ccec55;
  --accent-glow: rgba(211, 242, 75, 0.18);
  --ring: #a9c93a;

  --error: #f97066;

  --ink: #101318;
  --ink-2: #171c22;

  --hex-grid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='rgba(238,241,234,0.06)' stroke-width='1'/%3E%3Cpath d='M28 0L28 34L0 50L0 84L28 100L56 84L56 50' fill='none' stroke='rgba(238,241,234,0.06)' stroke-width='1'/%3E%3C/svg%3E");

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 28px -8px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 24px 60px -16px rgba(0, 0, 0, 0.65);

  --header-bg: rgba(12, 14, 16, 0.78);
}

/* 3. Reset & base ----------------------------------------------------------- */

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

* {
  margin: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* Width-constrained images keep their aspect ratio even when width/height
   attributes are present (those attributes reserve space to avoid layout
   shift, but must not fix the rendered height). Class rules that set an
   explicit height (avatars, icons, logo) override this. */
img {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

::selection {
  background: var(--accent);
  color: var(--accent-contrast);
}

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

html.nav-open,
html.nav-open body {
  overflow: hidden;
}

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

/* 4. Typography helpers, container, sections -------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}

.container--narrow {
  max-width: 50rem;
}

.section {
  padding-block: clamp(4rem, 8vw, 6.75rem);
}

.section--tight {
  padding-block: clamp(2.75rem, 5vw, 4.5rem);
}

.section-header {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-header--center {
  margin-inline: auto;
  text-align: center;
}

.section-header--row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.section-header--row > div {
  max-width: 46rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 1.125rem;
}

.eyebrow svg {
  width: 0.75rem;
  height: 0.75rem;
  flex: none;
}

.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.section-lead {
  margin-top: 1.125rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-muted);
  text-wrap: pretty;
}

.page-header {
  padding-block: calc(var(--header-h) + clamp(3.5rem, 8vw, 6rem))
    clamp(2.5rem, 5vw, 4rem);
}

.page-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  letter-spacing: -0.03em;
  text-wrap: balance;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease,
    color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn svg {
  width: 1em;
  height: 1em;
  transition: transform 0.2s ease;
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-contrast);
}

.btn--primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 20px -6px var(--accent-glow);
}

.btn--ghost {
  border-color: var(--border-strong);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--text-faint);
  background: var(--surface);
}

.btn--lg {
  font-size: 1rem;
  padding: 1.0625rem 1.875rem;
}

.btn--sm {
  font-size: 0.875rem;
  padding: 0.625rem 1.125rem;
}

/* Ghost button on ink panels */
.btn--ink-ghost {
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--ink-text);
}

.btn--ink-ghost:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
}

/* 6. Header & navigation ------------------------------------------------------ */

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}

.skip-link:focus-visible {
  transform: none;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.brand img {
  height: 1.625rem;
  width: auto;
}

[data-theme="dark"] .brand img,
[data-theme="dark"] .footer-brand img {
  filter: invert(1);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0.875rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link.is-active {
  color: var(--text);
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0.875rem;
  right: 0.875rem;
  bottom: 0.125rem;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.nav-cta {
  margin-left: 0.75rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.theme-toggle:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface);
}

.theme-toggle svg {
  width: 1.125rem;
  height: 1.125rem;
}

.theme-toggle .icon-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

.nav-burger {
  display: none;
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.nav-burger span {
  position: absolute;
  left: 0.625rem;
  right: 0.625rem;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}

.nav-burger span:nth-child(1) {
  top: 0.8125rem;
}

.nav-burger span:nth-child(2) {
  top: 1.1875rem;
}

.nav-burger span:nth-child(3) {
  top: 1.5625rem;
}

.nav-burger[aria-expanded="true"] span:nth-child(1) {
  top: 1.1875rem;
  transform: rotate(45deg);
}

.nav-burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-burger[aria-expanded="true"] span:nth-child(3) {
  top: 1.1875rem;
  transform: rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 90;
  background: var(--bg);
  padding: clamp(1.5rem, 5vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-0.5rem);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  overflow-y: auto;
}

.mobile-nav.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
}

.mobile-nav .nav-link {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 6vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}

.mobile-nav .nav-link.is-active {
  color: var(--accent-text);
}

.mobile-nav .nav-link.is-active::after {
  content: none;
}

.mobile-nav .nav-cta {
  margin: 1.75rem 0 0;
  align-self: flex-start;
}

@media (max-width: 56.25em) {
  .site-nav {
    display: none;
  }
  .nav-burger {
    display: inline-flex;
  }
}

@media (min-width: 56.3125em) {
  .mobile-nav {
    display: none;
  }
}

/* 7. Footer -------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
}

.footer-brand img {
  height: 1.5rem;
  width: auto;
}

.footer-tagline {
  margin-top: 1.125rem;
  max-width: 20rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1.125rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
  width: fit-content;
}

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

.footer-links svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-faint);
}

@media (max-width: 56.25em) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid > .footer-col--brand {
    grid-column: 1 / -1;
  }
}

/* 8. Hero ------------------------------------------------------------------------ */

.hero {
  position: relative;
  padding-block: calc(var(--header-h) + clamp(4.5rem, 11vh, 8rem))
    clamp(4rem, 10vh, 7rem);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hex-grid);
  background-size: 56px 100px;
  -webkit-mask-image: radial-gradient(
    75rem 40rem at 50% -5rem,
    rgba(0, 0, 0, 0.9),
    transparent 70%
  );
  mask-image: radial-gradient(
    75rem 40rem at 50% -5rem,
    rgba(0, 0, 0, 0.9),
    transparent 70%
  );
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: -14rem;
  left: 50%;
  transform: translateX(-50%);
  width: 52rem;
  height: 26rem;
  background: radial-gradient(closest-side, var(--accent-glow), transparent);
  filter: blur(40px);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-title {
  font-size: clamp(2.5rem, 6.2vw, 4.75rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.04;
  text-wrap: balance;
  max-width: 60rem;
  margin-inline: auto;
}

.hero-lead {
  margin: 1.5rem auto 0;
  max-width: 42rem;
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  line-height: 1.7;
  color: var(--text-muted);
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 0.875rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

/* Interior page hero */
.hero--page {
  padding-block: calc(var(--header-h) + clamp(3.5rem, 9vh, 6rem))
    clamp(2.5rem, 6vh, 4.5rem);
}

.hero--page .hero-title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
}

/* 9. Statement band (home intro) --------------------------------------------------- */

.statement {
  border-block: 1px solid var(--border);
  background: var(--surface);
}

.statement-inner {
  max-width: 54rem;
  padding-block: clamp(3rem, 6vw, 4.75rem);
}

.statement-mark {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--accent-text);
  display: block;
  margin-bottom: 1rem;
}

.statement p {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.4vw, 1.9rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}

/* 10. Feature tabs + code editor ---------------------------------------------------- */

.feature-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.feature-split--flip .feature-aside {
  order: 2;
}

.feature-tabs {
  display: flex;
  flex-direction: column;
  margin-top: 2rem;
}

.feature-tab {
  text-align: left;
  padding: 1.25rem 1.375rem;
  border-left: 2px solid var(--border);
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.feature-tab-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.feature-tab-sub {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.9063rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.feature-tab[aria-selected="true"] {
  border-left-color: var(--accent);
  background: linear-gradient(90deg, var(--accent-glow), transparent 65%);
}

.feature-tab:hover:not([aria-selected="true"]) {
  border-left-color: var(--border-strong);
}

/* Code editor panel — deliberately dark in both themes */
.editor {
  background: var(--ink);
  border: 1px solid var(--ink-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.editor-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--ink-border);
}

.editor-dot {
  width: 0.6875rem;
  height: 0.6875rem;
  border-radius: 50%;
  flex: none;
}

.editor-dot--r {
  background: #ff5f57;
}

.editor-dot--y {
  background: #febc2e;
}

.editor-dot--g {
  background: #28c840;
}

.editor-name {
  margin-inline: auto;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink-muted);
  transform: translateX(-1.25rem);
}

.editor-body {
  padding: 1.5rem clamp(1rem, 2.5vw, 1.75rem);
  min-height: 23rem;
  display: grid;
}

.editor-code {
  display: none;
  counter-reset: line;
  grid-area: 1 / 1;
  white-space: normal;
  margin: 0;
}

.editor-code.is-active {
  display: block;
}

/* Panel switch animation only after the user interacts with a tab group,
   so nothing replays on page load (or in full-page captures) */
.is-armed .editor-code.is-active {
  animation: editor-fade 0.35s ease;
}

@keyframes editor-fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.editor-code code {
  position: relative;
  display: block;
  padding-left: 3.25ch;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.9;
  color: #c3cdd7;
  white-space: pre-wrap;
  counter-increment: line;
}

.editor-code code::before {
  content: counter(line, decimal-leading-zero);
  position: absolute;
  left: 0;
  color: rgba(255, 255, 255, 0.22);
  font-size: 0.75rem;
}

.editor-code code:empty {
  display: none;
}

.editor-code code:first-child {
  color: var(--accent);
}

.editor-code code:last-child::after {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  margin-left: 0.35ch;
  vertical-align: text-bottom;
  background: var(--accent);
  animation: caret-blink 1.1s steps(2, start) infinite;
}

@keyframes caret-blink {
  to {
    visibility: hidden;
  }
}

@media (max-width: 56.25em) {
  .feature-split {
    grid-template-columns: minmax(0, 1fr);
  }
  .feature-split--flip .feature-aside {
    order: 0;
  }
  .editor-body {
    min-height: 0;
  }
  .editor-code {
    min-height: 18rem;
  }
}

/* 11. CTA band ----------------------------------------------------------------------- */

.cta-band {
  position: relative;
  background: var(--ink);
  color: var(--ink-text);
  border-radius: var(--radius-lg);
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hex-grid-ink);
  background-size: 56px 100px;
  -webkit-mask-image: radial-gradient(
    50rem 30rem at 50% 110%,
    rgba(0, 0, 0, 0.9),
    transparent 75%
  );
  mask-image: radial-gradient(
    50rem 30rem at 50% 110%,
    rgba(0, 0, 0, 0.9),
    transparent 75%
  );
  pointer-events: none;
}

.cta-band::after {
  content: "";
  position: absolute;
  bottom: -12rem;
  left: 50%;
  transform: translateX(-50%);
  width: 44rem;
  height: 20rem;
  background: radial-gradient(
    closest-side,
    rgba(184, 227, 37, 0.22),
    transparent
  );
  filter: blur(30px);
  pointer-events: none;
}

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

.cta-title {
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  letter-spacing: -0.025em;
  text-wrap: balance;
  max-width: 40rem;
  margin-inline: auto;
}

.cta-text {
  margin: 1.125rem auto 0;
  max-width: 36rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-muted);
}

.cta-band .btn {
  margin-top: 2.25rem;
}

.cta-band .btn--primary {
  background: #b8e325;
  color: #131600;
}

.cta-band .btn--primary:hover {
  background: #c8ef43;
}

/* 12. Steps grid ------------------------------------------------------------------------ */

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

.step-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.step-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent-text);
  margin-bottom: 1.375rem;
}

.step-card h3 {
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.step-card p {
  margin-top: 0.5rem;
  font-size: 0.9063rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.step-card::after {
  content: attr(data-num);
  position: absolute;
  right: 0.75rem;
  bottom: -1.25rem;
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  opacity: 0.05;
  pointer-events: none;
}

@media (max-width: 56.25em) {
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 36em) {
  .steps-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 13. Testimonials ------------------------------------------------------------------------- */

.quotes {
  columns: 3 18rem;
  column-gap: 1.25rem;
}

.quote-card {
  break-inside: avoid;
  margin-bottom: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}

.quote-card svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.quote-text {
  font-size: 0.9688rem;
  line-height: 1.7;
  text-wrap: pretty;
}

.quote-text p {
  margin: 0;
}

.quote-text p + p {
  margin-top: 0.75em;
}

.quote-person {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-top: 1.5rem;
}

.quote-person img {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  object-fit: cover;
}

.quote-name {
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.3;
}

.quote-role {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* 14. Accordion --------------------------------------------------------------------------- */

.accordion {
  border-top: 1px solid var(--border);
}

.accordion-item {
  border-bottom: 1px solid var(--border);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: baseline;
  gap: 1.125rem;
  padding: 1.375rem 0.25rem;
  text-align: left;
}

.accordion-num {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent-text);
  flex: none;
}

.accordion-trigger .accordion-label {
  flex: 1;
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.accordion-icon {
  position: relative;
  flex: none;
  width: 1.375rem;
  height: 1.375rem;
  align-self: center;
  color: var(--text-muted);
}

.accordion-icon::before,
.accordion-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.875rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease;
}

.accordion-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.accordion-item.is-open .accordion-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.accordion-item.is-open .accordion-trigger .accordion-label {
  color: var(--accent-text);
}

.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-item.is-open .accordion-panel {
  grid-template-rows: 1fr;
}

.accordion-panel-inner {
  overflow: hidden;
  visibility: hidden;
  transition: visibility 0.35s;
}

.accordion-item.is-open .accordion-panel-inner {
  visibility: visible;
  transition-delay: 0s;
}

.accordion-panel-inner > .prose {
  padding: 0.25rem 0.25rem 1.75rem;
  max-width: 46rem;
}

/* 15. Prose (rich text) ---------------------------------------------------------------------- */

.prose {
  font-size: 0.9688rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.prose p + p,
.prose p + ul,
.prose ul + p,
.prose p + h3,
.prose p + h4 {
  margin-top: 0.875em;
}

.prose b,
.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose h3,
.prose h4 {
  color: var(--text);
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.prose a {
  color: var(--accent-text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--text);
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.prose li::marker {
  color: var(--accent-text);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin-block: 1rem;
}

.prose th,
.prose td {
  border: 1px solid var(--border);
  padding: 0.625rem 0.875rem;
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600;
}

.prose tr:nth-child(even) td {
  background: var(--surface);
}

.table-scroll {
  overflow-x: auto;
}

/* 16. Services: vertical tabs ------------------------------------------------------------------- */

.svc-layout {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.svc-nav {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.svc-tab {
  text-align: left;
  padding: 0.8125rem 1.125rem;
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.svc-tab:hover {
  color: var(--text);
  background: var(--surface);
}

.svc-tab[aria-selected="true"] {
  color: var(--text);
  background: var(--surface);
  border-left-color: var(--accent);
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  box-shadow: var(--shadow-sm);
}

.svc-panel {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
}

.svc-panel.is-active {
  display: block;
}

.is-armed .svc-panel.is-active {
  animation: editor-fade 0.3s ease;
}

.svc-panel h3 {
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checklist li {
  position: relative;
  padding-left: 2rem;
  font-size: 0.9375rem;
  color: var(--text);
}

.checklist li p {
  margin: 0;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 6px;
  background-color: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2 3 7v10l9 5 9-5V7l-9-5zm-1.2 13.6-3.6-3.6 1.4-1.4 2.2 2.2 4.6-4.6 1.4 1.4-6 6z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2 3 7v10l9 5 9-5V7l-9-5zm-1.2 13.6-3.6-3.6 1.4-1.4 2.2 2.2 4.6-4.6 1.4 1.4-6 6z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.svc-accordion {
  display: none;
}

@media (max-width: 56.25em) {
  .svc-layout {
    display: none;
  }
  .svc-accordion {
    display: block;
  }
}

/* 17. Segmented tabs ------------------------------------------------------------------------------ */

.seg-tabs {
  display: flex;
  justify-content: center;
  gap: 2px;
  padding: 4px;
  background: var(--surface-2);
  border-radius: 999px;
  width: fit-content;
  margin-inline: auto;
  max-width: 100%;
  overflow-x: auto;
}

.seg-tab {
  padding: 0.625rem 1.375rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.seg-tab:hover {
  color: var(--text);
}

.seg-tab[aria-selected="true"] {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.seg-panel {
  display: none;
  margin-top: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
}

.seg-panel.is-active {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
}

.is-armed .seg-panel.is-active {
  animation: editor-fade 0.3s ease;
}

.seg-panel-side h4 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

@media (max-width: 56.25em) {
  .seg-panel.is-active {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 18. Multi-column cards ----------------------------------------------------------------------------- */

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

.mc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.mc-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.mc-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  display: grid;
  place-items: center;
  margin-bottom: 1.375rem;
}

.mc-icon img {
  width: 1.625rem;
  height: 1.625rem;
  object-fit: contain;
  /* normalize arbitrary icon artwork to ink in the light theme */
  filter: grayscale(1) brightness(0.3);
}

[data-theme="dark"] .mc-icon img {
  /* keep original (brand-lime) artwork in the dark theme */
  filter: none;
}

[data-theme="dark"] .cu-step-icon img,
[data-theme="dark"] .form-status img {
  filter: invert(1) hue-rotate(180deg);
}

.mc-card h3 {
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 0.625rem;
}

@media (max-width: 56.25em) {
  .mc-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 19. Metrics --------------------------------------------------------------------------------------------- */

.metrics-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.metrics-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

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

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--accent-text);
}

.stat-label {
  margin-top: 0.625rem;
  font-size: 0.9063rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.stat-label p {
  margin: 0;
}

@media (max-width: 56.25em) {
  .metrics-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 30em) {
  .stats {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 20. Story (picture) split ---------------------------------------------------------------------------------- */

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.story-figure {
  position: relative;
}

.story-figure img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.story-figure::before {
  content: "";
  position: absolute;
  inset: auto -1.25rem -1.25rem auto;
  width: 60%;
  height: 60%;
  background-image: var(--hex-grid);
  background-size: 56px 100px;
  z-index: -1;
}

.story-body .section-title {
  margin-bottom: 1.25rem;
}

@media (max-width: 56.25em) {
  .story-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 21. Contact page ---------------------------------------------------------------------------------------------- */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.cu-steps {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
}

.cu-steps-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.5rem;
}

.cu-step {
  display: flex;
  align-items: flex-start;
  gap: 1.125rem;
  padding-block: 1.375rem;
}

.cu-step + .cu-step {
  border-top: 1px solid var(--border);
}

.cu-step-icon {
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  display: grid;
  place-items: center;
}

.cu-step-icon img {
  width: 1.375rem;
  height: 1.375rem;
  object-fit: contain;
}

.cu-step-text {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-muted);
  align-self: center;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  box-shadow: var(--shadow-md);
}

.form-field {
  margin-bottom: 1.25rem;
}

.form-field > label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-field input:not([type="checkbox"]),
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.8125rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: 0.9375rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:not([type="checkbox"]):focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

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

.form-field--checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
}

.form-field--checkbox input {
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.2rem;
  accent-color: var(--accent-text);
  flex: none;
}

.form-field--checkbox label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.form-field--error input,
.form-field--error textarea {
  border-color: var(--error);
}

.field-error-text {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  color: var(--error);
}

.form-card .btn {
  width: 100%;
  margin-top: 0.5rem;
}

.form-status {
  text-align: center;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 3vw, 2rem);
}

.form-status img {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: contain;
  margin: 0 auto 1.5rem;
}

.form-status h2 {
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  letter-spacing: -0.02em;
}

.form-status p {
  margin: 0.875rem auto 0;
  max-width: 28rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-muted);
}

@media (max-width: 56.25em) {
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 22. Policy pages ------------------------------------------------------------------------------------------------- */

.policy-meta {
  margin-top: 0.875rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* 23. Error pages ----------------------------------------------------------------------------------------------------- */

.error-hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 2rem;
}

.error-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hex-grid);
  background-size: 56px 100px;
  -webkit-mask-image: radial-gradient(
    40rem 30rem at 50% 50%,
    rgba(0, 0, 0, 0.9),
    transparent 70%
  );
  mask-image: radial-gradient(
    40rem 30rem at 50% 50%,
    rgba(0, 0, 0, 0.9),
    transparent 70%
  );
}

.error-inner {
  position: relative;
}

.error-code {
  font-family: var(--font-mono);
  font-size: clamp(5rem, 18vw, 9rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent-text);
}

.error-title {
  margin-top: 1rem;
  font-size: clamp(1.375rem, 3vw, 1.875rem);
}

.error-text {
  margin: 0.875rem auto 2rem;
  max-width: 26rem;
  color: var(--text-muted);
}

/* 24. Consent banner ---------------------------------------------------------------------------------------------------- */

.consent-banner {
  position: fixed;
  z-index: 150;
  right: 1.25rem;
  bottom: 1.25rem;
  width: min(26rem, calc(100vw - 2.5rem));
  max-height: calc(100vh - 2.5rem);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
}

.consent-banner h2 {
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

.consent-banner > p {
  margin-top: 0.625rem;
  font-size: 0.8438rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.consent-banner > p a {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1.125rem;
}

.consent-actions .btn {
  flex: 1;
}

.btn--text {
  flex: none !important;
  padding-inline: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.btn--text:hover {
  color: var(--text);
}

.consent-prefs {
  display: none;
  margin-top: 1.25rem;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

.consent-prefs.active {
  display: block;
}

.consent-prefs h2 {
  display: none;
}

.consent-prefs > p {
  font-size: 0.8438rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.consent-prefs > p a {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-category {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.875rem;
}

.cookie-category + .cookie-category {
  border-top: 1px solid var(--border);
}

.cookie-category-name {
  font-size: 0.875rem;
  font-weight: 600;
}

.cookie-category-desc {
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.switch {
  position: relative;
  flex: none;
  width: 2.5rem;
  height: 1.375rem;
  margin-top: 0.125rem;
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.switch-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--border-strong);
  transition: background-color 0.2s ease;
  pointer-events: none;
}

.switch-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(1.375rem - 4px);
  height: calc(1.375rem - 4px);
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.switch input:checked + .switch-track {
  background: var(--accent-text);
}

.switch input:checked + .switch-track::after {
  transform: translateX(1.125rem);
}

.switch input:disabled + .switch-track {
  opacity: 0.55;
}

.switch input:focus-visible + .switch-track {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.consent-prefs-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.125rem;
}

.consent-prefs-actions .btn {
  flex: 1;
}

@media (max-width: 30em) {
  .consent-banner {
    right: 0.75rem;
    bottom: 0.75rem;
    left: 0.75rem;
    width: auto;
  }
}

/* 25. Reveal animations -------------------------------------------------------------------------------------------------- */

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(1.125rem);
  transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--reveal-delay, 0) * 80ms);
}

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

@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* 25b. Print --------------------------------------------------------------------------------------------------------------------- */

@media print {
  .site-header,
  .mobile-nav,
  .site-footer,
  .consent-banner,
  .skip-link,
  .hero::before,
  .hero::after {
    display: none !important;
  }

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

  .accordion-panel {
    grid-template-rows: 1fr !important;
  }

  .accordion-panel-inner {
    visibility: visible !important;
  }

  .editor-code,
  .svc-panel,
  .seg-panel {
    display: block !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}

/* 26. Utilities --------------------------------------------------------------------------------------------------------------- */

.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;
}

.text-center {
  text-align: center;
}

.offset-header {
  padding-top: var(--header-h);
}

.pt-0 {
  padding-top: 0 !important;
}
