/* Procare Dental Group · Brandcore web presentation
   Palette derived from the Procare mark: brand green (#589040 family), wordmark grey (#505050),
   with a near-black green ink and porcelain paper. Gold is not used. */

@font-face { font-family: "Geist"; src: url("assets/fonts/geist-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("assets/fonts/instrument-serif-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("assets/fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("assets/fonts/jetbrains-mono-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --ink: #0b1511;
  --ink-2: #111f18;
  --ink-3: #1a2e24;
  --paper: #f2eee4;
  --paper-2: #e7e1d2;
  --card-paper: #fbf9f3;
  --text-on-dark: #f4f1e8;
  --muted-on-dark: #c9d1c6;
  --text-on-paper: #17201a;
  --muted-on-paper: #3d463e;
  --brand: #5a9a42;
  --brand-glow: #a9dd9b;
  --brand-deep: #2e6b26;
  --sev-critical: #b42318;
  --sev-high: #9a4b12;
  --sev-medium: #5f6b4d;
  --line-dark: rgba(244, 241, 232, 0.16);
  --line-paper: rgba(23, 32, 26, 0.16);

  /* Fluid type: bounded clamp() tokens, tuned against 1366, 1600 and roughly 2096 widths. */
  --fs-body: clamp(17px, calc(13px + 0.45vw), 22px);
  --fs-lede: clamp(18px, calc(14px + 0.5vw), 24px);
  --fs-card-title: clamp(22px, calc(16px + 0.7vw), 32px);
  --fs-h2: clamp(36px, calc(24px + 2.4vw), 74px);
  --fs-h1: clamp(46px, calc(22px + 3.9vw), 112px);
  --fs-label: clamp(13px, calc(11px + 0.2vw), 15px);
  --fs-source: clamp(13px, calc(11.5px + 0.15vw), 14px);
  --pad-x: clamp(18px, 4.4vw, 84px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--ink);
  color: var(--text-on-dark);
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, select, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brand-glow); outline-offset: 3px; }
.tone-paper :focus-visible { outline-color: var(--brand-deep); }

/* ---------- Chrome ---------- */
.chrome { flex: none; position: relative; z-index: 10; background: var(--ink); }
.chrome-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 10px var(--pad-x);
  border-bottom: 1px solid var(--line-dark);
}
.lockup { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lockup-brandcore { height: 24px; width: auto; }
.lockup-x { font-family: "Instrument Serif", Georgia, serif; font-size: 22px; color: var(--brand-glow); line-height: 1; }
.logo-tile {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--paper); border-radius: 6px; padding: 5px 10px; height: 44px;
}
.logo-tile img { height: 100%; width: auto; }
.chrome-label {
  margin: 0; font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
  font-size: var(--fs-label); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted-on-dark); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chrome-right { display: flex; align-items: center; gap: 14px; }
.chrome-count { margin: 0; font-family: "JetBrains Mono", ui-monospace, Consolas, monospace; font-size: var(--fs-label); color: var(--muted-on-dark); white-space: nowrap; }
.chrome-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px;
  background: transparent; border: 1px solid var(--line-dark); border-radius: 999px;
  font-weight: 600; font-size: 15px; cursor: pointer; color: var(--text-on-dark);
}
.chrome-btn:hover { border-color: var(--brand-glow); }
.chrome-bottom { border-top: 1px solid var(--line-dark); }
.progress { height: 2px; background: var(--line-dark); }
#progress-bar { display: block; height: 100%; width: 11%; background: var(--brand-glow); transition: width 0.45s ease; }
.bottom-row {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 10px var(--pad-x) calc(10px + env(safe-area-inset-bottom));
}
.chrome-foot { margin: 0; text-align: center; font-family: "JetBrains Mono", ui-monospace, Consolas, monospace; font-size: var(--fs-label); color: var(--muted-on-dark); letter-spacing: 0.04em; }
.nav-btn { min-width: 44px; justify-content: center; }
.nav-primary { background: var(--brand-glow); color: var(--ink); border-color: var(--brand-glow); }
.nav-primary:hover { border-color: var(--brand-glow); filter: brightness(1.05); }
.nav-btn:disabled { opacity: 0.4; cursor: default; }

/* ---------- Deck and slides ---------- */
.deck { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.slide {
  position: absolute; inset: 0; overflow: hidden; background: var(--ink); color: var(--text-on-dark);
  visibility: hidden; opacity: 0; pointer-events: none; z-index: 1;
}
.slide.is-active { visibility: visible; opacity: 1; pointer-events: auto; z-index: 2; }
.slide.is-leaving { visibility: visible; opacity: 1; z-index: 3; pointer-events: none; }
.slide.tone-paper { background: var(--paper); color: var(--text-on-paper); }
.slide-scroll {
  position: relative; z-index: 1; height: 100%; overflow-y: auto; overscroll-behavior: contain;
  padding: clamp(18px, 3.4vh, 44px) var(--pad-x) clamp(26px, 4vh, 56px);
  -webkit-overflow-scrolling: touch;
}
.slide-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.slide-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.34; }
.slide-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11, 21, 17, 0.97) 0%, rgba(11, 21, 17, 0.84) 46%, rgba(11, 21, 17, 0.62) 100%);
}
.slide-bg-soft img { opacity: 0.2; }
.slide-bg-soft::after { background: linear-gradient(180deg, rgba(11, 21, 17, 0.9), rgba(11, 21, 17, 0.97)); }

