/* =============================================================================
   zola-silicon — design system
   -----------------------------------------------------------------------------
   Plain CSS, no build step, no external fonts or frameworks.
   Everything is driven by the custom properties in the first two blocks, so
   re-skinning the whole template means editing colours and nothing else.
   ========================================================================== */

/* -----------------------------------------------------------------------------
   1. Colour tokens — light theme (default)
   -------------------------------------------------------------------------- */
:root {
  color-scheme: light;

  --bg: #f7f8f5;           /* Porcelain */
  --bg-subtle: #edf0f1; /* Porcelain -> Mist Gray 40% */
  --surface: #ffffff;
  --surface-2: #f0f3f6;    /* white -> Mist Gray 45% */
  --surface-3: #e6ecef;    /* white -> Mist Gray 75% */
  --border: #dde5ea;        /* Mist Gray */
  --border-strong: #aab4ba; /* Mist Gray -> Graphite 30% */
  --text: #12212f;          /* Midnight Navy */
  --text-muted: #34414b;    /* Graphite */
  --text-subtle: #59656e;   /* Graphite -> Mist Gray 22% */
  --text-invert: #ffffff;

  --primary: #137c7a;       /* Secure Teal */
  --primary-hover: #136668; /* Secure Teal -> Midnight Navy 24% */
  --primary-contrast: #ffffff;
  --primary-soft: #d9e8e5;  /* Porcelain -> Secure Teal 13% */
  --primary-soft-text: #136164;

  --accent: #2a8797;        /* Signal Cyan -> Midnight Navy 38% */
  --accent-soft: #d1eeef;   /* Porcelain -> Signal Cyan 20% */
  --accent-text: #236a78;   /* Signal Cyan -> Midnight Navy 56% */

  --ring: rgba(19, 124, 122, 0.35);

  --shadow-xs: 0 1px 2px rgba(18, 33, 47, 0.05);
  --shadow-sm: 0 1px 2px rgba(18, 33, 47, 0.05), 0 4px 12px -4px rgba(18, 33, 47, 0.08);
  --shadow-md: 0 2px 4px rgba(18, 33, 47, 0.04), 0 12px 28px -8px rgba(18, 33, 47, 0.12);
  --shadow-lg: 0 4px 8px rgba(18, 33, 47, 0.04), 0 28px 56px -16px rgba(18, 33, 47, 0.16);

  --gradient-brand: linear-gradient(135deg, #137c7a 0%, #249da3 45%, #39c6d6 130%);
  --gradient-text: linear-gradient(100deg, #137c7a 0%, #1d8f9c 40%, #39c6d6 100%);
  --grid-line: rgba(18, 33, 47, 0.055);
  --header-bg: rgba(247, 248, 245, 0.82);
}

/* -----------------------------------------------------------------------------
   2. Colour tokens — dark theme
   Two ways in, so the choice survives both a stored preference and no-JS:
     a) explicit  <html data-theme="dark">
     b) implied    OS setting, when no explicit choice has been made
   -------------------------------------------------------------------------- */
:root[data-theme="dark"] {
  color-scheme: dark;

  --bg: #12212f;           /* Midnight Navy */
  --bg-subtle: #0f1b27;    /* Midnight Navy -> black 18% */
  --surface: #1d2b38;
  --surface-2: #263441;
  --surface-3: #323f4b;
  --border: #2b3845;
  --border-strong: #505b65;
  --text: #fafaf8;          /* Porcelain -> white 35% */
  --text-muted: #afbcc4;
  --text-subtle: #8595a1;
  --text-invert: #12212f;   /* Midnight Navy */

  --primary: #39c6d6;       /* Signal Cyan */
  --primary-hover: #70d6e1;
  --primary-contrast: #12212f;
  --primary-soft: #183a48;
  --primary-soft-text: #39c6d6;

  --accent: #509e9d;        /* Secure Teal -> white 26% */
  --accent-soft: #123a44;
  --accent-text: #89bebc;   /* Secure Teal -> white 50% */

  --ring: rgba(57, 198, 214, 0.5);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5), 0 4px 14px -4px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.4), 0 14px 32px -10px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 4px 10px rgba(0, 0, 0, 0.45), 0 32px 64px -20px rgba(0, 0, 0, 0.8);

  --gradient-brand: linear-gradient(135deg, #137c7a 0%, #28a5ad 45%, #39c6d6 130%);
  --gradient-text: linear-gradient(100deg, #39c6d6 0%, #7fe0e8 40%, #e8fbfd 100%);
  --grid-line: rgba(255, 255, 255, 0.05);
  --header-bg: rgba(18, 33, 47, 0.82);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  color-scheme: dark;

  --bg: #12212f;           /* Midnight Navy */
  --bg-subtle: #0f1b27;    /* Midnight Navy -> black 18% */
  --surface: #1d2b38;
  --surface-2: #263441;
  --surface-3: #323f4b;
  --border: #2b3845;
  --border-strong: #505b65;
  --text: #fafaf8;          /* Porcelain -> white 35% */
  --text-muted: #afbcc4;
  --text-subtle: #8595a1;
  --text-invert: #12212f;   /* Midnight Navy */

  --primary: #39c6d6;       /* Signal Cyan */
  --primary-hover: #70d6e1;
  --primary-contrast: #12212f;
  --primary-soft: #183a48;
  --primary-soft-text: #39c6d6;

  --accent: #509e9d;        /* Secure Teal -> white 26% */
  --accent-soft: #123a44;
  --accent-text: #89bebc;   /* Secure Teal -> white 50% */

  --ring: rgba(57, 198, 214, 0.5);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5), 0 4px 14px -4px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.4), 0 14px 32px -10px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 4px 10px rgba(0, 0, 0, 0.45), 0 32px 64px -20px rgba(0, 0, 0, 0.8);

  --gradient-brand: linear-gradient(135deg, #137c7a 0%, #28a5ad 45%, #39c6d6 130%);
  --gradient-text: linear-gradient(100deg, #39c6d6 0%, #7fe0e8 40%, #e8fbfd 100%);
  --grid-line: rgba(255, 255, 255, 0.05);
  --header-bg: rgba(18, 33, 47, 0.82);
}
}

/* -----------------------------------------------------------------------------
   3. Metrics — spacing, type, radii
   -------------------------------------------------------------------------- */
:root {
  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  /* Fluid type scale, clamped between phone and desktop widths */
  --step--1: clamp(0.8rem, 0.77rem + 0.15vw, 0.875rem);
  --step-0: clamp(0.95rem, 0.92rem + 0.18vw, 1.0625rem);
  --step-1: clamp(1.1rem, 1.04rem + 0.3vw, 1.3rem);
  --step-2: clamp(1.3rem, 1.19rem + 0.55vw, 1.7rem);
  --step-3: clamp(1.55rem, 1.34rem + 1.05vw, 2.3rem);
  --step-4: clamp(1.9rem, 1.52rem + 1.9vw, 3.1rem);
  --step-5: clamp(2.3rem, 1.7rem + 3vw, 4.2rem);

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --container: 74rem;
  --container-narrow: 46rem;
  --gutter: clamp(1.125rem, 0.9rem + 1.1vw, 2rem);
  --section-y: clamp(3.5rem, 2.6rem + 4.4vw, 7rem);
  --header-h: 4rem;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Disclosure chevron, drawn with a mask so it can inherit `currentColor` */
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

/* -----------------------------------------------------------------------------
   4. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

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

body {
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

/* Subtle blueprint grid, faded out at the top of the page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 70%);
}

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

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

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--primary-hover);
}

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

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

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin-block: 2.5rem;
}

/* -----------------------------------------------------------------------------
   5. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: var(--container-narrow);
}

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

.section--tight {
  padding-block: calc(var(--section-y) * 0.62);
}

.section--subtle {
  background: var(--bg-subtle);
  border-block: 1px solid var(--border);
}

.stack > * + * {
  margin-block-start: var(--stack-gap, 1rem);
}

.grid {
  display: grid;
  gap: var(--grid-gap, 1.5rem);
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr));
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--cluster-gap, 0.75rem);
  align-items: center;
}

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

.measure {
  max-width: 62ch;
}

.measure-tight {
  max-width: 48ch;
}

.mx-auto {
  margin-inline: auto;
}

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

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--primary-contrast);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.18s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
  color: var(--primary-contrast);
}

/* -----------------------------------------------------------------------------
   6. Typography helpers
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.021em;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-4);
  letter-spacing: -0.032em;
}

h2 {
  font-size: var(--step-3);
}

h3 {
  font-size: var(--step-2);
}

h4 {
  font-size: var(--step-1);
}

p {
  text-wrap: pretty;
}

.lead {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--text-muted);
  text-wrap: pretty;
}

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.subtle {
  color: var(--text-subtle);
  font-size: var(--step--1);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--primary-soft-text);
}

.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient-brand);
}

.section-head {
  max-width: 44rem;
  margin-inline: auto;
  margin-block-end: clamp(2rem, 1.4rem + 2.2vw, 3.25rem);
  text-align: center;
  display: grid;
  gap: 0.9rem;
  justify-items: center;
}

.section-head--left {
  margin-inline: 0;
  text-align: left;
  justify-items: start;
}

/* Optional intro paragraph under a section hero */
.section-intro {
  max-width: 58ch;
  margin-block-end: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  color: var(--text-muted);
  font-size: var(--step-1);
  line-height: 1.55;
  text-wrap: pretty;
}

.section-intro > * + * {
  margin-block-start: 0.9em;
}

/* -----------------------------------------------------------------------------
   7. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--text);
  --btn-border: var(--border-strong);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.3rem;
  min-height: 2.75rem;
  border: 1px solid var(--btn-border);
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.16s var(--ease-out), box-shadow 0.16s var(--ease),
    background-color 0.16s var(--ease), border-color 0.16s var(--ease),
    color 0.16s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
  color: var(--btn-fg);
}

.btn:active {
  transform: translateY(0);
}

.btn svg {
  width: 1.05em;
  height: 1.05em;
  flex: none;
}

.btn--primary {
  --btn-bg: var(--primary);
  --btn-fg: var(--primary-contrast);
  --btn-border: transparent;

  background: var(--gradient-brand);
  background-size: 160% 160%;
  background-position: 0% 50%;
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background-position: 100% 50%;
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  --btn-bg: var(--surface);
  --btn-border: var(--border-strong);
  box-shadow: var(--shadow-xs);
}

.btn--secondary:hover {
  --btn-border: var(--primary);
  --btn-fg: var(--primary);
  box-shadow: var(--shadow-sm);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-border: transparent;
  padding-inline: 0.85rem;
}

.btn--ghost:hover {
  --btn-bg: var(--surface-2);
}

.btn--lg {
  padding: 0.9rem 1.7rem;
  min-height: 3.15rem;
  font-size: var(--step-1);
}

.btn--sm {
  padding: 0.45rem 0.85rem;
  min-height: 2.25rem;
  font-size: var(--step--1);
}

.btn--block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.btn-row--center {
  justify-content: center;
}

/* Text link with a sliding arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  text-decoration: none;
}

.link-arrow svg {
  width: 1em;
  height: 1em;
  transition: transform 0.18s var(--ease-out);
}

.link-arrow:hover svg {
  transform: translateX(3px);
}

/* -----------------------------------------------------------------------------
   8. Badges
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text-muted);
  font-size: var(--step--1);
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
}

a.badge:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.badge--primary {
  background: var(--primary-soft);
  border-color: transparent;
  color: var(--primary-soft-text);
}

.badge--accent {
  background: var(--accent-soft);
  border-color: transparent;
  color: var(--accent-text);
}

.badge__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* -----------------------------------------------------------------------------
   9. Site header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.site-header[data-scrolled="true"] {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 20px -8px rgba(0, 0, 0, 0.25);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-inline-end: auto;
  color: var(--text);
  font-weight: 700;
  font-size: var(--step-1);
  letter-spacing: -0.028em;
  text-decoration: none;
  flex: none;
}

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

.site-logo__mark {
  width: 1.9rem;
  height: 1.9rem;
  flex: none;
}

/* A logo supplied via [extra.brand] logo. Sized to match the built-in mark so
   it sits correctly whether or not the theme's own text is shown next to it. */
.site-logo__mark--custom {
  width: auto;
  height: 1.9rem;
  max-width: 9rem;
  object-fit: contain;
}

.site-logo__suffix {
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-pill);
  background: var(--primary-soft);
  color: var(--primary-soft-text);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.site-nav {
  display: none;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: var(--step-0);
  font-weight: 550;
  text-decoration: none;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease);
}

.site-nav__link:hover {
  background: var(--surface-2);
  color: var(--text);
}

.site-nav__link[aria-current="page"] {
  background: var(--primary-soft);
  color: var(--primary-soft-text);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: none;
}

.header-cta {
  display: none;
}

/* Hamburger — only meaningful below the nav breakpoint */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease);
}

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

