/* Bugpacker site. The palette is the extension's own, sampled from the icon art —
   see assets/design/tokens.css in the repo. */
:root {
  --surface-0: #031930;
  --surface-1: #07273E;
  --surface-2: #0A3547;
  --surface-3: #133B4D;
  --border: #094C59;
  --border-strong: #1C505F;
  --accent: #2DB39E;
  --accent-strong: #4FD98F;
  --accent-hi: #6FE8A6;
  --accent-wing: #23A4A9;
  --glow: #A7FAEA;
  --text-hi: #E6FBFF;
  --text: #C9E6EE;
  --text-dim: #75C4BF;
  --text-mute: #8AA3B2;
  --on-accent: #03283B;
  --warn: #FFC46B;
  --r-md: 10px;
  --r-lg: 16px;
  --r-pill: 999px;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}

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

body {
  margin: 0;
  background: var(--surface-0);
  background-image: radial-gradient(120% 80% at 50% 0%, #0C3B4E 0%, var(--surface-0) 62%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.wrap { max-width: 920px; margin: 0 auto; padding: 0 24px; }
a { color: var(--accent-strong); }
a:hover { color: var(--accent-hi); }

/* ---------------------------------------------------------------- header -- */

header.site {
  display: flex; align-items: center; gap: 12px;
  padding: 24px 0;
}
header.site img { width: 36px; height: 36px; }
header.site .name { font-weight: 700; color: var(--text-hi); letter-spacing: -.01em; }
header.site nav { margin-left: auto; display: flex; gap: 20px; font-size: 15px; }
header.site nav a { color: var(--text-mute); text-decoration: none; }
header.site nav a:hover { color: var(--text-hi); }

/* ------------------------------------------------------------------ hero -- */

.hero { padding: 56px 0 40px; }
.hero img.mark { width: 88px; height: 88px; margin-bottom: 24px; }
h1 {
  font-size: clamp(34px, 6vw, 52px); line-height: 1.08; margin: 0 0 16px;
  color: var(--text-hi); letter-spacing: -.02em; font-weight: 700;
}
h1 .accent {
  background: linear-gradient(180deg, var(--accent-hi), var(--accent-wing));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  /* background-clip:text clips to the glyph box, which shears the final quote mark
     off a closing curly quote. A hair of padding gives it room. */
  padding-right: .06em;
}
.lede { font-size: clamp(18px, 2.4vw, 21px); color: var(--text); max-width: 62ch; margin: 0 0 12px; }
.sub { color: var(--text-mute); max-width: 62ch; margin: 0 0 32px; }

.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: var(--r-pill); padding: 13px 24px;
  font-weight: 700; font-size: 16px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: filter .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.btn-primary {
  background: linear-gradient(180deg, var(--accent-hi) 0%, var(--accent-strong) 55%, var(--accent-wing) 100%);
  color: var(--on-accent);
}
.btn-primary:hover { filter: brightness(1.07); box-shadow: 0 0 24px rgba(45,179,158,.28); color: var(--on-accent); }
.btn-quiet { background: var(--surface-2); border-color: var(--border); color: var(--text); }
.btn-quiet:hover { border-color: var(--border-strong); color: var(--text-hi); }
.cta small { color: var(--text-mute); font-size: 14px; }

/* --------------------------------------------------------------- sections -- */

section { padding: 44px 0; border-top: 1px solid var(--border); }
h2 { font-size: 26px; color: var(--text-hi); margin: 0 0 8px; letter-spacing: -.01em; }
h2 + .sub { margin-bottom: 28px; }
h3 { font-size: 17px; color: var(--text-hi); margin: 0 0 6px; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 20px;
}
.card p { margin: 0; color: var(--text-mute); font-size: 15px; }

pre {
  background: #021320; border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 20px; overflow-x: auto;
  font-family: var(--mono); font-size: 13.5px; line-height: 1.8; color: var(--text);
  margin: 0;
}
pre .dim { color: var(--text-mute); }
pre .err { color: #FF6B5B; }
pre .ok { color: var(--accent-strong); }

ul.files { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
ul.files li { display: flex; gap: 12px; align-items: baseline; font-size: 15px; }
ul.files code {
  font-family: var(--mono); font-size: 13px; color: var(--accent-hi);
  white-space: nowrap; min-width: 210px;
}
ul.files span { color: var(--text-mute); }

/* --------------------------------------------------------------- pricing -- */

.prices { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.price {
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; gap: 6px;
}
.price.best { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(45,179,158,.25); }
.price .amount { font-size: 30px; font-weight: 700; color: var(--text-hi); line-height: 1; }
.price .per { color: var(--text-mute); font-size: 14px; }
.price .note { color: var(--text-mute); font-size: 14px; flex: 1; }
.price .tag {
  align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--accent);
  border: 1px solid var(--border-strong); border-radius: var(--r-pill); padding: 2px 10px;
}
.price a.btn { justify-content: center; margin-top: 6px; }

/* ---------------------------------------------------------------- footer -- */

footer {
  border-top: 1px solid var(--border); margin-top: 24px;
  padding: 28px 0 56px; color: var(--text-mute); font-size: 14px;
  display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center;
}
footer a { color: var(--text-dim); text-decoration: none; }
footer a:hover { color: var(--text-hi); }
footer .spacer { flex: 1; }

/* ------------------------------------------------------------ policy page -- */

.policy { padding: 24px 0 40px; }
.policy h1 { font-size: 34px; margin-bottom: 8px; }
.policy .updated { color: var(--text-mute); font-size: 15px; margin: 0 0 32px; }
.policy h2 { font-size: 21px; margin: 36px 0 10px; }
.policy h3 { font-size: 16px; margin: 24px 0 6px; }
.policy p, .policy li { color: var(--text); }
.policy table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.policy th, .policy td {
  text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.policy th { color: var(--text-hi); font-weight: 600; }
.policy td { color: var(--text-mute); }
.policy td:first-child { color: var(--text); white-space: nowrap; }
.callout {
  background: var(--surface-1); border: 1px solid var(--border);
  border-left: 3px solid var(--accent); border-radius: var(--r-md);
  padding: 16px 20px; margin: 20px 0;
}
.callout p { margin: 0; }
