:root {
  --navy: #071d4d;
  --navy-deep: #041232;
  --blue: #175cd3;
  --blue-light: #e8f1ff;
  --orange: #f97316;
  --orange-dark: #d95d0b;
  --green: #0f766e;
  --ink: #14233b;
  --muted: #5b687c;
  --surface: #f4f7fb;
  --line: #d9e1ec;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--white);
  color: var(--ink);
  font-family: Inter, Arial, Helvetica, sans-serif;
  margin: 0;
  overflow-x: hidden;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid #8fc2ff;
  outline-offset: 3px;
}

.hero {
  background:
    linear-gradient(90deg, rgba(4, 18, 50, 0.98) 0%, rgba(7, 29, 77, 0.94) 48%, rgba(7, 29, 77, 0.76) 100%),
    url("../images/hero-justice.jpg");
  background-position: center;
  background-size: cover;
  color: var(--white);
  min-height: 820px;
}

.hero-inner {
  margin: 0 auto;
  max-width: 1320px;
  padding: 22px 28px 52px;
}

.hero-top {
  align-items: center;
  background: rgba(4, 18, 50, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  backdrop-filter: blur(12px);
  display: flex;
  gap: 28px;
  justify-content: space-between;
  min-height: 82px;
  padding: 12px 16px;
}

.logo {
  align-items: center;
  display: inline-flex;
  gap: 13px;
}

.logo-mark {
  align-items: end;
  border-bottom: 3px solid currentColor;
  border-top: 3px solid currentColor;
  color: var(--white);
  display: inline-grid;
  flex: 0 0 auto;
  height: 43px;
  justify-items: center;
  padding: 6px 4px;
  position: relative;
  width: 46px;
}

.logo-mark::before {
  border-bottom: 11px solid currentColor;
  border-left: 21px solid transparent;
  border-right: 21px solid transparent;
  content: "";
  left: 2px;
  position: absolute;
  top: -14px;
}

.logo-mark span,
.logo-mark span::before,
.logo-mark span::after {
  background: currentColor;
  content: "";
  display: block;
  height: 25px;
  width: 4px;
}

.logo-mark span {
  position: relative;
}

.logo-mark span::before,
.logo-mark span::after {
  position: absolute;
  top: 0;
}

.logo-mark span::before {
  left: -13px;
}

.logo-mark span::after {
  right: -13px;
}

.logo strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 850;
  line-height: 1.05;
  text-transform: uppercase;
}

.logo small {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 5px;
}

.nav-actions {
  align-items: center;
  display: flex;
  gap: 26px;
}

.nav-link {
  font-size: 0.98rem;
  font-weight: 700;
}

.nav-link:hover,
.text-call:hover,
.footer-contact a:hover,
.footer-links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.call-button,
.apply-button,
.application-card button,
.final-cta-actions a,
.mobile-action-bar a {
  align-items: center;
  border-radius: 6px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
}

.call-button {
  background: var(--blue);
  box-shadow: 0 8px 22px rgba(23, 92, 211, 0.26);
  min-height: 48px;
  padding: 0 22px;
  transition: background 160ms ease, transform 160ms ease;
}

.call-button:hover {
  background: #0e4caf;
  transform: translateY(-1px);
}

.call-mobile {
  display: none;
}

.hero-grid {
  align-items: center;
  display: grid;
  gap: 56px;
  grid-template-columns: minmax(0, 1.02fr) minmax(430px, 0.78fr);
  padding-top: 52px;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow,
.section-kicker {
  color: #8fc2ff;
  font-size: 0.84rem;
  font-weight: 850;
  margin: 0 0 15px;
  text-transform: uppercase;
}

.hero-copy h1 {
  font-size: 4rem;
  font-weight: 850;
  line-height: 1.04;
  margin: 0;
  max-width: 690px;
}

.hero-copy h1 span {
  color: #ff9a52;
}

.hero-lead {
  color: #e4ebf7;
  font-size: 1.2rem;
  line-height: 1.55;
  margin: 24px 0 26px;
  max-width: 620px;
}

.hero-proof {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
}

.hero-proof li {
  align-items: center;
  display: flex;
  font-size: 1rem;
  font-weight: 700;
}

.hero-proof li::before {
  align-items: center;
  background: var(--green);
  border-radius: 50%;
  content: "✓";
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.72rem;
  height: 22px;
  justify-content: center;
  margin-right: 11px;
  width: 22px;
}

.hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
}

