/* Video Speed Controller — hosted welcome / uninstall pages (GitHub Pages).
   Self-contained. Layout mirrors the Weekly Planner welcome page; accent is blue. */
:root {
  --accent: #2563eb;
  --accent-bg: #eaf1ff;
  --accent-ring: rgb(37 99 235 / 0.18);
  --text-main: #1e293b;
  --text-muted: #64748b;
  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --border: #e2e8f0;
  --shadow-md: 0 10px 24px -8px rgb(15 23 42 / 0.12);
  --radius: 14px;
  --font-stack: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text-main);
  font-family: var(--font-stack);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.site-header {
  padding: 24px 32px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
}

.brand img { display: block; }

main {
  max-width: 920px;
  margin: 0 auto;
  padding: 64px 24px 48px;
}

.hero {
  text-align: center;
  margin-bottom: 48px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--text-main);
}

.hero .lead {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--text-muted);
  margin: 0 auto;
  max-width: 580px;
}

.step-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.step-card + .step-card { margin-top: 28px; }

.step-card figure {
  margin: 0;
  background: var(--bg-alt);
  padding: 24px;
  display: flex;
  justify-content: center;
}

.step-card figure img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.step-body { padding: 28px 32px 32px; }

.step-body h2 {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.step-list {
  margin: 0 0 18px;
  padding-left: 22px;
  color: var(--text-main);
  font-size: 16px;
}
.step-list li { margin: 6px 0; }
.step-list strong { color: var(--accent); font-weight: 600; }

.kbd {
  display: inline-block;
  min-width: 20px;
  text-align: center;
  font: 600 13px/1.6 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  background: var(--accent-bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 7px;
  color: var(--accent);
}

.hint {
  margin: 0;
  padding: 12px 14px;
  background: var(--accent-bg);
  color: var(--text-main);
  border-radius: 10px;
  font-size: 14px;
}

.form-card { display: flex; justify-content: center; }

.form-frame {
  width: 100%;
  max-width: 640px;
  height: 640px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}

.site-footer {
  max-width: 920px;
  margin: 0 auto;
  padding: 24px;
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
}

/* Long-form text (privacy policy). */
.policy { max-width: 680px; margin: 0 auto; line-height: 1.6; }
.policy h2 { font-size: 20px; margin: 32px 0 8px; }
.policy p { margin: 0 0 12px; }
.policy a { color: var(--accent, #2563eb); }

/* thanks/: one paragraph per purchase state. The extension's content script sets
   <html data-vsc-purchase>; without it (no extension in this browser) the "none"
   text shows, after a short delay so it does not flash before the script runs. */
.purchase-state { display: none; }
html:not([data-vsc-purchase]) .purchase-state[data-state="none"] {
  display: block;
  animation: purchase-appear 0s linear 1.2s both;
}
html[data-vsc-purchase="checking"] .purchase-state[data-state="checking"],
html[data-vsc-purchase="found"] .purchase-state[data-state="found"],
html[data-vsc-purchase="pending"] .purchase-state[data-state="pending"] { display: block; }
@keyframes purchase-appear { from { visibility: hidden; } to { visibility: visible; } }

.spinner {
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  margin-right: 0.5em;
  vertical-align: -0.1em;
  border: 2px solid var(--accent-ring);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }

.receipt {
  margin: 20px 0 0;
  font-size: 15px;
  color: var(--text-muted);
}

@media (max-width: 600px) {
  main { padding: 40px 16px 32px; }
  .step-card figure { padding: 16px; }
  .step-body { padding: 22px 22px 24px; }
}
