/* ============================================================
   Haut.AI — Clinical Software landing page
   Built on the Haut.AI design system (Inter, brand blue, ink)
   ============================================================ */

:root {
  /* tweakable bridge vars (set by tweaks.jsx) */
  --accent: #1d6ff3;
  --accent-soft: rgba(29,111,243,0.08);
  --accent-ring: rgba(29,111,243,0.22);

  --maxw: 1200px;
  --gutter: 40px;
  --sec-pad: 104px;
  --nav-h: 68px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent-ring); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; line-height: 1;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 999px;
  background: var(--accent);
}
.h-display {
  font-weight: 500; font-size: clamp(38px, 5.4vw, 64px); line-height: 1.02;
  letter-spacing: var(--tracking-display); margin: 0;
}
.h2 {
  font-weight: 500; font-size: clamp(30px, 3.6vw, 40px); line-height: 1.08;
  letter-spacing: var(--tracking-display); margin: 0;
}
.lede {
  font-weight: 400; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5;
  letter-spacing: -0.01em; color: var(--ink-o-70); margin: 0;
}
.section-head { max-width: 760px; }
.section-head .h2 { margin-top: 16px; }
.section-head .lede { margin-top: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 52px; padding: 0 26px; border: 0; border-radius: var(--radius-xl);
  font-family: inherit; font-size: 16px; font-weight: 500;
  letter-spacing: var(--tracking-btn); cursor: pointer;
  transition: background .16s cubic-bezier(.2,0,0,1), box-shadow .16s, opacity .16s, color .16s, transform .16s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: #1454D4; color: #fff; box-shadow: var(--shadow-cta-md); }
.btn-primary:hover { background: #1149b8; box-shadow: 0 6px 22px -4px var(--accent-ring); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { color: var(--accent); }
.btn-outline { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--divider); }
.btn-outline:hover { box-shadow: inset 0 0 0 1px var(--ink-o-40); }
.btn-sm { height: 42px; padding: 0 18px; font-size: 15px; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 16px; font-weight: 500; letter-spacing: var(--tracking-btn); color: var(--accent);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .16s; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-top: 2px solid #1454D4;
  border-bottom: 1px solid var(--divider-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; height: 100%; position: relative; }
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo svg, .nav-logo img { height: 50px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 8px; position: absolute; left: 50%; transform: translateX(-50%); }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 5px; padding: 9px 12px; border: 0;
  background: transparent; font-family: inherit; font-size: 15px; font-weight: 500;
  letter-spacing: -0.01em; color: #6b7280; border-radius: var(--radius-sm);
  cursor: pointer; transition: color .15s; white-space: nowrap;
}
.nav-link:hover { color: #1454D4; background: transparent; }
.nav-caret { width: 14px; height: 14px; opacity: .5; transition: transform .18s; }
.nav-item:hover .nav-caret { transform: rotate(180deg); }
.nav-menu {
  position: absolute; top: calc(100% + 4px); left: 0; min-width: 212px;
  background: var(--white); border: 1px solid var(--divider); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift); padding: 8px; display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .16s, transform .16s, visibility .16s; z-index: 60;
}
.nav-menu::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.nav-item:hover .nav-menu, .nav-item:focus-within .nav-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-menu a {
  padding: 9px 12px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500;
  color: var(--ink-o-70); white-space: nowrap; transition: color .15s, background .15s;
}
.nav-menu a:hover { color: var(--ink); background: var(--bg-tint); }
.nav-cta { margin-left: 10px; background: #fff; color: #1454D4; border-radius: 999px; box-shadow: inset 0 0 0 1.5px #1454D4; font-weight: 600; }
.nav-cta:hover { background: rgba(20,84,212,.06); box-shadow: inset 0 0 0 1.5px #1454D4; transform: none; }
.nav-burger {
  display: none; margin-left: auto; width: 42px; height: 42px; flex: none;
  background: transparent; border: 0; cursor: pointer; padding: 10px; border-radius: var(--radius-sm);
}
.nav-burger span { display: block; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.nav-burger span + span { margin-top: 5px; }
body.nav-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
body.nav-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 72px; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.04fr 0.96fr; gap: 56px; align-items: center;
}
.hero-eyebrow { margin-bottom: 22px; }
.hero h1 { margin-bottom: 24px; max-width: 14ch; }
.hero .lede { max-width: 46ch; }
.hero-cta { display: flex; align-items: center; gap: 18px; margin-top: 34px; flex-wrap: wrap; }
.hero-proof { margin-top: 44px; }
.hero-proof-label {
  font-size: 12.5px; font-weight: 500; letter-spacing: 0.02em; color: var(--ink-o-40);
  text-transform: none; margin-bottom: 14px;
}
.proof-row { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.proof-logo { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink-o-70); }
.proof-logo.muted { font-size: 14px; font-weight: 500; color: var(--ink-o-40); letter-spacing: -0.01em; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 24px 40px; }
.hero-stat { display: flex; flex-direction: column; gap: 3px; }
.hero-stat b { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: var(--accent); }
.hero-stat span { font-size: 13px; line-height: 18px; color: var(--ink-o-60); max-width: 165px; }

/* ---------- Brand logo wall ---------- */
.brands { padding: 8px 0 8px; }
.brands-label { text-align: center; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-o-40); margin: 0 auto 64px; max-width: none; line-height: 1.5; white-space: nowrap; }
.brands-logos { display: flex; flex-direction: column; align-items: center; gap: 30px; max-width: 1000px; margin: 0 auto 8px; }
.brands-row { display: flex; flex-wrap: nowrap; align-items: center; justify-content: center; gap: clamp(20px, 2.2vw, 40px); }
.brands-logos img { height: 28px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .78; transition: opacity .18s; }
.brands-logos img.lg-box { height: 36px; }
.brands-logos img:hover { opacity: 1; }
@media (max-width: 768px) { .brands-label { white-space: normal; margin-bottom: 40px; } .brands-row { flex-wrap: wrap; gap: 28px 36px; } }

.hero-media { position: relative; }
.hero-photo {
  position: relative; border-radius: var(--radius-3xl); overflow: hidden;
  aspect-ratio: 4 / 4.4; background: var(--bg-tint); box-shadow: var(--shadow-lift);
}
.hero-photo img, .hero-photo image-slot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: linear-gradient(rgba(0,0,0,.05), rgba(0,0,0,.18));
}
.hero-chip {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 11px;
  padding: 13px 16px; background: rgba(255,255,255,.9);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg); box-shadow: 0 10px 30px -10px rgba(0,0,0,.25);
}
.hero-chip .dot { width: 9px; height: 9px; border-radius: 999px; background: var(--accent); }
.hero-chip b { font-size: 22px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.hero-chip span { font-size: 12px; color: var(--ink-o-60); margin-left: 5px; }
.hero-chip-tl { top: 22px; left: -26px; }
.hero-chip-br { bottom: 26px; right: -22px; }

/* Hero variants (tweakable) */
body[data-hero="text"] .hero-grid { grid-template-columns: 1fr; max-width: 920px; margin: 0 auto; text-align: center; }
body[data-hero="text"] .hero h1, body[data-hero="text"] .hero .lede { max-width: none; }
body[data-hero="text"] .eyebrow, body[data-hero="text"] .hero-cta, body[data-hero="text"] .proof-row { justify-content: center; }
body[data-hero="text"] .hero-media { display: none; }
body[data-hero="text"] .hero-proof-label { text-align: center; }

body[data-hero="fullbleed"] .hero { padding: 0; }
body[data-hero="fullbleed"] .hero-grid {
  grid-template-columns: 1fr; min-height: 600px; align-items: end;
  border-radius: 0; position: relative; padding: 60px var(--gutter) 64px;
  max-width: none; color: #fff;
}
body[data-hero="fullbleed"] .hero-bg { display: block; }
body[data-hero="fullbleed"] .hero-media { display: none; }
body[data-hero="fullbleed"] .hero h1, body[data-hero="fullbleed"] .hero .lede { max-width: 22ch; color: #fff; }
body[data-hero="fullbleed"] .lede { color: rgba(255,255,255,.86); }
body[data-hero="fullbleed"] .hero-proof-label { color: rgba(255,255,255,.6); }
body[data-hero="fullbleed"] .proof-logo { color: rgba(255,255,255,.9); }
body[data-hero="fullbleed"] .proof-logo.muted { color: rgba(255,255,255,.55); }
body[data-hero="fullbleed"] .btn-outline { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.hero-bg { display: none; position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,18,32,.78) 0%, rgba(11,18,32,.55) 45%, rgba(11,18,32,.25) 100%); }
body[data-hero="fullbleed"] .hero-content { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; width: 100%; }

/* ---------- Block 1.5: three-setting narrative band ---------- */
.settings-band { padding: var(--sec-pad) 0; background: var(--white); }
.settings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; }
.scene { display: flex; flex-direction: column; }
.scene-media {
  position: relative; border-radius: var(--radius-2xl); overflow: hidden;
  aspect-ratio: 4 / 5; background: var(--bg-tint); box-shadow: var(--shadow-lift);
}
.scene-media image-slot, .scene-media .scene-fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene-fallback { object-fit: cover; }
.scene-num {
  position: absolute; z-index: 3; top: 16px; left: 16px;
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent);
}
.scene-num b { color: var(--ink); }
.scene-body { padding: 22px 4px 0; }
.scene-body h3 { font-size: 19px; font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; margin: 0 0 7px; }
.scene-body p { font-size: 14.5px; line-height: 1.5; color: var(--ink-o-70); margin: 0; }
.scene-tag {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 11px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: var(--accent);
  padding: 5px 11px; border-radius: 999px; background: var(--accent-soft);
}
.settings-note { margin-top: 30px; display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--ink-o-60); }
.settings-note svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.scene-connect { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 30px; flex-wrap: wrap; font-size: 13px; font-weight: 500; color: var(--ink-o-60); }
.scene-connect .dot { width: 7px; height: 7px; border-radius: 999px; background: var(--accent); }
.scene-connect .arr { color: var(--ink-o-25); }

