:root {
  color-scheme: light;
  --bg: #f6f7f2;
  --surface: #ffffff;
  --surface-alt: #eef7f4;
  --ink: #111827;
  --muted: #5f6c72;
  --border: #d8dedc;
  --border-strong: #aab8b4;
  --teal: #0f766e;
  --teal-dark: #0b5f59;
  --blue: #2563eb;
  --amber: #d97706;
  --coral: #dc4a3d;
  --green: #0f9f6e;
  --danger: #b42318;
  --shadow: 0 22px 60px rgba(17, 24, 39, 0.08);
  --radius: 8px;
  --small-radius: 6px;
  --shell: 1180px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.shell {
  width: min(var(--shell), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(216, 222, 220, 0.95);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  color: var(--muted);
}

.nav-links a,
.link-button {
  color: #1f3b64;
  font-weight: 600;
}

.link-button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.language-select select {
  min-width: 108px;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-weight: 600;
}

.page-shell {
  min-height: calc(100vh - 145px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  align-items: stretch;
  gap: 36px;
  padding: 68px 0 36px;
}

.hero-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 980px;
  margin: 0 0 18px;
  font-size: 3rem;
  line-height: 1.06;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.lead {
  margin: 0;
  color: #374151;
  font-size: 1.22rem;
  line-height: 1.55;
}

.lead.small {
  font-size: 1rem;
}

.quota-bar {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--small-radius);
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.05);
}

.quota-bar span {
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.quota-bar strong {
  font-size: 0.92rem;
}

.upload-panel {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.1), rgba(37, 99, 235, 0.08)),
    var(--surface);
  box-shadow: var(--shadow);
}

.drop-zone {
  display: flex;
  min-height: 390px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  border: 2px dashed rgba(15, 118, 110, 0.42);
  border-radius: var(--radius);
  background:
    linear-gradient(0deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.76)),
    repeating-linear-gradient(90deg, rgba(15, 118, 110, 0.05) 0 1px, transparent 1px 44px);
  color: var(--ink);
  cursor: pointer;
  text-align: center;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

.drop-zone:hover,
.drop-zone:focus-visible,
.drop-zone.is-dragging {
  border-color: var(--teal);
  outline: none;
  transform: translateY(-1px);
  background:
    linear-gradient(0deg, rgba(240, 253, 250, 0.86), rgba(240, 253, 250, 0.86)),
    repeating-linear-gradient(90deg, rgba(37, 99, 235, 0.07) 0 1px, transparent 1px 44px);
}

.drop-icon,
.feature-icon,
.file-icon {
  display: inline-grid;
  place-items: center;
  color: var(--teal);
  background: var(--surface-alt);
}

.drop-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
}

.drop-icon svg {
  width: 34px;
  height: 34px;
}

.drop-zone h2 {
  font-size: 2rem;
}

.drop-zone p,
.upload-meta,
.document-topline p,
.price-card p,
.feature-card p,
.table-note,
.form-footer,
.empty-state p {
  color: var(--muted);
}

.upload-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  padding: 14px 6px 2px;
  font-size: 0.9rem;
  font-weight: 700;
}

.upload-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.upload-meta svg {
  width: 18px;
  height: 18px;
  color: var(--amber);
}

.documents-block {
  padding: 34px 0 18px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.button-row.compact {
  gap: 8px;
}

.button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: var(--small-radius);
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
}

.button:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.button.primary {
  color: white;
  background: var(--teal);
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.2);
}

.button.primary:hover {
  background: var(--teal-dark);
}

.button.secondary {
  color: #0f3a5f;
  border-color: #b8c8d6;
  background: #eef6ff;
}

.button.ghost {
  color: var(--ink);
  border-color: var(--border);
  background: var(--surface);
}

.button.full-width {
  width: 100%;
}

.button svg,
.icon-button svg {
  width: 18px;
  height: 18px;
}

.empty-state {
  display: grid;
  min-height: 120px;
  place-items: center;
  gap: 8px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.64);
}

.empty-state svg {
  width: 26px;
  height: 26px;
  color: var(--teal);
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.document-card,
.price-card,
.feature-card,
.preview-panel,
.center-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.document-card {
  position: relative;
  padding: 16px;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.05);
}

.document-card.is-selected {
  border-color: var(--teal);
}

.document-topline {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding-right: 24px;
}

.file-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--small-radius);
}

.document-topline h3 {
  margin-bottom: 4px;
  padding-right: 4px;
}

.document-topline p {
  margin: 0;
  font-size: 0.9rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.status-queued,
.status-processing {
  color: #92400e;
  background: #fff7ed;
}

.status-ready {
  color: #065f46;
  background: #dcfce7;
}

.status-failed,
.status-password {
  color: #991b1b;
  background: #fee2e2;
}

.progress-wrap {
  height: 8px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

.progress-wrap span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--blue));
  transition: width 160ms ease;
}

.document-stats {
  display: flex;
  gap: 14px;
  margin: 16px 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.document-stats strong {
  color: var(--ink);
}

.remove-button {
  position: absolute;
  top: 10px;
  right: 10px;
}

.icon-button {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: var(--small-radius);
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.icon-button:hover {
  color: var(--danger);
  background: #fee2e2;
}

.inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 14px;
}

.inline-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.inline-form input,
.stacked-form input,
.stacked-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--small-radius);
  padding: 12px;
  background: #fff;
  color: var(--ink);
}

