/* ============================================================
   ClinicaWeb — Design System (tech-utility / clinical)
   Single source of truth — all pages import this file first.
   Direction: tech-utility, accent verde clínico + azul info
   ============================================================ */

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

* { margin: 0; padding: 0; }

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

body {
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--fg);
  background-color: var(--bg);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }
a { color: var(--info); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ── Tokens ── */
:root {
  /* Color — softened, slight warm-cool blend */
  --bg:           oklch(98.6% 0.006 220);
  --surface:      oklch(100% 0 0);
  --surface-2:    oklch(97.5% 0.006 220);
  --surface-3:    oklch(95.5% 0.008 220);
  --fg:           oklch(26% 0.018 235);
  --fg-soft:      oklch(38% 0.016 235);
  --muted:        oklch(54% 0.015 235);
  --muted-soft:   oklch(68% 0.01 235);
  --border:       oklch(93% 0.006 220);
  --border-strong:oklch(87% 0.008 220);

  --accent:       oklch(60% 0.14 158);  /* verde clínico, un toque más suave */
  --accent-soft:  oklch(95% 0.04 158);
  --accent-strong:oklch(50% 0.14 158);
  --accent-ink:   oklch(34% 0.09 158);

  --info:         oklch(58% 0.14 248);  /* azul info, menos saturado */
  --info-soft:    oklch(95% 0.035 248);
  --info-ink:     oklch(36% 0.1 248);

  --warn:         oklch(74% 0.13 75);
  --warn-soft:    oklch(96% 0.045 75);
  --warn-ink:     oklch(44% 0.1 65);

  --danger:       oklch(60% 0.18 25);
  --danger-soft:  oklch(96% 0.035 25);
  --danger-ink:   oklch(42% 0.15 25);

  /* Type */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  /* Spacing */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px;
  --s-4: 16px; --s-5: 24px; --s-6: 32px;
  --s-7: 48px; --s-8: 64px; --s-9: 96px;

  /* Radii — softer */
  --r-1: 4px; --r-2: 8px; --r-3: 12px; --r-4: 16px; --r-5: 20px;

  /* Layout */
  --container:        1200px;
  --container-narrow: 760px;
  --container-wide:   1320px;

  /* Borders */
  --hairline: 1px solid var(--border);

  /* Shadows — soft, layered */
  --shadow-1: 0 1px 2px oklch(20% 0.02 235 / 0.04),
              0 1px 3px oklch(20% 0.02 235 / 0.04);
  --shadow-2: 0 2px 4px oklch(20% 0.02 235 / 0.04),
              0 6px 16px oklch(20% 0.02 235 / 0.06);
  --shadow-3: 0 4px 8px oklch(20% 0.02 235 / 0.04),
              0 16px 40px oklch(20% 0.02 235 / 0.08);
  --shadow-glow-accent: 0 8px 24px oklch(50% 0.14 158 / 0.18);
}

/* ── Type utility ── */
.mono { font-family: var(--font-mono); }
.num  { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 500;
}

/* ── Container ── */
.container       { max-width: var(--container);        margin: 0 auto; padding: 0 var(--s-5); }
.container-narrow{ max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--s-5); }
.container-wide  { max-width: var(--container-wide);   margin: 0 auto; padding: 0 var(--s-5); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in oklch, var(--surface) 80%, transparent);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: var(--hairline);
}
.site-header__inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--s-5);
  height: 56px;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-5);
}

/* Logo */
.brand { display: flex; align-items: center; gap: var(--s-2); }
.brand__mark {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  background: var(--accent);
  color: var(--surface);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  border-radius: var(--r-2);
  box-shadow: 0 1px 2px oklch(20% 0.02 235 / 0.08),
              inset 0 1px 0 oklch(100% 0 0 / 0.15);
}
.brand__name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.brand__name em { font-style: normal; color: var(--muted); font-weight: 500; }

/* Nav */
.site-nav ul { display: flex; gap: 2px; align-items: center; }
.site-nav a {
  display: inline-block;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-soft);
  border-radius: var(--r-2);
  transition: background-color .15s, color .15s;
}
.site-nav a:hover {
  background: var(--surface-2);
  color: var(--fg);
  text-decoration: none;
}
.site-nav a[aria-current="page"] {
  color: var(--fg);
  background: var(--surface-2);
}
.site-nav a[aria-current="page"]::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: 1px;
}

