/* AnimalShelterIQ — warm editorial light theme.
   Distinct from the dark SaaS aesthetic of the IQ family. */

:root {
  /* Paper palette */
  --paper:        #f6efe2;
  --paper-2:      #efe6d3;
  --paper-3:      #e8dec7;
  --ink:          #15241e;
  --ink-2:        #2c3e36;
  --ink-dim:      #5a6b62;
  --ink-mute:     #8b9389;
  --rule:         #d8cbb0;
  --rule-2:       #c2b393;

  /* Brand */
  --moss:         #0e4d3e;     /* deep forest green primary */
  --moss-2:       #14624f;
  --moss-soft:    #d6e2dc;
  --clay:         #c25a36;     /* warm terracotta accent */
  --clay-2:       #d97048;
  --clay-soft:    #f0d5c7;
  --gold:         #c69a4d;     /* subtle warm gold */

  --good:         #297a4c;
  --warn:         #b97a14;
  --danger:       #b03a2e;

  --r-sm: 6px;
  --r:    10px;
  --r-lg: 18px;

  --container: 1180px;
  --header-h:  72px;

  /* type */
  --serif: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  background-image:
    /* subtle paper grain */
    radial-gradient(rgba(21,36,30,.025) 1px, transparent 1px),
    radial-gradient(rgba(194,90,54,.04) 1px, transparent 1px);
  background-size: 22px 22px, 38px 38px;
  background-position: 0 0, 11px 11px;
}

/* Typography */
h1, h2, h3, h4, h5 { margin: 0 0 .5em; color: var(--ink); letter-spacing: -0.01em; line-height: 1.12; }
h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.6rem, 6.4vw, 5rem); letter-spacing: -0.025em; }
h1 em, h2 em { font-style: italic; color: var(--moss); font-weight: 400; }
h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 3.8vw, 3rem); letter-spacing: -0.02em; }
h3 { font-family: var(--sans); font-weight: 700; font-size: clamp(1.05rem, 1.5vw, 1.25rem); letter-spacing: -0.01em; }
h4 { font-family: var(--sans); font-weight: 700; font-size: 1.02rem; }
h6 { font-family: var(--sans); font-size: .72rem; text-transform: uppercase; letter-spacing: .22em; color: var(--ink-mute); margin: 0 0 1rem; font-weight: 600; }

p { margin: 0 0 1rem; color: var(--ink-2); }
.lead {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  color: var(--ink-2);
  line-height: 1.5;
  max-width: 60ch;
  font-style: italic;
}

a { color: var(--ink); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--moss); }

code, .mono { font-family: var(--mono); font-size: .9em; background: var(--paper-2); padding: 1px 6px; border-radius: 3px; color: var(--ink); }

.muted { color: var(--ink-mute); }
.small { font-size: .85rem; }
.center { text-align: center; }

