/* Credit Repair by Aidcos — cinematic dark marketing site.
 * Mobile-first. 375px safety: max-width everywhere, no overflow.
 */

:root {
  --bg: #0a0e14;
  --bg-soft: #101722;
  --card: #141c2a;
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #f4f6fb;
  --text-dim: #b7c0d4;
  --blue: #2563eb;
  --cyan: #22d3ee;
  --gold: #f5c453;
  --gold-soft: rgba(245, 196, 83, 0.14);
  --grad: linear-gradient(120deg, #1e3a8a 0%, #2563eb 45%, #22d3ee 100%);
  --radius: 18px;
  --tap: 48px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  font-size: 17px;
  overflow-x: clip;
  max-width: 100%;
  -webkit-text-size-adjust: 100%;
}

img,
video,
svg {
  max-width: 100%;
  height: auto;
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-top: 0;
}

h2 {
  font-size: clamp(1.7rem, 5.5vw, 2.6rem);
  text-align: center;
}

p {
  margin-top: 0;
}

a {
  color: var(--cyan);
  word-break: break-word;
}

.section {
  padding: 64px 0;
}

.section-sub {
  text-align: center;
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto 40px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 20, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  white-space: nowrap;
}

.logo-mark {
  color: var(--gold);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.45);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-color: var(--card-border);
}

.btn-large {
  width: 100%;
  max-width: 420px;
  font-size: 1.1rem;
}

.btn-small {
  min-height: 48px;
  padding: 12px 18px;
  font-size: 0.9rem;
  background: var(--grad);
  color: #fff;
}

/* Hero */
.hero {
  padding: 84px 0 72px;
  background:
    radial-gradient(600px 320px at 85% 10%, rgba(37, 99, 235, 0.28), transparent 70%),
    radial-gradient(520px 300px at 10% 85%, rgba(34, 211, 238, 0.12), transparent 70%),
    var(--bg);
}

.eyebrow {
  display: inline-block;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid rgba(245, 196, 83, 0.35);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.4rem, 10vw, 4.4rem);
  margin-bottom: 20px;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.subhead {
  color: var(--text-dim);
  font-size: clamp(1.05rem, 4vw, 1.25rem);
  max-width: 620px;
  margin-bottom: 32px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.cta-row.center {
  justify-content: center;
  margin-bottom: 56px;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.step-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.step-card p {
  color: var(--text-dim);
  margin: 0;
}

/* Benefits */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.benefit-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.benefit-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.benefit-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.benefit-card p {
  color: var(--text-dim);
  margin: 0;
}

/* FAQ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

details {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 0;
}

summary {
  padding: 20px 22px;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  min-height: var(--tap);
  display: flex;
  align-items: center;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  margin-left: auto;
  color: var(--gold);
  font-size: 1.4rem;
  font-weight: 400;
  flex-shrink: 0;
  padding-left: 12px;
}

details[open] summary::after {
  content: "–";
}

details p {
  padding: 0 22px 22px;
  color: var(--text-dim);
  margin: 0;
}

/* Final CTA + form */
.final-cta {
  background:
    radial-gradient(700px 340px at 50% 0%, rgba(37, 99, 235, 0.22), transparent 70%),
    var(--bg-soft);
}

.lead-form-wrap {
  max-width: 520px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px 24px;
}

.lead-form-wrap h3 {
  font-size: 1.4rem;
  text-align: center;
  margin-bottom: 8px;
}

.form-banner {
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 20px;
}

.form-banner strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.form-banner p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.form-banner .btn {
  margin-top: 12px;
}

.form-banner.ok {
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.4);
}

.form-banner.ok strong {
  color: var(--cyan);
}

.form-banner.err {
  background: rgba(245, 196, 83, 0.1);
  border: 1px solid rgba(245, 196, 83, 0.45);
}

.form-banner.err strong {
  color: var(--gold);
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}

.field input {
  width: 100%;
  max-width: 100%;
  min-height: var(--tap);
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
}

.field input:focus {
  outline: 2px solid var(--cyan);
  outline-offset: 1px;
  border-color: var(--cyan);
}

.field input[aria-invalid="true"] {
  border-color: var(--gold);
  outline-color: var(--gold);
}

.field-error {
  color: var(--gold);
  font-size: 0.9rem;
  margin: 6px 0 0;
}

.form-note {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  margin: 16px 0 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--card-border);
  padding: 48px 0 56px;
  text-align: center;
}

