/*
 * Curfew web pages (/curfew/ and /curfew/privacy/).
 * Self-contained on purpose: no web fonts, no scripts, nothing from the
 * GTO Reflex site. Colours are the extension's own tokens (src/ui/styles.ts):
 * YouTube's neutral palette, the Learn blue, the Relax green, the brand blue.
 */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --page: #f8f8f8;
  --card: #ffffff;
  --text: #0f0f0f;
  --muted: #606060;
  --line: rgba(0, 0, 0, 0.12);
  --soft: rgba(0, 0, 0, 0.05);
  --soft-hover: rgba(0, 0, 0, 0.1);
  --strong: #0f0f0f;
  --on-strong: #ffffff;
  --link: #065fd4;
  --focus: #065fd4;
  --learn: #065fd4;
  --relax: #1e8e3e;
  --brand: #2756e8;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 8px 28px rgba(0, 0, 0, 0.08);
  --radius: 16px;
  --wrap: 68rem;
  --read: 40rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f0f;
    --page: #161616;
    --card: #1b1b1b;
    --text: #f1f1f1;
    --muted: #aaaaaa;
    --line: rgba(255, 255, 255, 0.14);
    --soft: rgba(255, 255, 255, 0.08);
    --soft-hover: rgba(255, 255, 255, 0.16);
    --strong: #f1f1f1;
    --on-strong: #0f0f0f;
    --link: #3ea6ff;
    --focus: #3ea6ff;
    --learn: #3ea6ff;
    --relax: #81c995;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 28px rgba(0, 0, 0, 0.4);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--bg); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img, svg { display: block; max-width: 100%; height: auto; }

a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 1.1rem; font-weight: 650; }
p { margin: 0; }

code { font: 0.9em var(--mono); background: var(--soft); padding: 0.1em 0.35em; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--strong); color: var(--on-strong);
  padding: 0.5rem 1rem; border-radius: 999px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Header ------------------------------------------------------------------ */

.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }

.wordmark {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em;
}
.wordmark img { width: 28px; height: 28px; }

.site-nav { display: flex; gap: 0.25rem; }
.site-nav a {
  color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 500;
  padding: 0.4rem 0.7rem; border-radius: 999px;
}
.site-nav a:hover { color: var(--text); background: var(--soft); }
.site-nav a[aria-current="page"] { color: var(--text); }

/* Buttons ----------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3.25rem; padding: 0 1.75rem; border-radius: 999px;
  background: var(--strong); color: var(--on-strong);
  font-weight: 600; font-size: 1.05rem; text-decoration: none;
  transition: opacity 120ms ease;
}
.btn:hover { opacity: 0.86; text-decoration: none; }

/* Hero -------------------------------------------------------------------- */

.hero { padding: 3.5rem 0 3rem; text-align: center; }
.hero-mark { width: 64px; height: 64px; margin: 0 auto 1.5rem; }
.hero h1 {
  font-size: clamp(2.25rem, 1.3rem + 4.6vw, 4rem);
  font-weight: 750; letter-spacing: -0.035em; line-height: 1.05;
  max-width: 13em; margin: 0 auto;
}
.hero .lead { color: var(--muted); font-size: 1.15rem; max-width: 34rem; margin: 1.25rem auto 2rem; }
.hero .facts {
  list-style: none; padding: 0; margin: 1.25rem 0 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 1.25rem;
  color: var(--muted); font-size: 0.95rem;
}
.hero .facts li { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero .facts li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--muted); opacity: 0.6; }

/* Sections ---------------------------------------------------------------- */

.section { padding: 3.5rem 0; border-top: 1px solid var(--line); }
.section-head { max-width: var(--read); margin-bottom: 2rem; }
.section-head p { color: var(--muted); margin-top: 0.75rem; }
.eyebrow {
  display: block; color: var(--muted); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.6rem;
}

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 3rem; }
.step { display: grid; gap: 1.25rem; align-items: center; }
.step-num {
  display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--soft); font-weight: 700; font-size: 0.95rem; margin-bottom: 0.75rem;
}
.step h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.step p { color: var(--muted); }
.step p + p { margin-top: 0.6rem; }

