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

:root {
  --bg: #080808;
  --surface: #111;
  --surface2: #161616;
  --border: #1e1e1e;
  --border2: #2a2a2a;
  --text: #f0f0f0;
  --muted: #888;
  --muted2: #3a3a3a;
  --accent: #ffffff;
  --accent-dim: rgba(255,255,255,0.05);
  --accent-border: rgba(255,255,255,0.15);
  --green: #ffffff;
  --green-dim: rgba(255,255,255,0.06);
  --green-border: rgba(255,255,255,0.2);
  --r: 12px;
}

html, body { height: 100%; background: var(--bg); color: var(--text); font-family: 'Inter', system-ui, sans-serif; font-size: 15px; -webkit-font-smoothing: antialiased; }

/* ── Nav ── */
.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 24px 24px 8px;
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}
.nav-logo { font-size: 28px; font-weight: 800; letter-spacing: 0.18em; color: #e8ff47; }
.nav-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: #1a1a1a;
  border: 1px solid var(--border2);
  border-radius: 4px;
  padding: 2px 7px;
  text-transform: uppercase;
}

/* ── Layout ── */
.page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; }
main { width: 100%; max-width: 760px; padding: 0 24px 80px; }

/* ── Views ── */
.view { display: none; }
.view.active { display: block; }

/* ── Hero ── */
.hero { padding: 4px 0 40px; max-width: 600px; }
.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 18px;
}
.hero-headline {
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 20px;
}
.hero-body {
  font-size: 17px;
  line-height: 1.7;
  color: #b0b0b0;
  max-width: 520px;
}

/* ── Proof strip ── */
.proof-strip {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  margin-bottom: 32px;
  overflow: hidden;
}
.proof-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px;
  gap: 4px;
}
.proof-num {
  font-size: 22px;
  font-weight: 800;
  color: #e8ff47;
  letter-spacing: -0.02em;
}
.proof-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.02em;
}
.proof-divider { width: 1px; background: var(--border); align-self: stretch; }

