/* Care Analytics marketing layout. Existing components keep their behavior. */
:root {
  --ca-blue: #0066ff;
  --ca-blue-hover: #0052cc;
  --ca-navy: #102743;
  --ca-blue-on-dark: #a9caff;
  --navy-950: #102743;
  --navy-900: #102743;
  --ink: #172b46;
  --muted: #52647a;
  --paper: #f5f7fb;
  --surface: #f5f7fb;
  --line: #e0e7ef;
  --hairline: #e0e7ef;
  --blue-100: #edf4ff;
  --teal-600: #0052cc;
  --teal-100: #edf4ff;
  --section-space: clamp(42px, 5.6vw, 80px);
  --gutter: clamp(16px, 3.2vw, 42px);
  --panel-radius: 16px;
}

body { color: var(--ink); font-size: 1rem; line-height: 1.62; }
.container { width: min(calc(100% - 2 * var(--gutter)), var(--content)); }
.narrow { width: min(calc(100% - 2 * var(--gutter)), 820px); }
.site-header { background: #fff; border-bottom-color: var(--line); }
.menu-toggle { background: var(--surface); border-color: var(--line); }
.mega-intro, .mega-links a:hover { background: var(--paper); }
.mega-intro p, .mega-links small, .mega-eyebrow, .mega-label { color: var(--muted); }
.site-footer { background: var(--ca-navy); }
.site-footer .footer-brand .brand-logo { width: clamp(132px, 18vw, 166px); }

h1, h2, h3, h4 { overflow-wrap: break-word; line-height: 1.12; }
h2 { font-size: clamp(1.8rem, 3.65vw, 3.15rem); font-weight: 590; letter-spacing: -.04em; }
h3 { font-weight: 660; }
.lead { font-size: clamp(1rem, 1.52vw, 1.15rem); line-height: 1.62; }
.eyebrow, .statement-label { color: var(--ca-blue-hover); }
.eyebrow::before, .statement-label::before { flex: 0 0 22px; }
.section.soft, .faq-section, .editorial-statement { background: var(--paper); }
.section.navy, .closing-panel, .inner-page .quote-panel { background: var(--ca-navy); }
.section-heading { gap: 10px; margin-bottom: clamp(22px, 3vw, 36px); }
.section-heading .eyebrow, .copy-stack .eyebrow { margin-bottom: 0; }
.copy-stack { gap: clamp(13px, 2vw, 20px); }
.two-col, .inner-page .two-col {
  column-gap: clamp(24px, 5vw, 66px);
  row-gap: clamp(20px, 4vw, 34px);
}
.two-col > *, .card-grid > *, .journey > *, .platform-heading > *, .footer-main > * {
  min-inline-size: 0;
}

.button {
  min-block-size: 46px;
  max-inline-size: 100%;
  text-align: center;
  white-space: normal;
}
.button:not(.secondary), .button.dark,
.site-nav > .button, .floating-cta .button,
.hero .button:not(.secondary), :is(.inner-page .page-hero, .home-page .hero-home) .button:not(.secondary),
.workflow-section .button, .closing-panel .button:not(.secondary), .quote-panel .button:not(.secondary) {
  color: #fff;
  background: var(--ca-blue);
  border-color: var(--ca-blue);
}
.button:not(.secondary):is(:hover, :active), .button.dark:is(:hover, :active),
.hero .button:not(.secondary):is(:hover, :active), :is(.inner-page .page-hero, .home-page .hero-home) .button:not(.secondary):is(:hover, :active),
.workflow-section .button:is(:hover, :active), .closing-panel .button:not(.secondary):is(:hover, :active),
.quote-panel .button:not(.secondary):is(:hover, :active), .floating-cta .button:is(:hover, :active) {
  color: #fff;
  background: var(--ca-blue-hover);
  border-color: var(--ca-blue-hover);
}
.demo-cta:is(:hover, :active, :focus-visible, [aria-current="page"]),
.site-nav > a.demo-cta:is(:hover, :active, :focus-visible, [aria-current="page"]) {
  color: #fff !important;
  background: var(--ca-blue-hover) !important;
  border-color: var(--ca-blue-hover) !important;
}
.hero .button.secondary, .page-hero .button.secondary, .closing-panel .button.secondary {
  color: #fff;
  background: transparent;
  border-color: #a9bbd2;
}
.hero .button.secondary:hover, .page-hero .button.secondary:hover, .closing-panel .button.secondary:hover {
  color: var(--ca-navy);
  background: var(--blue-100);
  border-color: var(--blue-100);
}
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--ca-blue);
  outline-offset: 4px;
}
.hero :focus-visible, .page-hero :focus-visible, .section.navy :focus-visible, .site-footer :focus-visible {
  outline-color: var(--ca-blue-on-dark);
}

