:root {
  color-scheme: light;
  --bg: #f5f7f9;
  --surface: #ffffff;
  --surface-soft: #f9fbfa;
  --text: #17211c;
  --muted: #66736c;
  --line: #dfe6e2;
  --line-strong: #cbd6d0;
  --green: #176b48;
  --green-dark: #105238;
  --green-soft: #eaf6ef;
  --green-mid: #b9dfc9;
  --red: #b42318;
  --red-soft: #fff1f0;
  --amber: #9a6700;
  --amber-soft: #fff8e6;
  --shadow: 0 18px 55px rgba(30, 53, 42, 0.08);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { background: var(--bg); }

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 0%, rgba(23, 107, 72, 0.07), transparent 34rem),
    var(--bg);
  min-height: 100vh;
}

button, input { font: inherit; }
button { color: inherit; }
svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.page-shell { width: min(1020px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: white;
  background: var(--green);
}

.header-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid var(--green-mid);
  border-radius: 999px;
  color: var(--green-dark);
  background: rgba(255,255,255,0.72);
  font-size: 12px;
  font-weight: 700;
}

.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #2f9e68; box-shadow: 0 0 0 4px rgba(47, 158, 104, 0.12); }

main { padding: 54px 0 70px; }

.hero { max-width: 790px; margin: 0 auto 32px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; color: var(--green); font-size: 13px; font-weight: 750; letter-spacing: 0.01em; }
.eyebrow svg { width: 17px; height: 17px; }
.hero h1 { margin: 14px 0 16px; font-size: clamp(36px, 6vw, 58px); line-height: 1.02; letter-spacing: -0.055em; font-weight: 780; }
.hero-copy { max-width: 680px; margin: 0 auto; color: var(--muted); font-size: clamp(16px, 2vw, 19px); line-height: 1.6; }

