/*
 * PulsePom's public pages (site/build.mjs): the About page's look, shared by every guide,
 * comparison and help page. Published as /assets/site-<hash>.css, so it is cached for good.
 */
:root {
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
  --bg: #f5f6fb;
  --surface: #ffffff;
  --surface-2: #f0f2f9;
  --ink: #0f172a;
  --muted: #475569;
  --soft: #64748b;
  --line: #e3e7f0;
  --brand: #4f46e5;
  --yes: #15803d;
  --no: #b45309;
  --shadow: 0 24px 60px -28px rgba(15, 23, 42, 0.35);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1020;
    --surface: #121a2e;
    --surface-2: #19223b;
    --ink: #e8ecf6;
    --muted: #a9b4c9;
    --soft: #8e9ab2;
    --line: #26314b;
    --brand: #a5b4fc;
    --yes: #4ade80;
    --no: #fbbf24;
    --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 2px; }
h1, h2, h3 { text-wrap: balance; }
code { padding: 1px 6px; border-radius: 6px; background: var(--surface-2); font-size: 0.9em; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
/* Narrow text keeps the same left edge as the wide sections around it. */
.narrow > * { max-width: 820px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.skip { position: absolute; left: -999px; top: 8px; z-index: 10; padding: 8px 14px; border-radius: 10px; background: #fff; color: #111; font-weight: 700; }
.skip:focus { left: 8px; }

/* Top of the page */
.hero {
  position: relative; overflow: hidden; color: #fff; padding-bottom: 56px;
  background:
    radial-gradient(1100px 600px at 8% -12%, rgba(124, 58, 237, 0.55), transparent 62%),
    radial-gradient(900px 520px at 100% 0%, rgba(6, 182, 212, 0.32), transparent 62%),
    linear-gradient(180deg, #151338 0%, #0d0b26 100%);
}
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.logo img { width: 34px; height: 34px; border-radius: 10px; }
.nav { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 6px 20px; }
.nav a { color: rgba(255, 255, 255, 0.82); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav .nav-open { padding: 8px 14px; border-radius: 12px; color: #fff; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.24); }
@media (max-width: 900px) { .nav .nav-link { display: none; } }

.crumbs { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 14px; color: rgba(255, 255, 255, 0.7); }
.crumbs li + li::before { content: "\203A"; margin-right: 8px; color: rgba(255, 255, 255, 0.45); }
.crumbs a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.hero-copy { max-width: 860px; margin: 30px 0 0; }
.hero-copy.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); }
.hero .eyebrow { color: #a5b4fc; }
.hero h1 { margin: 12px 0 0; font-size: clamp(2rem, 4.8vw, 3.4rem); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; }
.grad { background: linear-gradient(92deg, #67e8f9 0%, #a5b4fc 45%, #f0abfc 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { margin: 18px 0 0; font-size: clamp(1.06rem, 1.7vw, 1.22rem); color: rgba(255, 255, 255, 0.86); }
.byline { margin: 18px 0 0; font-size: 14px; color: rgba(255, 255, 255, 0.66); }
.byline a { color: rgba(255, 255, 255, 0.85); }

.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.center .ctas { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 20px; border-radius: 14px;
  font-weight: 700; font-size: 16px; text-decoration: none; color: #fff; transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid #a5b4fc; outline-offset: 3px; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-primary { background: linear-gradient(135deg, #6366f1, #8b5cf6 55%, #d946ef); box-shadow: 0 14px 34px -12px rgba(139, 92, 246, 0.8); }
.btn-store { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.24); }
.btn-store:hover { background: rgba(255, 255, 255, 0.15); }
.btn-store .label { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.btn-store small { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.75; }
@media (max-width: 520px) { .ctas .btn { width: 100%; } }

/* Body */
main { display: block; }
.section { padding: 64px 0; }
.section + .section { padding-top: 0; }
@media (max-width: 700px) { .section { padding: 44px 0; } }
.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 780px; margin: 0 0 28px; }
h2 { margin: 0; font-size: clamp(1.55rem, 3vw, 2.15rem); line-height: 1.18; letter-spacing: -0.022em; font-weight: 800; }
h3 { margin: 0; font-size: 1.2rem; line-height: 1.3; letter-spacing: -0.01em; }
.section-head p { margin: 12px 0 0; color: var(--muted); font-size: 1.08rem; }

/* Long text */
.prose { max-width: 780px; }
.prose > * + * { margin-top: 18px; }
.prose h2 { margin-top: 52px; scroll-margin-top: 16px; }
.prose h3 { margin-top: 32px; scroll-margin-top: 16px; }
.prose h2 + *, .prose h3 + * { margin-top: 12px; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--brand); }
.prose blockquote { margin-left: 0; padding: 14px 20px; border-left: 4px solid var(--brand); border-radius: 0 14px 14px 0; background: var(--surface); }
.prose blockquote p { margin: 0; }
.prose pre { overflow-x: auto; padding: 16px; border-radius: 14px; background: var(--surface-2); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.prose img { border-radius: 14px; border: 1px solid var(--line); }
.prose .table-wrap { margin-top: 22px; }
.prose figure { margin: 26px 0 0; }
figcaption { margin-top: 10px; font-size: 0.92rem; color: var(--soft); }
.phone-shot { max-width: 300px; margin-left: auto; margin-right: auto; border: 6px solid #0a0e1c !important; border-radius: 28px !important; background: #0a0e1c; }

/* Lists of pages */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 0; margin: 0; list-style: none; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.card h3 { font-size: 1.08rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--brand); text-decoration: underline; }
.card p { margin: 0; font-size: 0.97rem; line-height: 1.5; color: var(--muted); }
.card .meta { font-size: 0.85rem; color: var(--soft); }

.checks { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.checks li { position: relative; padding-left: 32px; color: var(--muted); }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.3em; width: 20px; height: 20px; border-radius: 7px; background: linear-gradient(135deg, #6366f1, #a855f7); }
.checks li::after { content: ""; position: absolute; left: 7px; top: calc(0.3em + 4px); width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.checks--them li::before { background: linear-gradient(135deg, #0ea5e9, #14b8a6); }

.verdicts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .verdicts { grid-template-columns: 1fr; } }
.verdict { padding: 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.verdict--us { border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, #6366f1, #d946ef) border-box; }

.callout { margin-top: 24px; padding: 18px 22px; border-radius: 18px; background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(59, 130, 246, 0.1)); border: 1px solid rgba(16, 185, 129, 0.38); }
.callout h3 { margin: 0 0 6px; font-size: 1.04rem; }
.callout p { margin: 0; color: var(--muted); }
.callout p + p { margin-top: 8px; }
.note { font-size: 0.93rem; color: var(--soft); }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); background: var(--surface-2); }
tbody th { font-weight: 700; color: var(--ink); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
td { font-size: 0.95rem; line-height: 1.45; color: var(--muted); }
.compare td.us { background: rgba(99, 102, 241, 0.07); color: var(--ink); }
.compare thead th.us { color: var(--brand); }
td.yes::before { content: "\2713"; margin-right: 7px; color: var(--yes); font-weight: 800; }
td.nope::before { content: "\2717"; margin-right: 7px; color: var(--no); font-weight: 800; }
td.unknown { color: var(--soft); }
.soon { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: #92400e; background: #fef3c7; }
.free-badge { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: #065f46; background: #d1fae5; }
@media (prefers-color-scheme: dark) {
  .soon { color: #fde68a; background: rgba(245, 158, 11, 0.2); }
  .free-badge { color: #a7f3d0; background: rgba(16, 185, 129, 0.22); }
}
/* Phones: one block per row, each value on its own labelled line. */
@media (max-width: 760px) {
  .stack thead { display: none; }
  .stack tbody tr { display: block; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .stack tbody tr:last-child { border-bottom: 0; }
  .stack tbody th, .stack tbody td { display: block; padding: 0; border: 0; background: none !important; }
  .stack tbody th { margin-bottom: 4px; }
  .stack tbody td { margin-top: 4px; }
  .stack tbody td::before { content: attr(data-label) ":\00a0"; margin-right: 0; font-weight: 700; color: var(--ink); }
  .stack tbody td.yes::before { content: attr(data-label) ":\00a0\2713\00a0"; color: var(--ink); }
  .stack tbody td.nope::before { content: attr(data-label) ":\00a0\2717\00a0"; color: var(--ink); }
}

.disclaimer { margin-top: 22px; padding: 18px 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid #f59e0b; }
.disclaimer h2, .disclaimer h3 { margin: 0 0 6px; font-size: 1rem; letter-spacing: 0; }
.disclaimer p, .disclaimer li { margin: 0; font-size: 0.9rem; line-height: 1.55; color: var(--muted); }
.disclaimer p + p, .disclaimer ul { margin-top: 8px; }
.disclaimer ul { padding-left: 1.2em; }
.disclosure { padding: 16px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand); color: var(--muted); }
.disclosure p { margin: 0; }

/* Ranked lists */
.ranked { counter-reset: rank; display: grid; gap: 18px; padding: 0; margin: 0; list-style: none; }
.ranked > li { padding: 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.ranked > li.is-us { border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, #6366f1, #d946ef) border-box; }
.ranked h3 { font-size: 1.3rem; }
.ranked .best-for { margin: 6px 0 0; font-weight: 700; color: var(--brand); }
.ranked p { color: var(--muted); }
.procon { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin-top: 14px; }
@media (max-width: 700px) { .procon { grid-template-columns: 1fr; } }
.procon h4 { margin: 0 0 4px; font-size: 0.95rem; }
.procon ul { margin: 0; padding-left: 1.2em; color: var(--muted); }
.facts-line { margin-top: 12px; font-size: 0.93rem; color: var(--soft); }

/* FAQ */
.faq-list { display: grid; gap: 12px; }
.faq-item { padding: 18px 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.faq-item h3 { font-size: 1.06rem; }
.faq-item p { margin: 8px 0 0; color: var(--muted); }

/* Closing call to action */
.final { padding: 52px 24px; border-radius: 28px; text-align: center; color: #fff; background: radial-gradient(700px 400px at 15% 0%, rgba(124, 58, 237, 0.6), transparent 62%), radial-gradient(700px 400px at 100% 100%, rgba(6, 182, 212, 0.35), transparent 62%), #151338; }
.final h2 { color: #fff; }
.final p { max-width: 620px; margin: 12px auto 0; color: rgba(255, 255, 255, 0.84); }
.final .ctas { justify-content: center; }

.related h2 { font-size: 1.3rem; }
.related ul { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 16px 0 0; list-style: none; }
.related a { display: inline-block; padding: 8px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.related a:hover { border-color: var(--brand); }

/* Footer */
footer { padding: 8px 0 56px; color: var(--soft); font-size: 0.95rem; }
.foot { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 28px; padding-top: 32px; border-top: 1px solid var(--line); }
@media (max-width: 900px) { .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .foot { grid-template-columns: 1fr; } }
.foot .logo { color: var(--ink); font-size: 18px; }
.foot p { margin: 8px 0 0; }
.foot h2 { margin: 0 0 10px; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); }
.foot ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--brand); text-decoration: underline; }
.langs { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.92rem; }
.langs a { color: var(--muted); text-decoration: none; }
.langs a:hover { color: var(--brand); }
