/* SuperFastFiles — design system
   Clean, professional, responsive. Green brand accent. */

:root {
  --green: #0f7b5a;
  --green-600: #0c6a4d;
  --green-700: #0a5c43;
  --green-050: #e9f6f0;
  --green-100: #d4ede2;
  --yellow: #fde047;

  --ink: #0f1b16;
  --body: #33433c;
  --muted: #5f6f68;
  --line: #e3e9e6;
  --line-2: #eef2f0;
  --bg: #ffffff;
  --bg-soft: #f5f8f6;
  --bg-card: #ffffff;

  --radius: 14px;
  --radius-lg: 20px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 27, 22, .05), 0 1px 3px rgba(15, 27, 22, .06);
  --shadow-md: 0 6px 18px rgba(15, 27, 22, .07), 0 2px 6px rgba(15, 27, 22, .05);
  --shadow-lg: 0 18px 50px rgba(10, 92, 67, .12), 0 6px 16px rgba(15, 27, 22, .06);

  --maxw: 1120px;
  --display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.18rem; font-weight: 700; }

p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.section { padding: 72px 0; }
.section + .section { padding-top: 0; }

/* Accessibility */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--green); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid rgba(15, 123, 90, .45); outline-offset: 2px; border-radius: 6px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px; gap: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 700; font-size: 1.18rem;
  color: var(--ink); text-decoration: none; letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand b { color: var(--green); font-weight: 800; }
.brand-mark {
  display: inline-flex; width: 32px; height: 32px;
  filter: drop-shadow(0 2px 4px rgba(10, 92, 67, .22));
}
.brand-mark svg { width: 100%; height: 100%; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  color: var(--body); font-weight: 600; font-size: .98rem;
  padding: 8px 14px; border-radius: 9px; text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.nav a:hover { background: var(--green-050); color: var(--green-700); text-decoration: none; }

.nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line);
  background: #fff; border-radius: 10px; color: var(--ink); cursor: pointer;
  align-items: center; justify-content: center; padding: 0;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(15, 123, 90, .10), transparent 60%),
    linear-gradient(180deg, var(--bg-soft), #fff 70%);
  padding-top: 60px;
}
.hero .container { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero-inner { max-width: 560px; }

.eyebrow {
  display: inline-block; font-weight: 700; font-size: .8rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--green-700);
  background: var(--green-050); padding: 6px 12px; border-radius: 999px; margin: 0 0 18px;
}
.hero h1 { margin-bottom: 16px; }
.hl { color: var(--green); }
.lead { font-size: 1.12rem; color: var(--muted); margin-bottom: 22px; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .9rem; font-weight: 600; color: var(--green-700);
  background: #fff; border: 1px solid var(--green-100);
  padding: 8px 13px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.pill svg { width: 16px; height: 16px; }

/* ---------- Converter ---------- */
.converter {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-lg);
}
.converter-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.converter-head h2 { margin: 0; font-size: 1.35rem; }
.format-select { display: flex; align-items: center; gap: 8px; }
.format-select label { font-size: .82rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.select {
  font-family: var(--sans); font-size: .95rem; font-weight: 600; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 34px 9px 12px; cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235f6f68' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center;
}
.select:focus { border-color: var(--green); }

.steps { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.step { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; color: var(--muted); }
.step .dot {
  width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-soft); color: var(--muted); font-size: .82rem; font-weight: 700; border: 1px solid var(--line);
}
.step.active { color: var(--green-700); }
.step.active .dot { background: var(--green); color: #fff; border-color: var(--green); }
.step.done .dot { background: var(--green-050); color: var(--green-700); border-color: var(--green-100); }
.arrow { color: var(--line); font-size: 1.1rem; }

.dropzone {
  border: 2px dashed var(--green-100); border-radius: var(--radius);
  background: var(--bg-soft); text-align: center; padding: 34px 22px; cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.dropzone:hover, .dropzone:focus, .dropzone.drag {
  border-color: var(--green); background: var(--green-050); outline: none;
}
.dropzone h3 { margin: 0 0 4px; font-size: 1.05rem; }
.dropzone p { margin: 0; color: var(--muted); font-size: .92rem; }
.dz-icon {
  display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--green-100); border-radius: 14px; color: var(--green);
  margin-bottom: 12px; box-shadow: var(--shadow-sm);
}
.dz-icon svg { width: 26px; height: 26px; }
.dz-hint { margin-top: 8px !important; font-size: .82rem !important; color: var(--muted); }

.file-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.file-list li {
  display: flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--ink);
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
}
.file-list .fi-icon { color: var(--green); display: inline-flex; }
.file-list .fi-icon svg { width: 18px; height: 18px; }
.file-list .fi-name { font-weight: 600; word-break: break-all; }
.file-list .fi-size { color: var(--muted); margin-left: auto; white-space: nowrap; font-size: .85rem; }

.status { margin-top: 14px; font-size: .92rem; color: var(--muted); min-height: 0; }
.status.error { color: #b3261e; font-weight: 600; }
.status.ok { color: var(--green-700); font-weight: 600; }

.progress-wrap { display: none; margin-top: 16px; }
.progress-wrap.show { display: block; }
.progress-bar { height: 8px; background: var(--green-050); border-radius: 999px; overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--green-600)); border-radius: 999px; transition: width .25s ease; }
.progress-label { margin-top: 8px; font-size: .85rem; color: var(--muted); }

