:root {
  color-scheme: light;
  --bg: #f8fafb;
  --surface: #ffffff;
  --ink: #111827;
  --muted: #536273;
  --line: #d8e0e8;
  --soft: #eef6f3;
  --soft-alt: #f4f1ff;
  --accent: #087f5b;
  --accent-dark: #075f46;
  --blue: #1d4ed8;
  --error: #b42318;
  --code: #101828;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
p, h1, h2, h3 { margin-top: 0; }

.skip-link {
  background: var(--ink);
  color: #fff;
  left: 1rem;
  padding: .5rem .75rem;
  position: absolute;
  top: -3rem;
  z-index: 100;
}
.skip-link:focus { top: 1rem; }

.site-header {
  background: rgba(248, 250, 251, .94);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav, .section, .hero-inner, .footer-inner {
  margin: 0 auto;
  max-width: 1160px;
  padding-inline: 1.25rem;
}
.nav {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  min-height: 64px;
}
.brand {
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 850;
}
.nav-links {
  display: flex;
  gap: 1rem;
  font-size: .94rem;
}

.hero {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, #fff 0%, rgba(248, 250, 251, 0) 100%),
    var(--bg);
}
.hero-inner {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, .98fr);
  min-height: 620px;
  padding-block: 4rem 3rem;
  align-items: center;
}
.eyebrow {
  color: var(--accent-dark);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: .75rem;
  text-transform: uppercase;
}
h1 {
  font-size: clamp(2.45rem, 5vw, 4.5rem);
  letter-spacing: 0;
  line-height: 1.02;
  margin-bottom: 1rem;
}
h2 {
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1.14;
  margin-bottom: .75rem;
}
h3 {
  font-size: 1.05rem;
  line-height: 1.25;
  margin-bottom: .4rem;
}
.lead {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 64ch;
}
.trust-list, .inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}
.trust-list li {
  background: var(--soft);
  border: 1px solid #cde8df;
  border-radius: 6px;
  color: #164e3d;
  font-size: .92rem;
  padding: .35rem .55rem;
}

.converter {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 44px rgba(16, 24, 40, .08);
  padding: 1rem;
}
.drop-zone {
  align-items: center;
  border: 2px dashed #a7b3c1;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  justify-content: center;
  min-height: 190px;
  padding: 1.25rem;
  text-align: center;
}
.drop-zone:hover, .drop-zone.dragging {
  background: var(--soft);
  border-color: var(--accent);
}
.drop-zone input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}
.drop-title { font-size: 1.18rem; font-weight: 800; }
.drop-meta, .file-name, .status, .section-intro, .card p, .faq-item p, .note {
  color: var(--muted);
}
.file-name, .status { font-size: .94rem; margin: .8rem 0 0; overflow-wrap: anywhere; }
.actions, .result-actions { display: flex; gap: .6rem; margin-top: 1rem; }
button, .button {
  align-items: center;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 750;
  justify-content: center;
  min-height: 44px;
  padding: .7rem 1rem;
}
button:hover, .button:hover { background: var(--accent-dark); text-decoration: none; }
button:disabled {
  cursor: wait;
  opacity: .82;
}
.button.secondary { background: #fff; border-color: var(--line); color: var(--ink); }
.button.secondary:hover { background: #f3f6f9; }
.button-spinner {
  animation: spin 750ms linear infinite;
  border: 2px solid rgba(255, 255, 255, .42);
  border-top-color: #fff;
  border-radius: 50%;
  display: none;
  height: 1rem;
  margin-right: .55rem;
  width: 1rem;
}
button.is-loading .button-spinner {
  display: inline-block;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.status.success { color: var(--accent-dark); }
.status.error { color: var(--error); }
.status.loading { color: var(--blue); }
.result-panel { margin-top: 1rem; }
.result-toolbar {
  align-items: center;
  display: flex;
  gap: .75rem;
  justify-content: space-between;
  margin-bottom: .7rem;
}
.preview {
  background: var(--code);
  border-radius: 8px;
  color: #eef4ff;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: .88rem;
  line-height: 1.55;
  margin: 0;
  max-height: 430px;
  overflow: auto;
  padding: 1rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.section { padding-block: 3.5rem; }
.section-intro { max-width: 74ch; }
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.5rem;
}
.two-col {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.5rem;
}
.card, .faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
}
.card p, .faq-item p { margin-bottom: 0; }
.band {
  background: #eef6f3;
  border-block: 1px solid #cde8df;
}
.steps { counter-reset: step; }
.steps h3::before {
  color: var(--accent);
  content: counter(step) ". ";
  counter-increment: step;
}
.faq-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.5rem;
}
.internal-links {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}
.internal-links a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: block;
  font-weight: 700;
  padding: .8rem;
}
.breadcrumbs {
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 1rem;
}
.site-footer {
  border-top: 1px solid var(--line);
}
.footer-inner {
  color: var(--muted);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding-block: 1.5rem;
}

@media (max-width: 880px) {
  .hero-inner, .grid, .two-col, .faq-grid, .internal-links {
    grid-template-columns: 1fr;
  }
  .hero-inner { min-height: auto; padding-top: 3rem; }
  .nav-links { display: none; }
  .result-toolbar, .result-actions, .actions, .footer-inner {
    align-items: stretch;
    flex-direction: column;
  }
}
