/* CareNotes content pages: restyles older page templates (Anton display cards and the
   dark theme) into the site style used by /specs/, /trust/, and /integrations/.
   Loaded last; body.cn-page scopes every rule. */

body.cn-page {
    --cp-ink: #1d1d1f; --cp-body: #424245; --cp-mute: #6e6e73; --cp-line: rgba(0, 0, 0, .08);
    --cp-blue: #2563eb; --cp-blue-deep: #1d4ed8; --cp-alt: #f5f5f7;
    background: #fff !important; background-image: none !important; color: var(--cp-ink) !important;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif !important;
    -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.cn-page main { position: relative; }

/* Floating pill nav (same as /sample3/sample3.css). */
body.cn-page .site-nav { font-family: 'Geist', Inter, -apple-system, system-ui, sans-serif; color: #1a1a1a; padding-bottom: 12px; }
body.cn-page .site-nav a { color: inherit; text-decoration: none; }
body.cn-page .site-nav button { background: transparent; border: 0; cursor: pointer; color: inherit; font: inherit; }
body.cn-page .site-nav #mobile-menu { position: absolute; top: calc(100% - 4px); left: .75rem; right: .75rem; margin-top: 0; }
@media (min-width: 640px) { body.cn-page .site-nav #mobile-menu { left: 1.25rem; right: 1.25rem; } }
body.cn-page .site-nav .nav-pill {
    background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
    box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .18), 0 0 0 1px rgba(0, 0, 0, .04); border: 0;
}
body.cn-page .site-nav .btn-dark { background: #1a1a1a; color: #fff; transition: background .2s, box-shadow .25s; }
body.cn-page .site-nav .btn-dark:hover { background: #2563eb; box-shadow: 0 12px 26px -12px rgba(37, 99, 235, .65); }
body.cn-page .site-nav .btn-light { background: #fff; color: #1a1a1a; border: 1px solid rgba(0, 0, 0, .08); }
body.cn-page #cn-features-menu { min-width: 13.5rem; }
body.cn-page .site-nav .text-ink, body.cn-page .site-nav .hover\:text-ink:hover { color: #1a1a1a; }
body.cn-page .site-nav .text-ink\/70 { color: rgba(26, 26, 26, .7); }
body.cn-page .site-nav .text-ink\/80 { color: rgba(26, 26, 26, .8); }
body.cn-page main [class*="blur-3xl"], body.cn-page main .glow-drift { display: none !important; }

/* ---------------- TYPE ---------------- */
body.cn-page main h1, body.cn-page main h2, body.cn-page main h3, body.cn-page main h4,
body.cn-page .font-display, body.cn-page .display, body.cn-page [class*="display-"] {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif !important;
    text-transform: none !important; font-style: normal;
}
body.cn-page main h1 { font-size: clamp(38px, 5.6vw, 68px) !important; font-weight: 700 !important; line-height: 1.05 !important; letter-spacing: -.025em !important; color: var(--cp-ink); text-wrap: balance; }
body.cn-page main h2 { font-size: clamp(28px, 3.6vw, 44px) !important; font-weight: 700 !important; line-height: 1.1 !important; letter-spacing: -.02em !important; color: var(--cp-ink); text-wrap: balance; }
body.cn-page main h3 { font-size: clamp(19px, 1.7vw, 22px) !important; font-weight: 600 !important; line-height: 1.25 !important; letter-spacing: -.01em !important; color: var(--cp-ink); }
body.cn-page main h4 { font-weight: 600 !important; letter-spacing: -.01em !important; color: var(--cp-ink); }
body.cn-page main h1 span, body.cn-page main h2 span { color: inherit; }
body.cn-page main h1 [class*="text-blue"], body.cn-page main h1 [class*="text-emerald"], body.cn-page main h1 [class*="text-cyan"],
body.cn-page main h2 [class*="text-blue"], body.cn-page main h2 [class*="text-emerald"] { color: var(--cp-blue) !important; -webkit-text-fill-color: var(--cp-blue) !important; background: none !important; }
body.cn-page main .text-gradient, body.cn-page main .text-gradient-blue-green, body.cn-page main [class*="bg-clip-text"] {
    background: linear-gradient(90deg, #2563eb, #16a34a) !important; -webkit-background-clip: text !important; background-clip: text !important;
    -webkit-text-fill-color: transparent !important; color: transparent !important;
}
body.cn-page main p, body.cn-page main li, body.cn-page main td, body.cn-page main dd { color: var(--cp-body); }
body.cn-page main strong, body.cn-page main b { color: var(--cp-ink); }
body.cn-page main a:not([class*="btn"]):not([class*="rounded-full"]):not(.cn-card-link) { color: var(--cp-blue); }

/* Old dark-theme and translucent text utilities, re-mapped for a light page. */
body.cn-page main [class*="text-white"], body.cn-page main [class*="text-gray-1"], body.cn-page main [class*="text-gray-2"],
body.cn-page main [class*="text-slate-1"], body.cn-page main [class*="text-slate-2"], body.cn-page main [class*="text-ink"] { color: var(--cp-ink) !important; }
body.cn-page main p[class*="text-white"], body.cn-page main p[class*="text-gray-"], body.cn-page main p[class*="text-ink/"],
body.cn-page main [class*="text-white/"], body.cn-page main [class*="text-ink/"], body.cn-page main [class*="text-gray-3"],
body.cn-page main [class*="text-gray-4"], body.cn-page main [class*="text-gray-5"], body.cn-page main [class*="text-slate-3"],
body.cn-page main [class*="text-slate-4"] { color: var(--cp-body) !important; }
body.cn-page main [class*="text-ink/4"], body.cn-page main [class*="text-ink/5"], body.cn-page main [class*="text-gray-5"],
body.cn-page main [class*="text-white/4"], body.cn-page main [class*="text-white/5"] { color: var(--cp-mute) !important; }
body.cn-page main [class*="text-emerald-2"], body.cn-page main [class*="text-emerald-3"], body.cn-page main [class*="text-emerald-4"],
body.cn-page main [class*="text-green-3"], body.cn-page main [class*="text-green-4"] { color: #15803d !important; }
body.cn-page main [class*="text-blue-2"], body.cn-page main [class*="text-blue-3"], body.cn-page main [class*="text-blue-4"],
body.cn-page main [class*="text-cyan-2"], body.cn-page main [class*="text-cyan-3"], body.cn-page main [class*="text-cyan-4"],
body.cn-page main [class*="text-indigo-3"], body.cn-page main [class*="text-indigo-4"], body.cn-page main [class*="text-purple-3"],
body.cn-page main [class*="text-purple-4"], body.cn-page main [class*="text-sky-3"] { color: var(--cp-blue-deep) !important; }
body.cn-page main [class*="text-amber-2"], body.cn-page main [class*="text-amber-3"], body.cn-page main [class*="text-yellow-3"] { color: #b45309 !important; }
body.cn-page main [class*="text-red-3"], body.cn-page main [class*="text-red-4"], body.cn-page main [class*="text-rose-3"] { color: #b91c1c !important; }

/* Old dark surfaces become light cards. */
body.cn-page main .card-bg, body.cn-page main .glass, body.cn-page main [class*="bg-white/"], body.cn-page main [class*="bg-black/"],
body.cn-page main [class*="bg-gray-8"], body.cn-page main [class*="bg-gray-9"], body.cn-page main [class*="bg-slate-8"], body.cn-page main [class*="bg-slate-9"],
body.cn-page main .workflow-step, body.cn-page main [class*="bg-emerald-500/"], body.cn-page main [class*="bg-blue-500/"], body.cn-page main [class*="bg-cyan-500/"],
body.cn-page main [class*="bg-purple-500/"], body.cn-page main [class*="bg-indigo-500/"], body.cn-page main [class*="bg-amber-500/"], body.cn-page main [class*="bg-red-500/"] {
    background: var(--cp-alt) !important; background-image: none !important; border-color: transparent !important;
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important; box-shadow: none !important;
}
body.cn-page main [class*="border-white"], body.cn-page main [class*="border-gray-7"], body.cn-page main [class*="border-gray-8"],
body.cn-page main [class*="border-slate-7"], body.cn-page main [class*="border-emerald-5"], body.cn-page main [class*="border-cyan-5"],
body.cn-page main [class*="border-blue-5"] { border-color: var(--cp-line) !important; }
body.cn-page main .workflow-step { border-left: 3px solid var(--cp-blue) !important; }
body.cn-page main .card-soft { background: var(--cp-alt) !important; border: 0 !important; box-shadow: none !important; border-radius: 20px !important; }
body.cn-page main .card-soft h3, body.cn-page main .card-bg h3 { margin-top: 0; }

/* Small square icon / number badges. */
body.cn-page main .step-number, body.cn-page main span.inline-grid.rounded-full,
body.cn-page main div[class*="w-16"][class*="h-16"][class*="rounded"], body.cn-page main div[class*="w-12"][class*="h-12"][class*="rounded"],
body.cn-page main div[class*="w-14"][class*="h-14"][class*="rounded"] {
    background: linear-gradient(135deg, #2563eb, #60a5fa) !important; color: #fff !important; border: 0 !important;
}
body.cn-page main .step-number *, body.cn-page main span.inline-grid.rounded-full *,
body.cn-page main div[class*="w-16"][class*="h-16"][class*="rounded"] *, body.cn-page main div[class*="w-12"][class*="h-12"][class*="rounded"] *,
body.cn-page main div[class*="w-14"][class*="h-14"][class*="rounded"] * { color: #fff !important; }
body.cn-page main div[class*="w-12"][class*="h-12"][class*="rounded"]:has(img) { background: #fff !important; }

/* Pill labels (old hero badges). */
body.cn-page main span.rounded-full[class*="uppercase"], body.cn-page main div.rounded-full[class*="uppercase"],
body.cn-page main div[class*="inline-flex"][class*="rounded-full"][class*="text-sm"]:not(a) {
    background: rgba(37, 99, 235, .08) !important; color: var(--cp-blue-deep) !important; border: 0 !important;
    letter-spacing: .06em !important;
}
body.cn-page main span.rounded-full[class*="uppercase"] *, body.cn-page main div.rounded-full[class*="uppercase"] * { color: var(--cp-blue-deep) !important; }

/* Buttons. */
body.cn-page main a.btn-light, body.cn-page main a.glass-button, body.cn-page main a[class*="rounded-full"][class*="bg-blue"],
body.cn-page main a[class*="rounded-full"][class*="bg-emerald"], body.cn-page main a[class*="rounded-lg"][class*="bg-blue-6"],
body.cn-page main button[class*="bg-blue-6"] {
    background: var(--cp-ink) !important; color: #fff !important; border: 0 !important; box-shadow: none !important;
    border-radius: 980px !important; font-weight: 500 !important; transform: none !important;
}
body.cn-page main a.btn-light:hover, body.cn-page main a.glass-button:hover, body.cn-page main a[class*="rounded-full"][class*="bg-blue"]:hover,
body.cn-page main a[class*="rounded-full"][class*="bg-emerald"]:hover { background: var(--cp-blue) !important; }
body.cn-page main a.btn-light *, body.cn-page main a.glass-button * { color: #fff !important; }
body.cn-page main a[class*="rounded-full"][class*="border"]:not(.btn-light):not(.glass-button):not([class*="bg-blue"]):not([class*="bg-emerald"]) {
    background: transparent !important; color: var(--cp-ink) !important; border: 0 !important;
    box-shadow: inset 0 0 0 1px var(--cp-ink) !important; border-radius: 980px !important; font-weight: 500 !important;
}
body.cn-page main a[class*="rounded-full"][class*="border"]:not(.btn-light):not(.glass-button):hover { background: var(--cp-ink) !important; color: #fff !important; }

/* Note template previews (were dark terminal boxes). */
body.cn-page main .template-box {
    background: #fff !important; border: 1px solid var(--cp-line) !important; border-radius: 16px !important;
    color: var(--cp-body) !important; box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .25) !important;
}
body.cn-page main .template-box * { color: var(--cp-body) !important; }
body.cn-page main .template-box strong { color: var(--cp-ink) !important; }
body.cn-page main .template-box > div:first-child { color: var(--cp-blue-deep) !important; }

/* Tables. */
body.cn-page main table { border-collapse: collapse; }
body.cn-page main th { color: var(--cp-mute) !important; }
body.cn-page main td { color: var(--cp-body) !important; }
body.cn-page main td, body.cn-page main th { border-color: var(--cp-line) !important; }
body.cn-page main td.carenotes-win, body.cn-page main .carenotes-win { color: #15803d !important; background: rgba(22, 163, 74, .07) !important; font-weight: 600; }
body.cn-page main table [style*="color"] { color: inherit !important; }

/* =====================================================================
   SECTION PAGES: each top-level <section> becomes a full-width band.
   ===================================================================== */
body.cn-bands main { padding: 0 !important; margin: 0 !important; max-width: none !important; }
body.cn-bands main > section {
    max-width: none !important; margin: 0 !important; padding: 96px 22px !important; background: #fff;
    border-radius: 0 !important; background-image: none !important; position: relative;
}
body.cn-bands main > section::before, body.cn-bands main > section::after { display: none !important; }
body.cn-bands main > section:nth-of-type(even) { background: var(--cp-alt); }
body.cn-bands main > section:nth-of-type(even) .card-soft,
body.cn-bands main > section:nth-of-type(even) .card-bg,
body.cn-bands main > section:nth-of-type(even) [class*="bg-white/"] { background: #fff !important; }
body.cn-bands main > section > div, body.cn-bands main > section > .container {
    max-width: 1024px !important; margin-left: auto !important; margin-right: auto !important;
    background: transparent !important; border-radius: 0 !important; padding: 0 !important; box-shadow: none !important; border: 0 !important;
}
body.cn-bands main > section > div > h2:first-child, body.cn-bands main > section > div > div > h2:first-child { margin-top: 0 !important; }
body.cn-bands main > section > div > h2 + p { font-size: 18px !important; }

/* Hero: the first band. */
body.cn-bands main > section:first-of-type {
    margin-top: -76px !important; padding: 150px 22px 92px !important; text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, #eef3ff 55%, #e3ecff 100%) !important;
}
body.cn-bands main > section:first-of-type :is(h1, p, span) { text-align: center; }
body.cn-bands main > section:first-of-type > div:not(:has([class*="grid"])) { max-width: 900px !important; }
body.cn-bands main > section:first-of-type p:not([class*="grid"] p):not(form p) { font-size: clamp(18px, 2vw, 22px) !important; line-height: 1.4 !important; color: #4b5675 !important; max-width: 700px; margin-left: auto; margin-right: auto; }
body.cn-bands main > section:first-of-type .flex:not([class*="grid"] .flex) { justify-content: center; }
body.cn-bands main > section:first-of-type [class*="grid"] :is(p, span, h2, h3) { text-align: left; }

/* Headings inside card grids stay card-sized. */
body.cn-page main [class*="grid"] h2 { font-size: clamp(20px, 1.9vw, 26px) !important; letter-spacing: -.015em !important; }
body.cn-page main [class*="grid"] h3 { font-size: 18px !important; }

/* Closer: a last band whose card was dark. */
body.cn-bands main > section:last-of-type:has(> div.bg-ink),
body.cn-bands main > section:last-of-type:has(> div[class*="bg-black"]),
body.cn-bands main > section:last-of-type:has(> div[class*="from-"]) { background: #1d1d1f !important; }
body.cn-bands main > section:last-of-type:has(> div.bg-ink) *,
body.cn-bands main > section:last-of-type:has(> div[class*="bg-black"]) *,
body.cn-bands main > section:last-of-type:has(> div[class*="from-"]) * { color: #f5f5f7 !important; text-align: center; }
body.cn-bands main > section:last-of-type:has(> div.bg-ink) p,
body.cn-bands main > section:last-of-type:has(> div[class*="from-"]) p { color: #a1a1a6 !important; }
body.cn-bands main > section:last-of-type:has(> div.bg-ink) a.btn-light,
body.cn-bands main > section:last-of-type:has(> div[class*="from-"]) a.btn-light { background: #f5f5f7 !important; color: #1d1d1f !important; }
body.cn-bands main > section:last-of-type:has(> div.bg-ink) a.btn-light *,
body.cn-bands main > section:last-of-type:has(> div[class*="from-"]) a.btn-light * { color: #1d1d1f !important; }
body.cn-bands main > section:last-of-type:has(> div.bg-ink) a[class*="border"]:not(.btn-light) { box-shadow: inset 0 0 0 1px rgba(245, 245, 247, .7) !important; color: #f5f5f7 !important; }
body.cn-bands main > section:last-of-type:has(> div.bg-ink) .flex { justify-content: center; }

/* =====================================================================
   ARTICLE PAGES (blog posts, legal): a centered reading column.
   ===================================================================== */
body.cn-article main { max-width: 760px !important; margin: 0 auto !important; padding: 56px 22px 110px !important; }
body.cn-article main > div[class*="rounded-"], body.cn-article main > section, body.cn-article main article {
    background: transparent !important; padding-left: 0 !important; padding-right: 0 !important; border: 0 !important; box-shadow: none !important; max-width: none !important;
}
body.cn-article main h1 { font-size: clamp(36px, 5vw, 56px) !important; margin: 10px 0 18px !important; }
body.cn-article main h2 { font-size: clamp(24px, 2.6vw, 32px) !important; margin: 48px 0 14px !important; }
body.cn-article main h3 { margin: 32px 0 10px !important; }
body.cn-article main p, body.cn-article main li { font-size: 17px !important; line-height: 1.65 !important; color: var(--cp-body) !important; }
body.cn-article main .lede { font-size: 21px !important; line-height: 1.5 !important; color: var(--cp-ink) !important; }
body.cn-article main .post-kicker, body.cn-article main .date { color: var(--cp-blue-deep) !important; font-size: 14px !important; font-weight: 600 !important; letter-spacing: .02em; }
body.cn-article main img { border-radius: 20px; }
body.cn-article main figure { margin: 28px 0 !important; }
body.cn-article main pre { background: #f5f5f7 !important; color: var(--cp-ink) !important; border-radius: 14px; padding: 18px !important; overflow-x: auto; font-size: 13.5px; }
body.cn-article main code { color: var(--cp-ink) !important; }
body.cn-article main blockquote { border-left: 3px solid var(--cp-blue) !important; margin: 24px 0 !important; padding: 4px 0 4px 18px !important; color: var(--cp-ink) !important; background: none !important; }
body.cn-article main hr { border: 0; border-top: 1px solid var(--cp-line); margin: 40px 0; }
body.cn-article main table { width: 100%; font-size: 15px; }
body.cn-article main th, body.cn-article main td { padding: 10px 12px; border-bottom: 1px solid var(--cp-line) !important; text-align: left; }
body.cn-article main .prose { color: var(--cp-body) !important; max-width: none !important; }

/* Legal documents imported from the old site builder. */
body.cn-page [data-custom-class], body.cn-page [data-custom-class] * {
    font-family: Inter, -apple-system, BlinkMacSystemFont, system-ui, sans-serif !important; text-transform: none !important;
}
body.cn-page [data-custom-class='title'], body.cn-page [data-custom-class='title'] * { font-size: clamp(34px, 4.6vw, 52px) !important; font-weight: 700 !important; letter-spacing: -.025em !important; line-height: 1.06 !important; color: var(--cp-ink) !important; }
body.cn-page [data-custom-class='heading_1'], body.cn-page [data-custom-class='heading_1'] * { font-size: 26px !important; font-weight: 700 !important; letter-spacing: -.02em !important; line-height: 1.2 !important; color: var(--cp-ink) !important; }
body.cn-page [data-custom-class='heading_2'], body.cn-page [data-custom-class='heading_2'] * { font-size: 19px !important; font-weight: 600 !important; letter-spacing: -.01em !important; color: var(--cp-ink) !important; }
body.cn-page [data-custom-class='body_text'], body.cn-page [data-custom-class='body_text'] * { font-size: 16px !important; line-height: 1.65 !important; color: var(--cp-body) !important; }
body.cn-page [data-custom-class='link'], body.cn-page [data-custom-class='link'] * { color: var(--cp-blue) !important; }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 734px) {
    body.cn-bands main > section { padding: 72px 18px !important; }
    body.cn-bands main > section:first-of-type { padding: 120px 18px 72px !important; }
    body.cn-article main { padding: 36px 18px 90px !important; }
}