.apply-button {
  background: var(--orange);
  box-shadow: 0 12px 26px rgba(249, 115, 22, 0.24);
  min-height: 54px;
  padding: 0 26px;
  transition: background 160ms ease, transform 160ms ease;
}

.apply-button:hover,
.application-card button:hover,
.final-apply:hover {
  background: var(--orange-dark);
}

.apply-button:hover,
.application-card button:hover,
.final-apply:hover {
  transform: translateY(-1px);
}

.text-call {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
}

.application-card {
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-top: 5px solid var(--orange);
  border-radius: 8px;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.25);
  color: var(--ink);
  display: grid;
  gap: 17px 14px;
  grid-template-columns: 1fr 1fr;
  padding: 27px 30px 30px;
}

.form-heading {
  border-bottom: 1px solid var(--line);
  grid-column: 1 / -1;
  padding-bottom: 20px;
}

.form-heading-top {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 9px;
}

.form-heading-top > span:first-child {
  color: var(--blue);
  display: block;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.secure-note {
  align-items: center;
  color: var(--green);
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 750;
}

.secure-note::before {
  background: var(--green);
  border-radius: 50%;
  content: "";
  height: 7px;
  margin-right: 7px;
  width: 7px;
}

.form-heading h2 {
  font-size: 1.75rem;
  font-weight: 820;
  line-height: 1.15;
  margin: 0;
}

.form-heading p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  margin: 8px 0 0;
}

.application-card label {
  display: grid;
  gap: 7px;
}

.application-card label > span {
  font-size: 0.82rem;
  font-weight: 750;
}

.application-card input,
.application-card select {
  background: #f8fafc;
  border: 1px solid #b9c5d5;
  border-radius: 4px;
  color: var(--ink);
  height: 46px;
  min-width: 0;
  padding: 0 12px;
  width: 100%;
}

.application-card input:focus,
.application-card select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(23, 92, 211, 0.14);
  outline: 0;
}

.full-field {
  grid-column: 1 / -1;
}

.application-card button {
  background: var(--orange);
  border: 0;
  color: var(--white);
  cursor: pointer;
  font-size: 1rem;
  grid-column: 1 / -1;
  min-height: 52px;
  box-shadow: 0 10px 20px rgba(249, 115, 22, 0.2);
  transition: background 160ms ease, transform 160ms ease;
}

.application-card button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.application-card .consent-field {
  align-items: start;
  display: grid;
  gap: 10px;
  grid-template-columns: 18px 1fr;
}

.application-card .consent-field input {
  accent-color: var(--blue);
  height: 18px;
  margin: 2px 0 0;
  padding: 0;
  width: 18px;
}

.application-card .consent-field span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.45;
}

.form-honeypot {
  height: 1px;
  left: -10000px;
  overflow: hidden;
  position: absolute;
  top: auto;
  width: 1px;
}

.form-error {
  background: #fff1f0;
  border-left: 3px solid #c9362b;
  color: #8f2019;
  font-size: 0.78rem;
  grid-column: 1 / -1;
  line-height: 1.45;
  margin: 0;
  padding: 10px 12px;
}

.form-error a {
  font-weight: 800;
  text-decoration: underline;
}

.form-note {
  color: var(--muted);
  font-size: 0.72rem;
  grid-column: 1 / -1;
  line-height: 1.45;
  margin: -5px 0 0;
}

.form-success-card {
  align-content: center;
  justify-items: center;
  min-height: 560px;
  padding: 48px 38px;
  text-align: center;
}

.success-mark {
  align-items: center;
  background: #e7f5f3;
  border-radius: 50%;
  color: var(--green);
  display: flex;
  font-size: 0.72rem;
  font-weight: 900;
  height: 58px;
  justify-content: center;
  margin-bottom: 8px;
  width: 58px;
}

.success-kicker {
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 850;
  margin: 0;
  text-transform: uppercase;
}

.form-success-card h2 {
  color: var(--navy);
  font-size: 1.8rem;
  line-height: 1.2;
  margin: 4px 0 0;
}

.form-success-card > p:not(.success-kicker) {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
  max-width: 400px;
}

.form-success-card a {
  align-items: center;
  border: 1px solid var(--blue);
  border-radius: 6px;
  color: var(--blue);
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
}

