:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --obsidian: #0b1120;
  --obsidian-soft: #131c31;
  --text: #0f172a;
  --muted: #475569;
  --subtle: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --accent: #059669;
  --accent-bright: #10b981;
  --accent-light: #ecfdf5;
  --amber: #d97706;
  --amber-light: #fffbeb;
  --danger: #dc2626;
  --danger-light: #fef2f2;
  --blue: #2563eb;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 30px -8px rgba(15, 23, 42, 0.08), 0 4px 10px -4px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 24px 55px -12px rgba(15, 23, 42, 0.22);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

/* TOPBAR */
.topbar {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.12rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-mark {
  background: var(--obsidian);
  color: #34d399;
  padding: 4px 9px;
  border-radius: 7px;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  font-size: 0.8rem;
  font-weight: 700;
}

.brand-mark-sm {
  font-size: 0.72rem;
  padding: 3px 7px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  white-space: nowrap;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--text);
}

/* SPLIT HERO */
.hero-wrap {
  background:
    radial-gradient(60% 70% at 80% 10%, rgba(16, 185, 129, 0.10), transparent 65%),
    radial-gradient(50% 60% at 15% 20%, rgba(37, 99, 235, 0.06), transparent 65%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--border);
  padding: 56px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 44px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-light);
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.hero-copy h1 {
  font-size: clamp(2rem, 3.6vw, 2.95rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 18px;
  color: var(--obsidian);
}

.text-gradient {
  background: linear-gradient(135deg, #059669 0%, #0d9488 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  color: var(--muted);
  font-size: 1.04rem;
  margin: 0 0 24px;
  max-width: 560px;
}

.trust-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin-bottom: 26px;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.trust-item svg {
  color: var(--accent);
  flex-shrink: 0;
}

.bank-strip {
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.bank-strip-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--subtle);
  margin-bottom: 10px;
}

.bank-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bank-chips span {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
}

/* UPLOAD CARD */
.upload-shell {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.16), rgba(15, 23, 42, 0.08));
  padding: 1.5px;
  border-radius: 22px;
  box-shadow: var(--shadow-md);
}

.upload-card {
  background: var(--surface);
  border: 2px dashed #cbd5e1;
  border-radius: 20px;
  padding: 32px 26px;
  text-align: center;
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}

.upload-card.dragover {
  border-color: var(--accent-bright);
  background: var(--accent-light);
  transform: scale(1.01);
}

.upload-badge-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 14px;
  background: var(--obsidian);
  color: #34d399;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
}

.upload-card h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 20px;
}

.upload-actions {
  display: grid;
  gap: 10px;
}

.local-mode-pill {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-light);
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 0.78rem;
  cursor: pointer;
}

.local-mode-pill input {
  accent-color: var(--accent);
  cursor: pointer;
}

.sample-downloads {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--subtle);
}

.sample-downloads a {
  background: #f1f5f9;
  color: var(--text);
  padding: 3px 9px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.sample-downloads a:hover {
  background: #e2e8f0;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.93rem;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  font-family: inherit;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--obsidian);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(11, 17, 32, 0.18);
}

.btn-primary:hover {
  background: #1e293b;
}

.btn-emerald {
  background: var(--accent-bright);
  color: #022c22;
  font-weight: 700;
}

.btn-emerald:hover {
  background: #34d399;
}

.btn-emerald-soft {
  background: var(--accent-light);
  color: #065f46;
  border-color: #a7f3d0;
}

.btn-emerald-soft:hover {
  background: #d1fae5;
}

.btn-outline {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.btn-dark-outline {
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.18);
}

.btn-dark-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-nav {
  background: var(--obsidian);
  color: #ffffff;
  padding: 8px 14px;
  font-size: 0.85rem;
  border-radius: 9px;
}

.btn-nav.pill-green {
  background: var(--accent-light);
  color: #065f46;
  border-color: #a7f3d0;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.84rem;
}

.full-width {
  width: 100%;
}

.status-msg {
  margin-top: 14px;
  font-weight: 600;
  font-size: 0.88rem;
}

.hidden {
  display: none !important;
}

/* RESULTS DASHBOARD */
.results-section {
  margin-top: 36px;
}

.audit-banner {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  font-weight: 600;
  font-size: 0.94rem;
}

.audit-exact {
  background: var(--accent-light);
  border: 1px solid #6ee7b7;
  color: #065f46;
}

.audit-warn {
  background: var(--danger-light);
  border: 1px solid #fca5a5;
  color: #991b1b;
}

.export-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.privacy-title {
  font-size: 0.92rem;
}

.export-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--obsidian);
}

.kpi-card-green {
  border-top-color: var(--accent-bright);
}

.kpi-card-amber {
  border-top-color: var(--amber);
}

