:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --text: #172033;
  --muted: #667085;
  --line: #dce3ee;
  --primary: #0f8f72;
  --primary-dark: #08705a;
  --blue: #2563eb;
  --soft: #e7f8f1;
  --shadow: 0 18px 46px rgba(24, 36, 56, .11);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

.demo-shell {
  width: min(1220px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 18px 0 54px;
}

.demo-hero,
.demo-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.demo-hero {
  padding: 18px;
  margin-bottom: 16px;
}

.demo-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.demo-brand,
.demo-nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
}

.demo-nav__cta {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--primary-dark);
}

.demo-hero__copy {
  max-width: 720px;
  padding: 34px 0 20px;
}

.demo-hero__copy p,
.panel-head p {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.demo-hero__copy h1,
.panel-head h2 {
  margin: 0;
  line-height: 1.08;
}

.demo-hero__copy h1 {
  font-size: clamp(2.1rem, 5vw, 4rem);
}

.demo-hero__copy span {
  display: block;
  max-width: 640px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

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

.business-picker button {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.business-picker button.active {
  border-color: rgba(15, 143, 114, .44);
  background: var(--soft);
  color: var(--primary-dark);
}

.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: 16px;
  margin-bottom: 16px;
}

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

.demo-panel {
  min-width: 0;
  padding: 18px;
}

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

.panel-head button {
  border: 0;
  border-radius: 999px;
  background: #25d366;
  color: #07361e;
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer;
}

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

.product-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
}

.product-card__body {
  padding: 12px;
}

.product-card strong,
.product-card span {
  display: block;
}

.product-card strong {
  line-height: 1.25;
}

.product-card span {
  margin-top: 6px;
  color: var(--muted);
  font-size: .86rem;
}

.product-card button {
  width: 100%;
  margin-top: 10px;
  border: 1px solid rgba(15, 143, 114, .35);
  border-radius: 10px;
  background: var(--soft);
  color: var(--primary-dark);
  padding: 9px;
  font-weight: 900;
  cursor: pointer;
}

.cart-items {
  display: grid;
  gap: 10px;
}

.cart-row,
.customer-row,
.analytics-row {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfe;
  padding: 12px;
}

.cart-row {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.cart-row span,
.customer-row span,
.analytics-row span {
  color: var(--muted);
  font-size: .84rem;
}

.whatsapp-preview {
  margin-top: 14px;
  border-radius: 14px;
  background: #e8f8ee;
  padding: 14px;
}

.whatsapp-preview pre {
  margin: 10px 0 0;
  white-space: pre-wrap;
  font: inherit;
  color: #173b2b;
  line-height: 1.45;
}

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

.kpi-card {
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcfe;
  padding: 14px;
}

.kpi-card span,
.kpi-card strong {
  display: block;
}

.kpi-card span {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 800;
}

.kpi-card strong {
  margin-top: 12px;
  font-size: 1.45rem;
}

.analytics-list,
.customers-list {
  display: grid;
  gap: 10px;
}

.analytics-bar {
  height: 8px;
  border-radius: 999px;
  background: #e9eef6;
  overflow: hidden;
}

.analytics-bar span {
  display: block;
  height: 100%;
  background: var(--blue);
}

.customer-row strong {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.customer-row em {
  color: #b45309;
  font-style: normal;
  font-size: .82rem;
}

@media (max-width: 960px) {
  .demo-grid,
  .ops-grid,
  .business-picker {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .demo-shell {
    width: calc(100vw - 18px);
    padding-top: 9px;
  }

  .demo-hero,
  .demo-panel {
    border-radius: 14px;
    padding: 14px;
  }

  .product-grid,
  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .panel-head {
    flex-direction: column;
  }

  .panel-head button,
  .demo-nav__cta {
    width: 100%;
    justify-content: center;
  }
}
