:root {
  --bg: #f4f7f6;
  --surface: #ffffff;
  --surface-warm: #fbf5ed;
  --surface-blue: #eef6fb;
  --text: #12201f;
  --muted: #64716f;
  --line: #d8e3df;
  --primary: #087262;
  --primary-strong: #064b42;
  --accent: #c76a42;
  --gold: #c49a4b;
  --green: #178052;
  --amber: #b7791f;
  --red: #b33a3a;
  --blue: #2f609f;
  --ink-shadow: 0 20px 70px rgba(2, 19, 22, 0.2);
  --shadow: 0 18px 50px rgba(22, 33, 31, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.topbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(216, 227, 223, 0.7);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 16px clamp(18px, 4vw, 56px);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
}

.brand {
  align-items: center;
  display: inline-flex;
  font-weight: 750;
  gap: 10px;
  text-decoration: none;
}

.brand-logo {
  display: block;
  height: 50px;
  width: auto;
}

.header-actions {
  align-items: center;
  display: flex;
  gap: 16px;
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

.language-switcher {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  display: inline-flex;
  padding: 3px;
}

.language-switcher button {
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  min-height: 28px;
  min-width: 38px;
  padding: 7px 8px;
}

.language-switcher button.is-active {
  background: var(--primary);
  color: #fff;
}

.nav-links a,
.footer a,
.text-link,
.text-button {
  color: var(--muted);
  text-decoration: none;
}

.nav-links a:hover,
.footer a:hover,
.text-link:hover,
.text-button:hover {
  color: var(--primary);
}

.hero {
  background-image:
    linear-gradient(90deg, rgba(6, 29, 31, 0.88) 0%, rgba(6, 29, 31, 0.68) 35%, rgba(6, 29, 31, 0.16) 68%, rgba(6, 29, 31, 0.04) 100%),
    url("/assets/images/clinic-compliance-hero.png");
  background-position: center;
  background-size: cover;
  color: #fff;
  min-height: calc(100vh - 214px);
  padding: clamp(38px, 5.2vw, 70px) clamp(18px, 5vw, 72px) clamp(42px, 5vw, 64px);
  position: relative;
}

.hero::after {
  background: linear-gradient(180deg, transparent, rgba(244, 247, 246, 0.95));
  bottom: 0;
  content: "";
  height: 96px;
  left: 0;
  position: absolute;
  right: 0;
}

.hero-content {
  max-width: 760px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #8ee4d3;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(38px, 5.4vw, 64px);
  letter-spacing: 0;
  line-height: 0.96;
  margin-bottom: 22px;
}

h2 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.04;
  margin-bottom: 16px;
}

h3 {
  font-size: 18px;
  line-height: 1.2;
  margin-bottom: 10px;
}

.hero-lede {
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  max-width: 680px;
}

.hero-actions,
.form-navigation,
.result-cta,
.admin-header,
.admin-tools {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-button,
.secondary-button,
.filter-chip {
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 750;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  text-decoration: none;
}

.primary-button {
  background: linear-gradient(135deg, var(--primary), #129f8a);
  color: #fff;
  box-shadow: 0 12px 26px rgba(6, 75, 66, 0.22);
}

.primary-button:hover {
  background: var(--primary-strong);
}

.secondary-button,
.filter-chip {
  background: #fff;
  border-color: var(--line);
  color: var(--text);
}

.secondary-button.on-image {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.secondary-button.on-image:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #fff;
}

.secondary-button:hover,
.filter-chip:hover {
  border-color: var(--primary);
}

.danger-button {
  border-color: #d48a79;
  color: #8d2f1f;
}

.danger-button:hover {
  border-color: #b84b35;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.fine-print {
  color: var(--muted);
  font-size: 13px;
  margin-top: 14px;
}

.warning-text {
  color: #8d2f1f;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-proof span {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 750;
  padding: 8px 10px;
}

.preview-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.preview-header span {
  color: var(--muted);
}

.preview-header strong {
  font-size: 38px;
}

.preview-meter,
.progress {
  background: #e6ecea;
  height: 10px;
  overflow: hidden;
}

.preview-meter span,
.progress span {
  background: var(--primary);
  display: block;
  height: 100%;
  transition: width 0.2s ease;
}

.preview-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.preview-grid div,
.category-card,
.gap-item {
  background: #f7faf9;
  border: 1px solid var(--line);
  padding: 12px;
}

.dot {
  border-radius: 50%;
  display: inline-block;
  height: 10px;
  margin-right: 8px;
  width: 10px;
}

.green {
  background: var(--green);
}

.amber {
  background: var(--amber);
}

.red {
  background: var(--red);
}

.preview-list {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.preview-list p {
  color: var(--muted);
  font-weight: 750;
  margin-bottom: 8px;
}

.info-band,
.assessment-shell,
.result-shell,
.legal-page,
.journey-band,
.plans-band,
.kit-hero,
.kit-band {
  padding: clamp(42px, 7vw, 78px) clamp(18px, 4vw, 56px);
}

.info-band {
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.signal-strip {
  background: var(--surface-warm);
  border-bottom: 1px solid #eadfce;
  border-top: 1px solid #eadfce;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: -18px;
  position: relative;
  z-index: 2;
}

.signal-strip div {
  border-right: 1px solid #eadfce;
  padding: 22px clamp(18px, 4vw, 42px);
}

.signal-strip div:last-child {
  border-right: 0;
}

.signal-strip strong {
  color: var(--primary-strong);
  display: block;
  font-size: 22px;
  line-height: 1.1;
}

.signal-strip span {
  color: var(--muted);
}

.info-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 24px;
}

.info-grid article {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(18, 32, 31, 0.06);
  min-height: 210px;
  padding: 22px;
}

.section-number {
  color: var(--accent);
  display: block;
  font-weight: 850;
  margin-bottom: 20px;
}

.journey-band {
  background:
    radial-gradient(circle at top right, rgba(47, 96, 159, 0.14), transparent 36%),
    linear-gradient(135deg, #0e2b2b, #143d43);
  color: #fff;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
}

.journey-copy p {
  color: rgba(255, 255, 255, 0.76);
}

.journey-copy .eyebrow {
  color: #8ee4d3;
}

.journey-steps {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.journey-steps article {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 22px;
}

.journey-steps strong {
  align-items: center;
  background: #fff;
  color: var(--primary-strong);
  display: inline-flex;
  font-size: 22px;
  height: 42px;
  justify-content: center;
  margin-bottom: 28px;
  width: 42px;
}

.journey-steps p {
  color: rgba(255, 255, 255, 0.76);
}

.assessment-shell {
  background: linear-gradient(180deg, #fff, #f4f7f6);
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(240px, 0.38fr) minmax(0, 0.62fr);
}

.assessment-intro {
  max-width: 420px;
}

.assessment-intro h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.08;
}

.mini-report {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--primary);
  box-shadow: 0 14px 36px rgba(18, 32, 31, 0.08);
  color: var(--text);
  display: grid;
  gap: 12px;
  margin-top: 28px;
  padding: 20px;
}

.sample-pill {
  background: #effaf7;
  color: var(--primary-strong);
  display: inline-flex;
  font-size: 12px;
  font-weight: 850;
  justify-self: start;
  padding: 6px 8px;
  text-transform: uppercase;
}

.mini-report h3 {
  font-size: 22px;
  margin: 0;
}

.mini-report p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.mini-report ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mini-report li {
  margin: 10px 0;
}

.text-button {
  border-bottom: 1px solid currentColor;
  color: var(--primary);
  font-weight: 800;
  justify-self: start;
}

.assessment-form {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-height: 560px;
  padding: clamp(20px, 4vw, 34px);
}

.progress-wrap {
  margin-bottom: 24px;
}

#progress-label {
  color: var(--muted);
  display: block;
  font-size: 13px;
  margin-bottom: 8px;
}

.step-title {
  margin-bottom: 18px;
}

.field-grid {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label,
.question-title {
  font-weight: 750;
}

.field small {
  color: var(--muted);
  font-size: 13px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="date"],
select,
textarea {
  background: #fbfdfc;
  border: 1px solid var(--line);
  color: var(--text);
  font: inherit;
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(15, 107, 91, 0.22);
  outline-offset: 2px;
}

textarea {
  resize: vertical;
}

.option-list {
  display: grid;
  gap: 8px;
}

.option {
  align-items: center;
  border: 1px solid var(--line);
  cursor: pointer;
  display: flex;
  gap: 10px;
  min-height: 46px;
  padding: 10px 12px;
}

.option:has(input:checked) {
  background: #effaf7;
  border-color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary);
}

.option input {
  flex: 0 0 auto;
}

.form-message,
.form-error {
  color: var(--red);
  font-weight: 700;
}

.result-shell {
  background:
    radial-gradient(circle at top left, rgba(8, 114, 98, 0.1), transparent 32%),
    #fff;
  border-top: 1px solid var(--line);
}

.result-delivery {
  background: #effaf7;
  border: 1px solid #c9dfd8;
  color: var(--primary-strong);
  display: inline-flex;
  font-weight: 750;
  margin-bottom: 14px;
  padding: 10px 12px;
}

.result-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: 220px repeat(2, minmax(0, 1fr));
}

.score-card,
.result-panel {
  border: 1px solid var(--line);
  padding: 20px;
}

.score-card {
  align-items: center;
  background: var(--primary);
  color: #fff;
  display: grid;
  justify-items: center;
}

.score-card span {
  font-size: 64px;
  font-weight: 850;
  line-height: 1;
}

.result-panel.full {
  margin-top: 16px;
}

.demo-modal {
  align-items: center;
  bottom: 0;
  display: grid;
  justify-items: center;
  left: 0;
  padding: clamp(16px, 3vw, 32px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
}

.demo-modal-backdrop {
  background: rgba(5, 22, 24, 0.68);
  border: 0;
  bottom: 0;
  cursor: pointer;
  left: 0;
  padding: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.demo-modal-panel {
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: 0 24px 80px rgba(5, 22, 24, 0.28);
  max-height: min(86vh, 920px);
  max-width: 1120px;
  overflow: auto;
  position: relative;
  width: min(100%, 1120px);
  z-index: 1;
}

.modal-close-button {
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--primary-strong);
  cursor: pointer;
  font-weight: 850;
  padding: 10px 12px;
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 2;
}

body.modal-open {
  overflow: hidden;
}

.action-plan {
  display: grid;
  gap: 10px;
}

.action-item {
  background: #f7faf9;
  border: 1px solid var(--line);
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(160px, 0.24fr) minmax(0, 1fr);
  padding: 14px;
}

.action-meta {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  gap: 5px;
}

.action-meta span {
  display: block;
}

.action-body strong {
  display: block;
  margin-bottom: 6px;
}

.action-body p {
  margin-bottom: 8px;
}

.action-body small {
  color: var(--muted);
  display: block;
}

.gap-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gap-item strong {
  display: block;
}

.gap-item span {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.result-cta {
  background: #eef6f3;
  border: 1px solid #c9dfd8;
  justify-content: space-between;
  margin-top: 18px;
  padding: 20px;
}

.result-cta > div {
  max-width: 680px;
}

.result-cta .secondary-button {
  background: transparent;
}

.plans-band {
  background: var(--surface-blue);
  border-top: 1px solid #d5e7ef;
}

.plan-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 24px;
}

.plan-grid article {
  background: #fff;
  border: 1px solid #d5e7ef;
  display: grid;
  gap: 10px;
  min-height: 210px;
  padding: 22px;
}

.plan-grid article:nth-child(2) {
  border-top: 4px solid var(--gold);
}

.plan-grid article:nth-child(3) {
  border-top: 4px solid var(--primary);
}

.plan-grid article:nth-child(4) {
  border-top: 4px solid var(--blue);
}

.plan-grid span {
  color: var(--muted);
  font-size: 14px;
  margin-top: auto;
}

.kit-inline-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.kit-hero {
  background:
    linear-gradient(135deg, rgba(8, 114, 98, 0.1), transparent 38%),
    #fff;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 0.62fr) minmax(280px, 0.38fr);
}

.kit-hero h1 {
  color: var(--text);
}

.kit-hero .hero-lede {
  color: var(--muted);
}

.price-box {
  align-self: start;
  background: #102b2d;
  color: #fff;
  display: grid;
  gap: 14px;
  padding: clamp(22px, 4vw, 34px);
}

.price-box span {
  color: #8ee4d3;
  font-weight: 850;
  text-transform: uppercase;
}

.price-box strong {
  font-size: clamp(58px, 8vw, 84px);
  line-height: 1;
}

.price-box p,
.price-box small {
  color: rgba(255, 255, 255, 0.76);
}

.price-box .primary-button {
  background: #fff;
  color: var(--primary-strong);
  box-shadow: none;
}

.kit-band {
  background: #fff;
  border-top: 1px solid var(--line);
}

.kit-band.alt {
  background: var(--surface-warm);
  border-top-color: #eadfce;
}

.kit-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.kit-grid article,
.route-list article,
.kit-warning {
  background: #fff;
  border: 1px solid var(--line);
  padding: 20px;
}

.route-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.route-list article {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(180px, 0.26fr) minmax(0, 1fr);
}

.route-list strong {
  color: var(--primary-strong);
}

.kit-warning {
  max-width: 860px;
}

.guided-shell {
  background:
    linear-gradient(180deg, #ffffff, #f4f7f6);
  display: grid;
  gap: 26px;
  grid-template-columns: minmax(280px, 0.34fr) minmax(0, 0.66fr);
  min-height: calc(100vh - 83px);
  padding: clamp(28px, 5vw, 58px) clamp(18px, 4vw, 56px);
}

.guided-intro {
  align-self: start;
  display: grid;
  gap: 18px;
  position: sticky;
  top: 104px;
}

.guided-intro h1 {
  color: var(--text);
  font-size: clamp(36px, 4.4vw, 58px);
  margin-bottom: 0;
}

.guided-intro .hero-lede {
  color: var(--muted);
}

.guided-safety,
.route-preview,
.local-recovery-drawer,
.local-workspace,
.local-history,
.text-review-panel,
.guided-form,
.guided-output article,
.guided-output-grid article,
.guided-plan,
.guided-caution {
  background: #fff;
  border: 1px solid var(--line);
}

.guided-safety {
  border-left: 5px solid var(--accent);
  padding: 16px;
}

.guided-safety strong {
  color: var(--accent);
  display: block;
  margin-bottom: 6px;
}

.guided-safety p {
  color: var(--muted);
  margin: 0;
}

.route-preview {
  border-left: 5px solid var(--primary);
  padding: 18px;
}

.route-preview span,
.route-card span {
  color: var(--primary);
  display: block;
  font-size: 12px;
  font-weight: 850;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.route-preview h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.route-preview p {
  color: var(--muted);
  margin: 0;
}

.local-recovery-drawer {
  padding: 14px 16px;
}

.local-recovery-drawer summary {
  color: var(--primary-strong);
  cursor: pointer;
  font-weight: 850;
}

.local-recovery-drawer summary::marker {
  color: var(--primary);
}

.local-recovery-drawer[open] {
  display: grid;
  gap: 12px;
}

.local-recovery-drawer > .fine-print {
  margin-top: 10px;
}

.local-recovery-drawer[open] > .fine-print {
  margin-top: 0;
}

.local-workspace {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.local-workspace h2 {
  font-size: 20px;
  margin: 0;
}

.local-workspace p,
.local-workspace li {
  color: var(--muted);
  font-size: 14px;
}

.local-workspace p {
  margin: 0;
}

.workspace-status {
  display: grid;
  gap: 6px;
}

.workspace-status strong {
  color: var(--primary-strong);
}

.workspace-status span {
  color: var(--muted);
  font-size: 13px;
}

.guided-save-actions,
.guided-export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.local-history {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.local-history h2 {
  font-size: 20px;
  margin: 0;
}

.local-history p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.version-history {
  display: grid;
  gap: 10px;
}

.version-item {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  padding-top: 10px;
}

.version-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.version-item strong {
  color: var(--primary-strong);
}

.version-item span {
  color: var(--muted);
  font-size: 13px;
}

.version-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.version-actions button {
  min-height: 34px;
  padding: 7px 10px;
}

.guided-workbench {
  min-width: 0;
}

.guided-form {
  box-shadow: var(--shadow);
  padding: clamp(18px, 3vw, 30px);
}

.guided-mobile-brief {
  display: none;
}

.guided-step {
  display: none;
}

.guided-step.is-active {
  display: block;
}

.guided-step .step-title p:last-child {
  color: var(--muted);
}

.field-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.check-panel {
  border: 1px solid var(--line);
  display: grid;
  gap: 8px;
  margin: 20px 0 0;
  padding: 16px;
}

.check-panel legend {
  color: var(--primary-strong);
  font-weight: 850;
  padding: 0 8px;
}

.check-panel.grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guided-review-fields {
  margin-top: 18px;
}

.text-review-panel {
  background: #f7faf9;
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 16px;
}

.text-review-panel h3 {
  font-size: 20px;
  margin: 0;
}

.text-review-panel p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.text-review-panel dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.text-review-panel div {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 4px;
  padding-top: 8px;
}

.text-review-panel dt {
  color: var(--primary-strong);
  font-size: 13px;
  font-weight: 850;
}

.text-review-panel dd {
  color: var(--text);
  margin: 0;
  overflow-wrap: anywhere;
}

.guided-output {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.route-card,
.guided-output-grid article,
.guided-plan,
.guided-caution {
  padding: 18px;
}

.route-card {
  border-left: 5px solid var(--primary);
}

.route-card h3 {
  font-size: 24px;
}

.route-card p,
.guided-output-grid p,
.guided-action p,
.guided-caution p {
  color: var(--muted);
}

.guided-output-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guided-output ul {
  margin: 0;
  padding-left: 20px;
}

.guided-output li {
  margin: 6px 0;
}

.guided-action {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
  padding: 14px 0;
}

.guided-action:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.guided-action span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.guided-plan details {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}

.guided-plan details:first-of-type {
  border-top: 0;
}

.guided-plan summary {
  cursor: pointer;
  font-weight: 800;
}

.guided-plan pre {
  background: #f7faf9;
  border: 1px solid var(--line);
  color: var(--text);
  font: 14px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-x: auto;
  padding: 14px;
  white-space: pre-wrap;
}

.guided-caution {
  border-left: 5px solid var(--gold);
}

.guided-export-actions {
  margin-top: 18px;
}

.download-finish-panel,
.optional-download-actions {
  border: 1px solid var(--line);
  margin-top: 18px;
  padding: 16px;
}

.download-finish-panel {
  background: #f7faf9;
}

.download-finish-panel h3 {
  margin-bottom: 6px;
}

.download-finish-panel p,
.optional-download-actions p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 0;
}

.primary-download-actions {
  align-items: stretch;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.primary-download-actions .primary-button,
.primary-download-actions .secondary-button {
  min-height: 52px;
}

.download-status {
  background: #fff;
  border-left: 4px solid var(--primary);
  color: var(--primary-strong);
  font-size: 14px;
  font-weight: 750;
  margin: 12px 0 0;
  padding: 10px 12px;
}

.optional-download-actions {
  background: #fff;
}

.optional-download-actions summary {
  cursor: pointer;
  font-weight: 850;
}

.optional-download-actions .guided-export-actions {
  margin-top: 12px;
}

.safety-review {
  border-left: 5px solid var(--accent);
  margin-bottom: 18px;
}

.review-request-output {
  background: #f7faf9;
  border: 1px solid var(--line);
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 16px;
}

.review-request-output textarea {
  min-height: 180px;
}

.footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  padding: 22px clamp(18px, 4vw, 56px);
}

.footer nav {
  display: flex;
  gap: 16px;
}

.legal-page {
  background: #fff;
  margin: 40px auto;
  max-width: 860px;
}

.admin-body {
  background: #eef2f1;
}

.admin-login {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
  margin: 12vh auto 0;
  max-width: 420px;
  padding: 28px;
}

.admin-login form {
  display: grid;
  gap: 10px;
}

.admin-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  padding: 20px clamp(18px, 4vw, 48px);
}

.admin-shell {
  padding: 24px clamp(18px, 4vw, 48px);
}

.lead-table-wrap {
  background: #fff;
  border: 1px solid var(--line);
  overflow-x: auto;
}

.lead-table {
  border-collapse: collapse;
  min-width: 920px;
  width: 100%;
}

.lead-table th,
.lead-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.lead-table th {
  background: #f7faf9;
  font-size: 13px;
}

.lead-detail {
  color: var(--muted);
  margin-top: 10px;
}

.hidden {
  display: none !important;
}

@media (max-width: 960px) {
  .assessment-shell,
  .result-layout,
  .journey-band,
  .kit-hero,
  .guided-shell {
    grid-template-columns: 1fr;
  }

  .guided-intro {
    order: 2;
    position: static;
  }

  .guided-workbench {
    order: 1;
  }

  .guided-mobile-brief {
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 6px;
    padding-bottom: 14px;
  }

  .guided-mobile-brief p {
    color: var(--muted);
    margin: 0;
  }

  .guided-mobile-brief strong {
    color: var(--text);
  }

  .hero {
    background-position: 60% center;
    min-height: 650px;
  }

  .info-grid,
  .gap-list,
  .plan-grid,
  .signal-strip,
  .kit-grid,
  .guided-output-grid,
  .check-panel.grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .journey-steps {
    grid-template-columns: 1fr;
  }

  .action-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .language-switcher {
    width: 100%;
  }

  .language-switcher button {
    flex: 1;
  }

  h1 {
    font-size: clamp(34px, 11vw, 42px);
    overflow-wrap: anywhere;
  }

  .hero-lede {
    font-size: 17px;
  }

  .demo-modal {
    align-items: end;
    padding: 0;
  }

  .demo-modal-panel {
    border-radius: 0;
    max-height: 92vh;
    width: 100%;
  }

  .modal-close-button {
    position: static;
    width: 100%;
  }

  .info-grid,
  .gap-list,
  .preview-grid,
  .plan-grid,
  .signal-strip,
  .field-grid.two,
  .guided-output-grid,
  .check-panel.grid {
    grid-template-columns: 1fr;
  }

  .hero {
    background-image:
      linear-gradient(180deg, rgba(6, 29, 31, 0.86) 0%, rgba(6, 29, 31, 0.74) 48%, rgba(6, 29, 31, 0.22) 100%),
      url("/assets/images/clinic-compliance-hero.png");
    background-position: 62% center;
    min-height: 680px;
    padding-bottom: 96px;
  }

  .signal-strip {
    margin-top: -54px;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .primary-download-actions {
    grid-template-columns: 1fr;
  }

  .kit-grid,
  .route-list article {
    grid-template-columns: 1fr;
  }
}
