/* HomeReport — shared styles (warm light theme, mobile-first) */
:root {
  --bg: #faf8f3;
  --surface: #ffffff;
  --surface-2: #f4f0e7;
  --border: #e7e1d3;
  --border-strong: #cfc7b4;
  --text: #26221a;
  --muted: #6f6a5c;
  --faint: #9b9484;
  --accent: #a07c28;
  --accent-soft: rgba(160, 124, 40, 0.08);
  --red: #c2453d;
  --amber: #b07514;
  --blue: #3f6cab;
  --green: #2e8b5f;
  --gray: #7a7f88;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(38, 34, 26, 0.06), 0 4px 16px rgba(38, 34, 26, 0.05);
  --serif: Georgia, "Times New Roman", "Songti SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

[v-cloak] { display: none; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.container { max-width: 960px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; }

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.rule { width: 48px; height: 1px; background: var(--accent); border: none; margin: 20px auto 0; }

/* ── Header ── */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.01em;
  color: var(--text);
  text-decoration: none;
}
.brand span { color: var(--faint); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; margin-left: 6px; }
.brand:hover { text-decoration: none; }
.nav-links a { color: var(--muted); margin-left: 26px; font-size: 13px; letter-spacing: 0.04em; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ── Hero ── */
.hero {
  padding: 88px 0 72px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.hero h1 {
  font-size: 42px;
  line-height: 1.22;
  margin: 18px auto 20px;
  max-width: 720px;
}
.hero p { font-size: 17px; color: var(--muted); max-width: 580px; margin: 0 auto 30px; }
.hero .price-note {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.hero .price-note b { color: var(--accent); font-weight: 600; }

/* ── Sections ── */
.section { padding: 72px 0; }
.section + .section { border-top: 1px solid var(--border); }
.section-head { text-align: center; margin-bottom: 44px; }
.section h2 { font-size: 28px; margin-top: 14px; }

/* How it works */
.steps { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.step {
  flex: 1 1 240px; max-width: 300px;
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; background: var(--surface);
  box-shadow: var(--shadow);
}
.step .num {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--accent);
  margin-bottom: 12px;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 13.5px; color: var(--muted); }

/* Features grid */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.feature {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; background: var(--surface);
  box-shadow: var(--shadow);
}
.feature .icon { color: var(--accent); margin-bottom: 12px; display: block; }
.feature h4 { font-size: 15px; margin-bottom: 6px; font-weight: 600; }
.feature p { font-size: 13px; color: var(--muted); }

/* ── Upload card ── */
.upload-card {
  max-width: 620px; margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border); border-radius: 14px;
  padding: 36px; text-align: center;
  box-shadow: var(--shadow);
}
.dropzone {
  border: 1px dashed var(--border-strong); border-radius: var(--radius);
  padding: 44px 20px; cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.dropzone:hover { border-color: var(--accent); }
.dropzone.dragover { background: var(--accent-soft); border-color: var(--accent); }
.dropzone .dz-icon { color: var(--accent); }
.dropzone p { color: var(--muted); margin-top: 12px; font-size: 14px; }
.dropzone p strong { color: var(--text); font-weight: 600; }
.dropzone .file-note { font-size: 12px; color: var(--faint); margin-top: 6px; letter-spacing: 0.03em; }
input[type="file"] { display: none; }

.field { margin-top: 20px; text-align: left; }
.field label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; color: var(--muted); }
.field input[type="email"],
.field input[type="password"] {
  width: 100%; padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: 8px;
  color: var(--text);
  font-size: 15px;
  transition: border-color 0.2s;
}
.field input::placeholder { color: var(--faint); }
.field input[type="email"]:focus,
.field input[type="password"]:focus { outline: none; border-color: var(--accent); }

.fine-print { font-size: 12px; color: var(--faint); margin-top: 12px; }
.fine-print.hint-amber { color: var(--amber); }

.btn {
  display: inline-block;
  background: var(--text); color: var(--bg);
  border: none; border-radius: 8px;
  padding: 13px 28px; font-size: 15px; font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer; transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.btn:hover { background: #3d372b; text-decoration: none; }
.btn:disabled { background: var(--surface-2); color: var(--faint); cursor: not-allowed; }
.btn-lg { width: 100%; margin-top: 20px; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #277651; }
.btn-green:disabled { background: var(--surface-2); color: var(--faint); }
.btn-ghost { background: transparent; border: 1px solid var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: transparent; }

.status-box { margin-top: 16px; padding: 16px 18px; border-radius: 8px; font-size: 14px; display: none; border: 1px solid var(--border); text-align: left; }
.status-box.show { display: block; }
.status-error { background: #faf0ee; border-color: #e5c1bc; color: #a8382f; }
.status-info { background: var(--surface-2); color: var(--text); }
.status-info p { color: var(--muted); }
.status-ok { background: #eef6f1; border-color: #bfddd0; color: #25714d; }
.status-ok p { color: var(--muted); }

/* ── Preview / checkout ── */
.preview-box { text-align: left; }
.preview-box h3 {
  font-size: 20px; margin-bottom: 20px; text-align: center;
  scroll-margin-top: 96px;
}
.preview-overview {
  font-size: 14.5px; color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px; padding: 16px 18px; margin-bottom: 16px;
  line-height: 1.7;
}
.issue-card {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 2px solid var(--amber);
  border-radius: 8px; padding: 18px 20px; margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.issue-card .top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.issue-card h4 { font-size: 15px; font-weight: 600; flex: 1; }
.issue-card p { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.issue-card .page-tag {
  font-size: 11px; color: var(--faint); white-space: nowrap;
  letter-spacing: 0.08em; text-transform: uppercase; margin-top: 10px;
}

/* Severity badges */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 4px;
  font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em;
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge-critical { background: #f9e9e7; border-color: #e3b8b3; color: #a8382f; }
.badge-major { background: #f8efdd; border-color: #e2cda0; color: #8d5d10; }
.badge-minor { background: #e9eff8; border-color: #bfcfe6; color: #33598c; }
.badge-info { background: #eff0f2; border-color: #d3d6da; color: #5f646c; }
.badge-paid { background: #e7f3ec; border-color: #b5d9c6; color: #25714d; }
.badge-unpaid { background: #eff0f2; border-color: #d3d6da; color: #5f646c; }
.badge-status { background: #e9eff8; border-color: #bfcfe6; color: #33598c; }

/* ── Report page ── */
.report-header { border-bottom: 1px solid var(--border); padding: 48px 0 36px; background: var(--surface); }
.report-header .meta { font-size: 12px; color: var(--faint); letter-spacing: 0.1em; text-transform: uppercase; }
.report-header h1 { font-size: 32px; margin: 12px 0 8px; }
.report-actions { display: flex; gap: 10px; margin-top: 24px; }

.report-body { padding: 40px 0 64px; }
.card-block {
  background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.card-block h2 {
  font-size: 21px; margin-bottom: 16px;
  padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.card-block h3 { font-size: 16px; margin: 18px 0 8px; }
.card-block p { font-size: 14.5px; color: var(--text); margin-bottom: 10px; }
.card-block ul, .card-block ol { margin: 8px 0 8px 20px; font-size: 14.5px; }
.card-block li { margin-bottom: 8px; color: var(--text); }

.sev-row { display: flex; gap: 12px; flex-wrap: wrap; }
.sev-item {
  flex: 1 1 120px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 18px 12px; text-align: center;
}
.sev-item .count { font-family: var(--serif); font-size: 30px; }
.sev-item .label { font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.12em; margin-top: 4px; }

.sev-bar {
  display: flex; height: 8px; border-radius: 4px; overflow: hidden;
  background: var(--surface-2); margin-top: 16px; border: 1px solid var(--border);
}
.sev-bar-seg { height: 100%; min-width: 0; transition: width 0.4s ease; }

.steps-list { list-style: none; margin: 0; padding: 0; }
.steps-list li {
  position: relative; padding: 4px 0 4px 26px; font-size: 14.5px; margin-bottom: 6px;
}
.steps-list li::before {
  content: ""; position: absolute; left: 0; top: 13px;
  width: 14px; height: 1px; background: var(--accent);
}

.issue-cat {
  display: inline-block; margin-top: 8px; font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint);
}

.issue-quote {
  background: var(--accent-soft);
  border-left: 2px solid var(--accent);
  padding: 10px 14px; border-radius: 0 6px 6px 0;
  color: var(--text); font-size: 13.5px; line-height: 1.7; font-style: italic;
}

.issue-page { margin-top: 14px; }
.page-ref { font-size: 12px; letter-spacing: 0.04em; }
.page-img {
  display: block; width: 100%; max-width: 420px; margin-top: 10px;
  border: 1px solid var(--border); border-radius: 8px;
}
.print-only { display: none; }

.issue-detail {
  border: 1px solid var(--border); border-left-width: 2px;
  border-radius: 8px; padding: 18px 20px; margin-bottom: 12px;
  background: var(--surface);
}
.issue-detail .top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.issue-detail h4 { font-size: 15px; font-weight: 600; flex: 1; }
.issue-detail .cost { font-size: 13px; font-weight: 600; color: var(--accent); white-space: nowrap; margin-top: 8px; }
.issue-detail dl { margin-top: 10px; }
.issue-detail dt {
  font-size: 11px; color: var(--faint); font-weight: 600;
  margin-top: 12px; letter-spacing: 0.1em; text-transform: uppercase;
}
.issue-detail dd { font-size: 14px; color: var(--text); margin: 4px 0 0; }

.cost-summary { font-size: 15px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 16px 18px; }
.cost-summary strong { color: var(--accent); }
.cost-summary .note { font-size: 12px; color: var(--faint); }

.disclaimer { font-size: 12.5px; color: var(--faint); }
.disclaimer h3 { color: var(--muted); }
.disclaimer p { color: var(--faint); font-size: 12.5px; }

/* ── Admin ── */
.admin-wrap { max-width: 1100px; margin: 0 auto; padding: 40px 24px 64px; }
.admin-card {
  background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--faint); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
td { color: var(--text); }
tr:hover td { background: var(--surface-2); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; color: var(--muted); }
.login-box { max-width: 400px; margin: 100px auto; }

/* ── Footer ── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  color: var(--faint); padding: 36px 0; font-size: 13px; text-align: center;
}

@media (max-width: 640px) {
  .hero { padding: 44px 0 40px; }
  .hero h1 { font-size: 27px; }
  .hero p { font-size: 16px; }
  .section { padding: 40px 0; }
  .nav-links a { margin-left: 14px; font-size: 13px; }
  .upload-card { padding: 20px 16px; }
  .card-block { padding: 16px; }

  /* touch targets */
  .btn { min-height: 46px; }
  .dropzone { padding: 28px 16px; }
  .field input[type="email"] { min-height: 46px; font-size: 16px; }

  /* report page: severity stats 2x2, stack issue tops */
  .sev-row { gap: 10px; }
  .sev-item { flex: 1 1 45%; }
  .report-header { padding: 24px 0 20px; }
  .report-header h1 { font-size: 22px; }
  .report-actions .btn { width: 100%; margin-bottom: 8px; }
  .issue-detail .top { flex-direction: column; align-items: flex-start; }
  .issue-detail .cost { white-space: normal; }

  /* features 2 cols on phones */
  .features { grid-template-columns: 1fr 1fr; gap: 10px; }
  .feature { padding: 14px; }
  .feature h4 { font-size: 14px; }

  /* admin tables scroll horizontally */
  table { display: block; overflow-x: auto; white-space: nowrap; }
}
