/* Smallgear site — one shared stylesheet, no build step. */
:root {
  --bg: #fffdf9;
  --surface: #f6f1ea;
  --card: #ffffff;
  --border: #e8e0d5;
  --text: #24201c;
  --muted: #6b635a;
  --accent: #b5651d;
  --accent-strong: #934f12;
  --accent-text: #ffffff;
  --keep: #2e7d32;
  --restart: #c25e00;
  --radius: 14px;
  --max: 1080px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17181a;
    --surface: #1f2124;
    --card: #24272b;
    --border: #34383d;
    --text: #ece8e3;
    --muted: #a39b92;
    --accent: #d9893f;
    --accent-strong: #e9a564;
    --accent-text: #17181a;
    --keep: #66bb6a;
    --restart: #ffa726;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent-strong); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--card); padding: 8px 12px; z-index: 10; }

/* ---------- header / footer ---------- */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: var(--text); text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.nav { display: flex; gap: 20px; font-size: .95rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.site-footer { border-top: 1px solid var(--border); margin-top: 80px; padding: 28px 0 40px; font-size: .9rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: var(--accent-strong); color: var(--accent-text); }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--card); }
.btn-ghost:hover { border-color: var(--muted); color: var(--text); }
.btn[aria-disabled="true"] { opacity: .6; pointer-events: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- sections ---------- */
.hero { padding: 72px 0 56px; }
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 40em; }
.section { padding: 56px 0; }
.section.alt { background: var(--surface); }
.eyebrow { font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-strong); margin-bottom: 10px; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card h3 { margin-bottom: 6px; }
.card p:last-child { margin-bottom: 0; }

/* product card on the home page */
.product { display: grid; grid-template-columns: 96px 1fr; gap: 22px; align-items: center; }
.product img { width: 96px; height: 96px; }
@media (max-width: 520px) { .product { grid-template-columns: 1fr; } }
.badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--surface); color: var(--muted); border: 1px solid var(--border); vertical-align: middle; }
.badge.accent { background: var(--accent); color: var(--accent-text); border-color: transparent; }

/* ---------- CleanCookie product page ---------- */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.check-list { list-style: none; padding: 0; margin: 0 0 1.4em; }
.check-list li { padding-left: 30px; position: relative; margin-bottom: 8px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--keep); font-weight: 700; }

/* HTML mock of the extension popup */
.popup-mock {
  width: 100%; max-width: 340px; margin: 0 auto;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 18px 50px rgba(60, 40, 20, .14); font-size: 14px; line-height: 1.45;
}
.popup-mock header { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.popup-mock header img { width: 20px; height: 20px; }
.popup-mock header .auto { margin-left: auto; font-size: 13px; display: flex; align-items: center; gap: 6px; color: var(--muted); }
.popup-mock header .auto i { width: 14px; height: 14px; border-radius: 4px; background: var(--accent); display: inline-block; }
.popup-mock section { padding: 12px 14px; border-bottom: 1px solid var(--border); }
.popup-mock .host { font-weight: 600; font-size: 16px; }
.popup-mock .row { display: flex; align-items: center; gap: 8px; margin: 6px 0 10px; }
.pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #fff; background: #5f6368; }
.pill.keep { background: var(--keep); }
.pill.restart { background: var(--restart); }
.popup-mock .choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 8px; }
.popup-mock .choices span, .popup-mock .wide {
  display: block; text-align: center; padding: 6px 4px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface); font-size: 13px;
}
.popup-mock .choices .on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); font-weight: 600; }
.popup-mock .wide.primary { background: var(--accent); color: var(--accent-text); border-color: transparent; }
.popup-mock footer { display: flex; justify-content: space-between; padding: 8px 14px; font-size: 12px; color: var(--muted); }

/* pricing */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 820px; }
@media (max-width: 680px) { .pricing { grid-template-columns: 1fr; } }
.price { font-size: 2.2rem; font-weight: 700; margin: 4px 0 12px; }
.price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.card.featured { border: 2px solid var(--accent); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--border); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* ---------- legal pages ---------- */
.prose { max-width: 760px; padding-top: 48px; }
.prose h2 { font-size: 1.35rem; margin-top: 1.8em; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: 6px; }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; margin: 8px 0 16px; }
.prose th, .prose td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { color: var(--muted); font-weight: 600; }
.table-scroll { overflow-x: auto; }
.todo { background: #fff3cd; color: #5c4400; padding: 0 4px; border-radius: 4px; }
