/* Four Boots — second pass, July 2026.
   Same brand (near-black #191718, pink→orange gradient, Inter body + Roboto display),
   competitor-informed hierarchy and editorial treatment:
   - fluid display type (clamp), tighter tracking, bigger scale contrast
   - system-mono "voice" for kickers, stats, numbering (no new font downloads)
   - gradient rationed to a few moments instead of every band border
   - stats as display-size numerals; numbered services; rule-separated sections
   Still no JS, still accessible: AA contrast, visible focus, reduced-motion respected. */

/* ---- Self-hosted fonts (no third-party requests) ---- */
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/fonts/inter-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/fonts/inter-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto'; font-style: normal; font-weight: 300; font-display: swap;
  src: url('/fonts/roboto-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/roboto-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/fonts/roboto-600.woff2') format('woff2');
}

:root {
  --dark: #191718;             /* the original near-black */
  --ink: #111827;              /* gray-900 body text on white */
  --muted: #4b5563;            /* gray-600 secondary text */
  --rule: #e5e7eb;             /* gray-200 borders */
  --pink: #e63a95;             /* gradient start (display use on dark) */
  --orange: #ec7130;           /* gradient end (display use on dark) */
  --pink-deep: #ad1a67;        /* link color on white — 5.9:1 */
  --pink-deeper: #8c1553;
  --grad: linear-gradient(90deg, #e63a95, #ec7130);
  --grad-ink: linear-gradient(90deg, #b91d6e, #bf4c0a); /* darkened: AA on white, incl. large text */
  --grad-button: linear-gradient(90deg, #b91d6e, #bf4c0a);
  --wash: #eff6ff;             /* blue-50 */
  --focus-light: #1f5aa8;
  --focus-dark: #ffd166;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { font-size: 112.5%; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  color: var(--ink);
  background: #ffffff;
}

/* ---- Skip link ---- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #ffffff;
  color: var(--dark);
  padding: 0.6rem 1rem;
  z-index: 10;
  font-weight: 600;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* ---- Focus visibility ---- */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--focus-light);
  outline-offset: 2px;
  border-radius: 2px;
}
.site-header a:focus-visible,
.band--dark a:focus-visible,
.page-hero a:focus-visible,
.site-footer a:focus-visible {
  outline-color: var(--focus-dark);
}

/* ---- Layout ---- */
.wrap {
  max-width: 52rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.wrap--wide { max-width: 62rem; }

main { padding-bottom: 3rem; }

/* ---- Header / nav (dark, uppercase) ---- */
.site-header {
  background: var(--dark);
  padding: 0.9rem 0;
}

.site-header nav {
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: #ffffff;
  text-decoration: none;
  margin-right: auto;
}
.brand:hover { text-decoration: underline; color: #ffffff; }

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: #ffffff;
  color: var(--dark);
  font-weight: 700;
  font-size: 0.85rem;
}

.site-header ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

.site-header ul a {
  color: #b8bcc2; /* 8:1 on #191718 */
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 500;
}
.site-header ul a:hover { color: #ffffff; text-decoration: underline; }

.site-header a[aria-current="page"] { color: #ffffff; font-weight: 700; }

.site-header .button {
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
}

/* Compact header on small screens: the nav must not eat half the first screen */
@media (max-width: 40rem) {
  .site-header { padding: 0.7rem 0; }
  .site-header nav { gap: 0.35rem 0.9rem; }
  .brand { font-size: 0.95rem; gap: 0.45rem; }
  .brand-mark { width: 1.8rem; height: 1.8rem; font-size: 0.75rem; }
  .site-header ul { gap: 0.25rem 0.9rem; }
  .site-header ul a { font-size: 0.72rem; letter-spacing: 0.05em; }
  .site-header .button { font-size: 0.78rem; padding: 0.4rem 0.8rem; }
}

/* ---- Links ---- */
a { color: var(--pink-deep); text-decoration: underline; text-underline-offset: 0.15em; }
a:hover { color: var(--pink-deeper); }

/* ---- Buttons ---- */
.button {
  display: inline-block;
  background: var(--grad-button);
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 700;
  padding: 0.75rem 1.3rem;
  border-radius: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(25, 23, 24, 0.25);
}
@media (prefers-reduced-motion: reduce) {
  .button, .card { transition: none !important; }
  .button:hover, .card:hover { transform: none !important; }
}

/* Outline button for the dark hero */
.button--outline {
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.4);
}
.button--outline:hover { background: rgba(255, 255, 255, 0.22); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

/* ---- Type ---- */
h1, h2, h3 {
  font-family: 'Roboto', 'Inter', -apple-system, sans-serif;
  line-height: 1.2;
  margin: 2.2rem 0 0.8rem;
}
h1 { font-size: 2.1rem; font-weight: 600; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 1.8rem); font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; font-weight: 600; font-family: 'Inter', sans-serif; }

p, ul, ol { margin: 0 0 1.1rem; }

.lede { font-size: 1.15rem; color: var(--muted); font-weight: 300; font-family: 'Roboto', sans-serif; }

.note { font-size: 0.95rem; color: var(--muted); }

/* Mono is the second voice: kickers, stats, numbering, microcopy */
.kicker {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.micro {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}

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

/* ---- Page hero (dark band with gradient headline) ---- */
.page-hero {
  background: var(--dark);
  color: #ffffff;
  padding: 3.2rem 0 3.6rem;
  border-bottom: 3px solid transparent;
  border-image: var(--grad) 1;
}
.page-hero h1 {
  margin-top: 0.5rem;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  background: var(--grad);
  background-clip: text;
  -webkit-background-clip: text;
  color: #f3a0c9; /* fallback if background-clip unsupported */
  -webkit-text-fill-color: transparent;
}
.page-hero .lede { color: rgba(255, 255, 255, 0.92); font-weight: 300; font-size: clamp(1.15rem, 2vw, 1.3rem); max-width: 40rem; }
.page-hero .note { color: rgba(255, 255, 255, 0.75); }
.page-hero .micro { color: rgba(255, 255, 255, 0.72); margin-top: 1rem; }
.page-hero p:last-child { margin-bottom: 0; }
.page-hero a { color: #ff9ecb; } /* 7.6:1 on #191718 */
.page-hero a:hover { color: #ffffff; }
.page-hero .kicker { color: rgba(255, 255, 255, 0.75); }

/* Homepage hero: the one big type moment */
.page-hero--home { padding: 5rem 0 5.2rem; }
.page-hero--home h1 {
  font-size: clamp(2.8rem, 7.5vw, 5rem);
  line-height: 1.04;
}
@media (max-width: 40rem) {
  .page-hero--home { padding: 3.2rem 0 3.6rem; }
}

/* ---- Content bands ---- */
.band { padding: 4rem 0 4.6rem; }
.band--dark {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.92);
}
.band--dark h2 {
  color: #ffffff;
  font-weight: 300;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
}
.band--dark a { color: #ff9ecb; }
.band--dark a:hover { color: #ffffff; }
.band--dark .note { color: rgba(255, 255, 255, 0.75); }
.band--dark .kicker { color: rgba(255, 255, 255, 0.7); }
.band--dark strong { color: #ffffff; }
.band--wash { background: var(--wash); }

/* Arrow lists on dark bands (interior pages) */
.band--dark ul > li, .band--dark ol > li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.9rem;
  font-weight: 300;
  font-family: 'Roboto', sans-serif;
  font-size: 1.1rem;
}
.band--dark ul, .band--dark ol { list-style: none; padding-left: 0; }
.band--dark ul > li::before, .band--dark ol > li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #ff7ab8;
  font-weight: 700;
}

/* Numbered steps on dark bands (mono numerals instead of arrows) */
.band--dark ol.steps { counter-reset: step; }
.band--dark ol.steps > li { padding-left: 3rem; counter-increment: step; margin-bottom: 1.15rem; }
.band--dark ol.steps > li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.85rem;
  color: #ff7ab8;
  top: 0.4rem;
}

/* ---- Statement + stats (the proof band) ---- */
.statement {
  font-family: 'Roboto', 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(1.9rem, 4.5vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0.4rem 0 1.2rem;
  background: var(--grad-ink);
  background-clip: text;
  -webkit-background-clip: text;
  color: #8c1553; /* fallback */
  -webkit-text-fill-color: transparent;
}

.stats {
  list-style: none;
  padding: 0;
  margin: 2.2rem 0 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: 1.6rem 1.6rem;
}
.stats li { margin: 0; }
.stat-num {
  display: block;
  font-family: 'Roboto', 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(2.1rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.02em;
  background: var(--grad-ink);
  background-clip: text;
  -webkit-background-clip: text;
  color: #8c1553;
  -webkit-text-fill-color: transparent;
}
.stat-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* ---- Numbered services (rule-separated, editorial) ---- */
.svc-list {
  list-style: none;
  counter-reset: svc;
  padding: 0;
  margin: 1.6rem 0 0;
}
.svc-list > li {
  counter-increment: svc;
  border-top: 1px solid var(--rule);
  padding: 1.7rem 0 1.5rem;
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  gap: 0 0.8rem;
}
.svc-list > li:last-child { border-bottom: 1px solid var(--rule); }
.svc-list > li::before {
  content: counter(svc, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--pink-deep);
  padding-top: 0.35rem;
}
.svc-list h3 { margin: 0 0 0.5rem; font-size: 1.25rem; grid-column: 2; }
.svc-list p { margin: 0; grid-column: 2; }
.also { font-size: 0.98rem; margin-top: 1.6rem; }

/* ---- Case studies (rule-separated) ---- */
.case { border-top: 1px solid rgba(17, 24, 39, 0.14); padding: 1.5rem 0 1.3rem; }
.case:last-of-type { border-bottom: 1px solid rgba(17, 24, 39, 0.14); margin-bottom: 1.4rem; }
.case h3 { margin: 0 0 0.5rem; font-size: 1.25rem; }
.case p:last-child { margin-bottom: 0; }

/* ---- Harness diagram (decorative SVG, dark band) ---- */
.diagram-scroll { overflow-x: auto; margin-top: 2rem; }
.diagram-scroll svg { display: block; width: 100%; min-width: 720px; height: auto; }
.dg-t { font-family: var(--mono); font-size: 15px; fill: rgba(255, 255, 255, 0.92); }
.dg-t--dim { fill: rgba(255, 255, 255, 0.62); font-size: 13px; }
.dg-t--big { font-size: 17px; letter-spacing: 0.14em; }
.dg-box { fill: rgba(255, 255, 255, 0.04); stroke: rgba(255, 255, 255, 0.35); }
.flow {
  fill: none;
  stroke: rgba(255, 255, 255, 0.55);
  stroke-width: 1.5;
  stroke-dasharray: 5 7;
}
.gate-dot { fill: #ff7ab8; }
@media (prefers-reduced-motion: no-preference) {
  .flow { animation: flowmove 1.4s linear infinite; }
  .gate-dot { animation: gatepulse 2.2s ease-in-out infinite; }
}
@keyframes flowmove { to { stroke-dashoffset: -12; } }
@keyframes gatepulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }

/* ---- Cards (interior pages) ---- */
.card {
  background: #ffffff;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1.4rem 1.5rem;
  margin: 0 0 1.25rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(25, 23, 24, 0.12);
}
.card h2, .card h3 { margin-top: 0; font-family: 'Inter', sans-serif; font-weight: 600; font-size: 1.15rem; }
.card :last-child { margin-bottom: 0; }

/* Check bullets inside cards */
.card ul { list-style: none; padding-left: 0; }
.card ul > li { position: relative; padding-left: 1.5rem; margin-bottom: 0.45rem; }
.card ul > li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #15803d; /* green-700, 4.7:1 on white */
  font-weight: 700;
}
.card ul.checks { font-size: 0.95rem; color: var(--muted); margin-top: 0.9rem; }

/* Icon chips (decorative, gradient, on card headings) */
.card-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.6rem;
}
.card-head h2, .card-head h3 { margin: 0; }
.icon-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 8px;
  background: var(--grad);
  color: #ffffff;
}
.icon-chip svg { width: 1.4rem; height: 1.4rem; }

/* Compliance strip (healthcare credibility badges) */
.badges {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.badges li {
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--wash);
  margin: 0;
}
.badges li::before { content: none; }
.band--dark .badges li, .page-hero .badges li {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.25);
  color: #ffffff;
}

/* Two-column card grid on wider screens */
@media (min-width: 44rem) {
  .card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
  .card-grid .card { margin-bottom: 0; }
}

/* ---- Fact strip (interior pages) ---- */
.facts {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.9rem;
}
.facts li {
  background: #ffffff;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  margin: 0;
  box-shadow: 0 4px 12px rgba(25, 23, 24, 0.06);
}
.facts li::before { content: none; }

/* ---- Tables ---- */
table { border-collapse: collapse; width: 100%; margin: 0 0 1.25rem; font-size: 0.98rem; }
caption { text-align: left; font-weight: 600; margin-bottom: 0.4rem; }
th, td { border: 1px solid var(--rule); padding: 0.55rem 0.7rem; text-align: left; vertical-align: top; }
th { background: #f9fafb; }

/* ---- CTA block (dark, gradient-bordered: the closing moment) ---- */
.cta-block {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.92);
  border-radius: 10px;
  border: 3px solid transparent;
  border-image: var(--grad) 1;
  padding: 1.8rem 1.6rem;
  margin: 2.5rem 0;
}
.cta-block h2 { margin-top: 0; color: #ffffff; font-weight: 300; }
.cta-block a { color: #ff9ecb; }
.cta-block a:hover { color: #ffffff; }
.cta-block .note { color: rgba(255, 255, 255, 0.75); }
.cta-block .micro { color: rgba(255, 255, 255, 0.72); }
.cta-block strong { color: #ffffff; }
.cta-block .button { margin: 0.3rem 0; }
.cta-block :last-child { margin-bottom: 0; }

/* ---- Team ---- */
.team-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.5rem;
}
.team-card .role {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
}
.photo-ring {
  display: inline-block;
  width: fit-content;
  justify-self: start;
  padding: 3px;
  border-radius: 50%;
  background: var(--grad);
  line-height: 0;
}
.team-photo {
  display: block;
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 50%;
  object-fit: cover;
}
@media (min-width: 40rem) {
  .team-card--with-photo {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.4rem;
    align-items: start;
  }
  .team-card--with-photo .photo-ring { margin-top: 0.3rem; }
}

/* ---- Footer (black) ---- */
.site-footer {
  background: #000000;
  color: #b8bcc2;
  margin-top: 3rem;
  padding: 2.2rem 0 2.6rem;
  font-size: 0.95rem;
  border-top: 3px solid transparent;
  border-image: var(--grad) 1;
}
.site-footer a { color: #ff9ecb; }
.site-footer a:hover { color: #ffffff; }
.site-footer ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
}
.site-footer strong { color: #ffffff; }

/* ---- Motion & print ---- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media print {
  .site-header, .site-footer, .skip-link { display: none; }
  .page-hero, .band--dark, .cta-block { background: #fff; color: #000; border: 1px solid #000; }
  .page-hero h1, .statement, .stat-num {
    -webkit-text-fill-color: initial;
    color: #000;
    background: none;
  }
}