/* Layout */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
section { padding: clamp(72px, 9vw, 120px) 0; position: relative; }
section.tight { padding: clamp(40px, 6vw, 72px) 0; }
section.alt { background: var(--paper-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
section.dark {
  background: var(--ink);
  color: #ece6d9;
}
section.dark h1, section.dark h2, section.dark h3, section.dark h4 { color: #fbf6e9; }
section.dark h1 em, section.dark h2 em { color: var(--clay-2); }
section.dark p, section.dark .lead { color: #cbc5b6; }
section.dark .eyebrow { color: #cbc5b6; border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.04); }
section.dark .eyebrow .dot { background: var(--clay-2); box-shadow: 0 0 10px var(--clay-2); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(246, 239, 226, 0.78);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--rule);
  background: rgba(246, 239, 226, 0.94);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.02em; }
.brand-logo { display: block; height: 30px; width: auto; }

.nav-main { display: flex; align-items: center; gap: 4px; }
.nav-main > a {
  position: relative;
  padding: 10px 14px;
  font-family: var(--sans);
  font-size: .9rem;
  color: var(--ink-2);
  font-weight: 500;
  transition: color .15s ease;
}
.nav-main > a::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  background: var(--moss);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .25s ease;
}
.nav-main > a:hover { color: var(--ink); }
.nav-main > a:hover::after { transform: scaleX(.6); }
.nav-main > a.active { color: var(--moss); }
.nav-main > a.active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 8px;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  display: block; position: absolute; left: 11px; right: 11px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease, top .25s ease;
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 26px; }
.nav-toggle.open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px;
  border-radius: var(--r-sm);
  font-family: var(--sans);
  font-weight: 600; font-size: .92rem;
  letter-spacing: -.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn .material-symbols-rounded { font-size: 18px; }
.btn-primary {
  color: #fbf6e9;
  background: var(--moss);
  border-color: var(--moss);
  box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 8px 22px -16px rgba(14,77,62,.6);
}
.btn-primary:hover {
  background: var(--moss-2);
  border-color: var(--moss-2);
  color: #fbf6e9;
  transform: translateY(-1px);
}
.btn-ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-clay {
  color: #fff5ee;
  background: var(--clay);
  border-color: var(--clay);
}
.btn-clay:hover { background: var(--clay-2); border-color: var(--clay-2); color: #fff5ee; transform: translateY(-1px); }

/* Eyebrow / chip */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 5px 11px;
  font-family: var(--mono);
  font-size: .72rem; font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--ink-2);
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: rgba(255,255,255,.4);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--clay); box-shadow: 0 0 0 3px rgba(194,90,54,.18); }
.eyebrow.moss .dot { background: var(--moss); box-shadow: 0 0 0 3px rgba(14,77,62,.18); }

/* Issue / number marker */
.numero {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: .9;
  color: var(--clay);
  letter-spacing: -0.02em;
}
.numero small { font-size: .35em; vertical-align: super; color: var(--ink-mute); margin-right: 2px; letter-spacing: .12em; text-transform: uppercase; font-style: normal; font-family: var(--mono); }

/* Decorative paw row */
.paws {
  display: flex; gap: 18px; justify-content: center; align-items: center;
  color: var(--rule-2);
  margin: clamp(40px,6vw,72px) auto;
  max-width: 540px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 14px 0;
}
.paws svg { width: 18px; height: 18px; opacity: .85; }

