:root {
  --ink: #111714;
  --muted: #69716d;
  --line: rgba(17,23,20,.11);
  --green: #2f6f57;
  --green-dark: #1d4939;
  --lime: #cbe87c;
  --red: #c74b45;
  --card: rgba(255,255,255,.88);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background: linear-gradient(180deg, #fbfaf7 0%, #f3f5f0 100%);
  font-family: "DM Sans", system-ui, sans-serif;
}

button, input { font: inherit; }

.glow {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.glow-one {
  width: 430px; height: 430px; right: -90px; top: -130px;
  background: rgba(203,232,124,.38);
}
.glow-two {
  width: 360px; height: 360px; left: -150px; bottom: -140px;
  background: rgba(47,111,87,.16);
}

.site-header, .hero, .reassurance, .site-footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -.03em;
}

.brand-mark {
  width: 34px; height: 34px; padding: 7px;
  display: grid; grid-template-columns: repeat(2,1fr); gap: 3px;
  border-radius: 11px;
  background: var(--ink);
  box-shadow: 0 10px 25px rgba(17,23,20,.18);
}
.brand-mark span { border-radius: 3px; background: white; }
.brand-mark span:nth-child(3) { grid-column: 1 / span 2; }

.privacy-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.58);
  font-size: 13px;
  font-weight: 600;
}
.privacy-pill svg {
  width: 16px; height: 16px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

.hero {
  min-height: calc(100vh - 150px);
  display: grid;
  grid-template-columns: 1.03fr .97fr;
  align-items: center;
  gap: 76px;
  padding: 36px 0 70px;
}

.hero-copy { position: relative; z-index: 2; }
.eyebrow {
  margin-bottom: 22px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
}

h1 {
  margin: 0;
  max-width: 650px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(62px,8.4vw,112px);
  line-height: .92;
  letter-spacing: -.065em;
}
h1 span { color: var(--green); }

.subhead {
  max-width: 560px;
  margin: 28px 0;
  color: var(--muted);
  font-size: clamp(17px,2vw,20px);
  line-height: 1.65;
}

.drop-zone {
  width: fit-content;
  display: flex;
  align-items: center;
  border-radius: 18px;
  outline: 2px dashed transparent;
  outline-offset: 10px;
  transition: .2s ease;
}
.drop-zone.dragging {
  outline-color: var(--green);
  transform: scale(1.02);
}

.upload-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  border-radius: 14px;
  color: white;
  background: var(--ink);
  box-shadow: 0 14px 30px rgba(17,23,20,.2);
  font-weight: 700;
  cursor: pointer;
  transition: .2s ease;
}
.upload-button:hover {
  transform: translateY(-2px);
  background: var(--green-dark);
  box-shadow: 0 18px 36px rgba(17,23,20,.24);
}
.upload-button svg {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor; stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round;
}
.drop-hint {
  margin-left: 14px;
  color: var(--muted);
  font-size: 13px;
}

.trust-row {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--muted);
  font-size: 13px;
}
.trust-row i {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(17,23,20,.28);
}

.working-card, .result-card, .error-card {
  width: min(620px,100%);
  margin-top: 22px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 18px 45px rgba(25,51,41,.08);
  backdrop-filter: blur(16px);
}

.working-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
}
.file-icon, .success-icon {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: white;
  font-weight: 900;
}
.file-icon { background: #df4e49; font-size: 12px; }
.success-icon { background: var(--green); font-size: 23px; }

.working-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.working-topline strong, .working-topline span { display: block; }
.working-topline span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}
#progressPercent {
  color: var(--green);
  font-weight: 800;
  white-space: nowrap;
}

.progress-track {
  height: 10px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(17,23,20,.09);
}
.progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg,var(--green),var(--lime));
  transition: width .15s ease;
}
.progress-text {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.icon-button {
  width: 38px; height: 38px;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: rgba(17,23,20,.06);
  font-size: 22px;
  cursor: pointer;
}

.result-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
}
.result-card strong, .result-card span { display: block; }
.result-card span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}
.download-button, .error-card button {
  min-width: 112px;
  padding: 12px 16px;
  border: 0;
  border-radius: 12px;
  color: white;
  background: var(--green);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.another-button {
  grid-column: 2 / -1;
  justify-self: start;
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}

.error-card {
  display: grid;
  grid-template-columns: 1fr auto;
  border-color: rgba(199,75,69,.25);
}
.error-card strong, .error-card span { grid-column: 1; display: block; }
.error-card span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}
.error-card button {
  grid-column: 2;
  grid-row: 1 / span 2;
  background: var(--red);
}