/* standout statement: validation-study takeaway — full-width grey band */
.settings-statement {
  margin-top: clamp(40px, 5vw, 72px);
  background: var(--bg-dim);
  padding: var(--sec-pad) 0;
}
.settings-statement .ss-eyebrow {
  display: block; text-align: center; margin-bottom: 22px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent);
}
.ss-text {
  margin: 0 auto; max-width: 960px; text-align: center; text-wrap: balance;
  font-size: clamp(22px, 2.5vw, 33px); line-height: 1.36; font-weight: 500;
  letter-spacing: -0.02em; color: var(--ink);
}
.ss-hl { color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Section base ---------- */
.section { padding: var(--sec-pad) 0; }
.section.tint { background: var(--bg-dim); }
.section.ink { background: var(--ink); color: #fff; }
.section.ink .lede { color: rgba(255,255,255,.66); }

/* ---------- Inline CTA bands ---------- */
.cta-band { background: var(--ink); padding: 54px 0; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 44px; flex-wrap: wrap; }
.cta-band-text { margin: 0; font-size: clamp(21px, 2.3vw, 28px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; color: #fff; max-width: 720px; text-wrap: balance; }
.cta-band .btn-primary { flex: none; }

/* ---------- Block 2: numbered steps ---------- */
.steps-layout { display: grid; grid-template-columns: 1fr 1.02fr; gap: 56px; margin-top: 52px; align-items: start; }
.steps-list { display: flex; flex-direction: column; gap: 6px; }
.step {
  border-radius: var(--radius-lg); padding: 22px 24px; cursor: pointer;
  border: 1px solid transparent; transition: background .18s, border-color .18s;
}
.step:hover { background: var(--bg-tint); }
.step.active { background: var(--white); border-color: var(--divider); box-shadow: var(--shadow-lift); }
.step-head { display: flex; align-items: center; gap: 16px; }
.step-num {
  flex: none; width: 38px; height: 38px; border-radius: 999px;
  display: grid; place-items: center; font-size: 15px; font-weight: 600;
  background: var(--bg-tint); color: var(--ink-o-60); transition: background .18s, color .18s;
}
.step.active .step-num { background: #4f8ef0; color: #fff; }
.step-title { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.step-kind { margin-left: auto; }
.tag {
  display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--accent-soft); color: var(--accent); white-space: nowrap;
}
.tag.neutral { background: var(--bg-tint); color: var(--ink-o-60); }
.step-body { overflow: hidden; max-height: 0; transition: max-height .3s cubic-bezier(.2,0,0,1); }
.step.active .step-body { max-height: 420px; }
.step-body-inner { padding: 18px 0 4px 54px; }
.step-meta { display: flex; gap: 28px; flex-wrap: wrap; margin-bottom: 16px; }
.step-meta div { display: flex; flex-direction: column; gap: 3px; }
.step-meta dt { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-o-40); }
.step-meta dd { margin: 0; font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
.step-endpoints { font-size: 15px; line-height: 1.5; color: var(--ink-o-70); margin-bottom: 16px; }
.step-claim {
  display: flex; gap: 11px; padding: 14px 16px; border-radius: var(--radius-md);
  background: var(--accent-soft); font-size: 14.5px; line-height: 1.45; color: var(--ink);
}
.step-claim svg { flex: none; width: 17px; height: 17px; color: var(--accent); margin-top: 1px; }
.step-claim b { font-weight: 600; }

/* Media panel + mockups */
.steps-media { position: sticky; top: 96px; }
.mockup {
  border-radius: var(--radius-2xl); background: var(--white); overflow: hidden;
  border: 1px solid var(--divider); box-shadow: var(--shadow-lift);
}
.mockup-bar {
  display: flex; align-items: center; gap: 8px; padding: 13px 16px;
  border-bottom: 1px solid var(--divider-soft); background: var(--bg-dim);
}
.mockup-bar .dots { display: flex; gap: 6px; }
.mockup-bar .dots i { width: 10px; height: 10px; border-radius: 999px; background: var(--ink-o-15); }
.mockup-bar .mb-title { font-size: 13px; font-weight: 500; color: var(--ink-o-60); margin-left: 6px; }
.mockup-bar .mb-pill { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 4px 9px; border-radius: 999px; }
.mockup-body { padding: 22px; min-height: 360px; }
.mk-panel { display: none; }
.mk-panel.active { display: block; }

.mk-h { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 4px; }
.mk-sub { font-size: 12.5px; color: var(--ink-o-60); margin: 0 0 16px; }
.mk-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.mk-tile { padding: 13px; border-radius: var(--radius-md); background: var(--bg-dim); border: 1px solid var(--divider-soft); }
.mk-tile b { display: block; font-size: 22px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.mk-tile span { font-size: 11px; color: var(--ink-o-60); }
.mk-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--divider-soft); }
.mk-row:last-child { border-bottom: 0; }
.mk-row .mk-name { font-size: 13.5px; font-weight: 500; flex: 1; }
.mk-track { flex: 1.3; height: 7px; border-radius: 999px; background: var(--bg-tint); overflow: hidden; }
.mk-track i { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.mk-val { font-size: 12.5px; font-weight: 600; color: var(--ink-o-70); width: 42px; text-align: right; font-variant-numeric: tabular-nums; }

/* line chart mock */
.mk-chart { position: relative; height: 188px; margin: 6px 0 8px; }
.mk-chart svg { width: 100%; height: 100%; overflow: visible; }
.mk-legend { display: flex; gap: 18px; }
.mk-legend span { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-o-60); }
.mk-legend i { width: 16px; height: 3px; border-radius: 2px; }

/* split face mock */
.mk-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mk-split figure { margin: 0; border-radius: var(--radius-md); overflow: hidden; position: relative; aspect-ratio: 3/4; background: var(--bg-tint); }
.mk-split img { width: 100%; height: 100%; object-fit: cover; }
.mk-split figcaption { position: absolute; left: 10px; top: 10px; font-size: 11px; font-weight: 600; color: #fff; background: rgba(0,0,0,.5); padding: 4px 9px; border-radius: 999px; backdrop-filter: blur(8px); }

/* per-subject photo mock */
.mk-photo { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4/3; background: var(--bg-tint); }
.mk-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Block 2: Evidence layout (tweak) ---------- */
.steps-evidence { display: none; }
/* default = mockup mode */
body[data-studylayout="evidence"] .mockup { display: none; }
body[data-studylayout="evidence"] .steps-evidence { display: block; }
/* collapse the left accordion bodies — titles become a clean selectable menu */
body[data-studylayout="evidence"] .step-body { max-height: 0 !important; }
body[data-studylayout="evidence"] .steps-list { gap: 4px; }
body[data-studylayout="evidence"] .step { padding: 16px 20px; }
body[data-studylayout="evidence"] .steps-layout { grid-template-columns: 0.92fr 1.08fr; }

.steps-evidence {
  position: relative; overflow: hidden;
  border-radius: var(--radius-2xl); background: var(--white);
  border: 1px solid var(--divider); box-shadow: var(--shadow-lift);
  padding: 36px 36px 32px;
}
.steps-evidence::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: var(--accent);
}
.ev-panel { display: none; }
.ev-panel.active { display: block; }

.ev-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.ev-step { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-o-40); white-space: nowrap; }
.ev-title { font-size: 30px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.06; margin: 0 0 24px; }
.ev-hero {
  display: flex; align-items: baseline; gap: 18px;
  padding-bottom: 24px; margin-bottom: 22px; border-bottom: 1px solid var(--divider-soft);
}
.ev-num {
  flex: none; font-size: clamp(58px, 6.4vw, 84px); font-weight: 600;
  letter-spacing: -0.05em; line-height: 0.82; color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.ev-cap { font-size: 14px; line-height: 1.4; color: var(--ink-o-60); }
.ev-grid { display: flex; gap: 44px; margin-bottom: 24px; }
.ev-field dt { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-o-40); margin-bottom: 5px; }
.ev-field dd { margin: 0; font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.ev-block { margin-bottom: 4px; }
.ev-label { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-o-40); margin-bottom: 7px; }
.ev-block p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-o-70); }

/* ---------- Block 3: capability cards ---------- */
.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 52px; }
.cap-card {
  display: flex; flex-direction: column; padding: 26px 24px 24px; border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid var(--divider); transition: box-shadow .18s, transform .18s, border-color .18s;
}
.cap-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); border-color: var(--accent-ring); }
.cap-ico {
  width: 46px; height: 46px; border-radius: var(--radius-md); display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 18px;
}
.cap-ico svg { width: 24px; height: 24px; }
.cap-card h3 { font-size: 18px; font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; margin: 0 0 9px; }
.cap-card p { font-size: 14px; line-height: 1.5; color: var(--ink-o-70); margin: 0 0 18px; }
.cap-foot { margin-top: auto; border-top: 1px solid var(--divider-soft); padding-top: 14px; display: flex; flex-direction: column; gap: 7px; }
.cap-foot .row { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; }
.cap-foot .row span:first-child { color: var(--ink-o-40); font-weight: 500; }
.cap-foot .row span:last-child { color: var(--ink-o-80); font-weight: 500; text-align: right; }

