:root {
  color-scheme: light;
  --ink: #1c2926;
  --muted: #64726d;
  --line: #d7e0db;
  --paper: #fbfaf6;
  --panel: #ffffff;
  --green: #23453e;
  --green-soft: #e9f3ee;
  --amber: #c9832b;
  --blue: #31566f;
  --blue-soft: #e9f1f7;
  --danger-soft: #fbefe5;
  --shadow: 0 22px 60px rgba(28, 41, 38, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(251, 250, 246, 0.92);
  border-bottom: 1px solid rgba(215, 224, 219, 0.85);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 210px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--green);
  color: #fff8ea;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav a {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.nav a:hover {
  background: var(--green-soft);
  color: var(--green);
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
  padding-block: clamp(48px, 7vw, 92px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  min-height: calc(100vh - 78px);
  padding-top: clamp(36px, 5vw, 72px);
}

.hero-copy {
  width: 100%;
  min-width: 0;
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
li,
label,
strong,
span {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(42px, 5.2vw, 74px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 16px;
  max-width: 760px;
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0;
}

.lead {
  margin: 24px 0 0;
  max-width: 650px;
  color: var(--muted);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--green);
  color: #fff8ea;
}

.button.secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--green);
}

.button:hover {
  transform: translateY(-1px);
}

.proof-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.proof-list li {
  min-height: 64px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--green);
  font-size: 14px;
  font-weight: 750;
}

.hero-panel {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 580px;
}

.hero-image {
  display: block;
  width: 100%;
  min-height: 390px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.check-card {
  position: absolute;
  right: 24px;
  bottom: -22px;
  width: min(430px, calc(100% - 48px));
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.check-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
}

.check-head strong {
  color: var(--green);
  font-size: 18px;
}

.check-card label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid #edf1ee;
  font-size: 14px;
  font-weight: 700;
}

.check-card input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
  flex: 0 0 auto;
  margin-top: 2px;
}

#scoreHint {
  margin: 14px 0 0;
  padding: 12px;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
}

.notice-band {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  border: 1px solid #ead3ba;
  border-radius: 8px;
  background: var(--danger-soft);
}

.notice-band strong {
  color: #8a521b;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(26px, 5vw, 64px);
}

.split p,
.section-head + p {
  color: var(--muted);
}

.service-grid,
.package-grid,
.output-list,
.law-grid,
.choice-grid,
.bankruptcy-grid {
  display: grid;
  gap: 14px;
}

.service-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-grid article,
.package-grid article,
.output-list div,
.law-grid article,
.choice-grid article,
.bankruptcy-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.choice .section-head p:last-child {
  max-width: 780px;
  color: var(--muted);
}

.choice-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-grid article {
  min-height: 330px;
  padding: 26px;
}

.choice-grid .featured-choice {
  border-color: #c5d7cd;
  background: var(--green-soft);
}

.choice-label {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.choice-grid p {
  margin: 0;
  color: var(--muted);
}

.choice-grid ul {
  margin: 18px 0 0;
  padding-left: 18px;
}

.choice-grid li + li {
  margin-top: 8px;
}

.advantage-strip {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 18px 20px;
  border: 1px solid #c5d7cd;
  border-radius: 8px;
  background: #fff;
}

.advantage-strip strong {
  color: var(--green);
  flex: 0 0 275px;
}

.advantage-strip span {
  color: var(--muted);
}

.bankruptcy .section-head p:last-child {
  max-width: 850px;
  color: var(--muted);
}

.bankruptcy-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bankruptcy-grid article {
  min-height: 310px;
  padding: 22px;
}

.bankruptcy-grid article:nth-child(2) {
  background: var(--green-soft);
}

.bankruptcy-grid article:nth-child(3) {
  background: var(--danger-soft);
}

.bankruptcy-grid ul {
  margin: 14px 0 0;
  padding-left: 18px;
}

.bankruptcy-grid li + li {
  margin-top: 8px;
}

.comparison-table {
  display: grid;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.comparison-table [role="row"] {
  display: grid;
  grid-template-columns: 0.7fr 1fr 1fr;
}

.comparison-table [role="row"] + [role="row"] {
  border-top: 1px solid var(--line);
}

.comparison-table span {
  min-width: 0;
  padding: 14px 16px;
  border-left: 1px solid var(--line);
}

.comparison-table span:first-child {
  border-left: 0;
  color: var(--green);
  font-weight: 850;
}

.comparison-table .table-head {
  background: var(--green);
  color: #fff8ea;
  font-weight: 850;
}

.comparison-table .table-head span:first-child {
  color: #fff8ea;
}

.service-grid article {
  min-height: 215px;
  padding: 20px;
}

.service-grid p,
.package-grid p,
.output-list p,
.law-grid p {
  margin: 0;
  color: var(--muted);
}

.step {
  display: inline-flex;
  margin-bottom: 20px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 900;
}

.section-head {
  margin-bottom: 24px;
}

.package-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.package-grid article {
  padding: 24px;
}

.package-grid .featured {
  border-color: #c5d7cd;
  background: var(--green-soft);
}

.package-grid ul {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--ink);
}

.package-grid li + li {
  margin-top: 8px;
}

.output-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.output-list div {
  min-height: 188px;
  padding: 22px;
}

.output-list div:nth-child(2) {
  background: var(--blue-soft);
}

.output-list div:nth-child(4) {
  background: #f7f0e4;
}

.law-grid {
  grid-template-columns: 0.8fr 0.9fr 1fr;
}

.law-grid article {
  padding: 22px;
}

.law-grid a {
  color: var(--blue);
  font-weight: 800;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.lead-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.lead-form label {
  display: grid;
  gap: 7px;
  color: var(--green);
  font-size: 14px;
  font-weight: 850;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.lead-form textarea {
  resize: vertical;
}

#leadOutput {
  display: none;
  padding: 14px;
  border: 1px solid #c8ded4;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green);
  white-space: pre-wrap;
}

#leadOutput.visible {
  display: block;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 24px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 980px) {
  .hero,
  .split,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-panel {
    min-height: 520px;
  }

  .proof-list,
  .package-grid,
  .law-grid,
  .choice-grid,
  .bankruptcy-grid {
    grid-template-columns: 1fr;
  }

  .output-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 660px) {
  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .section {
    width: min(362px, calc(100vw - 28px));
    max-width: 362px;
    margin-inline: 14px;
    padding-block: 46px;
  }

  .hero {
    display: block;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-panel {
    margin-top: 34px;
  }

  h1 {
    font-size: clamp(32px, 10.4vw, 42px);
    line-height: 1.04;
  }

  .lead {
    font-size: 18px;
  }

  .eyebrow {
    font-size: 12px;
    line-height: 1.3;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .proof-list,
  .service-grid,
  .output-list {
    grid-template-columns: 1fr;
  }

  .proof-list li {
    min-height: auto;
  }

  .advantage-strip {
    flex-direction: column;
  }

  .advantage-strip strong {
    flex: none;
  }

  .comparison-table [role="row"] {
    grid-template-columns: 1fr;
  }

  .comparison-table span {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .comparison-table span:first-child {
    border-top: 0;
  }

  .hero-panel {
    min-height: auto;
  }

  .hero-image {
    min-height: 340px;
  }

  .check-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 14px;
  }

  .notice-band {
    flex-direction: column;
  }
}
