/* pornofilter.app — the same tokens as the extension pages, one accent, light and dark. */

:root {
  color-scheme: light dark;
  --accent: #7C3AED;
  --accent-strong: #6D28D9;
  --accent-soft: #F3EEFE;
  --on-accent: #FFFFFF;
  --ok: #067647;
  --ok-soft: #ECFDF3;
  --bg: #F4F6F8;
  --surface: #FFFFFF;
  --surface-sunken: #F8FAFC;
  --border: #E2E6EB;
  --border-strong: #C9D0D9;
  --text: #14181F;
  --text-muted: #5A6472;
  --error: #B42318;
  --radius-lg: 14px;
  --radius: 9px;
  --tap-target: 44px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .07);
  --focus-ring: 0 0 0 3px rgba(124, 58, 237, .32);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #A78BFA;
    --accent-strong: #C4B5FD;
    --accent-soft: #241A3D;
    --on-accent: #0B0E13;
    --ok: #75E0A7;
    --ok-soft: #10281E;
    --bg: #0F1216;
    --surface: #171B21;
    --surface-sunken: #12161B;
    --border: #262C35;
    --border-strong: #39414D;
    --text: #E7EAEE;
    --text-muted: #98A2B1;
    --error: #FDA29B;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    --focus-ring: 0 0 0 3px rgba(167, 139, 250, .38);
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  padding: 0;
  min-width: 320px;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: 22px; }
h2 { font-size: 17px; }
h3 { font-size: 15px; }
p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); }

.button-primary, .button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-width: 84px;
  height: var(--tap-target);
  padding: 0 18px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.button-primary { border: none; background-color: var(--accent); color: var(--on-accent); }
.button-primary:hover { background-color: var(--accent-strong); text-decoration: none; }
.button-primary:disabled { opacity: .5; cursor: default; }
.button-secondary { border: 1px solid var(--border-strong); background-color: var(--surface); color: var(--text); }
.button-secondary:hover { background-color: var(--surface-sunken); text-decoration: none; }

.page { max-width: 640px; margin: 0 auto; padding: 32px 20px 64px; }
.page-header { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.page-header .pill { margin-left: auto; }
.brand-mark { display: block; flex: none; width: 28px; height: 28px; }
.page-subtitle { margin: -12px 0 24px; color: var(--text-muted); }
.page-actions { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.page-note { margin-top: 16px; color: var(--text-muted); font-size: 13px; }

.card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 20px;
}
.card + .card { margin-top: 16px; }
.card-caption { margin-top: 4px; color: var(--text-muted); font-size: 14px; }

.steps { list-style: none; margin: 0; padding: 0; }
.step { display: flex; align-items: flex-start; gap: 14px; }
.step + .step { margin-top: 16px; }
.step-number {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background-color: var(--accent-soft); color: var(--accent);
  font-size: 14px; font-weight: 600;
}
.step-number.done { background-color: var(--ok-soft); color: var(--ok); }
.step-body { flex: 1 1 auto; min-width: 0; }
.step-note { margin-top: 8px; color: var(--text-muted); font-size: 14px; }
.step-note.ok { color: var(--ok); font-weight: 600; }
.step-actions { display: flex; align-items: center; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.pin-illustration { display: block; width: 100%; max-width: 360px; height: auto; margin-top: 12px; border-radius: var(--radius); }

.text-input {
  flex: 1 1 auto; min-width: 0; width: 100%;
  height: var(--tap-target); padding: 0 12px;
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  background-color: var(--surface-sunken); color: var(--text);
  font-family: inherit; font-size: 15px;
}
.text-input::placeholder { color: var(--text-muted); }
.text-input:focus-visible { border-color: var(--accent); }
.form { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; max-width: 360px; }
.form-error { color: var(--error); font-size: 14px; }

.pill {
  display: inline-flex; align-items: center; flex: none;
  padding: 2px 8px; border-radius: 999px;
  background-color: var(--accent-soft); color: var(--accent-strong);
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.pill-ok { background-color: var(--ok-soft); color: var(--ok); }

/* Landing */
.hero { padding: 8px 0 8px; }
.hero h1 { font-size: 30px; line-height: 1.2; }
.hero p { margin-top: 12px; font-size: 17px; color: var(--text-muted); max-width: 540px; }
.hero .page-actions { margin-top: 20px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 28px; }
.feature { padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-lg); background-color: var(--surface); box-shadow: var(--shadow); }
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--text-muted); font-size: 14px; }
.section { margin-top: 32px; }
.section h2 { margin-bottom: 8px; }
.section p + p { margin-top: 8px; }
.footer { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px 16px; }

/* Privacy */
.prose h2 { margin-top: 24px; }
.prose p { margin-top: 8px; }
.prose ul { margin: 8px 0 0; padding-left: 20px; }
.prose li + li { margin-top: 4px; }
.prose dt { font-weight: 600; margin-top: 8px; }
.prose dd { margin: 2px 0 0; color: var(--text-muted); }
.button-primary.is-disabled { opacity: .5; cursor: default; pointer-events: none; }