/* Header right block */
.site-header__right {
  display: flex; align-items: center; gap: var(--s-3);
}
.site-header__status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--muted);
}
.site-header__status .dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 20%, transparent);
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  border-bottom: var(--hairline);
  background: var(--bg);
}
.breadcrumb__inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 10px var(--s-5);
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--muted);
  display: flex; align-items: center; gap: 6px;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--fg); text-decoration: none; }
.breadcrumb__sep { color: var(--border-strong); }
.breadcrumb [aria-current="page"] { color: var(--fg); }

/* ============================================================
   PAGE INTRO / BANNER
   ============================================================ */
.page-intro {
  padding: var(--s-8) 0 var(--s-7);
  border-bottom: var(--hairline);
}
.page-intro__inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--s-5);
  display: grid; grid-template-columns: 1fr auto; gap: var(--s-7);
  align-items: end;
}
.page-intro__kicker { margin-bottom: 14px; }
.page-intro h1 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--fg);
  max-width: 720px;
}
.page-intro__lead {
  margin-top: var(--s-4);
  font-size: 15px;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.55;
}
.page-intro__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  text-align: right;
  display: grid; gap: 4px;
}
.page-intro__meta strong { color: var(--fg); font-weight: 600; }

/* ============================================================
   HERO (home only)
   ============================================================ */
.hero {
  padding: var(--s-9) 0 var(--s-8);
  border-bottom: var(--hairline);
  background:
    radial-gradient(900px 460px at 12% -10%, color-mix(in oklch, var(--accent) 9%, transparent) 0%, transparent 60%),
    radial-gradient(700px 360px at 90% 110%, color-mix(in oklch, var(--info) 7%, transparent) 0%, transparent 60%),
    var(--bg);
}
.hero__inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--s-5);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: var(--s-7);
  align-items: center;
}
.hero__copy { min-width: 0; }
.hero__media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-5);
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: var(--shadow-3);
  border: 1px solid color-mix(in oklch, var(--border) 60%, transparent);
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.hero__media-tag {
  position: absolute;
  left: var(--s-4); bottom: var(--s-4);
  background: color-mix(in oklch, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  border-radius: var(--r-3);
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg);
  letter-spacing: 0.04em;
  border: 1px solid color-mix(in oklch, var(--border) 80%, transparent);
  display: flex; align-items: center; gap: 8px;
}
.hero__media-tag .dot {
  width: 6px; height: 6px; background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 22%, transparent);
}
.hero__status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 10px 4px 8px;
  background: var(--surface);
  border: var(--hairline);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-soft);
  margin-bottom: var(--s-5);
}
.hero__status .dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 22%, transparent);
}
.hero h1 {
  font-size: clamp(36px, 5.6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
  color: var(--fg);
  max-width: 18ch;
  text-wrap: balance;
}
.hero h1 em {
  color: var(--accent);
  font-style: normal;
}
.hero__lead {
  margin-top: var(--s-5);
  font-size: 17px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 56ch;
  text-wrap: pretty;
}
.hero__actions { margin-top: var(--s-6); display: flex; flex-wrap: wrap; gap: var(--s-3); }

.hero__bench {
  grid-column: 1 / -1;
  margin-top: var(--s-7);
  border-top: var(--hairline);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.hero__bench-cell {
  padding: var(--s-5) var(--s-4) var(--s-4) 0;
  border-right: var(--hairline);
}
.hero__bench-cell:last-child { border-right: none; padding-right: 0; }
.hero__bench-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--fg);
  font-weight: 500;
}
.hero__bench-label {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: var(--s-8) 0;
  border-bottom: var(--hairline);
}
.section--alt { background: var(--surface-2); }
.section--cta {
  background: var(--surface);
  border-bottom: var(--hairline);
}

.section__head {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--s-5) var(--s-6);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-5);
  align-items: end;
}
.section__head h2 {
  font-size: 24px;
  letter-spacing: -0.015em;
  font-weight: 600;
  color: var(--fg);
  max-width: 32ch;
}
.section__lead {
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px;
  max-width: 60ch;
}
.section__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  text-align: right;
}

/* ============================================================
   CARDS / GRID
   ============================================================ */
