:root {
  --ink: #0b1615;
  --paper: #f4f1e9;
  --white: #fffefa;
  --teal: #0e685d;
  --coral: #d8644b;
  --violet: #65507a;
  --line: #c9cbc2;
  --muted: #606965;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  padding: 0 4vw;
  color: white;
  background: rgba(11, 22, 21, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.brand { color: white; text-decoration: none; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.brand span { display: grid; place-items: center; width: 34px; aspect-ratio: 1; background: var(--coral); }
nav { display: flex; gap: 28px; }
nav a { color: #dce6e2; text-decoration: none; font-size: 14px; }
.privacy-state { justify-self: end; color: #a6d9c9; font-size: 13px; }

.hero { position: relative; min-height: min(84vh, 820px); overflow: hidden; color: white; display: flex; align-items: flex-end; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-shade { position: absolute; inset: 0; background: rgba(4, 13, 12, 0.53); }
.hero-content { position: relative; width: min(700px, 92vw); margin: 0 0 7vh 6vw; }
.eyebrow { margin: 0 0 12px; color: var(--coral); font-size: 12px; font-weight: 800; letter-spacing: 0; }
h1, h2, blockquote { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: 0; }
h1 { margin: 0; font-size: clamp(64px, 10vw, 126px); line-height: 0.88; }
.hero-copy { max-width: 590px; margin: 24px 0; font-size: 19px; line-height: 1.5; }
.quick-form label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; }
.quick-row { display: grid; grid-template-columns: 1fr auto; max-width: 650px; }
.quick-row input { min-width: 0; padding: 15px 16px; color: white; background: rgba(11, 22, 21, 0.86); border: 1px solid rgba(255,255,255,.55); border-right: 0; }
.quick-row input::placeholder { color: #b9c4c0; }
.quick-row button, .primary-action { padding: 14px 22px; color: white; background: var(--coral); border: 1px solid var(--coral); font-weight: 800; }

.section-band { padding: 84px max(5vw, 24px); }
.section-heading { max-width: 720px; margin-bottom: 38px; }
.section-heading h2 { margin: 0 0 12px; font-size: clamp(36px, 5vw, 58px); line-height: 1; }
.section-heading > p:last-child { color: var(--muted); }
.workbench { background: var(--white); }
.monitor-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 0; max-width: 1180px; border: 1px solid var(--line); }
.monitor-form, .result { min-height: 520px; padding: 34px; }
.monitor-form { border-right: 1px solid var(--line); }
.monitor-form > label, .field-grid label, legend { display: block; font-size: 12px; font-weight: 800; text-transform: uppercase; }
textarea, input, select { width: 100%; padding: 13px; margin-top: 8px; border: 1px solid #aeb4ae; background: white; border-radius: 0; }
textarea { resize: vertical; min-height: 112px; }
.field-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 20px 0; }
fieldset { padding: 0; margin: 0 0 24px; border: 0; }
legend { margin-bottom: 9px; }
.segments { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid #aeb4ae; }
.segments button { min-height: 42px; border: 0; border-right: 1px solid #aeb4ae; background: transparent; }
.segments button:last-child { border-right: 0; }
.segments .active { color: white; background: var(--teal); }
.primary-action { width: 100%; min-height: 48px; }
.result { background: #101c1a; color: #edf4ef; }
.empty-result { min-height: 440px; display: grid; align-content: center; }
.empty-result span, .result-label { color: #91cbb9; font-size: 12px; font-weight: 800; }
.empty-result h3, .result h3 { margin: 10px 0; font-family: Georgia, serif; font-size: 32px; font-weight: 500; }
.empty-result p, .result p { color: #b9c4c0; line-height: 1.55; }
.verdict-line { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: #aab8b4; font-size: 13px; }
.verdict { display: inline-block; padding: 8px 10px; color: white; background: var(--teal); font-weight: 800; }
.verdict.switch { background: var(--coral); }
.verdict.rest { background: var(--violet); }
.advice-block { margin: 30px 0; padding-top: 24px; border-top: 1px solid #42504c; }
.advice-block strong { display: block; font-size: 21px; line-height: 1.4; }
dl { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #42504c; }
dl div { padding: 16px; background: #172522; }
dt { color: #91cbb9; font-size: 11px; text-transform: uppercase; }
dd { margin: 7px 0 0; }
details { margin-top: 22px; color: #c9d3cf; }
details p { font-size: 13px; }

.history { background: #e7e6df; }
.inline-heading { max-width: none; display: flex; justify-content: space-between; align-items: end; }
.secondary-action { padding: 11px 14px; border: 1px solid var(--ink); background: transparent; }
.history-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.history-list article { min-height: 190px; padding: 22px; background: var(--white); }
.history-list time { color: var(--muted); font-size: 12px; }
.history-verdict { float: right; color: var(--teal); font-size: 12px; font-weight: 800; }
.history-list p { margin: 28px 0 18px; line-height: 1.45; }
.history-list strong { color: var(--muted); font-size: 12px; }
.empty-history { grid-column: 1 / -1; padding: 36px; margin: 0; background: var(--white); }

.agents { background: var(--paper); }
.agent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.agent-grid article { min-height: 250px; padding: 26px; border: 1px solid var(--line); background: var(--white); border-radius: 6px; }
.agent-grid article:nth-child(1) { border-top: 5px solid var(--ink); }
.agent-grid article:nth-child(2) { border-top: 5px solid var(--violet); }
.agent-grid article:nth-child(3) { border-top: 5px solid #bf8a3b; }
.agent-grid span { color: var(--muted); font-size: 12px; }
.agent-grid h3 { margin: 32px 0 12px; font-size: 22px; }
.agent-grid p { color: var(--muted); line-height: 1.55; }
.agent-grid strong { display: block; margin-top: 26px; color: var(--teal); font-size: 12px; text-transform: uppercase; }
.principle { color: white; background: var(--ink); }
.principle blockquote { max-width: 1000px; margin: 24px 0; font-size: clamp(35px, 5vw, 64px); line-height: 1.08; }
.principle > p:last-child { color: #a6d9c9; }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 24px 5vw; color: #53605b; background: var(--paper); font-size: 12px; }

@media (max-width: 760px) {
  .site-header { grid-template-columns: 1fr auto; padding: 0 18px; }
  nav { display: none; }
  .hero { min-height: 780px; }
  .hero > img { object-position: 53% center; }
  .hero-content { margin: 0 20px 38px; }
  h1 { font-size: 68px; }
  .quick-row { grid-template-columns: 1fr; gap: 8px; }
  .quick-row input { border-right: 1px solid rgba(255,255,255,.55); }
  .section-band { padding: 64px 20px; }
  .monitor-grid, .agent-grid, .history-list { grid-template-columns: 1fr; }
  .monitor-form { border-right: 0; border-bottom: 1px solid var(--line); }
  .monitor-form, .result { min-height: auto; padding: 24px; }
  .empty-result { min-height: 320px; }
  .field-grid { grid-template-columns: 1fr; }
  .inline-heading { align-items: start; gap: 24px; }
  .verdict-line, footer { align-items: start; flex-direction: column; }
  dl { grid-template-columns: 1fr; }
}
