:root {
  color-scheme: light;
  --ink: #17211f;
  --muted: #5e6b66;
  --line: #d9ded8;
  --paper: #f7f5ef;
  --surface: #ffffff;
  --green: #285f45;
  --blue: #386b8f;
  --coral: #b45d4d;
  --gold: #c8943e;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

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

a {
  color: inherit;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
}

.hero {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 44px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1.08fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 24px;
}

.eyebrow {
  margin: 0;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(4rem, 11vw, 9rem);
  line-height: 0.86;
  letter-spacing: 0;
}

.lede {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.13rem, 1.9vw, 1.55rem);
  line-height: 1.45;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 46px;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 750;
  text-decoration: none;
}

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

.button.secondary {
  background: rgba(255, 255, 255, 0.52);
}

.dashboard-preview {
  border: 1px solid color-mix(in srgb, var(--line) 72%, var(--ink));
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 24px 80px rgba(23, 33, 31, 0.13);
}

.preview-topbar {
  height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
  background: #eef1ed;
}

.preview-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--coral);
}

.preview-topbar span:nth-child(2) {
  background: var(--gold);
}

.preview-topbar span:nth-child(3) {
  background: var(--green);
}

.preview-grid {
  padding: clamp(18px, 3vw, 28px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.metric,
.note,
.chart {
  min-height: 118px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbf8;
}

.metric,
.note {
  padding: 18px;
  display: grid;
  align-content: space-between;
  gap: 18px;
}

.metric.wide {
  grid-column: 1 / -1;
  min-height: 138px;
  background:
    linear-gradient(90deg, rgba(40, 95, 69, 0.1), rgba(56, 107, 143, 0.1)),
    #fbfbf8;
}

.metric span,
.note span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.metric strong {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1;
}

.note strong {
  font-size: 1.12rem;
  line-height: 1.25;
}

.chart {
  min-height: 190px;
  padding: 18px;
  display: flex;
  align-items: end;
  gap: 12px;
}

.chart i {
  flex: 1;
  min-width: 14px;
  border-radius: 6px 6px 0 0;
  background: var(--blue);
}

.chart i:nth-child(even) {
  background: var(--green);
}

.promise {
  border-top: 1px solid var(--line);
  padding: 18px max(20px, calc((100vw - 1180px) / 2));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  background: rgba(255, 255, 255, 0.58);
}

.promise p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

@media (max-width: 820px) {
  .hero {
    width: min(100% - 28px, 620px);
    padding-top: 48px;
    grid-template-columns: 1fr;
  }

  .dashboard-preview {
    min-width: 0;
  }

  .promise {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 440px) {
  h1 {
    font-size: clamp(3.2rem, 21vw, 4.2rem);
  }

  .preview-grid {
    grid-template-columns: 1fr;
  }

  .metric.wide {
    grid-column: auto;
  }
}
