/* Fix My Credit — Stitch transplant (2026-11-21): "Judicial Advocate" design
 * system from Cameron's Stitch mockup (Site 4, fixmycredit.site):
 * Clean Porcelain #ffffff · Deep Judicial Navy #0f172a · Royal Cobalt #1d4ed8,
 * Newsreader serif display + Inter body.
 * Scoped to body.stitch-home (the homepage) so tools/, templates/, blog/
 * keep their existing styles.css theme untouched.
 * Loaded AFTER styles.css in index.html only. */

body.stitch-home {
  --bg: #f8fafc;
  --bg-soft: #ffffff;
  --card: #ffffff;
  --card-border: #e2e8f0;
  --text: #0f172a;
  --text-dim: #475569;
  --blue: #1d4ed8;
  --cyan: #1d4ed8;
  --gold: #d97706;
  --gold-soft: rgba(217, 119, 6, 0.12);
  --grad: linear-gradient(120deg, #1d4ed8, #1d4ed8);
  --radius: 14px;
  background: #f8fafc;
  color: #0f172a;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body.stitch-home h1,
body.stitch-home h2,
body.stitch-home h3,
body.stitch-home .logo {
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  letter-spacing: -0.01em;
}

body.stitch-home h2 {
  color: #0f172a;
  text-align: left;
  font-weight: 700;
}

body.stitch-home .section {
  padding: 56px 0;
}

body.stitch-home .section-sub {
  text-align: left;
  margin: 0 0 32px;
  color: #475569;
  max-width: 680px;
}

/* Section header rule (mockup: heading over a thin slate rule) */
body.stitch-home .section .wrap > h2 {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 12px;
  margin-bottom: 14px;
}

/* ---------- Header ---------- */
body.stitch-home .site-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e8f0;
}

body.stitch-home .header-inner {
  flex-wrap: wrap;
  row-gap: 8px;
}

body.stitch-home .logo {
  color: #0f172a;
  gap: 10px;
}

body.stitch-home .logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #0f172a;
  color: #ffffff;
  font-size: 1rem;
  flex: none;
}

body.stitch-home .logo-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
}

body.stitch-home .logo-name {
  font-weight: 700;
  font-size: 1.02rem;
  white-space: nowrap;
}

body.stitch-home .logo-sub {
  font-family: "Inter", sans-serif;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  white-space: nowrap;
}