.nav-toggle__icon {
  position: relative;
  width: 1.05rem;
  height: 0.75rem;
}

.nav-toggle__icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.22s var(--ease-out), opacity 0.16s var(--ease),
    top 0.22s var(--ease-out);
}

.nav-toggle__icon span:nth-child(1) {
  top: 0;
}

.nav-toggle__icon span:nth-child(2) {
  top: calc(50% - 1px);
}

.nav-toggle__icon span:nth-child(3) {
  bottom: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(1) {
  top: calc(50% - 1px);
  transform: rotate(45deg);
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(3) {
  bottom: auto;
  top: calc(50% - 1px);
  transform: rotate(-45deg);
}

/* -----------------------------------------------------------------------------
   10. Theme toggle
   -------------------------------------------------------------------------- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease),
    border-color 0.15s var(--ease);
}

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

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

/* Which glyph is visible depends on the active theme. The `light`/`dark`
   pair is swapped by the data-theme attribute set in the inline head script. */
.theme-toggle__sun {
  display: none;
}

.theme-toggle__moon {
  display: block;
}

:root[data-theme="dark"] .theme-toggle__sun,
:root[data-theme="dark"] .theme-toggle__moon {
  display: none;
}

:root[data-theme="dark"] .theme-toggle__sun {
  display: block;
}

/* Same swap when the OS preference is what is in effect */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle__sun {
    display: none;
  }
  :root:not([data-theme="light"]) .theme-toggle__moon {
    display: block;
  }
}

:root[data-theme="light"] .theme-toggle__sun {
  display: block;
}

:root[data-theme="light"] .theme-toggle__moon {
  display: none;
}

/* -----------------------------------------------------------------------------
   11. Mobile navigation
   -------------------------------------------------------------------------- */
@media (max-width: 61.99em) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    padding: 0 var(--gutter) 1.25rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    /* Collapsed by default; JS flips [data-open] when the button is pressed. */
    display: none;
  }

  .site-nav[data-open="true"] {
    display: block;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
  }

  .site-nav__link {
    padding: 0.8rem 0.75rem;
    font-size: var(--step-1);
    border-radius: var(--radius-sm);
  }

  /* No JS: never trap the nav behind a dead button — show it as a plain list. */
  .no-js .site-nav {
    display: block;
    position: static;
    padding: 0;
    margin-inline: var(--gutter);
    background: none;
    border: 0;
    box-shadow: none;
  }

  .no-js .nav-toggle {
    display: none;
  }

  .no-js .site-nav__list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.5rem;
  }

  .no-js .site-nav__link {
    padding: 0.4rem 0.6rem;
    font-size: var(--step--1);
  }
}