.grid {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--s-5);
  display: grid;
  gap: var(--s-4);
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* Legacy class kept for compatibility: now renders as a card grid, not hairlines */
.grid--bordered { gap: var(--s-4); }

.tile {
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid color-mix(in oklch, var(--border) 80%, transparent);
  border-radius: var(--r-4);
  box-shadow: var(--shadow-1);
  display: flex; flex-direction: column;
  gap: var(--s-3);
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: color-mix(in oklch, var(--accent) 28%, var(--border));
}

/* Image slot at the top of a tile */
.tile__media {
  margin: calc(-1 * var(--s-5)) calc(-1 * var(--s-5)) 0;
  aspect-ratio: 16 / 10;
  background: var(--surface-2);
  overflow: hidden;
  position: relative;
}
.tile__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.tile:hover .tile__media img { transform: scale(1.04); }
.tile__media-badge {
  position: absolute;
  top: var(--s-3); left: var(--s-3);
  background: color-mix(in oklch, var(--surface) 88%, transparent);
  backdrop-filter: blur(8px) saturate(160%);
  -webkit-backdrop-filter: blur(8px) saturate(160%);
  padding: 4px 8px;
  border-radius: var(--r-2);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tile__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--s-3);
}
.tile__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-soft);
  font-variant-numeric: tabular-nums;
}
.tile h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.tile p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}
.tile__foot {
  margin-top: auto;
  padding-top: var(--s-3);
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-soft);
  font-variant-numeric: tabular-nums;
}
.tile__price { color: var(--fg); font-weight: 600; }
.tile a.tile__cta {
  color: var(--accent-ink);
  font-weight: 500;
  font-family: var(--font-sans);
  font-size: 13px;
}
.tile a.tile__cta::after { content: " →"; }

/* Stat tile */
.tile--stat .tile__num--big {
  font-family: var(--font-mono);
  font-size: 40px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}

/* Info tile (contact) */
.tile__list {
  display: grid; gap: 4px;
  font-size: 13px;
  color: var(--fg);
}
.tile__list .lab {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 6px;
}
.tile__list .val { font-variant-numeric: tabular-nums; }
.tile__list .val a { color: var(--fg); }

/* ============================================================
   MEDIA — banners + feature rows
   ============================================================ */
.banner-media {
  max-width: var(--container-wide);
  margin: 0 auto var(--s-7);
  padding: 0 var(--s-5);
}
.banner-media__inner {
  position: relative;
  border-radius: var(--r-5);
  overflow: hidden;
  aspect-ratio: 21 / 7;
  background: var(--surface-2);
  box-shadow: var(--shadow-2);
}
.banner-media__inner img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.banner-media__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 30%, oklch(20% 0.02 235 / 0.55) 100%);
}
.banner-media__caption {
  position: absolute;
  left: var(--s-6); bottom: var(--s-5);
  color: oklch(99% 0 0);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  display: flex; align-items: center; gap: 10px;
}
.banner-media__caption .dot {
  width: 6px; height: 6px; background: var(--accent); border-radius: 50%;
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 28%, transparent);
}

.feature-row {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--s-5);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: var(--s-7);
  align-items: center;
}
.feature-row > * { min-width: 0; }
.feature-row--reverse .feature-row__copy { order: 2; }
.feature-row--reverse .feature-row__media { order: 1; }
.feature-row__media {
  border-radius: var(--r-4);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
  box-shadow: var(--shadow-2);
}
.feature-row__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature-row__copy h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--fg);
  margin-bottom: var(--s-3);
  max-width: 30ch;
  text-wrap: balance;
}
.feature-row__copy p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 56ch;
  text-wrap: pretty;
}
.feature-row__list {
  margin-top: var(--s-4);
  display: grid; gap: 10px;
}
.feature-row__list li {
  position: relative;
  padding-left: 26px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--fg-soft);
  text-wrap: pretty;
}
.feature-row__list li strong {
  color: var(--fg);
  font-weight: 600;
  margin-right: 4px;
}
.feature-row__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 2px solid var(--accent);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-sans);
  border: 1px solid transparent;
  border-radius: var(--r-3);
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
  text-decoration: none !important;
  line-height: 1.1;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 30%, transparent);
}

