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

:root {
  --ink: #16231d;
  --muted: #66736d;
  --cream: #f6f3ea;
  --paper: #fffdf8;
  --line: #d8ddd8;
  --green: #1d6b4c;
  --green-dark: #12513a;
  --lime: #d9f36a;
  --shadow: 0 22px 60px rgba(29, 49, 39, .11);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: "DM Sans", sans-serif; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .24; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.07'/%3E%3C/svg%3E"); }
button, input { font: inherit; }
button, .dropzone, .download-button { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid rgba(29,107,76,.28); outline-offset: 3px; }

.topbar { position: relative; display: flex; justify-content: space-between; align-items: center; width: min(1080px, calc(100% - 40px)); margin: 0 auto; padding: 22px 0; border-bottom: 1px solid rgba(22,35,29,.12); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 18px/1 "Manrope", sans-serif; letter-spacing: -.4px; }
.brand-mark { display: grid; place-items: center; width: 28px; height: 28px; color: var(--cream); background: var(--green); border-radius: 50%; }
.privacy { color: var(--muted); font-size: 13px; font-weight: 600; }
.privacy span { color: #6fa640; margin-right: 5px; }

main { position: relative; width: min(1080px, calc(100% - 40px)); margin: 0 auto; }
.hero { max-width: 760px; margin: 78px auto 38px; text-align: center; }
.eyebrow { display: inline-block; margin-bottom: 22px; color: var(--green); font: 700 12px/1 "Manrope", sans-serif; letter-spacing: 2.2px; }
h1 { margin: 0; font: 800 clamp(42px, 6vw, 72px)/.98 "Manrope", sans-serif; letter-spacing: -3.8px; }
h1 em { color: var(--green); font-style: normal; }
.hero p { max-width: 570px; margin: 24px auto 0; color: var(--muted); font-size: 17px; line-height: 1.65; }

.tool-card { width: min(620px, 100%); margin: 0 auto; padding: 28px; background: var(--paper); border: 1px solid rgba(22,35,29,.13); border-radius: 22px; box-shadow: var(--shadow); }
.dropzone { display: flex; min-height: 220px; flex-direction: column; align-items: center; justify-content: center; padding: 26px; border: 1.5px dashed #aebbb3; border-radius: 15px; background: #fafaf5; cursor: pointer; transition: .2s ease; }
.dropzone:hover, .dropzone:focus-visible, .dropzone.dragging { border-color: var(--green); background: #f4f8ec; outline: none; transform: translateY(-2px); }
.upload-icon { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 16px; color: var(--green); background: #e9f3df; border-radius: 50%; }
.dropzone strong { font: 700 18px/1.2 "Manrope", sans-serif; }
.dropzone span { margin-top: 6px; color: var(--muted); font-size: 14px; }
.dropzone small { margin-top: 18px; color: #89918d; font-size: 11px; letter-spacing: .3px; }

.file-info { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fafaf5; }
.file-info img { width: 58px; height: 58px; border-radius: 9px; object-fit: cover; }
.file-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 3px; }
.file-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.file-copy span { color: var(--muted); font-size: 12px; }
.icon-button { width: 34px; height: 34px; border: 0; color: var(--muted); background: transparent; border-radius: 50%; font-size: 25px; cursor: pointer; }
.icon-button:hover { background: #ecefe9; }

.target-block { margin: 25px 0 20px; }
.target-block > label { display: block; margin-bottom: 9px; font-size: 13px; font-weight: 700; }
.size-input-wrap { display: flex; align-items: center; border: 1px solid #b9c2bc; border-radius: 12px; background: #fff; overflow: hidden; }
.size-input-wrap:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(29,107,76,.1); }
.size-input-wrap input { width: 100%; padding: 13px 15px; border: 0; outline: 0; color: var(--ink); background: transparent; font-weight: 700; }
.size-input-wrap span { padding: 0 15px; color: var(--muted); font-size: 13px; font-weight: 700; }
.presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.presets button { padding: 9px 6px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: transparent; font-size: 12px; font-weight: 600; cursor: pointer; }
.presets button:hover, .presets button.active { color: var(--green-dark); border-color: #a8bfab; background: #edf5e5; }

.primary-button, .download-button, .secondary-button { display: flex; width: 100%; align-items: center; justify-content: center; gap: 12px; padding: 15px 20px; border: 0; border-radius: 12px; color: white; background: var(--green); font-weight: 700; text-decoration: none; cursor: pointer; transition: .2s ease; }
.primary-button:not(:disabled):hover, .download-button:hover { background: var(--green-dark); transform: translateY(-1px); }
.primary-button:disabled { color: #50615a; background: #d9e1dc; cursor: not-allowed; }
.primary-button[aria-busy="true"] span:first-child::before { content: ""; display: inline-block; width: 13px; height: 13px; margin-right: 9px; border: 2px solid rgba(255,255,255,.45); border-top-color: white; border-radius: 50%; vertical-align: -2px; animation: spin .75s linear infinite; }
.safe-note { margin: 15px 0 0; color: #7c8982; text-align: center; font-size: 11px; }

.status { margin-top: 16px; padding: 12px 14px; color: var(--green-dark); background: #edf5e5; border-radius: 10px; font-size: 13px; text-align: center; }
.status.error { color: #8b312c; background: #fae9e5; }
.result { margin-top: 18px; padding: 20px; border: 1px solid #bcd3ad; border-radius: 14px; background: #f4f8ec; }
.success-head { display: flex; align-items: center; gap: 12px; }
.success-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; color: white; background: var(--green); border-radius: 50%; font-weight: 800; }
.success-head div { display: flex; flex-direction: column; gap: 2px; }
.success-head strong { font: 700 15px/1.2 "Manrope", sans-serif; }
.success-head span { color: var(--muted); font-size: 12px; }
.comparison { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: 18px 0; }
.comparison div { display: flex; flex-direction: column; padding: 12px; background: rgba(255,255,255,.72); border-radius: 9px; }
.comparison span { color: var(--muted); font-size: 11px; }
.comparison strong { margin-top: 2px; font-size: 16px; }
.comparison .arrow { color: var(--green); font-size: 20px; }
.download-button { background: var(--ink); }
.download-button:hover { background: #293a32; }
.secondary-button { margin-top: 9px; color: var(--green-dark); border: 1px solid #bcd3ad; background: transparent; }
.secondary-button:hover { background: #e9f3df; transform: translateY(-1px); }
.share-notice { margin: 10px 0 0; color: var(--green-dark); font-size: 12px; text-align: center; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; width: min(820px, 100%); margin: 70px auto 90px; }
.steps div { display: grid; grid-template-columns: auto 1fr; gap: 13px; }
.steps span { color: var(--green); font: 700 11px/1.4 "Manrope", sans-serif; }
.steps p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.steps strong { display: block; color: var(--ink); font-size: 14px; }
.popular-tools { width: min(820px, 100%); margin: -18px auto 90px; text-align: center; }
.popular-tools h2, .seo-copy h2 { margin: 0; font: 800 clamp(28px, 4vw, 40px)/1.1 "Manrope", sans-serif; letter-spacing: -1.5px; }
.tool-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 26px; text-align: left; }
.tool-links a { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; background: rgba(255,253,248,.66); font-size: 14px; font-weight: 700; text-decoration: none; transition: .2s ease; }
.tool-links a:hover { color: var(--green); border-color: #a8bfab; background: var(--paper); transform: translateY(-1px); }
.tool-links a:last-child:nth-child(odd) { grid-column: 1 / -1; }

.seo-hero { max-width: 820px; margin-top: 64px; }
.seo-hero h1 { font-size: clamp(40px, 5.5vw, 66px); }
.seo-tool { margin-top: 36px; }
.seo-copy { width: min(760px, 100%); margin: 70px auto 90px; }
.seo-copy > p { color: var(--muted); font-size: 16px; line-height: 1.75; }
.seo-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px 0 48px; padding: 0; list-style: none; }
.seo-points li { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,253,248,.7); font-size: 13px; line-height: 1.5; }
.seo-points strong { display: block; margin-bottom: 5px; color: var(--green); }
.related-title { margin: 42px 0 0; font: 700 18px/1.3 "Manrope", sans-serif; }
.seo-loading { min-height: 360px; display: grid; place-items: center; color: var(--muted); }
footer { position: relative; display: flex; justify-content: space-between; width: min(1080px, calc(100% - 40px)); margin: 0 auto; padding: 24px 0 34px; border-top: 1px solid rgba(22,35,29,.12); color: var(--muted); font-size: 11px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

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

@media (max-width: 620px) {
  .topbar, main, footer { width: min(100% - 28px, 1080px); }
  .privacy { display: none; }
  .hero { margin-top: 54px; }
  h1 { font-size: 43px; letter-spacing: -2.6px; }
  .hero p { font-size: 15px; }
  .tool-card { padding: 17px; border-radius: 17px; }
  .dropzone { min-height: 195px; }
  .presets { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 23px; margin: 50px auto 60px; }
  .popular-tools { margin-bottom: 60px; }
  .tool-links, .seo-points { grid-template-columns: 1fr; }
  .tool-links a:last-child:nth-child(odd) { grid-column: auto; }
  .seo-hero { margin-top: 48px; }
  .seo-copy { margin: 52px auto 60px; }
  footer { flex-direction: column; gap: 6px; }
}
