/* ClearPath Resource — mobile lead page */

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

html,
body {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.45;
  color: #0f172a;
  background: #f5f6f8;
}

a {
  color: #1d4ed8;
}

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

.lp-skip {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lp-skip:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem 0.75rem;
  background: #0f172a;
  color: #fff;
  z-index: 9999;
  border-radius: 6px;
}

/* ——— Page wrap ——— */
.lp-wrap {
  max-width: 32rem;
  margin: 0 auto;
  padding: 1rem 1rem 6rem;
  padding-top: calc(1rem + env(safe-area-inset-top, 0px));
}

/* ——— Questionnaire panel ——— */
.lp-panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 1.3rem 1rem 1rem;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.08);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.lp-panel.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.lp-panel__head {
  text-align: center;
  margin-bottom: 1.15rem;
  padding: 0.15rem 0.35rem 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.lp-panel__title {
  margin: 0 0 0.5rem;
  font-family: inherit;
  font-size: clamp(1.28rem, 5.2vw, 1.62rem);
  line-height: 1.35;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
  text-align: center;
}

.lp-panel__meta {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25rem 0.4rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: normal;
  text-transform: none;
  color: #64748b;
}

.lp-panel__meta-label {
  color: #94a3b8;
}

.lp-panel__meta time {
  color: #475569;
  font-variant-numeric: tabular-nums;
}

.lp-stat {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: #fffbeb;
  border-left: 5px solid #facc15;
  border-radius: 10px;
  padding: 0.9rem 0.85rem;
  margin-bottom: 1.25rem;
}

.lp-stat__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  border: 2px solid #facc15;
  color: #ca8a04;
  font-weight: 800;
  flex-shrink: 0;
  background: #fffef0;
}

.lp-stat p {
  margin: 0;
  color: #854d0e;
  font-size: 0.98rem;
  line-height: 1.45;
}

.lp-stat--bottom {
  margin-top: 1rem;
  margin-bottom: 0;
}

.lp-stat[hidden],
.lp-cta-btn[hidden] {
  display: none !important;
}

.lp-stat--red {
  background: #fef2f2;
  border-left-color: #dc2626;
}

.lp-stat--red .lp-stat__icon {
  border-color: #dc2626;
  background: #fff;
  color: #dc2626;
}

.lp-stat--red p {
  color: #7f1d1d;
}

.lp-stat--red strong {
  color: #991b1b;
}

/* ——— Step progress bar ——— */
.lp-progress {
  height: 5px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
  margin: 0 0 1rem;
}

.lp-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #dc2626, #ef4444);
  border-radius: 999px;
  transition: width 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.lp-progress__bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 100%
  );
  transform: translateX(-100%);
  animation: lp-shine 2.4s ease-in-out infinite;
  will-change: transform;
}

@keyframes lp-shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.lp-step {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.13s ease, transform 0.13s ease;
}

.lp-step.is-swapping {
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
}

.lp-question {
  margin: 0 0 1.15rem;
  font-family: inherit;
  font-size: clamp(1.28rem, 5.6vw, 1.5rem);
  line-height: 1.32;
  font-weight: 700;
  color: #020617;
  min-height: 2.6em;
  text-align: center;
}

.lp-chat__opts {
  display: grid;
  gap: 0.7rem;
}

.lp-chip {
  width: 100%;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
  padding: 1rem 1rem;
  border-radius: 14px;
  border: 1.5px solid #e5e7eb;
  background: #fff;
  color: #0f172a;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.05s;
}

.lp-chip:active {
  background: #f8fafc;
  transform: scale(0.985);
}

.lp-chip.is-selected {
  background: #fef2f2;
  border-color: #dc2626;
  box-shadow: 0 0 0 1px #dc2626 inset;
  color: #0f172a;
}

.lp-chip.is-tapped {
  background: #fee2e2;
  color: #0f172a;
}

/* ——— Primary CTA inside step (Q3) ——— */
.lp-cta-btn {
  display: block;
  width: 100%;
  margin-top: 1rem;
  padding: 1rem 1rem;
  background: linear-gradient(90deg, #dc2626, #ef4444);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: normal;
  text-align: center;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.28);
  transition: opacity 0.2s ease, transform 0.05s ease, box-shadow 0.2s ease;
}

.lp-cta-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.lp-cta-btn:not(:disabled):active {
  transform: scale(0.99);
}

.lp-cta-btn:not(:disabled):focus-visible {
  box-shadow: 0 8px 22px rgba(220, 38, 38, 0.35);
  outline: none;
}