.trust-band {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.trust-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 auto;
  max-width: 1320px;
  padding: 0 28px;
}

.trust-inner > div {
  border-left: 1px solid var(--line);
  display: grid;
  gap: 4px 14px;
  grid-template-columns: 38px 1fr;
  padding: 28px 30px;
}

.trust-inner > div:last-child {
  border-right: 1px solid var(--line);
}

.trust-inner strong,
.trust-inner span {
  display: block;
  grid-column: 2;
}

.trust-inner > div::before {
  align-items: center;
  background: #e7f5f3;
  border-radius: 50%;
  color: var(--green);
  content: "01";
  display: flex;
  font-size: 0.7rem;
  font-weight: 850;
  grid-row: 1 / span 2;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.trust-inner > div:nth-child(2)::before {
  content: "02";
}

.trust-inner > div:nth-child(3)::before {
  content: "03";
}

.trust-inner strong {
  color: var(--navy);
  font-size: 1rem;
  margin-bottom: 6px;
}

.trust-inner span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.cases-section {
  background: var(--surface);
  padding: 96px 28px 110px;
}

.section-heading {
  margin: 0 auto 44px;
  max-width: 760px;
  text-align: center;
}

.section-kicker {
  color: var(--blue);
}

.section-heading h2,
.process-heading h2,
.final-cta h2 {
  color: var(--navy);
  font-size: 2.8rem;
  font-weight: 850;
  line-height: 1.08;
  margin: 0;
}

.section-heading > p:last-child,
.process-heading > p:last-child {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 18px auto 0;
}

.case-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1320px;
}

.case-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(14, 36, 74, 0.05);
  display: grid;
  grid-column: span 4;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.case-card:nth-child(n + 4) {
  grid-column: span 3;
}

.case-card:hover {
  border-color: #b9c9df;
  box-shadow: 0 16px 32px rgba(14, 36, 74, 0.1);
  transform: translateY(-3px);
}

.case-card-media {
  overflow: hidden;
  position: relative;
}

.case-card img {
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  transition: transform 300ms ease;
  width: 100%;
}

.case-card:hover img {
  transform: scale(1.025);
}

.case-number {
  align-items: center;
  background: rgba(4, 18, 50, 0.88);
  bottom: 12px;
  color: var(--white);
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 850;
  height: 30px;
  justify-content: center;
  position: absolute;
  right: 12px;
  width: 34px;
}

.case-card-copy {
  padding: 24px 24px 28px;
}

.case-card:nth-child(n + 4) .case-card-copy {
  padding: 21px 21px 25px;
}

.case-category {
  color: var(--orange-dark);
  display: block;
  font-size: 0.7rem;
  font-weight: 850;
  margin-bottom: 9px;
  text-transform: uppercase;
}

.case-card h3 {
  color: var(--navy);
  font-size: 1.32rem;
  font-weight: 820;
  line-height: 1.22;
  margin: 0 0 11px;
}

.case-card:nth-child(n + 4) h3 {
  font-size: 1.12rem;
}

.case-card p {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.6;
  margin: 0;
}

.process-section {
  background: var(--white);
  padding: 100px 28px;
}

.process-inner {
  display: grid;
  gap: 80px;
  grid-template-columns: 0.72fr 1.28fr;
  margin: 0 auto;
  max-width: 1220px;
}

.process-heading > p:last-child {
  margin-left: 0;
}

.process-list {
  border-top: 1px solid var(--line);
  list-style: none;
  margin: 0;
  padding: 0;
}

.process-list li {
  align-items: start;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 22px;
  grid-template-columns: 48px 1fr;
  padding: 26px 0;
}

.process-list > li > span {
  align-items: center;
  background: var(--blue-light);
  border-radius: 4px;
  color: var(--orange);
  display: flex;
  font-size: 0.84rem;
  font-weight: 850;
  height: 42px;
  justify-content: center;
  padding: 0;
  width: 42px;
}

.process-list h3 {
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 820;
  margin: 0 0 7px;
}

.process-list p {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
  margin: 0;
}

.final-cta {
  align-items: center;
  background: #e9f7f5;
  border-top: 1px solid #bfe2de;
  display: flex;
  gap: 40px;
  justify-content: space-between;
  padding: 52px max(28px, calc((100% - 1220px) / 2));
}

