/* Service page (adverse credit): split opener with the credit gauge, issues list, helps, voice band, checklist and FAQ. */

/* ---------- opener: split screen (16 mod 4 = 0) ---------- */
.svc-open { position: relative; background: var(--paper); padding: clamp(36px, 6vh, 72px) 0 clamp(48px, 7vh, 84px); overflow: clip; }
.svc-open::before { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 38%; background: var(--mist); }
.svc-open__grid { position: relative; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(36px, 5vw, 88px); align-items: center; min-height: min(68vh, 640px); }
.svc-open__title { font-size: clamp(2.4rem, 4.4vw, 4.4rem); line-height: 1.04; letter-spacing: -0.03em; display: flow-root; }
.svc-open__lede { font-size: 1.2rem; line-height: 1.55; color: var(--slate); margin: 22px 0 0; }
.svc-open__ticks { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 24px; }
.svc-open__ticks li { position: relative; padding-left: 30px; font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; }
.svc-open__ticks li::before { content: ''; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; background: var(--ink); clip-path: polygon(14% 52%, 0 66%, 38% 100%, 100% 20%, 86% 6%, 37% 70%); }
.svc-open__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.svc-open__media { width: min(100%, calc(var(--media-cap) * 1.2)); justify-self: end; }
.svc-open__media .frame__img { aspect-ratio: 4 / 3.2; }

