:root {
  --bg: #18392b;
  --panel: rgba(228, 238, 230, 0.94);
  --ink: #000000;
  --muted: #1f2a23;
  --accent: #2d6a4f;
  --accent-strong: #1f513b;
  --accent-soft: #b7d6c4;
  --warm: #6f8f7a;
  --danger: #a93535;
  --line: rgba(0, 0, 0, 0.14);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(119, 170, 136, 0.18), transparent 30%),
    radial-gradient(circle at bottom left, rgba(85, 122, 96, 0.18), transparent 24%),
    linear-gradient(135deg, #163727 0%, #214a36 100%);
  min-height: 100vh;
}

.shell { display: grid; grid-template-columns: 320px 1fr; min-height: 100vh; }

.sidebar {
  padding: 32px 24px;
  background: linear-gradient(180deg, rgba(166, 197, 176, 0.95), rgba(129, 164, 141, 0.95));
  color: #000000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}

.sidebar h1, .hero h2, .panel-header h2, .section-title h3, .list-card h4 { font-family: "Source Serif 4", serif; }
.sidebar h1 { font-size: 2rem; line-height: 1.05; margin: 8px 0 12px; }

.eyebrow { margin: 0; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; opacity: 0.8; }
.sidebar-copy, .sidebar-card p, .muted { color: rgba(0, 0, 0, 0.78); }

.sidebar-card {
  padding: 18px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.26);
}

.sidebar-label { margin-top: 0; color: #000000; font-weight: 700; }
.progress-nav { display: grid; gap: 10px; }

.progress-step {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: #000000;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.progress-step.active {
  background: rgba(255, 255, 255, 0.45);
  color: #000000;
  border-color: rgba(0, 0, 0, 0.18);
}

.progress-step:hover {
  transform: translateX(2px);
  color: #000000;
  border-color: rgba(0, 0, 0, 0.22);
}

.main { padding: 32px; }
.panel { display: none; animation: rise 240ms ease; }
.panel.active { display: block; }

.hero, .card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero {
  padding: 48px;
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 100%;
  width: 100%;
}

.hero h2 {
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  line-height: 0.98;
  max-width: 16ch;
  margin: 16px 0 20px;
}

.hero-title-wide {
  max-width: 100% !important;
  width: 100%;
  font-size: clamp(2.1rem, 3.6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

.hero-copy { max-width: 64ch; color: var(--muted); font-size: 1.05rem; line-height: 1.7; }
.hero-wide { max-width: 1400px; }
.hero-copy-wide { max-width: none; }
.landing-footer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

.landing-footer p {
  margin: 0;
}

.about-us-card {
  padding: 32px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(235, 244, 237, 0.92));
}

.about-neravise { display: grid; gap: 24px; margin: 8px 0 8px; }
.about-hero { display: grid; gap: 20px; grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr); }
.about-lead, .about-highlight, .about-copy-card, .feature-card, .about-cta {
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 26px;
  box-shadow: var(--shadow);
}
.about-lead {
  padding: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(235, 244, 237, 0.92));
}
.about-lead h3, .about-copy-card h4, .feature-card h4, .about-cta h4 {
  margin: 0;
  font-family: "Source Serif 4", serif;
  color: var(--ink);
}
.about-lead h3 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.02; margin-top: 10px; max-width: 14ch; }
.about-highlight {
  padding: 28px;
  background: linear-gradient(180deg, rgba(232, 247, 239, 0.92), rgba(255, 255, 255, 0.82));
}
.about-kicker {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent-strong);
}
.about-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
.about-copy-card {
  padding: 28px;
  background: rgba(255, 255, 255, 0.9);
  width: 100%;
  max-width: none;
}
.feature-card-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-card { padding: 24px; background: rgba(255, 255, 255, 0.88); }
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(45, 106, 79, 0.12);
  color: var(--accent-strong);
  font-size: 1.4rem;
  font-weight: 700;
}
.about-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 28px;
  background: linear-gradient(135deg, rgba(230, 245, 235, 0.95), rgba(255, 255, 255, 0.88));
}

.panel-header, .section-title, .form-actions, .toggle-row, .list-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.panel-header { margin-bottom: 20px; }
.panel-header h2, .section-title h3 { margin: 4px 0 0; }

.metrics, .split { display: grid; gap: 20px; }
.metrics { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 20px; }

.metric {
  padding: 20px;
  border-radius: 20px;
  background: rgba(255, 252, 247, 0.8);
  border: 1px solid var(--line);
}

