/* The whole site's styles (site/*.html). Colors follow the app icon: deep indigo, teal-to-emerald accents.
   System fonts only: a privacy-first app's website shouldn't call a font CDN. */
:root {
  --bg: #ffffff; --bg-soft: #f6f7fb; --fg: #0f172a; --muted: #52607a; --line: #e4e7ef; --card: #ffffff;
  --accent: #4f46e5; --accent-soft: #eef0ff; --green: #059669; --green-soft: #e7f8f1;
  --warn: #b45309; --warn-soft: #fff6e6; --warn-line: #f6d9a6;
  --hero-a: #13123a; --hero-b: #2b2589; --hero-c: #4338ca;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 16px rgba(15, 23, 42, .06);
  --radius: 14px; --wide: 1080px; --text: 720px; --header: 60px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d17; --bg-soft: #10132a; --fg: #e6e8f2; --muted: #9aa3bd; --line: #232843; --card: #121530;
    --accent: #8b8cff; --accent-soft: #1d1f48; --green: #34d399; --green-soft: #0f2a24;
    --warn: #fbbf24; --warn-soft: #2a2010; --warn-line: #4d3a14;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 16px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
strong { font-weight: 650; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -.015em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); margin: 0 0 10px; letter-spacing: -.025em; }
h2 { font-size: 1.4rem; margin: 48px 0 12px; }
h3 { font-size: 1.08rem; margin: 28px 0 6px; }
p { margin: 0 0 14px; }
ul, ol { padding-left: 1.3rem; margin: 0 0 14px; } li { margin: 6px 0; }
.muted { color: var(--muted); }
.lead { color: var(--muted); font-size: 1.12rem; max-width: 60ch; }

