/* AI Credit Care — simplified plain CSS (no build step, no design-canvas runtime) */
/* Fonts are loaded with one <link> in includes/header.php */

:root {
  --brand: #059669;
  --brand-hover: #047857;
  --brand-soft: #ECFDF5;
  --emerald-400: #34D399;
  --gold-400: #DCA838;
  --ink-950: #0A1424;
  --ink-900: #0C1830;
  --ink-700: #1C2E4E;
  --ink-300: #9DB0CC;
  --ink-200: #C7D4E6;
  --ink-100: #E6ECF5;

  --bg-page: #F7F9FC;
  --text-strong: #0A1424;
  --text-body: #334155;
  --text-muted: #64748B;
  --border-subtle: #E2E8F0;
  --border-default: #CBD5E1;

  --font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: ui-monospace, Consolas, monospace;

  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-2xl: 40px;

  --shadow-sm: 0 1px 3px rgba(10,20,36,.08), 0 1px 2px rgba(10,20,36,.04);
  --shadow-lg: 0 12px 28px rgba(10,20,36,.10), 0 4px 10px rgba(10,20,36,.05);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
:target { scroll-margin-top: 84px; }
body { margin: 0; background: var(--bg-page); font-family: var(--font-sans); color: var(--text-strong); }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }
input, textarea { font-family: var(--font-sans); }
input:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
img { max-width: 100%; height: auto; }

.page { min-height: 100vh; background: var(--bg-page); }
.container { max-width: 1180px; margin: 0 auto; padding: 0 40px; }

/* Header — same palette, font and 1120px content width as the pages */
.site-header {
  --h-brand: #0f8a4f;
  --h-brand-2: #12a05c;
  --h-brand-hover: #0a6b3c;
  --h-brand-active: #0f8a4f;
  --h-brand-soft: #eef7f2;
  --h-ink: #0f1f2e;
  --h-ink-2: #0f1f2e;
  --h-body: #3b4a55;
  --h-muted: #5b6a73;
  --h-muted-2: #7b8891;
  --h-border: #e3e9e6;
  --h-border-soft: #f1f4f3;
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--h-border);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.site-header-inner {
  max-width: 1168px; margin: 0 auto; min-height: 68px;
  /* logo | nav | actions: equal side columns keep the nav in the true centre of the header */
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 12px 24px;
}

.brand { display: inline-flex; align-items: center; justify-self: start; }
.brand-logo { height: 36px; width: 150px; max-width: none; object-fit: contain; display: block; flex-shrink: 0; }

.site-nav { grid-column: 2; display: flex; align-items: center; gap: 2px; }
.nav-link {
  position: relative; padding: 9px 12px; border-radius: 8px;
  font-size: 14px; font-weight: 600; color: var(--h-body); white-space: nowrap;
  transition: color .15s ease, background-color .15s ease;
}
.nav-link:hover { color: var(--h-brand-active); }
.nav-link.active { color: var(--h-brand-active); }
.nav-link.active::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px;
  height: 2px; border-radius: 2px; background: var(--h-brand-active);
}

.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 12px; border-radius: 8px; border: none; background: transparent; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 600; color: var(--h-body); white-space: nowrap;
  transition: color .15s ease, background-color .15s ease;
}
.nav-dropdown-toggle:hover, .nav-dropdown-toggle.is-open { background: var(--h-brand-soft); color: var(--h-ink); }
.nav-dropdown-toggle.active { color: var(--h-brand-active); }
.nav-dropdown-toggle .chevron { transition: transform .2s ease; flex-shrink: 0; transform: rotate(180deg); }
.nav-dropdown-toggle.is-open .chevron { transform: rotate(0deg); }

.mega-menu {
  display: none; position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  width: max-content; max-width: min(760px, 90vw); flex-wrap: wrap; gap: 26px;
  padding: 20px; background: #fff; border: 1px solid var(--h-border); border-radius: 14px; z-index: 50;
  box-shadow: 0 24px 54px -18px rgba(15,31,46,.20), 0 2px 8px rgba(15,31,46,.05);
}
.mega-menu.is-open { display: flex; }
.mega-col { display: flex; flex-direction: column; gap: 2px; }
.mega-links { flex: 1 1 300px; min-width: 260px; }
.mega-featured { flex: 1 1 320px; min-width: 280px; gap: 16px; padding-left: 22px; border-left: 1px solid var(--h-border-soft); }