@media (min-width: 62em) {
  .site-nav {
    display: block;
  }

  .nav-toggle {
    display: none;
  }

  .header-cta {
    display: inline-flex;
  }
}

/* -----------------------------------------------------------------------------
   12. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 2rem + 5vw, 6rem) clamp(3.5rem, 2.5rem + 5vw, 6.5rem);
}

.hero::before {
  content: "";
  position: absolute;
  top: -35%;
  left: 50%;
  width: min(120vw, 68rem);
  aspect-ratio: 1;
  translate: -50% 0;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--primary) 26%, transparent) 0%,
    transparent 62%
  );
  pointer-events: none;
  z-index: -1;
}

.hero__inner {
  display: grid;
  gap: clamp(2.5rem, 1.8rem + 3.5vw, 4rem);
  align-items: center;
}

@media (min-width: 62em) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  }
}

.hero__content {
  display: grid;
  gap: 1.35rem;
  justify-items: start;
}

.hero__title {
  font-size: var(--step-5);
  line-height: 1.03;
  letter-spacing: -0.038em;
}

.hero__text {
  font-size: var(--step-1);
  color: var(--text-muted);
  max-width: 34rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.75rem;
  padding-top: 0.5rem;
  color: var(--text-subtle);
  font-size: var(--step--1);
}

.hero__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero__meta-item svg {
  width: 1.05rem;
  height: 1.05rem;
  color: var(--accent);
  flex: none;
}

.hero__media {
  position: relative;
}

.hero__media img,
.hero__media svg {
  width: 100%;
  border-radius: var(--radius-lg);
}

/* Floating stat card over the hero artwork */
.hero__stat {
  position: absolute;
  left: 50%;
  bottom: -1rem;
  translate: -50% 0;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: min(100% - 2rem, 22rem);
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.hero__stat-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  color: var(--primary-soft-text);
}