.inline-form input:focus,
.stacked-form input:focus,
.stacked-form textarea:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(15, 118, 110, 0.14);
}

.error-text {
  margin: 14px 0 0;
  color: var(--danger);
  font-weight: 700;
}

.preview-panel {
  margin-top: 18px;
  padding: 18px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--small-radius);
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: var(--surface);
}

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

th {
  color: #0f3a5f;
  background: #eef6ff;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.numeric {
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.negative {
  color: var(--coral);
}

.positive {
  color: var(--green);
}

.table-note {
  margin: 10px 0 0;
  font-size: 0.88rem;
}

.feature-band {
  margin: 42px 0;
  padding: 38px 0;
  background: #ffffff;
  border-block: 1px solid var(--border);
}

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

.feature-card {
  padding: 22px;
  text-align: center;
}

.feature-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 14px;
  border-radius: var(--small-radius);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

.feature-card h3 {
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.feature-card p {
  margin: 0;
  line-height: 1.55;
}

.pricing-section {
  padding: 18px 0 34px;
}

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

.price-card {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  padding: 20px;
}

.price-card.highlighted {
  border-color: var(--blue);
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.11);
}

.price-card h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.price-card p {
  margin: 0 0 18px;
  line-height: 1.5;
}

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

.price-card li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #374151;
}

.price-card li svg {
  width: 18px;
  height: 18px;
  color: var(--green);
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 16px;
}

.price-row:has(strong) {
  justify-content: space-between;
}

.price-row strong,
.big-price {
  color: var(--ink);
  font-size: 1.7rem;
  line-height: 1;
}

.need-more {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  margin-bottom: 48px;
  padding: 28px;
  border-radius: var(--radius);
  background: #eaf2ff;
}

.need-more h2 {
  margin-bottom: 8px;
}

.need-more p {
  margin: 0;
  color: #334155;
}

.center-panel {
  width: min(680px, calc(100% - 40px));
  margin: 48px auto;
  padding: 30px;
  box-shadow: var(--shadow);
}

.center-panel h1 {
  margin-bottom: 14px;
  font-size: 2rem;
}

.center-panel h2 {
  margin: 28px 0 10px;
  font-size: 1.2rem;
}

.center-panel p {
  color: #374151;
  line-height: 1.62;
}

.stacked-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.stacked-form label {
  display: grid;
  gap: 7px;
  color: #374151;
  font-weight: 800;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.checkbox-row {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px !important;
  font-size: 0.9rem;
  font-weight: 600 !important;
}

.checkbox-row input {
  width: auto;
  margin-top: 3px;
}

.form-footer {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  text-align: center;
}

.settings-section {
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.api-key {
  overflow-x: auto;
  padding: 12px;
  border-radius: var(--small-radius);
  background: #f3f4f6;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.api-section {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

pre {
  overflow-x: auto;
  margin: 12px 0 18px;
  padding: 16px;
  border-radius: var(--small-radius);
  color: #dbeafe;
  background: #111827;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
}

.page-heading {
  padding: 52px 0 12px;
}

.page-heading h1 {
  font-size: 2.3rem;
}

.subscribe-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  padding-bottom: 52px;
}

.subscribe-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 10px auto 26px;
}

.subscribe-controls h2 {
  color: var(--teal);
  font-size: 1.05rem;
}

.billing-toggle {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--small-radius);
  background: var(--surface);
}

.billing-toggle a {
  min-width: 132px;
  padding: 10px 14px;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.billing-toggle a + a {
  border-left: 1px solid var(--border);
}

.billing-toggle a.active {
  color: var(--blue);
  background: #eef6ff;
}

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

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-inner {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  max-width: min(420px, calc(100vw - 44px));
  padding: 14px 16px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: var(--small-radius);
  color: #064e3b;
  background: #ecfdf5;
  box-shadow: var(--shadow);
  font-weight: 800;
}

.toast.error {
  color: #7f1d1d;
  border-color: rgba(180, 35, 24, 0.22);
  background: #fef2f2;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding-top: 42px;
  }

  h1 {
    font-size: 2.25rem;
  }

  .drop-zone {
    min-height: 320px;
  }

  .feature-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .need-more {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .shell,
  .center-panel {
    width: min(100% - 24px, var(--shell));
  }

  .brand span {
    font-size: 0.9rem;
  }

  .nav-links {
    font-size: 0.92rem;
  }

  h1 {
    font-size: 1.9rem;
  }

  .lead {
    font-size: 1.04rem;
  }

  .section-heading,
  .footer-inner,
  .subscribe-controls {
    align-items: flex-start;
    flex-direction: column;
  }

  .billing-toggle {
    width: 100%;
  }

  .billing-toggle a {
    flex: 1;
    min-width: 0;
  }

  .drop-zone h2 {
    font-size: 1.45rem;
  }

  .inline-form,
  .two-column {
    grid-template-columns: 1fr;
  }

  .document-topline {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .status-pill {
    grid-column: 1 / -1;
    width: fit-content;
  }

  .center-panel {
    padding: 22px;
  }
}
