/* ── Empty state ──────────────────────────────────────────────────────────
   One dominant element (the dropzone), a two-column support row under it, and
   a thin step rail. The old stack put four blocks of equal weight in a column,
   so nothing led. */

.empty-state {
  margin: auto;
  width: 100%;
  max-width: 660px;
  padding: 8px 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.empty-state[hidden] { display: none; }

/* ── Headline ───────────────────────────────────────────────────────────── */

.hero-intro { text-align: center; }

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -1.6px;
  line-height: 1.04;
  margin-bottom: 12px;
  text-wrap: balance;
}

.hero-sub {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 470px;
  margin: 0 auto;
  text-wrap: pretty;
}

/* ── Dropzone ───────────────────────────────────────────────────────────── */

.hero-dropzone {
  position: relative;
  overflow: hidden;
  border: 1.5px dashed #2E3547;
  border-radius: 22px;
  background: var(--bg-2);
  padding: 28px 32px 26px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: border-color .18s, background .18s;
}
.hero-dropzone::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 0%, rgba(124,131,255,.10), transparent 68%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s;
}
.hero-dropzone:hover,
.hero-dropzone:focus-visible {
  border-color: var(--accent);
  background: #171B26;
  outline: none;
}
.hero-dropzone:hover::before,
.hero-dropzone:focus-visible::before { opacity: 1; }

.hero-icon {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-2);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  transition: transform .18s, background .18s;
}
.hero-icon svg { width: 25px; height: 25px; }
.hero-icon::after {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: 24px;
  border: 1px solid rgba(124,131,255,.34);
  animation: hero-ring 2.8s ease-out infinite;
}
.hero-dropzone:hover .hero-icon { transform: translateY(-2px); background: rgba(124,131,255,.2); }

@keyframes hero-ring {
  0%       { transform: scale(.94); opacity: .75; }
  70%,100% { transform: scale(1.16); opacity: 0; }
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: var(--r-control);
  padding: 13px 24px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s, transform .1s;
}
.hero-btn svg { width: 16px; height: 16px; }
.hero-btn:hover:not(:disabled) { background: var(--accent-2); }
.hero-btn:active:not(:disabled) { transform: scale(.97); }
.hero-btn:disabled { opacity: .5; cursor: not-allowed; }

.hero-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .3px;
  color: var(--text-4);
}

.hero-error {
  margin: 2px auto 0;
  max-width: 400px;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--red);
  background: var(--red-soft);
  border: 1px solid var(--red-line);
}
.hero-error[hidden] { display: none; }

.hero-dropzone.shake { animation: hero-shake .32s ease-in-out; }
@keyframes hero-shake {
  0%,100%  { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

/* Dragover state — mirrors the full-window veil */
.hero-dropzone.dragover {
  border-color: var(--accent);
  background: rgba(124,131,255,.10);
}

/* ── Support row: the sample invoice and the privacy promise, side by side ─
   Both answer a doubt the dropzone raises, so they sit under it as equals
   rather than queueing up as two more full-width blocks. */

.hero-support {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.hero-sample {
  border: 1px solid var(--accent-line);
  border-radius: 16px;
  background: #171A26;
  padding: 17px 18px 16px;
}

.hero-sample-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent-2);
  border-radius: 999px;
  padding: 3px 9px;
  margin-bottom: 10px;
}

.hero-sample-title,
.hero-privacy-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.3px;
  margin-bottom: 6px;
}

.hero-sample-sub,
.hero-privacy-sub {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-3);
  margin-bottom: 13px;
}

.hero-sample-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border: 1px solid rgba(124,131,255,.45);
  border-radius: 10px;
  background: rgba(124,131,255,.10);
  color: var(--accent-2);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s, color .15s, transform .1s;
}
.hero-sample-btn svg { width: 14px; height: 14px; }
.hero-sample-btn:hover,
.hero-sample-btn:focus-visible {
  background: var(--accent);
  color: var(--bg);
  outline: none;
}
.hero-sample-btn:active { transform: scale(.97); }

/* Privacy is a promise, not a disclosure to fold away: it gets a card of its
   own instead of the <details> nobody opened. */
.hero-privacy {
  border: 1px solid var(--lime-line);
  border-radius: 16px;
  background: #171B1A;
  padding: 17px 18px 16px;
}
.hero-privacy-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
}
.hero-privacy-title svg { width: 14px; height: 14px; color: var(--lime); flex-shrink: 0; }

.hero-privacy-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  list-style: none;
}
.hero-privacy-tags li {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--lime);
  background: var(--lime-soft);
  border: 1px solid rgba(192,241,78,.22);
  border-radius: 6px;
  padding: 3px 7px;
}

/* ── The 3 steps ─────────────────────────────────────────────────────────
   Down to a thin rail: they explain the product, they don't sell it. */

.hero-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  padding-top: 2px;
}

.hero-step { display: flex; align-items: flex-start; gap: 10px; }

.hero-step-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(124,131,255,.26);
}

.hero-step-txt {
  display: flex;
  flex-direction: column;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--text-4);
}
.hero-step-txt strong {
  font-size: 12.5px;
  font-weight: 600;
  color: #C6CBDC;
}

/* ── Full-window drag veil ───────────────────────────────────────────────── */

.drag-veil {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(9,10,14,.86);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: none; /* let dragleave/drop resolve against the page below */
}
.drag-veil.active { display: flex; }

.drag-veil-card {
  border: 1.5px dashed var(--accent);
  border-radius: 24px;
  background: rgba(124,131,255,.07);
  padding: 46px 60px;
  text-align: center;
  color: var(--text);
  animation: veil-in .16s ease-out;
}
.drag-veil-card svg {
  width: 40px;
  height: 40px;
  color: var(--accent-2);
  margin-bottom: 14px;
}
.drag-veil-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.4px;
}
.drag-veil-card span {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-4);
}

@keyframes veil-in {
  from { transform: scale(.97); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

/* ── Short viewports ─────────────────────────────────────────────────────── */

@media (max-height: 820px) {
  .empty-state { gap: 13px; }
  .hero-title { font-size: 34px; letter-spacing: -1.2px; }
  .hero-sub { font-size: 13.5px; }
  .hero-dropzone { padding: 20px 28px 18px; gap: 13px; }
  .hero-icon { width: 48px; height: 48px; border-radius: 15px; }
  .hero-icon svg { width: 21px; height: 21px; }
  .hero-sample, .hero-privacy { padding: 14px 16px 13px; }
  .hero-sample-sub, .hero-privacy-sub { margin-bottom: 10px; }
}

@media (max-height: 700px) {
  .hero-eyebrow { display: none; }
  .hero-steps { display: none; }
  .hero-title { font-size: 30px; }
}

@media (max-width: 640px) {
  .hero-support { grid-template-columns: 1fr; }
  .hero-steps { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-icon::after { animation: none; }
  .drag-veil-card { animation: none; }
}
