/* ==========================================================================
   Minimal dark UI.
   Charcoal background, one light-blue accent, Rajdhani for display/UI text,
   system sans for paragraphs. No gradients, no decorative shadows.
   ========================================================================== */

@font-face {
  font-family: "Rajdhani";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/rajdhani-600.woff2") format("woff2");
}

@font-face {
  font-family: "Rajdhani";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/rajdhani-700.woff2") format("woff2");
}

:root {
  --bg: #15171b;
  --surface: #1b1e24;
  --surface-2: #20242b;
  --border: #2a3039;
  --border-strong: #3a424e;
  --text: #e6ebf2;
  --muted: #9aa4b2;
  --dim: #737d8c;
  --accent: #6ea8fe;
  --accent-hover: #8ab9ff;
  --on-accent: #07111e;
  --success: #86e0a0;
  --success-bg: #16261c;
  --warning: #f0c674;
  --warning-bg: #262117;
  --error: #ff9b8a;
  --error-bg: #2a1917;

  --radius: 6px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  --font-display: "Rajdhani", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --container: 880px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

p {
  margin: 0;
}

a {
  color: var(--muted);
  text-decoration: none;
}

a:hover {
  color: var(--text);
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -80px;
  left: var(--space-4);
  z-index: 100;
  padding: var(--space-2) var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text);
}

.skip-link:focus {
  top: var(--space-2);
}

.container,
.shell {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

/* --------------------------------------------------------------------------
   Home layout
   -------------------------------------------------------------------------- */

.home {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding-top: clamp(48px, 12vh, 140px);
  padding-bottom: var(--space-7);
}

.wordmark {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: var(--space-5);
}

/* Grab row */
.tagline {
  margin-top: calc(var(--space-2) * -1);
  margin-bottom: var(--space-5);
  color: var(--muted);
  font-size: 1rem;
}

.blocks {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
}

.blocks h2 {
  font-size: 1.125rem;
}

.steps {
  margin: var(--space-3) 0 0;
  padding-left: var(--space-5);
  display: grid;
  gap: var(--space-2);
  color: var(--muted);
  font-size: 0.9375rem;
  max-width: 74ch;
}

.steps strong {
  color: var(--text);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-3) 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.8125rem;
}

.grab {
  display: flex;
  gap: var(--space-2);
  align-items: stretch;
}

.grab__field {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
}

.grab__input {
  width: 100%;
  min-height: 48px;
  padding: 0 44px 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.grab__input::placeholder {
  color: var(--dim);
  font-weight: 600;
}

.grab__input:focus {
  outline: none;
  border-color: var(--accent);
}

.grab__paste {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--dim);
  cursor: pointer;
}

.grab__paste:hover {
  color: var(--text);
  background: var(--surface-2);
}

.grab__btn {
  flex: none;
  min-height: 48px;
  padding: 0 var(--space-6);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.grab__btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.grab__btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn__spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(7, 17, 30, 0.35);
  border-top-color: var(--on-accent);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
  vertical-align: -2px;
  margin-right: 6px;
}

[data-loading="true"] .btn__spinner {
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Options row under the input */
.options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.switch__track {
  position: relative;
  width: 34px;
  height: 18px;
  border-radius: 9px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  transition: background-color 140ms ease, border-color 140ms ease;
  flex: none;
}

.switch__track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--dim);
  transition: transform 140ms ease, background-color 140ms ease;
}

.switch input:checked ~ .switch__track {
  background: rgba(110, 168, 254, 0.18);
  border-color: var(--accent);
}

.switch input:checked ~ .switch__track::after {
  transform: translateX(16px);
  background: var(--accent);
}

.switch input:focus-visible ~ .switch__track {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.switch input:disabled ~ .switch__track {
  opacity: 0.45;
}

.switch--disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.hint code,
.tagline code {
  padding: 1px 5px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--surface-2);
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.875em;
  color: var(--text);
}

.hint {
  margin-top: var(--space-3);
  font-size: 0.8125rem;
  color: var(--dim);
}

.hint a {
  color: var(--muted);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Result
   -------------------------------------------------------------------------- */

.workspace {
  margin-top: var(--space-5);
}

.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.panel__body {
  padding: var(--space-4);
}

.result-grid {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: var(--space-4);
}

.thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--dim);
  font-size: 0.75rem;
}

.result-meta h2 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.tag {
  padding: 1px 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
}

.tag--accent {
  border-color: rgba(110, 168, 254, 0.45);
  color: var(--accent);
}

/* Formats */
.formats {
  margin: var(--space-4) 0 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.formats__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.formats__head h3 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

.formats__count {
  font-size: 0.75rem;
  color: var(--dim);
}

.format-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: var(--space-2);
}

.format-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  cursor: pointer;
}

.format-option:hover {
  border-color: var(--border-strong);
}

