:root {
  color-scheme: light;
  --bg: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --pass: #047857;
  --fail: #dc2626;
  --card-bg: #f9fafb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f8fafc;
  color: var(--text);
  font-size: 16px;
}

a {
  color: inherit;
}

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

.hero {
  padding: 80px 20px 60px;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: 48px;
}

.hero p {
  margin: 12px auto 0;
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 720px;
}

.hero-subtitle {
  font-size: 1.1rem;
  margin: 12px auto 0;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}

.secondary-link {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}

.hero-description {
  max-width: 720px;
  margin: 20px auto;
  color: var(--muted);
}

.trust-cues {
  margin-top: 24px;
  display: flex;
  gap: 24px;
  justify-content: flex-start;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.95rem;
}

.sample-report {
  margin: 24px auto 32px;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 20px;
  max-width: 880px;
  background: #fff;
}

.sample-report summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0;
  text-align: left;
}

.sample-report summary::-webkit-details-marker {
  display: none;
}

.sample-report summary::before {
  content: "▸";
  display: inline-block;
  color: var(--muted);
  transition: transform 0.15s ease;
}

.sample-report[open] summary::before {
  transform: rotate(90deg);
}

.sample-report-body {
  margin-top: 16px;
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.sample-report-body img {
  width: 50%;
  max-width: 440px;
  height: auto;
  aspect-ratio: 0.707; /* A4 ratio (width / height) */
  display: block;
  margin: 0 auto;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.sample-report-caption {
  text-align: center;
  margin-top: 10px;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.6);
}

.product-hunt-card {
  margin: 24px auto 0;
  max-width: 500px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ph-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.ph-header img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.ph-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
}

.ph-header p {
  margin: 4px 0 0;
  font-size: 14px;
  color: #666;
}

.ph-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 8px 16px;
  background: #ff6154;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}

.cta {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-top: 16px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 1.1rem;
}

.header-brand img {
  height: 28px;
}

.header-nav {
  display: flex;
  gap: 16px;
  font-size: 0.95rem;
}

.header-nav a {
  text-decoration: none;
  color: var(--muted);
}

.section {
  margin-top: 64px;
}

.section h2 {
  margin-bottom: 16px;
  font-size: 28px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-top: 16px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.grid-steps {
  display: grid;
  gap: 16px;
}

.list-columns {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

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

.checks-table th,
.checks-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.badge.pass {
  background: rgba(4, 120, 87, 0.15);
  color: var(--pass);
}

.badge.fail {
  background: rgba(220, 38, 38, 0.15);
  color: var(--fail);
}

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

.meta-table th,
.meta-table td {
  text-align: left;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 16px;
  border-radius: 12px;
  overflow-x: auto;
  font-size: 0.95rem;
}

ol, ul {
  margin: 0 0 0 20px;
  padding: 0;
}

.table-title {
  margin-top: 32px;
}

.report-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.report-header h1 {
  margin: 0;
}

.report-summary {
  color: var(--muted);
}

.not-found {
  text-align: center;
  padding: 120px 20px;
}

.not-found a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.text-muted {
  color: var(--muted);
}

.light {
  color: var(--muted);
  font-size: 0.9rem;
}

.form-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-grid label {
  font-weight: 600;
  margin-bottom: 4px;
}

.input-field,
.input-checkbox {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-field input,
.input-field textarea,
.input-field select {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 1rem;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.button-primary {
  padding: 12px 24px;
  border-radius: 10px;
  border: none;
  background: var(--text);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
}

.button-primary[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

.error-text {
  color: var(--fail);
  font-size: 0.9rem;
  margin-top: 8px;
}
.badge.neutral {
  background: rgba(15, 23, 42, 0.08);
  color: var(--text);
}
.report-header-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mono {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
  font-size: 0.95rem;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.kpi-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.kpi-card h3 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.kpi-card .kpi-value {
  font-size: 2rem;
  margin: 8px 0 0;
}

.actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 16px;
}

.btn {
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary {
  background: var(--text);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.report-table-wrapper {
  overflow-x: auto;
}

.checks-table thead th {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.report-page body {
  background: #f8fafc;
}

.checks-table td:nth-child(2),
.checks-table th:nth-child(2) {
  white-space: nowrap;
}

.checks-table tr.fail-row td {
  background: #fef2f2;
}

.checks-table tr.fail-row td:first-child {
  border-left: 3px solid #ef4444;
}

.score-bar {
  margin-top: 12px;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  background: #111827;
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.steps div {
  padding: 12px;
  border: 1px dashed var(--border);
  border-radius: 12px;
}

.small-note {
  font-size: 0.85rem;
  margin-top: -8px;
}

.text-muted {
  color: var(--muted);
}