.kicker {
  margin: 0 0 14px; font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
  font-size: var(--fs-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-glow);
}
.tone-paper .kicker { color: var(--brand-deep); }
.label {
  margin: 0; font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
  font-size: var(--fs-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-glow);
}
.tone-paper .label { color: var(--brand-deep); }
.muted { color: var(--muted-on-dark); }
.tone-paper .muted { color: var(--muted-on-paper); }
.small { font-size: 14px; line-height: 1.45; }
.serif-payoff {
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif; font-style: italic; font-weight: 400;
  letter-spacing: -0.01em; color: var(--brand-glow);
}
.tone-paper .serif-payoff { color: var(--brand-deep); }
.display-xl {
  margin: 0; font-size: var(--fs-h1); line-height: 0.92; letter-spacing: -0.05em; font-weight: 650;
}
.display-l {
  margin: 0; font-size: var(--fs-h2); line-height: 1.02; letter-spacing: -0.035em; font-weight: 620;
}
.lede { margin: 16px 0 0; font-size: var(--fs-lede); line-height: 1.5; max-width: 60ch; color: var(--muted-on-dark); }
.tone-paper .lede, .lede.lede-dark { color: var(--muted-on-paper); }
.card-title { margin: 6px 0 8px; font-size: var(--fs-card-title); line-height: 1.12; letter-spacing: -0.02em; font-weight: 620; }
.card-body { margin: 0; font-size: var(--fs-body); line-height: 1.5; max-width: 60ch; color: var(--muted-on-dark); }
.tone-paper .card-body { color: var(--muted-on-paper); }
.card-body-lg { margin: 0 0 12px; font-size: calc(var(--fs-body) + 2px); line-height: 1.5; color: var(--text-on-dark); }
.source {
  margin: 8px 0 0; font-family: "JetBrains Mono", ui-monospace, Consolas, monospace; font-size: var(--fs-source);
  letter-spacing: 0.02em; line-height: 1.45; color: var(--muted-on-paper);
}
.source-light { color: var(--muted-on-dark); }
.footnote { margin: 18px 0 0; font-size: 15px; line-height: 1.5; color: var(--muted-on-dark); max-width: 80ch; }
.tone-paper .footnote { color: var(--muted-on-paper); }
.bullets { margin: 18px 0 0; padding-left: 1.2em; font-size: var(--fs-body); line-height: 1.55; color: var(--muted-on-dark); }
.bullets li { margin-bottom: 10px; }
.bullets strong { color: var(--text-on-dark); }
.card-dark {
  background: rgba(244, 241, 232, 0.045); border: 1px solid var(--line-dark); border-radius: 8px;
  padding: clamp(18px, 2vw, 30px);
}
.chips { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  padding: 8px 14px; border: 1px solid var(--line-dark); border-radius: 999px;
  font-size: 15px; color: var(--muted-on-dark);
}
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: 16px; letter-spacing: 0.01em; border: 1px solid transparent; cursor: pointer; text-decoration: none;
}
.btn svg { flex: none; }
.btn-primary { background: var(--brand-glow); color: var(--ink); }
.btn-primary:hover { filter: brightness(1.05); }
.tone-paper .btn-primary { background: var(--brand-deep); color: #ffffff; }

/* ---------- 01 Cover ---------- */
.slide-cover .slide-scroll { display: flex; flex-direction: column; justify-content: center; }
.cover-grid {
  min-height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(20px, 3vw, 64px); align-items: center;
}
.cover-copy { grid-column: 1; grid-row: 1; position: relative; z-index: 2; }
.cover-stage-wrap { grid-column: 2; grid-row: 1; position: relative; height: min(70vh, 720px); min-height: 360px; }
.cover-stage { position: absolute; inset: 0; }
.stage-caption {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0; text-align: center;
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace; font-size: var(--fs-label); letter-spacing: 0.06em; color: var(--muted-on-dark);
}
.pill-collab {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 22px; padding: 8px 14px 8px 10px;
  border: 1px solid var(--line-dark); border-radius: 999px; font-size: 15px; color: var(--muted-on-dark);
}
.pill-collab img { height: 22px; width: auto; }
.pill-collab > span:first-of-type { color: var(--brand-glow); font-family: "Instrument Serif", Georgia, serif; font-size: 20px; line-height: 1; }
.cover-copy .display-xl { margin-top: 2px; }
.prepared { display: flex; gap: 16px; align-items: center; margin-top: 28px; }
.prepared-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: center top; border: 1px solid var(--line-dark); background: var(--ink-3); }
.prepared p { margin: 0; font-size: 17px; line-height: 1.5; color: var(--muted-on-dark); }
.prepared strong { color: var(--text-on-dark); }
.cta-row { margin-top: 26px; }