.hero__stat-icon svg {
  width: 1.3rem;
  height: 1.3rem;
}

.hero__stat-title {
  font-size: var(--step-0);
  font-weight: 650;
  line-height: 1.25;
}

.hero__stat-sub {
  font-size: var(--step--1);
  color: var(--text-subtle);
}

/* -----------------------------------------------------------------------------
   13. Logo / social-proof strip
   -------------------------------------------------------------------------- */
.logos {
  display: grid;
  gap: 1.5rem;
  justify-items: center;
}

.logos__label {
  font-size: var(--step--1);
  color: var(--text-subtle);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.logos__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 1rem + 3vw, 3.25rem);
}

.logos__item {
  height: 1.6rem;
  opacity: 0.62;
  transition: opacity 0.18s var(--ease);
}

.logos__item:hover {
  opacity: 1;
}

/* -----------------------------------------------------------------------------
   14. Feature / product cards
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: clamp(1.35rem, 1.1rem + 0.7vw, 1.9rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.card--link {
  text-decoration: none;
  color: inherit;
}

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

/* Accent hairline that appears on hover */
.card--link::after {
  content: "";
  position: absolute;
  inset-inline: 1.4rem;
  top: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}

.card--link:hover::after {
  opacity: 1;
}

.card__icon {
  display: grid;
  place-items: center;
  width: 2.85rem;
  height: 2.85rem;
  flex: none;
  border-radius: var(--radius);
  background: var(--primary-soft);
  color: var(--primary-soft-text);
}

