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

:root {
  color-scheme: light;
  --paper: #f5f4f0;
  --white: #fffefa;
  --ink: #202522;
  --muted: #777c76;
  --line: #e5e4de;
  --green: #caff4a;
  --green-dark: #93c900;
  --soft-green: #f0f8dc;
  --danger: #a63327;
  --mono: 'DM Mono', 'Courier New', monospace;
  --sans: 'Manrope', 'Arial', sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button:focus-visible, a:focus-visible, .dropzone:focus-visible { outline: 3px solid #697d3c; outline-offset: 4px; }

.topbar { height: 76px; max-width: 1160px; margin: auto; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(32,37,34,.1); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 21px; line-height: 1; letter-spacing: -1.2px; font-weight: 800; }
.brand-period { color: #89b900; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 2px; background: var(--green); transform: rotate(-5deg); }
.brand-mark span { display: block; width: 2px; border-radius: 2px; background: var(--ink); }
.brand-mark span:nth-child(1), .brand-mark span:nth-child(5) { height: 6px; }
.brand-mark span:nth-child(2), .brand-mark span:nth-child(4) { height: 13px; }
.brand-mark span:nth-child(3) { height: 18px; }
.topbar-note { display: flex; gap: 9px; align-items: center; color: #606660; font-size: 12px; font-weight: 600; }
.privacy-dot { width: 7px; height: 7px; display: inline-block; flex: 0 0 auto; border-radius: 100%; background: #85b525; box-shadow: 0 0 0 3px rgba(133,181,37,.13); }

main { max-width: 1000px; margin: 0 auto; padding: 0 32px; }
.hero { position: relative; min-height: 330px; padding: 65px 0 54px; display: flex; align-items: center; justify-content: space-between; }
.hero-copy { max-width: 660px; }
.eyebrow, .step-label, .local-badge, .format-caption, .stamp-top, .stamp-bottom { font-family: var(--mono); letter-spacing: .1em; }
.eyebrow { margin: 0 0 20px; display: flex; align-items: center; gap: 10px; color: #737971; font-size: 10px; font-weight: 500; }
.eyebrow-line { width: 22px; height: 1px; background: #92bf35; }
h1 { margin: 0; font-size: clamp(42px, 6vw, 66px); letter-spacing: -.075em; line-height: .99; font-weight: 700; }
h1 span { color: #8ba633; }
.hero-description { max-width: 485px; margin: 21px 0 0; color: #686d67; font-size: 15px; line-height: 1.8; }
.trust-row { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 20px; color: #454b44; font-size: 11px; font-weight: 700; }
.trust-row span { display: inline-flex; align-items: center; gap: 6px; }
.trust-row svg { width: 15px; height: 15px; fill: none; stroke: #7eaa19; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero-stamp { width: 135px; height: 135px; margin: 6px 42px 0 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 1px solid #d9ded0; border-radius: 50%; transform: rotate(8deg); color: #68715b; }
.stamp-top, .stamp-bottom { font-size: 8px; }
.stamp-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--green); color: #28301f; }
.stamp-icon svg { width: 34px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.converter { max-width: 790px; margin: 0 auto; padding: 26px; background: var(--white); border: 1px solid #e4e3dd; border-radius: 16px; box-shadow: 0 12px 45px rgba(48,49,38,.055); }
.converter-topline { display: flex; align-items: center; justify-content: space-between; margin-bottom: 19px; }
.step-label { display: flex; align-items: center; gap: 10px; font-size: 10px; font-weight: 500; color: #656b62; }
.step-number { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; background: var(--green); color: #30392b; font-size: 11px; }
.local-badge { display: inline-flex; gap: 8px; align-items: center; font-size: 9px; color: #6b7362; }
.local-badge .privacy-dot { width: 6px; height: 6px; }
.dropzone { position: relative; min-height: 210px; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px dashed #c5cabe; border-radius: 12px; background: #fafaf6; cursor: pointer; transition: border-color .18s, background .18s, transform .18s; }
.dropzone:hover, .dropzone.is-dragging { border-color: #8daf3c; background: #f4f8e9; }
.dropzone.is-dragging { transform: scale(.99); }
.dropzone input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.upload-icon { width: 45px; height: 45px; display: grid; place-items: center; margin-bottom: 13px; border: 1px solid #e1e4d9; border-radius: 14px; background: #fff; color: #748d3c; }
.upload-icon svg { width: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.drop-title { font-size: 15px; font-weight: 700; letter-spacing: -.02em; }
.drop-subtitle { margin-top: 5px; color: #858981; font-size: 12px; }
.drop-subtitle span { color: #547321; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.format-hint { margin-top: 17px; color: #92958f; font-family: var(--mono); font-size: 9px; letter-spacing: .07em; }
.hidden { display: none !important; }
.file-panel { display: flex; align-items: center; gap: 13px; margin-top: 14px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.file-icon { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; background: #f2f6e7; color: #638326; }
.file-icon svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.file-meta, .result-meta { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.file-meta strong, .result-meta strong { overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.file-meta span, .result-meta span { color: #858981; font-size: 10px; }
.remove-file { width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: #7c817a; font-size: 22px; line-height: 1; cursor: pointer; }
.remove-file:hover { background: #f3f3ef; color: #353a35; }
.conversion-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 20px; }
.format-choice { display: flex; flex-direction: column; gap: 7px; }
.format-caption { color: #8a8e87; font-size: 8px; }
.format-chip { min-width: 113px; height: 42px; display: flex; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid #e2e3dc; border-radius: 9px; background: #fff; font-family: var(--mono); font-size: 11px; font-weight: 500; }
.format-wave { color: #86aa32; font-size: 18px; line-height: 0; }
.format-chevron { margin-left: auto; color: #868b84; font-size: 16px; }
.convert-button { min-width: 205px; height: 44px; display: inline-flex; justify-content: center; align-items: center; gap: 17px; padding: 0 19px; border: 0; border-radius: 9px; background: var(--green); color: #262b22; font-size: 12px; font-weight: 800; cursor: pointer; transition: transform .15s, background .15s, opacity .15s; }
.convert-button:hover:not(:disabled) { transform: translateY(-1px); background: #bff13c; }
.convert-button:disabled { cursor: not-allowed; opacity: .55; }
.convert-button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.support-note { margin: 14px 0 0; color: #959890; font-size: 9px; line-height: 1.6; }
.progress-wrap { margin-top: 18px; }
.progress-heading { display: flex; justify-content: space-between; color: #60665d; font-family: var(--mono); font-size: 10px; }
.progress-track { height: 5px; margin-top: 8px; overflow: hidden; border-radius: 5px; background: #eceee7; }
.progress-fill { width: 0; height: 100%; border-radius: inherit; background: #a4cb42; transition: width .35s ease; }
.error-box { margin-top: 15px; padding: 12px 14px; border: 1px solid #efd0cb; border-radius: 9px; background: #fff7f5; color: var(--danger); font-size: 11px; line-height: 1.6; }
.result-panel { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 13px; border: 1px solid #dbe9bd; border-radius: 10px; background: #f7fbea; }
.result-check { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: #e7f4cc; color: #5f8128; }
.result-check svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.download-button { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 12px; border-radius: 8px; background: #263025; color: white; font-size: 10px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background .15s; }
.download-button:hover { background: #45513d; }
.download-button svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.how-it-works { max-width: 790px; margin: 39px auto 48px; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.how-it-works > div { flex: 1; }
.how-number { color: #8daa4b; font-family: var(--mono); font-size: 9px; }
.how-it-works h2 { margin: 8px 0 4px; font-size: 12px; font-weight: 800; }
.how-it-works p { margin: 0; color: #80857d; font-size: 10px; line-height: 1.6; }
.how-arrow { margin-top: 15px; color: #b8bcb1; font-size: 16px; }
.footer { max-width: 1160px; min-height: 65px; margin: 0 auto; padding: 15px 32px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid rgba(32,37,34,.1); color: #83877f; font-size: 9px; }
.footer-brand { gap: 7px; font-size: 14px; }
.footer-brand .brand-mark { width: 21px; height: 21px; border-radius: 6px; gap: 1.5px; }
.footer-brand .brand-mark span { width: 1.5px; }
.footer-brand .brand-mark span:nth-child(1), .footer-brand .brand-mark span:nth-child(5) { height: 5px; }
.footer-brand .brand-mark span:nth-child(2), .footer-brand .brand-mark span:nth-child(4) { height: 10px; }
.footer-brand .brand-mark span:nth-child(3) { height: 14px; }

@media (max-width: 700px) {
  .topbar { height: 65px; padding: 0 20px; }
  .topbar-note { max-width: 170px; font-size: 9px; }
  main { padding: 0 20px; }
  .hero { min-height: 0; padding: 52px 0 32px; }
  .hero-stamp { width: 91px; height: 91px; margin: 0 3px 0 12px; gap: 5px; flex-shrink: 0; }
  .stamp-top, .stamp-bottom { font-size: 6px; }
  .stamp-icon { width: 33px; height: 33px; border-radius: 10px; }
  .stamp-icon svg { width: 24px; }
  h1 { font-size: clamp(39px, 10vw, 56px); }
  .hero-description { max-width: 415px; margin-top: 15px; font-size: 13px; line-height: 1.65; }
  .trust-row { gap: 14px; margin-top: 14px; font-size: 10px; }
  .converter { padding: 17px; border-radius: 13px; }
  .dropzone { min-height: 190px; }
  .how-it-works { margin: 29px auto 34px; gap: 10px; }
  .how-it-works p { font-size: 9px; }
  .footer { padding: 14px 20px; flex-wrap: wrap; }
}
@media (max-width: 460px) {
  .topbar-note { max-width: 145px; font-size: 8px; }
  .hero { padding-top: 44px; }
  .hero-stamp { width: 69px; height: 69px; margin-right: 0; }
  .stamp-icon { width: 27px; height: 27px; }
  .stamp-icon svg { width: 19px; }
  .stamp-top, .stamp-bottom { font-size: 5px; }
  .eyebrow { font-size: 8px; margin-bottom: 14px; }
  .hero-description { font-size: 12px; }
  .trust-row { flex-direction: column; gap: 8px; }
  .converter-topline { align-items: flex-start; }
  .local-badge { font-size: 7px; }
  .dropzone { min-height: 175px; }
  .conversion-row { align-items: stretch; flex-direction: column; }
  .format-choice { flex-direction: row; align-items: center; justify-content: space-between; }
  .format-caption { max-width: 80px; line-height: 1.5; }
  .format-chip { min-width: 100px; height: 38px; }
  .convert-button { width: 100%; }
  .result-panel { flex-wrap: wrap; }
  .result-meta { min-width: calc(100% - 62px); }
  .download-button { width: 100%; }
  .how-it-works { gap: 8px; }
  .how-arrow { font-size: 12px; }
  .how-it-works h2 { font-size: 10px; }
  .how-it-works p { font-size: 8px; }
  .footer { justify-content: center; text-align: center; }
  .footer-brand { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
