/* oneclickloop.com: one stylesheet for every page. Colours from the store tile (D14): dark grey
   field, red accent #ff4e45; the product's own red switch is #c00 (entrypoints/popup/style.css). */
:root {
  --bg: #f6f6f7;
  --card: #ffffff;
  --text: #1f1f22;
  --muted: #5f6368;
  --line: #e2e2e6;
  /* Field borders need 3:1 against the card (WCAG 1.4.11); --line is only for dividers. */
  --field: #8e8e93;
  /* White on it is 5.6:1, and as text on --bg it passes AA too. */
  --accent: #c5221f;
  --accent-text: #ffffff;
  --header: #202124;
  --focus: #1a73e8;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121214;
    --card: #1d1d20;
    --text: #ececef;
    --muted: #a6a6ad;
    --line: #333338;
    --field: #75757c;
    --accent: #ff4e45;
    --accent-text: #1f1f22;
    --header: #0b0b0c;
    --focus: #8ab4f8;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

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

.site-header { background: var(--header); color: #fff; }
.site-header a { display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; text-decoration: none; font-weight: 700; }
.site-header img { width: 28px; height: 28px; }

main { max-width: 960px; margin: 0 auto; padding: 40px 20px 56px; }
.narrow { max-width: 680px; }

h1 { font-size: clamp(2rem, 5vw, 2.75rem); line-height: 1.15; margin: 0 0 12px; }
h2 { font-size: 1.5rem; line-height: 1.25; margin: 0 0 10px; }
.lead { font-size: 1.25rem; color: var(--muted); margin: 0 0 28px; }
.muted { color: var(--muted); }
.small { font-size: 0.95rem; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.stack > * + * { margin-top: 24px; }

.button {
  display: inline-block;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { filter: brightness(1.08); }
.button[aria-disabled='true'] { background: var(--line); color: var(--muted); cursor: default; filter: none; }

/* Looper */
.paste { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.paste label { flex-basis: 100%; font-weight: 700; }
.paste input {
  flex: 1 1 320px;
  min-width: 0;
  padding: 12px 16px;
  border: 1px solid var(--field);
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  font: inherit;
}
.player-box { margin-top: 24px; aspect-ratio: 16 / 9; width: 100%; background: #000; border-radius: 12px; overflow: hidden; }
.player-box iframe, .player-box > div { width: 100%; height: 100%; display: block; border: 0; }
.status { min-height: 1.5em; margin: 14px 0 0; }
.status.error { color: var(--accent); }

.extension { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.extension img { width: 100%; height: auto; border-radius: 10px; display: block; }
@media (max-width: 720px) { .extension { grid-template-columns: 1fr; } }

/* Welcome: the precedent's layout (pdf_to_png /install), centred steps with big illustrations. */
.welcome { text-align: center; }
.welcome p { max-width: 640px; margin-left: auto; margin-right: auto; }
.welcome img { width: 100%; height: auto; display: block; margin: 18px auto 34px; }

/* Goodbye form */
fieldset { border: 0; margin: 0; padding: 0; }
legend { font-weight: 700; margin-bottom: 10px; }
.choice { display: flex; gap: 12px; align-items: center; padding: 10px 0; cursor: pointer; }
.choice input { width: 20px; height: 20px; accent-color: var(--accent); }
textarea {
  width: 100%;
  min-height: 110px;
  padding: 12px 14px;
  border: 1px solid var(--field);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  font: inherit;
  resize: vertical;
}
label.block { display: block; font-weight: 700; margin-bottom: 8px; }

/* Privacy */
.prose h2 { margin-top: 32px; }
.prose ul { padding-left: 1.2em; }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.site-footer div { max-width: 960px; margin: 0 auto; padding: 20px; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer .disclaimer { flex-basis: 100%; }
