:root {
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --card: #ffffff;
  --brand: #0d9488;
  --brand-dark: #0f766e;
  --brand-soft: #ccfbf1;
  --accent: #0369a1;
  --warn: #b45309;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --max: 1080px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, #ccfbf1 0%, transparent 55%),
    radial-gradient(900px 400px at 100% 0%, #e0f2fe 0%, transparent 50%),
    var(--bg);
  line-height: 1.6;
}

a { color: var(--brand-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(248, 250, 252, 0.85);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 0; gap: 1rem;
}
.logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-weight: 700; letter-spacing: -0.02em; color: var(--ink); text-decoration: none;
}
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(145deg, #14b8a6, #0369a1);
  display: grid; place-items: center; color: white; font-size: 0.95rem;
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.35);
}
.nav { display: flex; gap: 1.1rem; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--ink-soft); text-decoration: none; font-size: 0.95rem; }
.nav a:hover { color: var(--brand-dark); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  border: 0; border-radius: 999px; padding: 0.85rem 1.35rem;
  font-weight: 650; font-size: 1rem; cursor: pointer; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), #0284c7);
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(13, 148, 136, 0.28);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--brand-dark), #0369a1); }
.btn-ghost {
  background: #fff; color: var(--ink) !important;
  border: 1px solid var(--line);
}
.btn-sm { padding: 0.55rem 1rem; font-size: 0.92rem; }

.hero { padding: 3.2rem 0 2.4rem; }
.hero-grid {
  display: grid; gap: 2rem; align-items: center;
  grid-template-columns: 1.15fr 0.85fr;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: var(--brand-soft); color: var(--brand-dark);
  border-radius: 999px; padding: 0.35rem 0.8rem;
  font-size: 0.85rem; font-weight: 650; margin-bottom: 1rem;
}
h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.25rem);
  line-height: 1.12; letter-spacing: -0.035em; margin: 0 0 1rem;
}
.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 38rem; margin: 0 0 1.5rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1rem; }
.trust {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem;
  color: var(--muted); font-size: 0.92rem;
}
.trust span { display: inline-flex; align-items: center; gap: 0.4rem; }
.trust i {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-dark);
  display: grid; place-items: center; font-style: normal; font-size: 0.75rem; font-weight: 700;
}

.preview {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 22px; box-shadow: var(--shadow); overflow: hidden;
}
.preview-top {
  display: flex; gap: 0.35rem; padding: 0.85rem 1rem;
  background: #f1f5f9; border-bottom: 1px solid var(--line);
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: #cbd5e1; }
.preview-body { padding: 1.1rem 1.15rem 1.25rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: #f1f5f9; border-radius: 999px; padding: 0.25rem 0.65rem;
  font-size: 0.78rem; color: var(--muted); margin-bottom: 0.85rem;
}
.sub-row {
  display: flex; justify-content: space-between; gap: 0.75rem; align-items: center;
  padding: 0.75rem 0; border-bottom: 1px solid var(--line);
}
.sub-row:last-child { border-bottom: 0; }
.sub-name { font-weight: 650; }
.sub-meta { color: var(--muted); font-size: 0.85rem; }
.amount { font-weight: 700; color: var(--ink); white-space: nowrap; }
.tag {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em;
  border-radius: 999px; padding: 0.2rem 0.5rem;
  background: #fef3c7; color: var(--warn);
}
.tag.ok { background: var(--brand-soft); color: var(--brand-dark); }

section { padding: 3rem 0; }
.section-title {
  font-size: clamp(1.55rem, 3vw, 2rem);
  letter-spacing: -0.03em; margin: 0 0 0.5rem;
}
.section-sub { color: var(--muted); margin: 0 0 1.75rem; max-width: 40rem; }

.steps {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.25rem 1.2rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}
.step-num {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--brand-soft); color: var(--brand-dark);
  display: grid; place-items: center; font-weight: 800; margin-bottom: 0.85rem;
}
.card h3 { margin: 0 0 0.45rem; font-size: 1.08rem; letter-spacing: -0.02em; }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.96rem; }