.footer-brand {
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.footer-tag {
  color: var(--text-dim);
  margin-bottom: 12px;
}

.footer-phone {
  margin-bottom: 16px;
}

.footer-phone a {
  color: var(--cyan);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  display: inline-block;
  min-height: var(--tap);
  padding: 12px 16px;
}

.footer-copy {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin: 0;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ------------------------------------------------------------------ */
/* Language toggle (2026-10-18): same 5-language switch as the 8 lead  */
/* sites. Rendered by app.js into the header after the CTA link.      */
/* ------------------------------------------------------------------ */
.lang-switch{display:inline-flex;align-items:center;gap:1px;vertical-align:middle;margin-left:10px}
.lang-btn{font:inherit;font-size:.72em;letter-spacing:.02em;color:inherit;opacity:.55;background:none;border:none;padding:2px 5px;cursor:pointer;transition:opacity .15s}
.lang-btn:hover{opacity:.9}
.lang-btn.active{opacity:1;font-weight:700;text-decoration:underline;text-underline-offset:2px}
.lang-switch.translating{opacity:.5;pointer-events:none}

/* No-JS fallback */
.no-js {
  max-width: 640px;
  margin: 80px auto;
  padding: 0 20px;
  text-align: center;
}

/* Tablets and up */
@media (min-width: 700px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .btn-large {
    width: auto;
    min-width: 340px;
  }
}

@media (min-width: 1024px) {
  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero {
    padding: 120px 0 100px;
  }
}


/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.price-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 2rem; text-align: center; }
.price-card.highlight { border-color: var(--accent); box-shadow: 0 0 24px rgba(56,189,248,.15); }
.price-amount { font-size: 3rem; font-weight: 800; color: var(--accent); margin: .5rem 0; }
.price-per { color: var(--dim); margin-bottom: 1rem; }
.pricing-note { text-align: center; color: var(--dim); margin-top: 1.5rem; font-size: .9rem; }

/* Free Access Banner */
.free-banner { background: linear-gradient(135deg, #059669, #10b981); color: #fff; padding: .9rem 0; text-align: center; }
.free-banner p { margin: 0; font-size: 1rem; }
.free-banner strong { font-weight: 800; }
/* Paid public domain (fixmycredit.site): never show the free banner.
   <html> gets the paid-host class from the inline head script before paint. */
.paid-host .free-banner { display: none; }

/* ------------------------------------------------------------------ */
/* Free Tools (style-matched to site)                                  */
/* ------------------------------------------------------------------ */

.tools-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 48px;
}

.tool-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}

.tool-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.tool-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.tool-card p {
  color: var(--text-dim);
  margin: 0 0 16px;
  flex-grow: 1;
}

.tool-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
  background: rgba(245, 196, 83, 0.14);
  border: 1px solid rgba(245, 196, 83, 0.35);
  color: var(--gold);
}

.tool-badge-instant {
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.35);
  color: var(--cyan);
}

.tool-btn {
  width: 100%;
}

.tools-subhead {
  text-align: center;
  font-size: 1.4rem;
  margin: 0 0 8px;
  color: var(--gold);
}

/* Compact free-tools mini-grid (Cameron standard 2026-10-21):
   small tiles only — icon + name + tiny type label. */
.tools-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 8px;
}

@media (min-width: 1024px) {
  .tools-mini-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tool-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--text);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.tool-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.tool-tile-icon {
  font-size: 1.35rem;
  line-height: 1.25;
}

.tool-tile-name {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.tool-tile-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Tool modal */
.tool-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.tool-modal {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px 24px;
  max-width: 560px;
  width: 100%;
  margin: 40px 0;
  position: relative;
}

.tool-modal-close {
  position: absolute;
  top: 12px; right: 16px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 8px;
  min-width: 48px;
  min-height: 48px;
}

.tool-modal-title {
  font-size: 1.4rem;
  margin: 0 0 16px;
  padding-right: 40px;
}

.tool-modal-body .field select,
.tool-modal-body .field textarea {
  width: 100%;
  max-width: 100%;
  min-height: var(--tap);
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}

.tool-modal-body .field select:focus,
.tool-modal-body .field textarea:focus {
  outline: 2px solid var(--cyan);
  outline-offset: 1px;
  border-color: var(--cyan);
}

.tool-modal-body .field textarea {
  resize: vertical;
}

.tool-gate-sub {
  color: var(--text-dim);
  margin-bottom: 24px;
}

.oauth-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.btn-oauth {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--card-border);
  width: 100%;
}

