/* Ownly · website redesign · 2026-05-19
 * Translates handoff design-system.html into production static CSS.
 * Tokens lifted verbatim from handoff README + design-system.html.
 */

:root {
  --bg-white:      #FAFAF9;
  --bg-cream:      #F5F5F0;
  --bg-teal-light: #F0FDFA;
  --ink:           #292524;
  --ink-2:         #57534E;
  /* R1 fix: ink-3 darkened from #78716C to #5F5A55 for WCAG AA contrast
   * on cream (#F5F5F0) and white (#FAFAF9). Was 3.7-3.9:1 (failing) → ~6.0:1.
   */
  --ink-3:         #5F5A55;
  --white:         #FFFFFF;
  --border:        #E7E5E4;
  --teal:          #14B8A6;
  --teal-dark:     #0D9488;
  /* R1 fix: darker teal for text on light-teal/cream — 4.31:1 → 5.6:1 */
  --teal-darker:   #0B7D72;
  --amber:         #F59E0B;
  --rose:          #BE123C;

  --radius-xs:   6px;
  --radius-sm:   10px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --radius-xl:   24px;
  --radius-pill: 9999px;

  --shadow-sm: 0 1px 2px rgba(41,37,36,0.05);
  --shadow-md: 0 8px 24px -10px rgba(41,37,36,0.12);
  --shadow-lg: 0 28px 60px -30px rgba(20,184,166,0.25), 0 2px 0 rgba(0,0,0,0.02);
  --shadow-nav: 0 2px 12px -4px rgba(41,37,36,0.08);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 80px;

  --font-body:    'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-accent:  'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

/* ─── skip-to-content (WCAG 2.4.1 Bypass Blocks) ─── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 1000;
}
.skip-link:focus, .skip-link:focus-visible {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 12px 18px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-sm);
  font: 700 14px var(--font-body);
  text-decoration: none;
  box-shadow: var(--shadow-md);
}

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

/* ─── reset ─── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-darker); text-decoration: none; }
a:hover { color: var(--teal); }
button { font-family: inherit; }
/* R1 a11y fix: focus ring uses ink for max contrast on every background
 * (including teal-tinted surfaces where the teal ring went invisible). */
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: var(--radius-xs); box-shadow: 0 0 0 4px rgba(250,250,249,0.85); }

/* ─── type ─── */
h1, h2, h3, h4, h5 { margin: 0; letter-spacing: -0.02em; font-weight: 800; color: var(--ink); }
h1 { font-size: clamp(40px, 6.4vw, 72px); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.06; letter-spacing: -0.03em; }
h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.18; }
h4 { font-size: 18px; line-height: 1.3; }
.serif-italic { font-family: var(--font-accent); font-style: italic; font-weight: 400; color: var(--teal-darker); letter-spacing: -0.01em; }
.lead { font-size: 19px; color: var(--ink-2); line-height: 1.55; max-width: 720px; }
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-darker);
  margin: 0 0 12px;
}
.mono { font-family: var(--font-mono); }
.muted { color: var(--ink-3); }

