/* BadgerMe — site styles
   No external requests: system fonts only, no analytics, no trackers.
   A privacy app shouldn't have a website that phones home.

   Colour discipline (the "identity ⊥ escalation" rule):
   - IDENTITY tokens (fur / bone / stripe / lines) are persistent and neutral.
   - ESCALATION tokens (cool → warm → hot) encode heat ONLY. They appear on the
     spine and on genuine escalation cues, never as general-purpose accents. */

:root {
  /* identity — persistent */
  --bg:        #14171c;
  --surface:   #1b1f26;
  --surface-2: #222833;
  --line:      #2a313c;
  --line-soft: #21272f;
  --ink:       #e9e6de;   /* bone text */
  --ink-dim:   #9aa1ac;
  --ink-faint: #6b7280;
  --bone:      #f2f0e9;   /* badger's face */
  --stripe:    #0e1013;   /* the brow stripes */

  /* escalation — heat only */
  --cool: #4fb0a5;
  --warm: #e8b54b;
  --hot:  #e5533d;

  --focus-ring: #7fd3c8;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;

  --maxw: 940px;
  --readw: 680px;
  --spine-w: 6px;

  --step: clamp(3.5rem, 7vw, 6rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color .15s ease, color .15s ease; }
a:hover { border-color: var(--cool); }

:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; border-radius: 3px; }

/* ---------- the escalation spine (signature) ---------- */
.spine-rail {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--spine-w);
  z-index: 40;
  pointer-events: none;
}
.spine {
  width: 100%; height: 100%;
  background: linear-gradient(180deg,
    var(--cool) 0%,
    var(--cool) 18%,
    var(--warm) 52%,
    var(--hot)  86%,
    var(--hot) 100%);
  /* rung notches: transparent gaps punched by the page background */
  -webkit-mask: repeating-linear-gradient(180deg,
    #000 0 26px, transparent 26px 32px);
          mask: repeating-linear-gradient(180deg,
    #000 0 26px, transparent 26px 32px);
  clip-path: inset(0 0 0 0);
  animation: spine-fill 1.1s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes spine-fill { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) { .spine { animation: none; } }
@media (max-width: 720px) { .spine-rail { display: none; } }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }

.site-head {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }

.brand { display: inline-flex; align-items: center; gap: 10px; border: 0; }
/* brand mark: the badgerprint disc, tinted via mask so it flips with the
   colour scheme and wears the IDENTITY colour — never escalation heat. */
.brand .logo {
  width: 26px; height: 26px; flex: none; display: block;
  background-color: var(--ink);
  -webkit-mask: url("badgerprint-large.svg") center / contain no-repeat;
          mask: url("badgerprint-large.svg") center / contain no-repeat;
}
.wordmark { font-weight: 800; letter-spacing: -0.02em; font-size: 1.12rem; }

.nav { display: flex; gap: clamp(14px, 3vw, 28px); }
.nav a { border: 0; font-size: 0.95rem; color: var(--ink-dim); }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom: 2px solid var(--hot); padding-bottom: 2px; }

/* ---------- shared type devices ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cool);
  margin: 0 0 0.9rem;
}
h1 { font-size: clamp(2.5rem, 7vw, 4.2rem); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; margin: 0 0 0.4em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.05rem); line-height: 1.1; letter-spacing: -0.02em; font-weight: 800; margin: 0 0 0.6em; }
h3 { font-size: 1.14rem; letter-spacing: -0.01em; font-weight: 700; margin: 0 0 0.35em; }
.lede { font-size: clamp(1.12rem, 2.2vw, 1.34rem); color: var(--ink-dim); line-height: 1.5; max-width: 34ch; }
.beat { color: var(--ink-dim); font-style: italic; }

/* ---------- hero ---------- */
.hero { padding: clamp(3rem, 9vw, 7rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
/* Stacked hero: value prop first, then the badger as a full-width banner.
   The illustration is ~2:1, so a banner reads far better than a narrow column. */
.hero-grid { display: grid; grid-template-columns: 1fr; gap: clamp(1.2rem, 3vw, 2rem); }
.hero h1 { margin-top: 0.2em; }
.hero .lede { margin: 0.2em 0 1.4rem; }

/* Finished multi-tone artwork — never recoloured. Just sized and lifted a
   touch off the near-matching background with a whisper of glow + a soft shadow. */
.hero-illu {
  display: block; height: auto;
  width: min(100%, 620px);
  margin: 1.6rem auto 0;
  //background: radial-gradient(58% 62% at 50% 46%, rgba(233,230,222,0.05), transparent 72%);
  filter: drop-shadow(0 16px 40px rgba(0,0,0,0.5));
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 0.4rem; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px;
  font-weight: 650; font-size: 0.96rem;
  border: 1px solid var(--line);
  background: var(--surface); color: var(--ink);
  cursor: pointer;
}
.btn:hover { border-color: var(--cool); }
.btn-primary { background: var(--ink); color: #14171c; border-color: var(--ink); font-weight: 700; }
.btn-primary:hover { background: #fff; border-color: #fff; }
.pill-note { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-faint); }

/* ---------- sections ---------- */
.section { padding: var(--step) 0; border-top: 1px solid var(--line-soft); }
.section-head { max-width: var(--readw); margin-bottom: 2.4rem; }

/* the ladder mini-diagram */
.ladder { display: grid; gap: 14px; }
.rung {
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start;
  padding: 18px 20px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line);
  border-left: 4px solid var(--heat, var(--line));
}
.rung .rung-no { font-family: var(--font-mono); font-size: 0.82rem; color: var(--ink-faint); padding-top: 2px; }
.rung h3 { margin-bottom: 0.15em; }
.rung p { margin: 0; color: var(--ink-dim); font-size: 0.98rem; }
.rung.cool { --heat: var(--cool); }
.rung.warm { --heat: var(--warm); }
.rung.hot  { --heat: var(--hot); }

/* privacy panel */
.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(1.6rem, 4vw, 2.6rem);
}
.panel h2 { margin-bottom: 0.3em; }
.manifest { display: grid; gap: 10px; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.manifest li { display: flex; gap: 12px; align-items: baseline; color: var(--ink-dim); }
.manifest .tick { color: var(--cool); font-family: var(--font-mono); flex: none; }

/* three content cards */
.cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  display: block; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface); padding: 22px; color: var(--ink);
}
.card:hover { border-color: var(--cool); }
.card .eyebrow { margin-bottom: 0.6rem; }
.card h3 { margin-bottom: 0.25em; }
.card p { margin: 0; color: var(--ink-dim); font-size: 0.96rem; }

/* ---------- long-form prose (guide / support / privacy) ---------- */
.doc { padding: clamp(2.6rem, 6vw, 4.5rem) 0 5rem; }
.doc-head { max-width: var(--readw); margin-bottom: 2.6rem; }
.doc-head h1 { font-size: clamp(2.1rem, 5.5vw, 3.2rem); }
.updated { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-faint); margin-top: 0.6rem; }

