/* ==========================================================================
   Credo Legal | Redesign Prototype | Shared Styles
   ========================================================================== */

/* Tokens
   ========================================================================== */
:root {
  --credo-red: #c92028;
  --credo-red-dark: #a3181f;
  --text: #111418;
  --text-muted: #5b6470;
  --text-soft: #8590a0;
  --border: #e7eaee;
  --border-soft: #f1f3f5;
  --bg: #ffffff;
  --bg-soft: #fafbfc;
  --bg-sand: #f6f3ee;
  --bg-warn: #fff7ed;
  --border-warn: #fed7aa;
  --text-warn: #9a3412;
  --max-width: 1180px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(17, 20, 24, 0.04);
  --shadow-md: 0 4px 14px rgba(17, 20, 24, 0.06);
  --shadow-lg: 0 16px 40px rgba(17, 20, 24, 0.12);
  --t-fast: 150ms cubic-bezier(.4,0,.2,1);
  --t-base: 240ms cubic-bezier(.4,0,.2,1);
}

/* Reset + base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; font-weight: 600; }
p { margin: 0; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--credo-red); }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* Nav
   ========================================================================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: baseline; gap: 6px; font-weight: 700; letter-spacing: 0.02em; }
.brand-mark { color: var(--credo-red); font-size: 22px; font-weight: 700; }
.brand-sub { color: var(--text-muted); font-size: 13px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links > a, .nav-links > .services-dropdown > .services-toggle {
  font-size: 15px; color: var(--text-muted); transition: color var(--t-fast);
}
.nav-links > a:hover, .nav-links > .services-dropdown > .services-toggle:hover { color: var(--credo-red); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; background: var(--text); color: #fff !important;
  border-radius: 999px; font-size: 14px; font-weight: 500;
  transition: background var(--t-fast);
}
.nav-cta:hover { background: #000; }

/* Services dropdown */
.services-dropdown { position: relative; }
.services-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0; border: 0; background: none; cursor: pointer; font-family: inherit;
}
.services-toggle svg { width: 14px; height: 14px; transition: transform var(--t-base); }
.services-dropdown[data-open="true"] .services-toggle svg { transform: rotate(180deg); }
.services-menu {
  position: absolute; top: calc(100% + 14px); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 280px; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 8px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--t-base), visibility 0s linear var(--t-base), transform var(--t-base);
  z-index: 60;
}
.services-dropdown[data-open="true"] .services-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity var(--t-base), transform var(--t-base);
}
.services-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 14px; font-size: 14px; color: var(--text);
  border-radius: var(--radius-sm); transition: background var(--t-fast), color var(--t-fast);
}
.services-menu a:hover { background: var(--bg-sand); color: var(--credo-red); }
.services-menu a span.menu-meta { font-size: 12px; color: var(--text-soft); }
.services-menu-divider {
  height: 1px; background: var(--border-soft); margin: 6px 6px;
}

@media (max-width: 768px) {
  .nav-links > a:not(.nav-cta), .nav-links > .services-dropdown { display: none; }
}

/* Service breadcrumb
   ========================================================================== */
.service-breadcrumb {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 14px 0;
  font-size: 13px;
}
.breadcrumb-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--text-soft); }
.breadcrumb-row a { color: var(--text-muted); transition: color var(--t-fast); }
.breadcrumb-row a:hover { color: var(--credo-red); }
.breadcrumb-current { color: var(--text); font-weight: 500; }
.breadcrumb-sep { color: var(--text-soft); }

/* Hero
   ========================================================================== */