.converter-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--sans); font-weight: 700; font-size: 1rem; line-height: 1;
  padding: 13px 22px; border-radius: 12px; border: 1px solid transparent; cursor: pointer;
  text-decoration: none; transition: transform .12s ease, box-shadow .15s ease, background .15s ease, opacity .15s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 6px 16px rgba(15, 123, 90, .26); }
.btn-primary:hover { background: var(--green-600); transform: translateY(-1px); }
.btn-primary:disabled { background: #b9c8c2; box-shadow: none; cursor: not-allowed; transform: none; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-soft); }

.result { display: none; margin-top: 18px; padding: 18px; border-radius: var(--radius); background: var(--green-050); border: 1px solid var(--green-100); }
.result.show { display: block; }
.result h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; color: var(--green-700); }
.result h3 svg { width: 20px; height: 20px; }
.result p { margin: 0 0 12px; color: var(--green-700); font-size: .92rem; }
.result-downloads { display: flex; flex-direction: column; gap: 8px; }
.dl-link {
  display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--green-100);
  border-radius: 10px; padding: 11px 14px; font-weight: 600; color: var(--green-700); text-decoration: none;
}
.dl-link:hover { background: #fff; border-color: var(--green); text-decoration: none; }
.dl-link svg { width: 18px; height: 18px; flex: none; }
.dl-link .dl-name { word-break: break-all; }
.dl-link .dl-go { margin-left: auto; color: var(--green); white-space: nowrap; font-size: .88rem; }

/* ---------- Ad slot (kept minimal; placeholders removed from markup) ---------- */
.ad-slot { padding: 8px 0; }
.ad-slot .ad-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- Section heads ---------- */
.section-head { max-width: 640px; margin: 0 auto 38px; text-align: center; }
.section-head .eyebrow { background: var(--green-050); }
.section-head p:last-child { color: var(--muted); margin: 0; }

/* ---------- Conversion grid ---------- */
.grid-conversions { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.conv-card {
  display: flex; align-items: center; gap: 13px; padding: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); text-decoration: none; box-shadow: var(--shadow-sm);
  transition: transform .12s ease, box-shadow .15s ease, border-color .15s ease;
}
.conv-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--green-100); text-decoration: none; }
.cc-icon {
  display: inline-flex; width: 44px; height: 44px; flex: none; align-items: center; justify-content: center;
  background: var(--green-050); color: var(--green); border-radius: 12px;
}
.cc-icon svg { width: 22px; height: 22px; }
.cc-title { display: block; font-weight: 700; font-size: 1rem; }
.cc-sub { display: block; font-size: .85rem; color: var(--muted); }

/* ---------- How it works ---------- */
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.how-step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow-sm); }
.how-step .num {
  display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center;
  background: var(--green); color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.1rem;
  border-radius: 12px; margin-bottom: 14px;
}
.how-step h3 { margin-bottom: 6px; }
.how-step p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Features ---------- */
.feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 26px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.f-icon {
  display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center;
  background: var(--green-050); color: var(--green); border-radius: 12px; margin-bottom: 14px;
}
.f-icon svg { width: 23px; height: 23px; }
.feature h3 { margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- CTA ---------- */
.cta {
  text-align: center; padding: 52px 28px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--green), var(--green-700)); color: #fff;
  box-shadow: var(--shadow-lg);
}
.cta h2 { color: #fff; margin-bottom: 8px; }
.cta p { color: rgba(255, 255, 255, .9); max-width: 520px; margin: 0 auto 22px; }
.cta .btn-primary { background: #fff; color: var(--green-700); box-shadow: 0 8px 20px rgba(0, 0, 0, .18); }
.cta .btn-primary:hover { background: #f3fbf8; }

/* ---------- Static / legal pages ---------- */
.page-head { padding-bottom: 0; }
.page-head h1 { margin-bottom: 6px; }
.updated { color: var(--muted); font-size: .92rem; margin: 0; }

.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.prose p { color: var(--body); }
.prose ul { color: var(--body); padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose a { font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: #0c1714; color: #c4d2cc; padding: 56px 0 28px; margin-top: 20px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer-brand .brand { color: #fff; margin-bottom: 12px; }
.footer-brand .brand b { color: #6fe0b6; }
.footer-brand p { color: #93a59d; font-size: .92rem; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; font-family: var(--sans); font-weight: 700; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col a { color: #b8c7c0; font-size: .92rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding-top: 22px; font-size: .85rem; color: #7d8e87;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; gap: 34px; }
  .hero-inner { max-width: none; }
  .how, .feature-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 52px 0; }
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header.open .nav {
    display: flex; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 10px 22px 16px; gap: 4px; box-shadow: var(--shadow-md);
  }
  .site-header.open .nav a { padding: 12px 12px; }
  .converter { padding: 20px; }
  .converter-head { flex-direction: column; align-items: stretch; }
  .format-select { flex-direction: column; align-items: stretch; gap: 6px; }
  .select { width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .grid-conversions { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .steps .arrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .conv-card:hover { transform: none; }
}