.hero-visual {
  position: relative;
  min-height: 570px;
  display: grid;
  place-items: center;
}
.orbit { position: absolute; border-radius: 50%; }
.orbit-one {
  width: 420px; height: 420px;
  background: radial-gradient(circle at 30% 30%,#94c59e 0%,#2f6f57 42%,#173c31 100%);
  box-shadow: 0 48px 100px rgba(31,73,58,.28);
}
.orbit-two {
  width: 260px; height: 260px;
  transform: translate(142px,-145px);
  background: radial-gradient(circle at 35% 30%,#eff7c5 0%,#cbe87c 52%,#95bb48 100%);
  opacity: .92;
  box-shadow: 0 30px 80px rgba(149,187,72,.25);
}
.document-card {
  position: absolute;
  width: 245px; height: 330px;
  padding: 25px;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 26px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 24px 80px rgba(25,51,41,.12);
}
.card-back { transform: translate(-105px,44px) rotate(-12deg); opacity: .72; }
.card-front { transform: translate(88px,-15px) rotate(8deg); }
.hero-visual.processing .card-back { animation: pulseBack 1.5s ease-in-out infinite; }
.hero-visual.processing .card-front { animation: pulseFront 1.5s ease-in-out infinite; }

@keyframes pulseBack {
  0%,100% { transform: translate(-105px,44px) rotate(-12deg) scale(1); }
  50% { transform: translate(-105px,44px) rotate(-12deg) scale(.97); }
}
@keyframes pulseFront {
  0%,100% { transform: translate(88px,-15px) rotate(8deg) scale(1); }
  50% { transform: translate(88px,-15px) rotate(8deg) scale(1.03); }
}

.doc-top { display: flex; justify-content: space-between; align-items: center; }
.doc-badge {
  padding: 7px 10px;
  border-radius: 9px;
  color: white;
  background: #df4e49;
  font-size: 11px;
  font-weight: 900;
}
.doc-size { color: var(--muted); font-size: 11px; font-weight: 700; }
.doc-title, .doc-line {
  height: 11px;
  border-radius: 999px;
  background: #dfe6e2;
}
.doc-title { width: 72%; margin-top: 30px; background: #bdc9c3; }
.doc-line { margin-top: 14px; }
.doc-line.short { width: 60%; }
.doc-image {
  height: 120px;
  margin-top: 24px;
  border-radius: 14px;
  background: linear-gradient(135deg,rgba(47,111,87,.88),rgba(203,232,124,.65));
}
.doc-image.compressed { height: 92px; }
.compression-badge {
  position: absolute;
  right: 20px;
  bottom: 20px;
  padding: 8px 10px;
  border-radius: 999px;
  color: #163324;
  background: var(--lime);
  font-size: 11px;
  font-weight: 800;
}
.arrow-bubble {
  position: absolute;
  z-index: 4;
  width: 76px; height: 76px;
  display: grid;
  place-items: center;
  transform: translate(4px,188px);
  border-radius: 50%;
  color: white;
  background: var(--ink);
  box-shadow: 0 20px 42px rgba(17,23,20,.24);
  font-size: 34px;
  font-weight: 900;
}

.reassurance {
  margin-top: 12px;
  padding: 30px 0 55px;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  border-top: 1px solid var(--line);
}
.reassurance article {
  padding: 20px 32px;
  border-right: 1px solid var(--line);
}
.reassurance article:first-child { padding-left: 0; }
.reassurance article:last-child { border-right: 0; }
.reassurance strong, .reassurance span { display: block; }
.reassurance strong { font-family: "Manrope"; font-size: 15px; }
.reassurance span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.site-footer {
  min-height: 78px;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.site-footer nav { display: flex; gap: 18px; }
.site-footer button {
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.info-dialog {
  width: min(620px,calc(100% - 30px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  color: var(--ink);
  background: #fbfaf7;
  box-shadow: 0 35px 100px rgba(17,23,20,.25);
}
.info-dialog::backdrop {
  background: rgba(17,23,20,.48);
  backdrop-filter: blur(6px);
}
.dialog-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 38px; height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(17,23,20,.07);
  font-size: 22px;
  cursor: pointer;
}
.legal-copy { padding: 46px; }
.modal-eyebrow {
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .17em;
}
.legal-copy h2 {
  margin: 10px 0 20px;
  font-family: "Manrope";
  font-size: 38px;
  letter-spacing: -.045em;
}
.legal-copy p { color: var(--muted); line-height: 1.65; }
.legal-copy a { color: var(--green); font-weight: 700; }

.hidden { display: none !important; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 20px; padding-top: 15px; }
  .hero-copy { text-align: center; }
  .drop-zone, .working-card, .result-card, .error-card { margin-inline: auto; }
  .trust-row { justify-content: center; }
  .hero-visual { min-height: 470px; order: -1; }
}

@media (max-width: 650px) {
  .reassurance { grid-template-columns: 1fr; }
  .reassurance article, .reassurance article:first-child {
    padding: 18px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .reassurance article:last-child { border-bottom: 0; }
}

@media (max-width: 560px) {
  .site-header, .hero, .reassurance, .site-footer {
    width: min(100% - 28px,1180px);
  }
  .privacy-pill { display: none; }
  h1 { font-size: clamp(54px,17vw,78px); }
  .drop-zone { display: block; }
  .drop-hint { display: block; margin: 11px 0 0; }
  .hero-visual { min-height: 380px; }
  .orbit-one { width: 280px; height: 280px; }
  .orbit-two { width: 160px; height: 160px; transform: translate(90px,-95px); }
  .document-card { width: 175px; height: 235px; padding: 18px; border-radius: 20px; }
  .card-back { transform: translate(-68px,34px) rotate(-12deg); }
  .card-front { transform: translate(62px,-8px) rotate(8deg); }
  .doc-image { height: 72px; margin-top: 17px; }
  .doc-image.compressed { height: 56px; }
  .arrow-bubble { width: 58px; height: 58px; transform: translate(0,130px); font-size: 27px; }
  .working-card { grid-template-columns: auto 1fr auto; text-align: left; }
  .result-card { grid-template-columns: auto 1fr; text-align: left; }
  .download-button { grid-column: 1 / -1; width: 100%; }
  .another-button { grid-column: 1 / -1; justify-self: center; }
  .error-card { grid-template-columns: 1fr; text-align: left; }
  .error-card button { grid-column: 1; grid-row: auto; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 14px; }
  .legal-copy { padding: 38px 25px 28px; }
}