/* Homepage: keep the copy and photograph on separate, aligned surfaces. */
.ca-home-hero.hero {
  min-height: 0;
  padding: clamp(36px, 5vw, 72px) 0;
  background: var(--ca-navy);
}
.ca-home-hero .hero-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 0;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.ca-home-hero .hero-copy {
  min-inline-size: 0;
  align-self: center;
  gap: clamp(14px, 1.6vw, 23px);
  padding: 0;
  transform: none;
}
.ca-home-hero .hero-kicker {
  color: var(--ca-blue-on-dark);
  font-size: clamp(.67rem, 1vw, .76rem);
  line-height: 1.45;
}
.ca-home-hero .hero-kicker i { flex: 0 0 8px; width: 8px; height: 8px; background: #79aeff; box-shadow: none; }
.ca-home-hero h1 {
  font-size: clamp(2.12rem, 4.22vw, 3.9rem);
  font-weight: 590;
  letter-spacing: -.05em;
  line-height: 1.05;
  text-wrap: pretty;
}
.ca-home-hero h1 span { display: block; }
.ca-home-hero .lead { max-width: 58ch; color: #e1e9f4; font-size: clamp(.97rem, 1.3vw, 1.08rem); line-height: 1.61; }
.ca-home-hero .hero-actions { gap: 10px; }
.ca-home-hero .hero-demo-note { margin: 0; color: #c3d0e1; font-size: .84rem; }
.ca-home-hero .trust-row {
  display: flex;
  gap: 9px 15px;
  padding: 0;
  color: #e1e9f4;
  font-size: .78rem;
  transform: none;
}
.ca-home-hero .trust-row span::before { flex: 0 0 16px; width: 16px; height: 16px; color: var(--ca-navy); background: #b9d5ff; }
.home-hero-photo {
  overflow: hidden;
  min-width: 0;
  margin: 0;
  aspect-ratio: 1.17;
  background: #193752;
  border: 1px solid #49607a;
  border-radius: clamp(14px, 2vw, 26px);
}
.home-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: right 43%; }
.home-page .proof-strip { border-bottom: 1px solid var(--line); }
.proof-item { padding-inline: clamp(16px, 2.5vw, 30px); }
.proof-item span:not(.proof-dot) { color: var(--muted); }
.home-page .platform-suite { padding-block: var(--section-space); }
.home-page .platform-heading {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(18px, 4vw, 52px);
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 24px;
}
.home-page .platform-heading .platform-summary { margin-top: 14px; color: var(--muted); }
.home-page .platform-heading h2, .home-page .statement-copy h2, .home-faq-intro h2 {
  font-size: clamp(1.85rem, 3.7vw, 3.1rem);
  font-weight: 590;
  line-height: 1.12;
}
.home-page .service-feature {
  min-height: 0;
  padding: clamp(19px, 2.2vw, 28px);
  background: #fff;
  border-color: var(--line);
  border-radius: var(--panel-radius);
  box-shadow: 0 4px 16px rgba(16, 39, 67, .05);
}
.home-page .service-feature::before, .insight-card::before { height: 2px; background: var(--ca-blue); }
.home-page .service-feature > span { margin-bottom: 14px; }
.home-page .service-feature p { color: var(--muted); font-size: .94rem; }
.home-dashboard-image {
  margin: 0;
  padding: clamp(12px, 2vw, 24px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--panel-radius);
}
.home-dashboard-image img { width: min(100%, 480px); margin-inline: auto; }

/* Page titles, panels and cards follow the same reading rhythm. */

.page-hero.hero-home::before {
  background-image: url("care-analytics-home-hero-background-unique-2026.webp");
  background-position: right 42%;
}
.home-page .hero-home .eyebrow { margin-top: 0; }
.home-page .hero-home h1 span { display: block; }
.home-page .hero-home .trust-row {
  display: flex;
  gap: 9px 15px;
  margin-top: 20px;
  padding: 0;
  color: #e1e9f4;
  font-size: .8rem;
}
.home-page .hero-home .trust-row span::before {
  content: "✓";
  flex: 0 0 16px;
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  color: var(--ca-navy);
  background: #b9d5ff;
  border-radius: 50%;
}

:is(.inner-page .page-hero, .home-page .hero-home), .inner-page.article-page .page-hero, .inner-page.legal-page .page-hero {
  min-height: 0;
  align-items: center;
  padding: clamp(42px, 5.7vw, 78px) 0;
  background: var(--ca-navy);
}
:is(.inner-page .page-hero, .home-page .hero-home)::after {
  inset: 0;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: linear-gradient(90deg, #102743 0%, #102743 36%, rgba(16,39,67,.94) 54%, rgba(16,39,67,.36) 100%);
}
:is(.inner-page .page-hero, .home-page .hero-home) > .container { width: min(calc(100% - 2 * var(--gutter)), var(--content)); }
:is(.inner-page .page-hero, .home-page .hero-home) h1 {
  max-width: min(100%, 680px);
  font-size: clamp(2.1rem, 4.35vw, 4rem);
  font-weight: 550;
  letter-spacing: -.045em;
  line-height: 1.08;
}
.inner-page.article-page .page-hero h1 { font-size: clamp(2rem, 3.85vw, 3.6rem); }
:is(.inner-page .page-hero, .home-page .hero-home) .breadcrumb { color: #d0ddeb; }
:is(.inner-page .page-hero, .home-page .hero-home) .eyebrow { margin-top: 16px; color: var(--ca-blue-on-dark); }
:is(.inner-page .page-hero, .home-page .hero-home) .lead { max-width: 62ch; margin-top: 15px; color: #e1e9f4; }
:is(.inner-page .page-hero, .home-page .hero-home) .hero-actions { gap: 10px; margin-top: 21px; }
.inner-page .copy-stack h2,
.inner-page .quote-panel h2 { font-size: clamp(1.85rem, 3.8vw, 3.2rem); font-weight: 590; line-height: 1.12; }
.inner-page .copy-stack > p:not(.eyebrow), .inner-page .section-heading .lead { color: var(--muted); }
.card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.capability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid .feature-card, .inner-page .fact-card,
.inner-page .measure-card, .journey-step, .insight-card, .outcome-card {
  min-height: 0;
  padding: clamp(18px, 2.4vw, 28px);
  border-color: var(--line);
  border-radius: var(--panel-radius);
}
.card-grid .feature-card .number, .outcome-card > span { margin-bottom: 13px; color: var(--ca-blue-hover); }
.card-grid .feature-card h3, .journey-step h3 { margin-bottom: 8px; line-height: 1.2; }
.card-grid .feature-card p, .journey-step p { font-size: .95rem; }
.section.navy .feature-card .number, .section.navy .outcome-card > span, .eyebrow.light { color: var(--ca-blue-on-dark); }
.section.navy .feature-card p, .section.navy .outcome-card p, .section.navy .journey-step p { color: #e1e9f4; }
.section.navy .eyebrow.light, .closing-panel > div:first-child > span { color: var(--ca-blue-on-dark); }
.inner-page .source-note { margin-top: 18px; color: var(--ink); background: var(--blue-100); border-left-color: var(--ca-blue); }
.source-note a, .article-body a:not(.button), .text-link { color: var(--ca-blue-hover); }
.inner-page .measure-card .tag { color: var(--ca-blue-hover); background: var(--blue-100); }
.inner-page .fact-card strong { color: var(--ca-blue-hover); font-size: clamp(2.45rem, 5vw, 4.45rem); }
.inner-page .fact-card span { color: var(--muted); }
.inner-page .visual-shell, .inner-page .insight-graphic, .inner-page .metric-visual { border-color: var(--line); border-radius: var(--panel-radius); }
.inner-page .visual-shell { background: var(--paper); }
.faq { border-color: var(--line); }
.faq details:last-child, .faq details { border-color: var(--line); }
.faq summary { min-height: 52px; padding: 15px 4px; line-height: 1.4; }
.faq details p { padding: 0 4px 18px; }
.closing-section { padding-block: clamp(30px, 4.4vw, 58px); }
.closing-panel {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
  padding: clamp(22px, 3.35vw, 42px);
  border-radius: clamp(16px, 2.2vw, 26px);
}
.closing-panel > div { min-inline-size: 0; }
.closing-panel > div:first-child > span { margin-bottom: 10px; }
.closing-panel > div:nth-child(2) { display: grid; gap: 14px; }
.closing-panel h2 {
  font-size: clamp(1.65rem, 2.75vw, 2.6rem);
  font-weight: 590;
  line-height: 1.14;
}
.closing-panel p { color: #e1e9f4; }
.closing-panel .hero-actions { margin: 0; gap: 10px; }
.closing-panel .button:not(.secondary):visited { color: #fff; }
.closing-panel :focus-visible { outline-color: var(--ca-blue-on-dark); }
@media (max-width: 820px) {
  .closing-panel { grid-template-columns: minmax(0, 1fr); }
}
.question-set, .info-panel, .form-card {
  min-height: 0;
  padding: clamp(16px, 3.2vw, 36px);
  border-color: var(--line);
  border-radius: var(--panel-radius);
}
.question-set h2 { font-size: clamp(1.55rem, 3.2vw, 2.65rem); }
.question-set li { background: var(--paper); }
.insight-card { padding: 0; }
.insight-card.invisible, .insight-card[hidden] { display: none; }
.insight-card time { color: var(--ca-blue-hover); }
.insight-card h2 { font-size: clamp(1.18rem, 2vw, 1.45rem); }
.article-feature { margin-top: clamp(16px, 3vw, 38px); border: 0; border-radius: var(--panel-radius); }
.article-body { overflow-wrap: anywhere; }
.error-section .error-copy { min-inline-size: 0; width: min(calc(100% - 2 * var(--gutter)), var(--content)); }
.error-copy h1 { font-size: clamp(2rem, 5vw, 4.5rem); }

/* Contact and registration forms use shrinkable tracks and touch-sized inputs. */
.form-card, .form-section, .assessment-fieldset, .form-grid, .field, .checkbox-grid, .check-option { min-inline-size: 0; }
.form-grid, .checkbox-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field label { font-size: .875rem; }
.field input, .field select, .field textarea {
  min-inline-size: 0;
  max-inline-size: 100%;
  min-height: 48px;
  background: var(--surface);
  border-color: #b8c6d6;
  border-radius: 9px;
  font-size: 1rem;
}
.field textarea { min-height: 136px; }
.form-foot { align-items: flex-start; }
.form-foot .privacy-note { color: var(--muted); }
.check-option {
  align-items: start;
  min-height: 44px;
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}
.check-option input { flex: 0 0 auto; }
.assessment-fieldset legend { max-width: 100%; white-space: normal; }

.contact-page #schedule .ca-contact-grid {
  width: min(calc(100% - 2 * var(--gutter)), var(--content));
  display: grid;
  grid-template-columns: minmax(0, 1.46fr) minmax(0, 1fr);
  gap: clamp(16px, 2.4vw, 32px);
  align-items: start;
}
.contact-page .contact-panel, .contact-page .scheduler-card {
  min-inline-size: 0;
  min-height: 0;
  padding: clamp(18px, 3vw, 36px);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--panel-radius);
}
.contact-page .scheduler-card { background: #fff; }
.contact-page .contact-panel h2, .contact-page .scheduler-card h2 {
  color: var(--ink);
  font-size: clamp(1.45rem, 2.7vw, 2.2rem);
  font-weight: 620;
  letter-spacing: -.025em;
  line-height: 1.16;
}
.contact-page .contact-panel .eyebrow, .contact-page .scheduler-card .eyebrow { margin: 0 0 10px; color: var(--ca-blue-hover); }
.contact-page .contact-panel > p:not(.eyebrow), .contact-page .scheduler-card p:not(.eyebrow) { margin: 12px 0 0; color: var(--muted); }
.contact-page .contact-points { margin-block: 19px 0; }
.contact-page .contact-points li { color: var(--ink); gap: 10px; }
.contact-page .contact-points li > span:first-child, .contact-page .demo-agenda li::before {
  color: var(--ca-blue-hover);
  background: #e1edff;
}
.contact-page .demo-agenda { margin-top: 21px; padding-top: 19px; border-color: var(--line); }
.contact-page .demo-agenda h3, .contact-page .demo-agenda strong { color: var(--ink); }
.contact-page .demo-agenda span { color: var(--muted); }
.contact-page .scheduler-card .schedule-option { margin: 0 0 18px; padding: 0; color: var(--ink); background: transparent; }
.contact-page .scheduler-frame-wrap { min-height: 0; background: var(--paper); border-color: var(--line); border-radius: 12px; }
.contact-page .scheduler-frame { height: clamp(660px, 76vh, 815px); min-height: 0; }
.contact-page .scheduler-mobile-link { display: none; }
.contact-page .scheduler-card p.scheduler-fallback { margin: 0 0 13px; }
.contact-page .scheduler-fallback a { color: var(--ca-blue-hover); }
.contact-page .floating-cta, .contact-page .back-to-top { display: none; }
.contact-page .site-footer { padding-bottom: 0; }

/* The sample report remains readable on a phone without sideways scrolling. */
.sample-report-table { width: 100%; margin: 0; border-collapse: collapse; border-radius: var(--panel-radius); text-align: left; }
.sample-report-table caption { padding: 0 0 12px; text-align: left; font-weight: 700; }
.sample-report-table :is(th, td) { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.sample-report-table thead, .sample-report-table tfoot { background: var(--paper); }
.sample-report-table .report-cell-label { display: none; }
#sample-portfolio-report .card-grid { margin-top: 22px; }

@media (max-width: 1024px) {
  .contact-page #schedule .ca-contact-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .ca-home-hero h1 { font-size: clamp(2.05rem, 4.6vw, 3.15rem); }
  .ca-home-hero .hero-layout { gap: 24px; }
  .home-hero-photo { aspect-ratio: .95; }
  :is(.inner-page .page-hero, .home-page .hero-home)::after { background: linear-gradient(90deg, #102743 0%, rgba(16,39,67,.95) 62%, rgba(16,39,67,.78) 100%); }
}
@media (max-width: 820px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-page .proof-grid { padding-block: 6px; }
  .home-page .proof-item {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    align-items: center;
    justify-content: stretch;
    gap: 12px;
    min-height: 0;
    padding: 14px 8px;
    text-align: left;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .home-page .proof-dot { justify-self: center; }
  .home-page .proof-item:last-child { border-bottom: 0; }
  .site-footer .footer-main { row-gap: 24px; }
}
@media (max-width: 680px) {
  .ca-home-hero.hero { padding-block: 29px 23px; }
  .ca-home-hero .hero-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .ca-home-hero h1 { font-size: clamp(2rem, 8.35vw, 3.15rem); }
  .ca-home-hero .hero-actions { width: 100%; }
  .ca-home-hero .hero-actions .button { flex: 1 1 100%; }
  .home-hero-photo { aspect-ratio: 1.6; }
  .home-page .platform-heading { grid-template-columns: minmax(0, 1fr); }
  .card-grid, .form-grid, .checkbox-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-page .scheduler-card .schedule-option { margin-bottom: 14px; }
  .contact-page .scheduler-frame-wrap, .contact-page .scheduler-fallback { display: none; }
  .contact-page .scheduler-mobile-link { display: inline-flex; justify-content: center; }
  .contact-page .form-foot .button { width: 100%; }
  .sample-report-table, .sample-report-table tbody, .sample-report-table tfoot { display: block; }
  .sample-report-table caption { display: block; }
  .sample-report-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .sample-report-table tr { display: grid; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 10px; }
  .sample-report-table :is(th, td) { border-bottom: 0; padding: 6px 12px; }
  .sample-report-table tr > th { padding-block: 11px; background: var(--paper); }
  .sample-report-table tr > td { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 9px; }
  .sample-report-table tr > td:last-child { padding-bottom: 12px; }
  .sample-report-table .report-cell-label { display: block; color: var(--muted); font-size: .85rem; }
}