.why {
  display: grid; gap: 1.25rem; grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
.why-panel {
  background: linear-gradient(160deg, #0f766e, #0369a1);
  color: #ecfeff; border-radius: 22px; padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow);
}
.why-panel h2 { margin: 0 0 0.75rem; color: #fff; letter-spacing: -0.02em; }
.why-panel p { margin: 0 0 1rem; color: #ccfbf1; }
.why-list { margin: 0; padding-left: 1.1rem; color: #ecfeff; }
.why-list li { margin-bottom: 0.45rem; }
.checklist { display: grid; gap: 0.85rem; }
.check {
  display: flex; gap: 0.75rem; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 0.95rem 1rem;
}
.check strong { display: block; margin-bottom: 0.15rem; }
.check span { color: var(--muted); font-size: 0.92rem; }
.mark {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-dark);
  display: grid; place-items: center; font-size: 0.8rem; font-weight: 800;
}

.pricing {
  background: #fff; border: 1px solid var(--line);
  border-radius: 24px; padding: 1.75rem; box-shadow: var(--shadow);
  display: grid; gap: 1.5rem; grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
}
.price { font-size: 3rem; font-weight: 800; letter-spacing: -0.04em; margin: 0.2rem 0; }
.price small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.price-note { color: var(--muted); margin: 0 0 1rem; }
.price-box {
  background: #f0fdfa; border: 1px solid #99f6e4;
  border-radius: 18px; padding: 1.25rem; text-align: center;
}
.features { margin: 0; padding-left: 1.1rem; color: var(--ink-soft); }
.features li { margin-bottom: 0.35rem; }

.faq details {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 0.95rem 1.1rem; margin-bottom: 0.7rem;
}
.faq summary {
  cursor: pointer; font-weight: 650; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin: 0.65rem 0 0; color: var(--ink-soft); }

.footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem; color: var(--muted); font-size: 0.92rem;
}
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between; align-items: center;
}
.footer nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer a { color: var(--ink-soft); text-decoration: none; }
.footer a:hover { color: var(--brand-dark); }

.legal { padding: 2.5rem 0 3.5rem; }
.legal .card { max-width: 760px; }
.legal h1 { font-size: 2rem; margin-bottom: 0.4rem; }
.legal h2 { font-size: 1.15rem; margin-top: 1.5rem; margin-bottom: 0.4rem; }
.legal p, .legal li { color: var(--ink-soft); }
.muted { color: var(--muted); }

@media (max-width: 860px) {
  .hero-grid, .steps, .why, .pricing { grid-template-columns: 1fr; }
  .nav .hide-sm { display: none; }
  .hero { padding-top: 2rem; }
}

/* —— App / upload tool —— */
.app-main { padding: 2.25rem 0 3.5rem; }
.app-intro { max-width: 40rem; margin-bottom: 1.5rem; }
.app-intro h1 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 0.65rem; }
.app-intro .lede { margin-bottom: 0; }

.dropzone {
  border: 2px dashed #99f6e4;
  background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 70%);
  border-radius: 22px;
  padding: 2.4rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
  box-shadow: 0 4px 18px rgba(13, 148, 136, 0.06);
}
.dropzone:hover, .dropzone:focus-visible, .dropzone.is-drag {
  border-color: var(--brand);
  outline: none;
  box-shadow: 0 10px 28px rgba(13, 148, 136, 0.14);
}
.dropzone.is-locked {
  opacity: 0.55;
  cursor: not-allowed;
}
.dropzone-icon { font-size: 2rem; margin-bottom: 0.55rem; }
.dropzone-title { font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em; }
.dropzone-meta { color: var(--muted); font-size: 0.9rem; margin-top: 0.35rem; }

.status {
  min-height: 1.4rem;
  margin: 1rem 0 0.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.status-ok { color: var(--brand-dark); font-weight: 650; }
.status-error { color: #b91c1c; font-weight: 650; }
.status-warn { color: var(--warn); font-weight: 650; }
.status-info { color: var(--accent); }

.gate {
  margin: 1.25rem 0;
  border-color: #99f6e4;
  background: #f0fdfa;
}
.gate h2 { margin: 0 0 0.5rem; font-size: 1.25rem; }
.gate p { color: var(--ink-soft); }

.scan-summary {
  margin: 1rem 0 0.75rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.results { margin-bottom: 1.5rem; }
.table-wrap { padding: 0; overflow: auto; }
.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.results-table th,
.results-table td {
  text-align: left;
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.results-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: #f8fafc;
}
.results-table tr:last-child td { border-bottom: 0; }
.results-table .amount { font-weight: 750; white-space: nowrap; width: 6.5rem; }
.results-table .actions { width: 11rem; }
.empty-card { text-align: center; padding: 1.75rem 1.25rem; }
.empty-card h3 { margin: 0 0 0.5rem; }
.empty-card p { margin: 0; color: var(--ink-soft); }

.app-notes { margin-top: 0.5rem; }
.app-notes h3 { margin: 0 0 0.55rem; font-size: 1.02rem; }
.app-notes ul { margin: 0; padding-left: 1.15rem; color: var(--ink-soft); }
.app-notes li { margin-bottom: 0.35rem; }

.chip-ok { background: var(--brand-soft); color: var(--brand-dark); }
.chip-warn { background: #fef3c7; color: var(--warn); }

.topbar .chip {
  margin-bottom: 0;
  font-weight: 650;
}

@media (max-width: 640px) {
  .results-table .actions { width: auto; }
  .results-table th:nth-child(3),
  .results-table td.actions {
    display: table-cell;
  }
  .results-table td.actions .btn { width: 100%; }
}
