:root {
  --ink: #172b4d;
  --muted: #5e6c84;
  --line: #dfe1e6;
  --bg: #fafbfc;
  --card: #ffffff;
  --accent: #0052cc;
  --accent-dark: #0747a6;
  --warn-bg: #fffae6;
  --warn-border: #ffab00;
  --placeholder-bg: #ffebe6;
  --placeholder-border: #de350b;
  --radius: 6px;
  --maxw: 780px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

header.site {
  border-bottom: 1px solid var(--line);
  background: var(--card);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
}

.brand span {
  color: var(--accent);
}

nav.site a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 20px;
  font-size: 0.95rem;
}

nav.site a:first-child { margin-left: 0; }

nav.site a:hover,
nav.site a[aria-current="page"] {
  color: var(--accent-dark);
  text-decoration: underline;
}

main {
  padding: 40px 0 80px;
}

h1 {
  font-size: 1.9rem;
  margin: 0 0 8px;
}

h2 {
  font-size: 1.3rem;
  margin: 2.2em 0 0.6em;
  padding-top: 0.4em;
  border-top: 1px solid var(--line);
}

h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

h3 {
  font-size: 1.05rem;
  margin: 1.4em 0 0.5em;
}

p, li {
  color: var(--ink);
}

.lede {
  color: var(--muted);
  font-size: 1.1rem;
  margin-top: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 0.92rem;
}

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

th {
  background: #f4f5f7;
  font-weight: 600;
}

code {
  background: #f4f5f7;
  border-radius: 3px;
  padding: 0.1em 0.4em;
  font-size: 0.9em;
}

.callout {
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 1.2em 0;
}

.draft-banner {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 28px;
  font-size: 0.95rem;
}

.draft-banner strong { display: block; margin-bottom: 4px; }

.placeholder {
  background: var(--placeholder-bg);
  border: 1px dashed var(--placeholder-border);
  border-radius: 4px;
  padding: 0.05em 0.5em;
  color: #ae2a19;
  font-weight: 600;
  font-size: 0.95em;
  white-space: nowrap;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 1.4em 0;
}

.card {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
}

.card h3 {
  margin-top: 0;
  font-size: 1rem;
}

.card p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 0;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  font-family: inherit;
  cursor: pointer;
  line-height: 1.2;
}

.button:hover { background: var(--accent-dark); }

.button.secondary {
  background: transparent;
  color: var(--accent-dark);
  border: 1px solid var(--accent-dark);
}

.button.disabled,
.button[disabled] {
  background: #f4f5f7;
  color: var(--muted);
  border: 1px solid var(--line);
  cursor: not-allowed;
}

.button.disabled:hover,
.button[disabled]:hover {
  background: #f4f5f7;
}

footer.site {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.85rem;
}

footer.site a {
  color: var(--muted);
}

.small {
  font-size: 0.85rem;
  color: var(--muted);
}

ul.tight li { margin-bottom: 0.4em; }

/* ---------- Hero ---------- */

.hero {
  padding: 10px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 1fr);
  gap: 32px;
  align-items: center;
}

@media (max-width: 700px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin: 0 0 10px;
}

.hero h1 {
  font-size: 2.3rem;
  line-height: 1.15;
}

.cta-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.cta-primary-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.cta-note {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ---------- Hero product-preview card ---------- */

.hero-preview {
  display: flex;
  justify-content: center;
}

.preview-card {
  width: 100%;
  max-width: 300px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(23, 43, 77, 0.08);
}

.preview-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.preview-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #36b37e;
  flex: none;
}

.preview-title {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink);
}

.preview-stats {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.preview-stat {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
}

.preview-stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
}

.preview-stat-label {
  font-size: 0.72rem;
  color: var(--muted);
}

.preview-row {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.preview-row-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.preview-row-label {
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.preview-row-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-arrow {
  color: var(--muted);
  flex: none;
}

.preview-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.preview-lozenge {
  display: inline-block;
  background: #e3fcef;
  color: #006644;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 3px;
}

.preview-caption {
  margin: 14px 0 0;
  font-size: 0.7rem;
  color: var(--muted);
  text-align: center;
}

/* ---------- Trust strip ---------- */

.trust-strip {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 0;
  margin: 0 0 2.2em;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-strip li {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0 18px;
  border-right: 1px solid var(--line);
}

.trust-strip li:last-child {
  border-right: none;
}

.trust-strip li:first-child {
  padding-left: 0;
}

.trust-caveat {
  font-weight: 400;
  color: var(--muted);
}

@media (max-width: 560px) {
  .trust-strip li {
    border-right: none;
    padding: 0 0 0 0;
    width: 50%;
  }
}

/* ---------- Restorability cards ---------- */

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 3px 9px;
  border-radius: 3px;
  margin-bottom: 10px;
}

.card--positive { border-top: 3px solid #36b37e; }
.card--caution { border-top: 3px solid #ffab00; }
.card--restricted { border-top: 3px solid #97a0af; }

.badge--positive { background: #e3fcef; color: #006644; }
.badge--caution { background: #fffae6; color: #974f0c; }
.badge--restricted { background: #f4f5f7; color: #42526e; }