/* Canvas: a fixed full-window layer so the cover opening can cross the frame. Hidden unless active. */
#hero-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; pointer-events: none; z-index: 6; display: none; }

/* No-WebGL fallback: a static CSS plate carrying the real mark. */
.seal-fallback { display: none; position: absolute; inset: 0; place-items: center; }
.seal-fallback-plate {
  display: grid; place-items: center; width: min(92%, 560px); aspect-ratio: 1.8 / 1;
  background: radial-gradient(120% 120% at 30% 20%, #fbf9f3 0%, #efeadc 62%, #e2dbc8 100%);
  border-radius: 28px; border: 14px solid #173c26; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), inset 0 0 0 2px rgba(255, 255, 255, 0.35);
  padding: 6%;
}
.seal-fallback-plate img { width: 78%; height: auto; }
html.no-webgl #hero-canvas { display: none !important; }
html.no-webgl .seal-fallback { display: grid; }

/* ---------- 02 Audit ---------- */
.findings {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px);
  margin-top: clamp(18px, 2.8vh, 34px);
}
.finding {
  background: var(--card-paper); border: 1px solid var(--line-paper); border-top: 4px solid var(--sev, var(--sev-medium));
  border-radius: 6px; padding: clamp(18px, 1.8vw, 28px); display: flex; flex-direction: column;
  color: var(--text-on-paper);
}
.finding .card-body { color: var(--muted-on-paper); }
.finding .card-title { font-size: clamp(21px, calc(15px + 0.6vw), 28px); }
.sev-critical { --sev: var(--sev-critical); }
.sev-high { --sev: var(--sev-high); }
.sev-medium { --sev: var(--sev-medium); }
.sev-tag {
  margin: 0; font-family: "JetBrains Mono", ui-monospace, Consolas, monospace; font-size: var(--fs-label);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--sev); font-weight: 600;
}
.keep-strip {
  display: grid; grid-template-columns: minmax(200px, 300px) minmax(0, 1fr); gap: clamp(16px, 2vw, 28px);
  align-items: center; margin-top: clamp(18px, 2.8vh, 32px); padding: 14px; background: var(--paper-2); border-radius: 6px;
}
.keep-strip img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }
.keep-strip .card-body { color: var(--muted-on-paper); }

/* ---------- 03 Gap ---------- */
.gap-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(16px, 2vw, 30px); margin-top: clamp(18px, 2.8vh, 34px); align-items: start; }
.tag-illustrative {
  display: inline-block; margin: 0 0 16px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--brand-glow); color: var(--brand-glow);
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace; font-size: var(--fs-label); letter-spacing: 0.06em;
}
.answer-list, .steps { list-style: none; margin: 14px 0 0; padding: 0; counter-reset: step; }
.answer-list li { display: grid; grid-template-columns: 2.4em minmax(0, 1fr); gap: 8px; margin-bottom: 12px; font-size: var(--fs-body); line-height: 1.5; }
.answer-list .num, .steps li::before {
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace; color: var(--brand-glow); font-size: var(--fs-label);
}
.answer-list .num { padding-top: 0.2em; }
.paths { display: grid; gap: 16px; }
.path { display: flex; flex-direction: column; }
.path-proposed { border-color: var(--brand-glow); background: rgba(90, 154, 66, 0.12); }
.path-title { margin: 8px 0 0; font-size: var(--fs-card-title); line-height: 1.15; font-weight: 620; letter-spacing: -0.02em; }
.steps li {
  counter-increment: step; display: grid; grid-template-columns: 2.6em minmax(0, 1fr); gap: 4px; margin-bottom: 10px;
  font-size: var(--fs-body); line-height: 1.45; color: var(--muted-on-dark);
}
.steps li::before { content: counter(step, decimal-leading-zero); padding-top: 0.25em; }
.path-proposed .steps li { color: var(--text-on-dark); }

