:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f9fafb;
  --surface-accent: #e6f7f5;
  --surface-card: #ffffff;
  --surface-control: #ffffff;
  --surface-header: #f3f4f6;
  --surface-hover: #e6f7f5;
  --text: #334155;
  --text-strong: #0f172a;
  --muted: #475569;
  --subtle: #64748b;
  --border: rgba(0, 155, 125, 0.2);
  --border-strong: rgba(0, 155, 125, 0.46);
  --border-muted: rgba(15, 23, 42, 0.1);
  --primary: #009b7d;
  --primary-dark: #007a63;
  --primary-soft: #e6f7f5;
  --accent: #3b82f6;
  --success: #15803d;
  --success-soft: #ecfdf5;
  --danger: #b91c1c;
  --danger-soft: #fef2f2;
  --action: #19a58a;
  --action-hover: #148f77;
  --action-text: #ffffff;
  --highlight: #009b7d;
  --grid-line: rgba(0, 155, 125, 0.04);
  --dropzone-bg: #f9fafb;
  --dropzone-hover: #e6f7f5;
  --button-shadow: 0 8px 20px rgba(0, 155, 125, 0.16);
  --button-shadow-hover: 0 10px 24px rgba(0, 155, 125, 0.22);
  --tool-shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
  --footer-bg: #f9fafb;
  --footer-text: #334155;
  --footer-muted: #64748b;
  --footer-subtle: #94a3b8;
  --shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 18px 42px rgba(15, 23, 42, 0.14);
  --radius: 12px;
  --radius-small: 8px;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#tool,
#how-to-use,
#faq {
  scroll-margin-top: 88px;
}

body {
  margin: 0;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

body::before,
body::after {
  display: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
select,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.shell {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
}

.narrow {
  width: min(820px, calc(100% - 40px));
  margin: 0 auto;
}

.sr-only,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 20;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  margin: 0;
  clip: auto;
  background: var(--surface);
  border: 2px solid var(--primary);
  border-radius: var(--radius-small);
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--border-muted);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  color: var(--text-strong);
}

.brand img {
  display: block;
}