.format-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.format-option__radio {
  flex: none;
  width: 14px;
  height: 14px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.format-option__radio::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  transform: scale(0);
}

.format-option input:checked ~ .format-option__radio {
  border-color: var(--accent);
}

.format-option input:checked ~ .format-option__radio::after {
  transform: scale(1);
}

.format-option:has(input:checked) {
  border-color: var(--accent);
  background: rgba(110, 168, 254, 0.1);
}

.format-option:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.format-option__text {
  min-width: 0;
}

.format-option__label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.format-option__kind {
  display: block;
  font-size: 0.75rem;
  color: var(--dim);
}

/* Actions */
.result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.result-actions__spacer {
  flex: 1 1 auto;
}

.result-note {
  font-size: 0.8125rem;
  color: var(--dim);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 var(--space-5);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  background: var(--surface-2);
  color: var(--text);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
}

.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn--primary .btn__spinner {
  border-color: rgba(7, 17, 30, 0.35);
  border-top-color: var(--on-accent);
}

.btn--ghost {
  border-color: transparent;
  color: var(--dim);
}

.btn--ghost:hover {
  color: var(--text);
}

/* Status */
.status {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.status__head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.status__icon {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  flex: none;
}

.status__detail {
  font-size: 0.8125rem;
  color: var(--muted);
}

.status--success {
  border-color: rgba(134, 224, 160, 0.35);
  background: var(--success-bg);
}

.status--success .status__icon {
  color: var(--success);
}

.status--error {
  border-color: rgba(255, 155, 138, 0.35);
  background: var(--error-bg);
}

.status--error .status__icon {
  color: var(--error);
}

.status--warning {
  border-color: rgba(240, 198, 116, 0.35);
  background: var(--warning-bg);
}

.status--warning .status__icon {
  color: var(--warning);
}

.progress {
  height: 4px;
  overflow: hidden;
  border-radius: 2px;
  background: #2a3039;
}

.progress__bar {
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 260ms ease;
}

.progress--indeterminate .progress__bar {
  width: 35%;
  animation: slide 1200ms ease-in-out infinite;
}

@keyframes slide {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(300%);
  }
}

/* Skeleton */
.skeleton-card {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: var(--space-4);
  padding: var(--space-4);
}

.sk {
  background: var(--surface-2);
  border-radius: var(--radius);
  animation: pulse 1.5s ease-in-out infinite;
}

.sk--thumb {
  aspect-ratio: 16 / 9;
}

.sk-lines {
  display: grid;
  align-content: start;
  gap: var(--space-2);
}

.sk--title {
  height: 18px;
  width: 55%;
}

.sk--text {
  height: 11px;
  width: 30%;
}

.sk--block {
  height: 40px;
  width: 100%;
  margin-top: var(--space-3);
}

@keyframes pulse {
  50% {
    opacity: 0.5;
  }
}

/* --------------------------------------------------------------------------
   Advertisement
   -------------------------------------------------------------------------- */

