:root {
  --bg: #f6f5f1;
  --card: #ffffff;
  --ink: #181818;
  --muted: #66665f;
  --line: #d9d7cf;
  --accent: #202020;
}

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

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

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.8);
  position: sticky;
  top: 0;
  backdrop-filter: blur(6px);
}

.site-header nav { display: flex; gap: 1rem; }
.brand { font-weight: 700; }
.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}
.hero { padding: 2rem 0 1rem; }
.compact-hero { padding-bottom: 0.5rem; }
h1, h2 { line-height: 1.1; }
h1 { font-size: clamp(2rem, 4vw, 3.4rem); margin: 0 0 0.75rem; }
h2 { margin-top: 0; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 48rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-size: 0.8rem; }

.grid { display: grid; gap: 1rem; }
.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three-col { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.compare-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.form-stack { display: grid; gap: 1rem; }
label { display: grid; gap: 0.4rem; font-weight: 600; }
input[type="text"], select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0.8rem 0.9rem;
  font: inherit;
  color: inherit;
}
textarea { resize: vertical; }
.button, button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.8rem 1.1rem;
  background: #fff;
  cursor: pointer;
  font: inherit;
}
.button.primary, button.button.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.cta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.center-row { justify-content: center; }
.hidden { display: none; }
.story-body {
  white-space: pre-wrap;
  line-height: 1.7;
  color: #252525;
}
.preview-body {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.story-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--line);
  font-size: 0.85rem;
}
.tag.subtle { color: var(--muted); }
.range-hint { color: var(--muted); font-weight: 400; font-size: 0.9rem; }
.empty-state { text-align: center; padding: 2rem; }
.option-card {
  display: block;
  min-height: 180px;
}
.option-card p { color: var(--muted); margin-bottom: 0; }
.metrics-grid .metric-card { min-height: 140px; }
.metric-label { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.5rem; }
.metric-value { font-size: 2.4rem; font-weight: 700; margin-bottom: 0.35rem; }
.metric-note { color: var(--muted); }
.stats-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
}
.stats-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}
.stats-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.story-list {
  display: grid;
  gap: 1rem;
}
.story-list-item {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.story-list-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

@media (max-width: 760px) {
  .two-col, .three-col { grid-template-columns: 1fr; }
  .site-header { flex-direction: column; gap: 0.75rem; }
}


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

.results-table th,
.results-table td {
  text-align: left;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.results-table th:last-child,
.results-table td:last-child {
  text-align: right;
}