.lp-chip:focus-visible {
  background: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  outline: none;
}

@media (hover: hover) {
  .lp-cta-btn:not(:disabled):hover {
    box-shadow: 0 8px 22px rgba(220, 38, 38, 0.35);
  }
  .lp-chip:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  }
}

/* ——— Inline panel loader (after Q3) ——— */
.lp-panel-load {
  padding: 2.25rem 1rem 1.5rem;
  text-align: center;
  animation: lp-fade-up 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.lp-panel-load[hidden] {
  display: none !important;
}

.lp-panel-load__spin {
  width: 3.2rem;
  height: 3.2rem;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  border: 4px solid #fee2e2;
  border-top-color: #dc2626;
  animation: lp-spin 0.85s linear infinite;
}

.lp-panel-load__title {
  margin: 0 0 0.35rem;
  font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
}

.lp-panel-load__steps {
  list-style: none;
  padding: 0;
  margin: 1.1rem auto 0;
  max-width: 20rem;
  text-align: left;
}

.lp-panel-load__step {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.42rem 0;
  font-size: 0.92rem;
  color: #94a3b8;
  transition: color 0.25s ease;
}

.lp-panel-load__step-icon {
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  border: 1.5px solid #cbd5e1;
  background: #fff;
  position: relative;
  box-sizing: border-box;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.lp-panel-load__step.is-active {
  color: #0f172a;
  font-weight: 600;
}

.lp-panel-load__step.is-active .lp-panel-load__step-icon {
  border-color: #dc2626;
  border-top-color: transparent;
  animation: lp-spin 0.7s linear infinite;
}

.lp-panel-load__step.is-done {
  color: #0f172a;
}

.lp-panel-load__step.is-done .lp-panel-load__step-icon {
  border-color: #16a34a;
  background: #16a34a;
  animation: none;
}

.lp-panel-load__step.is-done .lp-panel-load__step-icon::after {
  content: "";
  position: absolute;
  left: 0.32rem;
  top: 0.1rem;
  width: 0.32rem;
  height: 0.58rem;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

@keyframes lp-fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes lp-spin {
  to { transform: rotate(360deg); }
}

/* ——— Full-screen takeover congratulations ——— */
.lp-congrats {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: #f5f6f8;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1.25rem 1rem 2rem;
  padding-top: calc(1.25rem + env(safe-area-inset-top, 0px));
  padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
  font-family: "Inter", system-ui, sans-serif;
  animation: lp-fade-up 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.lp-congrats[hidden] {
  display: none !important;
}

.lp-congrats__inner {
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  padding: 1.25rem 1.1rem 1.4rem;
}

.lp-congrats__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.lp-congrats__title {
  font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  font-size: 1.15rem;
  line-height: 1.25;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.01em;
}

.lp-congrats__title-sub {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #0f172a;
}

.lp-congrats__call-badge {
  flex-shrink: 0;
  min-width: 3.4rem;
  padding: 0.35rem 0.45rem 0.4rem;
  border-radius: 10px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #15803d;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
}

.lp-congrats__call-badge-icon {
  width: 1rem;
  height: 1rem;
  display: block;
}

.lp-congrats__call-badge-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
}

.lp-congrats__green {
  background: #ecfdf5;
  border: 2px solid #a7f3d0;
  border-radius: 16px;
  text-align: center;
  padding: 1.1rem 1rem 1.05rem;
  margin: 0.4rem 0 0.9rem;
}

.lp-congrats__green-tag {
  margin: 0 0 0.55rem;
  font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
  color: #047857;
}

.lp-congrats__green-lead {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
  color: #065f46;
}

.lp-congrats__green-lead strong {
  font-weight: 800;
  color: #047857;
}

.lp-congrats__cta-line {
  text-align: center;
  margin: 0 0 1rem;
  color: #0f172a;
  font-weight: 700;
  font-size: 1rem;
}

.lp-congrats__approved {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 0.8rem 0.85rem;
  margin: 0 0 1rem;
}

.lp-congrats__approved p {
  margin: 0.15rem 0;
  font-size: 0.95rem;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lp-congrats__approved strong {
  color: #0f172a;
}

.lp-congrats__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  border: 1.5px solid #dc2626;
  color: #dc2626;
  font-size: 0.7rem;
  font-weight: 800;
  flex-shrink: 0;
}

.lp-congrats__call {
  display: block;
  text-align: center;
  text-decoration: none;
  background: #16a34a;
  color: #fff;
  font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.3;
  padding: 1.1rem 1.2rem;
  border-radius: 999px;
  border: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 12px 32px rgba(22, 163, 74, 0.28);
  margin: 0 0 1.35rem;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  animation: lp-congrats-call-breathe 2.8s ease-in-out infinite;
  will-change: transform;
}

@keyframes lp-congrats-call-breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.035);
  }
}