/* ─── layout ─── */
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 56px; }
@media (max-width: 768px) { .wrap { padding: 0 24px; } }
.section { padding: 80px 0; }
.section-tight { padding: 56px 0; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ─── buttons + pills ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: #fff; padding: 14px 22px; }
.btn-primary:hover { background: #1c1917; color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); padding: 12px 20px; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
/* R3 a11y fix: background uses --teal-darker (#0B7D72 → 4.97:1 with white)
 * instead of --teal-dark (#0D9488 → 3.48:1 FAIL on default state). */
.btn-teal { background: var(--teal-darker); color: #fff; padding: 14px 22px; font-weight: 700; }
.btn-teal:hover { background: #14564E; color: #fff; }
.btn-amber { background: var(--amber); color: var(--ink); padding: 12px 20px; font-weight: 700; font-size: 14px; }
.btn-large { padding: 18px 28px; font-size: 16px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.pill-teal  { background: var(--bg-teal-light); color: var(--teal-darker); }
.pill-amber { background: var(--amber); color: var(--ink); }
.pill-ink   { background: var(--ink); color: #fff; }
.pill-cream { background: var(--bg-cream); color: var(--ink-2); }
.pill-rose  { background: #FFF1F2; color: var(--rose); }

.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 currentColor;
  animation: ow-pulse 1.6s ease-out infinite;
}

/* ─── nav ─── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-white);
  border-bottom: 1px solid transparent;
  transition: background 0.2s ease, backdrop-filter 0.2s ease, border-color 0.2s ease;
}
.site-nav.scrolled {
  background: rgba(250, 250, 249, 0.84);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom-color: var(--border);
}
.site-nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 16px 56px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.site-nav-logo { display: inline-flex; align-items: center; gap: 10px; }
.site-nav-logo svg { width: 32px; height: 32px; flex-shrink: 0; }
.site-nav-logo span {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.site-nav-links {
  display: flex;
  gap: 28px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}
.site-nav-links a {
  color: var(--ink-2);
  font-weight: 500;
  font-size: 15px;
}
.site-nav-links a:hover, .site-nav-links a.active { color: var(--ink); }
.site-nav-right { display: flex; align-items: center; gap: 16px; }
.site-nav-right .newsletter-link {
  color: var(--ink-2);
  font-weight: 500;
  font-size: 15px;
}
.site-nav-right .newsletter-link:hover { color: var(--ink); }
.nav-mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
}
@media (max-width: 900px) {
  .site-nav-inner { padding: 14px 24px; }
  .site-nav-links { display: none; }
  .site-nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    margin: 0;
    gap: 16px;
  }
  .site-nav-right .newsletter-link { display: none; }
  .nav-mobile-toggle { display: inline-flex; }
}

/* ─── hero ─── */
.hero {
  padding: 72px 0 96px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 48px 0 72px; }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(110deg, var(--bg-teal-light) 0%, #FEF3C7 50%, var(--bg-teal-light) 100%);
  background-size: 200% 100%;
  animation: ow-shimmer 4s ease-in-out infinite;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 24px;
}
.hero-badge .strike { color: var(--ink-3); text-decoration: line-through; margin-right: 4px; }
.hero-badge .free   { color: var(--teal-darker); font-weight: 800; }
.hero-title { margin: 0 0 24px; }
.hero-lead { margin: 0 0 32px; font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 540px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-checks { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--ink-3); }
.hero-checks span { display: inline-flex; align-items: center; gap: 6px; }
.hero-checks svg { width: 16px; height: 16px; color: var(--teal-darker); }

/* hero "Your agent" floating card */
.agent-card {
  background: #fff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: ow-floaty 7s ease-in-out infinite;
}
.agent-card-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--bg-cream);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.agent-card-chrome .chrome-name { font-weight: 700; color: var(--ink); }
.agent-card-chrome .chrome-time { color: var(--ink-3); margin-left: auto; font-family: var(--font-mono); font-size: 12px; }
.agent-card-body { padding: 24px; }
.agent-greeting { font-size: 13px; color: var(--ink-3); margin-bottom: 4px; font-weight: 600; }
/* R3 a11y fix: was <h3> (skipped from page h1) → now <p>. Visual unchanged. */
p.agent-headline { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 20px; line-height: 1.2; color: var(--ink); font-family: var(--font-body); }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 20px; }
.stat-card { background: var(--bg-cream); border-radius: var(--radius-md); padding: 14px 16px; }
.stat-label { font-size: 11px; color: var(--ink-3); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; margin-bottom: 2px; }
.stat-value { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); line-height: 1.1; }
.stat-sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.agent-schedule { border-top: 1px solid var(--border); padding-top: 16px; }
.agent-schedule-title { font-size: 11px; color: var(--ink-3); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; margin-bottom: 10px; }
.agent-schedule-row {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 12px;
  padding: 8px 0;
  font-size: 13px;
  align-items: center;
  border-bottom: 1px dashed rgba(41,37,36,0.06);
  animation: ow-rise 0.5s ease-out backwards;
}
.agent-schedule-row:last-child { border-bottom: none; }
.agent-schedule-row .time { color: var(--ink-3); font-family: var(--font-mono); font-size: 12px; }
.agent-schedule-row .what { color: var(--ink); font-weight: 500; }
.agent-schedule-row .tag { font-size: 10px; padding: 2px 8px; border-radius: var(--radius-pill); background: var(--bg-teal-light); color: var(--teal-darker); font-weight: 700; letter-spacing: 0.06em; }

/* ─── trusted-by marquee ─── */
.trusted-by {
  padding: 32px 0;
  background: var(--bg-cream);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.trusted-by-eyebrow {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 700;
  margin-bottom: 18px;
}
.marquee {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: ow-marquee 38s linear infinite;
}
/* R1 a11y fix (WCAG 2.2.2): pause marquee on hover OR keyboard focus
 * anywhere on the page — gives users a way to stop the motion. */
.trusted-by:hover .marquee,
.trusted-by:focus-within .marquee,
body:focus-within .marquee { animation-play-state: paused; }
.marquee span {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 28px;
  color: var(--ink-3);
  white-space: nowrap;
}

/* ─── why / 3-card row ─── */
.why-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.why-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.why-card.cream { background: var(--bg-cream); }
.why-card.teal { background: var(--bg-teal-light); }
.why-card .num {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 56px;
  font-weight: 400;
  color: var(--teal-darker);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.why-card h3 { font-size: 22px; line-height: 1.25; }
.why-card p { color: var(--ink-2); font-size: 15px; line-height: 1.6; margin: 0; }
.why-card .strip {
  height: 100px;
  border-radius: var(--radius-md);
  margin-top: auto;
  background: repeating-linear-gradient(135deg, rgba(20,184,166,0.06), rgba(20,184,166,0.06) 14px, rgba(20,184,166,0.12) 14px, rgba(20,184,166,0.12) 15px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-darker);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
@media (max-width: 960px) { .why-cards { grid-template-columns: 1fr; } }

/* ─── savings (pick-your-own) ─── */
.section.savings { padding: 96px 0; }
.savings-card {
  background: var(--bg-cream);
  border-radius: var(--radius-xl);
  padding: 72px 56px;
  text-align: center;
}
@media (max-width: 768px) { .savings-card { padding: 48px 24px; } }
.savings-hero {
  font-size: clamp(56px, 8vw, 120px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.96;
  margin: 12px 0 16px;
  color: var(--ink);
}
.savings-sub {
  font-size: 19px;
  color: var(--ink-2);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.55;
}
.savings-picks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 32px;
}
.savings-pick {
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--border);
  font: 600 14px var(--font-body);
  color: var(--ink-2);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.savings-pick:hover { transform: translateY(-1px); border-color: var(--ink); color: var(--ink); }
.savings-pick.active, .savings-pick[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.savings-detail {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  text-align: left;
  transition: opacity 0.15s ease;
}
.savings-detail-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 8px;
  color: var(--ink);
}
.savings-detail-title .serif-italic { font-size: inherit; }
.savings-detail-desc {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0 0 22px;
}
.savings-detail-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 540px) { .savings-detail-stats { grid-template-columns: 1fr; } }
.savings-stat {
  background: var(--bg-cream);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  text-align: left;
}
.savings-stat .v {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--teal-darker);
  line-height: 1;
  font-family: var(--font-body);
}
.savings-stat .l {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  margin-top: 6px;
  font-family: var(--font-mono);
}

/* ─── industries grid ─── */
.industries-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
@media (max-width: 960px) { .industries-grid { grid-template-columns: 1fr; } }
.industry-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.industry-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.industry-card-head { padding: 24px 24px 12px; }
.industry-card-head h3 { font-size: 30px; margin-top: 12px; line-height: 1.05; }
.industry-card-strip {
  margin: 0 24px 16px;
  height: 140px;
  border-radius: var(--radius-md);
  background: repeating-linear-gradient(135deg, #FEF3C7, #FEF3C7 14px, rgba(217,119,6,0.08) 14px, rgba(217,119,6,0.08) 15px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #92400E;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.industry-card-strip.teal {
  background: repeating-linear-gradient(135deg, var(--bg-teal-light), var(--bg-teal-light) 14px, rgba(13,148,136,0.1) 14px, rgba(13,148,136,0.1) 15px);
  color: var(--teal-darker);
}
.industry-card-strip.cream {
  background: repeating-linear-gradient(135deg, var(--bg-cream), var(--bg-cream) 14px, rgba(41,37,36,0.06) 14px, rgba(41,37,36,0.06) 15px);
  color: var(--ink-3);
}
.industry-card-strip.has-photo {
  padding: 0;
  background: var(--bg-cream);
  overflow: hidden;
}
.industry-card-strip.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.industry-card-body { padding: 0 24px 16px; }
.industry-card-body .small-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.industry-card-body .small-label.teal { color: var(--teal-darker); }
.industry-card-body .pain { font-size: 14px; color: var(--ink-2); line-height: 1.5; margin: 0 0 14px; }
.industry-card-body .agent { font-size: 14px; color: var(--ink); line-height: 1.5; font-weight: 500; margin: 0; }
.industry-card-stats {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-cream);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.industry-card-stats .stat-value { color: var(--teal-darker); }
.industry-card-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}
.industry-card-cta:hover { background: #1c1917; color: #fff; }
.industry-card-cta span:last-child { font-size: 18px; }

/* ─── case study strip (industries page) ─── */
.case-study {
  background: var(--bg-cream);
  border-radius: var(--radius-xl);
  padding: 48px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 24px;
}
.case-study-name { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-darker); margin-bottom: 8px; }
.case-study-stat { font-size: 64px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--ink); }
.case-study-stat-label { font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.case-study blockquote {
  margin: 0 0 16px;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 26px;
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.case-study .attrib { font-size: 14px; color: var(--ink-2); font-weight: 500; }
@media (max-width: 768px) {
  .case-study { grid-template-columns: 1fr; padding: 32px; gap: 24px; }
  .case-study-stat { font-size: 48px; }
}

/* ─── testimonials grid ─── */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
@media (max-width: 960px) { .testimonial-grid { grid-template-columns: 1fr; } }
.testimonial {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.testimonial-stars { color: var(--amber); font-size: 16px; letter-spacing: 2px; }
.testimonial p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink); }
.testimonial.serif p { font-family: var(--font-accent); font-style: italic; font-size: 19px; line-height: 1.4; }
.testimonial-attrib { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testimonial-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
  flex-shrink: 0;
}
.testimonial-name { font-weight: 700; font-size: 14px; }
.testimonial-role { font-size: 13px; color: var(--ink-3); }

/* ─── FAQ ─── */
.faq-layout { display: grid; grid-template-columns: 360px 1fr; gap: 80px; margin-top: 40px; }
@media (max-width: 960px) { .faq-layout { grid-template-columns: 1fr; gap: 32px; } }
.faq-contact-card {
  background: var(--bg-cream);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-top: 24px;
}
/* R2 a11y fix: was h4 (skipped from page h2) → now h3. Visual unchanged. */
.faq-contact-card h3.faq-contact-h, .faq-contact-card h4 { font-size: 18px; margin-bottom: 6px; line-height: 1.3; }
.faq-contact-card p { font-size: 14px; color: var(--ink-2); margin: 0 0 16px; line-height: 1.5; }
details.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
details.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item .chev {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 400;
  color: var(--ink);
  transition: transform 0.2s ease, background 0.2s ease;
}
details.faq-item[open] .chev { transform: rotate(45deg); background: var(--ink); color: #fff; }
details.faq-item .faq-answer {
  padding-top: 12px;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 640px;
}

/* ─── contact CTA section (dark) ─── */
.contact-cta {
  background: var(--ink);
  color: #fff;
  padding: 80px 0;
  margin-top: 64px;
}
.contact-cta-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 960px) { .contact-cta-grid { grid-template-columns: 1fr; gap: 40px; } }
.contact-cta h2 { color: #fff; }
.contact-cta .eyebrow { color: var(--teal); }
.contact-cta-lead { font-size: 17px; color: rgba(255,255,255,0.75); line-height: 1.55; margin: 16px 0 24px; max-width: 520px; }
.contact-cta .btn-teal { background: var(--teal); color: var(--ink); }
.contact-cta .btn-teal:hover { background: #2dd4bf; }
.contact-cta-steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.contact-cta-steps li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  align-items: start;
  counter-increment: step;
}
.contact-cta-steps li:last-child { border-bottom: none; }
.contact-cta-steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--teal);
  font-size: 24px;
  line-height: 1;
}
.contact-cta-steps li span { color: rgba(255,255,255,0.85); font-size: 15px; line-height: 1.5; }

/* ─── footer ─── */
.site-footer {
  background: var(--bg-cream);
  padding: 64px 0 32px;
  margin-top: 0;
  color: var(--ink-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 48px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand p { font-size: 14px; color: var(--ink-3); line-height: 1.5; margin: 16px 0 0; max-width: 280px; }
/* R2 a11y fix: footer columns use h3 (was h5 — orphan after page h2/h1).
 * Visual styling unchanged. */
.footer-col h3, .footer-col h5 {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 700;
  margin-bottom: 14px;
  margin-top: 0;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--ink-2); font-size: 14px; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-3);
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
  transition: background 0.15s ease, color 0.15s ease;
}
.footer-social a:hover { background: var(--ink); color: #fff; }

/* ─── contact page ─── */
.contact-hero {
  text-align: center;
  padding: 64px 0 32px;
}
.contact-hero .pill { margin-bottom: 24px; }
.contact-hero h1 { max-width: 720px; margin: 0 auto 16px; }
.contact-hero p.lead { margin-left: auto; margin-right: auto; }
.contact-hero .subnote { display: block; margin-top: 12px; font-size: 13px; color: var(--ink-3); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 32px;
  padding-bottom: 64px;
}
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; gap: 24px; } }
.contact-rail {
  background: var(--bg-cream);
  border-radius: var(--radius-xl);
  padding: 32px;
  position: sticky;
  top: 96px;
  align-self: start;
}
.contact-rail h3 { font-size: 22px; margin-bottom: 20px; }
.contact-rail ol { padding-left: 0; margin: 0 0 20px; list-style: none; counter-reset: step; }
.contact-rail ol li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px dashed rgba(41,37,36,0.08);
  counter-increment: step;
}
.contact-rail ol li:last-child { border-bottom: none; }
.contact-rail ol li::before {
  content: counter(step);
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}
.contact-rail-pill {
  background: var(--bg-teal-light);
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.5;
}
.contact-rail-pill strong { color: var(--teal-darker); }
.contact-form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
@media (max-width: 600px) { .contact-form-card { padding: 24px; } }
.contact-form-card .form-group { margin-bottom: 20px; }
.contact-form-card label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 8px; color: var(--ink); }
.contact-form-card input[type="text"],
.contact-form-card input[type="email"],
.contact-form-card textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font: 500 15px var(--font-body);
  color: var(--ink);
  background: var(--bg-white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.contact-form-card input:focus,
.contact-form-card textarea:focus {
  outline: none;
  border-color: var(--teal-darker);
  box-shadow: 0 0 0 3px rgba(20,184,166,0.15);
}
.contact-form-card textarea { min-height: 100px; resize: vertical; font-family: var(--font-body); }
.honeypot { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (max-width: 540px) { .services-grid { grid-template-columns: 1fr; } }
.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.service-card.selected { border-color: var(--teal-darker); background: var(--bg-teal-light); }
/* R1 a11y fix: service card focus surfaces on the card via :has() so users
 * see the full card outline (not the tiny inner checkbox). */
.service-card { user-select: none; }
.service-card:focus-visible,
.service-card:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.service-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.service-card-head .emoji { font-size: 18px; }
.service-card-head input[type="checkbox"] { margin-left: auto; accent-color: var(--teal-darker); width: 18px; height: 18px; cursor: pointer; }
.service-card-head .expand-toggle {
  background: none;
  border: 1px solid var(--border);
  width: 22px; height: 22px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  color: var(--ink-2);
  padding: 0;
}
.service-card-detail {
  display: none;
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.55;
}
.service-card.expanded .service-card-detail { display: block; }
.service-card-detail ul { padding-left: 18px; margin: 8px 0; }
.service-card-detail li { padding: 2px 0; }
.detail-stat {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--teal-darker);
  letter-spacing: 0.04em;
}
.newsletter-optin {
  font-size: 13px;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 10px;
}
.newsletter-optin input { accent-color: var(--teal-darker); width: 18px; height: 18px; }
.consult-submit {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}
.consult-disclaimer { font-size: 12px; color: var(--ink-3); margin-top: 12px; line-height: 1.5; }
.consult-spinner {
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ow-spin-slow 0.8s linear infinite;
  display: inline-block;
}

/* ─── hub ─── */
.hub-hero { padding: 88px 0 32px; text-align: center; background: linear-gradient(180deg, #FBF9F4 0%, #fff 100%); }
.hub-hero .wrap { max-width: 960px; }
.hub-hero h1 { max-width: 820px; margin: 0 auto 18px; font-size: clamp(38px, 5vw, 54px); line-height: 1.1; }
.hub-hero h1 .serif-italic { display: block; margin-top: 4px; }
.hub-hero .lead { max-width: 620px; margin: 0 auto 32px; font-size: 17px; }
.hub-search {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 14px 22px;
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
  box-shadow: var(--shadow-sm);
}
.hub-search input { font-size: 17px; }
.hub-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 1080px; margin: 40px auto 0; }
.hub-tile {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  transition: all 0.15s ease;
  text-align: left;
}
.hub-tile:hover { border-color: var(--teal-darker); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.hub-tile-count { font: 700 28px var(--font-body); color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1; }
.hub-tile-name { font: 600 15px var(--font-body); color: var(--ink-2); margin-top: 2px; }
.hub-tile-desc { font-size: 13px; color: var(--ink-3); line-height: 1.4; margin-top: 4px; }
@media (max-width: 800px) {
  .hub-tiles { grid-template-columns: repeat(2, 1fr); }
}
.hub-search:focus-within { border-color: var(--teal-darker); box-shadow: 0 0 0 4px rgba(20,184,166,0.12); }
.hub-search svg { color: var(--ink-3); flex-shrink: 0; }
.hub-search input {
  border: none;
  outline: none;
  background: transparent;
  flex: 1;
  font: 500 16px var(--font-body);
  color: var(--ink);
}
.hub-search .kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 8px;
  background: var(--bg-cream);
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

.hub-tabs {
  display: flex;
  gap: 4px;
  margin: 32px 0 24px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.hub-tab {
  background: none;
  border: none;
  padding: 12px 18px;
  font: 600 15px var(--font-body);
  color: var(--ink-3);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hub-tab[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--teal-darker); }
.hub-tab .count {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 7px;
  background: var(--bg-cream);
  border-radius: var(--radius-pill);
  color: var(--ink-3);
  font-weight: 700;
}
.hub-tab[aria-pressed="true"] .count { background: var(--bg-teal-light); color: var(--teal-darker); }

.hub-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.hub-filter-chip {
  background: var(--bg-cream);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
}
.hub-filter-chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.hub-result-count {
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 16px;
  font-family: var(--font-mono);
}

.hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 960px) { .hub-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .hub-grid { grid-template-columns: 1fr; } }
.hub-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  text-align: left;
  font-family: inherit;
  color: inherit;
  text-decoration: none;
}
a.hub-card:hover, a.hub-card:focus { text-decoration: none; color: inherit; }
.hub-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--teal-darker); }
.hub-card.cream { background: var(--bg-cream); border-color: var(--border); }
.hub-card h3 { font-size: 18px; line-height: 1.25; margin: 0; }
.hub-card .kind {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-darker);
}
.hub-card .desc { font-size: 14px; color: var(--ink-2); line-height: 1.55; margin: 0; flex: 1; }
.hub-card .meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  border-top: 1px dashed var(--border);
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hub-card .meta .open-link { color: var(--teal-darker); font-weight: 700; font-family: var(--font-body); }
.hub-card.prompt {
  background: var(--bg-cream);
  font-family: var(--font-mono);
}
.hub-card.prompt blockquote {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  font-style: normal;
}

