/* Back Pocket — site styles. No web fonts and nothing from other sites: the pages load only
   their own files, which is part of what the privacy page promises. */

:root {
  color-scheme: light;
  --bg: #f6f6f3;
  --surface: #ffffff;
  --surface-2: #eef0f2;
  --line: #e0e1dc;
  --text: #1d1e20;
  --muted: #5d6166;
  --accent: #1a6fdb;
  --accent-ink: #ffffff;
  --accent-soft: #e6effd;
  --ok: #1e8e3e;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.05), 0 10px 30px rgb(0 0 0 / 0.07);
  --radius: 16px;
  --wrap: 1080px;
  --gutter: 16px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #151618;
    --surface: #1e1f22;
    --surface-2: #2a2b2f;
    --line: #33353a;
    --text: #e8eaed;
    --muted: #a3a8ae;
    --accent: #8ab4f8;
    --accent-ink: #151618;
    --accent-soft: rgb(138 180 248 / 0.13);
    --ok: #81c995;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 10px 30px rgb(0 0 0 / 0.35);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #151618;
  --surface: #1e1f22;
  --surface-2: #2a2b2f;
  --line: #33353a;
  --text: #e8eaed;
  --muted: #a3a8ae;
  --accent: #8ab4f8;
  --accent-ink: #151618;
  --accent-soft: rgb(138 180 248 / 0.13);
  --ok: #81c995;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 10px 30px rgb(0 0 0 / 0.35);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 ui-sans-serif, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; margin: 0; }
p { margin: 0; }
code {
  font: 0.9em ui-monospace, "Cascadia Mono", Consolas, monospace;
  background: var(--surface-2);
  padding: 0.1em 0.4em;
  border-radius: 5px;
  overflow-wrap: anywhere;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 28px; } }

.skip {
  position: absolute; left: 12px; top: -48px;
  background: var(--accent); color: var(--accent-ink);
  padding: 8px 14px; border-radius: 8px; z-index: 10;
}
.skip:focus { top: 12px; }

/* Header and footer */
.site-head { padding: 18px 0; }
.site-head .wrap { display: flex; align-items: center; gap: 16px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-weight: 650; font-size: 1.05rem;
}
.brand img { width: 30px; height: 30px; }
.site-nav { margin-left: auto; display: flex; gap: 4px; }
.site-nav a {
  color: var(--muted); text-decoration: none; font-size: 0.95rem;
  padding: 6px 12px; border-radius: 999px;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.brand { white-space: nowrap; }
@media (max-width: 479px) {
  .site-nav a { padding: 6px 9px; }
  .site-nav .wide-only { display: none; }
}

.site-foot { border-top: 1px solid var(--line); margin-top: 72px; padding: 28px 0 40px; color: var(--muted); font-size: 0.92rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-left: auto; }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--text); }

