/* ============================================================
   CHAMBERS — A2P tax-resolution skin (premium legal firm)
   Classic legal typography, crisp top-nav, and a tax debt
   reduction hero signature. Single-hue palette from one hex.
   Type: Libre Baskerville (display) · Inter (body).
   ============================================================ */

/* @palette:start */
:root {
  --primary: #243B6B;
  --primary-dark: #1c2f55;
  --secondary: #2e4c8b;
  --accent: #274075;
  --accent-light: #325295;
}
/* @palette:end */

:root {
  --ink: #121826;
  --ink-soft: #465064;
  --ink-faint: #8790A1;
  --paper: #FCFBF8;
  --panel: #F3F0EA;
  --surface: #FFFFFF;
  --line: #E4DED3;
  --gold: #B68A3A;
  --danger: #B84D43;

  --wash: color-mix(in srgb, var(--primary) 5%, #ffffff);
  --edge: color-mix(in srgb, var(--primary) 17%, #ffffff);
  --brand-soft: color-mix(in srgb, var(--primary) 10%, #ffffff);

  --font-display: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --r-pill: 999px;
  --shadow: 0 26px 64px color-mix(in srgb, var(--ink) 13%, transparent);
  --shadow-sm: 0 12px 30px color-mix(in srgb, var(--ink) 8%, transparent);
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: 0; line-height: 1.12; color: var(--ink); }
p { color: var(--ink-soft); }
a { color: inherit; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--gold); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 2rem; }
section { padding: clamp(3.5rem, 7vw, 7rem) 0; }
.panel { background: var(--panel); border-block: 1px solid var(--line); }
.dark { background: var(--ink); color: #fff; }
.dark h2, .dark h3 { color: #fff; }
.dark p { color: rgba(255,255,255,.74); }
.dark .eyebrow { color: var(--gold); }

.sec-head { max-width: 660px; margin: 0 auto clamp(2.5rem, 4vw, 4rem); text-align: center; }
.sec-head .eyebrow { margin-bottom: 1rem; }
.sec-head h2 { font-size: clamp(2rem, 2.4vw + 1rem, 3rem); margin-bottom: 1rem; }
.sec-head p { font-size: 1.08rem; }

/* --------------------------- Buttons --------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 46px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.85rem 1.35rem;
  border-radius: var(--r-sm);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 12px 24px color-mix(in srgb, var(--primary) 26%, transparent); }
.btn-primary:hover { transform: translateY(-2px); background: var(--primary-dark); }
.btn-ghost { background: rgba(255,255,255,.5); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.btn-arrow { transition: transform .2s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* --------------------------- Nav --------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 900;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px color-mix(in srgb, var(--ink) 5%, transparent); }
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 1rem 2rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; font-family: var(--font-display); font-weight: 700; font-size: 1.22rem; color: var(--ink); text-decoration: none; }
.brand .mark { width: 32px; height: 32px; border-radius: 50%; background: var(--primary); display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-size: 1rem; box-shadow: inset 0 0 0 2px color-mix(in srgb, #fff 18%, transparent); }
.nav-links { display: flex; align-items: center; gap: 1.85rem; list-style: none; }
.nav-links a { text-decoration: none; color: var(--ink-soft); font-weight: 700; font-size: 0.93rem; position: relative; transition: color .2s ease; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: -7px; height: 2px; width: 0; background: var(--gold); transition: width .25s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 1.1rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------- Hero --------------------------- */
.hero {
  position: relative;
  padding: clamp(3.2rem, 6vw, 5.8rem) 0 clamp(3.8rem, 7vw, 6.8rem);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255,255,255,.55), transparent 46%),
    radial-gradient(52% 48% at 84% 8%, var(--brand-soft) 0%, transparent 62%),
    linear-gradient(135deg, var(--paper) 0%, #fff 48%, var(--panel) 100%);
}
.hero-grid { max-width: var(--maxw); margin: 0 auto; padding: 0 2rem; display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero .eyebrow { margin-bottom: 1.35rem; }
.hero h1 { font-size: clamp(2.55rem, 4.2vw + 1rem, 4.25rem); margin-bottom: 1.4rem; max-width: 11ch; }
.hero h1 span { color: var(--primary); }
.hero-sub { font-size: 1.16rem; max-width: 36ch; margin-bottom: 2.1rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hero-trust { display: flex; gap: 1.35rem; flex-wrap: wrap; font-size: 0.83rem; color: var(--ink-faint); font-weight: 700; }
.hero-trust span { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-trust span::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

/* Signature: tax debt reduction */
.debt-stage {
  position: relative;
  min-height: 470px;
  display: grid;
  align-items: center;
  padding: 2rem;
  opacity: 0;
  animation: rise .8s ease both;
}
.debt-stage::before {
  content: '';
  position: absolute;
  inset: 2.2rem 0 1.2rem 4rem;
  background:
    radial-gradient(circle at 76% 18%, color-mix(in srgb, var(--gold) 20%, transparent), transparent 32%),
    linear-gradient(135deg, var(--ink), var(--primary-dark));
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.notice-stack { position: absolute; inset: 0; pointer-events: none; }
.paper {
  position: absolute;
  width: 150px;
  height: 196px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: 0 18px 40px color-mix(in srgb, var(--ink) 14%, transparent);
}
.paper::before {
  content: 'IRS';
  position: absolute;
  left: 1rem;
  top: 1rem;
  color: var(--danger);
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
}
.paper::after {
  content: '';
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: 3.1rem;
  height: 66px;
  background:
    linear-gradient(var(--panel), var(--panel)) 0 0 / 100% 8px no-repeat,
    linear-gradient(var(--panel), var(--panel)) 0 22px / 76% 8px no-repeat,
    linear-gradient(var(--panel), var(--panel)) 0 44px / 88% 8px no-repeat;
}
.paper.p1 { left: 0.2rem; top: 2.6rem; transform: rotate(-10deg); animation: paperFloat 6.4s ease-in-out infinite; }
.paper.p2 { right: 0; top: 0.6rem; transform: rotate(8deg); animation: paperFloat 7s ease-in-out -.8s infinite; }
.paper.p3 { left: 1.8rem; bottom: 1.5rem; transform: rotate(5deg); animation: paperFloat 6.8s ease-in-out -1.4s infinite; }
@keyframes paperFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}
.debt-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  margin-left: auto;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  border: 1px solid color-mix(in srgb, #fff 50%, var(--line));
  border-radius: var(--r-lg);
  box-shadow: 0 28px 70px color-mix(in srgb, #000 24%, transparent);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  overflow: hidden;
}
.debt-panel::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--danger), var(--gold), var(--primary));
}
.debt-kicker {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.55rem;
}
.debt-amount { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.old-balance {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.7rem);
  line-height: 1;
  color: var(--danger);
  animation: balanceCalm .6s ease 1.65s forwards;
}
.old-balance::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 52%;
  height: 4px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  animation: strikeDebt .55s ease 1.25s forwards;
}
.new-balance {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  animation: labelIn .45s ease 1.65s forwards;
}
.debt-meter {
  position: relative;
  height: 16px;
  background: var(--panel);
  border-radius: var(--r-pill);
  overflow: hidden;
  margin-bottom: 1.45rem;
}
.meter-danger, .meter-relief { position: absolute; inset: 0 auto 0 0; border-radius: inherit; }
.meter-danger { width: 88%; background: var(--danger); animation: debtDrain 1.35s cubic-bezier(.5, 0, .2, 1) .35s forwards; }
.meter-relief { width: 0; background: linear-gradient(90deg, var(--gold), var(--primary)); animation: reliefFill 1s cubic-bezier(.5, 0, .2, 1) 1.45s forwards; }
@keyframes debtDrain { to { width: 18%; opacity: .32; } }
@keyframes reliefFill { to { width: 58%; } }
@keyframes strikeDebt { to { transform: scaleX(1); } }
@keyframes balanceCalm { to { color: var(--ink-soft); } }
@keyframes labelIn { to { opacity: 1; transform: translateY(0); } }
.debt-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}
.debt-row span { color: var(--ink-soft); font-weight: 700; }
.debt-row b { color: var(--ink); font-size: 0.82rem; text-align: right; }
.relief-seal {
  position: absolute;
  z-index: 2;
  right: 1.2rem;
  bottom: 2.6rem;
  display: inline-grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 0.7rem;
  max-width: 210px;
  padding: 0.75rem 0.9rem;
  background: var(--surface);
  border: 2px solid var(--primary);
  border-radius: var(--r);
  box-shadow: 0 18px 38px color-mix(in srgb, var(--primary) 20%, transparent);
  color: var(--primary);
  opacity: 0;
  transform: rotate(-4deg) scale(1.2);
  animation: sealPop .55s cubic-bezier(.34, 1.45, .45, 1) 1.8s forwards;
}
.relief-seal span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}
.relief-seal strong {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
}
@keyframes sealPop { to { opacity: 1; transform: rotate(-4deg) scale(1); } }

/* --------------------------- Metric strip --------------------------- */
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.metric { text-align: center; padding: 1.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.metric b { font-family: var(--font-display); font-size: 2rem; color: var(--primary); display: block; line-height: 1; margin-bottom: 0.4rem; }
.metric span { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); font-weight: 800; }

/* --------------------------- About --------------------------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about h2 { font-size: clamp(1.9rem, 2.4vw + 1rem, 2.7rem); margin-bottom: 1.3rem; }
.about p { font-size: 1.05rem; margin-bottom: 1.1rem; }
.checks { list-style: none; display: grid; gap: 0.9rem; margin-top: 1.6rem; }
.checks li { display: flex; align-items: flex-start; gap: 0.8rem; font-weight: 700; color: var(--ink); }
.checks li::before { content: '✓'; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 0.78rem; }
.about-visual { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 2.2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; box-shadow: var(--shadow-sm); }
.about-visual .m { background: var(--paper); padding: 1.5rem; border-radius: var(--r-sm); }
.about-visual .m b { font-family: var(--font-display); font-size: 1.8rem; color: var(--primary); display: block; line-height: 1; }
.about-visual .m span { font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-faint); font-weight: 800; }

/* --------------------------- Cards --------------------------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.35rem; }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.8rem; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; overflow: hidden; }
.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-sm); border-color: var(--edge); }
.card:hover::before { transform: scaleX(1); }
.card .num { font-size: 0.78rem; font-weight: 800; color: var(--primary); letter-spacing: 0.08em; }
.card h3 { font-size: 1.22rem; margin: 0.85rem 0 0.65rem; }
.card p { font-size: 0.97rem; }

/* --------------------------- Process --------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: s; }
.step { position: relative; padding-top: 3rem; }
.step::before { counter-increment: s; content: counter(s, decimal-leading-zero); position: absolute; top: 0; left: 0; color: var(--gold); font-weight: 800; letter-spacing: 0.08em; }
.step h3 { font-size: 1.12rem; margin-bottom: 0.55rem; }
.step p { font-size: 0.95rem; }

/* --------------------------- FAQ --------------------------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 0.9rem; overflow: hidden; background: var(--surface); transition: border-color .3s ease, box-shadow .3s ease; }
.faq-item.open { border-color: var(--edge); box-shadow: var(--shadow-sm); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 1.35rem 3rem 1.35rem 1.5rem; position: relative; font-family: var(--font-display); font-size: 1.08rem; font-weight: 700; color: var(--ink); }
.faq-q::after { content: '+'; position: absolute; right: 1.3rem; top: 50%; transform: translateY(-50%); font-family: var(--font-body); font-size: 1.5rem; color: var(--primary); transition: transform .3s ease; }
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-a p { padding: 0 1.5rem 1.5rem; font-size: 1rem; }
.faq-a a { color: var(--primary); font-weight: 700; text-decoration: none; }

/* --------------------------- Form --------------------------- */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: clamp(2rem, 4vw, 3rem); max-width: 720px; margin: 0 auto; }
.form-card h2 { font-size: clamp(1.7rem, 2.2vw + 1rem, 2.35rem); margin-bottom: 0.7rem; }
.form-card > p { margin-bottom: 2rem; }
.field { margin-bottom: 1.3rem; }
.field label { display: block; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.5rem; }
.field input { width: 100%; padding: 0.95rem 1.05rem; font-family: var(--font-body); font-size: 1rem; border: 1px solid var(--edge); border-radius: var(--r-sm); background: var(--paper); color: var(--ink); transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.field input:focus { outline: none; border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 4px var(--brand-soft); }
.field input.error { border-color: var(--danger); box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 12%, transparent); }
.error-message { display: none; color: var(--danger); font-size: 0.82rem; margin-top: 0.4rem; }
.consent { display: flex; gap: 0.8rem; align-items: flex-start; margin-bottom: 1.1rem; }
.consent input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; accent-color: var(--primary); cursor: pointer; }
.consent label { font-size: 0.86rem; color: var(--ink-soft); line-height: 1.55; cursor: pointer; }
.consent label strong { color: var(--ink); font-weight: 700; }
.form-legal { font-size: 0.82rem; color: var(--ink-faint); margin: 0.4rem 0 1.6rem; }
.form-legal a { color: var(--primary); font-weight: 700; text-decoration: none; }
.btn-submit { width: 100%; }
.thank-you { display: none; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: clamp(2.5rem, 5vw, 4rem); max-width: 720px; margin: 0 auto; }
.thank-you.show { display: block; animation: rise .5s ease; }
.thank-you h3 { font-size: 2rem; color: var(--primary); margin-bottom: 1rem; }
.thank-you p { margin-bottom: 0.9rem; }
.contact-grid { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 2.5rem; align-items: start; }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 2rem; position: sticky; top: 6rem; }
.info-card h3 { font-size: 1.3rem; margin-bottom: 1.5rem; }
.info-row { margin-bottom: 1.3rem; }
.info-row .k { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--primary); display: block; margin-bottom: 0.35rem; }
.info-row .v, .info-row .v a { font-weight: 700; color: var(--ink); text-decoration: none; font-size: 1rem; overflow-wrap: anywhere; }