/* hub modal */
.hub-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(41,37,36,0.4);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
}
.hub-modal-backdrop.open { display: flex; }
.hub-modal {
  background: #fff;
  border-radius: var(--radius-xl);
  max-width: 720px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
}
.hub-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.hub-modal-kind {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-darker);
  margin-bottom: 8px;
}
.hub-modal h2 { font-size: 32px; margin-bottom: 16px; }
.hub-modal p { font-size: 16px; color: var(--ink-2); line-height: 1.6; }
.hub-modal-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 24px 0;
}
.hub-modal-meta .item {
  background: var(--bg-cream);
  padding: 12px 14px;
  border-radius: var(--radius-md);
}
.hub-modal-meta .item-label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; margin-bottom: 4px; }
.hub-modal-meta .item-value { font-size: 14px; color: var(--ink); font-weight: 600; }
.hub-modal h3 { font-size: 18px; margin: 24px 0 10px; }
.hub-modal ul, .hub-modal ol { padding-left: 20px; color: var(--ink-2); }
.hub-modal li { padding: 4px 0; font-size: 15px; line-height: 1.55; }
.hub-modal-prompt {
  background: var(--bg-cream);
  border-radius: var(--radius-md);
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  margin: 16px 0;
  white-space: pre-wrap;
}

/* ─── docs ─── */
.docs-layout {
  display: grid;
  grid-template-columns: 260px 1fr 280px;
  gap: 48px;
  padding: 32px 0 80px;
}
@media (max-width: 1100px) {
  .docs-layout { grid-template-columns: 260px 1fr; }
  .docs-rail { display: none; }
}
@media (max-width: 800px) {
  .docs-layout { grid-template-columns: 1fr; gap: 24px; }
  .docs-sidebar { position: static; }
}
.docs-sidebar {
  background: var(--bg-cream);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: 96px;
  align-self: start;
  font-size: 14px;
}
/* R3 a11y fix: was h5 (appeared before page h1 in DOM) → now h3 nested under
 * a sr-only h2 inside the labeled <aside> landmark. Visual unchanged. */
