/* Public marketing surface: a bright, editorial layer over the authenticated portal. */
body.public-home-active {
  background: #f5f8ff;
  color: #182642;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body.public-home-active .ambient { display: none; }
body.public-home-active .topbar {
  position: sticky;
  top: 0;
  min-height: 74px;
  background: rgba(248, 251, 255, .9);
  border-bottom: 1px solid #dfe7f3;
  box-shadow: 0 8px 24px rgba(33, 64, 112, .06);
  backdrop-filter: blur(18px);
}
body.public-home-active .brand { color: #1a2b4d; }
body.public-home-active .brand i {
  background: linear-gradient(135deg, #2f7df6, #3ed9bf);
  box-shadow: 0 7px 18px rgba(47, 125, 246, .24);
}
body.public-home-active .brand span span { color: #159e91; }
body.public-home-active #nav a { color: #526683; }
body.public-home-active #nav a:hover { color: #1e4fa4; }
body.public-home-active .cp-button.ghost {
  color: #23416d !important;
  background: #fff;
  border-color: #c9d7eb;
}
body.public-home-active .cp-button {
  box-shadow: 0 9px 22px rgba(35, 190, 170, .17);
}
body.public-home-active .site-footer {
  display: grid !important;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 34px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px 22px 54px;
  color: #617391;
  border-top: 1px solid #dfe7f3;
  background: #f5f8ff;
}
body.public-home-active .site-footer section { display: grid; align-content: start; gap: 9px; }
body.public-home-active .site-footer h2 { margin: 0 0 5px; color: #263b60; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
body.public-home-active .site-footer a { color: #617391; font-size: .82rem; }
body.public-home-active .site-footer a:hover { color: #1d62c5; }
body.public-home-active .site-footer p { max-width: 300px; margin: 3px 0 8px; font-size: .82rem; line-height: 1.6; }
body.public-home-active .site-footer small { font-size: .72rem; color: #8a9ab4; }
body.public-home-active .site-footer-brand { display: inline-flex; align-items: center; gap: 9px; color: #1a2b4d !important; font-weight: 850; }
body.public-home-active .site-footer-brand img { width: 30px; height: 30px; border-radius: 9px; }
body.public-home-active .site-footer-brand span span { color: #159e91; }
body.public-home-active .footer-chat-button { width: max-content; padding: 0; border: 0; background: transparent; color: #617391; cursor: pointer; font: inherit; font-size: .82rem; text-align: left; }
body.public-home-active .footer-chat-button:hover { color: #1d62c5; }

.public-home { overflow: hidden; }
.public-hero-wrap, .public-section, .public-stat-strip, .public-cta {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
}
.public-hero-wrap { padding: 78px 0 42px; }
.public-hero {
  display: grid;
  grid-template-columns: 1.03fr .97fr;
  gap: 60px;
  align-items: center;
  min-height: 480px;
}
.public-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #178e82; font-size: .72rem; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.public-eyebrow::before { content: ''; width: 25px; height: 2px; border-radius: 3px; background: #2cc7b4; }
.public-hero h1 { max-width: 680px; margin: 16px 0 20px; color: #162743; font-size: clamp(2.7rem, 5.4vw, 5rem); line-height: .98; letter-spacing: -.06em; }
.public-hero h1 em { color: #1b9e8e; font-style: normal; }
.public-hero-copy > p { max-width: 590px; margin: 0; color: #617391; font-size: 1.05rem; line-height: 1.7; }
.public-hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 30px; }
.public-trust-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; color: #71819c; font-size: .76rem; }
.public-trust-row span { display: inline-flex; align-items: center; gap: 6px; }
.public-trust-row b { color: #294268; font-weight: 800; }
.public-trust-row i { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #d6f7ee; color: #13927e; font-style: normal; font-weight: 900; }
.public-hero-visual { position: relative; min-height: 425px; padding: 27px; border: 1px solid #d9e4f2; border-radius: 30px; background: radial-gradient(circle at 85% 8%, rgba(104, 179, 255, .25), transparent 30%), linear-gradient(150deg, #e9f4ff, #f7fbff 58%, #e6fbf6); box-shadow: 0 25px 55px rgba(53, 92, 145, .15); }
.public-hero-visual::before, .public-hero-visual::after { content: ''; position: absolute; border: 1px solid rgba(60, 138, 225, .16); border-radius: 50%; pointer-events: none; }
.public-hero-visual::before { width: 310px; height: 310px; right: -105px; top: -65px; }
.public-hero-visual::after { width: 210px; height: 210px; right: -53px; top: -15px; border-color: rgba(43, 195, 173, .25); }
.visual-head { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: start; gap: 15px; }
.visual-kicker { color: #69809d; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.visual-live { display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; border: 1px solid #bce6d9; border-radius: 999px; background: #effdf7; color: #15927c; font-size: .66rem; font-weight: 850; }
.visual-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #21c49a; box-shadow: 0 0 0 4px rgba(33, 196, 154, .12); }
.visual-balance { position: relative; z-index: 1; margin-top: 24px; padding: 20px; border: 1px solid rgba(93, 149, 212, .22); border-radius: 18px; background: rgba(255, 255, 255, .74); box-shadow: 0 13px 27px rgba(72, 109, 157, .1); }
.visual-balance small { display: block; color: #7083a0; font-size: .76rem; }
.visual-balance strong { display: block; margin-top: 6px; color: #1a355c; font-size: 2.65rem; letter-spacing: -.06em; }
.visual-balance strong span { color: #1d9f8e; font-size: 1.1rem; }
.visual-chart { position: relative; z-index: 1; height: 112px; margin-top: 22px; border-bottom: 1px solid #d4e2f0; background: repeating-linear-gradient(to bottom, transparent 0 27px, rgba(100, 141, 188, .12) 28px 29px); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.visual-chart svg { width: 100%; height: 100%; overflow: visible; }
.visual-chart polyline { fill: none; stroke: #2c91ee; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.visual-bottom { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 15px; }
.visual-bottom div { padding: 10px; border: 1px solid rgba(93, 149, 212, .16); border-radius: 11px; background: rgba(255, 255, 255, .64); }
.visual-bottom small { display: block; color: #7184a0; font-size: .64rem; }
.visual-bottom b { display: block; margin-top: 3px; color: #27466e; font-size: .82rem; }
.public-stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 28px; border: 1px solid #dce6f3; border-radius: 17px; background: #dce6f3; overflow: hidden; box-shadow: 0 10px 30px rgba(50, 92, 149, .08); }
.public-stat-strip article { padding: 21px 24px; background: rgba(255, 255, 255, .8); }
.public-stat-strip strong { display: block; color: #1a9e8e; font-size: 1.45rem; letter-spacing: -.04em; }
.public-stat-strip span { display: block; margin-top: 4px; color: #667896; font-size: .78rem; }
.public-section { padding-top: 92px; }
.public-section-head { display: flex; justify-content: space-between; align-items: end; gap: 25px; margin-bottom: 25px; }
.public-section-head h2 { max-width: 600px; margin: 7px 0 0; color: #1a2d4e; font-size: clamp(1.9rem, 3.2vw, 2.7rem); line-height: 1.05; letter-spacing: -.05em; }
.public-section-head p { max-width: 420px; margin: 0; color: #6d7e9a; font-size: .9rem; line-height: 1.6; }
.public-feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.public-feature-card { min-height: 216px; padding: 22px; border: 1px solid #dce6f3; border-radius: 18px; background: #fff; box-shadow: 0 13px 32px rgba(53, 91, 145, .07); transition: transform .2s, box-shadow .2s; }
.public-feature-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(53, 91, 145, .13); }
.public-feature-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: #1a8f86; background: #e0f9f2; font-size: 1.25rem; }
.public-feature-card:nth-child(2) .public-feature-icon { color: #4d70cc; background: #e8efff; }
.public-feature-card:nth-child(3) .public-feature-icon { color: #ad6a1c; background: #fff1d8; }
.public-feature-card:nth-child(4) .public-feature-icon { color: #9459bc; background: #f5eaff; }
.public-feature-card h3 { margin: 18px 0 8px; color: #294267; font-size: 1rem; }
.public-feature-card p { margin: 0; color: #71819b; font-size: .82rem; line-height: 1.55; }
.public-provider-band { display: grid; grid-template-columns: .9fr 1.1fr; gap: 30px; align-items: center; padding: 28px; border: 1px solid #d9e5f2; border-radius: 22px; background: linear-gradient(120deg, #edf5ff, #f4fffc); }
.public-provider-band h3 { margin: 8px 0; color: #254064; font-size: 1.35rem; letter-spacing: -.04em; }
.public-provider-band p { margin: 0; color: #6b7e9a; font-size: .85rem; line-height: 1.6; }
.public-provider-list { display: flex; flex-wrap: wrap; justify-content: end; gap: 9px; }
.public-provider-pill { display: inline-flex; align-items: center; gap: 7px; padding: 10px 12px; border: 1px solid #d2e0ef; border-radius: 11px; background: #fff; color: #3c5578; font-size: .75rem; font-weight: 800; box-shadow: 0 5px 14px rgba(55, 99, 151, .07); }
.public-provider-pill i { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 7px; background: #ddf8ef; color: #188c7c; font-size: .63rem; font-style: normal; }
.public-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.public-step { position: relative; padding: 23px 20px; border: 1px solid #dce6f3; border-radius: 17px; background: #fff; }
.public-step::after { content: '→'; position: absolute; top: 21px; right: -15px; z-index: 1; display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid #d9e5f3; border-radius: 50%; background: #f5f8ff; color: #3f80d7; font-weight: 900; }
.public-step:last-child::after { display: none; }
.public-step-num { color: #218f84; font-size: .73rem; font-weight: 900; letter-spacing: .1em; }
.public-step h3 { margin: 15px 0 7px; color: #294267; font-size: .97rem; }
.public-step p { margin: 0; color: #71819b; font-size: .79rem; line-height: 1.55; }
.public-faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; }
.public-faq-grid details { padding: 17px 19px; border: 1px solid #dce6f3; border-radius: 13px; background: #fff; }
.public-faq-grid summary { cursor: pointer; color: #294267; font-size: .86rem; font-weight: 800; list-style: none; }
.public-faq-grid summary::-webkit-details-marker { display: none; }
.public-faq-grid summary::after { content: '+'; float: right; color: #218f84; font-size: 1.1rem; }
.public-faq-grid details[open] summary::after { content: '−'; }
.public-faq-grid details p { margin: 12px 0 0; color: #71819b; font-size: .81rem; line-height: 1.6; }
.public-cta { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-top: 88px; margin-bottom: 88px; padding: 31px 34px; border: 1px solid #cfe2ef; border-radius: 23px; background: linear-gradient(120deg, #dff9f0, #e6f1ff); }
.public-cta h2 { margin: 0 0 7px; color: #1f385b; font-size: 1.55rem; letter-spacing: -.04em; }
.public-cta p { margin: 0; color: #657995; font-size: .83rem; }
.public-cta .cp-button { flex: none; }
.public-info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.public-info-card { padding: 22px; border: 1px solid #dce6f3; border-radius: 16px; background: #fff; }
.public-info-card h3 { margin: 0 0 8px; color: #294267; }
.public-info-card p, .public-info-card li { color: #71819b; font-size: .84rem; line-height: 1.6; }
.public-info-card ul { margin: 10px 0 0; padding-left: 20px; }
.cp-provider-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.cp-provider-card { padding: 21px; border: 1px solid #263b65; border-radius: 16px; background: linear-gradient(145deg, #111d38, #0d152b); }
.cp-provider-card h3 { margin: 0 0 7px; }
.cp-provider-card p { margin: 0; color: #96a9cc; font-size: .8rem; line-height: 1.5; }
.cp-provider-card .cp-status { display: inline-block; margin-top: 15px; color: #70efc6; }

@media (max-width: 900px) {
  .public-hero { grid-template-columns: 1fr; gap: 35px; }
  .public-hero-wrap { padding-top: 55px; }
  .public-hero-visual { max-width: 620px; }
  .public-feature-grid, .public-steps { grid-template-columns: repeat(2, 1fr); }
  .public-provider-band { grid-template-columns: 1fr; }
  .public-provider-list { justify-content: start; }
  body.public-home-active .site-footer { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .public-hero-wrap, .public-section, .public-stat-strip, .public-cta { width: min(100% - 28px, 1180px); }
  .public-hero h1 { font-size: 3.05rem; }
  .public-hero-visual { min-height: 380px; padding: 20px; border-radius: 22px; }
  .public-stat-strip, .public-feature-grid, .public-steps, .public-faq-grid, .public-info-grid, .cp-provider-grid { grid-template-columns: 1fr; }
  .public-stat-strip article { padding: 16px 19px; }
  .public-section { padding-top: 65px; }
  .public-section-head { display: block; }
  .public-section-head p { margin-top: 13px; }
  .public-step::after { display: none; }
  .public-cta { display: block; margin-top: 65px; margin-bottom: 65px; padding: 24px; }
  .public-cta .cp-button { margin-top: 18px; }
  body.public-home-active .site-footer { grid-template-columns: 1fr 1fr; gap: 25px 18px; padding: 33px 14px 44px; }
}