.btn--primary {
  background: var(--accent);
  color: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 1px 2px oklch(20% 0.02 235 / 0.08),
              inset 0 1px 0 oklch(100% 0 0 / 0.18);
}
.btn--primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: var(--surface);
  box-shadow: var(--shadow-glow-accent),
              inset 0 1px 0 oklch(100% 0 0 / 0.18);
}

.btn--secondary {
  background: var(--surface);
  color: var(--fg);
  border-color: var(--border-strong);
}
.btn--secondary:hover { background: var(--surface-2); border-color: var(--fg-soft); }

.btn--ghost {
  background: transparent;
  color: var(--fg);
  border-color: transparent;
}
.btn--ghost:hover { background: var(--surface-2); }

.btn--info {
  background: var(--info);
  color: var(--surface);
  border-color: var(--info);
}
.btn--info:hover { background: var(--info-ink); border-color: var(--info-ink); color: var(--surface); }

.btn--sm { padding: 7px 12px; font-size: 12px; border-radius: var(--r-2); }
.btn--lg { padding: 14px 24px; font-size: 14.5px; border-radius: var(--r-3); }
.btn--block { width: 100%; }

/* Compact inline action (table) */
.action-link {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-ink);
  font-weight: 500;
}
.action-link::after { content: " →"; }
.action-link--muted { color: var(--muted-soft); pointer-events: none; }
.action-link--muted::after { content: ""; }

/* ============================================================
   BADGES / PILLS
   ============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px;
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 999px;
  border: 1px solid transparent;
  line-height: 1.4;
  white-space: nowrap;
}
.badge::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
}
.badge--ok      { background: var(--accent-soft); color: var(--accent-ink); }
.badge--info    { background: var(--info-soft);   color: var(--info-ink); }
.badge--warn    { background: var(--warn-soft);   color: var(--warn-ink); }
.badge--danger  { background: var(--danger-soft); color: var(--danger-ink); }
.badge--muted   { background: var(--surface-2);   color: var(--muted); border-color: var(--border); }
.badge--plain   { background: transparent;        color: var(--muted); border-color: var(--border); }
.badge--plain::before { display: none; }

/* ============================================================
   TABLES
   ============================================================ */
.table-wrap {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--s-5);
}
.table-wrap--scroll { overflow-x: auto; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: var(--surface);
  border: var(--hairline);
}
.data-table caption {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 0 var(--s-3) 2px;
  caption-side: top;
}
.data-table thead th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 14px;
  background: var(--surface-2);
  border-bottom: var(--hairline);
  white-space: nowrap;
}
.data-table thead th.num,
.data-table tbody td.num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--font-mono); }

.data-table tbody td {
  padding: 12px 14px;
  border-bottom: var(--hairline);
  color: var(--fg);
  vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--surface-2); }
.data-table tbody td strong { font-weight: 600; }

.data-table .cell-meta {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-family: var(--font-mono);
  margin-top: 2px;
}

.data-table .cmp {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.data-table .price {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.data-table .time {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--fg-soft);
}

/* ============================================================
   FORMS
   ============================================================ */
.form-shell {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--s-5);
}
.form-shell--wide {
  max-width: var(--container-wide);
}
.form-card {
  background: var(--surface);
  border: 1px solid color-mix(in oklch, var(--border) 75%, transparent);
  border-radius: var(--r-4);
  padding: var(--s-6);
  box-shadow: var(--shadow-2);
}
.form-card__head {
  padding-bottom: var(--s-5);
  border-bottom: var(--hairline);
  margin-bottom: var(--s-5);
}
.form-card__head h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.form-card__head p {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}
.req {
  display: inline-block;
  color: var(--danger);
  font-weight: 600;
}

.form-fieldset {
  border: none;
  padding: 0;
  margin: 0 0 var(--s-6) 0;
}
.form-fieldset legend {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding: 0 0 var(--s-3);
  display: flex; align-items: center; gap: 8px;
  width: 100%;
  border-bottom: var(--hairline);
  margin-bottom: var(--s-4);
}
.form-fieldset legend::after {
  content: "";
  flex: 1;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
  margin-bottom: var(--s-4);
}
.form-row--3 { grid-template-columns: 1fr 1fr 1fr; }
.field { margin-bottom: var(--s-4); }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-soft);
  margin-bottom: 6px;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field input[type="number"],
