/* ==========================================================================
   SnagFlat — shared design system (warm / civic)
   Anchored on the in-product BADGE palette (green = stabilized, amber/gold =
   sun, warm neutrals). One token set used by the site; the same hues drive the
   extension's badges + options page so the whole product reads as one thing.
   ========================================================================== */
:root {
  /* warm neutrals (paper, ink, hairlines) — never cold gray */
  --paper: #fbf7f0;
  --paper-2: #f4eee3;
  --surface: #ffffff;
  --ink: #211c16;
  --ink-soft: #5d554b;
  --ink-faint: #908676;
  --line: #e8ded0;
  --line-soft: #f0e8da;

  /* badge-derived accents */
  --green: #1f9d4d;
  --green-deep: #176c33;
  --green-tint: #e7f6ec;
  --amber: #c77a06;
  --amber-deep: #8a5a00;
  --amber-tint: #fbeed5;
  --gold: #e0a93b;
  --slate: #44506a;        /* supporting cool note for balance */
  --rust: #8a5630;

  --radius-pill: 999px;
  --radius-card: 16px;
  --radius-btn: 11px;
  --shadow-card: 0 1px 2px rgba(33, 28, 22, 0.05), 0 8px 28px rgba(33, 28, 22, 0.06);
  --shadow-float: 0 10px 40px rgba(33, 28, 22, 0.13);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --maxw: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }

a { color: var(--amber-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }

/* ---- type ---- */
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.12; margin: 0; font-weight: 800; }
.eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--amber-deep); margin: 0 0 14px;
}
.lead { font-size: 19px; color: var(--ink-soft); }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font: inherit; font-weight: 650; font-size: 15px; cursor: pointer;
  padding: 12px 20px; border-radius: var(--radius-btn); border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.2); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-card); }
.btn-primary svg { color: var(--gold); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); border-color: var(--ink-faint); }
.note { font-size: 13.5px; color: var(--ink-faint); }

/* ---- header ---- */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-head .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 17px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink-soft); font-size: 14.5px; font-weight: 550; }
.nav a:hover { color: var(--ink); }
@media (max-width: 680px) { .nav .hide-sm { display: none; } }

/* ---- hero (asymmetric, not a centered blob) ---- */
.hero { padding: 72px 0 40px; }
.hero .container { display: grid; grid-template-columns: 1.04fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 52px); }
.hero .lead { margin: 20px 0 28px; max-width: 30ch; }
.hero .cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-art { position: relative; }
.hero-art .frame {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card);
  box-shadow: var(--shadow-float); overflow: hidden; transform: rotate(-1.1deg);
}
.hero-art .frame img { width: 100%; }
.hero-art .pin {
  position: absolute; left: -14px; bottom: 26px; background: var(--green-tint); color: var(--green-deep);
  border: 1px solid #b6e2c4; border-radius: var(--radius-pill); padding: 7px 13px; font-size: 13px; font-weight: 700;
  box-shadow: var(--shadow-card); transform: rotate(-1.1deg);
}
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; gap: 36px; }
  .hero-art .frame { transform: none; }
  .hero-art .pin { transform: none; left: 12px; }
}

/* ---- trust strip ---- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-2); }
.strip .container { display: flex; gap: 28px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; font-size: 14.5px; color: var(--ink-soft); }
.strip b { color: var(--ink); font-weight: 700; }

/* ---- sections ---- */
section { padding: 76px 0; }
.section-head { max-width: 38ch; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); }
.section-head p { color: var(--ink-soft); font-size: 17px; margin: 14px 0 0; }

/* ---- "what you see" : editorial list, not an emoji grid ---- */
.signals { display: grid; gap: 0; border-top: 1px solid var(--line); }
.signal { display: grid; grid-template-columns: 230px 1fr; gap: 28px; padding: 22px 4px; border-bottom: 1px solid var(--line); align-items: start; }
.signal .chip-wrap { display: flex; }
.signal h3 { font-size: 17px; margin-bottom: 4px; }
.signal p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.signal.feature { background: var(--amber-tint); border-radius: var(--radius-card); border-bottom-color: transparent; padding: 26px 22px; margin-bottom: 6px; }
.signal.feature .tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--amber-deep); margin-bottom: 8px; }
@media (max-width: 680px) { .signal { grid-template-columns: 1fr; gap: 12px; } }