body.stitch-home .header-nav {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

body.stitch-home .header-nav a {
  color: #334155;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

body.stitch-home .header-nav a:hover {
  color: #1d4ed8;
}

body.stitch-home .header-phone {
  color: #0f172a;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  border: 1px solid #cbd5e1;
  padding: 7px 12px;
  border-radius: 8px;
  white-space: nowrap;
}

body.stitch-home .header-phone:hover {
  background: #f1f5f9;
}

/* ---------- Buttons ---------- */
body.stitch-home .btn {
  border-radius: 9px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

body.stitch-home .btn-primary {
  background: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(29, 78, 216, 0.22);
}

body.stitch-home .btn-primary:hover {
  background: #1e40af;
}

body.stitch-home .btn-ghost {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
}

body.stitch-home .btn-ghost:hover {
  background: #f1f5f9;
}

/* ---------- Language dropdown (click-to-open; toggle form law) ---------- */
.lang-dropdown {
  position: relative;
  display: inline-block;
  margin-left: 10px;
  vertical-align: middle;
}

.lang-toggle {
  font: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}

.lang-toggle:hover {
  background: #f1f5f9;
}

.lang-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.7;
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 80;
  display: flex;
  flex-direction: column;
  min-width: 148px;
  max-height: 264px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
  padding: 6px;
}

.lang-menu[hidden] {
  display: none;
}

.lang-menu .lang-btn {
  font: inherit;
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #0f172a;
  opacity: 1;
  cursor: pointer;
  text-decoration: none;
}

.lang-menu .lang-btn:hover {
  background: #eff6ff;
}

.lang-menu .lang-btn.active {
  background: #1d4ed8;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

/* ---------- Hero ---------- */
body.stitch-home .hero {
  background: #f8fafc;
  padding: 56px 0 40px;
}

body.stitch-home .eyebrow {
  display: inline-flex;
  align-items: center;
  background: #fef3c7;
  border: 1px solid #fde68a;
  color: #92400e;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}

body.stitch-home .hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  font-weight: 700;
  color: #0f172a;
  max-width: 820px;
}

body.stitch-home .grad {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: #1d4ed8;
  color: #1d4ed8;
  font-style: italic;
}

body.stitch-home .subhead {
  color: #475569;
  font-size: 1.08rem;
  max-width: 720px;
}

/* ---------- Disclosure strip (amber notice, under hero) ---------- */
body.stitch-home .disclosure-strip {
  background: #fffbeb;
  border-top: 1px solid #fde68a;
  border-bottom: 1px solid #fde68a;
  color: #78350f;
  padding: 18px 0;
}

body.stitch-home .disclosure-strip p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ---------- Steps ---------- */
body.stitch-home .steps {
  gap: 16px;
}

body.stitch-home .step-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

body.stitch-home .step-num {
  background: #eff6ff;
  color: #1d4ed8;
  font-family: ui-monospace, "IBM Plex Mono", monospace;
  font-weight: 700;
  border-radius: 8px;
}

body.stitch-home .step-card h3 {
  color: #0f172a;
}

body.stitch-home .step-card p {
  color: #475569;
}

/* ---------- Benefits / rules ---------- */
body.stitch-home .benefits-grid {
  gap: 14px;
}

body.stitch-home .benefit-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  box-shadow: none;
}

body.stitch-home .benefit-card h3 {
  color: #0f172a;
  font-family: "Inter", sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0;
}

body.stitch-home .benefit-card p {
  color: #475569;
}

/* ---------- Compare / the pick ---------- */
body.stitch-home .compare-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

body.stitch-home #compare .compare-card {
  border: 2px solid #0f172a;
  overflow: hidden;
  padding: 0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

body.stitch-home .compare-bar {
  background: #0f172a;
  color: #ffffff;
  font-family: ui-monospace, "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 20px;
}

body.stitch-home .compare-body {
  padding: 26px;
}

body.stitch-home .compare-card h3 {
  font-size: 1.9rem;
  color: #0f172a;
}

body.stitch-home .compare-tag {
  color: #1d4ed8;
  font-weight: 700;
}

body.stitch-home .compare-rows dt {
  color: #0f172a;
  font-weight: 700;
}

body.stitch-home .compare-rows dd {
  color: #475569;
}

body.stitch-home .compare-note {
  color: #64748b;
}

/* ---------- Education strip ---------- */
body.stitch-home .edu-strip {
  background: #eff6ff;
  border-top: 1px solid #dbeafe;
  border-bottom: 1px solid #dbeafe;
}

body.stitch-home .edu-strip h2,
body.stitch-home .edu-strip .section-sub {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

body.stitch-home .edu-strip .wrap > h2 {
  border-bottom: none;
}

/* ---------- Letter-builder storefront ---------- */
body.stitch-home .store-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

body.stitch-home .store-grid .store-card:nth-child(2) {
  border: 2px solid #1d4ed8;
  box-shadow: 0 10px 30px rgba(29, 78, 216, 0.12);
}

body.stitch-home .store-price {
  font-family: "Newsreader", Georgia, serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #0f172a;
}

body.stitch-home .store-price span {
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #64748b;
}

body.stitch-home .store-points {
  color: #475569;
}

body.stitch-home .store-points li::marker {
  color: #1d4ed8;
}

/* ---------- Free tools: dark enclosed diagnostic panel (mockup signature) ---------- */
body.stitch-home #free-tools {
  padding: 40px 0 64px;
}

body.stitch-home #free-tools .wrap {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 20px;
  padding: 30px 26px 34px;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.25);
}

body.stitch-home #free-tools h2 {
  color: #ffffff;
  border-bottom: 1px solid #1e293b;
}

body.stitch-home #free-tools .section-sub {
  color: #94a3b8;
}

body.stitch-home .tools-mini-grid {
  gap: 10px;
}

body.stitch-home .tool-tile {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid #334155;
  border-radius: 10px;
  color: #f1f5f9;
  text-align: left;
}

body.stitch-home .tool-tile:hover {
  background: #1e293b;
  border-color: #475569;
}

body.stitch-home .tool-tile-name {
  color: #ffffff;
  font-weight: 600;
}

body.stitch-home .tool-tile-label {
  color: #94a3b8;
  font-family: ui-monospace, "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- FAQ ---------- */
body.stitch-home .faq-list details {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

body.stitch-home .faq-list summary {
  color: #0f172a;
  font-weight: 700;
}

body.stitch-home .faq-list details p {
  color: #475569;
}

/* ---------- Final CTA ---------- */
body.stitch-home .final-cta {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
}

body.stitch-home .final-cta h2,
body.stitch-home .final-cta .section-sub {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

body.stitch-home .final-cta .wrap > h2 {
  border-bottom: none;
}

/* ---------- Footer ---------- */
body.stitch-home .site-footer {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  color: #475569;
}

body.stitch-home .footer-brand {
  color: #0f172a;
  font-family: "Newsreader", Georgia, serif;
}

body.stitch-home .footer-phone a {
  color: #1d4ed8;
}

body.stitch-home .footer-disclosure {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

body.stitch-home .footer-disclosure h3 {
  color: #0f172a;
}

body.stitch-home a {
  color: #1d4ed8;
}

@media (max-width: 640px) {
  body.stitch-home .header-phone {
    display: none;
  }
  body.stitch-home .section {
    padding: 44px 0;
  }
  body.stitch-home #free-tools .wrap {
    padding: 22px 16px 26px;
    border-radius: 16px;
  }
}