/* ── Tier grid ── */
.tier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
.tier {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}
.tier-standard {
  border-color: rgba(232,255,71,0.25);
  background: linear-gradient(180deg, rgba(232,255,71,0.04) 0%, var(--surface) 100%);
}
.tier-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: -4px;
}
.tier-badge-accent { color: #e8ff47; }
.tier-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.tier-price {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin-bottom: 4px;
}
.tier-free .tier-price { color: var(--text); }
.tier-features {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}
.tier-features li {
  font-size: 13px;
  line-height: 1.5;
  color: #b0b0b0;
  padding-left: 18px;
  position: relative;
}
.tier-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #888;
  font-weight: 700;
}
.tier-features li strong { color: var(--text); font-weight: 600; }
.btn-tier {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 12px 18px;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-tier-free {
  background: transparent;
  border: 1px solid var(--border2);
  color: var(--text);
}
.btn-tier-free:hover { border-color: #555; background: var(--surface2); }
.btn-tier-free:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-tier-paid {
  background: var(--accent);
  color: #0a0a0a;
}
.btn-tier-paid:hover { background: #d4eb2e; }

@media (max-width: 560px) {
  .tier-grid { grid-template-columns: 1fr; }
}

/* ── Pay card ── */
.pay-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px;
  margin-bottom: 48px;
}
.pay-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.pay-card-title { font-size: 15px; font-weight: 600; color: var(--text); }
.pay-card-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.how-it-works { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.hiw-step { display: flex; align-items: flex-start; gap: 14px; }
.hiw-num {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.hiw-text { font-size: 14px; color: #aaa; line-height: 1.55; }
.hiw-text strong { color: var(--text); font-weight: 600; }

/* ── Why section ── */
.why-section { margin-bottom: 48px; }
.why-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: #fff;
}
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 22px;
  transition: border-color 0.2s;
}
.why-card:hover { border-color: var(--border2); }
.why-icon { color: #555; margin-bottom: 12px; }
.why-card h3 { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.why-card p { font-size: 13px; color: #999; line-height: 1.6; }

/* ── FAQ ── */
.faq-section { margin-bottom: 48px; }
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface);
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-item summary {
  padding: 18px 22px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background 0.15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:hover { background: var(--surface2); }
.faq-answer {
  padding: 0 22px 20px;
  font-size: 14px;
  line-height: 1.65;
  color: #aaa;
}
.faq-answer a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.faq-answer strong { color: var(--text); }

/* ── Use cases ── */
.usecases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 48px;
}
.usecase {
  padding: 24px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
/* remove right border on last column (every 2nd) */
.usecase:nth-child(2n) { border-right: none; }
/* remove bottom border on last row */
.usecase:nth-last-child(-n+2) { border-bottom: none; }
.usecase-role {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e8ff47;
}
.usecase-desc { font-size: 13px; color: #999; line-height: 1.55; }

/* ── Buttons ── */
.btn-pay {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  background: var(--accent);
  color: #0a0a0a;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 14px 24px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  margin-bottom: 12px;
}
.btn-pay:hover { background: #d4eb2e; }
.btn-pay:active { transform: scale(0.99); }

.btn-extract {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; background: var(--accent); color: #0a0a0a;
  border: none; border-radius: 8px; font-size: 14px; font-weight: 700;
  padding: 13px 24px; cursor: pointer; transition: background 0.15s; margin-top: 20px;
}
.btn-extract:hover { background: #d4eb2e; }
.btn-extract:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-ghost {
  background: transparent; border: 1px solid var(--border2); border-radius: 8px;
  color: var(--muted); font-size: 13px; font-weight: 500; padding: 10px 20px;
  cursor: pointer; transition: border-color 0.15s, color 0.15s; display: block; margin: 0 auto;
}
.btn-ghost:hover { border-color: #444; color: var(--text); }

/* ── Pre-pay compatibility check ── */
.precheck {
  margin-bottom: 14px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.precheck-toggle summary {
  cursor: pointer;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.15s;
}
.precheck-toggle summary::-webkit-details-marker { display: none; }
.precheck-toggle summary:hover { color: var(--text); }
.precheck-caret { font-size: 14px; color: #555; }
.precheck-toggle[open] .precheck-caret { transform: rotate(180deg); display: inline-block; }
.precheck-body { padding: 0 16px 16px; }
.precheck-pick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s;
}
.precheck-pick:hover { border-color: var(--accent-border); }
#precheckInput { display: none; }
.precheck-result {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.55;
}
.precheck-result.ok { color: #7ec77a; }
.precheck-result.bad { color: #ff9090; }
.precheck-note {
  margin-top: 10px;
  font-size: 11px;
  line-height: 1.5;
  color: #666;
}

.secure-note {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; font-size: 12px; color: #888;
  margin-bottom: 48px;
}

/* ── Paid badge ── */
.paid-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--green);
  background: var(--green-dim); border: 1px solid var(--green-border);
  border-radius: 20px; padding: 5px 12px; margin-bottom: 16px;
}

/* ── Upload card ── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 24px; }
.card.center { text-align: center; padding: 56px 32px; }

.drop-zone {
  border: 1.5px dashed var(--border2); border-radius: 8px;
  padding: 48px 24px; text-align: center; cursor: pointer;
  position: relative; transition: border-color 0.2s, background 0.2s;
}
.drop-zone:hover, .drop-zone.drag-over { border-color: var(--accent); background: var(--accent-dim); }
.drop-icon { color: #333; margin-bottom: 14px; }
.drop-primary { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.drop-secondary { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.browse-link { color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.drop-formats { font-size: 11px; color: #333; letter-spacing: 0.06em; }
#fileInput { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }

.file-info { margin-top: 14px; padding: 12px 16px; background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; }
.file-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.file-name { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-size { font-size: 12px; color: var(--muted); flex-shrink: 0; }

.options { margin-top: 20px; }
.option-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.option-group label { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.fmt-btns { display: flex; gap: 6px; }
.fmt-btn {
  flex: 1; background: var(--surface2); border: 1px solid var(--border);
  border-radius: 6px; color: var(--muted); font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em; padding: 7px 0; cursor: pointer; transition: all 0.15s;
}
.fmt-btn:hover { border-color: var(--border2); color: var(--text); }
.fmt-btn.active { background: var(--accent-dim); border-color: var(--accent-border); color: var(--accent); }

input[type="range"] {
  -webkit-appearance: none; width: 100%; height: 3px;
  background: var(--border2); border-radius: 2px; outline: none; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent); cursor: pointer; box-shadow: 0 0 0 3px rgba(232,255,71,0.12);
}

/* ── Processing ── */
.proc-ring { margin: 0 auto 24px; width: 48px; }
.proc-label { font-size: 16px; font-weight: 500; margin-bottom: 16px; }
.prog-wrap { width: 100%; height: 2px; background: var(--border2); border-radius: 2px; overflow: hidden; margin-bottom: 10px; }
.prog-bar { height: 100%; background: var(--accent); width: 0%; transition: width 0.4s ease; border-radius: 2px; }
.proc-sub { font-size: 13px; color: var(--muted); }

/* ── Done ── */
.done-ring {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--green-dim); border: 1.5px solid var(--green-border);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; color: var(--green);
}
.done-title { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.done-sub { font-size: 14px; color: var(--muted); margin-bottom: 28px; }

/* ── Spinner ── */
.spinner { width: 15px; height: 15px; border: 2px solid rgba(0,0,0,0.2); border-top-color: #0a0a0a; border-radius: 50%; animation: spin 0.65s linear infinite; flex-shrink: 0; }
.spin { animation: spin 1.1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }

/* ── Footer ── */
footer { margin-top: auto; padding: 36px 24px; width: 100%; max-width: 760px; border-top: 1px solid var(--border); }
.footer-inner { display: flex; align-items: center; justify-content: center; gap: 18px; font-size: 15px; color: #b0b0b0; flex-wrap: wrap; }
.footer-logo { font-size: 13px; font-weight: 800; letter-spacing: 0.25em; color: #b0b0b0; }
footer a { color: #d0d0d0; text-decoration: none; }
footer a:hover { color: var(--text); }

/* ── Toast ── */
.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(72px);
  background: #1a0808; border: 1px solid #4a1515; color: #ff9090;
  border-radius: 8px; padding: 11px 18px; font-size: 13px;
  transition: transform 0.25s ease; z-index: 99; max-width: 460px;
  text-align: center; pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); }

@media (max-width: 560px) {
  .nav { padding: 20px; }
  main { padding: 0 16px 60px; }
  .hero { padding: 32px 0 28px; }
  .hero-headline { font-size: 34px; }
  .why-grid { grid-template-columns: 1fr; }
  .usecases { grid-template-columns: 1fr; }
  .usecase { border-right: none; border-bottom: 1px solid var(--border); }
  .usecase:nth-child(2n) { border-right: none; }
  .usecase:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
  .usecase:last-child { border-bottom: none; }
  .proof-strip { flex-direction: column; }
  .proof-divider { width: 100%; height: 1px; }
  .option-row { grid-template-columns: 1fr; }
}
