:root {
  --ink: #14211c;
  --muted: #617069;
  --line: #dce5e0;
  --paper: #ffffff;
  --wash: #f2f7f4;
  --green: #155f43;
  --green-dark: #0d4832;
  --lime: #b9ee8c;
  --danger: #b42318;
  --shadow: 0 24px 70px rgba(21, 62, 46, 0.12);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--wash);
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(185, 238, 140, 0.32), transparent 26rem),
    linear-gradient(135deg, #f7faf8 0%, #edf4f0 100%);
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: white;
  background: var(--green);
  font-weight: 900;
  font-size: 21px;
  letter-spacing: -0.08em;
}

.brand > span:last-child { display: grid; line-height: 1; gap: 5px; }
.brand strong { letter-spacing: 0.14em; font-size: 14px; }
.brand small { color: var(--muted); font-size: 12px; }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 650;
}

.status-badge i { width: 8px; height: 8px; border-radius: 50%; background: #2da56d; box-shadow: 0 0 0 4px rgba(45, 165, 109, 0.12); }

.page-shell,
.download-shell {
  width: min(1180px, calc(100% - 40px));
  margin: clamp(8px, 4vh, 34px) auto clamp(18px, 5vh, 48px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(520px, 1.08fr);
  gap: clamp(42px, 6vw, 72px);
  align-items: center;
}

.download-shell { grid-template-columns: minmax(0, 0.8fr) minmax(520px, 1.2fr); }

.eyebrow { margin: 0 0 18px; color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: 0.18em; }

.intro h1,
.download-intro h1 {
  margin: 0;
  font-size: clamp(54px, 6vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.055em;
  font-weight: 760;
}

.intro h1 span,
.download-intro h1 span { color: var(--green); }

.lede,
.download-intro > p:last-child {
  max-width: 550px;
  margin: 30px 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.trust-list { display: flex; flex-wrap: wrap; gap: 12px 20px; margin: 0; padding: 0; list-style: none; color: #3f5048; font-size: 14px; }
.trust-list span { color: var(--green); font-weight: 900; margin-right: 4px; }

.card {
  border: 1px solid rgba(217, 228, 222, 0.9);
  border-radius: 26px;
  padding: clamp(24px, 4vw, 42px);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.card-heading { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 25px; }
.card-heading h2 { margin: 1px 0 6px; font-size: 21px; letter-spacing: -0.025em; }
.card-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.step { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: white; background: var(--green); font-weight: 800; font-size: 14px; }
.success-step { background: #dff5d1; color: var(--green-dark); }

.drop-area {
  min-height: 174px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1.5px dashed #9eb7aa;
  border-radius: 18px;
  background: #f8fbf9;
  cursor: pointer;
  transition: border-color 160ms, background 160ms, transform 160ms;
}

.drop-area:hover, .drop-area.dragging { border-color: var(--green); background: #f0f8f3; transform: translateY(-1px); }
.drop-area:focus-within { outline: 3px solid rgba(21, 95, 67, 0.2); outline-offset: 2px; }
.drop-icon { width: 42px; height: 42px; margin-bottom: 12px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--green); font-size: 22px; font-weight: 300; }
.drop-area strong { font-size: 16px; }
.drop-area > span:last-of-type { margin-top: 5px; color: var(--muted); font-size: 13px; }
.drop-area input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

.file-summary { min-height: 18px; margin: 12px 0 17px; }
#file-total { display: block; color: var(--muted); font-size: 13px; }
.file-list { margin: 12px 0 0; padding: 0; display: grid; gap: 8px; list-style: none; }
.upload-card .file-list { display: none; }
.file-list li { min-width: 0; padding: 11px 13px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border: 1px solid var(--line); border-radius: 11px; background: #fbfdfc; }
.file-list li > span, .file-list li { min-width: 0; }
.file-list strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.file-list small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.remove-file { padding: 6px 8px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 11px; }
.remove-file:hover { color: var(--danger); }

.options-grid { display: grid; grid-template-columns: 0.78fr 1.22fr; gap: 12px; }
.options-grid > label:not(.check-option), .passcode-field { display: grid; gap: 8px; color: var(--ink); font-size: 12px; font-weight: 700; }
.input-suffix { height: 52px; display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: white; overflow: hidden; }
.input-suffix input { width: 100%; height: 100%; min-width: 0; padding: 0 4px 0 15px; border: 0; outline: 0; font-weight: 700; }
.input-suffix small { padding-right: 14px; color: var(--muted); font-weight: 500; }

.check-option { min-height: 78px; padding: 13px 14px; display: flex; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.check-option input { width: 19px; height: 19px; accent-color: var(--green); }
.check-option span { display: grid; gap: 4px; }
.check-option strong { font-size: 12px; }
.check-option small { color: var(--muted); font-size: 10px; }

.primary-button,
.secondary-button {
  width: 100%;
  min-height: 54px;
  margin-top: 18px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 13px;
  color: white;
  background: var(--green);
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: background 150ms, transform 150ms, box-shadow 150ms;
}

.primary-button span { font-size: 20px; font-weight: 400; }
.primary-button:hover:not(:disabled) { background: var(--green-dark); transform: translateY(-1px); box-shadow: 0 12px 24px rgba(21, 95, 67, 0.2); }
.primary-button:disabled { opacity: 0.48; cursor: not-allowed; }
.secondary-button { color: var(--green-dark); background: #eef6f1; }

.error-message { min-height: 18px; margin: 12px 0 0; color: var(--danger); font-size: 13px; line-height: 1.4; }

.progress-panel { padding: 25px 5px 5px; }
.progress-label { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 12px; font-size: 13px; }
.progress-label span { color: var(--muted); }
progress { width: 100%; height: 9px; border: 0; border-radius: 99px; overflow: hidden; background: #e8efeb; }
progress::-webkit-progress-bar { background: #e8efeb; border-radius: 99px; }
progress::-webkit-progress-value { background: var(--green); border-radius: 99px; }
progress::-moz-progress-bar { background: var(--green); border-radius: 99px; }
.progress-panel > p { margin: 12px 0 0; color: var(--muted); text-align: center; font-size: 12px; }

.result-panel { text-align: center; }
.success-icon { width: 58px; height: 58px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; color: var(--green-dark); background: #dff5d1; font-size: 26px; font-weight: 900; }
.result-panel h2 { margin: 0; font-size: 24px; letter-spacing: -0.03em; }
.result-panel > p { margin: 9px auto 25px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.result-field { margin-top: 14px; display: grid; gap: 7px; color: var(--muted); text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.copy-row { height: 52px; display: flex; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.copy-row input { min-width: 0; flex: 1; padding: 0 13px; border: 0; outline: 0; background: #f8fbf9; color: var(--ink); font-size: 12px; text-transform: none; letter-spacing: 0; }
.copy-row .passcode-output { color: var(--green-dark); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; font-weight: 800; }
.copy-row button { width: 72px; border: 0; border-left: 1px solid var(--line); color: var(--green); background: white; font-size: 12px; font-weight: 700; cursor: pointer; }
.copy-row button:hover { background: #f0f7f3; }
.important-note { margin-top: 20px; padding: 13px; display: flex; align-items: flex-start; gap: 12px; border-radius: 12px; color: #5d5426; background: #fff8d9; text-align: left; font-size: 11px; line-height: 1.45; }
.important-note strong { flex: none; }

.loading-panel { min-height: 280px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; color: var(--muted); }
.spinner { width: 36px; height: 36px; border: 3px solid #dce8e1; border-top-color: var(--green); border-radius: 50%; animation: spin 800ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.transfer-summary { margin: 0 0 22px; padding: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; border-radius: 13px; background: #f4f8f6; }
.transfer-summary span { display: grid; gap: 4px; }
.transfer-summary small { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; }
.transfer-summary strong { font-size: 12px; }
.passcode-field input { height: 56px; padding: 0 15px; border: 1px solid var(--line); border-radius: 12px; outline: none; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 16px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.passcode-field input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(21, 95, 67, 0.12); }
.download-list { max-height: none; }
.download-list li { display: block; }
.browser-note { margin: 16px 0 0; padding: 11px 13px; border-radius: 10px; color: var(--muted); background: #f4f8f6; font-size: 11px; line-height: 1.5; }

footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 30px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(97, 112, 105, 0.2);
  color: var(--muted);
  font-size: 11px;
}

[hidden] { display: none !important; }

@media (max-width: 900px) {
  .page-shell, .download-shell { margin-top: 10px; grid-template-columns: 1fr; gap: 20px; }
  .intro, .download-intro { text-align: center; }
  .lede, .download-intro > p:last-child { margin-left: auto; margin-right: auto; }
  .trust-list { justify-content: center; }
}

@media (max-width: 560px) {
  .site-header { width: min(100% - 24px, 1180px); padding: 12px 0; }
  .brand-mark { width: 36px; height: 36px; border-radius: 11px; font-size: 18px; }
  .status-badge { padding: 8px 10px; font-size: 0; }
  .status-badge i { margin: 0; }
  .page-shell, .download-shell { width: min(100% - 16px, 1180px); margin: 4px auto 10px; gap: 14px; }
  .eyebrow { margin-bottom: 8px; font-size: 10px; }
  .intro h1, .download-intro h1 { font-size: clamp(34px, 11vw, 45px); line-height: 0.98; }
  .lede, .download-intro > p:last-child, .trust-list { display: none; }
  .card { padding: 17px 14px; border-radius: 18px; }
  .card-heading { gap: 11px; margin-bottom: 13px; }
  .card-heading h2 { margin-bottom: 3px; font-size: 18px; }
  .card-heading p { font-size: 12px; }
  .step { width: 30px; height: 30px; }
  .drop-area { min-height: 112px; padding: 12px; }
  .drop-icon { width: 36px; height: 36px; margin-bottom: 7px; font-size: 18px; }
  .file-summary { margin: 8px 0 11px; }
  .options-grid { grid-template-columns: minmax(92px, .72fr) minmax(0, 1.28fr); gap: 7px; }
  .input-suffix { height: 57px; }
  .check-option { min-height: 73px; padding: 9px; gap: 7px; }
  .check-option strong { font-size: 10px; line-height: 1.2; }
  .check-option small { font-size: 9px; }
  .primary-button, .secondary-button { min-height: 49px; margin-top: 10px; }
  .error-message { min-height: 14px; margin-top: 6px; }
  .progress-label { display: grid; gap: 5px; }
  .transfer-summary { margin-bottom: 13px; padding: 11px; }
  .browser-note { margin-top: 9px; padding: 8px 10px; }
  footer { display: none; }
}

@media (min-width: 901px) and (max-height: 800px) {
  .site-header { padding: 13px 0; }
  .page-shell, .download-shell { margin: 0 auto 14px; }
  .intro h1, .download-intro h1 { font-size: clamp(48px, 5vw, 64px); }
  .lede, .download-intro > p:last-child { margin: 16px 0; font-size: 14px; line-height: 1.5; }
  .trust-list { display: none; }
  .card { padding: 22px 26px; }
  .card-heading { margin-bottom: 13px; }
  .drop-area { min-height: 110px; padding: 14px; }
  .file-summary { margin: 8px 0 11px; }
  .check-option { min-height: 64px; }
  .primary-button, .secondary-button { min-height: 47px; margin-top: 10px; }
  footer { display: none; }
}

@media (max-width: 900px) and (max-height: 700px) {
  .intro, .download-intro { display: none; }
  .page-shell, .download-shell { margin-top: 0; }
}