.mega-item { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 10px; }
.mega-item:hover { background: var(--h-border-soft); }
.mega-item-featured { background: var(--h-brand-soft); }
.mega-item-featured:hover { background: var(--h-brand-soft); }
.mega-item-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.mega-item-title { font-size: 14.5px; font-weight: 700; color: var(--h-ink); }
.mega-item-sub { font-size: 12px; color: var(--h-muted); }
.mega-item-arrow { font-size: 15px; color: var(--h-muted); }

/* Call-to-action card pinned to the bottom of the links column */
.mega-cta { margin-top: auto; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; background: radial-gradient(90% 120% at 90% 100%, #13704f 0%, rgba(19,112,79,0) 70%), linear-gradient(135deg, #0b4a37, #0a3d2e); transition: transform .15s ease, box-shadow .15s ease; }
.mega-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(11,74,55,.55); }
.mega-cta-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--h-brand-2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mega-cta-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.mega-cta-title { font-size: 14.5px; font-weight: 700; color: #fff; }
.mega-cta-sub { font-size: 12px; color: #cfe6dc; }
.mega-cta-arrow { width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--h-ink); font-size: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

.mega-eyebrow { font-size: 10.5px; font-weight: 700; letter-spacing: .18em; color: var(--h-brand); text-transform: uppercase; margin-bottom: 4px; }
.mega-feature-card { display: flex; gap: 14px; padding: 12px; border-radius: 12px; background: var(--h-brand-soft); }
.mega-feature-thumb { flex: 0 0 100px; height: 76px; border-radius: 8px; overflow: hidden; background: #dfe9e4; }
.mega-feature-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mega-feature-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.mega-feature-title { font-size: 14.5px; font-weight: 700; color: var(--h-ink); line-height: 1.3; }
.mega-feature-sub { font-size: 12.5px; color: var(--h-muted); line-height: 1.4; }
.mega-feature-link { font-size: 12.5px; font-weight: 700; color: var(--h-brand-active); margin-top: 2px; }
.mega-divider { height: 1px; background: var(--h-border-soft); }
.mega-popular-item { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--h-ink-2); }
.mega-popular-item:hover { background: var(--h-border-soft); }
.mega-popular-item span:not(.mega-popular-arrow) { flex: 1; min-width: 0; }
.mega-popular-arrow { font-size: 14px; color: var(--h-muted); }

.header-actions { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 14px; }

.btn-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 20px; border-radius: 7px; background: var(--h-brand);
  font-size: 13.5px; font-weight: 700; color: #fff; white-space: nowrap;
  box-shadow: 0 6px 16px rgba(15,138,79,.22); transition: background .15s ease;
}
.btn-cta:hover { background: var(--h-brand-hover); color: #fff; }
.btn-cta .cta-text-short { display: none; }
.btn-cta .cta-arrow { font-size: 14px; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 42px; height: 42px; border-radius: 8px; border: 1px solid var(--h-border);
  background: #fff; cursor: pointer; flex-shrink: 0; padding: 0;
}
.nav-toggle span { width: 18px; height: 2px; border-radius: 2px; background: var(--h-ink); transition: transform .2s ease, opacity .2s ease; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; flex-direction: column; gap: 2px;
  max-width: 1168px; margin: 0 auto; padding: 0 24px 16px;
}
.mobile-menu.is-open { display: flex; }
.mobile-link, .mobile-resources-toggle, .mobile-sublink { border-radius: 8px; }
.mobile-link { padding: 13px 12px; font-size: 15px; font-weight: 600; color: var(--h-ink-2); }
.mobile-link:hover { background: var(--h-border-soft); }
.mobile-link.active { color: var(--h-brand-active); background: var(--h-brand-soft); font-weight: 700; }
.mobile-resources-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; padding: 14px 12px; border: none; background: transparent; cursor: pointer;
  font-family: inherit; font-size: 15px; font-weight: 600; color: var(--h-ink-2); text-align: left;
}
.mobile-resources-toggle.active { color: var(--h-brand-active); }
.mobile-resources-toggle .chevron { transition: transform .2s ease; transform: rotate(180deg); flex-shrink: 0; }
.mobile-resources-toggle.is-open .chevron { transform: rotate(0deg); }
.mobile-resources-list {
  display: none; flex-direction: column; gap: 1px; margin: 2px 0 6px;
  padding-left: 12px; border-left: 2px solid var(--h-brand-soft);
}
.mobile-resources-list.is-open { display: flex; }
.mobile-sublink { padding: 11px 12px; font-size: 14px; font-weight: 600; color: var(--h-body); }
.mobile-sublink:hover { background: var(--h-border-soft); }
.mobile-divider { height: 1px; background: var(--h-border); margin: 8px 0; }
.mobile-cta { justify-content: center; margin: 8px 0 0; padding: 14px 20px; font-size: 14.5px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 20px; border-radius: var(--radius-md);
  font-weight: 700; font-size: 14.5px; cursor: pointer; border: none;
  background: var(--brand); color: #fff; white-space: nowrap;
}
.btn:hover { background: var(--brand-hover); color: #fff; }
.btn-sm { height: 36px; padding: 0 16px; font-size: 13.5px; }
.btn-lg { height: 54px; padding: 0 26px; font-size: 15.5px; }
.btn-secondary { background: #fff; color: var(--text-strong); border: 1px solid var(--border-default); }
.btn-secondary:hover { background: #F7F9FC; color: var(--text-strong); }
.btn-full { width: 100%; }

/* Card */
.card { background: #fff; border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm); }
.card-lg { padding: 32px; }
.card-elevated { box-shadow: var(--shadow-lg); }
.card-dark { background: var(--ink-950); color: #fff; }

/* Badge */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.badge-brand { background: var(--brand); color: #fff; }
.badge-gold { background: var(--gold-400); color: #fff; }

/* Footer — same 1120px content width as the header and the pages */
.site-footer {
  --f-text: #e6f2ec; --f-soft: #d3e2db; --f-muted: #b9cdc4; --f-accent: #3ee6a0;
  --f-line: rgba(62,230,160,.18); --f-line-soft: rgba(62,230,160,.12);
  background: radial-gradient(120% 80% at 50% 0%, #06301f 0%, #03231a 60%);
  color: var(--f-text); padding-top: 32px;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased;
}
.site-footer a { color: var(--f-text); text-decoration: none; transition: color .15s ease; }
.site-footer a:hover { color: var(--f-accent); }
.footer-wrap { box-sizing: border-box; max-width: 1168px; margin: 0 auto; padding: 0 24px; }

.footer-trust {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px 0; padding: 24px 8px;
  border: 1px solid var(--f-line-soft); border-radius: 14px; background: rgba(12,64,46,.35);
}
.footer-trust-item { display: flex; align-items: center; gap: 14px; padding: 0 20px; }
.footer-trust-item + .footer-trust-item { border-left: 1px solid var(--f-line); }
.footer-trust-icon {
  flex: none; width: 48px; height: 48px; border-radius: 12px; background: rgba(20,90,64,.55);
  border: 1px solid rgba(62,230,160,.15); display: flex; align-items: center; justify-content: center; color: var(--f-accent);
}
.footer-trust-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.footer-trust-text b { font-size: 15px; font-weight: 700; line-height: 1.3; color: #fff; }
.footer-trust-text span { font-size: 13px; line-height: 1.4; color: var(--f-muted); }

.footer-links { display: grid; grid-template-columns: minmax(0,1.6fr) repeat(4, minmax(0,1fr)); gap: 40px 0; padding: 56px 0 48px; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding-right: 40px; }
.footer-logo { display: flex; align-items: center; gap: 12px; }
.footer-logo-name { font-size: 22px; font-weight: 700; color: #fff; letter-spacing: -0.01em; }
.site-footer .footer-logo:hover .footer-logo-name { color: #fff; }
.footer-desc { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--f-soft); max-width: 320px; text-wrap: pretty; }
.footer-social { display: flex; gap: 10px; }
.site-footer .footer-social a {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.14);
  display: flex; align-items: center; justify-content: center; color: #fff; transition: border-color .15s ease, color .15s ease;
}
.site-footer .footer-social a:hover { border-color: var(--f-accent); color: var(--f-accent); }
.footer-social-in { font-size: 15px; font-weight: 800; letter-spacing: -0.02em; }
.footer-col { display: flex; flex-direction: column; gap: 22px; padding-left: 40px; border-left: 1px solid var(--f-line); }
.footer-col-title { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--f-accent); }
.footer-col nav { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; font-size: 15px; }
.footer-col--legal nav { gap: 14px; }

.footer-disclosure { margin: 0; padding: 0 0 28px; font-size: 12.5px; line-height: 1.65; color: var(--f-muted); }
.footer-disclosure--note { padding-bottom: 10px; }
.footer-bottom { border-top: 1px solid var(--f-line-soft); }
.footer-bottom-inner { padding-top: 20px; padding-bottom: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-copy { flex: 1 1 auto; font-size: 14px; color: var(--f-soft); white-space: nowrap; }
.footer-bottom-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 0; font-size: 14px; white-space: nowrap; }
.footer-bottom-links > a { padding: 0 20px; }
.footer-bottom-sep { width: 1px; height: 20px; background: rgba(62,230,160,.25); }
.footer-bottom-sep--soft { background: var(--f-line-soft); }
.footer-bottom-links > .footer-back-top { display: flex; align-items: center; gap: 14px; padding: 0 0 0 20px; }
.footer-back-top-arrow {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(62,230,160,.35);
  display: flex; align-items: center; justify-content: center; color: var(--f-accent); flex: none;
}

@media (max-width: 1079px) {
  .footer-trust { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-trust-item + .footer-trust-item { border-left: 0; }
  .footer-links { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 40px 24px; }
  .footer-brand { grid-column: 1 / -1; padding-right: 0; }
  .footer-col { padding-left: 0; border-left: 0; }
}
@media (max-width: 699px) {
  .footer-trust { grid-template-columns: minmax(0,1fr); }
  .footer-links { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 559px) {
  .footer-wrap { padding: 0 20px; }
  .footer-trust-item { padding: 0 16px; }
  .footer-links { padding: 40px 0 36px; }
  .footer-copy { white-space: normal; }
  .footer-bottom-links { gap: 14px 24px; }
  .footer-bottom-links > a, .footer-bottom-links > .footer-back-top { padding: 0; }
  .footer-bottom-sep { display: none; }
}

/* Sections / helpers */
section { padding: 0 40px 88px; }
.section-top { padding-top: 72px; }
h1, h2, h3 { font-family: var(--font-display); }
h1 { font-size: 44px; letter-spacing: -0.028em; margin: 0; }
h2 { font-size: 32px; letter-spacing: -0.028em; margin: 0 0 8px; }
.text-center { text-align: center; }
.narrow { max-width: 800px; margin: 0 auto; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.check-list { display: flex; flex-direction: column; gap: 11px; margin-top: 22px; }
.check-list div { display: flex; gap: 10px; font-size: 14.5px; color: var(--text-body); }
.check-list span.tick { color: var(--brand); }

/* Forms */
.form-field {
  height: 46px; border: 1px solid var(--border-default); border-radius: var(--radius-md);
  padding: 0 14px; font-size: 14.5px; width: 100%;
}
textarea.form-field { height: auto; padding: 12px 14px; resize: vertical; }

.alert-success { background: var(--brand-soft); border: 1px solid var(--brand); color: var(--brand-hover); border-radius: var(--radius-md); padding: 16px; text-align: center; }

.alert-error { background: #FDECEC; border: 1px solid #E5484D; color: #B3261E; border-radius: var(--radius-md); padding: 16px; text-align: center; }

/* Header responsive breakpoints: full nav from 1080px, hamburger menu below */
@media (max-width: 1079px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
}
@media (min-width: 1080px) {
  .mobile-menu { display: none !important; }
}
@media (max-width: 640px) {
  .site-header-inner { padding: 10px 20px; min-height: 60px; }
  .mobile-menu { padding: 0 20px 16px; }
}
@media (max-width: 699px) {
  .btn-cta .cta-text-full { display: none; }
  .btn-cta .cta-text-short { display: inline; }
}
@media (max-width: 419px) {
  .header-actions > .btn-cta { display: none; }
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  h1 { font-size: 32px; }
  section { padding: 0 20px 60px; }
}

/* Compliance labels on product illustrations, the dispute safety line, and [TODO] markers
   for content that still has to be supplied. The doubled class names raise specificity above the
   per-page paragraph rules (e.g. ".cs-hero__text > p"), so the labels look the same on every page. */
.page p.demo-note.demo-note { margin: 12px 0 0; font-size: 11.5px; line-height: 1.5; color: #5b6a73; max-width: none; }
.page p.demo-note.demo-note--top { margin: 0 0 10px; }
.hiw-page .hero__visual p.demo-note.demo-note { max-width: 62%; }
.page .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
/* Text links inside paragraphs */
.page a.inline-link { text-decoration: underline; text-underline-offset: 2px; }
/* Honeypot field of the contact forms: off-screen for people, still in the form for bots */
.form-extra { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.page .demo-tag { margin-left: auto; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #5b6a73; background: #f1f4f3; border-radius: 99px; padding: 4px 10px; white-space: nowrap; }
.page p.safety-note.safety-note { margin: 14px 0 0; max-width: none; font-size: 12.5px; line-height: 1.55; color: #3b4a55; background: #eef7f2; border: 1px solid #d7ebe0; border-radius: 8px; padding: 10px 14px; }
.todo { background: #fff3cd; color: #7a5200; border: 1px dashed #d9a400; border-radius: 4px; padding: 1px 6px; font-weight: 600; }