.field input[type="password"],
.field select,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  font-size: 13.5px;
  font-family: var(--font-sans);
  color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-3);
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--muted-soft); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--fg-soft); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 18%, transparent);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input[type="date"] { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.field input:invalid:not(:placeholder-shown) { border-color: var(--danger); }
.field input:valid:not(:placeholder-shown)   { border-color: var(--border-strong); }

.field__hint {
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
  font-family: var(--font-mono);
}

.radio-group, .check-group {
  display: flex; flex-wrap: wrap; gap: var(--s-3);
}
.radio-group label, .check-group label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px;
  color: var(--fg);
  font-weight: 400;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  cursor: pointer;
  background: var(--surface);
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.radio-group label:hover, .check-group label:hover { border-color: var(--fg-soft); }
.radio-group input, .check-group input {
  accent-color: var(--accent);
}
.radio-group label:has(input:checked),
.check-group label:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.consent {
  display: flex; align-items: flex-start; gap: 10px;
  padding: var(--s-4);
  background: var(--surface-2);
  border: var(--hairline);
  border-radius: var(--r-2);
  margin-bottom: var(--s-5);
}
.consent input { accent-color: var(--accent); margin-top: 2px; }
.consent label { font-size: 12px; color: var(--fg-soft); line-height: 1.5; }

.form-actions {
  display: flex; gap: var(--s-3); align-items: center;
  padding-top: var(--s-4);
  border-top: var(--hairline);
}

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
  padding: var(--s-4) var(--s-4);
  border: 1px solid;
  border-left-width: 3px;
  border-radius: var(--r-2);
  font-size: 13px;
  margin-bottom: var(--s-5);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-3);
  align-items: start;
}
.alert__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 2px 6px;
  border-radius: var(--r-1);
  align-self: start;
  margin-top: 1px;
}
.alert--ok {
  background: var(--accent-soft);
  border-color: color-mix(in oklch, var(--accent) 30%, transparent);
  color: var(--accent-ink);
}
.alert--ok .alert__tag   { background: var(--accent); color: var(--surface); }
.alert--info {
  background: var(--info-soft);
  border-color: color-mix(in oklch, var(--info) 30%, transparent);
  color: var(--info-ink);
}
.alert--info .alert__tag { background: var(--info); color: var(--surface); }

/* ============================================================
   CTA STRIP
   ============================================================ */
.cta-strip {
  padding: var(--s-7) var(--s-5);
  max-width: var(--container-wide);
  margin: 0 auto var(--s-8);
}
.cta-strip__inner {
  background:
    radial-gradient(700px 400px at 95% 100%, color-mix(in oklch, var(--accent) 22%, transparent) 0%, transparent 65%),
    linear-gradient(180deg, oklch(28% 0.025 240) 0%, oklch(24% 0.022 240) 100%);
  color: oklch(99% 0 0);
  border-radius: var(--r-5);
  padding: var(--s-7) var(--s-6);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-6);
  align-items: center;
  box-shadow: var(--shadow-3);
  border: 1px solid oklch(35% 0.02 240);
}
.cta-strip h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.015em;
  max-width: 24ch;
  text-wrap: balance;
}
.cta-strip p {
  margin-top: 6px;
  font-size: 14px;
  color: oklch(75% 0.01 240);
  max-width: 50ch;
}
.cta-strip .btn--primary { background: var(--accent); border-color: var(--accent); }
.cta-strip .btn--secondary {
  background: transparent;
  color: var(--surface);
  border-color: oklch(35% 0.02 240);
}
.cta-strip .btn--secondary:hover { background: oklch(30% 0.02 240); border-color: oklch(50% 0.02 240); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--surface);
  border-top: var(--hairline);
  padding: var(--s-8) 0 var(--s-5);
  font-size: 13px;
}
.site-footer__grid {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--s-5) var(--s-7);
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: var(--s-7);
}
.site-footer__brand .brand { margin-bottom: var(--s-3); }
.site-footer__brand p { color: var(--muted); max-width: 36ch; }
.site-footer__col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: var(--s-3);
}
.site-footer__col li { margin-bottom: 6px; }
.site-footer__col a {
  color: var(--fg-soft);
  font-size: 13px;
}
.site-footer__col a:hover { color: var(--fg); }
.site-footer__contact .row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 8px;
  margin-bottom: 6px;
}
.site-footer__contact .row .lab {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.site-footer__contact .row .val { color: var(--fg); font-variant-numeric: tabular-nums; }
.site-footer__bottom {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: var(--s-5) var(--s-5) 0;
  border-top: var(--hairline);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  flex-wrap: wrap; gap: var(--s-3);
}

/* ============================================================
   UTILITIES
   ============================================================ */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Focus everywhere */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-1);
}

