/* AdBlockTube site. Graphite ramp, one accent (iOS blue from the app's Continue button).
   Dark by default like the app; light follows the system. */
:root {
  color-scheme: dark light;
  --bg-deep: #0f0f10;
  --bg: #141415;
  --card: #19191b;
  --raised: #232325;
  --text: #ededed;
  --text-2: #a1a1a6;
  --text-3: #8b8b91;
  --line: rgb(237 237 237 / 0.08);
  --accent: #0a84ff;
  --accent-ink: #4aa3ff;
  --ok: #4cc38a;
  --btn-bg: #ededed;
  --btn-text: #141415;
  --shadow: 0 24px 64px rgb(0 0 0 / 0.5);
  --radius: 16px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg-deep: #f4f4f5;
    --bg: #fafafa;
    --card: #ffffff;
    --raised: #f4f4f5;
    --text: #171717;
    --text-2: #525252;
    --text-3: #6b6b70;
    --line: rgb(23 23 23 / 0.09);
    --accent: #0a6fe0;
    --accent-ink: #0a62c7;
    --ok: #16a34a;
    --btn-bg: #171717;
    --btn-text: #ffffff;
    --shadow: 0 16px 40px rgb(0 0 0 / 0.14);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--card); padding: 8px 12px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 32px); margin-inline: auto; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 17px; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav { display: flex; gap: 20px; margin-left: auto; align-items: center; }
.nav a { color: var(--text-2); text-decoration: none; font-size: 15px; transition: color 0.15s var(--ease); }
.nav a:hover { color: var(--text); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: var(--btn-text); }
@media (max-width: 640px) { .nav a.hide-sm { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 20px;
  border-radius: 12px; font: 500 16px/1 var(--font); text-decoration: none; white-space: nowrap;
  transition: background-color 0.15s var(--ease), transform 0.1s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--btn-bg); color: var(--btn-text); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.12); }
.btn-primary:hover { background: color-mix(in srgb, var(--btn-bg) 88%, var(--bg)); }
.btn-primary svg { width: 18px; height: 18px; }
.btn-small { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-quiet { color: var(--text); background: var(--raised); border: 1px solid var(--line); }

/* Hero */
.hero { padding: 64px 0; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg-deep); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font: 600 clamp(40px, 6vw, 64px)/1.04 var(--display); letter-spacing: -0.025em; margin: 0 0 20px; text-wrap: balance; }
.hero .lead { font-size: 19px; color: var(--text-2); margin: 0 0 32px; max-width: 34em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-bottom: 20px; }
.hero .meta { font: 13px/1.5 var(--mono); color: var(--text-3); margin: 0; }
.hero-visual { position: relative; display: flex; justify-content: center; }
.device {
  width: min(320px, 78vw); border-radius: 44px; overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--line); background: #000;
}
.device img { width: 100%; aspect-ratio: 540 / 1192; }
@media (max-width: 880px) {
  .hero { padding-top: 48px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .hero .meta { margin-bottom: 0; }
}

/* Signature: the "blocked" chip from the app */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 24px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px;
  border-radius: 16px; background: var(--raised); border: 1px solid var(--line);
  font-size: 14px; color: var(--text-2);
}
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }

/* Sections */
section { padding: 96px 0; }
section + section { border-top: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 48px; }
h2 { font: 600 clamp(28px, 4vw, 40px)/1.12 var(--display); letter-spacing: -0.02em; margin: 0 0 12px; text-wrap: balance; }
h3 { font: 600 19px/1.3 var(--display); margin: 0 0 8px; }
.section-head p { color: var(--text-2); margin: 0; font-size: 18px; }
@media (max-width: 640px) { section { padding: 64px 0; } .section-head { margin-bottom: 32px; } }

/* Feature rows: text + screenshot */
.feature { display: grid; grid-template-columns: 1fr 300px; gap: 64px; align-items: center; padding: 48px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature:nth-child(even) { grid-template-columns: 300px 1fr; }
.feature:nth-child(even) .shot { order: -1; }
.feature p { color: var(--text-2); margin: 0 0 16px; }
.feature ul { margin: 0; padding-left: 20px; color: var(--text-2); }
.feature li + li { margin-top: 4px; }
.shot { border-radius: 36px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.shot img { aspect-ratio: 540 / 1192; width: 100%; }
@media (max-width: 760px) {
  .feature, .feature:nth-child(even) { grid-template-columns: 1fr; gap: 32px; }
  .feature:nth-child(even) .shot { order: 0; }
  .shot { max-width: 280px; }
}

/* Grid of small facts */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.grid > div { background: var(--card); padding: 24px; }
.grid p { margin: 0; color: var(--text-2); font-size: 15px; }
@media (max-width: 860px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

/* Sites list */
.sites { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.sites li { padding: 8px 14px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); font-size: 15px; }

/* Plans */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.plan h3 { font-size: 22px; }
.plan .price { color: var(--text-3); font: 14px/1.4 var(--mono); margin: 0 0 20px; }
.plan ul { margin: 0; padding-left: 20px; color: var(--text-2); }
.plan li + li { margin-top: 6px; }
.plan.pro { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 32px 20px 0; font: 500 18px/1.4 var(--font); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; color: var(--text-3); font-size: 22px; transition: transform 0.15s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--text-2); max-width: 46em; }

/* CTA band */
.cta { text-align: center; }
.cta img { width: 88px; height: 88px; border-radius: 20px; margin: 0 auto 24px; }
.cta p { color: var(--text-2); margin: 0 auto 32px; max-width: 32em; }

/* Article pages */
.article { padding: 64px 0 96px; }
.crumbs { font-size: 14px; color: var(--text-3); margin-bottom: 24px; }
.crumbs a { color: var(--text-3); }
.article h1 { font: 600 clamp(34px, 5vw, 48px)/1.08 var(--display); letter-spacing: -0.02em; margin: 0 0 16px; text-wrap: balance; }
.article .lead { font-size: 19px; color: var(--text-2); margin: 0 0 16px; }
.article .byline { font: 13px/1.5 var(--mono); color: var(--text-3); margin: 0 0 40px; }
.article h2 { font-size: 28px; margin: 48px 0 12px; }
.article p, .article li { color: var(--text-2); }
.article li + li { margin-top: 6px; }
.article strong { color: var(--text); font-weight: 600; }
.article ol.steps { counter-reset: s; list-style: none; padding: 0; }
.article ol.steps li { counter-increment: s; position: relative; padding-left: 44px; margin-top: 16px; }
.article ol.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 8px;
  background: var(--raised); border: 1px solid var(--line); color: var(--text); font: 500 14px/28px var(--mono); text-align: center;
}
.article .figure { float: right; width: 220px; margin: 8px 0 24px 32px; }
@media (max-width: 640px) { .article .figure { float: none; margin: 24px 0; } }
.note { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin: 24px 0; }
.note p { margin: 0; }
table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--text); font-weight: 500; }
td { color: var(--text-2); }
.table-scroll { overflow-x: auto; }
.related { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); }
.related ul { padding-left: 20px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-deep); padding: 48px 0; font-size: 14px; color: var(--text-3); }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 48px; margin-bottom: 32px; }
.site-footer h2 { font: 500 14px/1.4 var(--font); color: var(--text); margin: 0 0 12px; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: 8px; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer p { margin: 0 0 8px; max-width: 60em; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.tag { font: 13px/1 var(--mono); color: var(--text-3); margin-left: 6px; vertical-align: 2px; }
.grid.spaced { margin-top: 48px; }
.faq-title { margin-bottom: 32px; }
