:root {
  --paper: #f7f5ef;
  --ink: #17221c;
  --muted: #647069;
  --line: #d9ddd7;
  --card: #fffdfa;
  --green: #256c4a;
  --green-dark: #155238;
  --lime: #d9f05b;
  --red: #b33f36;
  --shadow: 0 24px 70px rgba(23, 34, 28, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 5%, rgba(217, 240, 91, .24), transparent 24rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(23, 34, 28, .12);
}
.brand { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 11px; font-size: 22px; font-weight: 800; letter-spacing: -.8px; }
.brand > span > span { color: var(--green); }
.brand-mark { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: white; }
.brand-mark svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.header-note { font-size: 13px; color: var(--muted); letter-spacing: .02em; }

main { overflow: hidden; }
.hero { width: min(980px, calc(100% - 40px)); margin: 0 auto; padding: 92px 0 110px; text-align: center; }
.eyebrow { display: inline-flex; gap: 10px; align-items: center; color: var(--green); text-transform: uppercase; letter-spacing: .15em; font-size: 12px; font-weight: 800; }
.eyebrow span { width: 22px; height: 2px; background: var(--green); }
h1 { margin: 24px 0 22px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(48px, 8vw, 90px); line-height: .96; letter-spacing: -.055em; font-weight: 500; }
h1 em { color: var(--green); font-weight: 500; }
.hero-copy { width: min(640px, 100%); margin: 0 auto; color: var(--muted); font-size: 18px; line-height: 1.7; }

.download-form { margin: 48px auto 0; padding: 14px; max-width: 860px; background: rgba(255, 253, 250, .9); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); text-align: left; }
.download-form > label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.input-row { min-height: 66px; display: flex; align-items: center; gap: 10px; }
.input-icon { margin-left: 10px; color: var(--muted); display: grid; place-items: center; }
.input-icon svg { width: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.input-icon .fill { fill: currentColor; stroke: none; }
input { flex: 1; min-width: 0; height: 54px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 16px; }
input::placeholder { color: #98a19c; }
input:focus-visible { box-shadow: 0 2px 0 var(--green); }
.paste-button, .clear-button { color: var(--green-dark); background: transparent; border: 0; cursor: pointer; font-weight: 750; font-size: 13px; }
.paste-button { padding: 10px 8px; }
.submit-button { min-width: 144px; height: 56px; padding: 0 20px; border: 0; border-radius: 15px; background: var(--green); color: white; display: inline-flex; align-items: center; justify-content: center; gap: 16px; font-weight: 800; cursor: pointer; transition: .2s ease; }
.submit-button:hover { background: var(--green-dark); transform: translateY(-1px); }
.submit-button:disabled { opacity: .65; cursor: wait; transform: none; }
.submit-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.form-meta { padding: 3px 10px 0 45px; display: flex; justify-content: space-between; align-items: center; }
.form-meta p { margin: 0; color: #8a958f; font-size: 12px; }
.status { min-height: 0; padding: 0 10px 0 45px; font-size: 13px; color: var(--muted); }
.status:not(:empty) { padding-top: 12px; padding-bottom: 4px; }
.status.error { color: var(--red); }
.status.loading::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px; border: 2px solid #c8d3cc; border-top-color: var(--green); border-radius: 50%; vertical-align: -2px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.result { max-width: 860px; margin: 24px auto 0; border-radius: 24px; background: var(--ink); color: white; padding: 18px; display: grid; grid-template-columns: 220px 1fr; gap: 28px; text-align: left; box-shadow: var(--shadow); }
.result[hidden] { display: none; }
.result-preview { height: 220px; position: relative; overflow: hidden; border-radius: 16px; background: #2a352f; }
.result-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.result-badge { position: absolute; left: 12px; bottom: 12px; padding: 7px 10px; border-radius: 999px; background: var(--lime); color: var(--ink); font-size: 10px; letter-spacing: .1em; font-weight: 900; }
.result-content { padding: 18px 18px 18px 0; align-self: center; }
.result-kicker { color: var(--lime); text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 800; }
.result h2 { margin: 10px 0 8px; font-family: Georgia, serif; font-size: 34px; font-weight: 500; }
.result p { color: #bdc7c0; line-height: 1.55; margin: 0 0 22px; }
.download-button { display: inline-flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 12px; background: white; color: var(--ink); text-decoration: none; font-weight: 850; }
.download-button:hover { background: var(--lime); }
.download-button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.how { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 110px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; }
.section-heading > span { color: var(--green); text-transform: uppercase; letter-spacing: .15em; font-size: 11px; font-weight: 850; }
.section-heading h2 { margin: 18px 0 0; font-family: Georgia, serif; font-weight: 500; font-size: clamp(38px, 5vw, 60px); line-height: 1.04; letter-spacing: -.04em; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 64px 1fr; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps > li > span { color: var(--green); font-size: 12px; font-weight: 850; }
.steps h3 { margin: -5px 0 8px; font-size: 20px; letter-spacing: -.02em; }
.steps p { margin: 0; color: var(--muted); line-height: 1.65; }

.privacy-note { width: min(1180px, calc(100% - 40px)); margin: 0 auto 110px; padding: 42px; border-radius: 24px; display: flex; align-items: center; gap: 26px; background: #e9f0e9; }
.privacy-icon { flex: 0 0 auto; width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: var(--green); color: white; }
.privacy-icon svg { width: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.privacy-note h2 { margin: 0 0 6px; font-size: 20px; }
.privacy-note p { margin: 0; color: var(--muted); line-height: 1.6; }

footer { min-height: 130px; padding: 30px max(20px, calc((100% - 1180px) / 2)); display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 30px; align-items: center; background: var(--ink); color: #aebbb3; font-size: 12px; }
footer p { margin: 0; text-align: center; line-height: 1.6; }
footer > span { text-align: right; }
.footer-brand { color: white; font-size: 18px; }

@media (max-width: 760px) {
  .site-header { height: 74px; width: min(100% - 28px, 1180px); }
  .header-note { display: none; }
  .hero { width: min(100% - 28px, 980px); padding: 68px 0 82px; }
  h1 { font-size: clamp(46px, 14vw, 70px); }
  .hero-copy { font-size: 16px; }
  .download-form { margin-top: 36px; padding: 10px; border-radius: 20px; }
  .input-row { flex-wrap: wrap; gap: 4px; }
  .input-icon { display: none; }
  input { padding: 0 10px; width: calc(100% - 80px); }
  .paste-button { width: 70px; }
  .submit-button { width: 100%; min-width: 0; }
  .form-meta { padding: 8px 10px 0; }
  .status { padding-left: 10px; }
  .result { grid-template-columns: 1fr; gap: 8px; }
  .result-preview { height: 270px; }
  .result-content { padding: 18px 8px 10px; }
  .how { width: min(100% - 28px, 1180px); padding: 80px 0; grid-template-columns: 1fr; gap: 48px; }
  .steps li { grid-template-columns: 44px 1fr; gap: 12px; }
  .privacy-note { width: min(100% - 28px, 1180px); margin-bottom: 80px; padding: 28px 22px; align-items: flex-start; }
  footer { grid-template-columns: 1fr; text-align: center; padding-top: 42px; padding-bottom: 42px; }
  footer > span { text-align: center; }
  .footer-brand { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