.kpi-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--subtle);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kpi-value {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 1.7rem;
  font-weight: 700;
  margin: 8px 0 4px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.kpi-green {
  color: var(--accent);
}

.kpi-amber {
  color: var(--amber);
}

.kpi-danger {
  color: var(--danger);
}

.kpi-sub {
  font-size: 0.82rem;
  color: var(--muted);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.panel-header h2 {
  margin: 0 0 16px;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.panel-header-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-header-flex h2 {
  margin: 0;
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.filter-controls input[type="search"] {
  padding: 9px 13px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  min-width: 240px;
  font-size: 0.88rem;
  font-family: inherit;
}

.checkbox-label {
  font-size: 0.86rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.alerts-list {
  display: grid;
  gap: 10px;
}

.alert-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--amber-light);
  border: 1px solid #fde68a;
}

.alert-row.high {
  background: var(--danger-light);
  border-color: #fecaca;
}

.alert-impact {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 700;
  white-space: nowrap;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

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

th {
  font-size: 0.74rem;
  text-transform: uppercase;
  color: var(--subtle);
  letter-spacing: 0.05em;
  font-weight: 700;
}

tbody tr:hover {
  background: #f8fafc;
}

.right {
  text-align: right;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}

.mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.8rem;
  color: var(--subtle);
}

.pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid var(--border);
  background: var(--surface);
}

.pill-green {
  background: var(--accent-light);
  border-color: #a7f3d0;
  color: #065f46;
}

.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}

.badge-hike {
  background: var(--danger-light);
  color: var(--danger);
}

.badge-sub {
  background: #eff6ff;
  color: var(--blue);
}

.cancel-link {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}

.cancel-link:hover {
  text-decoration: underline;
}

.rec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 14px;
}

.rec-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  background: #f8fafc;
}

.rec-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 0.92rem;
}

.rec-eq {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  background: var(--surface);
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin: 10px 0;
  color: var(--obsidian);
}

/* HOW IT WORKS & PRICING SECTIONS */
.info-section, .pricing-section {
  padding: 64px 0 24px;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 36px;
}

.section-kicker {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
}

.section-head h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  letter-spacing: -0.025em;
  margin: 0 0 10px;
  color: var(--obsidian);
}

.section-sub {
  color: var(--muted);
  margin: 0;
  font-size: 1rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}

.feature-num {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-light);
  display: inline-block;
  padding: 4px 9px;
  border-radius: 7px;
  margin-bottom: 14px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

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

.feature-card code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.82em;
  background: #f1f5f9;
  padding: 2px 5px;
  border-radius: 4px;
}

/* PRICING */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 22px;
  max-width: 820px;
  margin: 0 auto;
  align-items: stretch;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px;
  position: relative;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.price-card-dark {
  background: linear-gradient(165deg, #0f172a 0%, #090d16 100%);
  color: #f8fafc;
  border: 1px solid #1e293b;
  box-shadow: var(--shadow-lg);
}

.price-tier {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--subtle);
}

.price-card-dark .price-tier {
  color: #34d399;
}

.badge-popular {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--accent-bright);
  color: #022c22;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.price {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 10px 0 6px;
}

.price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--subtle);
}

.price-card-dark .price span {
  color: #94a3b8;
}

.price-desc {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 22px;
}

.price-card-dark .price-desc {
  color: #cbd5e1;
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  flex-grow: 1;
}

.price-card li {
  margin-bottom: 11px;
  font-size: 0.93rem;
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.check {
  color: var(--accent);
  font-weight: 800;
}

.check-bright {
  color: #34d399;
}

/* PRO ACTIVE & BANNERS */
.success-banner {
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 0.92rem;
}

.pro-active-box {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #d1fae5;
  border-radius: 12px;
  padding: 16px;
  font-size: 0.9rem;
  line-height: 1.55;
}

.pro-upsell-inline {
  font-size: 0.84rem;
  color: var(--amber);
  margin-top: 4px;
  font-weight: 600;
}

.locked-footer {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--amber-light);
  border: 1px solid #fde68a;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
}

/* MODAL */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 13, 22, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 100;
}

.modal-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 28px;
  width: 100%;
  max-width: 470px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.modal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.modal-top h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.close-btn {
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  color: var(--muted);
}

.close-btn:hover {
  background: #e2e8f0;
  color: var(--text);
}

.plan-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.plan-pill {
  background: #f8fafc;
  border: 2px solid var(--border);
  border-radius: 11px;
  padding: 11px 12px;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  font-family: inherit;
}

.plan-pill span {
  font-size: 0.78rem;
  color: var(--muted);
}

.plan-pill.active {
  border-color: var(--accent-bright);
  background: var(--accent-light);
}

.input-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.modal-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font-size: 0.95rem;
  margin-bottom: 14px;
  font-family: inherit;
}

.modal-input:focus {
  outline: none;
  border-color: var(--obsidian);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.checkout-buttons {
  display: grid;
  gap: 10px;
}

.restore-box {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.link-btn {
  background: none;
  border: none;
  color: var(--blue);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

/* FOOTER */
.footer {
  margin-top: 64px;
  padding: 32px 0 38px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a, .footer-seo-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover, .footer-seo-links a:hover {
  color: var(--text);
  text-decoration: underline;
}

.footer-seo-links {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 0.8rem;
  color: var(--subtle);
}

/* RESPONSIVE */
@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .nav-hide-sm {
    display: none;
  }
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  .hero-wrap {
    padding: 34px 0 42px;
  }
}
