/* Pacekeeper website.

   The design system is Agent Go's, lifted from the extension so the two
   products look like they came from the same workshop: warm paper ground,
   white surfaces, hairline rules, uppercase section labels, mono for
   anything numeric, and the same button shapes. Agent Go blue is the accent
   here; green belongs to Private.

   Fonts are bundled and served from this site, so the page still asks
   nothing of anyone else. SIL Open Font License 1.1, see fonts/OFL.txt. */

@font-face { font-family: "Go Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/HankenGrotesk-400.woff2") format("woff2"); }
@font-face { font-family: "Go Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/HankenGrotesk-500.woff2") format("woff2"); }
@font-face { font-family: "Go Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/HankenGrotesk-600.woff2") format("woff2"); }
@font-face { font-family: "Go Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/HankenGrotesk-700.woff2") format("woff2"); }
@font-face { font-family: "Go Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/IBMPlexMono-400.woff2") format("woff2"); }
@font-face { font-family: "Go Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/IBMPlexMono-500.woff2") format("woff2"); }

/* ---------- Tokens: light, taken from theme.css ---------- */
:root {
  color-scheme: light;
  --font-ui: "Go Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "Go Mono", Consolas, "Cascadia Mono", monospace;

  --bg: #eeece7;
  --surface: #ffffff;
  --raised: #f6f5f2;
  --hover: #f1efeb;
  --line: #e3e0da;
  --line2: #efede8;
  --text: #14171a;
  --muted: #575e66;
  --faint: #8a9199;
  --shadow: rgba(20, 23, 26, 0.12);

  --accent: #2e68c4;
  --accentSoft: #e8eef9;
  --accentLine: #c5d4ee;
  --onAccent: #ffffff;
  --ok: #1f6f4f;

  --r-sm: 6px;
  --r-md: 10px;
  --r-pill: 999px;
  --shell: min(1080px, 100% - 3rem);
}

/* ---------- Tokens: dark, same source ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #101214;
    --surface: #181b1e;
    --raised: #121517;
    --hover: #202428;
    --line: #282d32;
    --line2: #20252a;
    --text: #eef0f2;
    --muted: #a2a9b0;
    --faint: #6d757c;
    --shadow: rgba(0, 0, 0, 0.6);
    --accent: #74a6f0;
    --accentSoft: #172539;
    --accentLine: #2a4670;
    --onAccent: #08111f;
    --ok: #4fb489;
  }
}

* { box-sizing: border-box; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font-ui);
  -webkit-font-smoothing: antialiased;
}

.shell { width: var(--shell); margin-inline: auto; }

/* ---------- section label, the uppercase muted kind ---------- */

.label {
  margin: 0 0 0.6rem;
  color: var(--faint);
  font: 500 11px/1 var(--font-ui);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

header.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}

header.top .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.glyph {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--onAccent);
  font: 500 13px var(--font-mono);
}

nav.top-links { display: flex; align-items: center; gap: 1.35rem; }

nav.top-links a:not(.btn) {
  color: var(--muted);
  font-size: 0.93rem;
  text-decoration: none;
}

nav.top-links a:not(.btn):hover { color: var(--text); }

@media (max-width: 680px) {
  nav.top-links a:not(.btn) { display: none; }
}

/* ---------- buttons, same shape as the extension ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 8px;
  font: 600 13px var(--font-ui);
  text-decoration: none;
  border: 1px solid var(--line);
  color: var(--text);
  background: transparent;
  transition: background 0.14s ease, filter 0.14s ease;
}

.btn:hover { background: var(--raised); }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--onAccent);
}

.btn-primary:hover { background: var(--accent); filter: brightness(1.06); }

.btn-lg { min-height: 44px; padding: 0 20px; font-size: 14px; }

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

.hero { padding: clamp(2.5rem, 7vw, 4.5rem) 0 clamp(1.5rem, 4vw, 2.5rem); }

.hero .shell {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

@media (max-width: 940px) {
  .hero .shell { grid-template-columns: 1fr; }
}

h1 {
  margin: 0.9rem 0 0.75rem;
  font-size: clamp(2.3rem, 5.2vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 700;
}

h1 .thin { color: var(--muted); font-weight: 400; }

.lede {
  margin: 0 0 1.5rem;
  max-width: 38ch;
  color: var(--muted);
  font-size: 1.06rem;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }

.note { margin: 0.9rem 0 0; color: var(--faint); font-size: 0.86rem; }

/* ---------- the real numbers, in mono ---------- */

.readout {
  margin-top: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
}

