.demo-page {
  background: #f7fbfb;
}

.demo-hero {
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  padding-bottom: 42px;
}

.demo-intro {
  align-self: center;
}

.demo-intro h1 {
  font-size: clamp(44px, 6vw, 76px);
  letter-spacing: 0;
  line-height: 0.98;
  margin: 0 0 22px;
  max-width: 780px;
}

.demo-intro h1::after {
  background: var(--teal);
  content: "";
  display: block;
  height: 5px;
  margin-top: 16px;
  width: min(280px, 70%);
}

.demo-intro p {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
  margin: 0;
  max-width: 720px;
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 14px;
}

.demo-note {
  font-size: 14px !important;
}

.demo-control {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
  padding: 28px;
}

.demo-control h2 {
  font-size: 26px;
  margin-bottom: 8px;
}

.automation-board {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) 390px;
  padding-top: 20px;
}

.workflow {
  display: grid;
  gap: 16px;
}

.workflow-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 6px;
  grid-template-columns: 18px 1fr;
  padding: 20px;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.workflow-card.active {
  border-color: var(--teal);
  box-shadow: 0 14px 34px rgba(0, 167, 130, 0.13);
  transform: translateY(-1px);
}

.workflow-card.done .status-dot {
  background: var(--teal);
  border-color: var(--teal);
}

.workflow-card > *:not(.status-dot) {
  grid-column: 2;
}

.status-dot {
  border: 2px solid #a7c2ca;
  border-radius: 50%;
  height: 14px;
  margin-top: 3px;
  width: 14px;
}

.workflow-card small,
.section-label {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

.workflow-card h3 {
  margin-bottom: 2px;
}

.workflow-card p,
.workflow-card output {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.workflow-card output {
  background: var(--mist);
  border-radius: 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  margin-top: 8px;
  min-height: 40px;
  padding: 10px 12px;
}

.phone-panel {
  align-self: start;
  position: sticky;
  top: 96px;
}

.phone-shell {
  background: var(--navy);
  border: 10px solid #0b1220;
  border-radius: 34px;
  box-shadow: var(--shadow);
  min-height: 650px;
  overflow: hidden;
}

.phone-top {
  background: #071a34;
  color: #fff;
  display: grid;
  gap: 4px;
  padding: 22px 24px;
}

.phone-top span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 800;
}

.phone-top strong {
  font-size: 18px;
}

.messages {
  background: #edf4f6;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 548px;
  padding: 18px;
}

.bubble {
  border-radius: 18px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.42;
  max-width: 86%;
  padding: 12px 14px;
}

.bubble.business {
  align-self: flex-start;
  background: #fff;
  border-bottom-left-radius: 5px;
}

.bubble.lead {
  align-self: flex-end;
  background: var(--teal);
  border-bottom-right-radius: 5px;
  color: #fff;
}

.empty-state {
  align-self: center;
  color: var(--muted);
  margin: auto;
  max-width: 240px;
  text-align: center;
}

.owner-summary {
  align-items: start;
  display: grid;
  gap: 32px;
  grid-template-columns: 0.55fr 1fr;
}

.summary-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(6, 32, 68, 0.08);
  padding: 28px;
}

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

.summary-card dl {
  display: grid;
  gap: 12px;
  grid-template-columns: 150px 1fr;
  margin: 18px 0 0;
}

.summary-card dt {
  color: var(--muted);
  font-weight: 800;
}

.summary-card dd {
  margin: 0;
}

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

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

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 16px 18px;
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

td {
  color: var(--ink);
  font-weight: 700;
}

.status-pill {
  background: var(--mist);
  border-radius: 999px;
  color: var(--teal-dark);
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  padding: 7px 10px;
}

.stack-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, 1fr);
}

.stack-grid article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.stack-grid p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 1050px) {
  .demo-hero,
  .automation-board,
  .owner-summary,
  .stack-grid {
    grid-template-columns: 1fr;
  }

  .phone-panel {
    position: static;
  }

  .phone-shell {
    margin: 0 auto;
    max-width: 430px;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .demo-intro h1 {
    font-size: 42px;
  }

  .demo-actions,
  .demo-actions .button {
    width: 100%;
  }

  .demo-control,
  .summary-card {
    padding: 22px;
  }

  .phone-shell {
    border-width: 7px;
    border-radius: 26px;
    min-height: 590px;
  }

  .messages {
    min-height: 488px;
  }

  .summary-card dl {
    grid-template-columns: 1fr;
  }
}
