/* ==========================================================================
   recovery.m7.digital — landing page styles.

   The original design carried every rule in a `style=""` attribute. The values
   below are those rules, unchanged, moved behind semantic class names so the
   templates read as structure and this file stays the single place to retune
   the page. Tokens (--color-*, --space-*, --font-*) come from modernist.css.
   ========================================================================== */

body { margin: 0; text-wrap: pretty; }
html { scroll-behavior: smooth; }
a { color: var(--color-text); }
a:hover { color: var(--color-accent); }

/* — layout ————————————————————————————————————————————————— */
.shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 72px);
}

.site-nav {
  padding-inline: max(
    clamp(20px, 5vw, 72px),
    calc((100% - 1200px) / 2 + clamp(20px, 5vw, 72px))
  );
}

/* The brand is the logo image, not text: size it to the bar and let
   .nav-brand's margin-right: auto keep pushing the links to the right. */
.site-nav .nav-brand { display: flex; align-items: center; }
.site-nav .nav-logo { height: 40px; width: auto; display: block; }
@media (max-width: 768px) {
  .site-nav .nav-logo { height: 32px; }
}
.site-nav .nav-link { white-space: nowrap; }
.site-nav .btn { text-decoration: none; }
.site-nav .nav-brand { text-decoration: none; }

.rule {
  height: 2px;
  border: 0;
  margin: 0;
  background: var(--color-divider);
}

/* — hero —————————————————————————————————————————————————— */
.hero { padding: 112px 0 84px; }

.hero-title {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: clamp(42px, 6.2vw, 84px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  /* Optical alignment: pulls the first glyph flush with the text column. */
  margin: 0 0 0 -0.058em;
}
.hero-title span { display: block; }

.lede {
  font-size: 17px;
  line-height: 28px;
  max-width: 58ch;
  margin: 36px 0 0;
}

.cta-row {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: 28px;
}
.cta-row .btn { text-decoration: none; }

/* — stats ————————————————————————————————————————————————— */
.stats { padding: 70px 0; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 42px 28px;
}

.stat-value {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: clamp(34px, 3.4vw, 48px);
  line-height: 56px;
  color: var(--color-accent);
  margin: 0 0 0 -0.045em;
}

.stat-label {
  font-size: 13px;
  line-height: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
  margin: 10px 0 0;
}

/* — shared section furniture ——————————————————————————————— */
.section-steps { padding: 84px 0 70px; }
.section-promises { padding: 70px 0; }
.section-start { padding: 84px 0 98px; }

.kicker {
  display: block;
  font-size: 13px;
  line-height: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-700);
  font-feature-settings: 'tnum' 1;
  margin: 0 0 14px;
}
.kicker-loose { margin-bottom: 28px; }
.kicker-tight { margin-bottom: 0; }

.section-title {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0;
}

/* — debtor-type tabs ——————————————————————————————————————— */
.steps-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin: 0 0 36px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  border: 2px solid var(--color-divider);
}

.tab {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 20px;
  padding: 10px 18px;
  background: transparent;
  color: var(--color-text);
  text-align: left;
  text-decoration: none;
}
.tab:hover { background: var(--color-accent-100); color: var(--color-text); }
.tab.is-active { background: var(--color-text); color: var(--color-bg); }
.tab.is-active:hover { background: var(--color-text); color: var(--color-bg); }

/* — steps —————————————————————————————————————————————————— */
.step {
  display: grid;
  grid-template-columns: minmax(48px, 80px) minmax(0, 1fr);
  gap: 28px clamp(24px, 3.5vw, 64px);
  align-items: baseline;
  padding: 42px 0;
  border-top: 2px solid var(--color-divider);
}

.step-num {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 15px;
  line-height: 28px;
  font-feature-settings: 'tnum' 1;
  margin: 0;
}

.step-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 28px 48px;
  align-items: baseline;
}

.step-detail-column { max-width: 56ch; }

.step-title {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 24px;
  line-height: 28px;
  letter-spacing: -0.01em;
  margin: 0;
}

.step-price {
  font-size: 13px;
  line-height: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-700);
  font-feature-settings: 'tnum' 1;
  margin: 14px 0 0;
}

