:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #64748b;
  --line: #d8e0e7;
  --surface: #ffffff;
  --surface-strong: #f8fafc;
  --teal: #0f766e;
  --teal-dark: #115e59;
  --blue: #2563eb;
  --amber: #f59e0b;
  --rose: #be123c;
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
  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;
  color: var(--ink);
  background:
    linear-gradient(180deg, #eefdf9 0, #ffffff 410px),
    #ffffff;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

.site-header,
.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  font-size: 0.72rem;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #334155;
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--teal);
}

main {
  overflow: hidden;
}

.tool-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: 40px;
  width: min(1120px, calc(100% - 32px));
  min-height: calc(100svh - 92px);
  margin: 0 auto;
  padding: 42px 0 56px;
  align-items: center;
}

.hero-copy {
  max-width: 540px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.35rem, 7vw, 4.9rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.hero-text {
  max-width: 48rem;
  color: #42526a;
  font-size: 1.12rem;
  line-height: 1.65;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-points span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #1f2937;
  font-size: 0.9rem;
  font-weight: 800;
}

.converter-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  padding: clamp(18px, 3vw, 28px);
}

.privacy-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  border: 1px solid rgba(15, 118, 110, 0.26);
  border-radius: 8px;
  background: #ecfdf5;
  padding: 12px 14px;
  color: #164e43;
}

.privacy-callout strong {
  font-size: 0.92rem;
}

.privacy-callout span {
  color: #315f58;
  font-size: 0.9rem;
  font-weight: 700;
}

.drop-zone {
  position: relative;
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 150px;
  padding: 18px;
  border: 2px dashed #a7b7c6;
  border-radius: 8px;
  background: #f8fbfc;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.drop-zone.is-dragging {
  border-color: var(--teal);
  background: #e8fbf7;
  transform: translateY(-1px);
}

.drop-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.drop-visual {
  display: grid;
  width: 108px;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: #071820;
}

.drop-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.drop-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.drop-copy strong {
  font-size: 1.06rem;
}

.drop-copy span,
.file-meta,
.status {
  color: var(--muted);
}

.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}

.field {
  display: grid;
  gap: 7px;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 800;
}

.field select,
.field input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 12px;
}

.field select:focus,
.field input:focus,
.button:focus-visible,
.site-nav a:focus-visible,
.brand:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.28);
  outline-offset: 2px;
}

.file-meta {
  min-height: 24px;
  margin-top: 16px;
  font-size: 0.92rem;
}

.progress-wrap {
  overflow: hidden;
  height: 10px;
  margin-top: 12px;
  border-radius: 999px;
  background: #e2e8f0;
}

.progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--blue), var(--amber));
  transition: width 160ms ease;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 16px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--teal);
  color: #ffffff;
}

.button.primary:hover {
  background: var(--teal-dark);
}

.button.secondary {
  border-color: #b6c3d1;
  background: #ffffff;
  color: #17202a;
}

.button:disabled,
.button.is-disabled {
  opacity: 0.52;
  cursor: not-allowed;
  pointer-events: none;
}

.status {
  min-height: 24px;
  margin: 14px 0 0;
  font-size: 0.92rem;
}

.status.is-error {
  color: var(--rose);
  font-weight: 800;
}

.preview-player {
  width: 100%;
  margin-top: 14px;
}

.content-band,
.split-band,
.link-band {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0;
  border-top: 1px solid #e2e8f0;
}

.section-heading {
  max-width: 700px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.steps li,
.use-grid article {
  border: 1px solid #dce4ec;
  border-radius: 8px;
  background: var(--surface);
  padding: 20px;
  line-height: 1.55;
}

.steps li {
  min-height: 138px;
}

.split-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 42px;
  align-items: start;
}

.copy-stack {
  color: #475569;
  font-size: 1.03rem;
  line-height: 1.72;
}

.use-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.use-grid p {
  margin-bottom: 0;
  color: #526274;
  line-height: 1.6;
}

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

details {
  border: 1px solid #dce4ec;
  border-radius: 8px;
  background: #ffffff;
  padding: 16px 18px;
}

summary {
  color: #1f2937;
  cursor: pointer;
  font-weight: 900;
}

details p {
  margin: 12px 0 0;
  color: #526274;
  line-height: 1.65;
}

details a {
  color: var(--blue);
  font-weight: 800;
}

.link-band {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 34px 0 70px;
}

.link-band a {
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 10px 14px;
  background: #ffffff;
  color: #1f2937;
  font-weight: 800;
  text-decoration: none;
}

.link-band a:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 0 34px;
  border-top: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 0.92rem;
}

.article-page {
  width: min(840px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 78px;
}

.article-page h1 {
  margin-bottom: 20px;
  font-size: clamp(2.1rem, 7vw, 4.1rem);
}

.article-page p,
.article-page li {
  color: #475569;
  font-size: 1.04rem;
  line-height: 1.75;
}

.article-page a {
  color: var(--blue);
  font-weight: 800;
}

.article-page ul,
.article-page ol {
  padding-left: 1.2rem;
}

.article-cta {
  margin-top: 34px;
  padding: 22px;
  border: 1px solid #dce4ec;
  border-radius: 8px;
  background: #f8fafc;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 16px 0;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .tool-hero,
  .split-band {
    grid-template-columns: 1fr;
  }

  .tool-hero {
    min-height: auto;
    padding-top: 28px;
  }

  .hero-copy {
    max-width: none;
  }

  .steps,
  .use-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .tool-hero,
  .site-header,
  .site-footer,
  .content-band,
  .split-band,
  .link-band,
  .article-page {
    width: min(100% - 24px, 1120px);
  }

  .drop-zone {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .drop-visual {
    width: 78px;
  }

  .drop-zone .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }

  .actions .button {
    width: 100%;
  }

  .privacy-callout {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .site-footer {
    flex-direction: column;
  }
}
