:root {
  --bg: #f6f8f7;
  --surface: #ffffff;
  --surface-soft: #f0f5f2;
  --text: #16221c;
  --muted: #5f6f66;
  --border: #dbe4df;
  --accent: #176b48;
  --accent-dark: #0e5135;
  --accent-soft: #e2f3e9;
  --error: #a72929;
  --error-soft: #fff0ef;
  --warning: #8a5b00;
  --warning-soft: #fff7df;
  --fixed: #176b48;
  --fixed-soft: #e9f6ee;
  --shadow: 0 18px 60px rgba(24, 50, 36, 0.08);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(circle at 50% 0%, #ffffff 0, var(--bg) 42rem);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
button, input { font: inherit; }
button { cursor: pointer; }

.site-header {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--accent);
  color: white;
  display: grid;
  place-items: center;
  font-size: 15px;
}
.privacy-pill {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.76);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
}

main { width: min(960px, calc(100% - 32px)); margin: 0 auto; }
.hero { padding: 74px 0 44px; text-align: center; }
.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
}
h1 {
  max-width: 800px;
  margin: 0 auto;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}
.hero-copy {
  max-width: 720px;
  margin: 24px auto 34px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
}

.dropzone {
  max-width: 790px;
  margin: 0 auto;
  padding: 46px 24px;
  border: 1.5px dashed #9eb7aa;
  border-radius: 24px;
  background: rgba(255,255,255,0.9);
  box-shadow: var(--shadow);
  transition: 150ms ease;
  outline: none;
}
.dropzone:hover, .dropzone:focus-visible, .dropzone.dragging {
  border-color: var(--accent);
  background: #fbfffc;
  transform: translateY(-2px);
}
.upload-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 25px;
  font-weight: 700;
}
.drop-title { margin: 0; font-size: 21px; font-weight: 760; letter-spacing: -0.02em; }
.drop-subtitle { margin: 7px 0 21px; color: var(--muted); font-size: 14px; }
.button {
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 750;
  transition: 140ms ease;
}
.button-primary { background: var(--accent); color: white; }
.button-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .55; transform: none; }
.demo-row {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}
.text-button { border: 0; background: transparent; color: var(--accent); font-weight: 750; padding: 3px; }
.global-error {
  max-width: 790px;
  margin: 18px auto 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--error-soft);
  color: var(--error);
  text-align: left;
}