.gauge { position: absolute; left: -48px; bottom: -36px; width: min(300px, 58%); background: #fff; border-radius: var(--r); padding: 18px 18px 14px; box-shadow: 0 24px 60px rgba(38,44,48,.2); }
.gauge svg { width: 100%; height: auto; overflow: visible; }
.gauge__track { fill: none; stroke: var(--mist); stroke-width: 22; }
.gauge__seg { fill: none; stroke-width: 22; }
.gauge__seg--poor { stroke: var(--ink); }
.gauge__seg--fair { stroke: var(--steel); }
.gauge__seg--good { stroke: var(--sky); }
.gauge__lbl { font-family: var(--f-hand); font-weight: 600; font-size: 26px; fill: var(--ink); }
.gauge__needle path { stroke: var(--ink); stroke-width: 7; stroke-linecap: round; }
.gauge__needle circle { fill: var(--sky); stroke: var(--ink); stroke-width: 5; }
.gauge__note { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; color: var(--ink); }
.gauge__note .hand { font-size: 1.6rem; line-height: 1; }
.gauge__note .pin-ico { color: var(--ink); --pin-house: #fff; width: 24px; height: 32px; }

/* ---------- issues ---------- */
.issues { position: relative; padding: clamp(60px, 8vh, 100px) 0; background: var(--ink); color: #fff; overflow: clip; }
.issues .sec-title { color: #fff; }
.issues .sec-lede { color: rgba(255,255,255,.82); margin-top: 16px; }
.issues__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
.issues__intro { position: relative; }
.issues__media { margin-top: 28px; width: min(100%, calc(var(--media-cap) * .9)); }
.issues__media::before { border-color: var(--sky); }
.issues__media .frame__img { aspect-ratio: 16 / 10; }
.issues__list { display: grid; gap: 0; }
.issue { position: relative; padding: 22px 0 22px; border-top: 1.5px solid rgba(255,255,255,.22); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; align-items: baseline; }
.issue:last-child { border-bottom: 1.5px solid rgba(255,255,255,.22); }
.issue h3 { font-size: clamp(1.5rem, 2.2vw, 1.95rem); color: #fff; grid-column: 1; }
.issue__name { position: relative; display: inline-block; }
.issue__strike { position: absolute; left: -4px; right: -4px; top: 55%; height: 4px; background: var(--sky); transform-origin: left; transform: scaleX(1); border-radius: 2px; }
.issue p { grid-column: 1 / -1; margin: 4px 0 0; color: rgba(255,255,255,.82); font-size: 1.05rem; }
.issue__note { grid-column: 2; grid-row: 1; font-size: 1.7rem; color: var(--sky); white-space: nowrap; transform: rotate(-4deg); }

/* ---------- helps ---------- */
.helps { position: relative; padding: var(--sec) 0; background: var(--paper) url('../img/map-grid.svg') 0 0 / 64px 64px; overflow: clip; }
.helps__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.help { background: #fff; border-radius: var(--r); padding: 32px 28px 30px; border-top: 4px solid var(--sky); position: relative; overflow: hidden; }
.help::after { content: ''; position: absolute; right: -40px; bottom: -40px; width: 140px; height: 140px; border: 2px solid var(--mist); border-radius: 50%; }
.help__ico { width: 64px; height: 64px; margin-bottom: 20px; }
.help__ico * { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.help h3 { font-size: 1.5rem; margin-bottom: 12px; }
.help p { color: var(--slate); margin: 0; }

/* ---------- voice band ---------- */
.voice { position: relative; padding: clamp(80px, 12vh, 140px) 0; background: var(--sky); overflow: clip; }
.voice__route { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--ink); opacity: .9; }
.voice__in { position: relative; padding-right: calc(var(--gut) + 150px); }
.voice__quote { margin: 0; }
.voice__quote p { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.9rem); line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); display: flow-root; margin: 0 0 22px; }
.voice__quote footer { font-size: 1.1rem; }
.voice__pin { position: absolute; right: var(--gut); top: 50%; margin-top: -74px; }
.voice__pin .pin-ico { width: 110px; height: 148px; color: var(--ink); --pin-house: #fff; filter: drop-shadow(0 18px 18px rgba(38,44,48,.22)); }

/* ---------- ready + faq ---------- */
.ready { position: relative; padding: var(--sec) 0; background: var(--mist); overflow: clip; }
.ready__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
.ready__list .sec-lede { margin: 16px 0 26px; }
.checks li { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-bottom: 1.5px solid rgba(38,44,48,.12); font-size: 1.08rem; }
.checks__box { flex: none; width: 30px; height: 30px; border: 2px solid var(--ink); background: #fff; display: grid; place-items: center; border-radius: var(--r); }
.checks__box svg { width: 20px; height: 20px; }
.checks__box path { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.faq__title { font-size: clamp(1.6rem, 2.4vw, 2.2rem); margin-bottom: 20px; display: flow-root; }
.faq__item { background: #fff; border-radius: var(--r); margin-bottom: 10px; }
.faq__item h3 { font-size: inherit; margin: 0; }
.faq__q { display: block; }
.faq__item button { position: relative; width: 100%; display: block; padding: 22px 76px 22px 24px; background: none; border: 0; cursor: pointer; text-align: left; font-family: var(--f-display); font-weight: 800; font-size: 1.2rem; color: var(--ink); }
.faq__plus { position: absolute; right: 24px; top: 50%; margin-top: -17px; width: 34px; height: 34px; border: 2px solid var(--ink); }
.faq__plus::before, .faq__plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: var(--ink); transition: transform .35s var(--ease); }
.faq__plus::after { transform: rotate(90deg); }
.faq__item button[aria-expanded="true"] .faq__plus::after { transform: rotate(0deg); }
.faq__panel { overflow: hidden; }
.js .faq__panel { height: 0; }
.faq__panel p { padding: 0 24px 22px; margin: 0; color: var(--slate); }

@media (max-width: 1000px) {
  .helps__grid { grid-template-columns: minmax(0, 1fr); }
  .help { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 0 22px; }
  .help__ico { grid-row: span 2; }
}
@media (max-width: 900px) {
  .svc-open::before { width: 100%; top: auto; height: 34%; }
  .svc-open__grid, .issues__grid, .ready__grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .svc-open__media { justify-self: start; margin-left: 40px; }
  .issues__intro { position: static; }
}
@media (max-width: 700px) {
  .svc-open { padding-top: 24px; }
  .svc-open__grid { gap: 30px; }
  .svc-open__title { font-size: 2.15rem; }
  .svc-open__lede { font-size: 1.08rem; margin-top: 14px; }
  .svc-open__ticks { margin-top: 16px; gap: 8px 18px; }
  .svc-open__ticks li { font-size: 1rem; }
  .svc-open__actions { margin-top: 20px; gap: 10px; }
  .svc-open__media .frame__img { aspect-ratio: 16 / 10; }
  .voice { padding-bottom: 150px; }
  .voice__route { top: auto; bottom: 0; height: 140px; }
  .svc-open__media { margin-left: 24px; }
  .gauge { left: -24px; width: 64%; padding: 12px; }
  .issue { grid-template-columns: minmax(0, 1fr); }
  .issue__note { grid-column: 1; grid-row: auto; font-size: 1.45rem; }
  .voice__in { padding-right: var(--gut); }
  .voice__pin { display: none; }
  .svc-open__actions .btn { flex: 1 1 100%; }
}

.help::after { animation: helpFloat 7s ease-in-out infinite alternate; }
.help:nth-child(2)::after { animation-delay: -2s; }
.help:nth-child(3)::after { animation-delay: -4s; }
@keyframes helpFloat { to { transform: translate(-26px, -18px) scale(1.15); } }

.ready { background: var(--mist) url('../img/map-grid.svg') 0 0 / 64px 64px; padding-bottom: calc(var(--sec) + 40px); }
.ready__route { position: absolute; left: 0; right: 0; bottom: 6px; width: 100%; height: 120px; color: var(--steel); pointer-events: none; }
.ready__route path { stroke-dasharray: 16 12; animation: readyDash 2.2s linear infinite; }
.ready__grid { position: relative; }
@keyframes readyDash { to { stroke-dashoffset: -112; } }

/* opener v2: the photo runs edge to edge on the right half (unframed), so it opens unlike the tool and contact pages */
.svc-open::before { display: none; }
.svc-open__grid { grid-template-columns: minmax(0, 1fr); }
.svc-open__copy { width: 50%; padding-right: clamp(24px, 3vw, 56px); }
.svc-open__media { position: absolute; top: 0; right: 0; bottom: 0; width: 46vw; max-width: none; justify-self: auto; }
.svc-open__media.frame::before { display: none; }
.svc-open__media .frame__img { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.svc-open__media .gauge { left: -60px; bottom: 48px; }
@media (max-width: 900px) {
  .svc-open__copy { width: auto; padding-right: 0; }
  .svc-open__media { position: relative; width: auto; height: 62vw; margin: 34px 0 calc(clamp(48px, 7vh, 84px) * -1); }
  .svc-open__media .gauge { left: var(--gut); bottom: 20px; }
}
@media (max-width: 700px) {
  .svc-open__media .gauge { left: 24px; width: min(280px, 70%); }
}

/* opener v2 height: a compact split band (50-75% of the screen) */
.svc-open { padding: clamp(40px, 6vh, 64px) 0 clamp(44px, 6.5vh, 72px); }
.svc-open__grid { min-height: 0; }
.svc-open__title { font-size: clamp(2.3rem, 4vw, 4rem); }
.svc-open__lede { margin-top: 16px; }
.svc-open__ticks { margin-top: 18px; }
.svc-open__actions { margin-top: 24px; }
.svc-open__media .gauge { bottom: 28px; width: min(270px, 52%); padding: 14px 14px 10px; }
@media (min-width: 901px) {
  .svc-open { min-height: 60vh; display: flex; align-items: center; }
  .svc-open > .wrap { width: 100%; }
}