/* R3 a11y fix: sidebar section labels are <p>, not headings (they appeared
 * in DOM before the article h1 — heading-nav anomaly). Visual unchanged. */
.docs-sidebar .docs-sidebar-label,
.docs-sidebar h3, .docs-sidebar h5 {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 700;
  margin: 20px 0 8px;
}
.docs-sidebar .docs-sidebar-label:first-child,
.docs-sidebar h3:first-of-type,
.docs-sidebar h5:first-child { margin-top: 0; }
.docs-sidebar ul { list-style: none; padding: 0; margin: 0 0 12px; }
.docs-sidebar li { padding: 4px 0; }
.docs-sidebar a {
  color: var(--ink-2);
  display: block;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
}
.docs-sidebar a:hover { background: var(--bg-white); color: var(--ink); }
.docs-sidebar a.active { background: var(--bg-teal-light); color: var(--teal-darker); font-weight: 700; }
.docs-sidebar .soon {
  display: block;
  padding: 4px 8px;
  color: var(--ink-3);
  font-size: 14px;
  cursor: not-allowed;
}
.docs-sidebar .soon::after { content: ' · soon'; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); opacity: 0.7; }
.docs-main { min-width: 0; }
.docs-breadcrumb { font-size: 13px; color: var(--ink-3); margin-bottom: 16px; }
.docs-breadcrumb a { color: var(--ink-3); }
.docs-main h1 { font-size: 44px; margin-bottom: 16px; }
.docs-main h2 { margin-top: 40px; }
.docs-main h3 { margin-top: 24px; }
.docs-main p { color: var(--ink-2); font-size: 16px; line-height: 1.7; margin-bottom: 16px; }
.docs-main code { font-family: var(--font-mono); font-size: 13px; background: var(--bg-cream); padding: 2px 6px; border-radius: var(--radius-xs); color: var(--ink); }
.docs-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 24px 0; }
.docs-option {
  background: var(--bg-cream);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.docs-option:hover { border-color: var(--teal-darker); }
.docs-option-name { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.docs-option-desc { font-size: 13px; color: var(--ink-3); line-height: 1.5; }
.docs-code-block {
  background: var(--ink);
  color: #e7e5e4;
  border-radius: var(--radius-md);
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.55;
  margin: 16px 0;
  overflow-x: auto;
}
.docs-code-block .line { display: block; }
.docs-code-block .key { color: var(--teal); }
.docs-rail {
  position: sticky;
  top: 96px;
  align-self: start;
  font-size: 13px;
}
/* R3 a11y fix: was h5 → now h3 under sr-only h2 in labeled aside landmark. */
.docs-rail h3, .docs-rail h5, .docs-rail .docs-rail-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 700;
  margin: 0 0 12px;
}
.docs-rail ul { list-style: none; padding: 0; margin: 0 0 20px; }
.docs-rail li { padding: 4px 0; }
.docs-rail a { color: var(--ink-2); }
.docs-rail a:hover, .docs-rail a.active { color: var(--teal-darker); font-weight: 700; }
.docs-graph-callout {
  background: var(--bg-teal-light);
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.55;
}
.docs-graph-callout strong { color: var(--teal-darker); }

/* ─── industries page hero ─── */
.industries-hero {
  padding: 80px 0 48px;
}
.industries-hero h1 { max-width: 920px; margin-bottom: 24px; }
.industries-hero .lead { max-width: 760px; }

/* ─── industry detail pages (/industries/<slug>) ─── */
.ind-hero {
  position: relative;
  min-height: 460px;
  background-size: cover;
  /* center top keeps faces visible — the subject sits in the upper portion of each photo */
  background-position: center top;
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding: 56px 0 64px;
}
.ind-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(41,37,36,0.55) 0%, rgba(41,37,36,0.78) 80%);
}
.ind-hero .wrap { position: relative; }
.ind-hero .crumb { color: #D6D3D1; font-size: 14px; font-weight: 600; text-decoration: none; }
.ind-hero .crumb:hover { color: #fff; }
.ind-hero .eyebrow { color: #5EEAD4; margin-top: 18px; }
.ind-hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 12px 0 16px;
  color: #fff;
  max-width: 18ch;
}
.ind-hero h1 .serif-italic { color: #5EEAD4; }
.ind-hero .lead {
  font-size: 19px;
  color: #E7E5E4;
  max-width: 56ch;
  line-height: 1.5;
  margin: 0;
}

.ind-stat-pop {
  display: flex;
  margin-top: -36px;
  position: relative;
  z-index: 2;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.ind-stat-pop .s {
  flex: 1;
  background: #fff;
  border: 1px solid var(--border);
  padding: 20px 22px;
}
.ind-stat-pop .s + .s { border-left: none; }
.ind-stat-pop .s .v {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--teal-darker);
  line-height: 1;
}
.ind-stat-pop .s .l {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}
@media (max-width: 560px) {
  .ind-stat-pop { flex-direction: column; }
  .ind-stat-pop .s + .s { border-left: 1px solid var(--border); border-top: none; }
}

.ind-body { padding: 56px 0 32px; }
.ind-body h2 {
  font-size: clamp(28px, 3.5vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 8px 0 24px;
  max-width: 22ch;
}

.ind-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.ind-tabs button {
  appearance: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 14px 20px;
  font: 700 14.5px var(--font-body);
  color: var(--ink-3);
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}
.ind-tabs button:hover { color: var(--ink); }
.ind-tabs button[aria-selected="true"] {
  color: var(--ink);
  border-color: var(--teal);
}
.ind-tabs button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
  border-radius: 4px;
}

.ind-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.ind-panel[hidden] { display: none; }
@media (max-width: 720px) { .ind-panel { grid-template-columns: 1fr; } }

.ind-wf {
  background: var(--bg-cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.ind-wf .ico {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-teal-light);
  color: var(--teal-darker);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  font-family: var(--font-mono);
}
.ind-wf strong {
  display: block;
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1.3;
}
.ind-wf p {
  font-size: 14px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.55;
}

.ind-quote {
  background: var(--bg-cream);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 40px 0 0;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  align-items: center;
}
@media (max-width: 600px) {
  .ind-quote { grid-template-columns: 1fr; gap: 12px; }
}
.ind-quote .av {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--teal-dark);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
}
.ind-quote blockquote {
  margin: 0;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.3;
  color: var(--ink);
}
.ind-quote .at {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 10px;
  font-weight: 600;
}
.ind-quote .caveat {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 8px;
  font-style: italic;
  opacity: 0.85;
}

.ind-deeper {
  background: var(--bg-cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin: 24px 0 0;
}
.ind-deeper .eyebrow { margin-bottom: 8px; }
.ind-deeper p { font-size: 16px; color: var(--ink-2); margin: 0 0 8px; line-height: 1.55; }
.ind-deeper a {
  color: var(--teal-darker);
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
}
.ind-deeper a:hover { text-decoration: underline; }

/* ─── motion ─── */
@keyframes ow-pulse  { 0%,100% { box-shadow: 0 0 0 0 currentColor } 50% { box-shadow: 0 0 0 6px transparent } }
@keyframes ow-floaty { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-6px) } }
@keyframes ow-shimmer{ 0% { background-position: -200% 0 } 100% { background-position: 200% 0 } }
@keyframes ow-marquee{ 0% { transform: translateX(0) } 100% { transform: translateX(-50%) } }
@keyframes ow-rise   { 0% { transform: translateY(8px); opacity: 0 } 100% { transform: translateY(0); opacity: 1 } }
@keyframes ow-spin-slow { 0% { transform: rotate(0deg) } 100% { transform: rotate(360deg) } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .marquee, .agent-card, .hero-badge, .live-dot { animation: none !important; }
}

/* ─── utilities ─── */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 32px; }
.mt-8 { margin-top: 64px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 32px; }
.hidden { display: none !important; }