.lp-congrats__call:focus-visible {
  box-shadow:
    0 12px 32px rgba(22, 163, 74, 0.34),
    0 0 0 4px rgba(34, 197, 94, 0.28);
  outline: none;
}

@media (hover: hover) {
  .lp-congrats__call:hover {
    background: #15803d;
    box-shadow: 0 14px 36px rgba(22, 163, 74, 0.36);
  }
}

.lp-congrats__call:active {
  background: #166534;
  animation: none;
  transform: scale(0.98);
  box-shadow: 0 8px 22px rgba(22, 163, 74, 0.24);
}

@media (prefers-reduced-motion: reduce) {
  .lp-congrats__call {
    animation: none;
  }
}

.lp-congrats__sub {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #334155;
}

.lp-congrats__case {
  background: #fefce8;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 0.85rem 0.9rem;
  margin: 0.65rem 0 0.9rem;
  text-align: center;
}

.lp-congrats__case-id {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

.lp-congrats__case-id strong {
  color: #0f172a;
  font-weight: 700;
}

.lp-congrats__case-foot {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #78716c;
}

.lp-congrats__disclaimer {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.68rem;
  line-height: 1.45;
  color: #94a3b8;
}

.lp-congrats__disclaimer a {
  color: #64748b;
  font-weight: 600;
}

@media (min-width: 480px) {
  .lp-hd__h1 { font-size: 1.85rem; }
  .lp-out__h { font-size: 1.5rem; }
}

/* ——— Legal pages (Terms / Privacy) ——— */
.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 0.75rem 1rem;
  background: #1e3a5f;
  color: #fff;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e2e5ec;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  max-width: 880px;
  margin: 0 auto;
}

.logo {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 700;
  font-size: 1rem;
  color: #1e3a5f;
  text-decoration: none;
}

.nav-main {
  display: flex;
  gap: 1rem;
}

.nav-main a {
  font-size: 0.9rem;
  color: #1e3a5f;
  text-decoration: none;
  font-weight: 500;
}

.legal-page {
  padding: 1.75rem 0 3rem;
  max-width: 720px;
  margin: 0 auto;
}

.legal-page h1 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.8rem;
  color: #0f172a;
  margin: 0 0 0.5rem;
}

.legal-page h2 {
  font-size: 1.05rem;
  margin-top: 1.75rem;
  color: #0f172a;
}

.legal-page p,
.legal-page li {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.55;
}

.legal-page ul {
  padding-left: 1.25rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.25rem;
  font-weight: 500;
  color: #1d4ed8;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.site-footer {
  background: #0f172a;
  color: rgba(255, 255, 255, 0.8);
  padding: 1.25rem 0;
  font-size: 0.85rem;
  text-align: center;
}

.site-footer a {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  margin: 0;
}

/* ——— Landing compliance footer ——— */
.lp-compliance {
  width: 100%;
  padding: 1.25rem 1rem 1.5rem;
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  background: #eef1f5;
  border-top: 1px solid #dde3ea;
  color: #475569;
}

.lp-compliance__inner {
  max-width: 24rem;
  margin: 0 auto;
  text-align: center;
}

.lp-compliance__brand {
  margin: 0 0 0.25rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
}

.lp-compliance__phone {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  line-height: 1.4;
}

.lp-compliance__phone a {
  color: #1e40af;
  font-weight: 600;
  text-decoration: none;
}

.lp-compliance__disclaimer {
  margin: 0 0 0.85rem;
  font-size: 0.7rem;
  line-height: 1.5;
  color: #64748b;
}

.lp-compliance__disclaimer a {
  color: #1e40af;
  font-weight: 600;
  text-decoration: underline;
}

.lp-compliance__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 0.65rem;
}

.lp-compliance__links a {
  font-size: 0.78rem;
  font-weight: 600;
  color: #1e40af;
  text-decoration: underline;
}

.lp-compliance__meta {
  margin: 0;
  font-size: 0.65rem;
  line-height: 1.4;
  color: #94a3b8;
}