.card__icon svg {
  width: 1.45rem;
  height: 1.45rem;
}

.card__title {
  font-size: var(--step-1);
  letter-spacing: -0.018em;
}

.card__text {
  color: var(--text-muted);
  font-size: var(--step-0);
  flex: 1 1 auto;
}

.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.35rem;
  color: var(--primary);
  font-size: var(--step--1);
  font-weight: 650;
}

/* Numbered feature list (the "how it works" row) */
.steps {
  counter-reset: step;
  display: grid;
  gap: 1.5rem;
}

.step {
  display: grid;
  gap: 0.5rem;
  padding-top: 1.15rem;
  border-top: 2px solid var(--border);
  position: relative;
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.05em;
}

.step__title {
  font-size: var(--step-1);
  font-weight: 650;
  letter-spacing: -0.015em;
}

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

/* -----------------------------------------------------------------------------
   15. Split (image beside text)
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  gap: clamp(2rem, 1.4rem + 3vw, 4rem);
  align-items: center;
}

@media (min-width: 56em) {
  .split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split--flip > :first-child {
    order: 2;
  }
}

.split__media img,
.split__media svg {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}

.split__content {
  display: grid;
  gap: 1.1rem;
  justify-items: start;
}

.checklist {
  display: grid;
  gap: 0.7rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.checklist li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  color: var(--text-muted);
}

.checklist li svg {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.28em;
  color: var(--accent);
  flex: none;
}

/* -----------------------------------------------------------------------------
   16. FAQ accordion (native <details>, no JS required)
   -------------------------------------------------------------------------- */
.faq {
  display: grid;
  gap: 0.75rem;
  max-width: var(--container-narrow);
  margin-inline: auto;
}

.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.faq__item[open] {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.faq__item summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 1.25rem;
  font-size: var(--step-0);
  font-weight: 620;
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius);
}

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

.faq__item summary:hover {
  color: var(--primary);
}

.faq__item summary::after {
  content: "";
  width: 1.1rem;
  height: 1.1rem;
  margin-inline-start: auto;
  flex: none;
  background: currentColor;
  color: var(--text-subtle);
  transition: transform 0.22s var(--ease-out), color 0.18s var(--ease);
  -webkit-mask: var(--chevron) center / contain no-repeat;
  mask: var(--chevron) center / contain no-repeat;
}

.faq__item[open] summary::after {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq__answer {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-muted);
}

.faq__answer > * + * {
  margin-block-start: 0.85rem;
}

/* -----------------------------------------------------------------------------
   17. Newsletter
   -------------------------------------------------------------------------- */
