:root {
  color-scheme: dark;
  --paper: #090a0e;
  --paper-soft: #0d0e13;
  --panel: #121318;
  --panel-raised: #17191f;
  --ink: #f5f1e8;
  --muted: #aaa79f;
  --quiet: #8b8880; /* small hints and labels: 5.2:1 on the panels (was #77746e, 4.0:1) */
  --line: rgba(245, 241, 232, 0.13);
  --line-strong: rgba(245, 241, 232, 0.24);
  --acid: #d9ff59;
  --acid-deep: #b9d94a;
  --blue: #7c83ff;
  --orange: #ff6c43;
  --danger: #ff817c;
  --success: #c6ed69;
  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --shadow: 0 28px 100px rgba(0, 0, 0, 0.35);
  --shell: min(1380px, calc(100vw - 48px));
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 5% -8%, rgba(124, 131, 255, 0.22), transparent 34rem),
    radial-gradient(circle at 93% 4%, rgba(217, 255, 89, 0.09), transparent 30rem),
    linear-gradient(180deg, #0b0c11 0, var(--paper) 58%, #0c0d11 100%);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select { font: inherit; }

button,
input,
select,
a,
label { -webkit-tap-highlight-color: transparent; }

button { color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 11px 15px;
  transform: translateY(-150%);
  border-radius: 10px;
  background: var(--acid);
  color: #0a0b0f;
  font-weight: 850;
  text-decoration: none;
}

.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 3px solid var(--acid);
  outline-offset: 4px;
}

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 10, 14, 0.72);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--acid);
  color: #0a0b0f;
  font-size: 0.9rem;
  font-weight: 950;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
  text-decoration: none;
}

.site-nav a:hover { background: rgba(255, 255, 255, 0.055); color: var(--ink); }

/* First screen: title, the file chooser, one paragraph. The chooser sits beside the title on wide screens and
   directly under it on narrow ones, so it is visible without scrolling. The step list and the chips follow the tool. */
.hero {
  padding-block: clamp(26px, 3.4vw, 46px) clamp(22px, 2.6vw, 32px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  grid-template-areas:
    "title start"
    "lede start";
  grid-template-rows: auto 1fr;
  column-gap: 18px;
}

.hero__title {
  grid-area: title;
  min-width: 0;
}

.hero__start {
  grid-area: start;
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
}

.eyebrow,
.step-label {
  margin: 0 0 16px;
  color: var(--acid);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.71rem;
  font-weight: 850;
  letter-spacing: 0.15em;
}

.hero .eyebrow { margin-bottom: 12px; }

.hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 11.2vw, 4.6rem);
  line-height: 0.9;
  letter-spacing: -0.075em;
}

.hero h1 em {
  display: block;
  color: transparent;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.06em;
  -webkit-text-stroke: 1.3px rgba(245, 241, 232, 0.74);
}

.hero__lede {
  grid-area: lede;
  max-width: 62ch;
  margin: clamp(16px, 1.9vw, 24px) 0 0;
  color: #c8c4bc;
  font-size: clamp(0.97rem, 0.9rem + 0.3vw, 1.12rem);
  line-height: 1.62;
}