.hero {
  padding: 80px 0 96px;
  background:
    radial-gradient(ellipse at top right, rgba(201, 32, 40, 0.04), transparent 60%),
    var(--bg);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 80px; align-items: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; background: var(--bg-sand);
  border-radius: 999px; font-size: 13px; color: var(--text-muted);
  margin-bottom: 24px;
}
.hero-eyebrow::before { content: ''; width: 6px; height: 6px; background: var(--credo-red); border-radius: 50%; }
.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 24px;
}
.hero h1 em { color: var(--credo-red); font-style: normal; }
.hero-lede { font-size: 19px; line-height: 1.6; color: var(--text-muted); max-width: 540px; margin-bottom: 36px; }
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; background: var(--credo-red); color: #fff !important;
  border-radius: 999px; font-size: 16px; font-weight: 500;
  box-shadow: var(--shadow-md);
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  border: 0; cursor: pointer; font-family: inherit;
}
.btn-primary:hover { background: var(--credo-red-dark); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-primary svg { width: 18px; height: 18px; }
.hero-phone { display: flex; flex-direction: column; font-size: 14px; color: var(--text-muted); }
.hero-phone a { color: var(--text); font-weight: 600; font-size: 15px; }
.hero-phone a:hover { color: var(--credo-red); }
.hero-phone-meta { font-size: 12px; color: var(--text-soft); }

.hero-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow-md); position: relative;
}
.hero-card-eyebrow { font-size: 12px; color: var(--text-soft); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.hero-card-quote { font-size: 18px; line-height: 1.5; color: var(--text); margin-bottom: 24px; }
.hero-card-cite { display: flex; align-items: center; gap: 10px; padding-top: 20px; border-top: 1px solid var(--border-soft); font-size: 13px; color: var(--text-muted); }
.hero-card-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #d4d8e0, #aab1bc); display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 600; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border-soft); }
.hero-stat-num { font-size: 22px; font-weight: 700; color: var(--text); }
.hero-stat-label { font-size: 12px; color: var(--text-muted); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 56px 0 72px; }
}

/* Urgency callout (high-urgency service pages)
   ========================================================================== */
.urgency-callout {
  margin-top: 0; padding: 24px 28px;
  background: var(--bg-warn); border-top: 1px solid var(--border-warn);
  border-bottom: 1px solid var(--border-warn);
}
.urgency-callout-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start;
}
.urgency-callout-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(154, 52, 18, 0.12); color: var(--text-warn);
  display: grid; place-items: center; flex-shrink: 0;
}
.urgency-callout-icon svg { width: 20px; height: 20px; }
.urgency-callout h4 { font-size: 15px; color: var(--text-warn); margin-bottom: 10px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; }
.urgency-callout ol { margin: 0; padding-left: 20px; font-size: 15px; color: var(--text); line-height: 1.6; }
.urgency-callout ol li { margin-bottom: 6px; }
.urgency-callout ol li:last-child { margin-bottom: 0; }
.urgency-callout strong { color: var(--text-warn); }

/* Section primitives
   ========================================================================== */
section { padding: 80px 0; }
.section-eyebrow { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--credo-red); font-weight: 600; margin-bottom: 16px; }
.section-title { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.015em; margin-bottom: 16px; max-width: 720px; }
.section-lede { font-size: 18px; color: var(--text-muted); max-width: 680px; margin-bottom: 48px; line-height: 1.6; }

/* Problem / Solution / Outcome blocks (service pages)
   ========================================================================== */