/* Header and footer */
.site-header {
  position: sticky; top: 0; z-index: 10; height: var(--header);
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.6) blur(12px);
  -webkit-backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--line);
}
.site-header .inner { max-width: var(--wide); height: 100%; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 4px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; color: var(--fg); font-weight: 700; font-size: 1.05rem; text-decoration: none; letter-spacing: -.01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.site-header nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.site-header nav::-webkit-scrollbar { display: none; }
.site-header nav a { color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 500; padding: 7px 10px; border-radius: 8px; white-space: nowrap; }
.site-header nav a:hover { color: var(--fg); background: var(--bg-soft); }
.site-header nav a[aria-current] { color: var(--accent); background: var(--accent-soft); }
@media (max-width: 560px) { .brand span { display: none; } .site-header nav a { padding: 7px 8px; font-size: .85rem; } }
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); }
.site-footer .inner { max-width: var(--wide); margin: 0 auto; padding: 28px 16px 36px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .88rem; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer a { color: var(--muted); text-decoration: none; } .site-footer a:hover { color: var(--accent); }

/* Page shells */
.page-head { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.page-head .inner { max-width: var(--wide); margin: 0 auto; padding: 44px 16px 36px; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.doc { max-width: var(--wide); margin: 0 auto; padding: 32px 16px 72px; display: grid; gap: 48px; grid-template-columns: minmax(0, 1fr); }
.doc > article { max-width: var(--text); min-width: 0; }
.doc > article > :first-child { margin-top: 0; }
@media (min-width: 920px) { .doc { grid-template-columns: 230px minmax(0, 1fr); } }

/* "On this page": a box on phones, a sticky sidebar on wide screens */
.toc { font-size: .92rem; }
.toc-title { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc li { margin: 0; }
.toc a { display: block; color: var(--muted); text-decoration: none; padding: 5px 10px; border-left: 2px solid var(--line); line-height: 1.4; }
.toc a:hover { color: var(--fg); border-left-color: var(--muted); }
.toc a.active { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
@media (min-width: 920px) { .toc { position: sticky; top: calc(var(--header) + 24px); align-self: start; max-height: calc(100vh - var(--header) - 48px); overflow-y: auto; } }
@media (max-width: 919px) {
  .toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
  .toc ol { columns: 2; column-gap: 16px; }
  .toc a { border-left: 0; padding: 4px 0; break-inside: avoid; }
  .doc { gap: 28px; }
}
@media (max-width: 420px) { .toc ol { columns: 1; } }

/* Section headings in long pages */
article h2 { padding-top: 6px; }
article h2:first-of-type { margin-top: 8px; }
.anchor { margin-left: 6px; color: var(--line); text-decoration: none; font-weight: 400; opacity: 0; transition: opacity .15s; }
h2:hover .anchor, h3:hover .anchor, .anchor:focus { opacity: 1; color: var(--muted); }

/* Cards, callouts, tables, steps */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 14px 0; box-shadow: var(--shadow); }
.card > :last-child { margin-bottom: 0; }
.callout { border-radius: var(--radius); padding: 16px 18px; margin: 18px 0; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.callout > :last-child { margin-bottom: 0; }
.callout-title { font-weight: 700; margin: 0 0 6px; }
.callout.green { background: var(--green-soft); border-color: color-mix(in srgb, var(--green) 30%, transparent); }
.callout.warn { background: var(--warn-soft); border-color: var(--warn-line); }
.callout.warn .callout-title { color: var(--warn); }
.tier { display: flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.tier::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.tier.top { color: var(--green); } .tier.top::before { background: var(--green); }
.tier.mid { color: var(--accent); } .tier.mid::before { background: var(--accent); }
.table-wrap { overflow-x: auto; margin: 0 -4px; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
td:first-child { white-space: nowrap; }
.limit { color: var(--muted); font-size: .88rem; white-space: nowrap; }
.steps { list-style: none; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 2px 0 10px 44px; margin: 0; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-size: .85rem; font-weight: 700; color: var(--accent); background: var(--accent-soft);
}
.combos { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 14px 0; padding: 0; list-style: none; }
.combos li { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.combos .who { display: block; font-weight: 650; margin-bottom: 4px; }
.combos .keys { color: var(--muted); font-size: .94rem; }
.faq h3 { margin-top: 26px; }
.faq h3:first-child { margin-top: 0; }

/* Home page */
.hero { background: radial-gradient(1200px 500px at 85% -10%, var(--hero-c), transparent 60%), linear-gradient(135deg, var(--hero-a), var(--hero-b)); color: #fff; }
.hero .inner { max-width: var(--wide); margin: 0 auto; padding: 72px 16px 80px; display: grid; gap: 40px; align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 820px) { .hero .inner { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); padding: 96px 16px 104px; } }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); color: #fff; }
.hero h1 .grad { background: linear-gradient(90deg, #5eead4, #34d399); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: #c9cdf3; font-size: 1.2rem; }
.hero .eyebrow { color: #5eead4; }
.hero-art { justify-self: center; }
.hero-art img { width: min(260px, 60vw); border-radius: 28%; box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .08); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding: 0; list-style: none; }
.pills li { margin: 0; font-size: .88rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); color: #eef0ff; }
.section { max-width: var(--wide); margin: 0 auto; padding: 64px 16px; }
.section > h2 { margin-top: 0; font-size: clamp(1.5rem, 3vw, 1.9rem); }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 24px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.feature h3 { margin: 12px 0 6px; }
.feature p { color: var(--muted); margin: 0; font-size: .96rem; }
.icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.icon.green { background: var(--green-soft); color: var(--green); }
.icon svg { width: 22px; height: 22px; }
a.link-card { display: block; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
a.link-card:hover { border-color: var(--accent); transform: translateY(-2px); }
a.link-card .more { display: inline-block; margin-top: 12px; color: var(--accent); font-weight: 600; font-size: .92rem; }
@media (prefers-reduced-motion: reduce) { a.link-card:hover { transform: none; } }

/* Phones: each table row becomes a small block (key, then text, then limit) instead of squeezed columns */
@media (max-width: 600px) {
  .table-wrap { margin: 0; }
  table, tbody, tr, td { display: block; }
  tr:first-child:has(th) { display: none; }
  tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  tr:last-child { border-bottom: 0; padding-bottom: 0; }
  td { border: 0; padding: 0; }
  td:first-child { margin-bottom: 4px; white-space: normal; }
  td:first-child br { display: none; }
  td.limit { margin-top: 6px; white-space: normal; }
  td.limit br { display: none; }
  td.limit::before { content: "Free limit: "; font-weight: 600; }
}