.btn-oauth:hover {
  border-color: var(--cyan);
}

.tool-result {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--card-border);
}

.tool-result h4 {
  color: var(--gold);
  margin: 20px 0 12px;
}

.tool-result h4:first-child {
  margin-top: 0;
}

.tool-result ol, .tool-result ul {
  color: var(--text-dim);
  padding-left: 20px;
}

.tool-result li {
  margin-bottom: 8px;
}

/* Validation error box (2026-10-19): rendered by wireToolForm when the
 * Layer-2 gate rejects a submit. Never renders alongside results. */
.tool-error {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 107, 107, 0.55);
  border-left: 4px solid #ff6b6b;
  border-radius: 10px;
  background: rgba(255, 107, 107, 0.08);
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
}

.tool-error strong {
  color: #ff8a8a;
}

.tool-output {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  color: var(--text);
  padding: 16px;
  font-family: ui-monospace, monospace;
  font-size: 0.9rem;
  white-space: pre-wrap;
}

.tool-bridge {
  margin-top: 24px;
  padding: 20px;
  background: var(--gold-soft);
  border: 1px solid rgba(245, 196, 83, 0.35);
  border-radius: 12px;
  color: var(--text-dim);
}

.tool-bridge a {
  color: var(--gold);
  font-weight: 700;
}

@media (min-width: 700px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .oauth-row {
    flex-direction: row;
  }
  .btn-oauth {
    flex: 1;
  }
}

@media (min-width: 1024px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ------------------------------------------------------------------ */
/* Affiliate hub (2026-10-24): disclosure strip, comparison cards,    */
/* education strip, footer disclosure.                                */
/* ------------------------------------------------------------------ */

.disclosure-strip {
  background: rgba(255, 196, 0, 0.08);
  border-top: 1px solid rgba(255, 196, 0, 0.35);
  border-bottom: 1px solid rgba(255, 196, 0, 0.35);
  padding: 18px 0;
}
.disclosure-strip p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 28px auto 0;
  max-width: 880px;
}

@media (max-width: 720px) {
  .compare-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 480px;
  }
}
.compare-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.compare-card h3 {
  margin: 6px 0 14px;
  font-size: 1.35rem;
}
.compare-tag {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffc400;
}
.compare-rows {
  margin: 0 0 16px;
}
.compare-rows dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-top: 14px;
}
.compare-rows dt:first-child {
  margin-top: 0;
}
.compare-rows dd {
  margin: 4px 0 0;
  line-height: 1.55;
}
.compare-cookie {
  border-left: 3px solid #ffc400;
  padding-left: 12px;
  line-height: 1.55;
  margin: 0 0 18px;
}
.compare-card .btn {
  margin-top: auto;
  text-align: center;
}
.compare-note {
  margin-top: 20px;
  font-size: 0.9rem;
  opacity: 0.75;
  line-height: 1.6;
}

.edu-strip {
  background: rgba(255, 255, 255, 0.03);
}

.footer-disclosure {
  margin: 26px auto 0;
  max-width: 760px;
  text-align: left;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 20px;
}
.footer-disclosure h3 {
  font-size: 0.95rem;
  margin: 0 0 8px;
}
.footer-disclosure p {
  font-size: 0.85rem;
  line-height: 1.65;
  opacity: 0.8;
  margin: 0;
}

/* Mobile header (hub): logo + language toggle on row 1, the compare CTA
   full-width on row 2 — a squeezed one-row header crushed the button
   into a vertical pill at 375px. Header is sticky, so the extra row
   pushes content instead of overlapping it. */
@media (max-width: 700px) {
  .header-inner {
    flex-wrap: wrap;
  }
  .site-header .btn-small {
    order: 3;
    flex: 1 1 100%;
    text-align: center;
    white-space: nowrap;
  }
}