/* Screenshots: real captures, or a clearly marked placeholder until they exist. */
.shot { margin: 0; }
.shot img { width: 100%; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.shot-missing {
  aspect-ratio: 16 / 10; display: grid; place-content: center; gap: 0.35rem; text-align: center;
  padding: 1.25rem; border: 2px dashed var(--line); border-radius: 12px; background: var(--page);
  color: var(--muted); font-size: 0.9rem;
}
.shot-missing strong { color: var(--text); font-size: 0.95rem; }

/* Learn vs Relax */
.modes { display: grid; gap: 1rem; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem;
}
.mode-title { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.6rem; }
.dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--learn); }
.dot-relax { background: var(--relax); }
.card p { color: var(--muted); }
.card p + p { margin-top: 0.6rem; }
.note { color: var(--muted); margin-top: 1.25rem; max-width: var(--read); }

/* What it hides */
.hides { display: grid; gap: 2rem; align-items: start; }
.hide-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.hide-list li { padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.hide-list li:first-child { border-top: 1px solid var(--line); }
.hide-list strong { display: block; font-weight: 600; }
.hide-list span { color: var(--muted); font-size: 0.95rem; }

/* Works on */
.platforms { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.platforms li { display: flex; gap: 0.85rem; align-items: flex-start; }
.platforms .mark {
  flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center;
  font-size: 0.85rem; font-weight: 700; margin-top: 0.1rem;
}
.platforms .yes { background: var(--soft); color: var(--text); }
.platforms .no { border: 1px solid var(--line); color: var(--muted); }
.platforms span.text { color: var(--muted); }
.platforms span.text strong { color: var(--text); font-weight: 600; }

/* Privacy summary */
.plain-list { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.4rem; max-width: var(--read); }
.plain-list li::marker { color: var(--muted); }
.more-link { margin-top: 1.25rem; }

/* FAQ */
.faq { display: grid; gap: 2rem; max-width: var(--read); }
.faq h3 { margin-bottom: 0.5rem; }
.faq p { color: var(--muted); }

/* Support */
.support { max-width: var(--read); }
.support-email { font-size: 1.15rem; font-weight: 600; margin: 0 0 1.5rem; }
.support h3 { margin-bottom: 0.75rem; }
.fixes { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.6rem; color: var(--muted); }
.fixes strong { color: var(--text); font-weight: 600; }

/* Footer ------------------------------------------------------------------ */

.site-footer { border-top: 1px solid var(--line); background: var(--page); padding: 2.5rem 0 3rem; color: var(--muted); font-size: 0.92rem; }
.site-footer p + p { margin-top: 0.6rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: 0.9rem 0 1.25rem; padding: 0; list-style: none; }
.footer-links a { color: var(--text); }
.footer-fine { font-size: 0.85rem; max-width: 46rem; }

/* Privacy page ------------------------------------------------------------ */

.doc { padding: 3rem 0 4rem; }
.doc .wrap { max-width: calc(var(--read) + 2.5rem); }
.doc h1 { font-size: clamp(2rem, 1.5rem + 2.4vw, 2.75rem); font-weight: 750; letter-spacing: -0.03em; }
.doc .meta { color: var(--muted); margin: 0.6rem 0 1.75rem; }
.doc h2 { font-size: 1.3rem; letter-spacing: -0.01em; margin: 2.5rem 0 0.75rem; }
.doc p, .doc li { margin: 0.6rem 0; }
.doc ul { padding-left: 1.2rem; }
.summary {
  background: var(--page); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.summary p { margin: 0; }
.data { display: grid; gap: 1rem; margin: 1rem 0; }
.data .card { padding: 1.1rem 1.25rem; }
.data h3 { font-size: 1.02rem; margin-bottom: 0.35rem; }
.data p { margin: 0.35rem 0 0; color: var(--muted); }
.data .kept { color: var(--text); }

/* Wider screens ----------------------------------------------------------- */

@media (min-width: 640px) {
  .wrap { padding: 0 2rem; }
  .modes { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .hero { padding: 5.5rem 0 4.5rem; }
  .section { padding: 5rem 0; }
  .step { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem; }
  .hides { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem; }
  .split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem; align-items: start; }
  .split .section-head { margin-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