.newsletter {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  padding: clamp(1.85rem, 1.4rem + 2.4vw, 3.5rem);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.newsletter::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
      70% 120% at 15% 0%,
      color-mix(in srgb, var(--primary) 16%, transparent),
      transparent 60%
    ),
    radial-gradient(
      70% 120% at 85% 100%,
      color-mix(in srgb, var(--accent) 14%, transparent),
      transparent 60%
    );
}

.newsletter > * {
  position: relative;
}

.newsletter__inner {
  display: grid;
  gap: 1.1rem;
  justify-items: center;
  max-width: 40rem;
  margin-inline: auto;
}

.newsletter__title {
  font-size: var(--step-3);
}

.newsletter__form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  width: 100%;
  max-width: 27rem;
}

.field {
  flex: 1 1 14rem;
  min-width: 0;
}

.input {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: var(--bg);
  color: var(--text);
  font-size: var(--step-0);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.input::placeholder {
  color: var(--text-subtle);
}

.input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--ring);
}

.newsletter__note {
  font-size: var(--step--1);
  color: var(--text-subtle);
}

/* -----------------------------------------------------------------------------
   18. Call to action band
   -------------------------------------------------------------------------- */
.cta-band {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  padding: clamp(1.85rem, 1.4rem + 2.4vw, 3.25rem);
  box-shadow: var(--shadow-sm);
}

.cta-band__inner {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 52em) {
  .cta-band__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2.5rem;
  }
}

/* -----------------------------------------------------------------------------
   19. Page hero (interior pages)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 2rem + 3.5vw, 4.5rem) clamp(2rem, 1.6rem + 2.6vw, 3.5rem);
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}

.page-hero__inner {
  display: grid;
  gap: 1rem;
  justify-items: start;
  max-width: 46rem;
}

.page-hero--center .page-hero__inner {
  justify-items: center;
  text-align: center;
  margin-inline: auto;
}

.page-hero__title {
  font-size: var(--step-4);
}

.page-hero__text {
  font-size: var(--step-1);
  color: var(--text-muted);
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding: 0;
  margin: 0 0 0.35rem;
  list-style: none;
  font-size: var(--step--1);
  color: var(--text-subtle);
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.breadcrumbs li + li::before {
  content: "/";
  color: var(--border-strong);
}

.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.breadcrumbs [aria-current="page"] {
  color: var(--text-subtle);
}

/* -----------------------------------------------------------------------------
   20. Prose — long-form content
   -------------------------------------------------------------------------- */
.prose {
  max-width: var(--container-narrow);
  margin-inline: auto;
  font-size: var(--step-0);
}

.prose > * + * {
  margin-block-start: 1.15em;
}

.prose h2 {
  margin-block-start: 2.4em;
  margin-block-end: 0.7em;
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}

.prose h3 {
  margin-block-start: 1.9em;
  margin-block-end: 0.6em;
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}

.prose h4 {
  margin-block-start: 1.6em;
  margin-block-end: 0.5em;
}

.prose > :first-child {
  margin-block-start: 0;
}

.prose ul,
.prose ol {
  padding-inline-start: 1.4rem;
}

.prose li + li {
  margin-block-start: 0.4em;
}

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

.prose strong {
  font-weight: 650;
  color: var(--text);
}

.prose a {
  font-weight: 550;
}

.prose img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.prose figure {
  margin-inline: 0;
}

.prose figcaption {
  margin-block-start: 0.6rem;
  color: var(--text-subtle);
  font-size: var(--step--1);
  text-align: center;
}

.prose blockquote {
  margin-inline: 0;
  padding: 0.35rem 0 0.35rem 1.35rem;
  border-inline-start: 3px solid var(--primary);
  color: var(--text-muted);
  font-size: var(--step-1);
  font-style: italic;
}

.prose blockquote p + p {
  margin-block-start: 0.7em;
}

.prose code {
  padding: 0.15em 0.4em;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 0.875em;
}

.prose pre {
  padding: 1.15rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.65;
}

.prose pre code {
  padding: 0;
  border: 0;
  background: none;
  font-size: inherit;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--step--1);
}

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

.prose th {
  background: var(--surface-2);
  font-weight: 650;
  white-space: nowrap;
}

.prose hr {
  margin-block: 2.5em;
}

/* Collapsible table wrapper so wide tables scroll instead of overflowing */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.table-scroll table {
  margin: 0;
}

/* -----------------------------------------------------------------------------
   20b. Callouts (the `callout` shortcode)
   -------------------------------------------------------------------------- */