/* Hero */
.hero { padding: 28px 0 56px; }
.hero .wrap { display: grid; gap: 44px; align-items: center; }
@media (min-width: 940px) {
  .hero { padding: 48px 0 80px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; }
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 0.85rem; font-weight: 600;
}
.hero h1 {
  margin: 18px 0 18px;
  font-size: clamp(2.15rem, 1.5rem + 2.9vw, 3.35rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 17ch;
  text-wrap: balance;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34rem; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 30px; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  color: var(--muted); font-weight: 600; font-size: 0.98rem;
}
.store .dot { width: 8px; height: 8px; border-radius: 50%; background: #fcad70; flex: none; }
.more-link { font-weight: 600; text-decoration: none; }
.more-link:hover { text-decoration: underline; }

/* The product picture: Back Pocket's own page, drawn in HTML. Always dark, like the extension. */
.app {
  --a-bg: #202124; --a-surface: #292a2d; --a-raised: #35363a; --a-line: #3c4043;
  --a-text: #e8eaed; --a-muted: #9aa0a6; --a-accent: #8ab4f8; --a-warn: #fcad70;
  background: var(--a-bg);
  color: var(--a-text);
  border: 1px solid #3c4043;
  border-radius: 14px;
  box-shadow: 0 34px 70px -24px rgb(0 0 0 / 0.5), 0 2px 8px rgb(0 0 0 / 0.18);
  font: 13px/1.4 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  overflow: hidden;
  min-width: 0;
}
.app-top { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--a-surface); }
.app-brand { display: flex; align-items: center; gap: 7px; font-weight: 600; white-space: nowrap; }
.app-brand img { width: 18px; height: 18px; }
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--a-bg); border-radius: 999px; font-size: 12px; white-space: nowrap; }
.seg span { padding: 2px 10px; border-radius: 999px; color: var(--a-muted); }
.seg .on { background: var(--a-raised); color: var(--a-text); font-weight: 600; }
.app-sync {
  margin-left: auto; padding: 3px 10px; border: 1px solid var(--a-line); border-radius: 999px;
  font-size: 12px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px;
}
.app-sync i { width: 7px; height: 7px; border-radius: 50%; background: #81c995; }
.app-chips {
  display: flex; gap: 6px; padding: 0 12px 10px; background: var(--a-surface);
  border-bottom: 1px solid var(--a-line); overflow: hidden; white-space: nowrap;
}
.chip { flex: none; padding: 1px 9px; border: 1px solid var(--a-line); border-radius: 999px; font-size: 11.5px; color: var(--a-muted); }
.chip b { font-weight: 400; opacity: 0.8; margin-left: 3px; }
.chip.on { border-color: var(--a-accent); background: rgb(138 180 248 / 0.18); color: var(--a-text); }
.chip.warn { border-color: var(--a-warn); color: var(--a-warn); }
.app-body { padding: 12px; display: grid; gap: 10px; }
.win { font-size: 10.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--a-muted); font-weight: 600; padding: 0 4px; }
.grp { --g: #8ab4f8; background: var(--a-surface); border-radius: 10px; overflow: hidden; }
.grp.green { --g: #81c995; }
.grp-head { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 2px solid var(--g); }
.grp.closed .grp-head { border-bottom: 0; }
.gchip {
  display: inline-flex; align-items: center; gap: 3px;
  background: var(--g); color: #202124; font-weight: 600;
  padding: 2px 10px 2px 6px; border-radius: 7px; white-space: nowrap;
}
.gchip svg { width: 12px; height: 12px; }
.grp.closed .gchip svg { transform: rotate(-90deg); }
.gcount { color: var(--a-muted); font-size: 12px; white-space: nowrap; }
.gbtns { margin-left: auto; display: flex; gap: 6px; }
.gbtn { padding: 2px 10px; border: 1px solid var(--a-line); border-radius: 999px; font-size: 12px; white-space: nowrap; }
.row { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 10px; }
.fav {
  width: 16px; height: 16px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgb(138 180 248 / 0.22); color: #8ab4f8; font-size: 9px; font-weight: 700;
}
.row .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meta { display: flex; align-items: center; gap: 8px; color: var(--a-muted); font-size: 11.5px; white-space: nowrap; }
.row.dup { background: rgb(252 173 112 / 0.11); box-shadow: inset 3px 0 0 var(--a-warn); }
.b-dup { border: 1px solid var(--a-warn); color: var(--a-warn); border-radius: 999px; padding: 0 7px; font-size: 11px; font-weight: 600; }
.b-hist {
  border: 1px solid var(--a-accent); color: var(--a-accent); border-radius: 999px;
  padding: 0 7px; font-size: 11px; display: inline-flex; align-items: center; gap: 4px;
}
.b-hist svg { width: 11px; height: 11px; }
.b-sleep { background: var(--a-raised); color: var(--a-muted); border-radius: 4px; padding: 0 6px; font-size: 10.5px; }
.row.asleep .t { color: var(--a-muted); }
.hist { margin: -2px 10px 8px 36px; padding-left: 10px; border-left: 2px solid var(--a-line); display: grid; }
.hist div { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 8px; font-size: 12px; padding: 3px 0; }
.hist .k { color: var(--a-muted); }
.hist .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hist .d { color: var(--a-muted); font-size: 11.5px; }
@media (max-width: 520px) {
  .app .d, .app .gbtn.wide, .app-brand span { display: none; }
}

/* Sections */
.section { padding: 56px 0 0; }
.section-head { max-width: 40rem; margin-bottom: 30px; }
.section-head h2 { font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.2rem); font-weight: 720; letter-spacing: -0.025em; }
.section-head p { color: var(--muted); margin-top: 10px; font-size: 1.05rem; }

.features { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px;
}
.card .ic {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 14px;
}
.card .ic svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.08rem; font-weight: 650; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 0.97rem; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); counter-reset: step; }
.steps li { counter-increment: step; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--text); color: var(--bg); font-weight: 700; font-size: 0.9rem; margin-bottom: 12px;
}
.steps h3 { font-size: 1.05rem; font-weight: 650; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 0.97rem; }

.band {
  display: grid; gap: 24px; padding: 30px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
@media (min-width: 860px) { .band { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; padding: 40px; } }
.band h2 { font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.2rem); font-weight: 720; letter-spacing: -0.025em; }
.band > div > p { color: var(--muted); margin-top: 12px; }
.band .more-link { display: inline-block; margin-top: 18px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; }
.checks svg { width: 22px; height: 22px; color: var(--ok); margin-top: 2px; }
.checks b { display: block; }
.checks span { color: var(--muted); font-size: 0.97rem; }

.faq { display: grid; gap: 10px; max-width: 48rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; position: relative;
  font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); transition: transform 0.15s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > p { padding: 0 20px 18px; color: var(--muted); }

/* The privacy policy */
.doc { max-width: 46rem; padding-top: 24px; }
.doc h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.7rem); font-weight: 750; letter-spacing: -0.03em; }
.doc .updated { color: var(--muted); margin-top: 10px; }
.doc h2 { font-size: 1.35rem; font-weight: 680; margin: 44px 0 12px; }
.doc p, .doc ul { margin: 0 0 14px; }
.doc ul { padding-left: 1.25em; }
.doc li { margin-bottom: 8px; }
.doc li::marker { color: var(--muted); }
.tldr { margin-top: 28px; padding: 22px 24px; border-radius: var(--radius); background: var(--accent-soft); }
.tldr h2 { margin: 0 0 10px; font-size: 1.1rem; }
.tldr ul { margin: 0; }
.perm { width: 100%; border-collapse: collapse; margin: 6px 0 18px; font-size: 0.97rem; }
.perm th, .perm td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); }
.perm th { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; }
.perm td:first-child { font-weight: 600; width: 34%; }
@media (max-width: 600px) {
  .perm thead { display: none; }
  .perm, .perm tbody, .perm tr, .perm td { display: block; width: auto; }
  .perm tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .perm td { border: 0; padding: 0; }
  .perm td:first-child { width: auto; margin-bottom: 4px; }
}