.final-cta h2 {
  font-size: 2rem;
  max-width: 760px;
}

.final-cta .section-kicker {
  color: var(--green);
}

.final-cta-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 12px;
}

.final-cta-actions a {
  min-height: 52px;
  padding: 0 22px;
  transition: background 160ms ease, transform 160ms ease;
}

.final-call {
  border: 1px solid var(--green);
  color: var(--green);
}

.final-call:hover {
  background: #d9efec;
}

.final-apply {
  background: var(--orange);
  color: var(--white);
}

.site-footer {
  background: var(--navy-deep);
  color: var(--white);
  padding: 68px 28px 32px;
}

.footer-inner {
  display: grid;
  gap: 64px;
  grid-template-columns: 1.25fr 0.85fr 0.55fr;
  margin: 0 auto;
  max-width: 1220px;
  padding-bottom: 52px;
}

.footer-brand > p {
  color: #c5d1e4;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 24px 0 0;
  max-width: 430px;
}

.footer-contact,
.footer-links {
  align-content: start;
  display: grid;
  gap: 12px;
}

.footer-contact h2,
.footer-links h2 {
  font-size: 0.85rem;
  font-weight: 850;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.footer-contact a,
.footer-contact p,
.footer-links a {
  color: #c5d1e4;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
  overflow-wrap: anywhere;
}

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: #8fa0ba;
  font-size: 0.76rem;
  line-height: 1.5;
  margin: 0 auto;
  max-width: 1220px;
  padding-top: 24px;
}

.mobile-action-bar {
  display: none;
}

.thank-you-page {
  background: var(--surface);
  border-top: 5px solid var(--orange);
  min-height: 100vh;
}

.thank-you-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1160px;
  min-height: 86px;
  padding: 16px 28px;
}

.thank-you-page .logo-mark {
  color: var(--navy);
}

.thank-you-page .logo strong {
  color: var(--navy);
}

.thank-you-page .logo small {
  color: var(--muted);
}

.thank-you-phone {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 850;
  min-height: 44px;
  padding: 0 16px;
}

.thank-you-confirmation {
  background: var(--navy);
  border-top: 1px solid #173467;
  color: var(--white);
  padding: 54px 28px 74px;
}

.thank-you-inner {
  margin: 0 auto;
  max-width: 1100px;
}

.confirmation-inner {
  padding-right: min(12vw, 150px);
}

.match-status {
  align-items: center;
  color: #9ce6d0;
  display: flex;
  font-size: 0.76rem;
  font-weight: 850;
  margin: 0 0 22px;
  text-transform: uppercase;
}

.match-status span {
  align-items: center;
  background: var(--green);
  border-radius: 50%;
  color: var(--white);
  display: inline-flex;
  font-size: 0.58rem;
  height: 28px;
  justify-content: center;
  margin-right: 10px;
  width: 28px;
}

.confirmation-inner > .section-kicker {
  color: #79aaff;
  margin-bottom: 10px;
}

.confirmation-inner > h1 {
  color: var(--white);
  font-size: 3.08rem;
  font-weight: 850;
  line-height: 1.06;
  margin: 0;
  max-width: 760px;
}

.thank-you-lead {
  color: #cbd7ea;
  font-size: 1.08rem;
  line-height: 1.62;
  margin: 20px 0 0;
  max-width: 820px;
}

.thank-you-details {
  background: var(--surface);
  padding: 0 28px 58px;
}

.match-summary {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(4, 18, 50, 0.1);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: -30px 0 28px;
  overflow: hidden;
  position: relative;
}

.match-summary > div {
  border-right: 1px solid var(--line);
  min-width: 0;
  padding: 21px 24px;
}

.match-summary > div:last-child {
  border-right: 0;
}

.match-summary dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.match-summary dd {
  color: var(--navy);
  font-size: 1.04rem;
  font-weight: 800;
  line-height: 1.4;
  margin: 0;
  overflow-wrap: anywhere;
}

.thank-you-content {
  align-items: stretch;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.55fr);
}

.law-firm-note {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--orange);
  border-radius: 6px;
  margin: 0;
  padding: 28px;
}

