:root {
  --bg: #f6f8fb;
  --panel: #ffffff;
  --ink: #172033;
  --muted: #667085;
  --subtle: #98a2b3;
  --line: #d9e1ec;
  --soft-line: #e7ecf3;
  --nav: #101828;
  --nav-soft: #182235;
  --blue: #2563eb;
  --blue-soft: #eaf1ff;
  --green: #168a4a;
  --green-soft: #e9f8ef;
  --yellow: #b7791f;
  --yellow-soft: #fff7e6;
  --red: #c2413b;
  --red-soft: #fdecec;
  --purple: #6941c6;
  --purple-soft: #f1ecff;
  --orange: #c76a12;
  --orange-soft: #fff1e3;
  --shadow: 0 14px 40px rgba(16, 24, 40, 0.08);
}

* {
  box-sizing: border-box;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 20px;
  background: var(--nav);
  color: #fff;
  overflow: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--blue);
  font-weight: 800;
}

.brand-name {
  font-size: 18px;
  font-weight: 800;
}

.nav-list {
  display: grid;
  gap: 6px;
}

.nav-button {
  display: flex;
  width: 100%;
  height: 42px;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 6px;
  padding: 0 12px;
  background: transparent;
  color: #cbd5e1;
  text-align: left;
}

.nav-button.active {
  background: var(--nav-soft);
  color: #fff;
}

.nav-icon {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  font-size: 12px;
  font-weight: 800;
}

.boundary-card {
  margin-top: 28px;
  border-radius: 8px;
  padding: 14px;
  background: #1d2939;
}

.role-switcher {
  margin-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 18px;
}

.role-switcher label {
  color: #cbd5e1;
}

.role-switcher select {
  margin-top: 8px;
  border-color: #344054;
  background: #1d2939;
  color: #fff;
}

.boundary-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
}

.boundary-card p {
  margin: 0;
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.45;
}

.main {
  padding: 28px 32px 44px;
  min-width: 0;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 22px;
}

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

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

h1 {
  margin-bottom: 6px;
  font-size: 28px;
  line-height: 1.2;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) 430px;
  gap: 28px;
  align-items: center;
  min-height: calc(100vh - 88px);
  padding: 28px 0 44px;
}

.home-copy h1 {
  max-width: 850px;
  margin-bottom: 16px;
  font-size: 54px;
  line-height: 1.04;
}

.home-subtitle {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.home-preview {
  padding: 22px;
}

.preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.preview-top span:first-child {
  color: var(--blue);
  font-weight: 850;
}

.home-preview h2 {
  margin-bottom: 6px;
  font-size: 24px;
}

.home-preview p {
  margin-bottom: 18px;
  color: var(--muted);
}

.mini-readiness {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 18px 0;
}

.mini-readiness div {
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  padding: 13px 10px;
  background: #f8fafc;
  text-align: center;
}

.mini-readiness strong {
  display: block;
  font-size: 24px;
}

.mini-readiness span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.preview-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-section {
  padding: 34px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 18px;
}

.section-heading h2,
.split-band h2 {
  margin-bottom: 8px;
  font-size: 30px;
}

.section-heading p,
.split-band p {
  color: var(--muted);
  line-height: 1.55;
}

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

.offer-card {
  min-height: 210px;
  padding: 18px;
  color: var(--ink);
  text-align: left;
}

.offer-card h3 {
  margin-bottom: 10px;
  font-size: 17px;
}

.offer-card p {
  color: var(--muted);
  line-height: 1.5;
}

.offer-card span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
}

.flow-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.flow-step {
  display: grid;
  min-height: 144px;
  align-content: start;
  gap: 9px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  padding: 16px;
  background: var(--panel);
  color: var(--ink);
  text-align: left;
  box-shadow: var(--shadow);
}

.flow-step span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 900;
}

.flow-step small {
  color: var(--muted);
  line-height: 1.4;
}

.split-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 24px;
  align-items: center;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  padding: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.before-after {
  border-top: 1px solid var(--soft-line);
  border-bottom: 1px solid var(--soft-line);
}

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

.compare-card {
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  padding: 20px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.compare-card.before {
  border-color: #f4c7c3;
  background: #fffafa;
}

.compare-card.after {
  border-color: #bfe7cc;
  background: #fbfffc;
}

.compare-card h3 {
  margin-bottom: 12px;
}

.compare-card ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.45;
}

.waitlist-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  gap: 22px;
  align-items: start;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  padding: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.waitlist-form {
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  padding: 16px;
  background: #f8fafc;
}

.form-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.role-focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  padding: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.role-focus h2 {
  margin: 10px 0 4px;
  font-size: 20px;
}

