:root {
  color-scheme: light;
  --ink: #17211c;
  --muted: #64706a;
  --line: #d9dfda;
  --panel: #ffffff;
  --wash: #f5f6f2;
  --clay: #9f583e;
  --green: #276b59;
  --blue: #315f8f;
  --amber: #b48120;
  --danger: #a6343f;
  --shadow: 0 16px 40px rgba(23, 33, 28, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 32px;
  border-bottom: 1px solid rgba(23, 33, 28, 0.12);
  background: rgba(245, 246, 242, 0.92);
  backdrop-filter: blur(12px);
}

.brand,
.nav,
.hero-actions,
.section-heading,
.toolbar,
.dashboard-layout,
.workflow-grid {
  display: flex;
}

.brand {
  align-items: center;
  gap: 10px;
  font-weight: 750;
}

.brand-mark {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
}

.nav {
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 16px;
  cursor: pointer;
  font-weight: 700;
  white-space: nowrap;
}

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

.button-secondary {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 56px;
  min-height: calc(100vh - 72px);
  align-items: center;
  padding: 72px 8vw 80px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(159, 88, 62, 0.14), rgba(39, 107, 89, 0.08)),
    var(--wash);
}

.hero h1,
.section-heading h2,
.split-section h2,
.workflow-section h2,
.pricing-section h2 {
  margin: 0;
  letter-spacing: 0;
}

.hero h1 {
  font-size: clamp(54px, 8vw, 104px);
  line-height: 0.95;
}

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

.lede {
  max-width: 700px;
  color: #39453f;
  font-size: 22px;
  line-height: 1.45;
}

.hero-actions {
  gap: 12px;
  margin-top: 28px;
}

.phone-preview {
  width: 100%;
  max-width: 390px;
  min-height: 620px;
  border: 10px solid #1c2420;
  border-radius: 36px;
  padding: 24px;
  background: #eef3ef;
  box-shadow: var(--shadow);
}

.phone-bar {
  width: 120px;
  height: 8px;
  margin: 0 auto 26px;
  border-radius: 999px;
  background: #1c2420;
}

.chat-message,
.piece-card {
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(23, 33, 28, 0.08);
}

.chat-message {
  display: inline-flex;
  padding: 12px 14px;
  font-weight: 750;
}

.chat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0;
}

.chat-grid button {
  min-height: 42px;
  border: 1px solid #c6d0ca;
  border-radius: 6px;
  background: #f9fbfa;
  color: var(--blue);
  font-weight: 700;
}

.mini-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 6px;
}

.mini-actions button {
  min-height: 38px;
  border: 1px solid #c6d0ca;
  border-radius: 6px;
  background: #f9fbfa;
  color: var(--blue);
  font-weight: 700;
}

.piece-card {
  display: grid;
  gap: 9px;
  margin-top: 20px;
  padding: 18px;
}

.dashboard-section,
.workflow-section,
.split-section,
.pricing-section {
  padding: 72px 6vw;
}

.section-heading {
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-heading h2,
.split-section h2,
.workflow-section h2,
.pricing-section h2 {
  font-size: 36px;
  line-height: 1.1;
}

.dashboard-layout {
  align-items: stretch;
  gap: 20px;
}

.sidebar {
  width: 190px;
  border-right: 1px solid var(--line);
  padding-right: 16px;
}

.sidebar-item {
  display: block;
  border-radius: 6px;
  padding: 11px 12px;
  color: var(--muted);
  font-weight: 700;
}

.sidebar-item.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(23, 33, 28, 0.08);
}

.dashboard-main {
  min-width: 0;
  flex: 1;
}

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

.metric,
.workflow-step {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.metric {
  padding: 18px;
}

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

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 34px;
}

.toolbar {
  align-items: end;
  gap: 12px;
  margin: 18px 0;
  flex-wrap: wrap;
}

.toolbar label {
  display: grid;
  gap: 7px;
  min-width: 180px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.toolbar .search {
  min-width: min(100%, 320px);
  flex: 1;
}

input,
select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
}

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

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

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

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

td {
  font-size: 14px;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  background: #edf4f1;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.status.problem {
  background: #faeeee;
  color: var(--danger);
}

.status.ready {
  background: #fff5dc;
  color: var(--amber);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: 42px;
  align-items: start;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.split-section p,
.workflow-step p,
.pricing-section p {
  color: var(--muted);
  line-height: 1.6;
}

.checklist {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  border-bottom: 1px solid var(--line);
  font-weight: 750;
}

.checklist span {
  width: 20px;
  height: 20px;
  border: 2px solid var(--green);
  border-radius: 5px;
}

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

.workflow-step {
  padding: 22px;
}

.workflow-step span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

.workflow-step h3 {
  margin: 18px 0 8px;
}

.pricing-section {
  background:
    linear-gradient(135deg, rgba(49, 95, 143, 0.1), rgba(180, 129, 32, 0.1)),
    #fff;
}

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

.price-card {
  display: grid;
  gap: 16px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 24px;
}

.price-card.featured {
  border-color: rgba(39, 107, 89, 0.45);
  box-shadow: var(--shadow);
}

.price-card h3 {
  margin: 0;
  font-size: 24px;
}

.price {
  margin: 0;
  color: var(--ink);
  font-size: 38px;
  font-weight: 850;
}

.price span {
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.price-card p:not(.price) {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.price-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.price-card li {
  color: #38453f;
}

.price-card li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--green);
}

@media (max-width: 920px) {
  .topbar {
    padding: 0 18px;
  }

  .nav {
    display: none;
  }

  .hero,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 56px;
  }

  .phone-preview {
    max-width: 460px;
    min-height: 560px;
  }

  .dashboard-layout {
    display: block;
  }

  .sidebar {
    display: flex;
    width: 100%;
    gap: 8px;
    overflow-x: auto;
    border-right: 0;
    padding: 0 0 14px;
  }

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

@media (max-width: 580px) {
  .topbar .button {
    display: none;
  }

  .hero,
  .dashboard-section,
  .workflow-section,
  .split-section,
  .pricing-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero h1 {
    font-size: 58px;
  }

  .lede {
    font-size: 18px;
  }

  .hero-actions,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .metric-grid,
  .workflow-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}