.hero__note {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

/* A file the converter can't use is explained here, right under the chooser, where the visitor has just been
   looking. The same words also show beside the Convert button. */
.source-error {
  margin: 0;
  padding: 11px 14px;
  border: 1px solid rgba(255, 129, 124, 0.38);
  border-radius: 12px;
  background: rgba(255, 129, 124, 0.09);
  color: #ffaaa6;
  font-size: 0.84rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.source-error a { color: var(--ink); font-weight: 700; text-underline-offset: 2px; }
.source-error a:focus-visible { outline: 3px solid var(--acid); outline-offset: 2px; border-radius: 3px; }

.trust-list {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  list-style: none;
}

/* under the three steps: the chips, and the sentence about what the converter takes */
.steps-foot {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px 36px;
}

.trust-list li,
.local-pill,
.mode-pill {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.025em;
}

/* The three steps, after the tool */
.steps {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(18px, 3vw, 44px);
  list-style: none;
}

.steps li {
  min-height: 76px;
  padding-block: 14px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-content: center;
  align-items: baseline;
  gap: 2px 14px;
  border-top: 1px solid var(--line-strong);
}

.steps li > span {
  grid-row: span 2;
  color: var(--acid);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
  font-weight: 800;
}

.steps strong { font-size: 0.95rem; }
.steps small { grid-column: 2; color: var(--muted); font-size: 0.82rem; }

.workbench {
  padding-block: 0;
}

.output-section__head,
.method__intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 36px;
  padding-bottom: 34px;
}

.method h2 {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(2rem, 4.7vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.method__note,
.output-section__head > p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  gap: 18px;
  align-items: start;
}

.panel {
  min-width: 0;
  padding: clamp(20px, 2.8vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(18, 19, 24, 0.93);
  box-shadow: var(--shadow);
}

.settings-panel {
  position: sticky;
  top: 18px;
}

.panel__head {
  min-height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.panel h2,
.output-section h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.4vw, 2.25rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.mode-pill[data-mode="user"],
.local-pill {
  flex: 0 0 auto;
  border-color: rgba(217, 255, 89, 0.28);
  color: var(--acid);
  background: rgba(217, 255, 89, 0.08);
}

.drop-zone {
  min-height: 154px;
  padding: 18px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border: 1px dashed rgba(245, 241, 232, 0.28);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.drop-zone:hover,
.drop-zone[data-dragover="true"] {
  border-color: var(--acid);
  background: rgba(217, 255, 89, 0.055);
  transform: translateY(-2px);
}

/* The file input itself is 1 px and transparent, so the keyboard focus ring is drawn on the drop area. */
.drop-zone:has(input:focus-visible) {
  border-color: var(--acid);
  outline: 3px solid var(--acid);
  outline-offset: 4px;
}

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

.drop-zone__mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--acid);
  color: #0a0b0f;
  font-size: 1.7rem;
  line-height: 1;
}

.drop-zone__copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.drop-zone__copy strong { font-size: 0.98rem; }
.drop-zone__copy small { color: var(--muted); line-height: 1.5; }

.drop-zone__action {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.preview-stage {
  position: relative;
  min-height: 360px;
  margin-top: 20px;
  padding: clamp(18px, 4vw, 34px);
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(45deg, rgba(255,255,255,.025) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.025) 75%),
    linear-gradient(45deg, rgba(255,255,255,.025) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.025) 75%),
    #0b0c10;
  background-position: 0 0, 12px 12px;
  background-size: 24px 24px;
}

.preview-stage canvas {
  display: block;
  max-width: 100%;
  max-height: 620px;
  width: auto;
  height: auto;
  border-radius: 3px;
  background: white;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.44);
}

.preview-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 10px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 999px;
  background: rgba(245, 241, 232, 0.92);
  color: #121318;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  backdrop-filter: blur(10px);
}

.preview-loading {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  color: var(--ink);
  background: rgba(9, 10, 14, 0.82);
  backdrop-filter: blur(8px);
}

.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(245, 241, 232, 0.2);
  border-top-color: var(--acid);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.source-facts {
  margin: 16px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.source-facts div {
  min-width: 0;
  padding: 13px 14px;
  border-right: 1px solid var(--line);
}

.source-facts div:last-child { border-right: 0; }
.source-facts dt { color: var(--quiet); font-size: 0.67rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; }
.source-facts dd { margin: 4px 0 0; overflow-wrap: anywhere; font-size: 0.82rem; font-weight: 720; }

.button {
  min-height: 44px;
  padding: 10px 15px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.83rem;
  font-weight: 850;
  transition: transform 160ms ease, opacity 160ms ease, background 160ms ease;
}

.button:hover:not(:disabled) { transform: translateY(-2px); }
.button:disabled { cursor: not-allowed; opacity: 0.42; }
.button--quiet { border: 1px solid var(--line); background: transparent; color: var(--muted); }
.button--accent { background: var(--acid); color: #0a0b0f; }
.button--dark { border: 1px solid var(--line-strong); background: #f3efe6; color: #101116; }
.button--danger { border: 1px solid rgba(255, 129, 124, 0.32); background: rgba(255, 129, 124, 0.08); color: var(--danger); }

#clearSource { margin-top: 16px; }

.field,
.control-group {
  min-width: 0;
  margin: 20px 0 0;
}

.field {
  display: grid;
  gap: 8px;
}

.field > span,
.control-group legend,
.colour-field > span {
  color: #d8d4cc;
  font-size: 0.78rem;
  font-weight: 800;
}

.field small,
.control-group > small {
  color: var(--quiet);
  font-size: 0.72rem;
  line-height: 1.5;
}

.field small strong { color: var(--muted); }

.field input[type="text"],
.field select,
.colour-field input[type="text"] {
  min-width: 0;
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: 0;
  background: #0d0e13;
  color: var(--ink);
}

.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 17px) 21px, calc(100% - 12px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }

.field input[type="text"]:focus,
.field select:focus,
.colour-field input[type="text"]:focus { border-color: var(--acid); box-shadow: 0 0 0 3px rgba(217, 255, 89, 0.1); }

.segmented {
  padding: 0;
  border: 0;
}

.segmented legend { margin-bottom: 8px; }

.segmented:not(.segmented--three) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.segmented button {
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: #0d0e13;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 820;
}

.segmented:not(.segmented--three) button:first-of-type { border-radius: 11px 0 0 11px; }
.segmented:not(.segmented--three) button:last-of-type { border-radius: 0 11px 11px 0; border-left: 0; }
.segmented button[aria-pressed="true"] { border-color: rgba(217, 255, 89, 0.48); background: rgba(217, 255, 89, 0.1); color: var(--acid); }

.range-field input[type="range"] {
  width: 100%;
  accent-color: var(--acid);
}

.range-field output { float: right; color: var(--acid); font-variant-numeric: tabular-nums; }

.background-control {
  padding: 0;
  border: 0;
}

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

.segmented--three button:first-child { border-radius: 11px 0 0 11px; }
.segmented--three button:nth-child(2) { border-left: 0; }
.segmented--three button:last-child { border-left: 0; border-radius: 0 11px 11px 0; }

.colour-field {
  margin-top: 10px;
  display: grid;
  grid-template-columns: auto 46px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.colour-field input[type="color"] {
  width: 46px;
  height: 42px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #0d0e13;
  cursor: pointer;
}

.render-card {
  margin-top: 24px;
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(217, 255, 89, 0.2);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(217, 255, 89, 0.07), rgba(124, 131, 255, 0.04));
}

.render-card > div { min-width: 0; display: grid; gap: 3px; }
.render-card span { color: var(--muted); font-size: 0.72rem; }
.render-card strong { overflow-wrap: anywhere; font-size: 0.94rem; }
.render-card small { color: var(--quiet); font-size: 0.68rem; }

.progress-panel {
  margin-top: 16px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #0d0e13;
}

.progress-copy { display: flex; justify-content: space-between; gap: 16px; font-size: 0.78rem; }
.progress-copy span { color: var(--muted); font-variant-numeric: tabular-nums; }

.progress-track {
  height: 8px;
  margin: 12px 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--acid)); transition: width 160ms linear; }