.note-label {
  color: var(--orange-dark);
  display: block;
  font-size: 0.7rem;
  font-weight: 900;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.law-firm-note strong {
  color: var(--navy);
  display: block;
  font-size: 1.42rem;
  line-height: 1.22;
  margin-bottom: 12px;
}

.law-firm-note p {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.6;
  margin: 0;
}

.thank-you-next {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px 30px 12px;
}

.thank-you-next h2 {
  color: var(--navy);
  font-size: 1.7rem;
  line-height: 1.16;
  margin: 0 0 12px;
}

.thank-you-next ol {
  display: grid;
  grid-template-columns: 1fr;
  list-style: none;
  margin: 0;
  padding: 0;
}

.thank-you-next li {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  grid-template-columns: 38px 1fr;
  padding: 16px 0;
}

.thank-you-next li > span {
  align-items: center;
  background: var(--blue-light);
  border-radius: 50%;
  color: var(--blue);
  display: flex;
  font-size: 0.7rem;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.thank-you-next h3 {
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.35;
  margin: 0 0 7px;
}

.thank-you-next li p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
  margin: 0;
}

.thank-you-actions {
  align-items: center;
  display: flex;
  gap: 18px 24px;
  margin-top: 26px;
}

.thank-you-actions a {
  align-items: center;
  border-radius: 6px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
}

.thank-you-call {
  background: var(--orange);
  color: var(--white);
}

.thank-you-home {
  border: 1px solid var(--blue);
  color: var(--blue);
}

.thank-you-footer {
  background: #e9eef6;
  color: var(--muted);
  display: flex;
  font-size: 0.76rem;
  justify-content: space-between;
  padding: 26px max(28px, calc((100vw - 1100px) / 2));
}

.thank-you-footer p {
  margin: 0;
}

@media (max-width: 1060px) {
  .hero-copy h1 {
    font-size: 3.35rem;
  }

  .hero-grid {
    gap: 38px;
    grid-template-columns: minmax(0, 1fr) minmax(390px, 0.85fr);
  }

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

  .case-card,
  .case-card:nth-child(n + 4) {
    grid-column: span 6;
  }

  .case-card:last-child {
    grid-column: 4 / span 6;
    justify-self: center;
    width: 100%;
  }
}

@media (max-width: 860px) {
  .hero {
    background-position: 68% center;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding-top: 44px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .application-card {
    max-width: 720px;
    width: 100%;
  }

  .trust-inner {
    grid-template-columns: 1fr;
    padding: 0 28px;
  }

  .trust-inner > div,
  .trust-inner > div:last-child {
    border-left: 0;
    border-right: 0;
    border-top: 1px solid var(--line);
    padding: 22px 0;
  }

  .trust-inner > div:first-child {
    border-top: 0;
  }

  .process-inner {
    gap: 44px;
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .thank-you-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: 0;
  }

  body:has(.mobile-action-bar) {
    padding-bottom: 66px;
  }

  .hero {
    background-position: 72% center;
  }

  .hero-inner {
    padding: 18px 16px 42px;
  }

  .hero-top {
    gap: 12px;
    min-height: 64px;
  }

  .logo {
    gap: 9px;
    min-width: 0;
  }

  .logo-mark {
    height: 34px;
    width: 36px;
  }

  .logo-mark::before {
    border-bottom-width: 8px;
    border-left-width: 16px;
    border-right-width: 16px;
    top: -11px;
  }

  .logo-mark span,
  .logo-mark span::before,
  .logo-mark span::after {
    height: 19px;
    width: 3px;
  }

  .logo-mark span::before {
    left: -10px;
  }

  .logo-mark span::after {
    right: -10px;
  }

  .logo strong {
    font-size: 0.94rem;
  }

  .logo small {
    font-size: 0.64rem;
  }

  .nav-link {
    display: none;
  }

  .call-button {
    min-height: 42px;
    padding: 0 14px;
  }

  .call-desktop {
    display: none;
  }

  .call-mobile {
    display: inline;
  }

  .hero-grid {
    gap: 34px;
    padding-top: 34px;
  }

  .hero-copy h1 {
    font-size: 2.55rem;
    line-height: 1.06;
  }

  .hero-lead {
    font-size: 1.02rem;
  }

  .hero-actions {
    align-items: stretch;
    display: grid;
    gap: 14px;
  }

  .apply-button {
    width: 100%;
  }

  .text-call {
    text-align: center;
  }

  .application-card {
    gap: 15px;
    grid-template-columns: 1fr;
    padding: 22px 18px;
  }

  .form-heading,
  .full-field,
  .application-card button,
  .form-note {
    grid-column: 1;
  }

  .form-heading h2 {
    font-size: 1.52rem;
  }

  .application-card input,
  .application-card select {
    height: 48px;
  }

  .trust-inner {
    padding: 0 18px;
  }

  .cases-section,
  .process-section {
    padding: 68px 16px;
  }

  .section-heading {
    margin-bottom: 34px;
    text-align: left;
  }

  .section-heading h2,
  .process-heading h2 {
    font-size: 2.2rem;
  }

  .case-grid {
    grid-template-columns: 1fr;
  }

  .case-card,
  .case-card:nth-child(n + 4),
  .case-card:last-child {
    grid-column: auto;
    justify-self: stretch;
    width: 100%;
  }

  .case-card-copy,
  .case-card:nth-child(n + 4) .case-card-copy {
    padding: 20px 20px 24px;
  }

  .case-card:nth-child(n + 4) h3 {
    font-size: 1.32rem;
  }

  .process-list li {
    gap: 12px;
    grid-template-columns: 38px 1fr;
  }

  .final-cta {
    align-items: stretch;
    flex-direction: column;
    padding: 40px 18px;
  }

  .final-cta h2 {
    font-size: 1.8rem;
  }

  .final-cta-actions {
    align-items: stretch;
    flex-direction: column-reverse;
    width: 100%;
  }

  .final-cta-actions a {
    width: 100%;
  }

  .site-footer {
    padding: 54px 18px 30px;
  }

  .footer-inner {
    gap: 36px;
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }

  .mobile-action-bar {
    background: var(--white);
    border-top: 1px solid var(--line);
    bottom: 0;
    display: grid;
    gap: 10px;
    grid-template-columns: 0.8fr 1.2fr;
    left: 0;
    padding: 9px 12px;
    position: fixed;
    right: 0;
    z-index: 20;
  }

  .mobile-action-bar a {
    min-height: 46px;
  }

  .mobile-action-bar a:first-child {
    border: 1px solid var(--blue);
    color: var(--blue);
  }

  .mobile-action-bar a:last-child {
    background: var(--orange);
    color: var(--white);
  }

  .thank-you-header {
    gap: 12px;
    min-height: 78px;
    padding: 15px 16px;
  }

  .thank-you-header .logo small {
    display: none;
  }

  .thank-you-phone {
    font-size: 0.82rem;
  }

  .thank-you-confirmation {
    padding: 42px 16px 62px;
  }

  .confirmation-inner {
    padding-right: 0;
  }

  .confirmation-inner > h1 {
    font-size: 2.16rem;
  }

  .thank-you-lead {
    font-size: 1rem;
  }

  .thank-you-details {
    padding: 0 16px 44px;
  }

  .match-summary {
    grid-template-columns: 1fr;
    margin-top: -24px;
  }

  .match-summary > div,
  .match-summary > div:first-child {
    border-bottom: 1px solid var(--line);
    border-right: 0;
    padding: 16px 18px;
  }

  .match-summary > div:last-child {
    border-bottom: 0;
  }

  .law-firm-note {
    padding: 22px;
  }

  .thank-you-next {
    padding: 24px 22px 8px;
  }

  .thank-you-next h2 {
    font-size: 1.65rem;
  }

  .thank-you-next ol {
    grid-template-columns: 1fr;
  }

  .thank-you-next li,
  .thank-you-next li:first-child,
  .thank-you-next li:last-child {
    border-top: 1px solid var(--line);
    padding: 17px 0;
  }

  .thank-you-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .thank-you-actions a {
    width: 100%;
  }

  .thank-you-footer {
    display: grid;
    gap: 8px;
    padding: 24px 16px;
  }
}

@media (max-width: 390px) {
  .logo small {
    display: none;
  }

  .hero-copy h1 {
    font-size: 2.28rem;
  }

  .application-card {
    padding: 20px 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .call-button,
  .apply-button,
  .application-card button,
  .case-card,
  .case-card img,
  .final-cta-actions a {
    transition: none;
  }

  .call-button:hover,
  .apply-button:hover,
  .application-card button:hover,
  .case-card:hover,
  .case-card:hover img,
  .final-apply:hover {
    transform: none;
  }
}