.privacy-banner {
  max-width: 820px;
  margin: 0 auto 18px;
  padding: 15px 17px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--green-mid);
  border-radius: var(--radius-md);
  background: var(--green-soft);
}
.privacy-icon { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; color: var(--green); background: white; border-radius: 10px; }
.privacy-banner strong { display: block; color: var(--green-dark); font-size: 14px; margin: 1px 0 3px; }
.privacy-banner p { margin: 0; color: #456655; font-size: 13px; line-height: 1.5; }

.app-card {
  max-width: 820px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.step { padding: 30px; }
.step-heading { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 20px; }
.step-number { flex: 0 0 30px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--green); font-size: 13px; font-weight: 800; }
.step-heading h2 { margin: 2px 0 3px; font-size: 17px; letter-spacing: -0.02em; }
.step-heading p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.divider { height: 1px; background: var(--line); }

.drop-zone {
  width: 100%;
  min-height: 188px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 25px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-md);
  background: #fbfcfc;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}
.drop-zone:hover, .drop-zone:focus-visible, .drop-zone.is-dragging { border-color: var(--green); background: var(--green-soft); outline: none; }
.drop-zone.is-dragging { transform: scale(0.995); }
.drop-icon { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 4px; border-radius: 13px; color: var(--green); background: var(--green-soft); }
.drop-icon svg { width: 23px; height: 23px; }
.drop-title { font-size: 15px; font-weight: 750; }
.drop-subtitle { color: var(--muted); font-size: 13px; }

.file-card { min-height: 82px; display: flex; align-items: center; gap: 13px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-soft); }
.file-icon { flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 11px; color: var(--red); background: var(--red-soft); }
.file-icon svg { width: 22px; height: 22px; }
.file-details { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.file-details strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.file-details span { color: var(--muted); font-size: 12px; }
.icon-button { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border: 0; border-radius: 9px; background: transparent; cursor: pointer; color: var(--muted); }
.icon-button:hover, .icon-button:focus-visible { background: #edf1ef; color: var(--text); outline: none; }

.inline-warning { margin: 10px 0 0; padding: 9px 11px; border-radius: 9px; background: var(--amber-soft); color: var(--amber); font-size: 12px; line-height: 1.45; }

.form-grid { padding-left: 43px; }
.field { display: block; }
.field > span:first-child { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 700; }
.input-wrap { position: relative; display: block; }
.input-wrap input { width: 100%; height: 46px; padding: 0 48px 0 13px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--text); background: white; outline: none; transition: border-color 140ms ease, box-shadow 140ms ease; }
.input-wrap input::placeholder { color: #96a19b; }
.input-wrap input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(23,107,72,0.1); }
.password-toggle { position: absolute; right: 6px; top: 5px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.password-toggle:hover, .password-toggle:focus-visible { color: var(--text); background: #f2f5f3; outline: none; }
.password-toggle .eye-closed { display: none; }
.password-toggle.is-visible .eye-open { display: none; }
.password-toggle.is-visible .eye-closed { display: block; }

.password-tools { margin: 10px 0 20px; }
.strength-row { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; }
.strength-row strong { color: var(--muted); font-weight: 750; }
.strength-track { height: 4px; margin-top: 7px; overflow: hidden; border-radius: 999px; background: #e7ece9; }
.strength-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--line-strong); transition: width 160ms ease, background 160ms ease; }
.strength-track span[data-score="0"] { width: 0; background: #cbd6d0; }
.strength-track span[data-score="1"] { width: 18%; background: #b42318; }
.strength-track span[data-score="2"] { width: 36%; background: #c86b18; }
.strength-track span[data-score="3"] { width: 56%; background: #b08a00; }
.strength-track span[data-score="4"] { width: 78%; background: #3f8b62; }
.strength-track span[data-score="5"] { width: 100%; background: #176b48; }
.strength-row strong[data-score="0"] { color: var(--muted); }
.strength-row strong[data-score="1"] { color: #b42318; }
.strength-row strong[data-score="2"] { color: #c86b18; }
.strength-row strong[data-score="3"] { color: #9a7200; }
.strength-row strong[data-score="4"] { color: #3f8b62; }
.strength-row strong[data-score="5"] { color: #176b48; }
.text-button { margin-top: 8px; padding: 0; border: 0; background: none; color: var(--green); font-size: 12px; font-weight: 700; cursor: pointer; }
.text-button:hover, .text-button:focus-visible { text-decoration: underline; outline: none; }
.field-message { min-height: 18px; margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.field-message.is-error { color: var(--red); }
.field-message.is-success { color: var(--green); }

.action-area { padding: 24px 30px 30px; }
.encryption-summary { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.summary-icon { flex: 0 0 36px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: var(--green); background: var(--green-soft); }
.encryption-summary div { display: flex; flex-direction: column; gap: 2px; }
.encryption-summary strong { font-size: 13px; }
.encryption-summary span { color: var(--muted); font-size: 12px; line-height: 1.4; }

.primary-button { width: 100%; min-height: 51px; display: grid; place-items: center; border: 0; border-radius: 11px; color: white; background: var(--green); cursor: pointer; font-weight: 760; box-shadow: 0 7px 18px rgba(23, 107, 72, 0.18); transition: background 140ms ease, transform 140ms ease, opacity 140ms ease; }
.primary-button:not(:disabled):hover { background: var(--green-dark); }
.primary-button:not(:disabled):active { transform: translateY(1px); }
.primary-button:focus-visible { outline: 3px solid rgba(23,107,72,0.22); outline-offset: 2px; }
.primary-button:disabled { opacity: 0.46; cursor: not-allowed; box-shadow: none; }
.button-label, .button-loading { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.button-label svg { width: 18px; height: 18px; }
.spinner { width: 17px; height: 17px; border: 2px solid rgba(255,255,255,0.35); border-top-color: white; border-radius: 50%; animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.status-message { margin-top: 12px; padding: 11px 13px; border-radius: 10px; font-size: 12px; line-height: 1.5; }
.status-message.success { color: var(--green-dark); background: var(--green-soft); border: 1px solid var(--green-mid); }
.status-message.error { color: var(--red); background: var(--red-soft); border: 1px solid #f5c7c2; }

.details-grid { max-width: 820px; margin: 18px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.details-grid article { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,255,255,0.7); }
.detail-icon { width: 32px; height: 32px; display: grid; place-items: center; margin-bottom: 12px; border-radius: 9px; color: var(--green); background: var(--green-soft); }
.details-grid h3 { margin: 0 0 5px; font-size: 13px; }
.details-grid p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }

.note { max-width: 820px; margin: 14px auto 0; padding: 13px 15px; color: #60582e; background: #fffced; border: 1px solid #ebe3ad; border-radius: 12px; font-size: 11.5px; line-height: 1.55; }

footer { min-height: 76px; padding: 22px 0; display: flex; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
footer span:first-child { color: var(--text); font-weight: 750; }

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

@media (max-width: 720px) {
  .page-shell { width: min(100% - 20px, 620px); }
  .site-header { min-height: 64px; }
  .header-pill { display: none; }
  main { padding: 36px 0 50px; }
  .hero { margin-bottom: 25px; }
  .hero h1 { font-size: clamp(34px, 10vw, 48px); }
  .hero-copy { font-size: 15px; }
  .step { padding: 23px 18px; }
  .form-grid { padding-left: 0; }
  .action-area { padding: 20px 18px 23px; }
  .details-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