/* --------------------------- Legal --------------------------- */
.legal { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.legal-head { max-width: 900px; margin: 0 auto 2.4rem; padding: 0 2rem; }
.legal-head .eyebrow { margin-bottom: 0.9rem; }
.legal-head h1 { font-size: clamp(2.1rem, 3vw + 1rem, 3.2rem); }
.legal-head .lead { font-size: 1.1rem; color: var(--ink-soft); margin-top: 0.7rem; max-width: 60ch; }
.legal-body { max-width: 900px; margin: 0 auto; padding: 0 2rem; }
.legal-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: clamp(2rem, 4vw, 3.4rem); }
.effective { font-size: 0.9rem; color: var(--ink-soft); background: var(--panel); border-left: 3px solid var(--gold); border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 1rem 1.2rem; margin-bottom: 2.2rem; }
.effective strong { color: var(--primary); }
.legal-card > p { font-size: 1.02rem; line-height: 1.8; margin-bottom: 1.4rem; }
.legal-card h2 { font-size: 1.42rem; margin: 2.5rem 0 1rem; }
.legal-card h3 { font-size: 1.16rem; margin: 1.8rem 0 0.8rem; }
.legal-card ul { margin: 0 0 1.6rem 1.4rem; }
.legal-card li { font-size: 1.02rem; line-height: 1.8; color: var(--ink-soft); margin-bottom: 0.6rem; }
.legal-card strong { color: var(--ink); }
.legal-card a { color: var(--primary); font-weight: 700; text-decoration: none; }
.legal-contact { margin-top: 2.5rem; padding: 2rem; background: var(--ink); color: #fff; border-radius: var(--r); }
.legal-contact h2 { color: #fff; margin-top: 0; font-size: 1.3rem; }
.legal-contact p { color: rgba(255,255,255,.8); margin-bottom: 0.4rem; }
.legal-contact .name { font-family: var(--font-display); font-size: 1.2rem; color: #fff; margin: 0.6rem 0 0.4rem; }
.legal-links { margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); text-align: center; font-size: 0.9rem; }
.legal-links a { color: var(--primary); text-decoration: none; margin: 0 0.7rem; font-weight: 700; }

/* --------------------------- Footer --------------------------- */
.footer { background: var(--ink); color: #fff; padding: clamp(3rem, 5vw, 4.5rem) 0 2rem; border-top: 4px solid var(--gold); }
.footer-grid { max-width: var(--maxw); margin: 0 auto; padding: 0 2rem; display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; }
.footer h4 { font-family: var(--font-display); font-size: 1.35rem; color: #fff; margin-bottom: 1rem; }
.footer p { color: rgba(255,255,255,.72); font-size: 0.95rem; max-width: 34ch; }
.footer .col h5 { font-size: 0.76rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.1rem; }
.footer .col a { display: block; color: rgba(255,255,255,.78); text-decoration: none; font-size: 0.95rem; margin-bottom: 0.7rem; transition: color .2s ease, transform .2s ease; }
.footer .col a:hover { color: #fff; transform: translateX(3px); }
.footer-bottom { max-width: var(--maxw); margin: 2.4rem auto 0; padding: 1.6rem 2rem 0; border-top: 1px solid rgba(255,255,255,.14); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.82rem; color: rgba(255,255,255,.6); }

/* --------------------------- Motion --------------------------- */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
[data-rise] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
[data-rise].in { opacity: 1; transform: translateY(0); }

/* --------------------------- Responsive --------------------------- */
@media (max-width: 980px) {
  .hero-grid, .about, .contact-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 14ch; }
  .cards { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .metrics { grid-template-columns: 1fr; }
  .info-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .debt-stage { min-height: 430px; }
}
@media (max-width: 640px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 1.15rem;
    padding: 1.5rem 2rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .cards, .steps, .footer-grid, .about-visual { grid-template-columns: 1fr; }
  .container, .nav-inner, .hero-grid, .footer-grid, .footer-bottom, .legal-head, .legal-body { padding-left: 1.35rem; padding-right: 1.35rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero h1 { max-width: 100%; }
  .debt-stage { min-height: 0; padding: 1rem 0 4.2rem; }
  .debt-stage::before { inset: 2.7rem 0 0; border-radius: 20px; }
  .paper { width: 118px; height: 154px; opacity: .78; }
  .paper.p1 { left: -0.4rem; top: 1.5rem; }
  .paper.p2 { right: -0.3rem; top: 0.8rem; }
  .paper.p3 { display: none; }
  .debt-panel { width: calc(100% - 1.2rem); margin: 2.2rem auto 0; }
  .debt-amount { align-items: flex-start; flex-direction: column; }
  .relief-seal { right: 1rem; bottom: 0.6rem; }
}

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; animation-delay: 0s !important; transition: none !important; scroll-behavior: auto !important; }
  [data-rise], .debt-stage, .relief-seal { opacity: 1; transform: none; }
  .meter-danger { width: 18%; opacity: .32; }
  .meter-relief { width: 58%; }
  .old-balance { color: var(--ink-soft); }
  .old-balance::after { transform: scaleX(1); }
  .new-balance { opacity: 1; transform: none; }
}