.prose { max-width: var(--readw); }
.prose > section { padding-top: 2.6rem; margin-top: 2.6rem; border-top: 1px solid var(--line-soft); }
.prose > section:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.prose p { color: var(--ink); }
.prose p + p { margin-top: 1rem; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose .beat { display: block; margin-top: 0.9rem; }
.prose ul { padding-left: 1.1rem; margin: 1rem 0; }
.prose li { margin: 0.5rem 0; color: var(--ink-dim); }
.prose li strong { color: var(--ink); }

/* FAQ */
.faq { max-width: var(--readw); display: grid; gap: 10px; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface); padding: 2px 20px;
}
.faq details[open] { border-color: color-mix(in srgb, var(--cool) 45%, var(--line)); }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 0;
  font-weight: 650; display: flex; justify-content: space-between; gap: 14px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--cool); font-size: 1.2rem; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details > p { margin: 0 0 16px; color: var(--ink-dim); }

/* contact block */
.contact { max-width: var(--readw); margin-top: 2.8rem; padding-top: 2.6rem; border-top: 1px solid var(--line-soft); }
.contact-out { font-family: var(--font-mono); margin-top: 1rem; color: var(--ink); min-height: 1.4em; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line-soft); padding: 2.4rem 0 3rem; color: var(--ink-dim); font-size: 0.92rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; align-items: center; }
.foot-priv { color: var(--ink); }
.foot-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-faint); }
.linkish { background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--ink-dim); font: inherit; cursor: pointer; padding: 0; }
.linkish:hover { border-color: var(--cool); color: var(--ink); }

/* ---------- light mode (dark-first, but don't blind light-mode users) ---------- */
@media (prefers-color-scheme: light) {
  :root {
    --bg:        #f4f2ec;
    --surface:   #fbfaf6;
    --surface-2: #efece3;
    --line:      #ddd8cc;
    --line-soft: #e6e2d7;
    --ink:       #1a1c20;
    --ink-dim:   #55606b;
    --ink-faint: #8a8f99;
    --bone:      #f7f5ef;
    --stripe:    #16181c;
  }
  .btn-primary { background: #16181c; color: #f7f5ef; border-color: #16181c; }
  .btn-primary:hover { background: #000; border-color: #000; }
  .site-head { background: color-mix(in srgb, var(--bg) 82%, transparent); }
}
