:root {
  --ink: #071311;
  --teal: #0f7f75;
  --teal-dark: #064a45;
  --mint: #dff7ee;
  --lime: #d7ff47;
  --coral: #ff6f59;
  --paper: #fffdf6;
  --line: #d9d2bf;
  --muted: #58645f;
  --shadow: 0 18px 50px rgba(7, 19, 17, .12);
}

* { box-sizing: border-box; }

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

a { color: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(7, 19, 17, .12);
  background: rgba(255, 253, 246, .94);
  backdrop-filter: blur(14px);
}

.brand {
  font-size: 21px;
  font-weight: 950;
  text-decoration: none;
  white-space: nowrap;
}

nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 800;
}

nav a { text-decoration: none; }

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 20px 72px;
}

.hero,
.tool-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: end;
  padding: 46px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background:
    linear-gradient(140deg, rgba(223, 247, 238, .9), rgba(255, 253, 246, .85) 55%),
    var(--paper);
  box-shadow: var(--shadow);
}

.tool-hero { margin-bottom: 18px; }

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal-dark);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
}

h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: .94;
  letter-spacing: 0;
}

h2, h3, p { letter-spacing: 0; }

.hero p,
.tool-hero p {
  max-width: 680px;
  color: #31413c;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button {
  min-height: 44px;
  border-radius: 999px;
  padding: 12px 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 900;
  background: var(--ink);
  color: white;
  border: 1px solid transparent;
  box-shadow: 0 8px 18px rgba(7, 19, 17, .14);
}

.button.lime {
  background: var(--lime);
  color: var(--ink);
}

.button.light {
  background: white;
  color: var(--ink);
  border-color: rgba(7, 19, 17, .18);
  box-shadow: none;
}

.notice,
.sample-badge {
  border-radius: 12px;
  padding: 18px;
  background: var(--lime);
  border: 1px solid rgba(7, 19, 17, .18);
  font-weight: 850;
}

.notice span {
  display: block;
  margin-top: 8px;
  color: #273530;
  font-weight: 650;
}

.sample-badge {
  justify-self: end;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
}

.intake-hero {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  align-items: stretch;
  background:
    linear-gradient(140deg, rgba(223, 247, 238, .92), rgba(255, 253, 246, .86) 58%),
    radial-gradient(circle at 88% 10%, rgba(255, 111, 89, .22), rgba(255, 111, 89, 0) 30%),
    var(--paper);
}

.intake-hero h1 {
  max-width: 850px;
  font-size: clamp(42px, 6.4vw, 74px);
}

.intake-snapshot {
  min-height: 300px;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 20px;
  border: 1px solid rgba(7, 19, 17, .16);
  border-radius: 10px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 12px 30px rgba(7, 19, 17, .08);
}

.intake-snapshot .sample-badge {
  align-self: flex-start;
  padding: 9px 11px;
}

.intake-snapshot b {
  font-size: 28px;
  line-height: 1.04;
}

.intake-snapshot > span {
  color: var(--muted);
  font-weight: 800;
}

.snapshot-status {
  margin-top: auto;
  padding: 14px;
  border-radius: 8px;
  background: var(--mint);
}

.snapshot-status strong,
.snapshot-status small {
  display: block;
}

.snapshot-status small {
  margin-top: 4px;
  color: #31413c;
  font-weight: 800;
}

.snapshot-steps {
  display: grid;
  gap: 8px;
}

.snapshot-steps span {
  padding: 10px;
  border-radius: 8px;
  background: #edf8f4;
  font-weight: 850;
}

.snapshot-steps .warn { background: #fff3e3; }

.intake-metrics {
  margin-top: 0;
}

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

.tool-card,
.panel,
.metrics div {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  box-shadow: 0 8px 22px rgba(7, 19, 17, .06);
}

.tool-card {
  min-height: 310px;
  padding: 22px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.tool-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--lime);
  font-weight: 950;
  font-size: 20px;
}

.tool-card h2 {
  margin: 22px 0 10px;
  font-size: 26px;
  line-height: 1.05;
}

.tool-card p {
  color: var(--muted);
  margin: 0;
}

.tool-card strong {
  margin-top: auto;
  color: var(--teal-dark);
}

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

.metrics div {
  padding: 18px;
}

.metrics b {
  display: block;
  font-size: 32px;
  line-height: 1;
}

.metrics span {
  display: block;
  color: var(--muted);
  font-weight: 750;
  margin-top: 6px;
}

.workspace {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.two-col {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.panel {
  padding: 20px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.panel-head h2 {
  margin: 0;
  font-size: 24px;
}

.panel-head span {
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
}

.lead-row,
.rules div,
.alert-list div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(7, 19, 17, .12);
  border-radius: 8px;
  margin-bottom: 10px;
  background: #fffdf8;
}

.alert-list {
  display: grid;
  gap: 10px;
}

.alert-list div {
  grid-template-columns: 1fr;
  margin-bottom: 0;
}

.lead-row.hot { background: #fff3e3; border-color: rgba(255, 111, 89, .35); }
.lead-row b, .rules b, .alert-list b { display: block; }
.lead-row span, .rules span, .alert-list span { display: block; color: var(--muted); margin-top: 3px; }
.lead-row em {
  align-self: center;
  font-style: normal;
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--mint);
  color: var(--teal-dark);
  font-weight: 900;
  white-space: nowrap;
}

.message-box,
.summary {
  padding: 18px;
  border-radius: 10px;
  background: var(--mint);
  color: #1f302c;
  font-weight: 750;
}

.summary p { margin-bottom: 0; color: #31413c; }

.actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

button {
  border: 0;
  border-radius: 999px;
  min-height: 42px;
  padding: 10px 16px;
  background: var(--ink);
  color: white;
  font-weight: 900;
}

button.ghost {
  background: white;
  color: var(--ink);
  border: 1px solid rgba(7, 19, 17, .18);
}

.fake-form {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 900;
}

input,
textarea,
.upload-box {
  width: 100%;
  border: 1px solid rgba(7, 19, 17, .18);
  border-radius: 8px;
  min-height: 44px;
  padding: 11px;
  background: white;
  font: inherit;
  color: var(--ink);
}

textarea { min-height: 92px; resize: none; }

.upload-box {
  display: flex;
  align-items: center;
  background: var(--lime);
  font-weight: 900;
}

.checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.checklist span {
  padding: 10px;
  border-radius: 8px;
  background: #edf8f4;
  font-weight: 850;
}

.checklist .warn { background: #fff3e3; }

table {
  width: 100%;
  border-collapse: collapse;
}

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

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

@media (max-width: 820px) {
  .topbar,
  .hero,
  .tool-hero,
  .two-col {
    grid-template-columns: 1fr;
  }

  .topbar { align-items: flex-start; }
  .hero, .tool-hero { padding: 28px; }
  .tool-grid, .metrics { grid-template-columns: 1fr; }
  .sample-badge { justify-self: start; }
  .intake-snapshot { min-height: 0; }
}

@media (max-width: 460px) {
  main { padding: 24px 14px 48px; }
  .topbar {
    flex-direction: column;
    padding: 12px 14px;
  }
  .hero, .tool-hero, .panel { padding: 18px; }
  .hero-actions .button { width: 100%; }
  .lead-row, .rules div, .alert-list div { grid-template-columns: 1fr; }
  .checklist { grid-template-columns: 1fr; }
}