/* ---------- 04 Flagship ---------- */
.slide-flagship .slide-scroll { display: flex; flex-direction: column; }
.flagship-grid {
  display: grid; grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.9fr); gap: clamp(20px, 2.6vw, 44px); align-items: start;
}
.flagship-copy .lede { font-size: var(--fs-body); }
.flagship-copy .lede, .flagship-copy .bullets { max-width: 44ch; }
.note-illustrative { margin: 18px 0 0; font-size: 15px; line-height: 1.5; color: var(--brand-glow); max-width: 44ch; }
.browser {
  background: #f7f5ef; color: var(--text-on-paper); border-radius: 12px; overflow: hidden;
  border: 1px solid #2c3b33; box-shadow: 0 34px 80px rgba(0, 0, 0, 0.5);
  display: flex; flex-direction: column; height: min(76vh, 720px); min-height: 480px;
}
.browser-bar { height: 30px; flex: none; background: #e6e1d3; display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: #bdb5a2; }
.browser-bar .url { margin: 0 0 0 12px; font-family: "JetBrains Mono", ui-monospace, Consolas, monospace; font-size: 13px; color: #4a4f48; }
.site-nav {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 10px 16px; background: #ffffff; border-bottom: 1px solid #ddd6c6;
}
.site-logo img { height: 40px; width: auto; }
.site-logo.sm img { height: 30px; }
.site-tabs { display: flex; gap: 4px; background: #efebe1; border-radius: 999px; padding: 4px; }
.site-tabs button {
  border: 0; background: transparent; min-height: 40px; padding: 8px 16px; border-radius: 999px;
  font-weight: 600; font-size: 15px; color: #2a332d; cursor: pointer;
}
.site-tabs button[aria-selected="true"] { background: #17201a; color: #f4f1e8; }
.browser-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.site-panel[hidden] { display: none; }
.site-hero { position: relative; height: clamp(240px, 36vh, 320px); overflow: hidden; }
.site-hero img { width: 100%; height: 100%; object-fit: cover; }
.site-hero-short { height: clamp(170px, 24vh, 210px); }
.site-hero-copy {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 24px;
  background: linear-gradient(to top, rgba(10, 16, 13, 0.9), rgba(10, 16, 13, 0));
  color: #ffffff;
}
.site-eyebrow { margin: 0 0 6px; font-family: "JetBrains Mono", ui-monospace, Consolas, monospace; font-size: 14px; letter-spacing: 0.06em; color: #d8f2cc; }
.site-h1 { margin: 0 0 16px; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.12; letter-spacing: -0.02em; font-weight: 620; max-width: 22ch; }
.site-h2 { margin: 0; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 620; }
.site-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.site-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 999px;
  background: var(--brand-deep); color: #ffffff; border: 1px solid var(--brand-deep); font-weight: 600; font-size: 16px;
  text-decoration: none; cursor: pointer;
}
.site-btn-ghost { background: transparent; color: #ffffff; border-color: #ffffff; }
.site-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.site-block { padding: 18px 22px; border-top: 1px solid #e4ded0; }
.site-label { margin: 0 0 10px; font-family: "JetBrains Mono", ui-monospace, Consolas, monospace; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-deep); }
.site-text { margin: 0 0 10px; font-size: 16px; line-height: 1.5; color: #1f2a23; }
.site-text.small { font-size: 14px; color: #3d463e; }
.openings { display: flex; flex-wrap: wrap; gap: 8px; }
.opening-chip { padding: 9px 14px; border: 1px solid #cfc7b3; border-radius: 999px; background: #ffffff; font-size: 15px; font-weight: 600; }
.site-split { display: grid; grid-template-columns: minmax(150px, 0.8fr) minmax(0, 1fr); gap: 18px; align-items: center; }
.site-split img { width: 100%; height: 150px; object-fit: cover; border-radius: 6px; }
.doc-head { float: left; width: 96px; height: 100px; object-fit: cover; object-position: center top; border-radius: 6px; margin: 2px 12px 6px 0; }
.site-emergency { display: grid; grid-template-columns: minmax(130px, 0.6fr) minmax(0, 1fr); gap: 18px; align-items: center; background: #f1ede2; }
.site-emergency img { width: 100%; height: 120px; object-fit: cover; border-radius: 6px; }
.site-emergency .site-text { margin-bottom: 12px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 22px 0; }
.chip-btn {
  min-height: 40px; border: 1px solid #cfc7b3; background: #ffffff; border-radius: 999px; padding: 7px 14px;
  font-weight: 600; font-size: 15px; color: #17201a; cursor: pointer;
}
.chip-btn.is-on, .chip-btn[aria-pressed="true"] { background: #17201a; color: #f4f1e8; border-color: #17201a; }
.svc-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; padding: 16px 22px 26px;
}
.svc-card {
  background: #ffffff; border: 1px solid #e1dacb; border-radius: 8px; padding: 14px; display: flex; flex-direction: column; gap: 8px; min-height: 130px;
}
.svc-card[hidden] { display: none; }
.svc-card img { width: 100%; height: 92px; object-fit: cover; border-radius: 5px; }
.svc-group { font-family: "JetBrains Mono", ui-monospace, Consolas, monospace; font-size: 13px; color: var(--brand-deep); letter-spacing: 0.02em; }
.svc-name { font-weight: 600; font-size: 16px; line-height: 1.25; color: #17201a; }
.svc-ask {
  margin-top: auto; align-self: flex-start; min-height: 40px; background: transparent; border: 1px solid var(--brand-deep); color: var(--brand-deep);
  border-radius: 999px; padding: 6px 12px; font-weight: 600; font-size: 14px; cursor: pointer;
}
.book-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(220px, 1fr); gap: 18px; padding: 18px 22px 24px; }
.field-label { display: block; margin: 0 0 8px; font-size: 15px; font-weight: 600; color: #17201a; }
.field {
  width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid #bdb4a0; border-radius: 8px; background: #ffffff; color: #17201a; font-size: 16px;
}
.book-head { margin-bottom: 14px; }
.day-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.day-btn {
  width: 62px; min-height: 58px; border-radius: 10px; border: 1px solid #cfc7b3; background: #ffffff; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 600; font-size: 15px; color: #17201a;
}
.day-btn small { font-size: 13px; font-weight: 400; color: #3d463e; }
.day-btn[aria-pressed="true"] { background: #17201a; color: #f4f1e8; border-color: #17201a; }
.day-btn[aria-pressed="true"] small { color: #d8f2cc; }
.day-btn[aria-disabled="true"] { opacity: 0.55; }
.avail { margin: 4px 0 6px; }
.avail .site-text { margin-bottom: 6px; }
.avail-bar { height: 8px; background: #e7e1d2; border-radius: 999px; overflow: hidden; }
.avail-bar span { display: block; height: 100%; width: 0%; background: var(--brand-deep); transition: width 0.35s ease; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin-top: 12px; }
.slot-btn {
  min-height: 44px; padding: 9px 10px; border-radius: 8px; border: 1px solid #cfc7b3; background: #ffffff; font-weight: 600; font-size: 15px; color: #17201a; cursor: pointer;
}
.slot-btn[aria-pressed="true"] { background: var(--brand-deep); color: #ffffff; border-color: var(--brand-deep); }
.slot-btn[aria-disabled="true"] { opacity: 0.45; text-decoration: line-through; cursor: not-allowed; }
.book-side img { width: 100%; height: 170px; object-fit: cover; border-radius: 8px; }
.detail { background: #ffffff; border: 1px solid #e1dacb; border-radius: 8px; padding: 16px; margin-top: 12px; }
.detail .site-btn { margin-top: 4px; }
.concept-detail { display: none; margin-top: 26px; }
.detail-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 12px; }
.phone-mock { display: none; }

/* ---------- 05 System ---------- */
.system-strip { margin-top: clamp(16px, 2.6vh, 28px); }
.system-strip img { width: 100%; height: clamp(120px, 18vh, 190px); object-fit: cover; border-radius: 6px; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); margin-top: clamp(18px, 2.8vh, 32px); }
.pillar { border-top: 2px solid var(--text-on-paper); padding: 18px 2px 6px; display: flex; flex-direction: column; }
.pillar .card-body { color: var(--muted-on-paper); }
.pillar-num { margin: 0; font-family: "JetBrains Mono", ui-monospace, Consolas, monospace; font-size: var(--fs-label); color: var(--brand-deep); letter-spacing: 0.08em; }
.answers { margin: auto 0 0; padding-top: 12px; font-family: "JetBrains Mono", ui-monospace, Consolas, monospace; font-size: var(--fs-source); color: var(--brand-deep); }

/* ---------- 06 Proof ---------- */
.compare {
  position: relative; margin-top: clamp(16px, 2.6vh, 28px); height: min(62vh, 580px); min-height: 380px;
  border-radius: 10px; overflow: hidden; border: 1px solid var(--line-dark); background: #14231b; isolation: isolate;
  --p: 50%; user-select: none; touch-action: pan-y;
}
.compare-pane { position: absolute; inset: 0; padding: clamp(16px, 2vw, 26px) clamp(16px, 2vw, 28px); overflow-y: auto; overscroll-behavior: contain; }
.compare-before { background: #2b302c; clip-path: inset(0 calc(100% - var(--p)) 0 0); z-index: 2; }
.compare-after { background: #173223; }
.compare-pane .label { color: var(--brand-glow); margin-bottom: 12px; }
.compare-before .label { color: #d7d2c4; }
.pub-list, .concept-list { list-style: none; margin: 0; padding: 0; }
.pub-list li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid #434a44; font-size: 16px; line-height: 1.35; color: #e9e6dc; }
.pub-list li.dup span:last-child { color: #ffb4a8; font-weight: 600; white-space: nowrap; }
.concept-list h4 { margin: 14px 0 6px; font-size: 15px; letter-spacing: 0.04em; color: var(--brand-glow); font-family: "JetBrains Mono", ui-monospace, Consolas, monospace; font-weight: 400; text-transform: uppercase; }
.concept-list li { padding: 5px 0; font-size: 16px; line-height: 1.35; color: #f2f5ef; }
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: var(--p); width: 2px; background: #ffffff; z-index: 4; transform: translateX(-1px); pointer-events: none;
}
.compare-handle span {
  position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%);
  border-radius: 50%; background: #ffffff; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  pointer-events: auto; cursor: ew-resize; touch-action: none;
}
.compare:focus-within .compare-handle span { outline: 3px solid var(--brand-glow); outline-offset: 3px; }
.compare-handle span::before, .compare-handle span::after {
  content: ""; position: absolute; top: 50%; width: 8px; height: 8px; border-top: 2px solid #17201a; border-left: 2px solid #17201a; transform: translateY(-50%) rotate(-45deg);
}
.compare-handle span::before { left: 13px; }
.compare-handle span::after { left: 19px; transform: translateY(-50%) rotate(135deg); }
/* Keyboard-only slider: sits under the handle, never blocks wheel or pointer input to the lists. */
.compare-range {
  position: absolute; top: 50%; left: var(--p); width: 44px; height: 44px; margin: 0; transform: translate(-50%, -50%);
  opacity: 0; pointer-events: none; z-index: 5;
}

/* ---------- 07 Roadmap ---------- */
.phases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); margin-top: clamp(18px, 2.8vh, 32px); }
.phase {
  background: var(--card-paper); border: 1px solid var(--line-paper); border-radius: 8px; padding: clamp(18px, 1.9vw, 28px);
  display: flex; flex-direction: column; color: var(--text-on-paper);
}
.phase-launch { border-color: var(--brand-deep); box-shadow: inset 0 4px 0 var(--brand-deep); }
.phase-when { margin: 0; font-family: "JetBrains Mono", ui-monospace, Consolas, monospace; font-size: var(--fs-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-deep); }
.phase .card-title { margin-top: 8px; }
.phase-list { margin: 6px 0 0; padding-left: 1.15em; font-size: var(--fs-body); line-height: 1.45; color: var(--text-on-paper); }
.phase-list li { margin-bottom: 8px; }
.phase-meta { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line-paper); }
.phase-meta dt { margin: 10px 0 2px; font-family: "JetBrains Mono", ui-monospace, Consolas, monospace; font-size: var(--fs-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-deep); }
.phase-meta dd { margin: 0; font-size: 16px; line-height: 1.45; color: var(--muted-on-paper); }

/* ---------- 08 Engagement ---------- */
.levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); margin-top: clamp(18px, 2.8vh, 32px); }
.level { display: flex; flex-direction: column; }
.level-recommended { border-color: var(--brand-glow); background: rgba(90, 154, 66, 0.14); }
.level-list { margin: 10px 0 0; padding-left: 1.15em; font-size: var(--fs-body); line-height: 1.5; color: var(--text-on-dark); }
.level-list li { margin-bottom: 6px; }
.level-fit { margin: auto 0 0; padding-top: 16px; font-size: 16px; line-height: 1.45; color: var(--brand-glow); }

/* ---------- 09 Close ---------- */
.close-grid {
  min-height: 100%; display: grid; grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(22px, 3vw, 56px); align-items: center;
}
.rep-card { background: var(--ink); color: var(--text-on-dark); border-radius: 10px; overflow: hidden; padding: 0 0 clamp(18px, 2vw, 26px); }
.rep-portrait { width: 100%; max-width: 384px; aspect-ratio: 1 / 1; object-fit: cover; object-position: center top; display: block; margin: 0 auto; }
.rep-meta { padding: 16px clamp(18px, 2vw, 26px) 0; text-align: left; }
.rep-name { margin: 0; font-size: clamp(26px, calc(18px + 0.8vw), 36px); font-weight: 650; letter-spacing: -0.02em; line-height: 1.1; }
.rep-role { margin: 6px 0 12px; font-family: "JetBrains Mono", ui-monospace, Consolas, monospace; font-size: var(--fs-label); letter-spacing: 0.06em; color: var(--brand-glow); text-transform: uppercase; }
.rep-line { margin: 0; font-size: var(--fs-body); line-height: 1.5; color: var(--muted-on-dark); }
.close-copy .display-l { margin-bottom: 18px; }
.contact-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-paper); }
.contact-list li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line-paper); font-size: clamp(18px, calc(14px + 0.4vw), 22px); }
.contact-list a { color: var(--brand-deep); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(46, 107, 38, 0.35); overflow-wrap: anywhere; }
.contact-list .label { color: var(--brand-deep); }
.sched { margin-top: 20px; display: grid; gap: 12px; background: var(--card-paper); border: 1px solid var(--line-paper); border-radius: 8px; padding: 18px; }
.sched .site-label { margin: 0; font-family: "JetBrains Mono", ui-monospace, Consolas, monospace; font-size: var(--fs-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-deep); }
.sched-row { display: grid; gap: 6px; }
.sched .field-label { color: var(--text-on-paper); margin: 0; }
.sched .field { background: #ffffff; color: var(--text-on-paper); border-color: #b7ae99; }
.sched .small { margin: 0; color: var(--muted-on-paper); }
.sched .btn { justify-self: start; }
.closing-line { margin: 22px 0 0; font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-size: clamp(22px, calc(16px + 0.8vw), 32px); line-height: 1.25; color: var(--brand-deep); }
.footer-lockup { margin: 18px 0 0; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 15px; color: var(--muted-on-paper); }
.footer-lockup img { height: 32px; width: auto; }

/* ---------- Index overlay ---------- */
.index-overlay { position: fixed; inset: 0; z-index: 50; background: rgba(7, 12, 9, 0.94); display: flex; align-items: center; justify-content: center; padding: 20px; }
.index-panel { width: min(760px, 100%); max-height: 100%; overflow-y: auto; background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: 10px; padding: 22px clamp(18px, 2.4vw, 30px); }
.index-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.index-head .kicker { margin: 0; }
.index-list { list-style: none; margin: 0; padding: 0; }
.index-list button {
  width: 100%; min-height: 52px; display: flex; align-items: baseline; gap: 16px; text-align: left; background: transparent; border: 0;
  border-bottom: 1px solid var(--line-dark); padding: 12px 6px; cursor: pointer; font-size: clamp(18px, calc(14px + 0.5vw), 24px); font-weight: 600; color: var(--text-on-dark);
}
.index-list button:hover, .index-list button[aria-current="true"] { color: var(--brand-glow); }
.index-list .num { font-family: "JetBrains Mono", ui-monospace, Consolas, monospace; font-size: var(--fs-label); color: var(--brand-glow); flex: none; }

/* ---------- Slide transitions: each pair carries a Procare-specific physical cue ---------- */
.fx { position: absolute; inset: 0; pointer-events: none; z-index: 8; overflow: hidden; }
.fx-scan {
  position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, rgba(169, 221, 155, 0), #d9f7d0 40%, #ffffff 50%, #d9f7d0 60%, rgba(169, 221, 155, 0));
  box-shadow: 0 0 24px 6px rgba(169, 221, 155, 0.45); animation: fxScan 0.85s linear both;
}
.fx-cure {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.5) 0%, rgba(169, 221, 155, 0.22) 30%, rgba(169, 221, 155, 0) 62%);
  animation: fxCure 0.85s ease-out both;
}
@keyframes fxScan { from { top: 0; opacity: 1; } 90% { opacity: 1; } to { top: 100%; opacity: 0; } }
@keyframes fxCure { from { opacity: 0; transform: scale(0.7); } 35% { opacity: 1; } to { opacity: 0; transform: scale(1.35); } }

.slide.tr-depth-in { animation: trDepthIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.slide.tr-depth-out { animation: trDepthOut 0.36s ease-in both; }
.slide.tr-scan-in { animation: trScanIn 0.8s ease both; }
.slide.tr-cure-in { animation: trCureIn 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.slide.tr-tray-in { animation: trTrayIn 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.slide.tr-tray-out { animation: trTrayOut 0.36s ease-in both; }
.slide.tr-back-depth-in { animation: trBackIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes trDepthIn { from { opacity: 0; transform: translate3d(40px, 0, 0) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes trDepthOut { to { opacity: 0; transform: translate3d(-34px, 0, 0) scale(0.98); } }
@keyframes trScanIn { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes trCureIn { from { clip-path: circle(0% at 50% 50%); } to { clip-path: circle(110% at 50% 50%); } }
@keyframes trTrayIn { from { opacity: 0; transform: translate3d(0, 60px, 0); } to { opacity: 1; transform: none; } }
@keyframes trTrayOut { to { opacity: 0; transform: translate3d(0, -36px, 0); } }
@keyframes trBackIn { from { opacity: 0; transform: translate3d(-40px, 0, 0) scale(0.98); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (min-width: 1440px) {
  .flagship-grid { grid-template-columns: minmax(230px, 0.62fr) minmax(0, 1.78fr) minmax(230px, 0.5fr); }
  .phone-mock { display: flex; flex-direction: column; align-items: center; }
  .phone-frame { width: 100%; max-width: 280px; border-radius: 34px; border: 10px solid #0e1512; background: #ffffff; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,0.45); }
  .phone-screen { padding: 14px; color: #17201a; min-height: 540px; }
  .phone-cap { margin: 14px 0 0; font-family: "JetBrains Mono", ui-monospace, Consolas, monospace; font-size: var(--fs-label); color: var(--muted-on-dark); }
}
.phone-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.phone-call { padding: 7px 12px; border-radius: 999px; background: var(--brand-deep); color: #ffffff; font-weight: 600; font-size: 14px; }
.phone-img { width: 100%; height: 150px; object-fit: cover; border-radius: 8px; margin: 12px 0 10px; }
.phone-h { margin: 0 0 6px; font-size: 20px; line-height: 1.2; font-weight: 620; letter-spacing: -0.01em; }
.phone-t { margin: 0 0 12px; font-size: 16px; line-height: 1.45; color: #3d463e; }
.phone-btn { display: block; text-align: center; padding: 11px 12px; border-radius: 999px; background: #17201a; color: #f4f1e8; font-weight: 600; font-size: 15px; }
.phone-hours { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid #e4ded0; font-size: 15px; line-height: 1.8; color: #1f2a23; }

@media (max-height: 820px) and (min-width: 900px) {
  .chips { display: none; }
  .cover-copy .lede { font-size: 18px; margin-top: 12px; }
  .prepared { margin-top: 18px; }
  .cta-row { margin-top: 18px; }
  .pill-collab { margin-bottom: 14px; }
}
@media (max-width: 1279px) {
  .gap-grid { grid-template-columns: 1fr; }
  .findings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flagship-grid { grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.6fr); }
  .levels, .phases { gap: 14px; }
  .close-grid { grid-template-columns: minmax(240px, 0.86fr) minmax(0, 1.14fr); }
}
@media (max-width: 1099px) {
  .findings { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phases { grid-template-columns: 1fr; }
  .levels { grid-template-columns: 1fr; }
  .flagship-grid { grid-template-columns: 1fr; }
  .flagship-copy .lede, .flagship-copy .bullets { max-width: 62ch; }
  .browser { height: min(82vh, 760px); }
  .detail-cards { grid-template-columns: 1fr; }
}
@media (max-width: 899px) {
  .chrome-top { grid-template-columns: 1fr auto; padding: 8px 14px; gap: 10px; }
  .chrome-label { display: none; }
  .lockup-brandcore { height: 20px; }
  .logo-tile { height: 40px; padding: 4px 8px; }
  .lockup-x { font-size: 18px; }
  .chrome-count { font-size: 14px; }
  .chrome-btn { min-height: 44px; padding: 8px 12px; }
  .chrome-btn span { display: none; }
  .bottom-row { grid-template-columns: auto 1fr auto; gap: 10px; padding: 8px 14px calc(8px + env(safe-area-inset-bottom)); }
  .nav-btn span { display: inline; }
  .chrome-foot { font-size: 13px; text-align: center; }
  .cover-grid { grid-template-columns: 1fr; gap: 18px; }
  .cover-stage-wrap { grid-column: 1; grid-row: 1; order: -1; height: 40vh; min-height: 260px; }
  .cover-copy { grid-column: 1; grid-row: 2; }
  .display-xl { font-size: clamp(48px, 13vw, 84px); }
  .pill-collab { margin-bottom: 16px; }
  .stage-caption { display: none; }
  .gap-grid { grid-template-columns: 1fr; }
  .keep-strip { grid-template-columns: 1fr; }
  .keep-strip img { aspect-ratio: 16 / 9; }
  .pillars { grid-template-columns: 1fr; }
  .close-grid { grid-template-columns: 1fr; gap: 22px; }
  .rep-portrait { max-width: 300px; }
  .site-split, .site-emergency { grid-template-columns: 1fr; }
  .site-split img { height: 140px; }
  .book-grid { grid-template-columns: 1fr; }
  .compare { height: 66vh; }
  .contact-list li { grid-template-columns: 90px minmax(0, 1fr); }
  .levels, .phases { grid-template-columns: 1fr; }
}
@media (max-width: 699px) {
  .browser { display: none; }
  .concept-detail { display: block; }
  .flagship-copy .note-illustrative { font-size: 16px; }
  .site-split img { height: 120px; }
  .slot-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
  .svc-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .svc-grid { grid-template-columns: 1fr; }
  .findings .finding { padding: 16px; }
  .lockup-x { display: none; }
  .lockup-brandcore { height: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .slide, .slide.tr-depth-in, .slide.tr-depth-out, .slide.tr-scan-in, .slide.tr-cure-in, .slide.tr-tray-in, .slide.tr-tray-out, .slide.tr-back-depth-in { animation: none !important; }
  .fx { display: none !important; }
  #progress-bar { transition: none; }
  .avail-bar span { transition: none; }
}

/* Center the fitting engagement group; retain natural overflow on short screens. */
@media (min-width: 1100px) {
  .slide-engage .slide-scroll { display: flex; flex-direction: column; }
  .slide-engage .slide-head, .slide-engage .levels { flex: 0 0 auto; }
  .slide-engage .slide-head { margin-top: auto; }
  .slide-engage .levels { margin-bottom: auto; }
}
