/* PingBill site — the app's palette (shared/design PingBillTheme), light and dark. System fonts and no
   third-party requests: a privacy app's website shouldn't contact anyone either. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --border: #E2E8F0;
  --text: #0F172A;
  --muted: #475569;
  --accent: #15803D;
  --brand: #16A34A;
  --brand-soft: #DCFCE7;
  --paper: #FFFFFF;
  --ads: #B91C1C;      --ads-bg: #FEE2E2;
  --analytics: #6D28D9; --analytics-bg: #EDE9FE;
  --social: #1D4ED8;   --social-bg: #DBEAFE;
  --crash: #92400E;    --crash-bg: #FEF3C7;
  --other: #475569;    --other-bg: #F1F5F9;
  --warning: #CA8A04;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F172A;
    --surface: #1E293B;
    --border: #334155;
    --text: #F1F5F9;
    --muted: #94A3B8;
    --accent: #4ADE80;
    --brand: #16A34A;
    --brand-soft: #14532D;
    --paper: #1E293B;
    --ads: #FCA5A5;      --ads-bg: #3B1C24;
    --analytics: #C4B5FD; --analytics-bg: #2A2347;
    --social: #93C5FD;   --social-bg: #1C2B4A;
    --crash: #FCD34D;    --crash-bg: #3A2E14;
    --other: #CBD5E1;    --other-bg: #273449;
    --warning: #FACC15;
  }
}

html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg); color: var(--text);
  line-height: 1.65; -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }

nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 24px; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; }
.logo img { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 18px; flex-wrap: wrap; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.nav-links a:hover { color: var(--text); }

main { max-width: 760px; margin: 0 auto; padding: 64px 20px 88px; }
.label { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
h1 { font-size: clamp(30px, 6vw, 48px); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin-bottom: 14px; }
h2 { font-size: 20px; font-weight: 650; margin: 44px 0 10px; }
h3 { font-size: 16px; font-weight: 600; margin: 24px 0 6px; }
p, li { color: var(--muted); font-size: 16px; }
p { margin-bottom: 14px; }
ul, ol { margin: 0 0 16px 20px; }
li { margin-bottom: 6px; }
strong { color: var(--text); font-weight: 600; }
.lede { font-size: 19px; margin-bottom: 28px; }
.effective { font-size: 14px; margin-bottom: 40px; }

.cta { display: inline-block; padding: 13px 22px; border-radius: 999px; background: var(--brand); color: #fff; text-decoration: none; font-weight: 600; }
.cta.soon { background: var(--surface); color: var(--muted); border: 1px solid var(--border); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 20px 0 28px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.card h3 { margin-top: 0; }
.card p { margin-bottom: 0; font-size: 15px; }
.step { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand-soft); color: var(--accent); font-weight: 700; font-size: 14px; margin-bottom: 10px; }

/* The sample receipt */
.receipt { max-width: 420px; margin: 8px 0 12px; background: var(--paper); border: 1px solid var(--border);
  border-radius: 16px 16px 0 0; padding: 22px 22px 18px; font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  position: relative; box-shadow: 0 10px 30px rgba(15, 23, 42, .08); }
.receipt::after { content: ""; position: absolute; left: -1px; right: -1px; bottom: -10px; height: 10px;
  background: linear-gradient(-45deg, transparent 7px, var(--paper) 0) 0 0 / 14px 10px,
              linear-gradient(45deg, transparent 7px, var(--paper) 0) 0 0 / 14px 10px; }
.receipt .head { text-align: center; border-bottom: 1px dashed var(--border); padding-bottom: 12px; margin-bottom: 12px; }
.receipt .head strong { display: block; font-size: 15px; }
.receipt .head span, .receipt .demo { font-size: 12px; color: var(--muted); }
.receipt .line { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; padding: 5px 0; color: var(--text); }
.receipt .total { border-top: 1px dashed var(--border); margin-top: 10px; padding-top: 10px; font-weight: 700; }
.chip { font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: 12px; font-weight: 600;
  padding: 2px 10px; border-radius: 999px; }
.chip.ads { color: var(--ads); background: var(--ads-bg); }
.chip.analytics { color: var(--analytics); background: var(--analytics-bg); }
.chip.social { color: var(--social); background: var(--social-bg); }
.chip.crash { color: var(--crash); background: var(--crash-bg); }
.chip.other { color: var(--other); background: var(--other-bg); }
.receipt .demo { text-align: center; margin-top: 12px; }
.caption { font-size: 13px; margin-top: 18px; }

table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; }
th { text-align: left; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); padding: 10px 12px; border-bottom: 1px solid var(--border); }
td { font-size: 14px; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
td:first-child { color: var(--text); }
code { font-size: 13px; overflow-wrap: anywhere; }
pre { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; overflow-x: auto; margin: 10px 0 18px; }
pre code { font-size: 13px; color: var(--text); white-space: pre; overflow-wrap: normal; }

.box { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; margin-top: 48px; }
.box h2 { margin-top: 0; }
.note { border-left: 3px solid var(--warning); padding: 2px 0 2px 16px; margin: 28px 0; }
.note p { margin-bottom: 8px; }

footer { border-top: 1px solid var(--border); padding: 28px 20px; text-align: center; }
footer .nav-links { justify-content: center; margin-bottom: 12px; }
footer p { font-size: 12px; margin: 0; }

@media (max-width: 600px) {
  nav { padding: 12px 16px; }
  .nav-links { gap: 14px; }
  main { padding-top: 40px; }
  .table-wrap { overflow-x: auto; }
}