.metric strong { display: block; font-size: 2rem; margin-top: 8px; }
.split { grid-template-columns: minmax(280px, 1fr) minmax(320px, 1fr); }
.report-layout { grid-template-columns: 340px 1fr; }
.card { padding: 24px; }
.stack, .form-grid { display: grid; gap: 16px; }
.workspace { padding: 18px; border-radius: 18px; background: rgba(13, 110, 110, 0.06); border: 1px solid rgba(13, 110, 110, 0.12); }
.workspace-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.consent-row { display: flex; align-items: flex-start; gap: 10px; }
.consent-row input { width: auto; margin-top: 4px; }
.metadata-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.metadata-card { padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.7); border: 1px solid var(--line); }
.metadata-card strong { display: block; margin-bottom: 6px; font-size: 0.85rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

label { display: grid; gap: 8px; color: var(--muted); font-size: 0.95rem; }

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  font: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.85);
}

textarea { resize: vertical; min-height: 130px; }

.button {
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: 0.5; transform: none; }
.button.primary { background: var(--accent); color: white; }
.button.secondary { background: var(--accent-soft); color: var(--accent-strong); }
.button.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.toggle.active { background: var(--accent); color: white; }

.message { margin: 0; padding: 12px 14px; border-radius: 14px; background: rgba(13, 110, 110, 0.08); color: var(--accent-strong); }
.message.error { background: rgba(169, 53, 53, 0.1); color: var(--danger); }
.message.warning { background: rgba(188, 128, 33, 0.16); color: #6f4b00; }
.message.neutral { background: rgba(30, 36, 48, 0.06); color: var(--ink); }

.list-card { padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.62); }
.list-card h4, .list-card p { margin: 0; }
.list-card p, .card .muted, label span { color: var(--muted); }
textarea[readonly] { background: rgba(242, 246, 243, 0.92); }
.hidden { display: none; }

.scoring-layout {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.scoring-column {
  display: grid;
  gap: 24px;
}

.scoring-card {
  padding: 24px;
}

.scoring-heading {
  margin-bottom: 24px;
}

.scoring-heading h3 {
  margin: 0;
  font-family: "Source Serif 4", serif;
  font-size: 1.9rem;
  color: var(--ink);
}

.scoring-heading p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.scoring-warning,
.scoring-summary-note {
  padding: 16px;
  border-radius: 16px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.scoring-warning {
  background: #fff2d8;
  color: #624300;
  border: 1px solid rgba(98, 67, 0, 0.14);
}

.governance-warning {
  background: rgba(237, 245, 240, 0.95);
  color: var(--ink);
  border-color: rgba(0, 0, 0, 0.1);
}

.scoring-check,
.scoring-toggle {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(30, 36, 48, 0.05);
}

.scoring-toggle {
  align-items: center;
}

.scoring-check input,
.scoring-toggle input {
  width: auto;
  margin-top: 4px;
}

.scoring-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.excerpt-list {
  display: grid;
  gap: 14px;
}

.excerpt-card {
  width: 100%;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.excerpt-card:hover {
  background: rgba(240, 246, 242, 0.95);
  transform: translateY(-1px);
}

.excerpt-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.excerpt-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
}

.legacy-landing { display: none; }

body.public-home-active {
  background:
    radial-gradient(circle at top left, rgba(215, 228, 244, 0.78), transparent 34%),
    radial-gradient(circle at top right, rgba(245, 239, 230, 0.82), transparent 30%),
    linear-gradient(180deg, #fbfcff 0%, #f6f8fc 100%);
}

body.public-home-active .shell { grid-template-columns: 1fr; }
body.public-home-active .sidebar { display: none; }
body.public-home-active .main { padding: 0; }

.homepage {
  padding: 24px 24px 0;
  color: #13233e;
}

.homepage-header,
.homepage-section,
.homepage-footer {
  max-width: 1440px;
  margin: 0 auto;
}

.homepage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 28px;
  margin-top: 12px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(206, 216, 229, 0.9);
  box-shadow: 0 18px 44px rgba(26, 47, 86, 0.08);
  backdrop-filter: blur(12px);
}

.homepage-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }

.homepage-brand-logo {
  display: block;
  width: clamp(170px, 18vw, 245px);
  max-height: 64px;
  height: auto;
  object-fit: contain;
}

.homepage-brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #eff5fb, #fdfefe);
  border: 1px solid rgba(198, 211, 229, 0.88);
  color: #577daf;
  font-family: "Source Serif 4", serif;
  font-size: 1.85rem;
}

.homepage-brand-name {
  margin: 0;
  letter-spacing: 0.18em;
  font-size: 2rem;
  color: #183154;
}