.callout {
  margin-block: 1.75rem;
  padding: 1.15rem 1.35rem;
  border: 1px solid var(--border);
  border-inline-start: 3px solid var(--primary);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.callout__label {
  margin-block-end: 0.35rem;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-soft-text);
}

.callout__body > * + * {
  margin-block-start: 0.85rem;
}

.callout__body > *:first-child {
  margin-block-start: 0;
}

.callout--tip {
  border-inline-start-color: var(--accent);
}

.callout--tip .callout__label {
  color: var(--accent-text);
}

.callout--warning {
  border-inline-start-color: #f59e0b;
}

.callout--warning .callout__label {
  color: #b45309;
}

:root[data-theme="dark"] .callout--warning .callout__label {
  color: #fcd34d;
}

.callout--info {
  border-inline-start-color: var(--primary);
}

/* -----------------------------------------------------------------------------
   20c. Video (the `video` shortcode)
   -------------------------------------------------------------------------- */
.video {
  margin-block: 1.75rem;
}

.video video {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.video figcaption {
  margin-block-start: 0.6rem;
  color: var(--text-subtle);
  font-size: var(--step--1);
  text-align: center;
}

/* -----------------------------------------------------------------------------
   21. Blog
   -------------------------------------------------------------------------- */
.post-list {
  display: grid;
  gap: 1.25rem;
}

.latest-more {
  margin-block-start: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  justify-content: center;
}

.post-card {
  position: relative;
  display: grid;
  gap: 1.15rem;
  padding: clamp(1.35rem, 1.1rem + 0.8vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: inherit;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

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

@media (min-width: 44em) {
  .post-card {
    grid-template-columns: minmax(0, 1fr) 13rem;
    align-items: center;
  }

  .post-card--stacked {
    grid-template-columns: minmax(0, 1fr);
  }
}

.post-card__body {
  display: grid;
  gap: 0.6rem;
  justify-items: start;
}

.post-card__title {
  font-size: var(--step-2);
  letter-spacing: -0.022em;
  line-height: 1.2;
}

.post-card__title a {
  color: inherit;
  text-decoration: none;
}

/* Stretches the single title link over the whole card */
.post-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.post-card:hover .post-card__title a {
  color: var(--primary);
}

.post-card__excerpt {
  color: var(--text-muted);
}

.post-card__foot {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary);
  font-size: var(--step--1);
  font-weight: 650;
}

.post-card__foot svg {
  transition: transform 0.18s var(--ease-out);
}

.post-card:hover .post-card__foot svg {
  transform: translateX(3px);
}

.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
  font-size: var(--step--1);
  color: var(--text-subtle);
}

.post-card__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.post-card__meta-item svg {
  width: 0.95rem;
  height: 0.95rem;
  flex: none;
}

.post-card__thumb {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.post-card__thumb img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.post-header {
  display: grid;
  gap: 1rem;
  justify-items: start;
}

.post-header--center {
  justify-items: center;
  text-align: center;
  margin-inline: auto;
}

.post-cover {
  margin-block: 0 clamp(2rem, 1.5rem + 2vw, 3rem);
}

.post-cover img,
.post-cover svg {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  font-size: var(--step--1);
  color: var(--text-subtle);
}

.post-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.post-meta__item svg {
  width: 1rem;
  height: 1rem;
  flex: none;
}

/* Prev / next */
.post-nav {
  display: grid;
  gap: 0.85rem;
  margin-block-start: clamp(2.5rem, 2rem + 2vw, 4rem);
  padding-block-start: 2rem;
  border-top: 1px solid var(--border);
}

@media (min-width: 44em) {
  .post-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.post-nav__link {
  display: grid;
  gap: 0.3rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.post-nav__link:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  color: inherit;
}

.post-nav__link--next {
  text-align: right;
}

.post-nav__label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--step--1);
  color: var(--text-subtle);
}

.post-nav__link--next .post-nav__label {
  justify-content: flex-end;
}

.post-nav__title {
  font-weight: 620;
  color: var(--primary);
}

/* Pagination */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-block-start: clamp(2.25rem, 1.8rem + 1.8vw, 3.5rem);
}

.pagination a,
.pagination span {
  display: grid;
  place-items: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding-inline: 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-muted);
  font-size: var(--step--1);
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease),
    background-color 0.15s var(--ease);
}