/* ---------- Block 4: metrics module ---------- */
.metrics-layout { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 56px; margin-top: 52px; align-items: start; }
.mpanel { display: none; }
.mpanel.active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.mgroup { margin-bottom: 22px; }
.mgroup h4 { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-o-40); margin: 0 0 12px; }
.mchips { display: flex; flex-wrap: wrap; gap: 8px; }
.mchip {
  padding: 8px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--divider);
  font-size: 13.5px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink-o-80);
  transition: all .14s; cursor: default;
}
.metrics-media { position: sticky; top: 96px; }
.metrics-photo { position: relative; border-radius: var(--radius-2xl); overflow: hidden; aspect-ratio: 4/4.5; background: var(--bg-tint); box-shadow: var(--shadow-lift); }
.metrics-photo img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
.metrics-photo .mp-cap {
  position: absolute; left: 18px; bottom: 18px; right: 18px; display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px; border-radius: var(--radius-md); background: rgba(255,255,255,.88);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.mp-cap b { font-size: 15px; font-weight: 600; letter-spacing: -0.02em; }
.mp-cap span { font-size: 12.5px; color: var(--ink-o-60); }

/* ---------- Block 5: validation 2x2 ---------- */
.val-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; }
.val-card { border-radius: var(--radius-lg); border: 1px solid var(--divider); overflow: hidden; background: var(--white); display: flex; flex-direction: column; }
.val-visual { height: 200px; position: relative; overflow: hidden; background: var(--accent-soft); }
.val-visual img { width: 100%; height: 100%; object-fit: cover; }
.val-settings { display: flex; height: 100%; }
.val-settings .vs { flex: 1; position: relative; display: flex; align-items: flex-end; padding: 12px; border-right: 1px solid rgba(255,255,255,.5); }
.val-settings .vs:last-child { border-right: 0; }
.val-settings .vs span { font-size: 11px; font-weight: 600; color: #fff; text-shadow: var(--shadow-text); position: relative; z-index: 1; }
.val-settings .vs::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent, rgba(0,0,0,.4)); }
.val-icc { display: grid; place-items: center; background: var(--ink); color: #fff; gap: 4px; }
.val-icc b { font-size: 46px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.val-icc span { font-size: 12.5px; color: rgba(255,255,255,.6); }
.val-liqa { display: grid; place-items: center; background-size: cover; background-position: center; }
.val-liqa::after { content: ""; position: absolute; inset: 0; background: rgba(11,18,32,.32); }
.liqa-frame { position: relative; z-index: 1; width: 96px; height: 120px; border-radius: 14px; }
.liqa-frame::before, .liqa-frame::after { content: ""; position: absolute; width: 26px; height: 26px; border: 3px solid #fff; }
.liqa-frame::before { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 10px; }
.liqa-frame::after { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 10px; }
.liqa-tag { position: absolute; z-index: 2; bottom: 14px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; background: rgba(255,255,255,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-size: 12px; font-weight: 600; color: var(--success); white-space: nowrap; }
.liqa-tag svg { width: 15px; height: 15px; }
.val-demo { display: flex; flex-direction: column; justify-content: center; padding: 20px 24px; gap: 12px; }
.val-demo .vd-row { display: flex; align-items: center; gap: 12px; }
.val-demo .vd-av { width: 34px; height: 34px; border-radius: 999px; background: var(--accent-soft); flex: none; }
.val-demo .vd-bar { flex: 1; height: 8px; border-radius: 999px; background: var(--bg-tint); overflow: hidden; }
.val-demo .vd-bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.val-text { padding: 24px; }
.val-text h3 { font-size: 19px; font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; margin: 0 0 9px; }
.val-text p { font-size: 14.5px; line-height: 1.5; color: var(--ink-o-70); margin: 0; }
.val-note { margin-top: 26px; display: flex; gap: 10px; align-items: center; font-size: 13.5px; color: var(--ink-o-60); }
.val-note svg { width: 17px; height: 17px; color: var(--accent); flex: none; }

/* ---------- Block 6: comparison ---------- */
.cmp-wrap { margin-top: 52px; border-radius: var(--radius-2xl); border: 1px solid var(--divider); overflow: hidden; background: var(--white); }
.cmp-table { width: 100%; border-collapse: collapse; }
.cmp-table th, .cmp-table td { padding: 18px 24px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--divider-soft); }
.cmp-table thead th { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-o-40); background: var(--bg-dim); }
.cmp-table thead th.col-haut { color: var(--accent); }
.cmp-table tbody td:first-child { font-size: 14px; font-weight: 500; color: var(--ink-o-60); width: 26%; }
.cmp-table td.col-cro { font-size: 15px; color: var(--ink-o-70); width: 37%; }
.cmp-table td.col-haut { font-size: 15px; font-weight: 500; color: var(--ink); width: 37%; background: var(--accent-soft); }
.cmp-table tr:last-child td { border-bottom: 0; }
.cmp-table .with-ico { display: inline-flex; align-items: center; gap: 9px; }
.cmp-table .with-ico svg { width: 17px; height: 17px; color: var(--accent); flex: none; }
.cmp-placeholder { font-style: normal; color: var(--ink-o-40); font-weight: 500; }
.cmp-placeholder a { color: var(--accent); border-bottom: 1px solid var(--accent-ring); }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 24px; }

/* ROI highlight (economics) */
.econ-roi { display: flex; align-items: center; gap: 28px; margin-top: 36px; padding: 26px 32px; border-radius: var(--radius-2xl); background: var(--accent-soft); border: 1px solid var(--accent-ring); flex-wrap: wrap; }
.econ-roi-fig { display: flex; align-items: baseline; gap: 11px; flex: none; }
.econ-roi-fig b { font-size: clamp(48px, 6vw, 72px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.econ-roi-fig span { font-size: 16px; font-weight: 600; color: var(--ink-o-70); }
.econ-roi-note { margin: 0; flex: 1; min-width: 260px; font-size: 16px; line-height: 1.5; color: var(--ink-o-70); }
.econ-roi-foot { margin: 12px 0 0; font-size: 13px; line-height: 1.4; color: var(--ink-o-40); }

/* How data collection works (process strip) */
.dataflow { background: #eaf1fd; }
.flow-steps { list-style: none; margin: 52px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.flow-step { background: var(--white); border: 1px solid var(--divider); border-radius: var(--radius-lg); padding: 22px 20px 20px; display: flex; flex-direction: column; }
.flow-num { width: 34px; height: 34px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 15px; font-weight: 600; display: grid; place-items: center; margin-bottom: 15px; }
.flow-step h3 { font-size: 16px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; margin: 0 0 7px; }
.flow-step p { font-size: 13.5px; line-height: 1.5; color: var(--ink-o-70); margin: 0; }
.flow-step p b { font-weight: 600; color: var(--ink); }
.flow-note { margin-top: 30px; display: inline-flex; align-items: center; gap: 11px; font-size: 17px; color: var(--white); background: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 14px 26px; font-weight: 500; box-shadow: 0 6px 20px rgba(20,84,212,0.20); }
.flow-note svg { width: 20px; height: 20px; color: var(--white); flex: none; }
.flow-note b { font-weight: 700; color: var(--white); }
@media (max-width: 980px) { .flow-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .flow-steps { grid-template-columns: 1fr; } }
/* Workflow — alternating image + step rows */
.wf-rows { margin-top: 52px; display: flex; flex-direction: column; gap: 56px; }
.wf-row { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 56px; align-items: center; }
.wf-row.rev .wf-media { order: 2; }
.wf-row.rev .wf-copy { order: 1; }
.wf-copy { display: flex; flex-direction: column; gap: 26px; }
.wf-step { display: flex; gap: 16px; align-items: flex-start; }
.wf-step .flow-num { flex: none; margin-bottom: 0; }
.wf-step h3 { font-size: 20px; font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; margin: 2px 0 6px; }
.wf-step p { font-size: 15px; line-height: 1.55; color: var(--ink-o-70); margin: 0; }
.wf-step p b { font-weight: 600; color: var(--ink); }
.wf-media { height: 300px; border-radius: var(--radius-lg); overflow: hidden; background: transparent; display: flex; align-items: center; justify-content: center; }
.wf-media img { display: block; width: 100%; height: auto; max-height: 100%; border-radius: var(--radius-lg); }
.wf-phone { background: #eaeff7; }
.wf-phone img { height: 84%; width: auto; max-width: 92%; object-fit: contain; border-radius: 14px; filter: drop-shadow(0 12px 26px rgba(11,18,32,.18)); }
.dataflow { overflow-x: clip; }
@media (max-width: 900px) {
  .wf-row, .wf-row.rev { grid-template-columns: 1fr; gap: 28px; }
  .wf-row.rev .wf-media, .wf-row.rev .wf-copy { order: 0; }
  .wf-copy { flex-direction: row; flex-wrap: wrap; gap: 24px; }
  .wf-step { flex: 1 1 240px; }
}
@media (max-width: 560px) { .wf-copy { flex-direction: column; } }
.stat-card { padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--divider); background: var(--white); }
.stat-card h4 { font-size: 16px; font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; margin: 0 0 8px; }
.stat-card p { font-size: 13.5px; line-height: 1.5; color: var(--ink-o-70); margin: 0; }

/* ---------- Blocks 7/8: accordions ---------- */
.acc-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; margin-top: 0; align-items: start; }
.acc-aside { position: sticky; top: 96px; }
.acc-aside .lede { margin-top: 18px; }
.acc-list { display: flex; flex-direction: column; }
.acc-item { border-bottom: 1px solid var(--divider); }
.acc-item:first-child { border-top: 1px solid var(--divider); }
.acc-q {
  display: flex; align-items: center; gap: 18px; width: 100%; text-align: left;
  padding: 22px 4px; background: none; border: 0; cursor: pointer; font-family: inherit;
  font-size: 18px; font-weight: 500; letter-spacing: -0.02em; color: var(--ink);
}
.acc-q:hover { color: var(--accent); }
.acc-ico { margin-left: auto; flex: none; width: 24px; height: 24px; position: relative; }
.acc-ico::before, .acc-ico::after { content: ""; position: absolute; background: var(--accent); border-radius: 2px; transition: transform .22s; }
.acc-ico::before { top: 11px; left: 4px; width: 16px; height: 2px; }
.acc-ico::after { top: 4px; left: 11px; width: 2px; height: 16px; }
.acc-item.open .acc-ico::after { transform: scaleY(0); }
.acc-a { overflow: hidden; max-height: 0; transition: max-height .3s cubic-bezier(.2,0,0,1); }
.acc-item.open .acc-a { max-height: 460px; }
.acc-a-inner { padding: 0 42px 24px 0; font-size: 15px; line-height: 1.6; color: var(--ink-o-70); }
.acc-steps { display: grid; gap: 10px; margin-top: 6px; }
.acc-steps .as { display: grid; grid-template-columns: 96px 1fr; gap: 14px; }
.acc-steps .as b { color: var(--accent); font-size: 13px; font-weight: 600; }

/* SkinChat-style "why choose" card accordion (scoped, leaves FAQ untouched) */
.acc-why { margin-top: 0; }
.acc-why-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.acc-why-head .h2 { margin-top: 14px; }
.acc-why-head .lede { margin-top: 16px; }
.acc-cards { max-width: 860px; margin: 0 auto; gap: 14px; }
.acc-cards .acc-item { border: 1px solid var(--divider); border-radius: var(--radius-lg); background: var(--white); transition: border-color .2s, box-shadow .2s; }
.acc-cards .acc-item.open { border-color: var(--accent-ring); box-shadow: var(--shadow-lift); }
.acc-cards .acc-q { padding: 22px 24px; gap: 16px; font-size: 17px; font-weight: 600; }
.acc-cards .acc-ico { width: 38px; height: 38px; border-radius: 999px; background: var(--accent-soft); transition: background .2s; }
.acc-cards .acc-ico::before { top: 18px; left: 12px; width: 14px; height: 2px; }
.acc-cards .acc-ico::after { top: 12px; left: 18px; width: 2px; height: 14px; }
.acc-cards .acc-item.open .acc-ico { background: var(--accent); }
.acc-cards .acc-item.open .acc-ico::before, .acc-cards .acc-item.open .acc-ico::after { background: #fff; }
.acc-cards .acc-a-inner { padding: 0 24px 24px; }

/* ---------- Block 9: feature pills ---------- */
.pills-section { padding: var(--sec-pad) 0; background: var(--bg-dim); }
.pills { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 940px; margin: 30px auto 0; }
.pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 12px 18px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--divider); font-size: 14.5px; font-weight: 500; letter-spacing: -0.01em;
}
.pill svg { width: 17px; height: 17px; color: var(--accent); }

/* ---------- Block 10: demo CTA ---------- */
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 52px; align-items: center; }
.cta-cards { display: flex; flex-direction: column; gap: 14px; }
.cta-card {
  display: flex; align-items: flex-start; gap: 16px; padding: 22px; border-radius: var(--radius-lg);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); transition: background .16s;
}
.cta-card:hover { background: rgba(255,255,255,.1); }
.cta-card .cc-ico { flex: none; width: 42px; height: 42px; border-radius: var(--radius-md); display: grid; place-items: center; background: rgba(255,255,255,.1); color: #fff; }
.cta-card .cc-ico svg { width: 22px; height: 22px; }
.cta-card h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 5px; color: #fff; }
.cta-card p { font-size: 13.5px; line-height: 1.5; color: rgba(255,255,255,.62); margin: 0 0 10px; }
.cta-card .link-arrow { color: #fff; font-size: 14px; }
.cta-main h2 { color: #fff; }
.cta-main .lede { color: rgba(255,255,255,.7); margin-top: 18px; max-width: 42ch; }
.cta-main .btn-primary { margin-top: 30px; background: #fff; color: var(--ink); }
.cta-main .btn-primary:hover { background: rgba(255,255,255,.9); }

/* ---------- Get in touch + Footer (soft-blue, matching the live site) ---------- */
#demo.section { background: linear-gradient(180deg, #e7eefc 0%, #eef4fd 100%); }
.footer { background: #eef4fd; color: var(--ink-o-60); padding: 0 0 36px; }
.footer-bottom { padding-top: 28px; border-top: 1px solid var(--divider-soft); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; align-items: center; }
.footer-legal { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.footer-legal a { color: var(--ink-o-70); transition: color .15s; }
.footer-legal a:hover { color: var(--ink); }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; border: 1px solid var(--divider); color: var(--ink-o-60); transition: background .15s, color .15s, border-color .15s; }
.footer-social a:hover { background: var(--bg-tint); color: var(--ink); border-color: var(--ink-o-40); }
.footer-social svg { width: 17px; height: 17px; }

/* ---------- Get in touch (contact) ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-details { margin: 32px 0 0; display: flex; flex-direction: column; gap: 18px; }
.contact-details .cd-row { display: flex; flex-direction: column; gap: 3px; }
.contact-details dt { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-o-40); }
.contact-details dd { margin: 0; font-size: 17px; font-weight: 500; }
.contact-details dd a { color: var(--accent); }
.contact-privacy { margin-top: 26px; font-size: 13.5px; color: var(--ink-o-60); }
.contact-privacy a { color: var(--accent); border-bottom: 1px solid var(--accent-ring); }
.contact-form { background: var(--white); border: 1px solid var(--divider); border-radius: var(--radius-2xl); padding: 32px; display: flex; flex-direction: column; gap: 18px; box-shadow: var(--shadow-lift); }
.cf-field { display: flex; flex-direction: column; gap: 7px; }
.cf-field label { font-size: 13px; font-weight: 600; color: var(--ink-o-70); }
.cf-field input, .cf-field textarea { font-family: inherit; font-size: 15px; color: var(--ink); padding: 13px 15px; border: 1px solid var(--divider); border-radius: var(--radius-md); background: var(--bg-tint); transition: border-color .16s, background .16s; }
.cf-field input::placeholder, .cf-field textarea::placeholder { color: var(--ink-o-40); }
.cf-field input:focus, .cf-field textarea:focus { outline: none; border-color: var(--accent); background: var(--white); }
.cf-field textarea { resize: vertical; min-height: 104px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cf-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cf-submit { align-self: flex-start; margin-top: 4px; }
.cf-submit:disabled { opacity: .6; cursor: default; }
.cf-status { margin: 0; padding: 13px 16px; border-radius: var(--radius-md); font-size: 14px; font-weight: 500; }
.cf-status.is-ok { background: rgba(46,164,110,0.1); color: #1d7a4e; }
.cf-status.is-err { background: rgba(248,68,104,0.08); color: #d43a5d; }
@media (max-width: 920px) { .contact-grid { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 560px) { .cf-row { grid-template-columns: 1fr; } }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s cubic-bezier(.2,0,0,1), transform .6s cubic-bezier(.2,0,0,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  :root { --sec-pad: 72px; --gutter: 24px; }
  .nav-burger { display: block; }
  /* Mobile nav: collapse links into a dropdown panel toggled by the burger */
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0; transform: none;
    flex-direction: column; align-items: stretch; gap: 2px; margin-left: 0; padding: 10px 16px 16px;
    background: var(--white); border-bottom: 1px solid var(--divider); box-shadow: var(--shadow-lift);
    display: none;
  }
  body.nav-open .nav-links { display: flex; }
  .nav-cta { display: none; }
  .nav-link { width: 100%; justify-content: space-between; padding: 13px 12px; font-size: 16px; }
  .nav-item.has-menu { display: flex; flex-direction: column; }
  .nav-item .nav-caret { display: none; }
  .nav-menu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: 0; padding: 0 0 6px 12px; min-width: 0; gap: 0;
  }
  .nav-menu a { padding: 9px 12px; font-size: 14.5px; }
  /* minmax(0,1fr) lets single columns shrink below content min-size (plain 1fr
     is minmax(auto,1fr) and won't), preventing wide inner blocks from forcing
     horizontal page scroll. */
  .hero-grid, .steps-layout, .metrics-layout, .acc-layout, .cta-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  /* The evidence-layout rule pins steps-layout to 2 cols at higher specificity —
     override it so it also collapses to one column on mobile. */
  body[data-studylayout="evidence"] .steps-layout { grid-template-columns: minmax(0, 1fr); }
  .settings-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-media { order: -1; }
  .hero-chip-tl { left: 12px; } .hero-chip-br { right: 12px; }
  .steps-media, .metrics-media, .acc-aside { position: static; }
  .val-grid { grid-template-columns: 1fr; }
  /* Keep grid children and their inner content from overflowing the column */
  .steps-list, .steps-media, .steps-evidence, .mockup, .metrics-media, .metrics-photo { min-width: 0; }
  /* Keep the step number + title on one line; tag drops below, under the title */
  .step-head { flex-wrap: wrap; }
  .step-title { flex: 1 1 0; min-width: 0; }
  .step-kind { flex-basis: 100%; margin-left: 54px; margin-top: 10px; }
  /* Don't clip expandable content on narrow screens (text wraps to more lines) */
  .step.active .step-body { max-height: 800px; }
  .acc-item.open .acc-a { max-height: 900px; }
}
@media (max-width: 560px) {
  .cap-grid, .stat-row, .val-grid, .mk-tiles, .settings-grid { grid-template-columns: 1fr; }
  /* Let the comparison table scroll sideways instead of being clipped */
  .cmp-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .cmp-table { min-width: 460px; }
  .cmp-table th, .cmp-table td { padding: 13px 14px; }
  .cmp-table { font-size: 13px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  /* Keep hero floating chips inside the frame on tiny screens */
  .hero-chip { padding: 10px 12px; }
  .hero-chip b { font-size: 18px; }
  .hero-chip-tl { left: 8px; top: 8px; }
  .hero-chip-br { right: 8px; bottom: 8px; }
  /* Evidence card: tighten the two-field row on tiny screens */
  .ev-grid { gap: 24px; }
}
