@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  font-family: 'DM Sans', sans-serif;
  color: #1d211e;
  background: #f8f8f5;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
header, footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1080px;
  margin: auto;
  padding: 24px 28px;
}
header { border-bottom: 1px solid #dedfda; }
.brand {
  color: #1d211e;
  text-decoration: none;
  font: 700 23px 'Space Grotesk', sans-serif;
  letter-spacing: -1px;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-right: 7px;
  border: 1px solid #1d211e;
  border-radius: 6px;
  font-size: 19px;
  vertical-align: 1px;
}
.header-note, .fine-print, footer { color: #6d746e; font-size: 13px; }
main { max-width: 780px; margin: auto; padding: 78px 28px 64px; }
.eyebrow, .api-kicker, .result-label {
  color: #555e56;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
}
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: #4d6952;
}
h1 {
  margin: 22px 0;
  font: 600 clamp(52px, 9vw, 88px)/1.02 'Space Grotesk', sans-serif;
  letter-spacing: -.065em;
}
h1 em { color: #62776a; font-style: normal; }
.intro {
  max-width: 500px;
  margin: 24px 0 44px;
  color: #5e665f;
  font-size: 18px;
  line-height: 1.6;
}
form {
  padding: 28px;
  border: 1px solid #dedfda;
  border-radius: 12px;
  background: #fff;
}
label:not(.drop) {
  display: block;
  margin-bottom: 10px;
  color: #4d554e;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
}
input[type=password] {
  width: 100%;
  margin-bottom: 24px;
  padding: 15px;
  border: 1px solid #cdd1ca;
  border-radius: 6px;
  background: #fff;
  color: #1d211e;
  font: inherit;
}
input[type=password]::placeholder { color: #8b918b; }
.drop {
  display: flex;
  min-height: 180px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1.5px dashed #b9c0b7;
  border-radius: 8px;
  background: #fbfcfa;
  text-align: center;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.drop:hover, .drop.active { border-color: #4d6952; background: #f3f6f1; }
.upload-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid #d5dbd1;
  border-radius: 7px;
  color: #365a3c;
  font-size: 24px;
}
.drop strong { font: 600 17px 'Space Grotesk', sans-serif; }
.drop small { color: #747c73; font-size: 12px; }
button { cursor: pointer; font: 600 15px 'Space Grotesk', sans-serif; }
#submit {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid #1d211e;
  border-radius: 6px;
  background: #1d211e;
  color: #fff;
  transition: background .15s;
}
#submit:hover { background: #38443a; }
#submit:disabled { opacity: .6; cursor: wait; }
#status { min-height: 17px; margin: 14px 0 0; color: #365a3c; font-size: 13px; }
#result {
  margin-top: 20px;
  padding: 22px;
  border: 1px solid #bdcabd;
  border-radius: 8px;
  background: #f1f6ef;
}
#result a { display: block; overflow-wrap: anywhere; margin: 10px 0; color: #1d211e; }
#copy {
  padding: 9px 13px;
  border: 1px solid #abb9aa;
  border-radius: 6px;
  background: #fff;
  color: #1d211e;
}
#copy:hover { background: #e9f0e7; }
.fine-print { margin: 20px 0 70px; text-align: center; }
.api { padding-top: 38px; border-top: 1px solid #dedfda; }
.api h2 {
  margin: 11px 0 25px;
  font: 600 30px 'Space Grotesk', sans-serif;
  letter-spacing: -1px;
}
.api pre {
  overflow: auto;
  padding: 20px;
  border: 1px solid #dedfda;
  border-radius: 8px;
  background: #fff;
  color: #39433b;
  font-size: 13px;
  line-height: 1.8;
}
.api pre span { color: #24603a; }
.api p { color: #6d746e; font-size: 13px; }
footer { margin-top: 20px; border-top: 1px solid #dedfda; }
button:focus-visible, a:focus-visible, input:focus-visible, .drop:focus-visible {
  outline: 2px solid #365a3c;
  outline-offset: 3px;
}
@media (max-width: 600px) {
  main { padding-top: 58px; }
  h1 { letter-spacing: -.05em; }
  .header-note { display: none; }
  form { padding: 18px; }
  footer { padding: 24px 28px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
