:root {
  color-scheme: light;
  --ink: #15221c;
  --muted: #59665f;
  --paper: #f7f6ef;
  --card: #ffffff;
  --line: #dce2d8;
  --accent: #17653d;
  --accent-dark: #0e4e2d;
  --soft: #eaf3e9;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: radial-gradient(circle at 72% 5%, #e6f2df 0, transparent 28rem), var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.shell { width: min(100% - 32px, 760px); margin: 0 auto; padding: 28px 0 64px; }
.brand { color: var(--ink); font-size: 1.05rem; font-weight: 760; letter-spacing: -.04em; text-decoration: none; }
.hero { padding-top: clamp(62px, 13vw, 130px); }
.eyebrow { margin: 0 0 11px; color: var(--accent); font-size: .73rem; font-weight: 800; letter-spacing: .11em; }
h1, h2 { margin: 0; letter-spacing: -.055em; line-height: .98; }
h1 { max-width: 600px; font-size: clamp(3.15rem, 10vw, 5.8rem); }
h2 { font-size: clamp(1.7rem, 5vw, 2.25rem); }
.lede { max-width: 535px; margin: 21px 0 0; color: var(--muted); font-size: clamp(1rem, 2.8vw, 1.18rem); line-height: 1.55; }

.privacy-note { display: flex; gap: 12px; align-items: flex-start; max-width: 625px; margin: 30px 0 20px; padding: 15px 17px; border: 1px solid #cfe3cf; border-radius: 15px; background: var(--soft); color: #295238; font-size: .92rem; line-height: 1.42; }
.privacy-note span { font-size: 1.35rem; line-height: .9; }
.privacy-note p { margin: 0; }

.tool-card, .result-card { border: 1px solid var(--line); border-radius: 22px; background: var(--card); box-shadow: 0 12px 35px rgba(18, 42, 26, .055); }
.tool-card { padding: clamp(18px, 5vw, 32px); }
.drop-zone { display: grid; min-height: 192px; place-content: center; gap: 8px; padding: 20px; border: 1.5px dashed #aebcaf; border-radius: 15px; background: #fbfcf9; cursor: pointer; text-align: center; transition: background .15s, border-color .15s; }
.drop-zone:hover, .drop-zone.dragging { border-color: var(--accent); background: #f2f8f1; }
.drop-zone input { width: 1px; height: 1px; overflow: hidden; position: absolute; clip: rect(0 0 0 0); }
.upload-icon { display: grid; width: 40px; height: 40px; place-items: center; justify-self: center; border-radius: 50%; background: var(--soft); color: var(--accent); font-size: 1.35rem; font-weight: 700; }
.upload-title { font-weight: 720; }
.upload-help, .limit-copy { color: var(--muted); font-size: .9rem; }
.file-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 15px 0 0; padding: 12px 0 0; }
.file-meta { display: flex; min-width: 0; align-items: center; gap: 9px; font-size: .92rem; font-weight: 650; }
.file-meta span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: #68a378; }

button { min-height: 45px; border-radius: 11px; padding: 0 17px; font: inherit; font-weight: 720; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; }
.primary-button { width: 100%; margin-top: 22px; border: 0; background: var(--accent); color: white; }
.primary-button:not(:disabled):hover { background: var(--accent-dark); }
.text-button { min-height: 30px; padding: 0; border: 0; background: transparent; color: var(--accent); font-size: .87rem; }
.limits { margin-top: 18px; }
.limits-title { margin: 0 0 9px; color: var(--ink); font-size: .82rem; font-weight: 760; }
.limits dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.limits dl div { min-height: 69px; padding: 10px 11px; border-radius: 10px; background: #f7f9f5; }
.limits dt { margin: 0; color: var(--muted); font-size: .75rem; font-weight: 650; }
.limits dd { margin: 4px 0 0; color: var(--ink); font-size: .83rem; font-weight: 670; line-height: 1.28; }
.limit-copy { margin: 12px 1px 0; line-height: 1.45; }

.result-card { margin-top: 22px; padding: clamp(20px, 5vw, 32px); }
.result-heading { display: flex; gap: 16px; align-items: center; justify-content: space-between; }
.status { flex: 0 0 auto; border-radius: 999px; padding: 7px 10px; background: var(--soft); color: var(--accent-dark); font-size: .8rem; font-weight: 750; }
.progress { margin: 18px 0 0; color: var(--muted); font-size: .9rem; }
textarea { width: 100%; min-height: 230px; margin-top: 20px; resize: vertical; border: 1px solid var(--line); border-radius: 13px; padding: 15px; color: var(--ink); background: #fcfdfb; font: 1rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 15px; }
.secondary-button { border: 1px solid #afc5b2; background: white; color: var(--accent-dark); }
.secondary-button:hover { background: var(--soft); }
footer { padding: 0 16px 35px; color: #768078; font-size: .82rem; text-align: center; }
footer p { margin: 0; }
.affiliate-disclosure { max-width: 580px; margin: 10px auto 0; line-height: 1.45; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px 17px; margin-top: 11px; }
.footer-nav a, .page-nav a, .content-page a { color: var(--accent-dark); font-weight: 700; text-underline-offset: 3px; }

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.page-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px 15px; font-size: .88rem; }
.content-page { max-width: 670px; padding-top: clamp(55px, 10vw, 110px); }
.content-page h1 { max-width: 650px; font-size: clamp(2.55rem, 8.5vw, 4.7rem); }
.content-page h2 { margin-top: 40px; font-size: clamp(1.45rem, 4vw, 2rem); }
.content-page p, .content-page li { color: var(--muted); font-size: 1rem; line-height: 1.7; }
.content-page ul { padding-left: 22px; }
.content-page .lede { margin-bottom: 27px; }
.contact-address { display: inline-block; margin-top: 8px; font-size: clamp(1.2rem, 4vw, 1.55rem); }

@media (max-width: 430px) {
  .shell { width: min(100% - 24px, 760px); padding-top: 21px; }
  .hero { padding-top: 58px; }
  .result-heading { align-items: flex-start; flex-direction: column; }
  .result-actions > button { width: 100%; }
  .limits dl { grid-template-columns: 1fr; }
  .site-header { align-items: flex-start; flex-direction: column; }
  .page-nav { justify-content: flex-start; }
}