.step-copy {
  font-size: 15.5px;
  line-height: 28px;
  margin: 0;
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
}

.step-details {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.detail {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 12px;
  align-items: baseline;
}

.detail-dash {
  display: block;
  width: 14px;
  height: 2px;
  background: var(--color-accent);
  transform: translateY(-4px);
}

.detail-text {
  font-size: 14.5px;
  line-height: 24px;
  margin: 0;
}

.step-meta {
  font-size: 13px;
  line-height: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 60%, transparent);
  font-feature-settings: 'tnum' 1;
  margin: 20px 0 0;
}

/* — guarantees ————————————————————————————————————————————— */
.promises {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px clamp(24px, 4vw, 72px);
}

.promise-title {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 20px;
  line-height: 28px;
  margin: 0;
}

.promise-copy {
  font-size: 15.5px;
  line-height: 28px;
  margin: 10px 0 0;
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
}

/* — new user / existing user choice ————————————————————————— */
/* The section also carries the estimate form, so it closes the shell. */
.section-choose { padding: 70px 0 98px; }

/* Sized to their content rather than stretched across the shell: these are
   buttons, and two of them filling the page read as panels instead. */
.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: 28px;
}

/* A .btn tall enough for two lines: the label people scan for, and the line
   that tells them what happens if they press it. */
.btn-choice {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 2px;
  text-align: left;
  text-decoration: none;
  padding: 11px 16px;
  border-color: var(--color-divider);
  border-width: 2px;
}
.btn-choice:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.btn-choice:active { background: color-mix(in srgb, var(--color-text) 14%, transparent); }

.btn-choice-primary {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-bg);
}
.btn-choice-primary:hover {
  background: var(--color-accent-600);
  border-color: var(--color-accent-600);
  color: var(--color-bg);
}
.btn-choice-primary:active {
  background: var(--color-accent-700);
  border-color: var(--color-accent-700);
}

.choice-label { font-size: 15px; line-height: 22px; }

.choice-hint {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12.5px;
  line-height: 18px;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}
.btn-choice-primary .choice-hint {
  color: color-mix(in srgb, var(--color-bg) 85%, transparent);
}

/* The form is the new-user path continued, not a new section. */
.section-choose .start-grid { margin-top: 40px; }

/* — start / form ——————————————————————————————————————————— */
.start-title {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 0 -0.058em;
}

/* The form stands alone in this section, so it is held to a comfortable
   measure rather than stretched across the full 1200px shell. */
.start-grid {
  display: grid;
  grid-template-columns: minmax(0, 520px);
  margin-top: 56px;
  align-items: start;
}

.lead-form {
  display: grid;
  gap: 24px;
  align-content: start;
}

.lead-form .input { border: 2px solid var(--color-divider); }

/* Native select arrow replaced with the design's two-triangle chevron. */
.lead-form select.input {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--color-text) 50%),
    linear-gradient(135deg, var(--color-text) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

.mobile-row { display: flex; gap: 0; }

.mobile-prefix {
  display: flex;
  align-items: center;
  padding: 0 14px;
  border: 2px solid var(--color-divider);
  border-right: 0;
  font-family: var(--font-heading);
  font-size: 15px;
  font-feature-settings: 'tnum' 1;
}

.mobile-row .input { flex: 1; }

.field-error {
  font-size: 13px;
  line-height: 18px;
  color: var(--color-accent-700);
  margin: 6px 0 0;
}

/* The "what is still missing" summary above the form. Same accent as the
   per-field messages, so the summary and the fields it points at read as one
   thing rather than two separate warnings. */
.form-errors {
  margin: 0;
  padding: 2px 0 2px 14px;
  border-left: 3px solid var(--color-accent-700);
}

.form-errors-title {
  font-family: var(--font-heading);
  font-size: 15px;
  line-height: 22px;
  margin: 0;
}

.form-errors-list {
  margin: 6px 0 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 20px;
  color: var(--color-accent-700);
}

.form-errors:focus { outline: none; }

/* An incomplete field is outlined as well as annotated: the border is what
   catches the eye once the page has scrolled to it. */
.field.has-error .input,
.field.has-error .mobile-prefix { border-color: var(--color-accent-700); }

.form-note {
  font-size: 13px;
  line-height: 20px;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
  margin: 10px 0 0;
}

/* — summary card ———————————————————————————————————————————
   Used by the confirmation page and the sandbox checkout. The landing page
   no longer carries an estimate breakdown; the live Step 1 price sits on the
   submit button instead. */
.estimate {
  border: 2px solid var(--color-text);
  padding: 0;
}

.estimate-head {
  padding: 24px 32px;
  border-bottom: 2px solid var(--color-divider);
}

.estimate-intro {
  font-size: 14px;
  line-height: 22px;
  margin: 8px 0 0;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}

.estimate-row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: baseline;
  gap: 12px;
  padding: 16px 32px;
  border-bottom: 2px solid var(--color-divider);
}