.readout .head {
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid var(--line2);
  color: var(--faint);
  font: 500 11px/1.4 var(--font-ui);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.readout .cells {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.readout .cell { padding: 0.8rem 0.9rem; border-right: 1px solid var(--line2); }
.readout .cell:last-child { border-right: 0; }

.readout .k { color: var(--faint); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; }
.readout .v { margin-top: 0.15rem; font: 500 1.15rem/1.2 var(--font-mono); letter-spacing: -0.02em; }

@media (max-width: 560px) {
  .readout .cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .readout .cell:nth-child(2) { border-right: 0; }
  .readout .cell:nth-child(-n+2) { border-bottom: 1px solid var(--line2); }
}

/* ---------- phone art ---------- */

.phones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; align-items: start; }

.phone {
  margin: 0;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 10px 30px var(--shadow);
}

.phone img { display: block; width: 100%; height: auto; border-radius: 10px; }
/* height:auto matters: the img tags carry width and height attributes, and
   without it the browser honours the attribute height and stretches the
   screenshot vertically. */


@media (max-width: 940px) {
  .phones { max-width: 520px; margin-inline: auto; }
}

@media (max-width: 430px) {
  .phones { grid-template-columns: 1fr; }
  .phones .phone:nth-child(2) { display: none; }
}

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

section { padding: clamp(2.5rem, 6vw, 4rem) 0; }

h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-head { max-width: 52ch; margin-bottom: 1.75rem; }
.section-head p { margin: 0; color: var(--muted); }

/* ---------- numbered feature rows ---------- */

.rows { border-top: 1px solid var(--line); }

.row {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.row .n { color: var(--faint); font: 400 0.85rem var(--font-mono); padding-top: 0.15rem; }
.row h3 { margin: 0 0 0.2rem; font-size: 1.02rem; font-weight: 600; }
.row p { margin: 0; color: var(--muted); font-size: 0.96rem; max-width: 62ch; }

@media (min-width: 760px) {
  .rows { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
}

/* ---------- cards ---------- */

.card {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}

.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 1rem; align-items: start; }

@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0.35rem 0 0.75rem;
}

.price .figure { font: 500 2.6rem/1 var(--font-mono); letter-spacing: -0.03em; }
.price .unit { color: var(--muted); font-size: 0.95rem; }

.ticks { list-style: none; margin: 0.9rem 0 0; padding: 0; }

.ticks li { display: flex; gap: 0.6rem; padding: 0.32rem 0; color: var(--muted); font-size: 0.96rem; }
.ticks li::before { content: "✓"; color: var(--ok); font-weight: 700; }

table.compare { width: 100%; border-collapse: collapse; font-size: 0.95rem; }

table.compare td { padding: 0.55rem 0.2rem; border-bottom: 1px solid var(--line2); }
table.compare tr:last-child td { border-bottom: 0; }
table.compare td:last-child { text-align: right; font-family: var(--font-mono); white-space: nowrap; }
table.compare .ours td { font-weight: 600; }
table.compare .ours td:last-child { color: var(--accent); }

.fine { margin: 0.85rem 0 0; color: var(--faint); font-size: 0.82rem; }

/* ---------- privacy panel ---------- */

.panel {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--accentLine);
  border-radius: var(--r-md);
  background: var(--accentSoft);
}

.panel h2 { margin-top: 0; }
.panel ul { margin: 1rem 0 0; padding-left: 1.1rem; color: var(--muted); }
.panel li { margin: 0.3rem 0; }

/* ---------- support page ---------- */

.qa { margin-top: 1rem; }

.qa .card { margin-bottom: 0.75rem; }
.qa h3 { margin: 0 0 0.35rem; font-size: 1.02rem; font-weight: 600; }
.qa p { margin: 0.4rem 0 0; color: var(--muted); font-size: 0.96rem; }
.qa p:first-of-type { margin-top: 0; }

.kbd {
  padding: 0.1rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--raised);
  font: 400 0.85em var(--font-mono);
}

/* ---------- long-form pages (privacy) ---------- */

main.prose { padding: clamp(2rem, 5vw, 3rem) 0 1rem; }

.prose h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin-top: 0; }
.prose h2 { margin: 2.25rem 0 0.4rem; font-size: 1.3rem; }
.prose h3 { margin: 1.5rem 0 0.3rem; font-size: 1.02rem; font-weight: 600; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--text); }
.prose .meta, .prose .lead { color: var(--muted); }
.prose .lead { font-size: 1.05rem; }

.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.55rem 0.4rem; border-bottom: 1px solid var(--line2); }
.prose th { color: var(--text); font-weight: 600; }

a { color: var(--accent); }
a:hover { text-decoration: none; }

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

footer.bottom {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  padding: 1.75rem 0 2.75rem;
  color: var(--faint);
  font-size: 0.9rem;
}

footer.bottom .shell {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
  align-items: center;
}

footer.bottom a { color: var(--muted); text-decoration: none; }
footer.bottom a:hover { color: var(--text); text-decoration: underline; }

a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}