/* HERO -------------------------------------------------------- */
.hero {
  padding: clamp(56px, 8vw, 110px) 0 clamp(60px, 8vw, 110px);
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(700px 320px at 92% 0%, rgba(194,90,54,.10), transparent 70%),
    radial-gradient(900px 480px at -10% 110%, rgba(14,77,62,.08), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 60px; align-items: center;
  position: relative;
}
.hero h1 { margin-top: 28px; }
.hero h1 .ink-2 { color: var(--ink); }
.hero h1 .scribble {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12'><path d='M2 8 C 30 2, 60 12, 100 6 S 170 2, 198 7' fill='none' stroke='%23c25a36' stroke-width='3' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-size: 100% .35em;
  background-position: 0 95%;
  padding-bottom: .12em;
}
.hero .lead { margin-top: 22px; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero-meta {
  margin-top: 56px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  border-top: 1px solid var(--rule);
  padding-top: 28px;
}
.hero-meta div { font-size: .8rem; color: var(--ink-mute); line-height: 1.4; }
.hero-meta strong {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  font-size: 1.7rem;
  letter-spacing: -.02em;
  margin-bottom: 4px;
}

/* Profile card mockup (instead of admin dashboard) */
.profile-card {
  position: relative;
  background: #fbf7ec;
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow:
    0 1px 0 rgba(255,255,255,.5) inset,
    0 30px 50px -30px rgba(21,36,30,.25),
    0 14px 30px -22px rgba(21,36,30,.18);
  transform: rotate(-1deg);
}
.profile-card::after {
  content: '';
  position: absolute;
  top: -16px; right: -14px;
  width: 78px; height: 78px;
  background: var(--clay);
  color: #fff5ee;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.7rem;
  font-weight: 500;
  box-shadow: 0 12px 24px -14px rgba(194,90,54,.7);
  background-image: radial-gradient(circle at 35% 30%, rgba(255,255,255,.25), transparent 60%);
}
.profile-card .badge-num {
  position: absolute;
  top: -16px; right: -14px;
  width: 78px; height: 78px;
  display: grid; place-items: center;
  color: #fff5ee;
  font-family: var(--serif); font-style: italic; font-weight: 600;
  font-size: 1.4rem;
  z-index: 2;
  text-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.pc-photo {
  aspect-ratio: 4 / 3;
  border-radius: var(--r);
  background:
    radial-gradient(120% 90% at 30% 20%, #f4ddc1 0%, #e8c79c 50%, #c99a66 100%);
  display: grid; place-items: center;
  border: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.pc-photo svg { width: 60%; height: 60%; opacity: .85; }
.pc-photo .pc-tag {
  position: absolute; top: 12px; left: 12px;
  background: rgba(21,36,30,.78); color: #fbf6e9;
  font-family: var(--mono); font-size: .68rem;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  backdrop-filter: blur(6px);
}
.pc-name {
  margin-top: 16px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
}
.pc-name h3 {
  font-family: var(--serif); font-weight: 500; font-size: 1.7rem;
  letter-spacing: -.01em; margin: 0; color: var(--ink);
}
.pc-name .pc-meta { font-family: var(--mono); font-size: .72rem; color: var(--ink-mute); letter-spacing: .08em; text-transform: uppercase; }

.pc-stats { margin-top: 14px; display: grid; gap: 10px; }
.pc-row { display: flex; align-items: center; gap: 14px; font-size: .9rem; }
.pc-row .pc-label { width: 120px; color: var(--ink-mute); font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.pc-row .pc-bar { flex: 1; height: 8px; background: var(--paper-2); border-radius: 999px; overflow: hidden; border: 1px solid var(--rule); }
.pc-row .pc-bar i { display: block; height: 100%; background: var(--moss); border-radius: 999px; }
.pc-row .pc-bar i.clay { background: var(--clay); }
.pc-row .pc-val { width: 32px; text-align: right; font-family: var(--mono); font-size: .78rem; color: var(--ink-2); }

.pc-tags {
  margin-top: 14px;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.pc-tags span {
  font-family: var(--mono);
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 4px;
  background: var(--moss-soft); color: var(--moss);
  border: 1px solid rgba(14,77,62,.18);
}
.pc-tags span.clay { background: var(--clay-soft); color: var(--clay); border-color: rgba(194,90,54,.22); }

.pc-foot {
  margin-top: 16px; padding-top: 14px;
  border-top: 1px dashed var(--rule);
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: .72rem; color: var(--ink-mute);
  letter-spacing: .1em; text-transform: uppercase;
}
.pc-foot strong { color: var(--moss); font-weight: 700; }

/* AI flick — small "match found" sticker that pokes out from the card */
.ai-sticker {
  position: absolute;
  bottom: -22px; left: -22px;
  background: var(--ink);
  color: #fbf6e9;
  border: 1px solid var(--ink-2);
  padding: 10px 14px 10px 12px;
  border-radius: var(--r);
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 16px 30px -16px rgba(0,0,0,.5);
  transform: rotate(2deg);
  max-width: 280px;
}
.ai-sticker .material-symbols-rounded { color: var(--clay-2); font-size: 22px; }
.ai-sticker .as-q { font-family: var(--serif); font-style: italic; font-size: .92rem; line-height: 1.3; }
.ai-sticker .as-a { font-family: var(--mono); font-size: .68rem; color: #cbc5b6; letter-spacing: .08em; text-transform: uppercase; margin-top: 3px; }

/* Section heading (editorial) */
.section-head { display: grid; grid-template-columns: auto 1fr; gap: 38px; align-items: end; max-width: 980px; margin: 0 auto 60px; }
.section-head .left { border-right: 1px solid var(--rule); padding-right: 38px; }
.section-head .left .numero { display: block; }
.section-head .left .label { font-family: var(--mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-mute); margin-top: 10px; }
.section-head h2 { margin: 0; }
.section-head p { margin-top: 16px; max-width: 56ch; }

/* CARD GRIDS ------------------------------------------------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fbf7ec;
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--rule-2);
  box-shadow: 0 16px 30px -22px rgba(21,36,30,.25);
}
.card .icon {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--moss-soft);
  color: var(--moss);
  margin-bottom: 18px;
  border: 1px solid rgba(14,77,62,.16);
}
.card.alt .icon { background: var(--clay-soft); color: var(--clay); border-color: rgba(194,90,54,.22); }
.card .icon .material-symbols-rounded { font-size: 22px; }
.card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.card p { font-size: .94rem; margin: 0; color: var(--ink-2); }

.card.outline { background: transparent; border-style: solid; }

/* AI CARDS — editorial spread style */
.ai-stack { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.ai-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  padding: 42px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.ai-row .ai-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 500;
  color: var(--clay);
  line-height: .9;
  position: sticky; top: calc(var(--header-h) + 24px);
}
.ai-row .ai-num small { display: block; font-family: var(--mono); font-style: normal; font-size: .7rem; letter-spacing: .14em; color: var(--ink-mute); text-transform: uppercase; margin-top: 10px; }
.ai-row .ai-body { max-width: 60ch; }
.ai-row h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  letter-spacing: -.015em;
  color: var(--ink);
  margin-bottom: 14px;
  line-height: 1.18;
}
.ai-row p { color: var(--ink-2); font-size: 1.02rem; margin: 0; }
.ai-row ul { padding: 0; margin: 14px 0 0; list-style: none; }
.ai-row ul li {
  position: relative; padding-left: 18px; margin-bottom: 6px;
  color: var(--ink-2); font-size: .94rem;
}
.ai-row ul li::before {
  content: '';
  position: absolute; left: 0; top: 10px;
  width: 8px; height: 1px; background: var(--clay);
}

/* Differentiator table — newspaper style */
.diff-table {
  background: #fbf7ec;
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  overflow: hidden;
  max-width: 980px; margin: 0 auto;
}
.diff-row { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--rule); }
.diff-row:last-child { border-bottom: none; }
.diff-row > div { padding: 22px 26px; font-size: .96rem; }
.diff-row .legacy {
  color: var(--ink-mute);
  border-right: 1px solid var(--rule);
  font-style: italic;
  font-family: var(--serif);
  text-decoration: line-through;
  text-decoration-color: rgba(176,58,46,.4);
  text-decoration-thickness: 2px;
}
.diff-row .ours {
  color: var(--ink);
  background: rgba(14,77,62,.04);
  font-weight: 500;
}
.diff-row.head > div {
  font-family: var(--mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  padding: 14px 26px;
  background: var(--paper-2);
  font-style: normal; text-decoration: none;
}
.diff-row.head .legacy { color: var(--ink-mute); font-style: normal; text-decoration: none; }
.diff-row.head .ours { color: var(--moss); background: var(--moss-soft); }

/* Pitch quote */
.pitch {
  position: relative;
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: clamp(36px, 5vw, 64px) clamp(36px, 5vw, 80px);
  background:
    radial-gradient(700px 280px at 30% 0%, rgba(14,77,62,.06), transparent 60%),
    #fbf7ec;
  max-width: 920px; margin: 0 auto;
}
.pitch::before {
  content: '\201C';
  position: absolute; top: -12px; left: 28px;
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: 6rem; color: var(--clay);
  line-height: 1;
}
.pitch p {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  color: var(--ink);
  line-height: 1.5;
}
.pitch .punch {
  margin-top: 18px;
  font-family: var(--serif); font-style: italic;
  font-weight: 500;
  color: var(--moss);
  border-top: 1px solid var(--rule);
  padding-top: 18px;
}

/* Module list */
.mod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.mod-card {
  padding: 26px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: transparent;
  transition: background .15s ease;
}
.mod-card:hover { background: rgba(255,255,255,.4); }
.mod-card h4 {
  display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
  font-family: var(--sans); font-weight: 700; font-size: 1rem;
}
.mod-card .material-symbols-rounded { color: var(--moss); font-size: 22px; }
.mod-card p { margin: 0; font-size: .92rem; color: var(--ink-2); }

/* Feature list with checkmarks */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li {
  position: relative; padding-left: 30px;
  color: var(--ink-2); font-size: .96rem;
}
.checks li::before {
  content: 'check';
  font-family: 'Material Symbols Rounded';
  position: absolute; left: 0; top: 1px;
  font-size: 16px;
  color: var(--moss);
  background: var(--moss-soft);
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(14,77,62,.18);
}
.checks li strong { color: var(--ink); font-weight: 700; }

/* Built-for strip */
.built-strip {
  display: flex; flex-wrap: wrap; gap: 8px 10px; justify-content: center;
}
.built-strip span {
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,.5);
  border: 1px solid var(--rule);
  color: var(--ink-2); font-size: .88rem;
  font-family: var(--sans);
}

/* Integrations grid */
.int-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.int {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--rule); border-radius: var(--r);
  background: rgba(255,255,255,.5);
  color: var(--ink);
  font-weight: 500; font-size: .94rem;
}
.int .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--clay); flex: none; }

/* CTA band — dark contrast block */
.cta-band {
  border-radius: var(--r-lg);
  padding: clamp(40px, 6vw, 76px);
  text-align: center;
  background: var(--ink);
  color: #fbf6e9;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 240px at 50% 0%, rgba(194,90,54,.22), transparent 60%),
    radial-gradient(600px 240px at 50% 100%, rgba(14,77,62,.22), transparent 60%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fbf6e9; margin-bottom: 14px; }
.cta-band h2 em { color: var(--clay-2); }
.cta-band p { max-width: 56ch; margin: 0 auto 28px; color: #c9c2b1; font-family: var(--serif); font-style: italic; font-size: 1.1rem; }
.cta-band .btn-primary { background: var(--clay); border-color: var(--clay); color: #fff5ee; }
.cta-band .btn-primary:hover { background: var(--clay-2); border-color: var(--clay-2); }

/* Footer */
.site-footer {
  margin-top: 0;
  border-top: 1px solid var(--rule);
  padding: 64px 0 28px;
  background: var(--paper-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}
.site-footer h6 { margin-bottom: 14px; color: var(--ink); }
.site-footer a, .site-footer .small { display: block; margin-bottom: 8px; font-size: .9rem; color: var(--ink-2); }
.site-footer a:hover { color: var(--moss); }
.foot-bottom {
  margin-top: 48px; padding-top: 22px;
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--ink-mute);
  font-family: var(--mono);
  font-size: .76rem;
  letter-spacing: .08em;
}
.foot-bottom span:last-child { font-style: italic; font-family: var(--serif); font-size: .94rem; letter-spacing: 0; color: var(--ink-2); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Page header (subpages) */
.page-hero { padding: clamp(80px, 10vw, 130px) 0 clamp(40px, 6vw, 64px); text-align: center; position: relative; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); margin-top: 14px; }
.page-hero p { max-width: 640px; margin: 18px auto 0; }
.page-hero .numero { display: inline-block; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-meta { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-4, .int-grid { grid-template-columns: repeat(2, 1fr); }
  .mod-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .ai-row { grid-template-columns: 1fr; gap: 14px; }
  .ai-row .ai-num { position: static; }
  .section-head { grid-template-columns: 1fr; gap: 18px; }
  .section-head .left { border-right: none; border-bottom: 1px solid var(--rule); padding: 0 0 22px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-main {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch;
    padding: 18px 24px 28px;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
    gap: 4px;
  }
  .nav-main.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-main > a { padding: 14px 14px; border-radius: 8px; font-size: 1rem; border: 1px solid var(--rule); background: rgba(255,255,255,.4); }
  .nav-main > a::after { display: none; }
}

@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4, .int-grid { grid-template-columns: 1fr; }
  .mod-grid { grid-template-columns: 1fr; }
  .diff-row { grid-template-columns: 1fr; }
  .diff-row .legacy { border-right: none; border-bottom: 1px solid var(--rule); }
  .diff-row.head { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-meta { grid-template-columns: 1fr 1fr; gap: 18px; }
  .ai-row { grid-template-columns: 1fr; gap: 12px; padding: 26px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
