/* Same palette as the extension's side panel (static/sidepanel.css). */
:root {
  --page: #f6f7f9; --card: #ffffff; --fg: #0f172a; --muted: #526074; --line: #e3e7ed;
  --accent: #1d4ed8; --accent-fg: #ffffff; --tint: #eef3ff; --good: #05683f; --good-bg: #ecfdf3;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #0b0f17; --card: #121826; --fg: #e6e9ef; --muted: #98a2b3; --line: #232c3d;
    --accent: #7aa7ff; --accent-fg: #0b0f17; --tint: #0f1729; --good: #7ee2a8; --good-bg: #0f2d1f;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--page); color: var(--fg); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
img, video { max-width: 100%; }

/* Header and footer: wide on every page. */
.bar { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
header { border-bottom: 1px solid var(--line); background: var(--card); position: sticky; top: 0; z-index: 10; }
header .bar { display: flex; align-items: center; gap: 24px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--fg); text-decoration: none; }
.brand img { width: 28px; height: 28px; }
header nav { display: flex; gap: 18px; margin-left: auto; font-size: 15px; }
header nav a { color: var(--muted); text-decoration: none; }
header nav a:hover, header nav a[aria-current] { color: var(--fg); }
.nav-cta, .button { display: inline-block; background: var(--accent); color: var(--accent-fg); font-weight: 600; text-decoration: none; border-radius: 8px; }
.nav-cta { font-size: 15px; padding: 8px 14px; }
.button { padding: 10px 18px; }
.nav-cta:hover, .button:hover { filter: brightness(1.08); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

footer { border-top: 1px solid var(--line); background: var(--card); color: var(--muted); font-size: 14px; padding: 40px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.5fr 1fr 1fr; gap: 28px; }
.footer-grid p { margin: 10px 0 0; max-width: 300px; }
.footer-grid a:not(.brand) { display: block; color: var(--muted); text-decoration: none; margin-bottom: 8px; }
.footer-grid a:not(.brand):hover { color: var(--fg); }
.foot-h { color: var(--fg); font-weight: 600; margin: 0 0 10px; }
.fine { border-top: 1px solid var(--line); margin: 32px 0 0; padding-top: 18px; font-size: 13px; }

/* Text pages (privacy, terms, support). */
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
main { padding: 40px 0 56px; }
h1 { font-size: 34px; line-height: 1.2; letter-spacing: -.02em; margin: 0 0 12px; }
h2 { font-size: 21px; margin: 36px 0 10px; }
p, ul, table { margin: 0 0 14px; }
li { margin-bottom: 6px; }
.lead { font-size: 19px; color: var(--muted); }
.meta { color: var(--muted); font-size: 15px; }
.summary { background: var(--good-bg); border-left: 4px solid var(--good); padding: 14px 18px; border-radius: 8px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin-bottom: 14px; }
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p:last-child { margin-bottom: 0; }
code { font: 14px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.table { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }

/* Articles. */
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.article h2 { font-size: 23px; margin-top: 40px; }
.article li { margin-bottom: 10px; }
.answer { font-size: 19px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; padding: 16px 20px; margin: 18px 0 8px; }
.article-cta { background: var(--tint); border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px 10px; margin: 40px 0 8px; }
.sources { font-size: 15px; }
.article-list { display: grid; gap: 14px; margin-top: 28px; }
.article-card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; color: var(--fg); text-decoration: none; }
.article-card:hover { border-color: var(--accent); }
.article-card h2 { font-size: 19px; margin: 0 0 6px; color: var(--accent); }
.article-card p { margin: 0; color: var(--muted); }

/* Home page. */
main:has(.hero) { padding: 0; }
.hero { padding: 56px 0 64px; background: linear-gradient(180deg, var(--tint), var(--page)); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 42px; line-height: 1.12; margin-bottom: 16px; }
.badge { display: inline-block; margin: 6px 0 14px; }
.badge img { display: block; height: 58px; width: auto; }
.trust { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 15px; }
.trust li { margin: 0; display: inline-flex; align-items: center; gap: 6px; }
.trust li::before { content: ""; width: 12px; height: 7px; border-left: 2px solid var(--good); border-bottom: 2px solid var(--good); transform: rotate(-45deg) translateY(-2px); }

.section { padding: 64px 0; }
.tint { background: var(--tint); }
.center { text-align: center; }
.section h2 { font-size: 30px; line-height: 1.2; letter-spacing: -.01em; margin: 0 0 28px; }
.prose { max-width: 760px; }
.center-block { margin-left: auto; margin-right: auto; }
.row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: center; margin-bottom: 56px; }
.row.flip > :first-child { order: 2; }
.row h3 { font-size: 20px; margin: 0 0 8px; }
.row p + h3 { margin-top: 20px; }
.row h2 { margin-bottom: 12px; }

.shot { margin: 0; }
.shot img, .shot video { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--card); box-shadow: 0 12px 32px rgb(15 23 42 / .12); }
.shot figcaption { color: var(--muted); font-size: 14px; margin-top: 10px; text-align: center; }
.video { max-width: 880px; margin: 40px auto 0; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.feature h3 { font-size: 16px; margin: 12px 0 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
.feature svg, .points svg { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.steps { list-style: none; counter-reset: step; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0 0 28px; }
.steps li { counter-increment: step; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin: 0; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-fg); font-weight: 700; margin-bottom: 12px; }

.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 880px; margin: 28px auto 0; }
.points div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: grid; gap: 4px; justify-items: start; }
.points strong { margin-top: 8px; }
.points span { color: var(--muted); font-size: 15px; }

.faq { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 17px; font-weight: 600; }
.faq summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.faq[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq summary:focus-visible { border-radius: 12px; }
.faq p { margin: 0; padding: 0 20px 18px; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }
#faq .prose, #faq.section .bar { margin: 0 auto; }

.cta { padding: 64px 0; text-align: center; background: var(--tint); border-top: 1px solid var(--line); }
.cta h2 { font-size: 30px; line-height: 1.2; margin: 0 0 8px; }
.cta p { color: var(--muted); }

@media (max-width: 900px) {
  .hero-grid, .row { grid-template-columns: 1fr; gap: 28px; }
  .row.flip > :first-child { order: 0; }
  .features, .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  h1, .hero h1 { font-size: 30px; }
  .section { padding: 48px 0; }
  .section h2, .cta h2 { font-size: 24px; }
  .features, .steps, .points { grid-template-columns: 1fr; }
  header nav { margin-left: 0; order: 3; width: 100%; }
  .nav-cta { margin-left: auto; }
}