/* Two-column layout for forms with sidebar */
.split {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: var(--s-7) var(--s-5);
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: var(--s-6);
  align-items: start;
}
.split__main { min-width: 0; }
.split__aside {
  position: sticky; top: 72px;
  border: var(--hairline);
  border-radius: var(--r-3);
  background: var(--surface);
  overflow: hidden;
}
.split__aside-head {
  padding: var(--s-4);
  border-bottom: var(--hairline);
  background: var(--surface-2);
}
.split__aside-head h3 {
  font-size: 13px;
  font-weight: 600;
}
.split__aside-head p {
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}
.split__aside table { width: 100%; font-size: 12px; border-collapse: collapse; }
.split__aside table td {
  padding: 8px var(--s-4);
  border-bottom: var(--hairline);
}
.split__aside table tr:last-child td { border-bottom: none; }
.split__aside table .time {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--fg);
  white-space: nowrap;
}
.split__aside table .spec { color: var(--muted); font-size: 11px; display: block; }
.split__aside table .name { color: var(--fg); font-size: 12px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .feature-row { grid-template-columns: 1fr; gap: var(--s-5); }
  .feature-row--reverse .feature-row__copy { order: 1; }
  .feature-row--reverse .feature-row__media { order: 2; }
  .feature-row__media { aspect-ratio: 16 / 9; max-width: 720px; }
  .feature-row__copy h3 { max-width: 36ch; }
  .feature-row__copy p { max-width: 64ch; }
}

@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; gap: var(--s-6); }
  .hero__media { aspect-ratio: 16 / 10; max-width: 560px; }
  .hero__bench { grid-template-columns: repeat(2, 1fr); }
  .hero__bench-cell:nth-child(2) { border-right: none; }
  .hero__bench-cell:nth-child(1), .hero__bench-cell:nth-child(2) { border-bottom: var(--hairline); }
  .banner-media__inner { aspect-ratio: 16 / 9; }
  .split { grid-template-columns: 1fr; }
  .split__aside { position: static; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .site-header__inner { height: auto; padding: 12px var(--s-4); flex-wrap: wrap; gap: 10px; }
  .site-nav ul { flex-wrap: wrap; justify-content: flex-start; }
  .site-nav a { padding: 6px 8px; }
  .site-header__right { display: none; }

  .page-intro { padding: var(--s-6) 0 var(--s-5); }
  .page-intro__inner { grid-template-columns: 1fr; gap: var(--s-4); }
  .page-intro__meta { text-align: left; }

  .hero { padding: var(--s-7) 0 var(--s-6); }
  .hero h1 { font-size: clamp(32px, 9vw, 48px); }

  .section { padding: var(--s-6) 0; }
  .section__head { grid-template-columns: 1fr; padding-bottom: var(--s-4); }
  .section__meta { text-align: left; }

  .grid--3, .grid--2, .grid--4, .grid--auto { grid-template-columns: 1fr; }
  .hero__bench { grid-template-columns: 1fr 1fr; }

  .form-row, .form-row--3 { grid-template-columns: 1fr; }

  .cta-strip { padding: var(--s-5) var(--s-4); }
  .cta-strip__inner { grid-template-columns: 1fr; padding: var(--s-6) var(--s-5); border-radius: var(--r-4); }
  .banner-media__inner { aspect-ratio: 4 / 3; }
  .banner-media__caption { left: var(--s-4); bottom: var(--s-4); font-size: 11px; }
  .hero__media { aspect-ratio: 4 / 3; }

  .site-footer__grid { grid-template-columns: 1fr; gap: var(--s-5); }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }

  .data-table thead th, .data-table tbody td { padding: 10px 10px; font-size: 12px; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .site-header, .site-footer, .cta-strip, .breadcrumb, .form-actions { display: none; }
  body { background: white; color: black; }
}