.pso-block { padding: 80px 0; }
.pso-block.is-soft { background: var(--bg-soft); border-block: 1px solid var(--border-soft); }
.pso-block.is-sand { background: var(--bg-sand); border-block: 1px solid var(--border-soft); }
.pso-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.pso-block h2 { font-size: clamp(28px, 3.2vw, 36px); margin-bottom: 20px; max-width: 480px; }
.pso-prose p { font-size: 17px; line-height: 1.7; color: var(--text-muted); margin-bottom: 16px; }
.pso-prose p:last-child { margin-bottom: 0; }
.pso-prose p strong { color: var(--text); font-weight: 600; }
.pso-aside {
  padding: 28px; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.pso-aside.is-on-soft { background: var(--bg); }
.pso-aside-eyebrow { font-size: 12px; color: var(--text-soft); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
.pso-aside h4 { font-size: 18px; margin-bottom: 12px; }
.pso-aside-text { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.pso-stat { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; border-top: 1px solid var(--border-soft); }
.pso-stat:first-of-type { border-top: 0; padding-top: 0; }
.pso-stat-label { font-size: 12px; color: var(--text-soft); letter-spacing: 0.04em; text-transform: uppercase; }
.pso-stat-value { font-size: 22px; font-weight: 700; color: var(--text); line-height: 1.2; }
.pso-stat-meta { font-size: 13px; color: var(--text-muted); }
@media (max-width: 900px) { .pso-grid { grid-template-columns: 1fr; gap: 32px; } }

/* What we do (home), kept here so home + service pages share
   ========================================================================== */
.what-we-do { background: var(--bg-soft); border-block: 1px solid var(--border-soft); }
.what-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: start; }
.what-prose p { font-size: 18px; line-height: 1.7; color: var(--text-muted); margin-bottom: 18px; }
.what-prose p strong { color: var(--text); font-weight: 600; }
.what-list { display: flex; flex-direction: column; gap: 4px; }
.what-list-item {
  padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg); display: flex; gap: 16px; align-items: flex-start;
  transition: border-color var(--t-fast), transform var(--t-fast);
}
.what-list-item:hover { border-color: var(--credo-red); transform: translateX(4px); }
.what-list-num { width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; background: var(--bg-sand); color: var(--credo-red); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.what-list-text { font-size: 15px; line-height: 1.5; }
.what-list-text strong { display: block; color: var(--text); margin-bottom: 4px; font-weight: 600; }
.what-list-text span { color: var(--text-muted); }
@media (max-width: 900px) { .what-grid { grid-template-columns: 1fr; gap: 32px; } }

/* Who we help cards (home)
   ========================================================================== */
.who-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.who-card {
  display: block;
  padding: 28px; border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  transition: border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  position: relative;
}
.who-card:hover { border-color: var(--credo-red); transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--text); }
.who-card-icon { width: 36px; height: 36px; border-radius: 8px; background: var(--bg-sand); display: grid; place-items: center; margin-bottom: 16px; color: var(--credo-red); }
.who-card-icon svg { width: 18px; height: 18px; }
.who-card h3 { font-size: 17px; margin-bottom: 6px; }
.who-card p { font-size: 14px; color: var(--text-muted); line-height: 1.55; margin-bottom: 14px; }
.who-card-link {
  font-size: 13px; color: var(--credo-red); font-weight: 500;
  display: inline-flex; align-items: center; gap: 4px;
}
.who-card-link svg { width: 12px; height: 12px; transition: transform var(--t-fast); }
.who-card:hover .who-card-link svg { transform: translateX(3px); }
@media (max-width: 900px) { .who-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .who-grid { grid-template-columns: 1fr; } }

/* Process (home + service)
   ========================================================================== */
.how-we-work { background: var(--bg-soft); border-block: 1px solid var(--border-soft); }
.how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.how-step { position: relative; padding-top: 32px; }
.how-step::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--border); }
.how-step-num { font-size: 13px; color: var(--credo-red); font-weight: 600; letter-spacing: 0.1em; margin-bottom: 12px; }
.how-step h3 { font-size: 22px; margin-bottom: 12px; }
.how-step p { font-size: 15px; color: var(--text-muted); line-height: 1.6; }
@media (max-width: 900px) { .how-steps { grid-template-columns: 1fr; } }

/* Service pages: 4-step process (slightly tighter than home's 3-step)
   ========================================================================== */
.process-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.process-step { position: relative; padding-top: 32px; }
.process-step::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--border); }
.process-step .step-num { font-size: 12px; color: var(--credo-red); font-weight: 600; letter-spacing: 0.1em; margin-bottom: 8px; }
.process-step h3 { font-size: 17px; margin-bottom: 8px; }
.process-step p { font-size: 14px; color: var(--text-muted); line-height: 1.55; }
@media (max-width: 900px) { .process-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .process-4 { grid-template-columns: 1fr; } }

/* Rights cards
   ========================================================================== */