.role-focus p {
  margin: 0;
  color: var(--muted);
}

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

.audit-item {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 10px;
}

.audit-dot {
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-radius: 999px;
  background: var(--blue);
}

.audit-item strong {
  display: block;
  margin-bottom: 3px;
}

.audit-item p {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.audit-item small {
  color: var(--subtle);
}

.case-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1fr);
  gap: 18px;
}

.detail-list {
  display: grid;
  gap: 10px;
}

.detail-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--soft-line);
  padding-bottom: 10px;
}

.detail-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.detail-list span {
  color: var(--muted);
}

.boundary-grid {
  display: grid;
  gap: 10px;
}

.boundary-grid div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  padding: 12px;
  background: #f8fafc;
}

.boundary-grid span:last-child {
  color: var(--muted);
  font-size: 13px;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 14px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.button.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.button.danger {
  border-color: var(--red);
  color: var(--red);
}

.button.small {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 13px;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.two {
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.8fr);
}

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

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.demo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  border: 1px solid #c9d8ff;
  border-radius: 8px;
  padding: 22px;
  background: linear-gradient(135deg, #ffffff 0%, #eef4ff 100%);
  box-shadow: var(--shadow);
}

.demo-hero h2 {
  margin-bottom: 8px;
  font-size: 24px;
  line-height: 1.2;
}

.demo-hero p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.demo-score {
  display: grid;
  min-height: 150px;
  align-content: center;
  justify-items: center;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
  text-align: center;
}

.demo-score span {
  color: var(--blue);
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
}

.demo-score strong {
  margin-top: 8px;
}

.demo-score small {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.4;
}

.demo-script {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.script-step {
  display: grid;
  min-height: 132px;
  align-content: start;
  gap: 8px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  padding: 14px;
  background: var(--panel);
  color: var(--ink);
  text-align: left;
  box-shadow: var(--shadow);
}

.script-step span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
}

.script-step strong {
  font-size: 14px;
}

.script-step small {
  color: var(--muted);
  line-height: 1.4;
}

.demo-callout {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 14px;
  border: 1px solid #cde7d6;
  border-radius: 8px;
  padding: 13px 14px;
  background: var(--green-soft);
  color: #14532d;
  line-height: 1.45;
}

.demo-callout strong {
  white-space: nowrap;
}

.panel {
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.panel.pad {
  padding: 18px;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-title {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}

.stat {
  padding: 16px;
}

.stat-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.stat-value {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-size: 28px;
  font-weight: 850;
}

.pill {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 760;
}

.pill.blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.pill.green {
  background: var(--green-soft);
  color: var(--green);
}

.pill.yellow {
  background: var(--yellow-soft);
  color: var(--yellow);
}

.pill.red {
  background: var(--red-soft);
  color: var(--red);
}

.pill.purple {
  background: var(--purple-soft);
  color: var(--purple);
}

.pill.orange {
  background: var(--orange-soft);
  color: var(--orange);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  border-bottom: 1px solid var(--soft-line);
  padding: 13px 14px;
  text-align: left;
  vertical-align: middle;
  font-size: 13px;
}

th {
  background: #f8fafc;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

td {
  color: var(--muted);
}

td strong {
  color: var(--ink);
}

tr:last-child td {
  border-bottom: 0;
}

.case-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 800;
}

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

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

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
}

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

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 150px 150px;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.date-box {
  border-radius: 6px;
  padding: 10px 12px;
  background: #f8fafc;
  font-size: 13px;
  font-weight: 850;
}

.item-title {
  color: var(--ink);
  font-weight: 800;
}

.item-note {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.readiness-list {
  display: grid;
  gap: 10px;
}

.readiness-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px 90px;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  padding: 12px 14px;
}

.empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10;
  max-width: 360px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  padding: 14px 16px;
  background: var(--panel);
  box-shadow: var(--shadow);
  color: var(--ink);
  font-weight: 750;
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

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

  .grid.two,
  .grid.three,
  .grid.four,
  .home-hero,
  .offer-grid,
  .flow-strip,
  .split-band,
  .waitlist-band,
  .compare-grid,
  .case-summary-grid,
  .workspace-grid,
  .demo-hero,
  .demo-script,
  .field-grid,
  .field-grid.three {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
  }

  .role-focus {
    align-items: flex-start;
    flex-direction: column;
  }

  .actions {
    justify-content: flex-start;
  }

  .timeline-item,
  .readiness-row {
    grid-template-columns: 1fr;
  }

  .home-copy h1 {
    font-size: 38px;
  }

  .home-hero {
    min-height: auto;
  }

  .boundary-grid div {
    grid-template-columns: 1fr;
  }
}
