:root {
  --ink: #151719;
  --muted: #626a73;
  --soft: #f4f1ec;
  --panel: #ffffff;
  --line: #d8d2c8;
  --line-strong: #bfb6a9;
  --accent: #0f6f78;
  --accent-dark: #0a4e55;
  --gold: #b17522;
  --green-soft: #e6f3ef;
  --shadow: 0 22px 70px rgba(28, 24, 18, 0.12);
}

* {
  box-sizing: border-box;
}

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

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.shell {
  min-height: 100vh;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(18px, 4vw, 46px);
}

.brand,
.nav-cta {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel);
  color: var(--accent-dark);
  font-size: 12px;
}

.nav-cta {
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 750;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
  width: min(1180px, calc(100% - 36px));
  min-height: calc(100vh - 74px);
  margin: 0 auto;
  padding: 20px 0 52px;
}

.search-panel {
  max-width: 560px;
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 14px;
  letter-spacing: 0;
}

p,
li {
  color: var(--muted);
  line-height: 1.55;
}

.lede {
  max-width: 530px;
  margin-bottom: 26px;
  font-size: 17px;
}

.search-form {
  margin-bottom: 16px;
}

.search-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.search-row input {
  min-height: 52px;
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel);
  padding: 0 15px;
  color: var(--ink);
}

.search-row button,
.evidence-card button,
.paid-panel a {
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
}

.safety-callout {
  border-left: 4px solid var(--gold);
  background: #fff8ed;
  padding: 13px 15px;
  color: var(--muted);
  line-height: 1.45;
}

.safety-callout strong {
  color: var(--ink);
}

.report-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  padding: clamp(18px, 3vw, 28px);
}

.preview-header,
.preview-grid,
.evidence-card,
.paid-panel {
  display: grid;
  gap: 16px;
}

.preview-header {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  margin-bottom: 18px;
}

.status-pill {
  border: 1px solid #b7d8cf;
  border-radius: 999px;
  background: var(--green-soft);
  padding: 7px 10px;
  color: #216454;
  font-size: 12px;
  font-weight: 780;
}

.summary-card,
.preview-grid article,
.evidence-card,
.paid-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px;
}

.summary-card {
  margin-bottom: 14px;
}

.preview-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  margin-bottom: 14px;
}

.link-list,
.evidence-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.link-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 11px 0;
}

.link-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.link-list a {
  color: var(--accent-dark);
  font-weight: 780;
}

.link-list span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.meter {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6e0d7;
}

.meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.metric-copy {
  margin: 12px 0 0;
}

.metric-copy strong {
  color: var(--ink);
}

.evidence-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  margin-bottom: 10px;
}

.evidence-card p,
.paid-panel p,
.summary-card p {
  margin-bottom: 0;
}

.evidence-card button {
  min-height: 40px;
  background: #ece6dd;
  color: var(--ink);
}

.evidence-list {
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
  padding: 6px 16px;
}

.evidence-list li {
  border-top: 1px solid var(--line);
  padding: 10px 0;
}

.evidence-list li:first-child {
  border-top: 0;
}

.paid-panel {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  background: #102c31;
}

.paid-panel h3,
.paid-panel p {
  color: #ffffff;
}

.paid-panel p {
  opacity: 0.78;
}

.paid-panel a {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  color: var(--accent-dark);
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(15, 111, 120, 0.28);
  outline-offset: 2px;
}

@media (max-width: 880px) {
  .workspace,
  .preview-grid,
  .paid-panel {
    grid-template-columns: 1fr;
  }

  .workspace {
    min-height: auto;
    padding-top: 18px;
  }

  .search-panel {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .topbar,
  .search-row,
  .preview-header,
  .evidence-card {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-row button,
  .paid-panel a {
    justify-content: center;
    width: 100%;
  }
}