.progress-panel .button { width: 100%; }

.status-line {
  margin-top: 15px;
  padding: 12px 13px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.018);
  font-size: 0.75rem;
  line-height: 1.5;
}

.status-line__dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--quiet);
}

.status-line[data-state="ready"] .status-line__dot,
.status-line[data-state="success"] .status-line__dot { background: var(--success); box-shadow: 0 0 0 4px rgba(198, 237, 105, 0.09); }
.status-line[data-state="busy"] .status-line__dot { background: var(--blue); box-shadow: 0 0 0 4px rgba(124, 131, 255, 0.1); }
.status-line[data-state="stale"] .status-line__dot { background: var(--orange); box-shadow: 0 0 0 4px rgba(255, 108, 67, 0.1); }
.status-line[data-state="error"] .status-line__dot { background: var(--danger); box-shadow: 0 0 0 4px rgba(255, 129, 124, 0.1); }

.error-panel {
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 129, 124, 0.32);
  border-radius: 12px;
  background: rgba(255, 129, 124, 0.08);
  color: #ffaaa6;
  font-size: 0.78rem;
  line-height: 1.55;
}

.output-section {
  margin-top: 18px;
  padding: clamp(24px, 3.5vw, 46px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #101116;
}

.output-section__head > p { text-align: right; }

.empty-output {
  min-height: 180px;
  padding: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  color: var(--muted);
}

.empty-output > span {
  color: var(--line-strong);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.3rem, 7vw, 6rem);
  line-height: 1;
}

.empty-output strong { color: var(--ink); }
.empty-output p { margin: 4px 0 0; font-size: 0.82rem; }

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

.output-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--panel-raised);
}

.output-card__preview {
  height: 250px;
  padding: 16px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(45deg, rgba(255,255,255,.025) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.025) 75%),
    linear-gradient(45deg, rgba(255,255,255,.025) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.025) 75%),
    #0c0d11;
  background-position: 0 0, 10px 10px;
  background-size: 20px 20px;
}

.output-card__preview img {
  display: block;
  max-width: 100%;
  max-height: 218px;
  width: auto;
  height: auto;
  box-shadow: 0 12px 38px rgba(0,0,0,.35);
}