.rights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rights-grid.is-narrow { grid-template-columns: repeat(2, 1fr); max-width: 800px; }
.rights-card { padding: 28px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.rights-card:hover { border-color: var(--credo-red); box-shadow: var(--shadow-md); }
.rights-card-code { display: inline-block; padding: 3px 10px; background: var(--bg-sand); color: var(--credo-red); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; border-radius: 4px; margin-bottom: 14px; }
.rights-card h3 { font-size: 18px; margin-bottom: 8px; }
.rights-card p { font-size: 14px; color: var(--text-muted); line-height: 1.55; margin-bottom: 16px; }
.rights-card a { font-size: 14px; color: var(--credo-red); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.rights-card a:hover { color: var(--credo-red-dark); }
@media (max-width: 900px) { .rights-grid, .rights-grid.is-narrow { grid-template-columns: 1fr; } }

/* Testimonials (service pages)
   ========================================================================== */
.testimonials { background: var(--bg-soft); border-block: 1px solid var(--border-soft); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial { padding: 28px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); display: flex; flex-direction: column; }
.testimonial-rating { color: var(--credo-red); font-size: 14px; margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-quote { font-size: 15px; line-height: 1.6; color: var(--text); margin-bottom: 24px; flex: 1; }
.testimonial-cite { display: flex; gap: 12px; align-items: center; padding-top: 20px; border-top: 1px solid var(--border-soft); }
.testimonial-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #d4d8e0, #aab1bc); display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 600; flex-shrink: 0; }
.testimonial-name { font-size: 14px; font-weight: 600; line-height: 1.3; }
.testimonial-meta { font-size: 12px; color: var(--text-muted); }
@media (max-width: 900px) { .testimonials-grid { grid-template-columns: 1fr; } }

/* Comparison block
   ========================================================================== */
.comparison { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.comparison-row { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr; border-bottom: 1px solid var(--border); }
.comparison-row:last-child { border-bottom: 0; }
.comparison-row.is-header { background: var(--bg-soft); font-weight: 600; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; }
.comparison-row.is-header .comparison-cell.is-credo { color: var(--credo-red); }
.comparison-cell { padding: 18px 20px; border-right: 1px solid var(--border-soft); font-size: 14px; line-height: 1.5; color: var(--text-muted); }
.comparison-cell:last-child { border-right: 0; }
.comparison-cell.is-rowhead { font-weight: 500; background: var(--bg-soft); color: var(--text); font-size: 13px; }
.comparison-cell.is-credo { color: var(--text); }
.comparison-cell strong { color: var(--text); }
@media (max-width: 800px) {
  .comparison-row, .comparison-row.is-header { grid-template-columns: 1fr; }
  .comparison-cell { border-right: 0; border-bottom: 1px solid var(--border-soft); }
  .comparison-row:last-child .comparison-cell:last-child { border-bottom: 0; }
  .comparison-row.is-header { display: none; }
  .comparison-cell::before { display: block; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 4px; }
  .comparison-row > .comparison-cell:nth-child(2)::before { content: 'Credo Legal'; color: var(--credo-red); }
  .comparison-row > .comparison-cell:nth-child(3)::before { content: 'Settlement company'; }
  .comparison-row > .comparison-cell:nth-child(4)::before { content: 'Doing nothing'; }
}

/* Related services
   ========================================================================== */
.related-services { padding: 64px 0; background: var(--bg-sand); border-block: 1px solid var(--border-soft); }
.related-services .section-title { margin-bottom: 32px; max-width: 600px; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.related-card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color var(--t-fast), transform var(--t-fast); color: var(--text);
}
.related-card:hover { border-color: var(--credo-red); transform: translateY(-2px); color: var(--text); }
.related-card-text { font-size: 15px; font-weight: 500; }
.related-card-sub { font-size: 13px; color: var(--text-muted); margin-top: 2px; font-weight: 400; }
.related-card svg { color: var(--credo-red); width: 18px; height: 18px; flex-shrink: 0; }
@media (max-width: 700px) { .related-grid { grid-template-columns: 1fr; } }

/* Bottom CTA banner (service pages)
   ========================================================================== */
.cta-banner { padding: 80px 0; background: var(--text); color: #fff; text-align: center; }
.cta-banner h2 { font-size: clamp(28px, 3.6vw, 40px); color: #fff; margin-bottom: 16px; max-width: 640px; margin-inline: auto; }
.cta-banner p { font-size: 18px; color: #c8cdd6; max-width: 580px; margin: 0 auto 32px; line-height: 1.6; }
.cta-banner-actions { display: inline-flex; gap: 24px; align-items: center; flex-wrap: wrap; justify-content: center; }
.cta-banner .btn-primary { background: var(--credo-red); }
.cta-banner-meta { margin-top: 24px; font-size: 13px; color: #8a93a3; }
.cta-banner-meta a { color: #fff; }

/* About, home
   ========================================================================== */
.about { background: var(--bg-sand); border-block: 1px solid var(--border-soft); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about-prose p { font-size: 17px; line-height: 1.7; color: var(--text); margin-bottom: 18px; }
.about-prose p:last-child { color: var(--text-muted); margin-bottom: 0; }
.triplet { display: flex; flex-direction: column; gap: 16px; }
.triplet-line { padding: 24px; background: var(--bg); border-radius: var(--radius); border-left: 3px solid var(--credo-red); }
.triplet-line h4 { font-size: 18px; margin-bottom: 6px; color: var(--text); }
.triplet-line p { font-size: 14px; color: var(--text-muted); line-height: 1.55; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }

/* FAQ
   ========================================================================== */
.faq-list { display: flex; flex-direction: column; gap: 0; max-width: 800px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q { width: 100%; padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: left; font-size: 17px; font-weight: 500; color: var(--text); cursor: pointer; list-style: none; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q-icon { width: 22px; height: 22px; flex-shrink: 0; color: var(--text-muted); transition: transform var(--t-base), color var(--t-fast); }
.faq-item[open] .faq-q-icon { transform: rotate(180deg); color: var(--credo-red); }
.faq-a { padding: 0 0 22px; font-size: 15px; color: var(--text-muted); line-height: 1.6; max-width: 720px; }

/* Footer
   ========================================================================== */
footer { padding: 56px 0 32px; background: var(--text); color: #c8cdd6; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer-brand .brand-mark { color: #fff; }
.footer-brand .brand-sub { color: #8a93a3; }
.footer-tagline { margin-top: 16px; font-size: 14px; line-height: 1.6; color: #8a93a3; max-width: 320px; }
.footer-col h5 { color: #fff; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: #c8cdd6; font-size: 14px; transition: color var(--t-fast); }
.footer-col a:hover { color: #fff; }
.footer-meta { padding-top: 28px; border-top: 1px solid #2a2f37; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #6f7886; }
.footer-disclaimer { max-width: 720px; line-height: 1.55; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Floating chat bubble
   ========================================================================== */
.chat-bubble {
  position: fixed; bottom: 24px; right: 24px; z-index: 80;
  width: 60px; height: 60px; border-radius: 999px;
  background: var(--credo-red); color: #fff;
  display: grid; place-items: center;
  box-shadow: var(--shadow-lg);
  transition: transform var(--t-base), background var(--t-fast);
}
.chat-bubble:hover { transform: scale(1.05); background: var(--credo-red-dark); }
.chat-bubble svg { width: 24px; height: 24px; }
.chat-bubble[hidden] { display: none; }
.chat-bubble-pulse { position: absolute; inset: 0; border-radius: 999px; box-shadow: 0 0 0 0 rgba(201, 32, 40, 0.6); animation: pulse 2s ease-out infinite; }
@keyframes pulse { to { box-shadow: 0 0 0 16px rgba(201, 32, 40, 0); } }

/* Chat drawer
   ========================================================================== */
.chat-drawer-backdrop {
  position: fixed; inset: 0; background: rgba(17, 20, 24, 0.4);
  opacity: 0; visibility: hidden;
  transition: opacity var(--t-base), visibility 0s linear var(--t-base);
  z-index: 90;
}
.chat-drawer-backdrop[data-open="true"] { opacity: 1; visibility: visible; transition: opacity var(--t-base); }

.chat-drawer {
  position: fixed; top: 0; right: 0; height: 100vh;
  width: 420px; max-width: 100vw; background: var(--bg);
  box-shadow: -16px 0 40px rgba(17, 20, 24, 0.18);
  transform: translateX(100%); transition: transform var(--t-base);
  display: flex; flex-direction: column; z-index: 100;
}
.chat-drawer[data-open="true"] { transform: translateX(0); }

.chat-header { padding: 18px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 14px; }
.chat-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--credo-red); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 15px;
  position: relative; flex-shrink: 0;
  transition: background var(--t-base);
}
.chat-avatar.is-human { background: linear-gradient(135deg, #4a5568, #2d3748); }
.chat-avatar::after { content: ''; position: absolute; bottom: 1px; right: 1px; width: 10px; height: 10px; border-radius: 50%; background: #22c55e; border: 2px solid #fff; }
.chat-meta { flex: 1; min-width: 0; }
.chat-name { font-size: 15px; font-weight: 600; }
.chat-status { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.chat-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #22c55e; }
.chat-close { width: 36px; height: 36px; border-radius: 8px; color: var(--text-muted); display: grid; place-items: center; transition: background var(--t-fast), color var(--t-fast); }
.chat-close:hover { background: var(--bg-soft); color: var(--text); }

.chat-body { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 14px; scroll-behavior: smooth; }

.msg { display: flex; gap: 8px; max-width: 88%; animation: msg-in 0.32s cubic-bezier(.4,0,.2,1); }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.msg-bot { align-self: flex-start; }
.msg-user { align-self: flex-end; flex-direction: row-reverse; }
.msg-bubble { padding: 12px 16px; border-radius: 16px; font-size: 15px; line-height: 1.5; }
.msg-bot .msg-bubble { background: var(--bg-soft); color: var(--text); border-bottom-left-radius: 4px; }
.msg-user .msg-bubble { background: var(--credo-red); color: #fff; border-bottom-right-radius: 4px; }
.msg-system { align-self: center; max-width: 100%; padding: 8px 14px; background: var(--bg-sand); color: var(--text-muted); font-size: 12px; border-radius: 999px; animation: msg-in 0.32s cubic-bezier(.4,0,.2,1); }

.typing { display: inline-flex; gap: 4px; padding: 14px 16px; background: var(--bg-soft); border-radius: 16px; border-bottom-left-radius: 4px; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-soft); animation: typing 1.2s ease-in-out infinite; }
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-4px); opacity: 1; } }

.quick-replies { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; animation: msg-in 0.32s cubic-bezier(.4,0,.2,1); }
.quick-reply { padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg); color: var(--text); font-size: 14px; transition: all var(--t-fast); }
.quick-reply:hover { border-color: var(--credo-red); color: var(--credo-red); background: var(--bg-sand); }

.chat-footer { border-top: 1px solid var(--border); padding: 14px 16px 12px; }
.chat-input-row { display: flex; align-items: flex-end; gap: 10px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 14px; padding: 8px 8px 8px 14px; transition: border-color var(--t-fast); }
.chat-input-row:focus-within { border-color: var(--credo-red); background: var(--bg); }
.chat-input { flex: 1; border: 0; background: none; font: inherit; font-size: 15px; color: var(--text); resize: none; outline: none; padding: 8px 0; max-height: 120px; line-height: 1.4; }
.chat-send { width: 36px; height: 36px; border-radius: 10px; background: var(--credo-red); color: #fff; display: grid; place-items: center; flex-shrink: 0; transition: background var(--t-fast), opacity var(--t-fast); }
.chat-send:hover { background: var(--credo-red-dark); }
.chat-send:disabled { opacity: 0.4; cursor: not-allowed; }
.chat-send svg { width: 16px; height: 16px; }

.chat-takeover { margin-top: 10px; text-align: center; }
.chat-takeover button { font-size: 12px; color: var(--text-muted); text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; transition: color var(--t-fast); }
.chat-takeover button:hover { color: var(--credo-red); }
.chat-takeover[hidden] { display: none; }

@media (max-width: 480px) { .chat-drawer { width: 100vw; } }

/* ==========================================================================
   Statute pages (FDCPA / FCRA / TILA)
   ========================================================================== */
.statute-hero {
  padding: 64px 0 56px;
  background:
    radial-gradient(ellipse at top right, rgba(201, 32, 40, 0.05), transparent 60%),
    var(--bg);
}
.statute-hero-content { max-width: 760px; }
.statute-hero-eyebrow {
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--credo-red); font-weight: 600; margin-bottom: 12px;
}
.statute-hero-code {
  display: inline-block; padding: 5px 12px;
  background: var(--bg-sand); color: var(--credo-red);
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  border-radius: 6px; margin-bottom: 18px;
}
.statute-hero h1 {
  font-size: clamp(34px, 4.6vw, 50px); line-height: 1.1;
  letter-spacing: -0.02em; margin-bottom: 20px;
}
.statute-hero-lede { font-size: 19px; line-height: 1.6; color: var(--text-muted); margin-bottom: 32px; max-width: 680px; }
.statute-hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

/* Long-form prose section, single column */
.statute-section { padding: 56px 0; }
.statute-section.is-soft { background: var(--bg-soft); border-block: 1px solid var(--border-soft); }
.statute-section.is-sand { background: var(--bg-sand); border-block: 1px solid var(--border-soft); }
.statute-narrow { max-width: 760px; }
.statute-narrow h2 { font-size: clamp(24px, 2.8vw, 32px); margin-bottom: 16px; letter-spacing: -0.01em; }
.statute-narrow > p { font-size: 17px; line-height: 1.7; color: var(--text-muted); margin-bottom: 16px; }
.statute-narrow > p:last-child { margin-bottom: 0; }
.statute-narrow > p strong { color: var(--text); }

/* Rights with examples */
.statute-rights { display: flex; flex-direction: column; gap: 0; max-width: 800px; }
.statute-right { padding: 36px 0; border-top: 1px solid var(--border); }
.statute-right:last-child { border-bottom: 1px solid var(--border); }
.statute-right-cite {
  font-size: 12px; letter-spacing: 0.04em; color: var(--text-soft);
  font-weight: 500; margin-bottom: 10px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.statute-right h3 {
  font-size: 22px; line-height: 1.3; margin-bottom: 14px;
  letter-spacing: -0.01em; color: var(--text);
}
.statute-right-explanation {
  font-size: 16px; line-height: 1.7; color: var(--text-muted); margin-bottom: 20px;
}
.statute-right-explanation strong { color: var(--text); font-weight: 600; }
.statute-right-examples {
  background: var(--bg-soft);
  border-left: 3px solid var(--credo-red);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  display: flex; flex-direction: column; gap: 14px;
}
.statute-example { font-size: 15px; line-height: 1.6; }
.statute-example-label {
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--credo-red); font-weight: 600; margin-bottom: 4px;
}
.statute-example p { color: var(--text); margin: 0; }

/* Other federal laws cross-link grid */
.statute-other-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 800px; }
@media (max-width: 700px) { .statute-other-grid { grid-template-columns: 1fr; } }

/* Inline CTA mid-page */
.statute-inline-cta {
  margin-top: 28px; padding: 22px 24px;
  background: var(--bg-sand);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.statute-inline-cta-text { font-size: 15px; color: var(--text); line-height: 1.5; max-width: 480px; }
.statute-inline-cta-text strong { color: var(--credo-red); }
.statute-inline-cta .btn-primary { padding: 10px 20px; font-size: 14px; flex-shrink: 0; }

