:root {
  --tool-card: #0c1511;
  --tool-surface: #111e18;
  --tool-border: rgba(255, 255, 255, .09);
  --tool-muted: #8da097;
  --tool-green: #b7ff5a;
  --tool-radius: 16px;
}

.tool-hero {
  padding: 64px 0 42px;
}

.tool-hero .container {
  max-width: 920px;
}

.tool-hero p {
  max-width: 720px;
}

.privacy-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.privacy-pills span {
  padding: 7px 11px;
  border: 1px solid rgba(183, 255, 90, .2);
  border-radius: 999px;
  background: rgba(183, 255, 90, .045);
  color: var(--text2, #a8b5ad);
  font-family: var(--f-head, "Manrope", sans-serif);
  font-size: 12px;
  font-weight: 600;
}

.tool-body {
  max-width: 920px;
  padding-bottom: 88px;
}

.tool-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  padding: 15px 18px;
  border: 1px solid rgba(114, 242, 196, .2);
  border-radius: 12px;
  background: rgba(114, 242, 196, .045);
  color: var(--text2, #a8b5ad);
}

.tool-note svg {
  flex: 0 0 auto;
  color: #72f2c4;
}

.tool-note p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.tool-note strong {
  color: var(--text, #f4f7f2);
}

.workflow-card {
  margin-top: 16px;
  padding: 28px;
  border: 1px solid var(--tool-border);
  border-radius: var(--tool-radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .024), transparent 36%),
    var(--tool-card);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 12px 32px rgba(0, 0, 0, .16);
}

.step-heading {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 22px;
}

.step-number {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(183, 255, 90, .3);
  border-radius: 50%;
  background: rgba(183, 255, 90, .08);
  color: var(--tool-green);
  font-family: var(--f-head, "Manrope", sans-serif);
  font-size: 13px;
  font-weight: 800;
}

.step-number.complete {
  background: var(--tool-green);
  color: #071008;
}

.step-heading h2 {
  margin: 1px 0 3px;
  color: var(--text, #f4f7f2);
  font-family: var(--f-head, "Manrope", sans-serif);
  font-size: 19px;
}

.step-heading p {
  margin: 0;
  color: var(--tool-muted);
  font-size: 13px;
  line-height: 1.5;
}

.upload-zone {
  position: relative;
  display: flex;
  min-height: 218px;
  padding: 28px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 2px dashed rgba(255, 255, 255, .14);
  border-radius: 14px;
  background: rgba(255, 255, 255, .015);
  color: var(--tool-muted);
  cursor: pointer;
  text-align: center;
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.upload-zone:hover,
.upload-zone.drag-over,
.upload-zone:focus-within {
  border-color: rgba(183, 255, 90, .55);
  background: rgba(183, 255, 90, .04);
}

.upload-zone:focus-within {
  box-shadow: 0 0 0 3px rgba(183, 255, 90, .12);
}

.upload-zone input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload-icon {
  display: grid;
  width: 72px;
  height: 72px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 18px;
  background: rgba(183, 255, 90, .08);
  color: var(--tool-green);
}

.upload-zone strong {
  color: var(--text, #f4f7f2);
  font-family: var(--f-head, "Manrope", sans-serif);
  font-size: 16px;
}

.upload-zone > span:not(.upload-icon):not(.upload-filename) {
  margin-top: 6px;
  font-size: 13px;
}

.upload-filename {
  display: none;
  max-width: 100%;
  margin-top: 13px;
  overflow: hidden;
  color: var(--tool-green);
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-filename.visible {
  display: block;
}

.file-details {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--tool-border);
  border-radius: 12px;
  background: var(--tool-border);
}

.file-details[hidden] {
  display: none;
}

.file-details div {
  min-width: 0;
  padding: 13px 12px;
  background: var(--tool-surface);
}

.file-details span,
.file-details strong {
  display: block;
}

.file-details span {
  margin-bottom: 4px;
  color: var(--tool-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.file-details strong {
  overflow: hidden;
  color: var(--text, #f4f7f2);
  font-family: var(--f-head, "Manrope", sans-serif);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.format-notice {
  margin: 11px 2px 0;
  color: var(--tool-muted);
  font-size: 12px;
  line-height: 1.5;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

fieldset + fieldset {
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid var(--tool-border);
}

legend {
  width: 100%;
  margin-bottom: 16px;
  color: var(--tool-green);
  font-family: var(--f-head, "Manrope", sans-serif);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--text2, #a8b5ad);
  font-family: var(--f-head, "Manrope", sans-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}

.field label span {
  color: var(--tool-muted);
  font-weight: 500;
}

.field input,
.field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 13px;
  border: 1px solid var(--tool-border);
  border-radius: 10px;
  outline: none;
  background: var(--tool-surface);
  color: var(--text, #f4f7f2);
  font-family: var(--f-body, "Inter", sans-serif);
  font-size: 15px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.field textarea {
  min-height: 94px;
  resize: vertical;
}

.field textarea.short-textarea {
  min-height: 68px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #687a71;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(183, 255, 90, .5);
  box-shadow: 0 0 0 3px rgba(183, 255, 90, .09);
}

.field input:invalid:not(:placeholder-shown) {
  border-color: rgba(255, 120, 120, .65);
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 28px;
  padding: 14px;
  border: 1px solid var(--tool-border);
  border-radius: 11px;
  background: rgba(255, 255, 255, .018);
  cursor: pointer;
}

.check-row input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--tool-green);
}

.check-row span,
.check-row small {
  display: block;
}

.check-row strong {
  color: var(--text, #f4f7f2);
  font-size: 13px;
}

.check-row small {
  margin-top: 2px;
  color: var(--tool-muted);
  font-size: 12px;
}

.btn-generate,
.btn-secondary,
.btn-download {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border-radius: 10px;
  font-family: var(--f-head, "Manrope", sans-serif);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

.btn-generate {
  width: 100%;
  border: 0;
}

.btn-generate:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  width: 100%;
  margin-top: 10px;
  border: 1px solid var(--tool-border);
  background: transparent;
  color: var(--text2, #a8b5ad);
}

.btn-secondary:hover {
  border-color: rgba(183, 255, 90, .3);
  background: rgba(183, 255, 90, .04);
  color: var(--text, #f4f7f2);
}

.progress-panel {
  margin-top: 18px;
  padding: 16px;
  border-radius: 11px;
  background: var(--tool-surface);
}

.progress-panel[hidden] {
  display: none;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 9px;
  color: var(--text2, #a8b5ad);
  font-size: 13px;
}

.progress-label strong {
  color: var(--tool-green);
}

progress {
  display: block;
  width: 100%;
  height: 8px;
  overflow: hidden;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, .08);
  appearance: none;
}

progress::-webkit-progress-bar {
  border-radius: 99px;
  background: rgba(255, 255, 255, .08);
}

progress::-webkit-progress-value {
  border-radius: 99px;
  background: linear-gradient(90deg, var(--tool-green), #72f2c4);
}

progress::-moz-progress-bar {
  border-radius: 99px;
  background: linear-gradient(90deg, var(--tool-green), #72f2c4);
}

.progress-panel p {
  margin: 9px 0 0;
  color: var(--tool-muted);
  font-size: 11px;
}

.message {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
}

.message[hidden] {
  display: none;
}

.error-message {
  border: 1px solid rgba(255, 120, 120, .25);
  background: rgba(255, 120, 120, .06);
  color: #ffb5b5;
}

.success-message {
  border: 1px solid rgba(114, 242, 196, .24);
  background: rgba(114, 242, 196, .055);
  color: #aaf8dd;
}

.result-card {
  border-color: rgba(183, 255, 90, .22);
}

.result-card[hidden] {
  display: none;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.btn-download {
  min-width: 190px;
  padding: 0 20px;
  border: 0;
  background: var(--tool-green);
  color: #071008;
}

.result-actions .btn-secondary {
  width: auto;
  min-width: 170px;
  margin: 0;
  padding: 0 20px;
}

.snippet-wrap {
  overflow: hidden;
  border: 1px solid var(--tool-border);
  border-radius: 11px;
  background: #09100d;
}

.snippet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--tool-border);
}

.snippet-header span {
  color: var(--tool-muted);
  font-family: var(--f-head, "Manrope", sans-serif);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.btn-copy {
  padding: 5px 11px;
  border: 1px solid rgba(183, 255, 90, .25);
  border-radius: 7px;
  background: transparent;
  color: var(--tool-green);
  font-family: var(--f-head, "Manrope", sans-serif);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.snippet-wrap pre {
  max-height: 340px;
  margin: 0;
  padding: 16px;
  overflow: auto;
  color: var(--text2, #a8b5ad);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.compatibility {
  margin-top: 40px;
}

.compatibility h2 {
  margin-bottom: 15px;
  color: var(--text, #f4f7f2);
  font-family: var(--f-head, "Manrope", sans-serif);
  font-size: 18px;
}

.compatibility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.compatibility article {
  padding: 17px;
  border: 1px solid var(--tool-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, .018);
}

.compatibility strong,
.compatibility span {
  display: block;
}

.compatibility strong {
  margin-bottom: 6px;
  color: var(--tool-green);
  font-family: var(--f-head, "Manrope", sans-serif);
  font-size: 13px;
}

.compatibility span,
.compatibility > p {
  color: var(--tool-muted);
  font-size: 12px;
  line-height: 1.6;
}

.compatibility > p {
  margin: 13px 1px 0;
}

.footer-logo {
  font-size: 18px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--tool-green);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .tool-hero {
    padding: 50px 0 34px;
  }

  .workflow-card {
    padding: 22px 18px;
  }

  .file-details {
    grid-template-columns: repeat(2, 1fr);
  }

  .file-details div:last-child {
    grid-column: 1 / -1;
  }

  .field-grid,
  .compatibility-grid {
    grid-template-columns: 1fr;
  }

  .field.full {
    grid-column: auto;
  }
}

@media (max-width: 480px) {
  .upload-zone {
    min-height: 190px;
    padding: 22px 16px;
  }

  .file-details {
    grid-template-columns: 1fr;
  }

  .file-details div:last-child {
    grid-column: auto;
  }

  .result-actions {
    flex-direction: column;
  }

  .btn-download,
  .result-actions .btn-secondary {
    width: 100%;
  }
}

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