.output-card__body { padding: 15px; }
.output-card__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.output-card__top span { color: var(--acid); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.68rem; font-weight: 850; }
.output-card__top strong { font-size: 0.86rem; }
.output-card__name { margin: 8px 0 0; overflow-wrap: anywhere; color: var(--muted); font-size: 0.72rem; }
.output-card__facts { margin: 12px 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 10px; }
.output-card__facts div { min-width: 0; padding: 9px; }
.output-card__facts div + div { border-left: 1px solid var(--line); }
.output-card__facts dt { color: var(--quiet); font-size: 0.61rem; font-weight: 800; text-transform: uppercase; }
.output-card__facts dd { margin: 3px 0 0; overflow-wrap: anywhere; font-size: 0.71rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.output-card .button { width: 100%; }
.output-card[data-locked="true"] { opacity: 0.54; }

.zip-bar {
  margin-top: 18px;
  padding: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #08090c;
}

.zip-bar > div { min-width: 0; display: grid; gap: 3px; }
.zip-bar span { color: var(--acid); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.64rem; font-weight: 850; letter-spacing: 0.08em; }
.zip-bar strong { overflow-wrap: anywhere; }
.zip-bar small { color: var(--quiet); }

.method {
  padding-block: clamp(100px, 12vw, 180px);
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--line);
}

.method-grid article {
  min-height: 260px;
  padding: clamp(24px, 3.2vw, 42px);
  background: var(--panel);
}

.method-grid article > span { color: var(--acid); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.7rem; font-weight: 850; }
.method-grid h3 { margin: 54px 0 10px; font-size: 1.24rem; letter-spacing: -0.025em; }
.method-grid p { margin: 0; color: var(--muted); font-size: 0.86rem; line-height: 1.65; }

.footer {
  min-height: 120px;
  padding-block: 26px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

.footer p { margin: 0; text-align: center; }
.footer > a:last-child { text-decoration: none; }
.noscript { margin: 0; padding: 14px; background: #fff2aa; color: #171815; text-align: center; font-weight: 750; }

@media (max-width: 1050px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "title"
      "start"
      "lede";
    grid-template-rows: none;
  }
  .hero__start { margin-top: 18px; }
  .hero__lede { margin-top: 18px; }
  .studio-grid { grid-template-columns: 1fr; }
  .settings-panel { position: static; }
  .output-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  :root { --shell: min(100% - 28px, 1380px); }
  .site-header__inner { min-height: 66px; }
  .site-nav a:nth-child(2) { display: none; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li { grid-template-columns: 28px minmax(0, 1fr); }
  .output-section__head,
  .method__intro { align-items: flex-start; flex-direction: column; gap: 18px; }
  .output-section__head > p { text-align: left; }
  .source-facts { grid-template-columns: 1fr; }
  .source-facts div { border-right: 0; border-bottom: 1px solid var(--line); }
  .source-facts div:last-child { border-bottom: 0; }
  .render-card,
  .zip-bar { grid-template-columns: 1fr; }
  .render-card .button,
  .zip-bar .button { width: 100%; }
  .output-grid { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr; }
  .method-grid article { min-height: 220px; }
  .method-grid h3 { margin-top: 36px; }
  .footer { grid-template-columns: 1fr; justify-items: start; }
  .footer p { text-align: left; }
}

@media (max-width: 440px) {
  :root { --shell: calc(100% - 20px); }
  .site-nav { gap: 0; }
  .site-nav a { padding-inline: 9px; font-size: 0.76rem; }
  .brand { font-size: 0.94rem; }
  .brand > span { width: 31px; height: 31px; }
  .hero { padding-block: 24px 22px; }
  .hero__start { margin-top: 16px; }
  .panel,
  .output-section { padding: 17px; border-radius: 22px; }
  .panel__head { flex-direction: column; gap: 12px; }
  .drop-zone { min-height: 112px; grid-template-columns: 44px minmax(0, 1fr); padding: 14px; }
  .drop-zone__mark { width: 44px; height: 44px; }
  .drop-zone__action { display: none; }
  .preview-stage { min-height: 280px; padding: 14px; }
  .segmented button { padding-inline: 7px; font-size: 0.72rem; }
  .colour-field { grid-template-columns: 1fr 48px; }
  .colour-field > span { grid-column: 1 / -1; }
  .empty-output { padding: 20px; flex-direction: column; align-items: flex-start; }
  .output-card__preview { height: 220px; }
}

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

/* Example and questions sections */
.method--compact { padding-block: clamp(56px, 8vw, 110px); }
.method--compact + .method--compact { padding-top: 0; }
.faq-list { max-width: 900px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; padding: 14px 0; font-size: 1.05rem; font-weight: 750; line-height: 1.35; list-style: none; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: 0 0 auto; color: var(--acid); font-size: 1.4rem; font-weight: 400; line-height: 1; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list summary:focus-visible { outline: 3px solid var(--acid); outline-offset: 3px; }
.faq-list p { max-width: 70ch; margin: 0 0 20px; color: var(--muted); font-size: 0.95rem; line-height: 1.65; }
.faq-list a { color: var(--ink); font-weight: 700; }
