:root {
  color-scheme: light;
  --ink: #17251f;
  --muted: #6b7771;
  --line: #dce4df;
  --paper: #ffffff;
  --canvas: #f2f5f1;
  --accent: #19744c;
  --accent-dark: #105d3c;
  --accent-soft: #e7f3ec;
  --danger: #b53b32;
  --danger-soft: #fff0ee;
  --shadow: 0 24px 70px rgba(21, 46, 34, .12);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--canvas); color: var(--ink); }
button, input { font: inherit; }

.page-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(300px, .8fr) minmax(440px, 1.2fr);
  gap: clamp(40px, 8vw, 120px);
  align-items: center;
  max-width: 1220px;
  margin: 0 auto;
  padding: 56px 32px;
}

.eyebrow, .section-label { margin: 0 0 16px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .15em; }
h1 { margin: 0; max-width: 650px; font-size: clamp(42px, 6vw, 76px); line-height: .98; letter-spacing: -.055em; }
.lead { max-width: 580px; margin: 28px 0 42px; color: var(--muted); font-size: 18px; line-height: 1.65; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps div { border-top: 1px solid #bfcac4; padding-top: 14px; }
.steps span { color: var(--accent); font-size: 12px; font-weight: 800; }
.steps p { margin: 8px 0 0; font-size: 13px; }

.card { background: var(--paper); padding: clamp(24px, 4vw, 48px); border: 1px solid rgba(24, 66, 45, .08); border-radius: 28px; box-shadow: var(--shadow); }
.card-heading { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 26px; }
.card-heading h2 { margin: 0; font-size: 30px; letter-spacing: -.035em; }
.card-heading .section-label { margin-bottom: 7px; }
.secure-label { white-space: nowrap; padding: 7px 10px; border-radius: 100px; color: var(--accent); background: var(--accent-soft); font-size: 11px; font-weight: 700; }

.dropzone { min-height: 280px; border: 1.5px dashed #aebdb5; border-radius: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; cursor: pointer; transition: .2s ease; outline: none; }
.dropzone:hover, .dropzone:focus, .dropzone.dragging { border-color: var(--accent); background: #f6fbf8; transform: translateY(-2px); }
.upload-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 19px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 28px; }
.dropzone strong { font-size: 17px; }
.dropzone span:not(.upload-icon) { margin-top: 7px; color: var(--muted); font-size: 14px; }
.dropzone small { margin-top: 23px; color: #8c9791; }

.file-row { align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; }
.file-row:not([hidden]) { display: flex; }
.file-icon { display: grid; place-items: center; width: 46px; height: 52px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 900; }
.file-info { min-width: 0; display: flex; flex: 1; flex-direction: column; gap: 5px; }
.file-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-info span { color: var(--muted); font-size: 13px; }
.icon-button { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 28px; }

.notice { margin-top: 14px; padding: 12px 14px; border-radius: 11px; background: var(--danger-soft); color: var(--danger); font-size: 14px; }
.submit-button, .secondary-button { width: 100%; border: 0; border-radius: 13px; cursor: pointer; font-weight: 750; }
.submit-button { min-height: 54px; margin-top: 18px; background: var(--accent); color: #fff; transition: .2s ease; }
.submit-button:hover:not(:disabled) { background: var(--accent-dark); transform: translateY(-1px); }
.submit-button:disabled { cursor: not-allowed; opacity: .45; }
.spinner { display: none; width: 20px; height: 20px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: spin .75s linear infinite; }
.submit-button.loading .button-label { display: none; }
.submit-button.loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.result { grid-template-columns: 52px 1fr; gap: 18px; }
.result:not([hidden]) { display: grid; }
.result-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 24px; font-weight: 900; }
.result.error .result-icon { background: var(--danger-soft); color: var(--danger); }
.result h3 { margin: 3px 0 8px; font-size: 24px; }
.result p { margin: 0; color: var(--muted); line-height: 1.5; }
.result dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 22px 0 0; font-size: 14px; }
.result dt { color: var(--muted); }
.result dd { margin: 0; font-weight: 650; }
.result ul { margin: 18px 0 0; padding-left: 20px; color: var(--danger); }
.secondary-button { grid-column: 1 / -1; min-height: 48px; margin-top: 12px; background: var(--accent-soft); color: var(--accent-dark); }

@media (max-width: 850px) {
  .page-shell { grid-template-columns: 1fr; gap: 40px; padding: 38px 20px; }
  .intro { max-width: 650px; }
  .dropzone { min-height: 230px; }
}
@media (max-width: 480px) {
  .page-shell { padding: 26px 14px; }
  .steps { gap: 8px; }
  .steps p { font-size: 11px; }
  .card { border-radius: 20px; }
  .card-heading { flex-direction: column; }
}

