/* HRV Sync shared styles: guide pages and 404. Home and contact keep their own inline CSS. */
:root {
    --ink: #1a1a2e;
    --body: #334155;
    --muted: #5b6577;
    --line: #e2e8f0;
    --white: #ffffff;
    --accent: #7c3aed;
    --accent-dark: #6d28d9;
    --tint: #f5f0ff;
    --tint-line: #ddd0fb;
    --deep: #2e1065;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    min-height: 100vh;
    background: linear-gradient(135deg, #faf5ff 0%, #f0e7ff 50%, #e8f4f8 100%);
    color: var(--ink);
    font-family: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
}
a { color: var(--accent-dark); }
img { max-width: 100%; }
.container { width: min(1040px, calc(100% - 32px)); margin: 0 auto; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; border-bottom: 1px solid rgba(26, 26, 46, 0.08); }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); font-size: 17px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.brand img { display: block; width: 36px; height: 36px; border-radius: 9px; }
.topnav { display: flex; align-items: center; gap: 18px; }
.topnav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.topnav a:hover { color: var(--accent-dark); }
.topnav a.nav-cta { padding: 0 16px; border-radius: 999px; background: var(--accent); color: #fff; }
.topnav a.nav-cta:hover { background: var(--accent-dark); color: #fff; }

main { padding: 40px 0 72px; }
.article { width: min(720px, 100%); }
.breadcrumbs { margin-bottom: 20px; color: var(--muted); font-size: 13px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; list-style: none; }
.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent-dark); }

.kicker { color: var(--accent-dark); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
h1 { margin-top: 8px; font-size: clamp(32px, 5.5vw, 46px); line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; }
.lead { margin-top: 18px; color: var(--body); font-size: 18px; }
.meta { margin-top: 12px; color: var(--muted); font-size: 13px; }
h2 { margin: 44px 0 14px; font-size: 26px; line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; }
h3 { margin: 26px 0 8px; font-size: 18px; line-height: 1.3; }
p { margin: 0 0 14px; color: var(--body); }
ul, ol { margin: 0 0 16px 22px; color: var(--body); }
li { margin: 6px 0; }
strong { color: var(--ink); font-weight: 700; }
.cols { columns: 2; column-gap: 32px; }
.cols li { break-inside: avoid; margin: 0 0 6px; }

.note { margin: 18px 0; padding: 16px 18px; border: 1px solid var(--tint-line); border-radius: 12px; background: var(--tint); font-size: 15px; }
.note p:last-child { margin-bottom: 0; }

.table-wrap { margin: 16px 0 22px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #f8fafc; font-size: 13px; letter-spacing: 0.02em; }
tr:last-child td { border-bottom: 0; }
td.yes { color: #047857; font-weight: 700; }
td.no { color: #b91c1c; font-weight: 700; }

.steps-list { counter-reset: step; margin-left: 0; list-style: none; }
.steps-list > li { position: relative; margin: 0 0 14px; padding: 16px 18px 16px 58px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.steps-list > li::before { counter-increment: step; content: counter(step); position: absolute; left: 16px; top: 15px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; }
.steps-list h3 { margin: 0 0 4px; font-size: 17px; }
.steps-list p:last-child { margin-bottom: 0; }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { padding: 14px 0; cursor: pointer; color: var(--ink); font-weight: 700; }
.faq details p { margin: -6px 0 14px; }

.cta { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border-radius: 12px; background: var(--accent); color: #fff; font-weight: 700; text-decoration: none; }
.cta:hover { background: var(--accent-dark); }
.cta-box { margin: 40px 0 0; padding: 26px 28px; border-radius: 18px; background: var(--deep); color: #fff; }
.cta-box h2 { margin: 0 0 8px; color: #fff; font-size: 22px; }
.cta-box p { color: #ddd6fe; font-size: 15px; }
.cta-box .cta { margin-top: 6px; background: #fff; color: var(--deep); }
.cta-box .cta:hover { background: #ede9fe; }
.cta-box .cta-note { margin: 14px 0 0; color: #c4b5fd; font-size: 13px; }

.related { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); }
.related h2 { margin-top: 0; font-size: 20px; }
.related ul { margin-left: 0; list-style: none; }
.related a { font-weight: 700; text-decoration: none; }
.disclaimer { margin-top: 32px; color: var(--muted); font-size: 13px; }

.footer { padding: 28px 16px 32px; border-top: 1px solid var(--line); background: var(--white); color: var(--muted); font-size: 14px; text-align: center; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 18px; margin-bottom: 4px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.footer a { color: var(--accent-dark); }
.footer p { margin: 0; color: var(--muted); }

@media (max-width: 640px) {
    .topbar { min-height: 60px; }
    .topnav { gap: 12px; }
    .topnav a.hide-sm { display: none; }
    main { padding: 28px 0 56px; }
    .lead { font-size: 16.5px; }
    h2 { font-size: 23px; }
    .steps-list > li { padding-left: 52px; }
    .cta-box { padding: 22px 20px; }
}

@media (max-width: 360px) {
    .topnav { gap: 10px; }
    .cols { columns: 1; }
    th, td { padding: 9px 10px; }
}