/* ---- the real badge pills (mirrors the extension exactly) ---- */
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: var(--radius-pill); font-size: 13px; font-weight: 650; border: 1px solid transparent; white-space: nowrap; }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; }
.badge .sw { width: 12px; height: 12px; border-radius: 3px; border: 1px solid rgba(0,0,0,.18); }
.b-stab { background: var(--green-tint); color: var(--green-deep); border-color: #b6e2c4; }
.b-stab .dot { background: var(--green); }
.b-orient { background: #eef2f7; color: var(--slate); border-color: #d6deea; }
.b-sun { background: #fff5e0; color: var(--amber-deep); border-color: #f3dca6; }
.b-busy { background: #fdf1e3; color: var(--rust); border-color: #f0d3b4; }
.b-quiet { background: var(--green-tint); color: #2f6f47; border-color: #bfe3cd; }
.b-size { background: var(--paper-2); color: var(--ink-soft); border-color: var(--line); }

/* ---- how it works ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 24px; box-shadow: var(--shadow-card); }
.step .ico { width: 38px; height: 38px; border-radius: 10px; background: var(--amber-tint); color: var(--amber-deep); display: grid; place-items: center; margin-bottom: 14px; }
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.step .num { font-size: 12px; font-weight: 700; color: var(--amber-deep); letter-spacing: .08em; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---- honesty section (brand-differentiating) ---- */
.honest { background: var(--ink); color: #f3ece1; }
.honest .container { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.honest h2 { color: #fff; font-size: clamp(26px, 3.4vw, 34px); }
.honest .eyebrow { color: var(--gold); }
.honest ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.honest li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 15.5px; color: #e7ddcf; }
.honest li svg { color: var(--gold); margin-top: 3px; }
.honest li b { color: #fff; font-weight: 700; }
@media (max-width: 760px) { .honest .container { grid-template-columns: 1fr; gap: 28px; } }

/* ---- CTA band ---- */
.cta-band { text-align: center; background: var(--paper-2); border-top: 1px solid var(--line); }
.cta-band h2 { font-size: clamp(26px, 3.6vw, 38px); }
.cta-band p { color: var(--ink-soft); font-size: 17px; margin: 14px auto 26px; max-width: 44ch; }

/* ---- footer ---- */
.site-foot { border-top: 1px solid var(--line); padding: 44px 0; color: var(--ink-soft); font-size: 14px; }
.site-foot .container { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-foot .brand { font-size: 15px; }
.site-foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-foot a { color: var(--ink-soft); }
.site-foot a:hover { color: var(--ink); }
.site-foot .fine { width: 100%; margin-top: 14px; color: var(--ink-faint); font-size: 12.5px; }

/* ---- legal pages (privacy / disclaimer) ---- */
.doc { max-width: 720px; margin: 0 auto; padding: 56px 24px 72px; }
.doc h1 { font-size: 34px; margin-bottom: 6px; }
.doc .updated { color: var(--ink-faint); font-size: 14px; margin-bottom: 28px; }
.doc h2 { font-size: 20px; margin: 30px 0 8px; }
.doc p, .doc li { color: var(--ink-soft); font-size: 15.5px; }
.doc ul { padding-left: 20px; }
.doc .callout { background: var(--amber-tint); border: 1px solid #f3dca6; border-radius: var(--radius-card); padding: 16px 18px; margin: 20px 0; }
.doc .callout p { margin: 0; color: var(--amber-deep); }
.doc code { background: var(--paper-2); padding: 1px 6px; border-radius: 5px; font-size: 13px; }
.back-link { display: inline-block; margin-bottom: 22px; color: var(--ink-soft); font-size: 14px; font-weight: 550; }
.back-link:hover { color: var(--ink); text-decoration: none; }