.results {
  margin: 24px 0 72px;
  padding: 30px;
  background: rgba(255,255,255,.94);
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: var(--shadow);
}
.results-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
h2 { margin: 0; font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.04em; }
h3 { margin: 0; letter-spacing: -0.02em; }
.muted { margin: 5px 0 0; color: var(--muted); }
.readiness-badge {
  white-space: nowrap;
  border-radius: 999px;
  padding: 9px 13px;
  background: var(--warning-soft);
  color: var(--warning);
  font-weight: 800;
  font-size: 13px;
}
.readiness-badge.ready { background: var(--fixed-soft); color: var(--fixed); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0;
}
.stat-card { padding: 16px; border: 1px solid var(--border); background: var(--surface-soft); border-radius: 14px; }
.stat-card span { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.stat-card strong { display: block; margin-top: 3px; font-size: 25px; letter-spacing: -0.04em; }
.action-panel {
  padding: 20px;
  border-radius: 16px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.issues-toolbar {
  margin-top: 32px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}
.filters { display: flex; gap: 6px; padding: 4px; background: var(--surface-soft); border-radius: 11px; }
.filter { border: 0; background: transparent; color: var(--muted); border-radius: 8px; padding: 7px 10px; font-size: 13px; font-weight: 750; }
.filter.active { background: white; color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.issue-list { margin-top: 14px; display: grid; gap: 9px; }
.issue {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 13px;
  align-items: start;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 15px;
}
.issue-badge { border-radius: 8px; padding: 4px 7px; font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; }
.issue.error .issue-badge { color: var(--error); background: var(--error-soft); }
.issue.warning .issue-badge { color: var(--warning); background: var(--warning-soft); }
.issue.fixed .issue-badge { color: var(--fixed); background: var(--fixed-soft); }
.issue.info .issue-badge { color: #385c83; background: #edf5ff; }
.issue-title { margin: 0; font-weight: 780; }
.issue-detail { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.issue-location { color: var(--muted); font-size: 12px; white-space: nowrap; }
.empty-issues { margin-top: 14px; padding: 20px; border-radius: 14px; background: var(--fixed-soft); display: grid; gap: 4px; }
.empty-issues span { color: var(--muted); font-size: 14px; }
.limitations { margin-top: 24px; border-top: 1px solid var(--border); padding-top: 18px; color: var(--muted); }
.limitations summary { color: var(--text); font-weight: 750; cursor: pointer; }
.limitations p { margin: 12px 0 0; }

footer {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 44px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 760px) {
  .site-header { width: min(100% - 28px, 1120px); }
  .privacy-pill { display: none; }
  .hero { padding-top: 46px; }
  .demo-row { flex-direction: column; gap: 3px; }
  .results { padding: 20px; }
  .results-header, .action-panel, .issues-toolbar { align-items: flex-start; flex-direction: column; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .action-panel .button { width: 100%; }
  .filters { width: 100%; overflow-x: auto; }
  .issue { grid-template-columns: auto 1fr; }
  .issue-location { grid-column: 2; }
}

.content-section {
  margin: 72px 0;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255,255,255,.78);
}
.content-section > h2 { max-width: 720px; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.feature-card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}
.feature-card p { margin: 8px 0 0; color: var(--muted); }
.step-number {
  width: 30px;
  height: 30px;
  margin-bottom: 14px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 850;
}
.faq-list { margin-top: 24px; display: grid; gap: 10px; }
.faq-list details {
  padding: 17px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
.faq-list summary { cursor: pointer; font-weight: 780; }
.faq-list p { margin: 10px 0 0; color: var(--muted); }
.footer-links { display: flex; justify-content: center; gap: 16px; margin-top: 8px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--accent); }
.legal-page { max-width: 760px; padding: 54px 0 80px; }
.legal-page h1 { font-size: clamp(38px, 6vw, 58px); margin: 0; }
.legal-page h2 { margin-top: 34px; font-size: 26px; }
.legal-page p, .legal-page li { color: var(--muted); }
.legal-page a { color: var(--accent); }

@media (max-width: 760px) {
  .content-section { margin: 48px 0; padding: 22px; }
  .feature-grid { grid-template-columns: 1fr; }
}


.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}
.guide-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}
.guide-card h3 { font-size: 22px; line-height: 1.25; }
.guide-card h3 a { color: var(--text); text-decoration: none; }
.guide-card h3 a:hover { color: var(--accent); }
.guide-card p { color: var(--muted); }
.guide-kicker {
  margin: 0 0 10px;
  color: var(--accent) !important;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .12em;
}
.guide-link { color: var(--accent); font-weight: 780; text-decoration: none; }

.guide-page { max-width: 820px; padding: 46px 0 82px; }
.breadcrumb { margin: 0 0 24px; color: var(--muted); font-size: 14px; }
.breadcrumb a { color: var(--accent); text-decoration: none; }
.guide-page h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(40px, 7vw, 68px);
}
.guide-intro { margin: 22px 0 30px; color: var(--muted); font-size: 19px; }
.answer-box {
  margin: 30px 0;
  padding: 24px;
  border: 1px solid #bcd8c8;
  border-radius: 18px;
  background: var(--accent-soft);
}
.answer-box h2 { font-size: 24px; }
.answer-box p { margin-bottom: 0; }
.guide-page article > h2 { margin: 42px 0 12px; font-size: 30px; }
.guide-page article > h3 { margin: 26px 0 8px; font-size: 21px; }
.guide-page article p, .guide-page article li { color: var(--muted); }
.guide-page article li + li { margin-top: 8px; }
.guide-page code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--text);
}
.example-row {
  overflow-x: auto;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  white-space: nowrap;
}
.guide-cta {
  margin: 42px 0;
  padding: 28px;
  border-radius: 20px;
  background: var(--text);
  color: white;
}
.guide-cta h2 { color: white; font-size: 28px; }
.guide-cta p { color: #d8e2dc !important; }
.guide-cta .button-primary { display: inline-block; text-decoration: none; margin-top: 8px; }
.source-list a { color: var(--accent); }

@media (max-width: 760px) {
  .guide-grid { grid-template-columns: 1fr; }
  .guide-page { padding-top: 28px; }
  .answer-box, .guide-cta { padding: 20px; }
}

.section-copy { max-width: 720px; color: var(--muted); margin: 10px 0 0; }