.pagination a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pagination [aria-current="page"] {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-contrast);
}

.pagination .is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* -----------------------------------------------------------------------------
   22. Section listings (products / services)
   -------------------------------------------------------------------------- */
.entry-list {
  display: grid;
  gap: 1.25rem;
}

.entry {
  display: grid;
  gap: 1.15rem 1.75rem;
  padding: clamp(1.35rem, 1.15rem + 0.7vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.entry:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

@media (min-width: 56em) {
  .entry {
    grid-template-columns: 3.5rem minmax(0, 1fr);
  }
}

.entry__icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius);
  background: var(--primary-soft);
  color: var(--primary-soft-text);
}

.entry__icon svg {
  width: 1.7rem;
  height: 1.7rem;
}

.entry__body {
  display: grid;
  gap: 0.65rem;
  justify-items: start;
}

.entry__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.9rem;
}

.entry__title {
  font-size: var(--step-2);
  letter-spacing: -0.022em;
}

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

.entry__title a:hover {
  color: var(--primary);
}

.entry__text {
  color: var(--text-muted);
  max-width: 58ch;
}

/* Price / meta strip on product entries */
.entry__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.entry__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-top: 0.35rem;
}

/* -----------------------------------------------------------------------------
   23. Contact
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  gap: clamp(1.5rem, 1.2rem + 2vw, 2.5rem);
  align-items: start;
}

@media (min-width: 58em) {
  .contact-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
}

.contact-list {
  display: grid;
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.contact-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
}

.contact-list__icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--primary);
}

.contact-list__icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.contact-list__label {
  font-size: var(--step--1);
  color: var(--text-subtle);
}

.contact-list__value {
  font-weight: 550;
  overflow-wrap: anywhere;
}

.contact-list__value a {
  color: var(--text);
  text-decoration: none;
}

.contact-list__value a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.contact-aside__title {
  font-size: var(--step-1);
  letter-spacing: -0.018em;
}

.contact-aside__actions {
  padding-top: 0.35rem;
}

.contact-aside {
  display: grid;
  gap: 1.35rem;
  padding: clamp(1.35rem, 1.1rem + 0.9vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

/* -----------------------------------------------------------------------------
   24. 404
   -------------------------------------------------------------------------- */
.error-page {
  display: grid;
  place-items: center;
  min-height: 68vh;
  padding-block: var(--section-y);
  text-align: center;
}

.error-page__inner {
  display: grid;
  gap: 1.15rem;
  justify-items: center;
  max-width: 34rem;
}

.error-page__code {
  font-family: var(--font-mono);
  font-size: clamp(4rem, 2.6rem + 7vw, 7rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* -----------------------------------------------------------------------------
   25. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  margin-block-start: var(--section-y);
  padding-block: clamp(2.5rem, 2rem + 2.5vw, 4rem) 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
}

.site-footer__top {
  display: grid;
  gap: 2.25rem;
  padding-block-end: 2.25rem;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 52em) {
  .site-footer__top {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 2fr);
    gap: 3rem;
  }
}

.site-footer__brand {
  display: grid;
  gap: 0.9rem;
  justify-items: start;
  max-width: 26rem;
}

.site-footer__blurb {
  color: var(--text-muted);
  font-size: var(--step--1);
}

.footer-links {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
}

.footer-links__heading {
  font-size: var(--step--1);
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-block-end: 0.75rem;
}

.footer-links__list {
  display: grid;
  gap: 0.55rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-links__list a {
  color: var(--text-muted);
  font-size: var(--step--1);
  text-decoration: none;
}

.footer-links__list a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block-start: 1.75rem;
  font-size: var(--step--1);
  color: var(--text-subtle);
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer__legal a {
  color: var(--text-subtle);
  text-decoration: none;
}

.site-footer__legal a:hover {
  color: var(--primary);
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.social-link {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-muted);
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease),
    transform 0.15s var(--ease-out);
}

.social-link:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.social-link svg {
  width: 1.1rem;
  height: 1.1rem;
}

/* -----------------------------------------------------------------------------
   26. Utilities & motion
   -------------------------------------------------------------------------- */
.full-bleed {
  width: 100%;
}

.flip {
  transform: scaleX(-1);
}

.no-wrap {
  white-space: nowrap;
}

@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;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .newsletter,
  .pagination,
  .post-nav {
    display: none !important;
  }

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

  body::before {
    display: none;
  }
}