.ad-slot {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

.ad-slot__label {
  display: block;
  margin-bottom: var(--space-2);
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.ad-slot__frame {
  display: flex;
  align-items: center;
  justify-content: center;
  /* Hug the creative: no dark strips either side of the banner. */
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  min-height: 250px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.ad-slot__frame iframe {
  display: block;
  width: 300px;
  height: 250px;
  border: 0;
  background: var(--bg);
}

@media (min-width: 900px) {
  .ad-slot__frame {
    min-height: 90px;
  }

  .ad-slot__frame iframe {
    width: 728px;
    height: 90px;
  }
}

.adblock {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: var(--space-4);
}

.adblock__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 9, 11, 0.78);
}

.adblock__card {
  position: relative;
  width: min(440px, 100%);
  padding: var(--space-5);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.adblock__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0;
}

.adblock__text {
  margin-top: var(--space-3);
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.adblock__text--muted {
  color: var(--dim);
  font-size: 0.875rem;
}

.adblock__steps {
  margin-top: var(--space-3);
  padding-left: var(--space-4);
  display: grid;
  gap: 6px;
  color: var(--dim);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.adblock__steps strong {
  color: var(--muted);
}

.adblock__actions {
  margin-top: var(--space-4);
  display: flex;
  gap: var(--space-2);
}

.adblock__actions .btn {
  width: 100%;
  min-height: 44px;
}

.adblock__skip {
  display: block;
  width: 100%;
  margin-top: var(--space-3);
  padding: 0;
  border: 0;
  background: none;
  color: var(--dim);
  font-size: 0.75rem;
  text-decoration: underline;
  cursor: pointer;
}

.adblock__skip:hover {
  color: var(--muted);
}

body.is-locked {
  overflow: hidden;
}

.ad-slot--top {
  margin-top: var(--space-5);
}

/* Desktop rail: fixed in the empty margin, so it never pushes content around. */
.ad-rail {
  display: none;
}

@media (min-width: 1200px) {
  .ad-rail {
    display: block;
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 160px;
    z-index: 10;
  }

  .ad-rail__frame {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
  }

  .ad-rail__frame iframe {
    display: block;
    width: 160px;
    height: 600px;
    border: 0;
    background: var(--bg);
  }
}

/* Mobile sticky: shown only after a first successful download, and closable. */
.ad-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  padding: 6px 8px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.ad-sticky iframe {
  display: block;
  width: 320px;
  height: 50px;
  border: 0;
  background: var(--bg);
}

.ad-sticky__close {
  position: absolute;
  top: -15px;
  right: 8px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.ad-sticky__close:hover {
  color: var(--text);
}

@media (min-width: 900px) {
  .ad-sticky {
    display: none;
  }
}

.ad-native {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

.ad-native__frame {
  width: 100%;
  max-width: 728px;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.ad-native__frame iframe {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
  background: var(--bg);
}

.noscript-block {
  padding-block: var(--space-5);
}

/* --------------------------------------------------------------------------
   Compact info + footer
   -------------------------------------------------------------------------- */

.note {
  margin-top: var(--space-5);
  font-size: 0.8125rem;
  color: var(--dim);
  max-width: 70ch;
}

.faq {
  margin-top: var(--space-4);
}

.faq details {
  border-top: 1px solid var(--border);
}

.faq details:last-child {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--dim);
  font-size: 1rem;
}

.faq details[open] summary::after {
  content: "−";
}

.faq p {
  padding-bottom: var(--space-3);
  color: var(--muted);
  font-size: 0.875rem;
  max-width: 76ch;
}

.site-footer {
  flex: none;
  border-top: 1px solid var(--border);
  padding-block: var(--space-4);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: 0.875rem;
  color: var(--dim);
}

.footer-inner a {
  color: var(--muted);
}

.footer-inner a:hover {
  color: var(--text);
}

.footer-sep {
  color: var(--border-strong);
}

.footer-legal {
  margin-top: var(--space-2);
  text-align: center;
  font-size: 0.75rem;
  color: var(--dim);
}

/* --------------------------------------------------------------------------
   Legal pages
   -------------------------------------------------------------------------- */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 56px;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
}

.site-nav a[aria-current="page"] {
  color: var(--text);
}

.header-actions {
  display: none;
}

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  place-items: center;
}

.legal {
  flex: 1 1 auto;
  padding-block: var(--space-6) var(--space-7);
}

.legal__head {
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border);
}

.legal__head h1 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
}

.legal__meta {
  margin-top: var(--space-2);
  color: var(--dim);
  font-size: 0.8125rem;
}

.template-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border: 1px solid rgba(240, 198, 116, 0.35);
  border-radius: var(--radius);
  background: var(--warning-bg);
  color: var(--warning);
  font-size: 0.8125rem;
}

.prose {
  max-width: 72ch;
  margin-top: var(--space-5);
  color: var(--muted);
  font-size: 0.9375rem;
}

.prose h2 {
  margin-top: var(--space-6);
  font-size: 1.125rem;
  color: var(--text);
  scroll-margin-top: var(--space-5);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: var(--space-4);
  font-size: 1rem;
  color: var(--text);
}

.prose p {
  margin-top: var(--space-2);
}

.prose ul,
.prose ol {
  margin-top: var(--space-2);
  padding-left: var(--space-5);
  display: grid;
  gap: var(--space-1);
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose code {
  padding: 1px 5px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--surface-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875em;
  color: var(--text);
}

.prose a {
  color: var(--accent);
}

.contact-card {
  margin-top: var(--space-5);
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.contact-card h2 {
  font-size: 1rem;
}

.contact-card p {
  margin-top: var(--space-2);
  color: var(--muted);
  font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 640px) {
  .home {
    padding-top: var(--space-7);
  }

  .tagline {
  margin-top: calc(var(--space-2) * -1);
  margin-bottom: var(--space-5);
  color: var(--muted);
  font-size: 1rem;
}

.blocks {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
}

.blocks h2 {
  font-size: 1.125rem;
}

.steps {
  margin: var(--space-3) 0 0;
  padding-left: var(--space-5);
  display: grid;
  gap: var(--space-2);
  color: var(--muted);
  font-size: 0.9375rem;
  max-width: 74ch;
}

.steps strong {
  color: var(--text);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-3) 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.8125rem;
}

.grab {
    flex-direction: column;
  }

  .grab__btn {
    width: 100%;
  }

  .result-grid,
  .skeleton-card {
    grid-template-columns: 1fr;
  }

  .thumb {
    max-width: 260px;
  }

  .format-list {
    grid-template-columns: 1fr;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    z-index: 50;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-2) var(--space-5) var(--space-3);
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }

  .site-nav[data-open="true"] {
    display: flex;
  }

  .site-nav a {
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-toggle {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .grab,
  .options,
  .ad-slot {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }
}
