:root {
  --ink: #172232;
  --muted: #66768b;
  --line: #e3e8ef;
  --canvas: #f5f7fa;
  --surface: #fff;
  --navy: #11263b;
  --navy2: #1b3854;
  --blue: #2864f0;
  --mint: #2fc69a;
  --softblue: #edf3ff;
  --amber: #fff4d7;
  --red: #c94750;
  --shadow: 0 4px 18px #1524390a;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font:
    15px/1.45 Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
}
.demo-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
}
.rail {
  background: var(--navy);
  color: #dce6f0;
  padding: 25px 15px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 9px 26px;
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  font-weight: 800;
}
.brand small {
  display: block;
  margin-top: 1px;
  color: #9db1c5;
  font-size: 8px;
  letter-spacing: 1.1px;
}
.brand-mark {
  display: block;
  width: 33px;
  height: 33px;
  object-fit: contain;
  flex: none;
}
.rail-label {
  margin: 0 9px 8px;
  color: #8fa4b9;
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 1px;
}
nav {
  display: grid;
  gap: 3px;
}
.nav-item {
  border: 0;
  background: transparent;
  color: #c0ccda;
  text-align: left;
  border-radius: 8px;
  padding: 10px 10px;
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.nav-item:hover,
.nav-item.active {
  background: var(--navy2);
  color: #fff;
}
.nav-item span {
  display: inline-block;
  width: 20px;
  color: #9db9dd;
  font-weight: 800;
}
.nav-item b {
  float: right;
  background: var(--mint);
  color: #112f40;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
}
.demo-lock {
  margin-top: auto;
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid #34516b;
  background: #1b354d;
  border-radius: 9px;
  color: #c7d6e5;
  font-size: 12px;
}
.demo-lock > span {
  color: var(--mint);
  font-size: 10px;
  margin-top: 4px;
}
.demo-lock strong,
.demo-lock small {
  display: block;
}
.demo-lock small {
  margin-top: 2px;
  color: #99b0c7;
}
.workspace {
  padding: 30px 42px 50px;
  max-width: 1550px;
  width: 100%;
  margin: 0 auto;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
}
.eyebrow {
  margin: 0 0 3px;
  font-weight: 850;
  letter-spacing: 1.2px;
  font-size: 10px;
  color: #7a899b;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  margin-bottom: 0;
  font-size: 29px;
  letter-spacing: -0.7px;
}
h2 {
  margin-bottom: 0;
  font-size: 19px;
  letter-spacing: -0.25px;
}
h3 {
  font-size: 15px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.demo-chip {
  background: #fff0c8;
  color: #765308;
  border-radius: 20px;
  padding: 6px 9px;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.5px;
}
.secondary-btn,
.primary-btn,
.mini-btn {
  border: 0;
  border-radius: 7px;
  font: 750 13px inherit;
  cursor: pointer;
}
.secondary-btn {
  background: #e8edf3;
  color: #334156;
  padding: 9px 12px;
}
.primary-btn {
  background: var(--blue);
  color: #fff;
  padding: 10px 14px;
}
.primary-btn:hover {
  background: #1c55dd;
}
.mini-btn {
  background: var(--softblue);
  color: #2656c8;
  padding: 7px 9px;
}
.truth-bar {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 12px 15px;
  border: 1px solid #f1d993;
  border-radius: 10px;
  background: var(--amber);
  color: #654d12;
  margin-bottom: 22px;
  font-size: 13px;
}
.truth-bar span {
  font-size: 17px;
}
.truth-bar p {
  margin: 0;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.metric,
.panel,
.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.metric {
  padding: 17px;
}
.metric .number {
  font-size: 28px;
  font-weight: 820;
  letter-spacing: -1px;
}
.metric label {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.metric small {
  font-weight: 750;
  color: #1d8c69;
  font-size: 11px;
}
.two-col {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 17px;
}
.panel {
  padding: 19px;
}
.panel-head,
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.panel-head p,
.section-head p {
  margin-bottom: 0;
}
.small-link {
  background: transparent;
  border: 0;
  color: var(--blue);
  font: 750 12px inherit;
  cursor: pointer;
}
.list-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.list-row:first-of-type {
  margin-top: 12px;
}
.avatar {
  height: 33px;
  width: 33px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--softblue);
  color: var(--blue);
  font-size: 11px;
  font-weight: 850;
  flex: none;
}
.list-copy {
  min-width: 0;
  flex: 1;
}
.list-copy strong,
.list-copy small {
  display: block;
}
.list-copy small {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tag {
  display: inline-flex;
  border-radius: 20px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}
.tag.blue {
  background: var(--softblue);
  color: #3562bd;
}
.tag.amber {
  background: var(--amber);
  color: #86620a;
}
.tag.green {
  background: #e3f8f0;
  color: #16775c;
}
.tag.red {
  background: #fff0f1;
  color: #ae3e47;
}
.journey {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
  margin-top: 15px;
}
.journey-step {
  background: #f5f7fa;
  border: 1px solid #e8ecf1;
  border-radius: 8px;
  padding: 11px;
  font-size: 11px;
  color: #55657a;
  font-weight: 750;
}
.journey-step strong {
  display: block;
  font-size: 17px;
  color: var(--blue);
}
.view-intro {
  margin-bottom: 18px;
}
.view-intro p {
  color: var(--muted);
  margin: 5px 0 0;
}
.table-card {
  overflow: auto;
  padding: 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 650px;
}
th {
  background: #fafbfc;
  color: #728094;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  font-size: 10px;
}
th,
td {
  padding: 13px 17px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
td strong,
td small {
  display: block;
}
td small {
  color: var(--muted);
}
.row-action {
  border: 0;
  background: transparent;
  color: var(--blue);
  font: 750 12px inherit;
  cursor: pointer;
}
.lead-layout {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.lead-column {
  background: #edf1f5;
  border: 1px solid #e1e7ed;
  border-radius: 10px;
  padding: 11px;
}
.lead-column h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #617087;
  margin: 2px 2px 10px;
}
.lead-card {
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 2px 4px #15243908;
  margin-bottom: 8px;
}
.lead-card strong,
.lead-card small {
  display: block;
}
.lead-card small {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.lead-card .tag {
  margin-top: 8px;
}
.dialer-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 17px;
}
.dialer-screen {
  padding: 22px;
  background: linear-gradient(140deg, #162c43, #214d72);
  color: #eaf2f8;
  border-radius: 12px;
  min-height: 390px;
}
.dialer-screen .eyebrow {
  color: #a9c4dc;
}
.dialer-number {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin: 22px 0 3px;
}
.dialer-name {
  color: #bcd0df;
}
.call-state {
  margin: 25px 0 18px;
  padding: 12px;
  background: #315b7d;
  border-radius: 8px;
  color: #d4edf9;
  font-size: 13px;
}
.call-state.live {
  background: #176d61;
}
.call-controls {
  display: flex;
  gap: 9px;
}
.call-controls button {
  flex: 1;
  min-height: 42px;
  border: 0;
  border-radius: 7px;
  font-weight: 800;
  cursor: pointer;
}
.call-start {
  background: var(--mint);
  color: #12333e;
}
.call-end {
  background: #eb7177;
  color: #fff;
}
.disabled {
  opacity: 0.5;
  cursor: not-allowed !important;
}
.transcript {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.bubble {
  padding: 10px 12px;
  border-radius: 8px;
  background: #f6f8fb;
  color: #42526a;
  font-size: 13px;
}
.bubble.agent {
  background: #eaf1ff;
  color: #3159a3;
  margin-left: 28px;
}
.disposition-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.disposition-row button {
  border: 1px solid #d9e0e9;
  background: #fff;
  color: #334155;
  border-radius: 7px;
  padding: 8px 9px;
  font-weight: 750;
  cursor: pointer;
}
.queue-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 15px;
  padding: 17px;
  margin-bottom: 11px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.queue-card h3 {
  margin: 0 0 5px;
}
.queue-card p {
  margin: 3px 0;
  color: var(--muted);
  font-size: 13px;
}
.queue-card .actions {
  display: flex;
  align-items: center;
  gap: 7px;
}
.letter-grid {
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr);
  gap: 17px;
}
.template-list {
  padding: 10px;
}
.template {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  padding: 14px 10px;
  cursor: pointer;
}
.template.active {
  background: var(--softblue);
  border-radius: 7px;
  border-color: transparent;
}
.template strong,
.template small {
  display: block;
}
.template small {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.letter-paper {
  padding: 32px;
  min-height: 400px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  font-family: Georgia, serif;
  color: #283648;
  line-height: 1.7;
}
.letter-paper .letter-meta {
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: 12px;
  color: #718096;
  margin-bottom: 21px;
}
.letter-paper p {
  margin-bottom: 14px;
}
.portal-shell {
  display: grid;
  grid-template-columns: 215px minmax(0, 1fr);
  min-height: 390px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.portal-nav {
  padding: 19px;
  background: #f5f8fc;
}
.portal-nav h3 {
  font-size: 16px;
  margin-bottom: 18px;
}
.portal-nav button {
  display: block;
  width: 100%;
  padding: 10px;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 6px;
  color: #56667d;
  font: inherit;
  cursor: pointer;
}
.portal-nav button.active {
  background: #dfeaff;
  color: #2957c7;
}
.portal-content {
  padding: 24px;
}
.score-box {
  display: flex;
  align-items: end;
  gap: 15px;
  padding: 17px;
  background: #eef5ff;
  border-radius: 9px;
  margin: 15px 0;
}
.score {
  font-size: 37px;
  line-height: 1;
  font-weight: 850;
  color: var(--blue);
}
.score-box p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}
.checklist {
  display: grid;
  gap: 8px;
}
.check {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 13px;
}
.check i {
  font-style: normal;
  color: #168063;
  font-weight: 900;
}
.invoice-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 17px;
}
.invoice {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 17px;
  background: #fff;
}
.invoice .amount {
  font-size: 27px;
  font-weight: 850;
}
.invoice p {
  color: var(--muted);
  font-size: 13px;
}
.automation-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.automation {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.automation p {
  font-size: 13px;
  color: var(--muted);
  margin: 6px 0 13px;
}
.switch {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
  color: #168063;
}
.switch i {
  display: inline-block;
  width: 30px;
  height: 17px;
  border-radius: 12px;
  background: var(--mint);
  position: relative;
}
.switch i:after {
  content: "";
  position: absolute;
  right: 3px;
  top: 3px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
}
.report-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.report-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.bar-chart {
  height: 115px;
  display: flex;
  align-items: end;
  gap: 8px;
  padding-top: 16px;
}
.bar {
  flex: 1;
  background: #b9cdfd;
  border-radius: 4px 4px 0 0;
}
.bar:nth-child(2),
.bar:nth-child(5) {
  background: #4d7df2;
}
.muted {
  color: var(--muted);
}
#toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 10;
  transform: translateY(90px);
  opacity: 0;
  transition: 0.22s ease;
  background: #173652;
  color: #fff;
  padding: 12px 15px;
  border-radius: 8px;
  box-shadow: 0 8px 30px #16223440;
  font-size: 13px;
  font-weight: 700;
  max-width: 330px;
}
#toast.show {
  transform: translateY(0);
  opacity: 1;
}
@media (max-width: 900px), (pointer: coarse) {
  .demo-shell {
    grid-template-columns: 126px minmax(0, 1fr);
  }
  .rail {
    padding: 16px 8px;
  }
  .brand {
    padding: 0 3px 20px;
    font-size: 16px;
    gap: 6px;
  }
  .brand-mark {
    width: 27px;
    height: 27px;
  }
  .brand small {
    font-size: 7px;
    letter-spacing: 0.6px;
  }
  .rail-label {
    margin-left: 5px;
    font-size: 8px;
  }
  .nav-item {
    padding: 10px 7px;
    font-size: 12px;
    white-space: normal;
    line-height: 1.2;
  }
  .nav-item span {
    width: 15px;
  }
  .nav-item b {
    font-size: 9px;
    padding: 1px 4px;
  }
  .workspace {
    padding: 23px 15px 40px;
  }
  .topbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .top-actions {
    width: 100%;
    justify-content: space-between;
  }
  .metric-grid,
  .two-col,
  .invoice-grid,
  .letter-grid,
  .dialer-layout {
    grid-template-columns: 1fr;
  }
  .metric-grid {
    gap: 10px;
  }
  .metric {
    padding: 15px;
  }
  .lead-layout {
    grid-template-columns: 1fr 1fr;
  }
  .journey {
    grid-template-columns: 1fr 1fr;
  }
  .portal-shell {
    grid-template-columns: 1fr;
  }
  .portal-nav {
    display: flex;
    overflow: auto;
    gap: 5px;
    padding: 9px;
  }
  .portal-nav h3 {
    display: none;
  }
  .portal-nav button {
    white-space: nowrap;
    width: auto;
  }
  .report-grid,
  .automation-grid {
    grid-template-columns: 1fr;
  }
  .truth-bar {
    font-size: 12px;
  }
  .queue-card {
    grid-template-columns: 1fr;
  }
  .queue-card .actions .primary-btn {
    width: 100%;
  }
}
@media (max-width: 450px) {
  .demo-shell {
    grid-template-columns: 112px minmax(0, 1fr);
  }
  .workspace {
    padding: 18px 11px;
  }
  .brand {
    font-size: 14px;
  }
  .brand small {
    display: none;
  }
  .rail {
    padding: 15px 6px;
  }
  .nav-item {
    font-size: 11px;
    padding: 10px 5px;
  }
  .nav-item span {
    display: none;
  }
  .demo-chip {
    font-size: 8px;
  }
  .top-actions {
    gap: 7px;
  }
  .secondary-btn {
    padding: 8px;
    font-size: 11px;
  }
  h1 {
    font-size: 25px;
  }
  .metric .number {
    font-size: 25px;
  }
  .lead-layout {
    grid-template-columns: 1fr;
  }
  .journey {
    grid-template-columns: 1fr;
  }
  .letter-paper {
    padding: 20px;
  }
  .dialer-screen {
    padding: 17px;
  }
}

/* Premium RecordLuma visual system */
:root {
  --ink: #16263a;
  --muted: #68778b;
  --line: #e3e9f0;
  --canvas: #f5f7fb;
  --navy: #0b1f33;
  --navy2: #173a58;
  --blue: #315de5;
  --mint: #2cc99a;
  --shadow: 0 10px 30px rgba(18, 35, 55, 0.07);
  --shadow-lift: 0 18px 42px rgba(18, 35, 55, 0.12);
}
body {
  background:
    radial-gradient(circle at 88% -18%, #e6edff 0, transparent 30rem),
    var(--canvas);
}
.rail {
  background: linear-gradient(165deg, #0a1c2f 0%, #102b43 58%, #0a2034 100%);
  padding: 28px 15px 18px;
  position: relative;
  overflow: hidden;
}
.rail::after {
  content: "";
  position: absolute;
  width: 310px;
  height: 310px;
  right: -175px;
  bottom: -115px;
  border: 1px solid rgba(87, 176, 255, 0.16);
  border-radius: 50%;
  box-shadow:
    0 0 0 38px rgba(87, 176, 255, 0.035),
    0 0 0 76px rgba(87, 176, 255, 0.025);
  pointer-events: none;
}
.brand,
nav,
.rail-label,
.demo-lock {
  position: relative;
  z-index: 1;
}
.brand {
  font-size: 21px;
  letter-spacing: -0.55px;
}
.brand-mark {
  width: 36px;
  height: 36px;
}
.rail-label {
  font-size: 9px;
  letter-spacing: 1.35px;
}
nav {
  gap: 4px;
}
.nav-item {
  padding: 10px 11px;
  border-radius: 9px;
  transition:
    background 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease;
}
.nav-item:hover,
.nav-item.active {
  background: linear-gradient(90deg, #1e405f, #173650);
  color: #fff;
}
.nav-item:hover {
  transform: translateX(2px);
}
.nav-item.active {
  box-shadow:
    inset 3px 0 0 var(--mint),
    0 6px 16px rgba(0, 0, 0, 0.15);
}
.demo-lock {
  border: 1px solid rgba(117, 169, 211, 0.24);
  background: rgba(29, 61, 88, 0.74);
  border-radius: 11px;
}
.workspace {
  padding: 36px 44px 56px;
}
.topbar {
  margin-bottom: 25px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.28px;
}
h1 {
  font-size: 32px;
  letter-spacing: -1px;
  font-weight: 790;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.45px;
  font-weight: 760;
}
.demo-chip {
  padding: 7px 10px;
  background: #fff5d9;
  border: 1px solid #f4d98a;
}
.secondary-btn,
.primary-btn,
.mini-btn {
  border-radius: 9px;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}
.secondary-btn {
  background: #fff;
  border: 1px solid #dce4ed;
  box-shadow: 0 3px 8px rgba(18, 35, 55, 0.04);
}
.secondary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 14px rgba(18, 35, 55, 0.08);
}
.primary-btn {
  background: linear-gradient(135deg, #3d6feb, #294fce);
  box-shadow: 0 8px 16px rgba(49, 93, 229, 0.22);
}
.primary-btn:hover {
  background: linear-gradient(135deg, #315fda, #203fae);
  transform: translateY(-1px);
}
.truth-bar {
  border-radius: 12px;
  background: linear-gradient(100deg, #fff7df, #fffaf0);
  margin-bottom: 25px;
}
.metric-grid {
  gap: 16px;
  margin-bottom: 20px;
}
.metric,
.panel,
.feature-card {
  border-radius: 14px;
}
.metric {
  padding: 19px;
  min-height: 128px;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.metric::after {
  content: "";
  position: absolute;
  right: -16px;
  top: -27px;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: #eef3ff;
}
.metric:nth-child(2)::after {
  background: #e8fbf6;
}
.metric:nth-child(3)::after {
  background: #fff5dc;
}
.metric:nth-child(4)::after {
  background: #f4efff;
}
.metric .number,
.metric label,
.metric small {
  position: relative;
  z-index: 1;
}
.metric .number {
  font-size: 30px;
}
.metric:hover,
.panel:hover,
.report-card:hover,
.invoice:hover,
.automation:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}
.two-col {
  gap: 18px;
}
.panel {
  padding: 21px;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.list-row {
  padding: 13px 0;
}
.avatar {
  border-radius: 10px;
  background: linear-gradient(135deg, #e6eeff, #f4f7ff);
}
.tag {
  padding: 5px 9px;
}
.journey {
  gap: 9px;
}
.journey-step {
  background: linear-gradient(145deg, #f8faff, #f2f6fc);
  border: 1px solid #e4eaf2;
  border-radius: 10px;
  padding: 13px 11px;
}
.view-intro {
  margin-bottom: 21px;
}
table tr {
  transition: background 0.14s ease;
}
tbody tr:hover {
  background: #f8faff;
}
th {
  background: #f8faff;
}
.lead-column {
  background: linear-gradient(180deg, #f1f4f8, #edf2f7);
  border-radius: 13px;
  padding: 12px;
}
.lead-card {
  border-radius: 10px;
  box-shadow: 0 3px 8px #1524390c;
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease;
}
.lead-card:hover {
  transform: translateY(-2px);
  border-color: #bfd0f9;
  box-shadow: 0 10px 20px #15243912;
}
.dialer-screen {
  background:
    radial-gradient(
      circle at 100% 0,
      rgba(85, 191, 255, 0.24),
      transparent 28%
    ),
    linear-gradient(145deg, #10243a, #193e5f);
  border-radius: 14px;
}
.call-state {
  background: rgba(80, 129, 166, 0.48);
  border: 1px solid rgba(194, 226, 249, 0.15);
  border-radius: 10px;
}
.call-state.live {
  border-color: #45c8a5;
}
.call-controls button,
.bubble {
  border-radius: 10px;
}
.call-start {
  background: linear-gradient(135deg, #49dbaf, #24b98e);
}
.queue-card {
  padding: 19px;
  border-radius: 13px;
  box-shadow: var(--shadow);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.queue-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}
.template.active {
  background: linear-gradient(100deg, #e8efff, #f0f5ff);
}
.letter-paper {
  border-radius: 13px;
  box-shadow: 0 14px 30px rgba(30, 45, 65, 0.1);
}
.portal-shell {
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.portal-nav {
  background: linear-gradient(180deg, #f7f9fd, #eef3fb);
}
.portal-nav button.active {
  background: linear-gradient(100deg, #dce8ff, #eaf0ff);
}
.score-box {
  background: linear-gradient(120deg, #edf4ff, #f8fbff);
  border: 1px solid #dce8fd;
  border-radius: 12px;
}
.check {
  border-radius: 9px;
}
.invoice {
  border-radius: 13px;
  padding: 20px;
  box-shadow: var(--shadow);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.automation,
.report-card {
  border-radius: 13px;
  padding: 19px;
  box-shadow: var(--shadow);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.report-card {
  padding: 20px;
}
.bar {
  background: linear-gradient(180deg, #b8cbff, #87a8f8);
  border-radius: 5px 5px 0 0;
}
.bar:nth-child(2),
.bar:nth-child(5) {
  background: linear-gradient(180deg, #5b86f5, #315fd9);
}
#toast {
  background: linear-gradient(135deg, #13334f, #0c243a);
  border-radius: 11px;
  box-shadow: 0 16px 35px #16223445;
}
@media (max-width: 900px), (pointer: coarse) {
  .workspace {
    padding: 23px 15px 40px;
  }
  .rail {
    padding: 16px 8px;
  }
  .brand-mark {
    width: 27px;
    height: 27px;
  }
}

/* Preserve the complete brand lockup on narrow touch screens. */
@media (max-width: 900px), (pointer: coarse) {
  .demo-shell {
    grid-template-columns: 150px minmax(0, 1fr);
  }
  .brand {
    padding: 0 3px 20px;
    font-size: 16px;
    gap: 5px;
    letter-spacing: -0.4px;
  }
  .brand-mark {
    width: 25px;
    height: 25px;
  }
}
@media (max-width: 450px) {
  .demo-shell {
    grid-template-columns: 144px minmax(0, 1fr);
  }
  .brand {
    font-size: 15px;
    gap: 4px;
  }
  .brand-mark {
    width: 24px;
    height: 24px;
  }
}

/* Keep product navigation available while longer workspaces scroll. */
.rail {
  align-self: start;
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
}

.capability-brief {
  margin: 0 0 22px;
  padding: 20px;
  border: 1px solid #dce7fd;
  border-radius: 14px;
  background: linear-gradient(115deg, #f0f5ff, #fbfcff 62%, #f5fbfa);
  box-shadow: var(--shadow);
}
.capability-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
}
.capability-title h2 {
  margin: 0;
}
.capability-title .eyebrow {
  margin: 0 0 4px;
}
.capability-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.3fr 0.95fr;
  gap: 12px;
}
.capability-grid > div {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid rgba(183, 202, 237, 0.72);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
}
.capability-grid span {
  display: block;
  color: #53709c;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.9px;
}
.capability-grid p {
  margin: 6px 0 0;
  color: #344961;
  font-size: 12px;
  line-height: 1.45;
}
.journey-board {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 18px;
}
.journey-actions {
  margin-top: 18px;
}
.journey-health,
.journey-timeline {
  min-height: 226px;
}
.health-list {
  display: grid;
  gap: 3px;
  margin-top: 13px;
}
.health-list > div {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.health-list > div:last-child {
  border-bottom: 0;
}
.health-list i {
  color: #1d9270;
  font-style: normal;
  font-weight: 850;
}
.health-list > div:nth-child(n + 3) i {
  color: #d0931d;
}
.health-list small {
  color: var(--muted);
  font-size: 11px;
}
.journey-step.complete {
  background: linear-gradient(145deg, #eafaf5, #f4fcf9);
  border-color: #cceee3;
}
.journey-step.complete strong {
  color: #198466;
}
.journey-step.active {
  background: linear-gradient(145deg, #eaf0ff, #f5f8ff);
  border-color: #cbd9fa;
}
.journey-note {
  margin: 17px 0 0;
  font-size: 12px;
}
.journey-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}
@media (max-width: 900px), (pointer: coarse) {
  .capability-brief {
    margin-bottom: 17px;
    padding: 15px;
  }
  .capability-title {
    display: block;
    margin-bottom: 11px;
  }
  .capability-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .capability-grid > div {
    padding: 11px 12px;
  }
  .capability-grid p {
    font-size: 11px;
  }
  .journey-board {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .journey-actions {
    margin-top: 12px;
  }
  .journey-health,
  .journey-timeline {
    min-height: 0;
  }
  .journey-action-row {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 14px;
  }
  .journey-action-row .primary-btn,
  .journey-action-row .secondary-btn {
    width: 100%;
  }
}

/* High-clarity, presentation-ready emphasis layer. */
body {
  font-size: 16px;
  line-height: 1.5;
}
h1 {
  font-size: 35px;
  font-weight: 850;
  letter-spacing: -1.25px;
}
h2 {
  font-size: 22px;
  font-weight: 820;
  letter-spacing: -0.55px;
}
h3 {
  font-size: 16px;
  font-weight: 800;
}
.eyebrow {
  font-size: 10px;
  font-weight: 900;
  color: #5a6d86;
}
.view-intro {
  padding-left: 14px;
  border-left: 4px solid var(--blue);
}
.view-intro h2 {
  font-size: 24px;
}
.view-intro p {
  font-size: 15px;
  color: #52647c;
}
.nav-item {
  font-size: 14px;
  font-weight: 720;
}
.nav-item span {
  color: #a8c8ef;
}
.nav-item.active span {
  color: #62e1bb;
}
.nav-item b {
  font-size: 11px;
  font-weight: 900;
}
.primary-btn {
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.05px;
}
.secondary-btn,
.mini-btn {
  font-size: 14px;
  font-weight: 800;
}
.metric {
  min-height: 150px;
  border-top: 4px solid #4f7eff;
  background: linear-gradient(145deg, #fff, #f7faff);
}
.metric:nth-child(2) {
  border-top-color: #2cc99a;
  background: linear-gradient(145deg, #fff, #f4fcf9);
}
.metric:nth-child(3) {
  border-top-color: #e4a933;
  background: linear-gradient(145deg, #fff, #fffbf1);
}
.metric:nth-child(4) {
  border-top-color: #9272ef;
  background: linear-gradient(145deg, #fff, #faf8ff);
}
.metric .number {
  font-size: 34px;
  font-weight: 900;
  color: #17345a;
}
.metric:nth-child(2) .number {
  color: #14745c;
}
.metric:nth-child(3) .number {
  color: #9a6610;
}
.metric:nth-child(4) .number {
  color: #6241c6;
}
.metric label {
  font-size: 13px;
  font-weight: 750;
  color: #52647b;
}
.metric small {
  font-size: 12px;
}
.panel,
.queue-card,
.invoice,
.automation,
.report-card {
  border-color: #dce5f0;
}
.panel-head {
  padding-bottom: 13px;
  border-bottom: 1px solid #e5ebf2;
}
.panel-head + .list-row {
  margin-top: 3px;
}
.list-copy strong,
td strong {
  font-size: 14px;
  font-weight: 850;
  color: #21364f;
}
.list-copy small,
td small {
  font-size: 13px;
}
.queue-card {
  border-left: 4px solid #4f7eff;
}
.queue-card:nth-of-type(2) {
  border-left-color: #2cc99a;
}
.queue-card:nth-of-type(3) {
  border-left-color: #e4a933;
}
.queue-card h3 {
  font-size: 17px;
}
.queue-card p {
  font-size: 14px;
  line-height: 1.45;
}
.lead-column h3 {
  font-size: 13px;
  color: #425c79;
}
.lead-card strong {
  font-size: 14px;
}
.lead-card small {
  font-size: 12px;
}
.dialer-number {
  font-size: 30px;
  font-weight: 900;
}
.dialer-name {
  font-size: 14px;
}
.call-state {
  font-size: 14px;
  font-weight: 750;
}
.bubble {
  font-size: 14px;
}
.letter-paper {
  font-size: 16px;
}
.letter-paper .letter-meta {
  font-weight: 800;
}
.portal-content h2,
.invoice h2,
.report-card h2 {
  font-size: 23px;
}
.score {
  font-size: 42px;
}
.check {
  font-size: 14px;
}
.automation h3,
.report-card h2 {
  font-weight: 850;
}
.automation p,
.report-card .muted,
.invoice p {
  font-size: 14px;
}
.capability-brief {
  border: 1px solid #c9d9fa;
  border-left: 5px solid #4878f4;
  background: linear-gradient(115deg, #eaf1ff, #fbfcff 58%, #ebfbf6);
}
.capability-title h2 {
  font-size: 22px;
}
.capability-grid > div {
  border-color: #cfdbf2;
  box-shadow: 0 4px 10px rgba(42, 74, 127, 0.05);
}
.capability-grid span {
  font-size: 10px;
  color: #365c96;
}
.capability-grid p {
  font-size: 13px;
  font-weight: 650;
  color: #263d59;
}
.journey-step {
  font-size: 12px;
  font-weight: 800;
}
.journey-step strong {
  font-size: 20px;
}
.health-list > div {
  font-size: 14px;
  font-weight: 700;
}
.journey-note {
  font-size: 13px;
}
@media (max-width: 900px), (pointer: coarse) {
  body {
    font-size: 16px;
  }
  h1 {
    font-size: 29px;
  }
  .topbar h1 {
    line-height: 1.1;
  }
  h2,
  .view-intro h2 {
    font-size: 21px;
  }
  h3 {
    font-size: 16px;
  }
  .eyebrow {
    font-size: 9px;
  }
  .nav-item {
    font-size: 13px;
    font-weight: 750;
    padding: 11px 8px;
  }
  .rail-label {
    font-size: 9px;
    font-weight: 900;
  }
  .metric {
    min-height: 126px;
    padding: 16px;
  }
  .metric .number {
    font-size: 30px;
  }
  .metric label {
    font-size: 13px;
  }
  .metric small {
    font-size: 11px;
  }
  .panel,
  .queue-card,
  .invoice,
  .automation,
  .report-card {
    padding: 17px;
  }
  .capability-title h2 {
    font-size: 20px;
  }
  .capability-grid p {
    font-size: 12px;
    line-height: 1.4;
  }
  .queue-card h3 {
    font-size: 16px;
  }
  .queue-card p,
  .automation p,
  .report-card .muted,
  .invoice p {
    font-size: 13px;
  }
  .dialer-number {
    font-size: 27px;
  }
  .bubble {
    font-size: 13px;
  }
}
@media (max-width: 450px) {
  .nav-item {
    font-size: 12px;
    padding: 11px 6px;
  }
  .metric .number {
    font-size: 28px;
  }
  .capability-brief {
    padding: 14px;
  }
}