.homepage-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.homepage-menu-button {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(174, 194, 218, 0.9);
  border-radius: 16px;
  background: #f8fbfe;
  color: #183154;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.homepage-menu-button:focus-visible,
.homepage-nav-link:focus-visible,
.homepage-footer-links a:focus-visible,
.homepage-footer-button:focus-visible {
  outline: 3px solid rgba(95, 141, 189, 0.42);
  outline-offset: 4px;
  border-radius: 10px;
}

.homepage-menu-icon,
.homepage-menu-icon::before,
.homepage-menu-icon::after {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  display: block;
  transition: transform 180ms ease, opacity 180ms ease;
}

.homepage-menu-icon { position: relative; }
.homepage-menu-icon::before,
.homepage-menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}
.homepage-menu-icon::before { top: -7px; }
.homepage-menu-icon::after { top: 7px; }

.homepage-header.menu-open .homepage-menu-icon { background: transparent; }
.homepage-header.menu-open .homepage-menu-icon::before { transform: translateY(7px) rotate(45deg); }
.homepage-header.menu-open .homepage-menu-icon::after { transform: translateY(-7px) rotate(-45deg); }

.homepage-nav-link,
.homepage-footer-button {
  color: #213756;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  transition: color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.homepage-nav-link.active,
.homepage-nav-link[aria-current="page"] {
  color: #18385b;
  box-shadow: inset 0 -2px 0 #8eb7dd;
}

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

.homepage-demo-button {
  background: #18385b;
  color: #ffffff;
  padding-inline: 28px;
}

.homepage-hero {
  max-width: 1440px;
  margin: 28px auto 0;
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
  gap: 36px;
  align-items: center;
  padding: 42px 28px 30px;
  border-radius: 38px;
  background:
    radial-gradient(circle at left center, rgba(234, 240, 249, 0.9), transparent 34%),
    radial-gradient(circle at center, rgba(246, 239, 231, 0.7), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 253, 0.94));
  border: 1px solid rgba(219, 227, 237, 0.95);
  box-shadow: 0 28px 80px rgba(31, 49, 84, 0.09);
}

.homepage-hero-copy h1,
.homepage-section-heading h2,
.governance-copy h2,
.cta-card h2 {
  margin: 0;
  font-family: "Source Serif 4", serif;
}