.brand-wordmark {
  font-size: 1.03rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.main-nav a,
.footer-link {
  color: var(--muted);
  font-size: 0.91rem;
  font-weight: 650;
}

.main-nav a {
  padding: 9px 11px;
  border-radius: 9px;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.is-active {
  color: var(--highlight);
  background: var(--primary-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.language-picker {
  position: relative;
  display: block;
}

.language-picker > summary {
  list-style: none;
}

.language-picker > summary::-webkit-details-marker {
  display: none;
}

.language-picker-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  max-width: 188px;
  padding: 0 12px;
  color: #ffffff;
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.language-picker-toggle:hover,
.language-picker[open] > .language-picker-toggle {
  color: #ffffff;
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow: 0 8px 18px rgba(0, 155, 125, 0.18);
}

.language-picker-toggle:focus-visible,
.language-option:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.language-picker-icon {
  display: inline-flex;
  flex: 0 0 auto;
  color: currentColor;
}

.language-picker-icon svg {
  width: 17px;
  height: 17px;
}

.language-picker-current {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.language-picker-chevron {
  width: 7px;
  height: 7px;
  margin: -4px 1px 0 2px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 160ms ease, margin 160ms ease;
}

.language-picker[open] > .language-picker-toggle .language-picker-chevron {
  margin-top: 4px;
  transform: rotate(225deg);
}

.language-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 9px);
  right: 0;
  display: grid;
  gap: 3px;
  min-width: 180px;
  max-width: min(228px, calc(100vw - 28px));
  padding: 6px;
  background: var(--surface-card);
  border: 1px solid var(--border-muted);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}

.language-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 39px;
  padding: 8px 10px;
  color: var(--muted);
  border-radius: 9px;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.25;
  transition: color 160ms ease, background 160ms ease;
}

.language-option:hover,
.language-option:focus-visible {
  color: var(--text-strong);
  background: var(--surface-hover);
}

.language-option.is-current {
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.language-option.is-current:hover,
.language-option.is-current:focus-visible {
  color: var(--highlight);
  background: var(--surface-hover);
}

.language-option-check {
  flex: 0 0 auto;
  color: var(--primary);
  font-size: 1rem;
  font-weight: 900;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.icon-button:hover,
.icon-button:focus-visible {
  color: var(--primary-dark);
  background: var(--surface-hover);
  border-color: var(--primary);
}

.icon-button svg {
  width: 20px;
  height: 20px;
}

.hero-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 54px 0 44px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.hero-section::before {
  display: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: clamp(24px, 3vw, 32px);
  max-width: 980px;
}

.eyebrow,
.tool-kicker,
.article-label {
  margin: 0 0 12px;
  color: var(--primary-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  color: var(--text-strong);
  letter-spacing: -0.04em;
  line-height: 1.12;
}

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(2.6rem, 6vw, 5.15rem);
}

.hero-copy h1 {
  max-width: 940px;
  margin-bottom: 16px;
  font-size: clamp(2.15rem, 4.8vw, 4.2rem);
  line-height: 1.04;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.85rem, 4vw, 3rem);
}

h3 {
  margin-bottom: 9px;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.hero-intro,
.page-lead {
  max-width: 670px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.1rem);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.trust-pill,
.local-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 4px 9px;
  color: var(--muted);
  background: var(--surface-accent);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.77rem;
  font-weight: 750;
}

.trust-pill svg {
  width: 15px;
  height: 15px;
  color: var(--primary-dark);
}

.tool-card {
  padding: clamp(16px, 2.2vw, 20px);
  background: var(--surface-card);
  border: 2px solid var(--primary);
  border-radius: 20px;
  box-shadow: var(--tool-shadow);
}

.tool-card-header,
.queue-heading,
.progress-meta,
.tool-actions,
.format-line,
.example-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.tool-card-header {
  align-items: flex-start;
  margin-bottom: 16px;
}

.tool-card h2 {
  margin-bottom: 0;
  font-size: clamp(1.25rem, 2.3vw, 1.6rem);
}

.local-badge {
  flex: 0 0 auto;
  color: var(--success);
  background: var(--success-soft);
}

.dropzone {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 14px 16px 12px;
  text-align: center;
  background: var(--dropzone-bg);
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-small);
  outline: 0;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.dropzone::after {
  position: absolute;
  inset: 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: scale(0.97);
  transition: border-color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.dropzone > * {
  position: relative;
  z-index: 1;
}

.dropzone:hover,
.dropzone:focus-visible,
.dropzone-active {
  background: var(--dropzone-hover);
  border-color: var(--primary);
}

.dropzone-active {
  transform: translateY(-2px);
}

.dropzone-active::after {
  border-color: rgba(0, 155, 125, 0.52);
  opacity: 1;
  transform: scale(1);
  animation: dropzone-ring 1.2s ease-in-out infinite;
}

.dropzone-active .dropzone-icon {
  color: var(--action-text);
  background: var(--primary);
  border-color: var(--primary);
  animation: dropzone-icon-pulse 900ms ease-in-out infinite;
}

.dropzone-accepted {
  animation: dropzone-accepted 520ms ease-out;
}

.dropzone-accepted .dropzone-icon {
  animation: dropzone-icon-accepted 520ms ease-out;
}

.dropzone strong {
  color: var(--text-strong);
  font-size: 1rem;
}

.dropzone span,
.dropzone small,
.tool-footnote,
.format-line,
.queue-limit {
  color: var(--muted);
  font-size: 0.82rem;
}

.dropzone-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(0, 155, 125, 0.28);
  color: var(--primary-dark);
  background: rgba(0, 155, 125, 0.12);
  border-radius: 12px;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.dropzone-icon svg {
  width: 22px;
  height: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.91rem;
  font-weight: 780;
  line-height: 1;
  box-shadow: var(--button-shadow);
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover:not(:disabled),
.button:focus-visible:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: var(--button-shadow-hover);
}

.button-primary {
  color: var(--action-text);
  background: var(--action);
  border-color: var(--primary);
}

.button-primary:hover:not(:disabled),
.button-primary:focus-visible:not(:disabled) {
  background: var(--action-hover);
}

.button-secondary {
  color: var(--text);
  background: var(--surface-control);
  border-color: var(--border-strong);
  box-shadow: none;
}

.button-secondary:hover:not(:disabled),
.button-secondary:focus-visible:not(:disabled) {
  background: var(--surface-hover);
  border-color: var(--primary);
}

.button-quiet {
  color: var(--muted);
  background: transparent;
  box-shadow: none;
}

.button-quiet:hover:not(:disabled),
.button-quiet:focus-visible:not(:disabled) {
  color: var(--danger);
}

.button-large {
  min-height: 48px;
}

.button-small {
  min-height: 34px;
  padding: 0 11px;
  font-size: 0.78rem;
}

.format-line {
  align-items: flex-start;
  padding: 11px 0 13px;
  border-bottom: 1px solid var(--border);
}

.format-line strong {
  max-width: 70%;
  color: var(--text);
  text-align: right;
  font-size: 0.79rem;
  font-weight: 700;
  line-height: 1.5;
}

.queue-heading {
  margin: 13px 0 7px;
}

.queue-heading h3 {
  margin-bottom: 0;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.queue-panel {
  position: relative;
  min-height: 64px;
  padding: 6px;
  overflow: hidden;
  background: var(--surface-soft);
  border-radius: var(--radius-small);
}

.queue-panel::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--primary-soft);
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: scale(0.985);
}

.queue-panel-updated::after {
  animation: queue-panel-flash 650ms ease-out;
}

.queue-empty {
  margin: 10px;
  color: var(--subtle);
  font-size: 0.88rem;
  text-align: center;
}

.file-queue {
  display: grid;
  gap: 7px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.queue-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--surface-control);
  border: 1px solid var(--border);
  border-radius: 9px;
}

.queue-item-details {
  min-width: 0;
}

.queue-item-name {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.queue-item-meta,
.queue-item-state {
  color: var(--muted);
  font-size: 0.73rem;
}

.queue-item-done .queue-item-state {
  color: var(--success);
}

.queue-item-error .queue-item-state {
  max-width: 160px;
  color: var(--danger);
  text-align: right;
}

.queue-item-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tool-progress {
  padding: 12px 0 3px;
}

.progress-meta {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

progress {
  display: block;
  width: 100%;
  height: 7px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: var(--surface-soft);
}

progress::-webkit-progress-bar {
  background: var(--surface-soft);
}

progress::-webkit-progress-value {
  background: var(--primary);
  border-radius: 999px;
}

progress::-moz-progress-bar {
  background: var(--primary);
  border-radius: 999px;
}

.tool-error {
  padding: 10px 12px;
  margin: 8px 0 0;
  color: var(--danger);
  background: var(--danger-soft);
  border-radius: 8px;
  font-size: 0.82rem;
}

.tool-actions {
  flex-wrap: wrap;
  justify-content: flex-start;
  padding-top: 10px;
}

.tool-actions .button-primary {
  flex: 1 1 190px;
}

.tool-footnote {
  margin: 12px 0 0;
  line-height: 1.55;
}

.content-section {
  padding: 84px 0;
}

.muted-section {
  background: var(--surface-soft);
  border-block: 1px solid var(--border);
}

.intro-section {
  padding-top: 38px;
}

.intro-section p,
.section-heading > p,
.two-column > div > p,
.narrow > p {
  color: var(--muted);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 32px;
}

.section-heading > p {
  max-width: 440px;
  margin-bottom: 4px;
}

.steps-grid,
.related-grid,
.article-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.step-card,
.related-card,
.article-card,
.example-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  box-shadow: var(--shadow);
}

.step-card {
  min-height: 210px;
  padding: 22px;
}

.step-card p,
.related-card small,
.article-card p,
.prose p,
.prose li {
  color: var(--muted);
}

.step-number {
  display: inline-block;
  margin-bottom: 38px;
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: 850;
  letter-spacing: -0.08em;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
}

.coverage-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  background: var(--surface-card);
}

.coverage-table th,
.coverage-table td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.coverage-table thead th {
  color: var(--text);
  background: var(--surface-header);
  font-size: 0.79rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.coverage-table tbody th {
  color: var(--primary-dark);
  font-size: 0.92rem;
}

.coverage-table td {
  color: var(--muted);
  font-size: 0.87rem;
}

.coverage-table tr:last-child th,
.coverage-table tr:last-child td {
  border-bottom: 0;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 50px;
  align-items: center;
}

.example-card {
  padding: 22px;
}

.example-row {
  align-items: flex-start;
  padding: 12px 0;
}

.example-row span {
  color: var(--muted);
  font-size: 0.86rem;
}

.example-row strong {
  max-width: 70%;
  color: var(--text);
  font-size: 0.9rem;
  text-align: right;
}

.example-arrow {
  color: var(--primary);
  text-align: center;
}

.check-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: var(--muted);
}

.check-list svg {
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  color: var(--primary);
  margin-top: 2px;
}

.related-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.related-card,
.article-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 180px;
  padding: 22px;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.related-card:hover,
.related-card:focus-visible,
.article-card:hover,
.article-card:focus-visible {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.related-card > span:first-child,
.article-read {
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.related-card strong,
.related-card h3,
.article-card h2 {
  margin: 10px 0 8px;
  font-size: 1.18rem;
}

.related-card small {
  max-width: 30rem;
}

.topic-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--primary);
  font-size: 0.87rem;
  font-weight: 750;
}

.topic-link:hover,
.topic-link:focus-visible {
  color: var(--primary-dark);
}

.topic-note {
  max-width: 820px;
  margin: 24px 0 0;
  color: var(--muted);
}

.arrow,
.article-read {
  margin-top: auto;
  padding-top: 18px;
}

.faq-section {
  padding-top: 70px;
}

.faq-list {
  border-top: 1px solid var(--border);
}

.faq-list details {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.faq-list summary {
  padding-right: 24px;
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 750;
}

.faq-list p {
  max-width: 700px;
  padding-top: 10px;
  margin-bottom: 0;
  color: var(--muted);
}

.page-hero {
  padding: 84px 0 54px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.page-hero .page-lead {
  margin-right: auto;
  margin-left: auto;
}

.prose {
  max-width: 780px;
}

.prose section + section {
  margin-top: 42px;
}

.prose h2 {
  font-size: clamp(1.55rem, 3vw, 2.1rem);
}

.prose p,
.prose li {
  font-size: 1.02rem;
}

.prose ul {
  padding-left: 22px;
}

.prose li + li {
  margin-top: 8px;
}

.related-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 30px;
  margin-top: 42px;
  border-top: 1px solid var(--border);
}

.related-inline a {
  padding: 11px 14px;
  color: var(--text);
  background: var(--primary-soft);
  border-radius: 9px;
  font-weight: 750;
}

.article-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 60px;
  padding-bottom: 84px;
}

.article-page .page-hero {
  padding-bottom: 45px;
}

.article-aside {
  align-self: start;
  position: sticky;
  top: 105px;
  padding: 18px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
}

.aside-title {
  color: var(--subtle);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article-aside a {
  display: block;
  padding: 10px 0;
  color: var(--primary-dark);
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  font-weight: 700;
}

.article-faq h3 {
  margin-top: 24px;
  color: var(--text);
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.article-cta {
  padding: 24px;
  margin-top: 46px;
  background: var(--primary-soft);
  border-radius: var(--radius-small);
}

.article-cta strong {
  font-size: 1.2rem;
}

.article-cta p {
  color: var(--muted);
}

.site-footer {
  padding: 54px 0 20px;
  background: var(--footer-bg);
  border-top: 1px solid var(--border);
  color: var(--footer-text);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 38px;
}

.footer-brand {
  color: var(--primary-dark);
}

.footer-copy {
  max-width: 390px;
  margin: 18px 0;
  color: var(--footer-muted);
  font-size: 0.91rem;
}

.footer-email,
.footer-link {
  display: block;
  width: fit-content;
  padding: 4px 0;
  color: var(--footer-muted);
  font-size: 0.88rem;
}

.footer-email:hover,
.footer-link:hover,
.footer-email:focus-visible,
.footer-link:focus-visible {
  color: var(--primary-dark);
}

.footer-title {
  margin: 7px 0 12px;
  color: var(--text-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  color: var(--footer-subtle);
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
}

.error-page {
  min-height: 55vh;
}

@keyframes dropzone-ring {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.985);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes dropzone-icon-pulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-3px) scale(1.05);
  }
}

@keyframes dropzone-accepted {
  0% {
    transform: scale(0.995);
  }

  55% {
    transform: scale(1.008);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes dropzone-icon-accepted {
  0% {
    opacity: 0.7;
    transform: scale(0.9);
  }

  55% {
    opacity: 1;
    transform: scale(1.08);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes queue-panel-flash {
  0% {
    opacity: 0.82;
    transform: scale(0.985);
  }

  55% {
    opacity: 0.24;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(1);
  }
}

@media (max-width: 980px) {
  .header-inner {
    gap: 14px;
  }

  .main-nav {
    gap: 0;
  }

  .main-nav a {
    padding: 8px;
    font-size: 0.82rem;
  }

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

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

  .hero-section {
    padding-top: 42px;
    padding-bottom: 34px;
  }

  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-aside {
    position: static;
  }
}

@media (max-width: 680px) {
  .shell,
  .narrow {
    width: min(100% - 28px, var(--max-width));
  }

  .site-header {
    position: relative;
    z-index: 40;
  }

  .header-inner {
    flex-wrap: wrap;
    padding: 13px 0;
  }

  .main-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    margin-left: 0;
  }

  .main-nav a {
    flex: 0 0 auto;
  }

  .language-picker {
    margin-left: auto;
  }

  .language-menu {
    right: 0;
    left: auto;
  }

  .hero-section {
    padding: 34px 0 30px;
  }

  h1 {
    font-size: clamp(2.35rem, 13vw, 3.7rem);
  }

  .hero-copy h1 {
    margin-bottom: 14px;
    font-size: clamp(2.05rem, 8.2vw, 3rem);
    line-height: 1.04;
  }

  .hero-intro {
    margin-bottom: 17px;
  }

  .hero-grid {
    gap: 22px;
  }

  .tool-card {
    padding: 16px;
  }

  .tool-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .tool-actions .button {
    width: 100%;
  }

  .tool-actions .button-primary {
    flex: 0 0 auto;
  }

  .queue-item {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .queue-item-state {
    grid-column: 2;
    grid-row: 1;
  }

  .queue-item-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .content-section {
    padding: 58px 0;
  }

  .section-heading,
  .two-column {
    display: block;
  }

  .section-heading > p {
    margin-top: 18px;
  }

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

  .step-card {
    min-height: auto;
  }

  .step-number {
    margin-bottom: 20px;
  }

  .two-column > * + * {
    margin-top: 28px;
  }

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

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    display: block;
  }

  .footer-bottom span {
    display: block;
  }

  .footer-bottom span + span {
    margin-top: 8px;
  }
}

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

  .dropzone-active {
    transform: none;
  }

  .dropzone-active::after,
  .dropzone-active .dropzone-icon,
  .dropzone-accepted,
  .dropzone-accepted .dropzone-icon,
  .queue-panel-updated::after {
    animation: none !important;
  }
}