.estimate-row-num {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 13px;
  line-height: 22px;
  font-feature-settings: 'tnum' 1;
  margin: 0;
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}

.estimate-row-label { font-size: 15px; line-height: 22px; margin: 0; }

.estimate-row-fee {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 17px;
  line-height: 22px;
  font-feature-settings: 'tnum' 1;
  margin: 0;
  white-space: nowrap;
}

.estimate-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 20px 32px;
  background: var(--color-text);
  color: var(--color-bg);
}

.estimate-total-label {
  font-size: 14px;
  line-height: 22px;
  margin: 0;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.estimate-total-value {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 22px;
  line-height: 26px;
  font-feature-settings: 'tnum' 1;
  margin: 0;
  white-space: nowrap;
}

.estimate-note {
  font-size: 13px;
  line-height: 20px;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
  margin: 0;
  padding: 20px 32px;
}

.summary-card { max-width: 560px; margin-top: 42px; }

/* — tracking an existing case ——————————————————————————————— */
/* The lookup form stays on the page above a result, so it gives up the
   breathing room it has when it is the only thing there. */
.start-grid-tight { margin-top: 32px; }

/* Where the case has reached, stated once and plainly -- it is the answer the
   page exists to give, so it leads rather than sitting in the rows. */
.status-banner {
  padding: 20px 32px;
  border-bottom: 2px solid var(--color-divider);
  background: var(--color-accent-100);
}

.status-banner-label {
  font-size: 13px;
  line-height: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-700);
  margin: 0;
}

.status-banner-value {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 22px;
  line-height: 28px;
  margin: 10px 0 0;
}

/* One case in the list: a whole row is the target, not just the title. */
.case-row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: baseline;
  gap: 12px;
  padding: 16px 32px;
  border-bottom: 2px solid var(--color-divider);
  text-decoration: none;
  color: var(--color-text);
}
.case-row:hover { background: var(--color-accent-100); color: var(--color-text); }

.case-row-num {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 13px;
  line-height: 22px;
  font-feature-settings: 'tnum' 1;
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}

.case-row-body { display: grid; gap: 2px; }
.case-row-title { font-size: 15px; line-height: 22px; }

.case-row-meta {
  font-size: 12.5px;
  line-height: 18px;
  font-feature-settings: 'tnum' 1;
  color: color-mix(in srgb, var(--color-text) 60%, transparent);
}

.case-row-status {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 14px;
  line-height: 22px;
  white-space: nowrap;
}

/* While a fetched fragment is in flight. */
[aria-busy='true'] { opacity: 0.55; transition: opacity 120ms ease; }

/* — closing band ——————————————————————————————————————————— */
.close {
  background: var(--color-accent);
  color: var(--color-bg);
}

.close-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 84px clamp(20px, 5vw, 72px);
}

.close-title {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0 0 0 -0.058em;
}
.close-title span { display: block; }

.cta-row-close { margin-top: 42px; }

.btn-on-accent {
  color: var(--color-bg);
  border-color: var(--color-bg);
}
.btn-on-accent:hover {
  color: var(--color-bg);
  background: color-mix(in srgb, var(--color-bg) 18%, transparent);
}

/* — footer ————————————————————————————————————————————————— */
.footer {
  padding: 56px 0;
  font-size: 13px;
  line-height: 28px;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}

/* — motion ————————————————————————————————————————————————— */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; }
}
