/* =============================================================================
   NoAdsForever.com — handwritten stylesheet (no framework, no tracking fonts)
   Theme via CSS custom properties; dark mode toggled by `.dark` on <html>.
   ========================================================================== */

:root {
  /* brand greens */
  --brand-50: #f0fdf4;
  --brand-100: #dcfce7;
  --brand-200: #bbf7d0;
  --brand-500: #22c55e;
  --brand-600: #16a34a;
  --brand-700: #15803d;
  --brand-800: #166534;
  --brand-900: #14532d;
  /* coffee */
  --coffee-400: #f59e0b;
  --coffee-500: #d97706;
  --coffee-600: #b45309;
  /* accents (card left border) */
  --accent-green: #22c55e;
  --accent-blue: #3b82f6;
  --accent-amber: #f59e0b;
  --accent-red: #ef4444;
  --accent-purple: #a855f7;
  --accent-pink: #ec4899;
  --accent-teal: #14b8a6;
  --accent-orange: #f97316;

  /* light theme surfaces */
  --bg: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-muted: #f1f5f9;
  --surface: #ffffff;
  --surface-2: #ffffff;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-muted: #475569;
  --text-subtle: #64748b;
  --text-faint: #94a3b8;
  --amber-bg: #fffbeb;

  --ring: rgba(22, 163, 74, 0.35);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 24px -8px rgba(15, 23, 42, 0.18);
  --shadow-lg: 0 24px 60px -20px rgba(15, 23, 42, 0.28);

  --radius: 14px;
  --radius-lg: 20px;
  --maxw: 1120px;

  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Segoe UI", system-ui, -apple-system, ui-sans-serif, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "SF Mono", "Roboto Mono", Menlo, Consolas, monospace;
}

html.dark {
  --bg: #0b1220;
  --bg-subtle: #111c30;
  --bg-muted: #1c2840;
  --surface: #131f33;
  --surface-2: #18253c;
  --border: #243049;
  --border-strong: #34405c;
  --text: #f1f5f9;
  --text-muted: #c1cbd9;
  --text-subtle: #94a3b8;
  --text-faint: #6b7a90;
  --amber-bg: rgba(120, 80, 10, 0.18);
  --shadow-md: 0 12px 28px -10px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 28px 70px -24px rgba(0, 0, 0, 0.7);
}

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
svg { width: 1.25em; height: 1.25em; flex-shrink: 0; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.02em; }
::selection { background: var(--brand-200); color: var(--brand-900); }

.main { min-height: 60vh; }