.homepage-hero-copy h1 {
  width: 100%;
  max-width: none;
  text-align: center;
  font-size: clamp(3.75rem, 5.3vw, 5.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.homepage-hero-copy h1 span { color: #5f8dbd; }

.homepage-hero-copy p {
  margin: 26px 0 0;
  max-width: 28ch;
  font-size: 1.6rem;
  line-height: 1.6;
  color: #2f4666;
}

.homepage-hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 30px;
}

.homepage-outline {
  background: rgba(255, 255, 255, 0.9);
  color: #36557b;
  border-color: rgba(96, 132, 172, 0.45);
}

.homepage-trust {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #45617d;
  font-size: 1rem;
  max-width: 28rem;
}

.homepage-trust-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef5fd;
  border: 1px solid rgba(169, 191, 217, 0.7);
  color: #6d8fb3;
  flex-shrink: 0;
}

.homepage-hero-visual {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.dashboard-mockup {
  width: min(100%, 880px);
  aspect-ratio: 1.25 / 0.84;
  padding: 26px 22px 18px;
  border-radius: 34px;
  background:
    radial-gradient(circle at right center, rgba(198, 215, 184, 0.48), transparent 20%),
    linear-gradient(180deg, rgba(246, 242, 236, 0.6), rgba(241, 235, 227, 0.32));
}

.dashboard-screen {
  border-radius: 24px;
  padding: 18px;
  background: linear-gradient(180deg, #1f2329, #0f1216);
  box-shadow: 0 30px 60px rgba(40, 45, 56, 0.28);
}

.dashboard-topbar { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px 14px; color: #f2f6fb; font-size: 0.86rem; }
.dashboard-logo { letter-spacing: 0.14em; }
.dashboard-top-icons { display: flex; gap: 10px; }
.dashboard-top-icons span { width: 18px; height: 18px; border-radius: 999px; background: rgba(255, 255, 255, 0.88); }
.dashboard-content { display: grid; grid-template-columns: 150px 1fr; gap: 14px; background: #f8fafc; border-radius: 18px; padding: 12px; }
.dashboard-side-nav { display: grid; align-content: start; gap: 12px; padding: 12px 8px; color: #5c6e88; font-size: 0.84rem; }
.dashboard-side-nav span:first-child { padding: 10px 12px; border-radius: 12px; background: #ebf1f8; color: #1d3554; font-weight: 700; }
.dashboard-main { display: grid; gap: 14px; }
.dashboard-welcome h3, .dashboard-activity-card h4, .dashboard-upcoming-card h4 { margin: 0; color: #172b4a; }
.dashboard-welcome p, .dashboard-activity-card strong, .dashboard-upcoming-card p, .dashboard-stat-grid article p, .dashboard-stat-grid article span { margin: 0; color: #69809b; }
.dashboard-stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dashboard-stat-grid article, .dashboard-activity-card, .dashboard-upcoming-card { background: #ffffff; border-radius: 14px; padding: 16px; box-shadow: inset 0 0 0 1px rgba(223, 230, 237, 0.9); }
.dashboard-stat-grid article strong { display: block; margin: 12px 0 8px; font-size: 2rem; color: #17385b; }
.dashboard-lower-grid { display: grid; grid-template-columns: 1.25fr 0.95fr; gap: 12px; }
.dashboard-activity-card ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 12px; }
.dashboard-activity-card li { display: flex; justify-content: space-between; gap: 16px; font-size: 0.88rem; color: #35506e; }
.dashboard-client-name { margin-top: 14px !important; font-weight: 700; color: #1a3458 !important; }
.dashboard-mini-button { margin-top: 16px; border: none; border-radius: 999px; background: #8eb7dd; color: #ffffff; padding: 10px 14px; font: inherit; font-weight: 700; }

.homepage-section {
  margin-top: 22px;
  padding: 34px 36px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(219, 227, 237, 0.94);
  box-shadow: 0 24px 70px rgba(31, 49, 84, 0.07);
}

.homepage-section-heading.centered { text-align: center; }
.homepage-section-heading h2 { font-size: clamp(2.8rem, 4vw, 4.2rem); color: #193153; }
.homepage-section-heading p, .governance-copy p, .workflow-item p, .testimonial-card p, .cta-card p, .homepage-footer p, .homepage-footer-links a, .homepage-footer-button { color: #425976; line-height: 1.7; }
.workflow-row { margin-top: 28px; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 14px; align-items: start; }
.workflow-item { text-align: center; }
.workflow-item h3 { margin: 18px 0 12px; font-size: 1.22rem; color: #183356; }
.workflow-icon { width: 104px; height: 104px; margin: 0 auto; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 2rem; color: #264566; }
.workflow-icon.mint { background: #e7f2ef; }
.workflow-icon.lavender { background: #eceaf7; }
.workflow-icon.blue { background: #e7f1fb; }
.workflow-icon.peach { background: #fbeee8; }
.workflow-icon.sage { background: #e8f1e7; }
.workflow-dots { align-self: center; justify-self: center; width: 100%; max-width: 56px; height: 4px; border-radius: 999px; background: radial-gradient(circle, #a6c2df 28%, transparent 30%) left center / 14px 4px repeat-x; }

.governance-showcase { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr); gap: 26px; align-items: stretch; }
.governance-copy, .governance-visual, .testimonial-card, .cta-card { border-radius: 26px; }
.governance-copy { padding: 34px 34px 34px 36px; background: radial-gradient(circle at top left, rgba(229, 238, 250, 0.95), transparent 48%), linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 250, 253, 0.92)); }
.homepage-kicker { margin: 0 0 10px; text-transform: uppercase; letter-spacing: 0.12em; color: #5b86b4; font-weight: 700; }
.governance-copy h2 { font-size: clamp(2.6rem, 3.8vw, 4rem); color: #193153; }
.governance-copy p { max-width: none; }
.governance-list { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 16px; }
.governance-list li { position: relative; padding-left: 30px; color: #25405f; }
.governance-list li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: #e5f0fa; color: #6b94bf; font-size: 0.8rem; }
.governance-visual { min-height: 430px; background: linear-gradient(180deg, rgba(250, 245, 239, 0.72), rgba(244, 241, 233, 0.78)), radial-gradient(circle at top left, rgba(248, 241, 230, 0.88), transparent 38%); overflow: hidden; position: relative; }
.governance-room { position: absolute; inset: 0; }
.room-art { position: absolute; top: 42px; right: 72px; width: 120px; height: 150px; border-radius: 8px; background: linear-gradient(180deg, #f8f3ea, #efe8dc); box-shadow: inset 0 0 0 12px rgba(255, 255, 255, 0.75); }
.room-art::after { content: ""; position: absolute; inset: 28px; border-radius: 16px; background: linear-gradient(135deg, #d8e3cf, #f3eee7); }
.room-side-table { position: absolute; left: 86px; bottom: 56px; width: 94px; height: 88px; border-radius: 14px; background: linear-gradient(180deg, #d8ccb9, #c8baa4); }
.room-plant { position: absolute; left: 98px; bottom: 126px; width: 66px; height: 92px; border-radius: 999px 999px 16px 16px; background: radial-gradient(circle at center bottom, #b4c6a0 18%, transparent 19%), radial-gradient(circle at 40% 38%, #9eb186 24%, transparent 26%), radial-gradient(circle at 70% 24%, #b0c098 18%, transparent 20%), radial-gradient(circle at 28% 14%, #9caf83 18%, transparent 20%); }
.room-chair { position: absolute; right: 70px; bottom: 34px; width: 360px; height: 246px; border-radius: 44% 44% 24% 24% / 40% 40% 24% 24%; background: linear-gradient(180deg, #f1e9dc, #d9ccba); box-shadow: inset -18px -26px 50px rgba(141, 122, 98, 0.16); }
.room-cushion { position: absolute; right: 206px; bottom: 102px; width: 118px; height: 84px; border-radius: 28px; background: linear-gradient(145deg, #b2c29d, #8da07a); transform: rotate(-8deg); }

.governance-assurance-section {
  display: grid;
  gap: 28px;
  background:
    radial-gradient(circle at top left, rgba(229, 238, 250, 0.95), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 250, 253, 0.96));
}

.governance-assurance-heading {
  max-width: 920px;
}

.governance-assurance-heading h2 {
  font-size: clamp(2.7rem, 4vw, 4.35rem);
  color: #193153;
}

.governance-assurance-heading .governance-subheading {
  margin-top: 14px;
  max-width: 760px;
  font-size: 1.18rem;
  color: #25405f;
}

.governance-assurance-heading p {
  color: #425976;
  line-height: 1.75;
}

.governance-assurance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.governance-assurance-card {
  min-height: 100%;
  padding: 24px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(213, 224, 237, 0.96);
  box-shadow: 0 18px 44px rgba(31, 49, 84, 0.07);
}

.governance-card-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: #edf5fc;
  color: #5f8dbd;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 18px;
}

.governance-assurance-card h3,
.governance-provider-callout h3 {
  margin: 0;
  color: #183153;
  font-family: "Source Serif 4", serif;
}

.governance-assurance-card h3 {
  font-size: 1.4rem;
}

.governance-assurance-card p,
.governance-provider-callout p {
  color: #425976;
  line-height: 1.7;
}

.governance-assurance-card p {
  margin: 12px 0 0;
}

.governance-provider-callout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px 30px;
  border-radius: 26px;
  background: linear-gradient(135deg, #123354, #0b243d);
  box-shadow: 0 24px 70px rgba(31, 49, 84, 0.13);
}

.governance-provider-callout .homepage-kicker {
  color: #a9c9e8;
}

.governance-provider-callout h3 {
  color: #ffffff;
  font-size: clamp(1.65rem, 2.3vw, 2.35rem);
}

.governance-provider-callout p {
  max-width: 860px;
  color: #dbe8f6;
}

.governance-callout-button {
  flex: 0 0 auto;
  background: #ffffff !important;
  color: #183153 !important;
  text-decoration: none;
  white-space: nowrap;
}

.homepage-lower-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr); gap: 26px; background: transparent; border: none; box-shadow: none; padding: 0; }
.testimonial-card, .cta-card { padding: 34px 36px; background: rgba(255, 255, 255, 0.88); border: 1px solid rgba(219, 227, 237, 0.94); box-shadow: 0 24px 70px rgba(31, 49, 84, 0.07); }
.testimonial-quote-mark { color: #8fb1d5; font-family: "Source Serif 4", serif; font-size: 4rem; line-height: 1; }
.testimonial-card blockquote { margin: 0 0 18px; max-width: 22ch; font-family: "Source Serif 4", serif; color: #203456; font-size: 2rem; line-height: 1.5; }
.testimonial-dots { display: flex; gap: 10px; margin-top: 22px; }
.testimonial-dots span { width: 10px; height: 10px; border-radius: 999px; background: #d1dceb; }
.testimonial-dots .active { background: #4f76a4; }
.cta-card { display: flex; gap: 24px; align-items: center; }
.cta-icon { width: 104px; height: 104px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: #e9f3ee; color: #6b8ead; font-size: 2.2rem; flex-shrink: 0; }
.cta-card h2 { font-size: clamp(2.4rem, 3vw, 3.6rem); color: #183153; }

.homepage-footer {
  margin-top: 28px;
  padding: 40px 36px;
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(0, 1fr) minmax(220px, 0.78fr);
  gap: 28px;
  border-radius: 34px 34px 0 0;
  background: linear-gradient(180deg, #112b49, #071b30);
  color: #eef5fd;
}

.homepage-footer .homepage-brand-name,
.homepage-footer h3,
.homepage-footer p,
.homepage-footer-links a,
.homepage-footer-button { color: #eef5fd; }
.homepage-footer .homepage-brand-mark { background: rgba(255, 255, 255, 0.08); color: #d2e1f3; border-color: rgba(255, 255, 255, 0.12); }
.homepage-footer-brand p { max-width: 18rem; }
.homepage-footer-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.homepage-footer-links h3 { margin-top: 0; margin-bottom: 14px; }
.homepage-footer-links a, .homepage-footer-button { display: block; background: transparent; border: none; padding: 0; text-align: left; text-decoration: none; font: inherit; margin: 0 0 10px; cursor: pointer; }
.homepage-footer-cta { display: grid; align-content: start; justify-items: end; gap: 10px; }
.homepage-outline-light { background: transparent; color: #ffffff; border: 1px solid rgba(255, 255, 255, 0.6); }

.practitioner-login-section {
  background:
    radial-gradient(circle at top left, rgba(229, 238, 250, 0.72), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 250, 253, 0.96));
}

.practitioner-governance-message {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 20px;
  background: #eef5fd;
  border: 1px solid rgba(174, 197, 222, 0.92);
  color: #35506e;
  line-height: 1.75;
}

.practitioner-portal-root {
  margin-top: 28px;
}

.portal-shell {
  display: grid;
  gap: 24px;
}

.portal-login {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 0.9fr);
}

.portal-card,
.portal-auth-shell,
.portal-sidebar,
.portal-main-card,
.portal-banner,
.portal-tab-card,
.portal-file-card {
  border-radius: 24px;
  border: 1px solid rgba(219, 227, 237, 0.94);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 60px rgba(31, 49, 84, 0.06);
}

.portal-card {
  padding: 32px;
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.portal-brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #18385b;
  color: #ffffff;
  font-family: "Source Serif 4", serif;
  font-size: 1.65rem;
}

.portal-card h3,
.portal-section-title,
.portal-patient-name {
  margin: 0;
  font-family: "Source Serif 4", serif;
  color: #183154;
}

.portal-login-copy {
  margin-top: 22px;
  max-width: 36rem;
  color: #425976;
  line-height: 1.8;
}

.portal-badges,
.portal-login-actions,
.portal-toolbar,
.portal-pill-row,
.portal-tab-nav,
.portal-action-row,
.portal-tag-row,
.portal-status-grid,
.portal-kpi-grid,
.portal-files-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.portal-badge,
.portal-status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid rgba(174, 197, 222, 0.88);
}

.portal-badge.blue,
.portal-status-pill.blue { background: #eef5fd; color: #456e9c; }
.portal-badge.green,
.portal-status-pill.green { background: #edf9f2; color: #347856; border-color: rgba(158, 210, 177, 0.88); }
.portal-badge.amber,
.portal-status-pill.amber { background: #fff4df; color: #8a6420; border-color: rgba(229, 196, 130, 0.9); }
.portal-badge.slate,
.portal-status-pill.slate { background: #f2f5f9; color: #546479; border-color: rgba(199, 209, 220, 0.92); }

.portal-login-form .portal-field,
.portal-split-two,
.portal-split-three,
.portal-table,
.portal-table-row,
.portal-audit-list,
.portal-evidence-list,
.portal-tab-grid,
.portal-report-grid,
.portal-qa-grid {
  display: grid;
  gap: 16px;
}

.portal-field label {
  display: block;
  margin-bottom: 8px;
  color: #35506e;
  font-size: 0.95rem;
  font-weight: 600;
}

.portal-input,
.portal-select,
.portal-textarea {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(196, 207, 219, 0.96);
  background: #ffffff;
  padding: 14px 16px;
  font: inherit;
  color: #183154;
}

.portal-textarea {
  min-height: 124px;
  resize: vertical;
  line-height: 1.7;
}

.portal-link {
  color: #456e9c;
  text-decoration: none;
  font-weight: 600;
}

.portal-link:hover,
.homepage-nav-link:hover,
.homepage-footer-links a:hover,
.homepage-footer-button:hover {
  color: #5f8dbd;
}

.portal-button {
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.portal-button.primary { background: #18385b; color: #ffffff; }
.portal-button.secondary { background: #eef5fd; color: #35506e; border: 1px solid rgba(174, 197, 222, 0.92); }
.portal-button.ghost { background: transparent; color: #35506e; border: 1px solid rgba(196, 207, 219, 0.96); }
.portal-button:disabled { opacity: 0.55; cursor: not-allowed; }

.portal-auth-shell {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  overflow: hidden;
}

.portal-sidebar {
  border: none;
  border-right: 1px solid rgba(219, 227, 237, 0.94);
  box-shadow: none;
  padding: 24px 18px;
  background: linear-gradient(180deg, rgba(249, 251, 254, 0.96), rgba(244, 248, 252, 0.98));
}

.portal-sidebar-nav {
  margin-top: 20px;
  display: grid;
  gap: 8px;
}

.portal-nav-button,
.portal-tab-button {
  width: 100%;
  text-align: left;
  border: none;
  border-radius: 18px;
  background: transparent;
  padding: 12px 14px;
  font: inherit;
  font-weight: 600;
  color: #35506e;
  cursor: pointer;
}

.portal-nav-button.active,
.portal-tab-button.active {
  background: #18385b;
  color: #ffffff;
}

.portal-main {
  padding: 24px;
  display: grid;
  gap: 20px;
}

.portal-main-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.portal-main-header h3 {
  margin: 0;
  font-size: 2rem;
}

.portal-muted {
  color: #546479;
  line-height: 1.7;
}

.portal-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.portal-kpi-card,
.portal-overview-card,
.portal-file-card {
  padding: 20px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(219, 227, 237, 0.94);
}

.portal-kpi-card strong,
.portal-stat-value {
  display: block;
  margin-top: 12px;
  font-size: 2rem;
  color: #183154;
}

.portal-table {
  margin-top: 8px;
}

.portal-table-head,
.portal-table-row {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: center;
}

.portal-table-head {
  color: #546479;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(219, 227, 237, 0.94);
}

.portal-table-row {
  padding: 14px 0;
  border-bottom: 1px solid rgba(236, 241, 246, 0.98);
}

.portal-patient-header {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(260px, 0.82fr);
  gap: 20px;
}

.portal-patient-meta,
.portal-status-grid,
.portal-split-two,
.portal-split-three,
.portal-report-grid,
.portal-files-grid,
.portal-qa-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portal-status-grid.three,
.portal-split-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portal-status-card,
.portal-overview-card {
  padding: 16px;
  border-radius: 18px;
  background: #f7fafc;
  border: 1px solid rgba(228, 235, 243, 0.96);
}

.portal-tab-card {
  padding: 24px;
}

.portal-banner {
  padding: 16px 18px;
  background: #fff4df;
  color: #8a6420;
  border-color: rgba(229, 196, 130, 0.9);
}

.portal-banner.info {
  background: #eef5fd;
  color: #35506e;
  border-color: rgba(174, 197, 222, 0.92);
}

.portal-banner.success {
  background: #edf9f2;
  color: #347856;
  border-color: rgba(158, 210, 177, 0.88);
}

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

.portal-evidence-item,
.portal-audit-item {
  padding: 14px 16px;
  border-radius: 16px;
  background: #f7fafc;
  border: 1px solid rgba(228, 235, 243, 0.96);
}

.portal-evidence-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: #546479;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.portal-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f7fafc;
  border: 1px solid rgba(228, 235, 243, 0.96);
  color: #35506e;
}

.portal-tag {
  border: 1px solid rgba(174, 197, 222, 0.92);
  background: #eef5fd;
  color: #456e9c;
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 700;
}

.portal-files-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.portal-audit-list {
  display: grid;
  gap: 12px;
}

.portal-audit-item {
  position: relative;
  padding-left: 22px;
}

.portal-audit-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #5f8dbd;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { padding-bottom: 16px; }
  .main { padding: 20px; }
  .split, .report-layout, .scoring-layout { grid-template-columns: 1fr; }
  .workspace-grid, .metadata-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding: 28px; }
  .about-hero, .about-grid, .feature-card-grid { grid-template-columns: 1fr; }
  .about-cta { flex-direction: column; align-items: flex-start; }
  body.public-home-active .main { padding: 0; }
  .homepage { padding: 16px 16px 0; }
  .homepage-header,
  .homepage-hero,
  .homepage-section,
  .homepage-footer { padding-left: 20px; padding-right: 20px; }
  .homepage-hero,
  .governance-showcase,
  .governance-assurance-grid,
  .homepage-lower-grid,
  .homepage-footer,
  .dashboard-content,
  .dashboard-lower-grid,
  .dashboard-stat-grid,
  .workflow-row,
  .homepage-footer-links { grid-template-columns: 1fr; }
  .homepage-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    border-radius: 24px;
    position: sticky;
    top: 10px;
    z-index: 20;
  }
  .homepage-menu-button { display: inline-flex; }
  .homepage-nav {
    grid-column: 1 / -1;
    display: none;
    width: 100%;
    padding-top: 14px;
    gap: 8px;
  }
  .homepage-header.menu-open .homepage-nav { display: grid; }
  .homepage-nav-link {
    display: block;
    min-height: 44px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(242, 247, 252, 0.86);
  }
  .homepage-nav-link:hover,
  .homepage-nav-link:focus-visible {
    background: #eaf3fb;
  }
  .homepage-nav-link.active,
  .homepage-nav-link[aria-current="page"] {
    box-shadow: inset 3px 0 0 #8eb7dd;
  }
  .homepage-hero {
    min-height: auto;
    gap: 24px;
    padding-top: 34px;
    border-radius: 28px;
  }
  .homepage-hero-copy h1 {
    max-width: none;
    font-size: clamp(2.7rem, 10vw, 4.2rem);
    text-align: left;
    line-height: 1.06;
  }
  .homepage-hero-copy p { max-width: none; font-size: 1.18rem; }
  .homepage-trust { max-width: none; }
  .dashboard-mockup { width: 100%; }
  .workflow-dots { display: none; }
  .workflow-item { text-align: left; }
  .workflow-icon { margin: 0 0 12px; }
  .cta-card { flex-direction: column; align-items: flex-start; }
  .governance-provider-callout { flex-direction: column; align-items: flex-start; }
  .homepage-footer-cta { justify-items: start; }
  .portal-login,
  .portal-auth-shell,
  .portal-kpi-grid,
  .portal-table-head,
  .portal-table-row,
  .portal-patient-header,
  .portal-status-grid,
  .portal-split-two,
  .portal-split-two.equal,
  .portal-split-three,
  .portal-files-grid {
    grid-template-columns: 1fr;
  }
  .portal-main-header { align-items: flex-start; }
  .portal-table-head { display: none; }
  .portal-table-row { padding: 18px; border-radius: 18px; background: #f8fbfd; border: 1px solid rgba(228, 235, 243, 0.96); }
}

@media (max-width: 640px) {
  .homepage { padding: 10px 10px 0; }
  .homepage-header,
  .homepage-hero,
  .homepage-section,
  .homepage-footer {
    padding-left: 16px;
    padding-right: 16px;
  }
  .homepage-header {
    margin-top: 8px;
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .homepage-brand { gap: 10px; min-width: 0; }
  .homepage-brand-logo { width: min(48vw, 190px); }
  .homepage-brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 1.48rem;
  }
  .homepage-brand-name {
    font-size: 1.36rem;
    letter-spacing: 0.12em;
  }
  .homepage-menu-button {
    width: 44px;
    height: 44px;
  }
  .homepage-hero {
    margin-top: 14px;
    padding-top: 28px;
    padding-bottom: 22px;
  }
  .homepage-hero-copy p {
    margin-top: 18px;
    font-size: 1.05rem;
    line-height: 1.55;
  }
  .homepage-trust {
    align-items: flex-start;
    margin-top: 22px;
    font-size: 0.95rem;
  }
  .homepage-trust p { margin-top: 0; }
  .dashboard-mockup {
    padding: 12px;
    border-radius: 22px;
    aspect-ratio: auto;
  }
  .dashboard-screen {
    padding: 10px;
    border-radius: 18px;
  }
  .dashboard-content {
    grid-template-columns: 1fr;
    padding: 10px;
  }
  .dashboard-side-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 8px;
    font-size: 0.72rem;
  }
  .dashboard-side-nav span {
    white-space: nowrap;
    flex: 0 0 auto;
  }
  .dashboard-stat-grid article,
  .dashboard-activity-card,
  .dashboard-upcoming-card {
    padding: 12px;
  }
  .dashboard-stat-grid article strong { font-size: 1.55rem; }
  .homepage-section {
    margin-top: 16px;
    padding-top: 26px;
    padding-bottom: 26px;
    border-radius: 26px;
  }
  .homepage-section-heading h2,
  .governance-assurance-heading h2,
  .governance-copy h2 {
    font-size: clamp(2.15rem, 10vw, 3rem);
    line-height: 1.08;
  }
  .governance-assurance-heading .governance-subheading { font-size: 1.05rem; }
  .governance-assurance-card { padding: 20px; border-radius: 22px; }
  .governance-provider-callout { padding: 22px; border-radius: 22px; }
  .governance-callout-button { width: 100%; text-align: center; white-space: normal; }
  .workflow-row { gap: 18px; }
  .workflow-item {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 0 14px;
    align-items: start;
  }
  .workflow-icon {
    grid-row: span 2;
    width: 58px;
    height: 58px;
    font-size: 1.3rem;
  }
  .workflow-item h3 { margin: 0 0 8px; }
  .workflow-item p { margin: 0; }
  .governance-copy { padding: 24px 18px; }
  .governance-visual { min-height: 260px; }
  .room-chair {
    right: -42px;
    width: 260px;
    height: 178px;
  }
  .room-art { right: 26px; }
  .homepage-footer {
    margin-top: 18px;
    padding-top: 30px;
    padding-bottom: 30px;
  }
}