/* ---------- shared layout ---------- */
.section { max-width: var(--maxw); margin-inline: auto; padding: 72px 20px; }
.narrow { max-width: 760px; margin-inline: auto; padding: 64px 20px; }
.heading { max-width: 640px; margin: 0 auto 36px; text-align: center; }
.heading h2 { font-size: clamp(1.7rem, 3vw, 2.1rem); font-weight: 700; }
.heading p { margin-top: 12px; color: var(--text-subtle); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border-radius: var(--radius); padding: 11px 18px;
  font-weight: 600; font-size: 0.94rem; line-height: 1;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn--lg { padding: 14px 24px; font-size: 1rem; }
.btn--primary { background: var(--brand-600); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--brand-700); transform: translateY(-1px); }
.btn--ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { background: var(--bg-muted); transform: translateY(-1px); }
.btn--coffee { background: var(--coffee-500); color: #fff; box-shadow: var(--shadow-sm); }
.btn--coffee:hover { background: var(--coffee-600); transform: translateY(-1px); }
.btn--notify { background: var(--bg-muted); color: var(--text-muted); }
.btn--notify:hover { background: var(--border); }

/* store buttons */
.btn--store { gap: 11px; padding: 9px 16px; color: #fff; }
.btn--store .btn__store-icon { width: 22px; height: 22px; }
.btn--play { background: var(--brand-600); }
.btn--play:hover { background: var(--brand-700); }
.btn--app { background: #0b1220; }
.btn--app:hover { background: #000; }
html.dark .btn--app { box-shadow: inset 0 0 0 1px var(--border-strong); }
.btn__store-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.btn__store-text small { font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.8; }
.btn__store-text strong { font-size: 0.9rem; }

/* ---------- badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  border-radius: 999px; font-weight: 600; font-size: 11px;
  padding: 3px 9px; line-height: 1.4;
}
.badge svg { width: 13px; height: 13px; }
.badge-row { display: inline-flex; gap: 5px; }
.badge--noads {
  background: var(--brand-100); color: var(--brand-800);
  box-shadow: inset 0 0 0 1px rgba(22, 163, 74, 0.2);
}
html.dark .badge--noads { background: rgba(22, 101, 52, 0.4); color: var(--brand-200); }
.badge--sm { font-size: 10.5px; padding: 2px 8px; }
.badge--lg { font-size: 0.85rem; padding: 6px 14px; }
.badge--android { background: var(--brand-100); color: var(--brand-800); }
html.dark .badge--android { background: rgba(22, 101, 52, 0.4); color: var(--brand-200); }
.badge--ios { background: #dbeafe; color: #1e40af; }
html.dark .badge--ios { background: rgba(30, 58, 138, 0.4); color: #bfdbfe; }
.badge--cat { background: var(--bg-muted); color: var(--text-subtle); }
.badge--status { color: var(--text-subtle); background: var(--bg-muted); }
.badge--status .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--text-faint); }
.badge--status.is-live { background: var(--brand-100); color: var(--brand-800); }
.badge--status.is-live .dot { background: var(--brand-600); }
html.dark .badge--status.is-live { background: rgba(22, 101, 52, 0.4); color: var(--brand-200); }
.badge--status.is-beta { background: #fef3c7; color: #92400e; }
.badge--status.is-beta .dot { background: var(--coffee-400); }

/* =============================================================================
   NAVBAR
   ========================================================================== */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: var(--maxw); margin-inline: auto; padding: 0 20px;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.nav__desktop { display: none; align-items: center; gap: 2px; }
.nav__link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 12px; border-radius: 10px; font-size: 0.9rem; font-weight: 500;
  color: var(--text-muted); transition: background 0.15s, color 0.15s;
}
.nav__link:hover { background: var(--bg-muted); color: var(--text); }
.nav__link.is-active { color: var(--brand-700); }
html.dark .nav__link.is-active { color: var(--brand-200); }
.nav__actions { display: flex; align-items: center; gap: 6px; }
.iconbtn {
  display: inline-flex; padding: 9px; border-radius: 10px; color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
}
.iconbtn:hover { background: var(--bg-muted); color: var(--text); }
.iconbtn svg { width: 20px; height: 20px; }

/* theme toggle icon visibility */
.only-dark { display: none; }
html.dark .only-light { display: none; }
html.dark .only-dark { display: inline-flex; }

/* logo */
.logo { display: inline-flex; align-items: center; gap: 8px; }
.logo__mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 9px; background: var(--brand-600); color: #fff;
}
.logo__mark-svg { width: 19px; height: 19px; }
.logo__word { font-family: var(--font-display); font-size: 1.2rem; line-height: 1; color: var(--text); }
.logo__word b { font-weight: 700; }
.logo__word span { font-weight: 300; }
.logo__inf { width: 19px; height: 19px; color: var(--brand-600); }

/* dropdown */
.dropdown { position: relative; }
.dropdown__chev { width: 15px; height: 15px; transition: transform 0.2s; }
.dropdown.is-open .dropdown__chev { transform: rotate(180deg); }
.dropdown__menu {
  position: absolute; left: 0; top: calc(100% + 8px); width: 224px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 6px;
}
.dropdown__menu a {
  display: block; padding: 9px 12px; border-radius: 9px; font-size: 0.9rem; color: var(--text-muted);
}
.dropdown__menu a:hover { background: var(--bg-muted); color: var(--text); }
.dropdown__sep { height: 1px; background: var(--border); margin: 6px 8px; }

.nav__burger { display: inline-flex; }

/* mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 50; background: var(--bg); }
.drawer__head { height: 64px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; }
.drawer__nav { display: flex; flex-direction: column; padding: 16px; gap: 2px; }
.drawer__nav a { padding: 12px; border-radius: 10px; font-size: 1.05rem; font-weight: 500; color: var(--text); }
.drawer__nav a:hover { background: var(--bg-muted); }
.drawer__sep { height: 1px; background: var(--border); margin: 10px 0; }
.drawer__label { padding: 4px 12px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-faint); }

@media (min-width: 768px) {
  .nav__desktop { display: flex; }
  .nav__burger { display: none; }
}

/* =============================================================================
   HERO
   ========================================================================== */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 55% at 50% 0%, rgba(34, 197, 94, 0.16), transparent 70%),
    radial-gradient(40% 40% at 85% 10%, rgba(217, 119, 6, 0.10), transparent 70%);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 0%, #000 30%, transparent 75%);
  opacity: 0.5;
}
.hero__inner {
  position: relative; z-index: 1;
  max-width: 860px; margin-inline: auto; padding: 96px 20px 88px; text-align: center;
}
.hero__pill { display: inline-block; margin-bottom: 22px; }
.hero__title { font-size: clamp(2.4rem, 6.5vw, 4rem); font-weight: 800; letter-spacing: -0.03em; }
.grad {
  background: linear-gradient(120deg, var(--brand-500), var(--brand-700));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { max-width: 620px; margin: 22px auto 0; font-size: 1.12rem; color: var(--text-muted); }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.hero__trust {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 20px;
  margin-top: 34px; list-style: none; padding: 0;
  font-size: 0.88rem; color: var(--text-subtle);
}
.hero__trust li { display: inline-flex; align-items: center; gap: 7px; }
.hero__trust svg { width: 17px; height: 17px; color: var(--brand-600); }

@media (max-width: 520px) {
  .hero__cta .btn { width: 100%; }
}

/* =============================================================================
   STATS BAR
   ========================================================================== */
.stats { background: var(--bg-subtle); border-bottom: 1px solid var(--border); }
.stats__inner {
  max-width: 760px; margin-inline: auto; padding: 36px 20px;
  display: grid; grid-template-columns: repeat(3, 1fr); text-align: center;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat__num { font-family: var(--font-display); font-size: clamp(1.8rem, 5vw, 2.4rem); font-weight: 800; }
.stat__num--zero { color: var(--accent-red); }
.stat__label { font-size: 0.82rem; color: var(--text-subtle); }

/* =============================================================================
   APP CARDS + GRID
   ========================================================================== */
.tabs-wrap { display: flex; justify-content: center; margin-bottom: 32px; }
.tabs {
  display: inline-flex; gap: 4px; padding: 4px;
  background: var(--bg-muted); border-radius: 999px;
}
.tab {
  padding: 7px 18px; border-radius: 999px; font-size: 0.88rem; font-weight: 600;
  color: var(--text-subtle); transition: background 0.15s, color 0.15s;
}
.tab:hover { color: var(--text); }
.tab.is-active { background: var(--brand-600); color: #fff; box-shadow: var(--shadow-sm); }

.grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-left: 4px solid var(--card-accent, var(--brand-500));
  border-radius: var(--radius-lg); padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card.is-soon { opacity: 0.66; }
.card--accent-green { --card-accent: var(--accent-green); }
.card--accent-blue { --card-accent: var(--accent-blue); }
.card--accent-amber { --card-accent: var(--accent-amber); }
.card--accent-red { --card-accent: var(--accent-red); }
.card--accent-purple { --card-accent: var(--accent-purple); }
.card--accent-pink { --card-accent: var(--accent-pink); }
.card--accent-teal { --card-accent: var(--accent-teal); }
.card--accent-orange { --card-accent: var(--accent-orange); }
.card__link { position: absolute; inset: 0; z-index: 0; border-radius: var(--radius-lg); }
.card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card__icon { width: 64px; height: 64px; border-radius: 16px; }
.card__badges { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.card__name { margin-top: 16px; font-size: 1.15rem; font-weight: 700; }
.card__tagline { margin-top: 3px; font-size: 0.86rem; color: var(--text-subtle); }
.card__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.card__desc {
  margin-top: 12px; font-size: 0.9rem; color: var(--text-muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card__actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

/* empty state */
.empty {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 64px 20px; text-align: center;
  border: 1px dashed var(--border-strong); border-radius: var(--radius-lg);
}
.empty__icon { width: 40px; height: 40px; color: var(--text-faint); }
.empty__title { font-weight: 600; color: var(--text-muted); }
.empty__sub { font-size: 0.88rem; color: var(--text-faint); }

/* =============================================================================
   MISSION + COFFEE
   ========================================================================== */
.mission { background: var(--bg-subtle); border-block: 1px solid var(--border); }
.mission__inner { max-width: 720px; margin-inline: auto; padding: 72px 20px; }
.mission__body { margin-top: 22px; text-align: center; color: var(--text-muted); display: flex; flex-direction: column; gap: 16px; }
.mission__link { margin-top: 26px; text-align: center; }
.mission__link a { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--brand-700); }
html.dark .mission__link a { color: var(--brand-200); }
.mission__link svg { width: 16px; height: 16px; }

.coffee { background: var(--amber-bg); }
.coffee__inner { position: relative; max-width: var(--maxw); margin-inline: auto; padding: 56px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.coffee__inner h2 { font-size: clamp(1.4rem, 3.4vw, 1.8rem); font-weight: 700; }
.coffee__close { position: absolute; top: 16px; right: 16px; padding: 7px; border-radius: 9px; color: var(--coffee-600); }
.coffee__close:hover { background: rgba(180, 83, 9, 0.12); }
.coffee__note { font-size: 0.88rem; color: var(--text-subtle); }

/* =============================================================================
   PAGE HEAD + EXPLORER (android/ios)
   ========================================================================== */
.pagehead { max-width: 640px; margin-bottom: 36px; }
.pagehead h1 { font-size: clamp(1.9rem, 4vw, 2.4rem); font-weight: 800; }
.pagehead p { margin-top: 12px; color: var(--text-muted); }

.filter-toggle {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
  padding: 9px 16px; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 0.88rem; font-weight: 500; color: var(--text-muted);
}
.filter-toggle svg { width: 16px; height: 16px; }
.explorer__aside { display: none; }
.catfilter { border: none; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.catfilter legend { margin-bottom: 12px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-subtle); }
.catfilter__item {
  display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 9px;
  font-size: 0.9rem; color: var(--text-muted); cursor: pointer;
}
.catfilter__item:hover { background: var(--bg-muted); }
.catfilter__item input { width: 16px; height: 16px; accent-color: var(--brand-600); }

@media (min-width: 1024px) {
  .explorer { display: grid; grid-template-columns: 220px 1fr; gap: 40px; }
  .filter-toggle { display: none; }
  .explorer__aside { display: block; position: sticky; top: 88px; align-self: start; }
}
/* mobile collapsible panel */
.explorer__aside[data-filter-panel] { margin-bottom: 22px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); }
@media (min-width: 1024px) {
  .explorer__aside[data-filter-panel] { display: block !important; border: none; padding: 0; margin: 0; }
}
.explorer__aside.is-collapsed { display: none; }

/* ios empty */
.ios-empty {
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
  padding: 72px 24px; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg);
}
.ios-empty__icon {
  display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px;
  border-radius: 16px; background: #dbeafe; color: #1d4ed8;
}
html.dark .ios-empty__icon { background: rgba(30, 58, 138, 0.4); color: #bfdbfe; }
.ios-empty__icon svg { width: 28px; height: 28px; }
.ios-empty h2 { font-size: 1.25rem; font-weight: 700; }
.ios-empty p { max-width: 440px; font-size: 0.9rem; color: var(--text-subtle); }

/* =============================================================================
   APP DETAIL
   ========================================================================== */
.detail { max-width: 880px; margin-inline: auto; padding: 64px 20px; }
.detail__head { display: flex; flex-direction: column; gap: 22px; }
.detail__icon { width: 112px; height: 112px; border-radius: 26px; border: 1px solid var(--border); }
.detail__badges { display: flex; flex-wrap: wrap; gap: 8px; }
.detail__name { margin-top: 14px; font-size: clamp(1.9rem, 4vw, 2.4rem); font-weight: 800; }
.detail__tagline { margin-top: 8px; font-size: 1.1rem; color: var(--text-muted); }
.detail__ver { margin-top: 8px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-faint); }
.detail__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.detail__section { margin-top: 52px; }
.detail__section > h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 20px; }
@media (min-width: 640px) { .detail__head { flex-direction: row; align-items: flex-start; } .detail__head > div { padding-top: 4px; } .detail__name { margin-top: 12px; } }

.prose { display: flex; flex-direction: column; gap: 16px; color: var(--text-muted); }
.features { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.features li { display: flex; align-items: flex-start; gap: 12px; color: var(--text-muted); }
.features__check { width: 20px; height: 20px; margin-top: 2px; color: var(--brand-600); flex-shrink: 0; }

/* screenshots */
.shots { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.shots__thumb { flex: 0 0 auto; width: 220px; scroll-snap-align: start; }
.shots__thumb img { width: 100%; border-radius: 18px; border: 1px solid var(--border); transition: transform 0.18s; }
.shots__thumb:hover img { transform: scale(1.02); }
.shots__cap { display: block; margin-top: 8px; text-align: center; font-size: 0.78rem; color: var(--text-subtle); }
@media (min-width: 768px) {
  .shots { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; }
  .shots__thumb { width: auto; }
}

/* lightbox (CSS :target) */
.lightbox {
  position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.85); padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.lightbox:target { opacity: 1; pointer-events: auto; }
.lightbox__close { position: absolute; inset: 0; }
.lightbox__fig { position: relative; max-height: 100%; }
.lightbox__fig img { max-height: 84vh; width: auto; border-radius: 16px; }
.lightbox__fig figcaption { margin-top: 12px; text-align: center; font-size: 0.85rem; color: rgba(255, 255, 255, 0.8); }

/* callout */
.callout {
  border: 1px solid var(--brand-200); background: var(--brand-50);
  border-radius: var(--radius-lg); padding: 24px;
}
html.dark .callout { border-color: var(--brand-800); background: rgba(20, 83, 45, 0.22); }
.callout h3 { font-size: 1.15rem; font-weight: 700; }
.callout p { margin-top: 10px; font-size: 0.92rem; color: var(--text-muted); }
.callout__cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 600; font-size: 0.9rem; color: var(--brand-700); }
html.dark .callout__cta { color: var(--brand-200); }
.callout__cta svg { width: 15px; height: 15px; }
.link-coffee { color: var(--coffee-500); font-weight: 600; text-underline-offset: 2px; }
.link-coffee:hover { text-decoration: underline; }

/* tags */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-subtle);
  background: var(--bg-muted); border-radius: 999px; padding: 4px 11px;
}

/* =============================================================================
   CONTENT PAGES (support-us, support, privacy, 404)
   ========================================================================== */
.page-h1 { font-size: clamp(1.9rem, 4vw, 2.4rem); font-weight: 800; }
.page-h2 { font-size: 1.3rem; font-weight: 700; margin-top: 56px; }
.lead { margin-top: 12px; color: var(--text-subtle); }
.narrow .prose { margin-top: 22px; }
.link { color: var(--brand-700); font-weight: 500; text-underline-offset: 2px; }
html.dark .link { color: var(--brand-200); }
.link:hover { text-decoration: underline; }

.donate { margin-top: 40px; padding: 32px; text-align: center; background: var(--amber-bg); border-radius: var(--radius-lg); }
.donate p { margin-top: 12px; font-size: 0.88rem; color: var(--text-subtle); }

.minicards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
.minicard { padding: 24px; text-align: center; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.minicard__num { display: block; font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; }
.minicard__num--sm { font-size: 1.15rem; }
.minicard__label { display: block; margin-top: 4px; font-size: 0.82rem; color: var(--text-subtle); }

.paylist { list-style: none; padding: 0; margin-top: 22px; display: flex; flex-direction: column; gap: 16px; }
.paylist li { display: flex; align-items: flex-start; gap: 12px; color: var(--text-muted); }
.paylist strong { color: var(--text); }
.paylist__icon { width: 20px; height: 20px; margin-top: 2px; color: var(--brand-600); flex-shrink: 0; }

.notice { display: flex; gap: 12px; align-items: flex-start; margin-top: 48px; padding: 24px; background: var(--bg-subtle); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.notice strong { color: var(--text); }
.notice p { font-size: 0.9rem; color: var(--text-muted); }
.notice__icon { width: 20px; height: 20px; margin-top: 2px; color: var(--brand-600); flex-shrink: 0; }

/* FAQ */
.faq { margin-top: 36px; display: flex; flex-direction: column; gap: 12px; }
.faq__item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 20px; font-weight: 600; cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__chev { width: 20px; height: 20px; color: var(--text-faint); transition: transform 0.2s; }
.faq__item[open] .faq__chev { transform: rotate(180deg); }
.faq__item p { padding: 0 20px 18px; font-size: 0.9rem; color: var(--text-muted); }

.contact-card { margin-top: 48px; padding: 32px; text-align: center; background: var(--bg-subtle); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.contact-card h2 { font-size: 1.25rem; font-weight: 700; }
.contact-card p { margin-top: 8px; font-size: 0.9rem; color: var(--text-subtle); }
.contact-card .btn { margin-top: 20px; }

/* legal */
.updated { margin-top: 8px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-faint); }
.legal { margin-top: 32px; display: flex; flex-direction: column; gap: 32px; }
.legal h2 { font-size: 1.2rem; font-weight: 700; }
.legal p { margin-top: 12px; color: var(--text-muted); }
.legal strong { color: var(--text); }

/* 404 */
.notfound { max-width: 560px; margin-inline: auto; padding: 110px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.notfound__code { font-family: var(--font-mono); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-600); }
.notfound h1 { margin-top: 12px; font-size: clamp(1.9rem, 4vw, 2.4rem); font-weight: 800; }
.notfound p { margin-top: 16px; color: var(--text-muted); }
.notfound .btn { margin-top: 30px; }

/* =============================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--bg-subtle); border-top: 1px solid var(--border); }
.footer__inner { max-width: var(--maxw); margin-inline: auto; padding: 56px 20px; }
.footer__cols { display: grid; grid-template-columns: 1fr; gap: 36px; }
.footer__brand p { margin-top: 12px; font-size: 0.88rem; color: var(--text-subtle); }
.footer__col h3 { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.footer__col ul { list-style: none; padding: 0; margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.footer__col a { font-size: 0.9rem; color: var(--text-muted); }
.footer__col a:hover { color: var(--brand-700); }
html.dark .footer__col a:hover { color: var(--brand-200); }
.footer__bottom {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 14px; align-items: center;
  font-size: 0.85rem; color: var(--text-subtle); text-align: center;
}
.footer__coffee { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--coffee-500); }
.footer__coffee:hover { color: var(--coffee-600); }
@media (min-width: 640px) { .footer__cols { grid-template-columns: 1.4fr 1fr 1fr 1fr; } .footer__bottom { flex-direction: row; justify-content: space-between; } }

[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
