/* ============================================================
   Dave Wood Bail Bonds
   Clear Path redesign

   Direction: a calm Colorado night road. Deep alpine ink gives
   the site authority, warm paper keeps long pages readable, and
   rescue orange is reserved for the one action that matters most.
   ============================================================ */

:root,
html[data-theme] {
  --bg-0: #f7f4ec;
  --bg-1: #eee9dd;
  --surface: #fffdf8;
  --surface-hi: #f8f5ed;
  --border: #d8d4c9;
  --border-strong: #b8c1c3;
  --text-hi: #102838;
  --text-mid: #445967;
  --text-dim: #61727b;
  --mint: #17627d;
  --mint-deep: #0f4b61;
  --success: #19673b;
  --error: #a7352b;
  --mint-wash: rgba(23, 98, 125, 0.09);
  --cta: #f26632;
  --cta-hi: #ff7843;
  --cta-ink: #10212c;
  --btn-ghost-bd: rgba(255, 255, 255, 0.7);
  --wrap: min(100%, 1240px);
  --measure: 44rem;
  --r-s: 6px;
  --r-m: 10px;
  --r-l: 18px;
  --shadow-hard: 0 7px 0 #9f3b1b;
  --chevron: var(--chevron-on-light);
  color-scheme: light;
}

body {
  background: var(--bg-0);
  color: var(--text-mid);
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--mint); }
a:hover { color: var(--mint-deep); }

h1,
h2,
h3,
.display {
  color: var(--text-hi);
  text-transform: none;
  letter-spacing: -0.025em;
  line-height: 1.03;
}

h1 { font-size: clamp(2.8rem, 6vw, 5.6rem); }
h2 { font-size: clamp(2.25rem, 4.5vw, 4rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }

.lead {
  color: var(--text-mid);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.55;
}

.eyebrow,
.mono-label {
  color: var(--mint);
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.eyebrow::before {
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: var(--cta);
}

.wrap { padding-inline: clamp(20px, 4vw, 48px); }
.section { padding: clamp(70px, 9vw, 116px) 0; }

html[data-theme] .section:not(.band),
html[data-theme] .page-head:not(.has-photo) {
  --bg-0: #f7f4ec;
  --bg-1: #eee9dd;
  --surface: #fffdf8;
  --surface-hi: #f8f5ed;
  --border: #d8d4c9;
  --border-strong: #b8c1c3;
  --text-hi: #102838;
  --text-mid: #445967;
  --text-dim: #61727b;
  --mint: #17627d;
  --mint-deep: #0f4b61;
  --success: #19673b;
  --error: #a7352b;
  --mint-wash: rgba(23, 98, 125, 0.09);
  --chevron: var(--chevron-on-light);
  --btn-ghost-bd: rgba(16, 40, 56, 0.42);
  background: #f7f4ec;
  color: var(--text-mid);
  color-scheme: light;
}

html[data-theme] .section.band,
.section.band {
  --bg-0: #e7eef0;
  --bg-1: #edf2f3;
  --surface: #fffdf8;
  --surface-hi: #f8f5ed;
  --border: #cdd9dc;
  --border-strong: #aebfc4;
  --text-hi: #102838;
  --text-mid: #445967;
  --text-dim: #61727b;
  --mint: #17627d;
  --mint-deep: #0f4b61;
  --success: #19673b;
  --error: #a7352b;
  --mint-wash: rgba(23, 98, 125, 0.09);
  --chevron: var(--chevron-on-light);
  --btn-ghost-bd: rgba(16, 40, 56, 0.42);
  background: #e7eef0;
  color: var(--text-mid);
  color-scheme: light;
}

.reveal,
.reveal.in {
  opacity: 1;
  transform: none;
  transition: none;
}

.legacy-home[hidden] { display: none !important; }

/* Remove the old monitor-line ornament. Section tone now does the separating. */
.section:not(.band)::before,
.section:not(.band)::after,
.split::before,
.split::after,
.cta-band::before,
.cta-band::after {
  content: none !important;
  display: none !important;
}

.ekg-hero { display: none !important; }

/* Buttons */
.btn {
  min-height: 52px;
  padding: 16px 24px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: none;
}

.btn-call {
  color: var(--cta-ink);
  background: var(--cta);
  border-color: #ca4b20;
  box-shadow: 0 5px 0 #a93c18;
}

.btn-call:hover {
  color: var(--cta-ink);
  background: var(--cta-hi);
  transform: translateY(-1px);
  box-shadow: 0 6px 0 #a93c18;
}

.btn-call:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #a93c18;
}

.btn-mint {
  color: var(--mint-deep);
  background: transparent;
  border-color: var(--mint);
}

.btn-mint:hover {
  color: #ffffff;
  background: var(--mint);
}

.btn-ghost {
  color: var(--text-hi);
  background: transparent;
  border-color: rgba(16, 40, 56, 0.4);
}

.btn-ghost:hover {
  color: var(--mint-deep);
  border-color: var(--mint);
  background: rgba(23, 98, 125, 0.08);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mint-deep);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

/* Header */
.nav,
html[data-theme="light"] .nav,
html[data-theme="light"] .nav.scrolled {
  background: rgba(247, 244, 236, 0.96);
  border-bottom: 1px solid rgba(16, 40, 56, 0.1);
  box-shadow: none;
}

.nav.scrolled { box-shadow: 0 8px 28px rgba(16, 40, 56, 0.08); }
.nav-inner { height: 76px; }

.brand { color: var(--text-hi); }
.brand:hover { color: var(--text-hi); }
.brand .mark { width: 40px; height: 40px; }
.brand .mark path:first-child { fill: #102838 !important; stroke: #f26632 !important; }
.brand .mark path:last-child { stroke: #8bc0d0 !important; }

.brand-text .brand-top {
  color: var(--text-dim);
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.12em;
}

.brand-text .brand-main {
  color: var(--text-hi);
  font-size: 1.25rem;
  letter-spacing: 0.015em;
  text-transform: none;
}

.nav-links { gap: 24px; }
.nav-links a {
  color: var(--text-mid);
  font-size: 0.94rem;
  font-weight: 650;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--mint-deep); }

.theme-toggle,
.theme-row { display: none !important; }

.nav-toggle {
  color: var(--text-hi);
  background: transparent;
  border-color: rgba(16, 40, 56, 0.28);
}

.nav-panel {
  background: #f7f4ec;
  border-top-color: var(--border);
  box-shadow: 0 24px 44px rgba(16, 40, 56, 0.18);
}

.nav-panel a,
.nav-group > summary { color: var(--text-hi); }

.nav-panel a,
.nav-group { border-color: var(--border); }

/* The logo already returns home, and location/about links remain in the footer. */
.nav-panel > .wrap > a[href="/about"],
.nav-panel > .wrap > .nav-group:nth-of-type(2) { display: none; }

@media (min-width: 1000px) {
  .nav-links a[href="/about"],
  .nav-links a[href="/contact"] { display: none; }
}

/* Homepage hero */
.home-hero {
  min-height: 720px;
  padding: clamp(76px, 9vw, 118px) 0 clamp(104px, 12vw, 150px);
  align-items: center;
  isolation: isolate;
}

.home-hero .hero-media img {
  object-position: center 58%;
  filter: saturate(0.76) contrast(1.04);
}

.home-hero .hero-media::after {
  background:
    linear-gradient(90deg, rgba(8, 28, 42, 0.97) 0%, rgba(8, 28, 42, 0.91) 42%, rgba(8, 28, 42, 0.58) 72%, rgba(8, 28, 42, 0.68) 100%),
    linear-gradient(180deg, rgba(8, 28, 42, 0.12) 0%, rgba(8, 28, 42, 0.42) 100%);
}

.home-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.home-hero-copy { max-width: 760px; }
.home-hero .eyebrow { color: #9bc9d8; }
.home-hero .eyebrow::before { background: var(--cta); }

.home-hero h1 {
  max-width: 12ch;
  margin-bottom: 24px;
  color: #fffdf8;
  font-size: clamp(3.1rem, 6.7vw, 6.25rem);
  line-height: 0.98;
}

.home-hero h1 .home-headline-accent { color: #ff895d; }

.home-hero .lead {
  max-width: 590px;
  margin-bottom: 30px;
  color: #dce7e9;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
}

.home-hero .hero-actions { margin: 0; }
.home-hero .btn-ghost { color: #ffffff; border-color: rgba(255, 255, 255, 0.64); }
.home-hero .btn-ghost:hover { color: #ffffff; background: rgba(255, 255, 255, 0.1); border-color: #ffffff; }

.home-primary-call { min-width: 250px; }

.home-hero-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 0;
  color: #c3d1d5;
  font-size: 0.92rem;
}

.home-hero-note span {
  width: 10px;
  height: 10px;
  border: 2px solid #0b2838;
  border-radius: 50%;
  background: #70ca91;
  box-shadow: 0 0 0 3px rgba(112, 202, 145, 0.2);
}

.home-choice-card {
  --text-hi: #102838;
  --text-mid: #445967;
  --text-dim: #61727b;
  --mint: #17627d;
  --mint-deep: #0f4b61;
  --border: #d8d4c9;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  background: rgba(247, 244, 236, 0.96);
  box-shadow: 0 26px 70px rgba(1, 11, 18, 0.34);
  backdrop-filter: blur(14px);
}

.home-choice-title {
  margin: 0;
  padding: 20px 22px 14px;
  color: var(--text-dim);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-choice-card > a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 86px;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  color: var(--text-hi);
}

.home-choice-card > a:hover { background: #ffffff; color: var(--mint-deep); }
.home-choice-card > a:first-of-type { background: rgba(242, 102, 50, 0.08); }
.home-choice-card > a:first-of-type:hover { background: rgba(242, 102, 50, 0.14); }

.home-choice-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--mint);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

.home-choice-card > a:first-of-type .home-choice-icon { color: var(--cta-ink); background: var(--cta); }
.home-choice-card strong { display: block; color: inherit; font-size: 1rem; }
.home-choice-card small { display: block; margin-top: 2px; color: var(--text-dim); font-size: 0.83rem; }
.home-choice-card svg { width: 20px; color: var(--mint); }

.mountain-cut {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: -1px;
  left: 0;
  height: clamp(50px, 6vw, 88px);
  background: #f7f4ec;
  clip-path: polygon(0 68%, 17% 42%, 31% 58%, 47% 18%, 57% 48%, 72% 30%, 86% 58%, 100% 36%, 100% 100%, 0 100%);
}

@media (min-width: 980px) {
  .home-hero-grid { grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr); }
}

/* Proof strip */
.home-proof { background: #f7f4ec; }

.home-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding-block: 22px 34px;
}

.home-proof-grid > div {
  display: flex;
  flex-direction: column;
  padding: 14px 18px;
  border-left: 1px solid var(--border);
}

.home-proof-grid > div:nth-child(odd) { border-left: 0; }
.home-proof-grid strong { color: var(--text-hi); font-size: 1.08rem; }
.home-proof-grid span { color: var(--text-dim); font-size: 0.82rem; }

@media (min-width: 760px) {
  .home-proof-grid { grid-template-columns: repeat(4, 1fr); }
  .home-proof-grid > div:nth-child(odd) { border-left: 1px solid var(--border); }
  .home-proof-grid > div:first-child { border-left: 0; }
}

/* Homepage sections */
.home-centered {
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
}

.home-centered .eyebrow { justify-content: center; }
.home-centered .lead { margin-inline: auto; }

.home-steps {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: clear-step;
}

.home-steps li {
  position: relative;
  margin: 0;
  padding: 32px 28px 30px;
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(16, 40, 56, 0.07);
}

.home-step-number {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 24px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--mint);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.home-steps h3 { margin-bottom: 10px; }
.home-steps p { margin: 0; font-size: 0.96rem; }
.home-process-action { margin-top: 34px; text-align: center; }

@media (min-width: 820px) {
  .home-steps { grid-template-columns: repeat(3, 1fr); }
  .home-steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    z-index: 2;
    top: 54px;
    right: -20px;
    width: 21px;
    border-top: 2px solid var(--mint);
  }
}

.home-ready-grid {
  display: grid;
  gap: clamp(36px, 6vw, 78px);
  align-items: center;
}

.home-ready-grid > div { max-width: 620px; }
.home-ready .lead { margin-bottom: 28px; }

.home-checklist {
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}

.home-checklist li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  margin: 0;
  padding: 18px 0;
  border-top: 1px solid var(--border);
}

.home-checklist li:last-child { border-bottom: 1px solid var(--border); }
.home-checklist li > span { color: var(--success); font-size: 1.3rem; font-weight: 700; }
.home-checklist strong { display: block; color: var(--text-hi); }
.home-checklist small { display: block; margin-top: 2px; color: var(--text-dim); font-size: 0.86rem; }

.home-dave-card {
  position: relative;
  overflow: hidden;
  max-width: 500px;
  margin: 0;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 24px 54px rgba(16, 40, 56, 0.16);
}

.home-dave-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 54% top; }

.home-dave-card figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  color: #ffffff;
  background: rgba(8, 28, 42, 0.9);
  backdrop-filter: blur(10px);
}

.home-dave-card figcaption strong { display: block; color: #ffffff; font-size: 1.1rem; }
.home-dave-card figcaption span { display: block; margin-top: 2px; color: #c6d5d9; font-size: 0.8rem; }

@media (min-width: 900px) {
  .home-ready-grid { grid-template-columns: 1.08fr 0.92fr; }
  .home-dave-card { justify-self: end; }
}

.home-help-grid { display: grid; gap: 18px; }

.home-help-card {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  color: var(--text-mid);
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(16, 40, 56, 0.07);
}

.home-help-card:hover {
  color: var(--text-mid);
  border-color: var(--mint);
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(16, 40, 56, 0.12);
}

.home-help-label {
  margin-bottom: auto;
  color: var(--mint);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-help-card h3 { margin-top: 34px; }
.home-help-card p { margin: 0 0 22px; }
.home-help-card .text-link { margin-top: auto; }

@media (min-width: 820px) { .home-help-grid { grid-template-columns: repeat(3, 1fr); } }

.home-faq-grid { display: grid; gap: clamp(36px, 6vw, 78px); align-items: start; }
.home-faq-grid > div:first-child { max-width: 490px; }
.home-faq .clipboard { padding: 8px 24px; }
.home-faq details.faq summary { padding-block: 22px; }
.home-faq details.faq .faq-a { padding-left: 0; }

@media (min-width: 900px) { .home-faq-grid { grid-template-columns: 0.78fr 1.22fr; } }

.home-final {
  padding: clamp(64px, 8vw, 96px) 0;
  color: #dce7e9;
  background: #102838;
}

.home-final .eyebrow { color: #9bc9d8; }
.home-final h2 { margin-bottom: 10px; color: #ffffff; }
.home-final p { margin: 0; color: #c3d1d5; }
.home-final .btn-ghost { color: #ffffff; border-color: rgba(255, 255, 255, 0.55); }

.home-final-inner { display: grid; gap: 30px; align-items: center; }
.home-final .hero-actions { margin: 0; }

@media (min-width: 880px) {
  .home-final-inner { grid-template-columns: 1fr auto; }
  .home-final .hero-actions { justify-content: flex-end; }
}

/* Interior pages */
.page-head,
.page-head.has-photo {
  min-height: 430px;
  padding: clamp(78px, 9vw, 110px) 0;
}

.page-head.has-photo::before {
  background: linear-gradient(90deg, rgba(8, 28, 42, 0.94) 0%, rgba(8, 28, 42, 0.78) 58%, rgba(8, 28, 42, 0.5) 100%);
}

.page-head.has-photo h1 { color: #ffffff; text-transform: none; }
.page-head.has-photo .lead { color: #dce7e9; }
.page-head.has-photo .crumbs { color: #b8c9ce; }

.card,
.svc-card,
.clipboard,
.step-card,
.step-panel,
.aside-card,
.wizard-card {
  border-color: var(--border);
  border-radius: var(--r-l);
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(16, 40, 56, 0.08);
}

.svc-card::before { background: var(--mint); }
.ghost-numeral { -webkit-text-stroke-color: #9aadb3; }
.steps::before { background: var(--mint); }

.field input:not([type="checkbox"]):not([type="radio"]),
.field select,
.field textarea {
  min-height: 52px;
  border: 1.5px solid #aebdc1;
  color: var(--text-hi);
  background-color: #ffffff;
}

.field input[type="date"],
.field input[type="time"],
.field input[type="datetime-local"] { height: 52px; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(23, 98, 125, 0.15);
}

/* Step headings receive programmatic focus after navigation. They are not
   keyboard controls, so avoid making them look like another input field. */
.step-title:focus,
.step-title:focus-visible { outline: none; }

.pills label { border-color: #aebdc1; background: #ffffff; }
.pills label:has(input:checked) { border-color: var(--mint); background: var(--mint-wash); }
.progress .step-dot { border-color: #aebdc1; background: #ffffff; }
.progress .active .step-dot,
.progress .done .step-dot { border-color: var(--mint); background: var(--mint); color: #ffffff; }

.progress li.current .pnum,
.progress li.done .pnum {
  color: #ffffff;
  border-color: var(--mint);
  background: var(--mint);
}

/* Footer */
.footer {
  --text-hi: #f8f5ed;
  --text-mid: #b8c9ce;
  --text-dim: #839aa3;
  --mint: #8bc0d0;
  --border: #284353;
  background: #091c28;
}

.footer .brand .mark path:first-child { fill: #102838 !important; }
.footer .brand-text .brand-main { color: #ffffff; }

/* Mobile */
@media (max-width: 767px) {
  .wrap { padding-inline: 18px; }
  .section { padding-block: 66px; }
  .nav-inner { height: 68px; }
  .brand-text .brand-main { font-size: 0.98rem; }
  .home-hero {
    min-height: auto;
    padding: 64px 0 108px;
  }
  .home-hero-grid { gap: 34px; }
  .home-hero h1 { font-size: clamp(3rem, 15vw, 4.5rem); }
  .home-hero .hero-actions { display: grid; grid-template-columns: 1fr; }
  .home-hero .btn { width: 100%; min-width: 0; }
  .home-choice-card > a { min-height: 82px; padding-inline: 16px; }
  .home-proof-grid > div { padding-inline: 12px; }
  .home-proof-grid strong { font-size: 0.98rem; }
  .home-dave-card { max-width: none; }
  .home-help-card { min-height: 260px; padding: 26px; }
  .home-final .hero-actions { display: grid; grid-template-columns: 1fr; }
  .home-final .btn { width: 100%; }
  .page-head,
  .page-head.has-photo { min-height: 390px; padding: 70px 0; }

  /* The sentence below the dots already names the current step. Repeating six
     labels in a phone-width row makes the form harder to scan. */
  .progress { margin-bottom: 12px; }
  .progress li { gap: 0; }
  .progress li .plabel { display: none; }
  .progress-status { margin-top: 14px; }
}

@media (max-width: 429px) {
  .brand .mark { width: 34px; height: 34px; }
  .brand-text .brand-main { font-size: 0.9rem; }
  .nav-cta .btn-call { padding-inline: 12px; }
  .home-choice-card strong { font-size: 0.94rem; }
  .home-choice-card small { font-size: 0.78rem; }
}

@media (prefers-reduced-motion: reduce) {
  .home-help-card,
  .btn { transition: none; }
}

@media print {
  .home-choice-card,
  .mountain-cut,
  .home-proof,
  .home-final { display: none; }
}

/* ============================================================
   Full-width alignment pass

   Every major block shares one viewport gutter. Desktop splits
   use exact halves and stretch both children to the same height.
   ============================================================ */

:root,
html[data-theme] {
  --page-gutter: clamp(22px, 3.6vw, 78px);
  --wrap: 100%;
}

.wrap {
  width: 100%;
  max-width: none;
  padding-right: var(--page-gutter);
  padding-left: var(--page-gutter);
}

.section {
  overflow: clip;
  padding-block: clamp(58px, 7vh, 82px);
  border-top: 1px solid rgba(16, 40, 56, 0.08);
}

.sec-head {
  width: 100%;
  max-width: none;
  margin-bottom: clamp(28px, 3.5vh, 42px);
}

.sec-head h2 { max-width: 22ch; }
.sec-head .lead { max-width: 62ch; }

.home-centered {
  width: 100%;
  max-width: none;
  margin-right: 0;
  margin-left: 0;
  text-align: left;
}

.home-centered .eyebrow { justify-content: flex-start; }
.home-centered .lead { margin-left: 0; }

/* Header follows the same edge grid as the page below it. */
.nav-inner { gap: clamp(22px, 2.4vw, 48px); }
.nav-links { margin-left: auto; }

/* Hero: one desktop viewport, with equal columns sized by their content. */
.home-hero {
  min-height: 680px;
  padding: clamp(30px, 4vh, 44px) 0;
}

.home-hero-grid {
  width: 100%;
  gap: clamp(22px, 2.4vw, 46px);
  align-items: stretch;
  align-content: center;
}

.home-hero-copy,
.home-choice-card {
  width: 100%;
  min-width: 0;
  min-height: 0;
  border-radius: 24px;
}

.home-hero-copy {
  display: flex;
  max-width: none;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 3vw, 52px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(7, 28, 42, 0.7);
  box-shadow: 0 26px 70px rgba(1, 11, 18, 0.24);
  backdrop-filter: blur(8px);
}

.home-hero h1 {
  width: 100%;
  max-width: none;
  margin-bottom: 18px;
  color: #fffdf8;
  font-family: var(--font-body);
  font-size: clamp(3.25rem, min(4.7vw, 8vh), 4.85rem);
  font-weight: 700;
  line-height: 1.01;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

.home-headline-line {
  display: block;
  width: 100%;
  color: inherit;
  white-space: nowrap;
}

.home-hero .lead {
  max-width: 48ch;
  margin-bottom: 22px;
}

.home-hero-note { margin-top: 16px; }

.home-hero .hero-actions {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.home-hero .hero-actions .btn {
  width: 100%;
  min-width: 0;
  min-height: 58px;
  padding-inline: 18px;
}

.home-choice-card {
  display: flex;
  flex-direction: column;
}

.home-choice-title {
  display: flex;
  min-height: 82px;
  align-items: center;
  padding: 22px clamp(24px, 2.3vw, 42px);
}

.home-choice-card > a {
  min-height: 0;
  flex: 1 1 0;
  padding: 24px clamp(24px, 2.3vw, 42px);
}

.home-choice-icon {
  width: 48px;
  height: 48px;
  font-size: 1.35rem;
}

.home-choice-card strong { font-size: clamp(1.05rem, 1.3vw, 1.35rem); }
.home-choice-card small { margin-top: 5px; font-size: 0.92rem; }

@media (min-width: 980px) {
  .home-hero {
    height: calc(100svh - 76px);
    max-height: 940px;
  }

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

/* Compact status rail creates a firm break between the hero and process. */
.mountain-cut { display: none; }

.home-proof,
html[data-theme] .home-proof {
  color: #dce7e9;
  background: #0f4b61;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid #092f40;
}

.home-proof-grid { padding-block: 18px; }

.home-proof-grid > div {
  min-height: 68px;
  justify-content: center;
  padding-inline: clamp(18px, 2.4vw, 42px);
  border-left-color: rgba(255, 255, 255, 0.2);
}

.home-proof-grid strong {
  color: #ffffff;
  font-size: clamp(1.02rem, 1.2vw, 1.2rem);
}

.home-proof-grid span { color: #bed2d9; }

/* Repeat one alignment rule across every home-page grid. */
.home-steps,
.home-help-grid,
.home-ready-grid,
.home-faq-grid,
.home-final-inner {
  width: 100%;
}

.home-steps { gap: clamp(18px, 2vw, 36px); }

.home-steps li {
  display: flex;
  min-height: 240px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(26px, 2.2vw, 38px);
}

.home-steps li p { margin-top: 0; }

.home-ready-grid,
.home-faq-grid {
  gap: clamp(22px, 2.4vw, 46px);
  align-items: stretch;
}

.home-ready-grid > div,
.home-dave-card,
.home-faq-grid > div {
  width: 100%;
  max-width: none;
  min-width: 0;
}

.home-ready-grid > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 3.2vw, 52px);
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 18px 46px rgba(16, 40, 56, 0.09);
}

.home-ready .home-checklist { width: 100%; }
.home-ready .btn { align-self: flex-start; }

.home-dave-card {
  height: 100%;
  min-height: 520px;
  justify-self: stretch;
}

.home-dave-card img {
  height: 100%;
  aspect-ratio: auto;
}

@media (min-width: 900px) {
  .home-ready-grid,
  .home-faq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.home-help-grid { gap: clamp(18px, 2vw, 36px); }

.home-help-card {
  min-height: 260px;
  padding: clamp(26px, 2.2vw, 38px);
}

.home-faq-grid > div:first-child {
  display: flex;
  max-width: none;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 3.2vw, 52px);
  border-radius: 24px;
  color: #dce7e9;
  background: #102838;
}

.home-faq-grid > div:first-child h2 { color: #ffffff; }
.home-faq-grid > div:first-child p { color: #c3d1d5; }
.home-faq-grid > div:first-child .eyebrow { color: #9bc9d8; }
.home-faq-grid > div:first-child .text-link { color: #b8dce7; }

.home-faq .clipboard {
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: center;
  padding: clamp(18px, 2.2vw, 38px);
}

.home-final-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-final .hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-final .btn { width: 100%; }

.home-final { padding-block: clamp(52px, 6vh, 72px); }

/* Restore the alternating light and dark homepage cadence. The proof rail is
   treated as part of the hero, then each full content section changes tone. */
html[data-theme] .section.home-process,
html[data-theme] .section.home-help {
  background: #f7f4ec;
}

html[data-theme] .section.home-ready,
html[data-theme] .section.home-faq {
  background: #0c2a3a;
  border-top-color: rgba(255, 255, 255, 0.13);
  border-bottom: 1px solid #071e2a;
}

.home-ready-grid > div,
.home-ready .home-dave-card,
.home-faq .clipboard {
  box-shadow: 0 22px 52px rgba(1, 12, 19, 0.28);
}

.home-faq-grid > div:first-child {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #174f64;
  box-shadow: 0 22px 52px rgba(1, 12, 19, 0.24);
}

.home-final {
  color: var(--text-mid);
  background: #e7eef0;
  border-top: 1px solid #c8d7db;
}

.home-final .eyebrow { color: var(--mint); }
.home-final h2 { color: var(--text-hi); }
.home-final p { color: var(--text-mid); }
.home-final .btn-ghost {
  color: var(--text-hi);
  border-color: rgba(16, 40, 56, 0.44);
}

.home-final .btn-ghost:hover {
  color: #ffffff;
  border-color: var(--mint);
  background: var(--mint);
}

/* Interior layouts inherit the same full-width geometry. */
.duo,
.owner,
.contact-grid,
.wizard-layout,
.bleed-row { width: 100%; }

.grid > *,
.duo > *,
.contact-grid > *,
.wizard-layout > * { min-width: 0; }

.grid { align-items: stretch; }
.grid > .card,
.grid > .svc-card { height: 100%; }

.page-head .wrap > *,
.cta-band .wrap > * { margin-left: 0; }

@media (max-width: 979px) {
  .home-hero { min-height: auto; }

  .home-hero-copy,
  .home-choice-card {
    min-height: 0;
    border-radius: 20px;
  }

  .home-hero-copy { padding: clamp(28px, 6vw, 52px); }

  .home-choice-card > a { min-height: 96px; }
}

@media (max-width: 899px) {
  .home-ready-grid,
  .home-faq-grid,
  .home-final-inner { grid-template-columns: 1fr; }

  .home-ready-grid > div,
  .home-faq-grid > div:first-child { padding: clamp(28px, 6vw, 48px); }

  .home-dave-card { min-height: 0; }
  .home-dave-card img { height: auto; aspect-ratio: 1 / 1; }
}

@media (max-width: 767px) {
  :root,
  html[data-theme] { --page-gutter: 18px; }

  .section { padding-block: 64px; }

  .home-centered { margin-bottom: 34px; }

  .home-hero {
    padding-top: 28px;
    padding-bottom: 34px;
  }

  .home-hero-grid { gap: 18px; }

  .home-hero-copy { padding: 28px 22px; }

  .home-hero h1 {
    max-width: none;
    font-size: clamp(2.25rem, 10.2vw, 3.2rem);
    line-height: 1.04;
    letter-spacing: 0.01em;
  }

  .home-hero .hero-actions { grid-template-columns: 1fr; }

  .home-choice-title { min-height: 68px; padding: 18px 20px; }
  .home-choice-card > a { min-height: 88px; padding: 18px 20px; }
  .home-choice-icon { width: 40px; height: 40px; font-size: 1.15rem; }

  .home-steps li,
  .home-help-card { min-height: 0; }

  .home-steps li p { margin-top: 0; }

  .home-proof-grid > div { min-height: 72px; padding-inline: 10px; }

  .home-final .hero-actions { grid-template-columns: 1fr; }
}

/* ============================================================
   Authority system v10

   The hero remains the established entry point. Everything after it takes
   the visual language of a release desk: hard dividers, docket labels,
   controlled contrast, and one signal color reserved for action.
   ============================================================ */

:root,
html[data-theme] {
  --authority-black: #06151e;
  --authority-ink: #0b2635;
  --authority-steel: #183d4e;
  --authority-rule: #9ba9ae;
  --authority-paper: #f2f1ec;
  --authority-paper-deep: #e1e5e5;
  --authority-orange: #ef5b2a;
  --r-s: 2px;
  --r-m: 4px;
  --r-l: 6px;
}

body { background: var(--authority-paper); }

h2,
h3,
.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.005em;
}

h2 {
  max-width: 18ch;
  font-size: clamp(2.55rem, 5vw, 4.9rem);
  line-height: 0.98;
  text-transform: uppercase;
}

h3 {
  line-height: 1.05;
  text-transform: uppercase;
}

.eyebrow,
.mono-label {
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 36px;
  height: 4px;
  border-radius: 0;
  background: var(--authority-orange);
}

.btn {
  border-width: 2px;
  border-radius: 3px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.btn-call {
  border-color: #a93816;
  background: var(--authority-orange);
  box-shadow: 0 5px 0 #8d2f12;
}

.nav {
  border-bottom: 3px solid var(--authority-ink);
  background: rgba(242, 241, 236, 0.98);
}

.nav.scrolled { box-shadow: 0 6px 0 rgba(6, 21, 30, 0.12); }

.brand-text .brand-top { letter-spacing: 0.16em; }

.nav-links a {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* The existing hero composition was retained by design. */
.home-hero-copy,
.home-choice-card { box-shadow: 0 22px 0 rgba(1, 12, 19, 0.22); }

.home-hero .hero-actions .btn {
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

/* Active release-status rail. */
.home-proof,
html[data-theme] .home-proof {
  background: var(--authority-ink);
  border-top: 5px solid var(--authority-orange);
  border-bottom: 2px solid #020a0f;
}

.home-proof-grid { padding-block: 0; }

.home-proof-grid > div {
  min-height: 92px;
  align-items: flex-start;
  padding-block: 19px;
  border-left-color: rgba(255, 255, 255, 0.18);
}

.home-proof-grid strong {
  display: flex;
  align-items: center;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.5vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.home-proof-grid span:not(.home-status-dot) {
  margin-top: 7px;
  color: #aebfc6;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.home-status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 10px;
  background: var(--authority-orange);
  box-shadow: 0 0 0 4px rgba(239, 91, 42, 0.18);
}

/* Release protocol: one connected operational panel instead of soft cards. */
.home-process {
  background-color: var(--authority-paper) !important;
  background-image: linear-gradient(rgba(11, 38, 53, 0.045) 1px, transparent 1px);
  background-size: 100% 44px;
}

.home-process .sec-head { max-width: 980px; }
.home-process .sec-head h2 { max-width: 14ch; }

.home-steps {
  gap: 0;
  border: 2px solid var(--authority-ink);
  background: var(--authority-ink);
  box-shadow: 10px 10px 0 rgba(11, 38, 53, 0.12);
}

.home-steps li {
  min-height: 286px;
  justify-content: flex-start;
  padding: clamp(26px, 2.5vw, 42px);
  border: 0;
  border-radius: 0;
  background: #fbfaf6;
  box-shadow: none;
}

.home-step-number {
  display: block;
  width: auto;
  height: auto;
  margin: 0 0 18px;
  color: var(--authority-orange);
  background: transparent;
  font-size: clamp(3.4rem, 5vw, 5.5rem);
  line-height: 0.8;
}

.home-step-number::before { content: "0"; }

.home-step-command {
  position: absolute;
  top: 30px;
  right: 30px;
  color: #65757c;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.home-steps h3 {
  margin-bottom: 12px;
  color: var(--authority-ink);
  font-size: clamp(1.65rem, 2.5vw, 2.35rem);
}

.home-steps p {
  max-width: 34ch;
  color: #4a5b63;
  font-size: 0.98rem;
}

.home-process-action {
  margin-top: 30px;
  text-align: right;
}

.home-process-action .text-link {
  padding-bottom: 5px;
  border-bottom: 2px solid var(--authority-orange);
  font-weight: 700;
}

@media (min-width: 820px) {
  .home-steps li + li { border-left: 2px solid var(--authority-ink); }
  .home-steps li:not(:last-child)::after { display: none; }
}

/* Dark intake section with command-grade panels. */
html[data-theme] .section.home-ready,
html[data-theme] .section.home-faq {
  background: var(--authority-black);
  border-top: 8px solid var(--authority-steel);
  border-bottom: 2px solid #02090d;
}

.home-ready-grid > div {
  border: 2px solid #9da8aa;
  border-radius: 4px;
  background: #f7f6f1;
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.34);
}

.home-ready .home-checklist li { border-color: #b7c0c2; }

.home-ready .home-checklist li > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #ffffff;
  background: var(--authority-steel);
  font-size: 0.9rem;
}

.home-dave-card {
  border: 2px solid #73868d;
  border-radius: 4px;
  background: var(--authority-ink);
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.34) !important;
}

.home-dave-card figcaption {
  right: 0;
  bottom: 0;
  left: 0;
  padding: 19px 22px;
  border: 0;
  border-top: 4px solid var(--authority-orange);
  border-radius: 0;
  background: rgba(6, 21, 30, 0.95);
  backdrop-filter: none;
}

.home-dave-card figcaption strong {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Route cards and the first-call release briefing. */
.home-help { background: var(--authority-paper) !important; }
.home-help .sec-head { max-width: 1040px; }
.home-help .sec-head h2 { max-width: 13ch; }
.home-help .sec-head .lead { max-width: 54ch; }

.home-help-grid { gap: 16px; }

.home-help-card {
  position: relative;
  min-height: 290px;
  padding: clamp(26px, 2.4vw, 40px);
  border: 2px solid var(--authority-ink);
  border-top: 7px solid var(--authority-steel);
  border-radius: 2px;
  color: #40525a;
  background: #fbfaf6;
  box-shadow: 8px 8px 0 rgba(11, 38, 53, 0.12);
}

.home-help-card::after {
  content: "\2192";
  position: absolute;
  top: 22px;
  right: 26px;
  color: var(--authority-orange);
  font-family: var(--font-display);
  font-size: 2.2rem;
  line-height: 1;
}

.home-help-card:hover {
  color: #40525a;
  border-color: var(--authority-ink);
  border-top-color: var(--authority-orange);
  transform: translate(-2px, -2px);
  box-shadow: 10px 10px 0 rgba(11, 38, 53, 0.18);
}

.home-help-label {
  margin-bottom: auto;
  color: var(--authority-steel);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
}

.home-help-card h3 {
  max-width: 13ch;
  margin-top: 44px;
  color: var(--authority-ink);
  font-size: clamp(1.75rem, 2.6vw, 2.5rem);
}

.home-answer-bar {
  display: grid;
  margin-top: clamp(34px, 4vw, 54px);
  border: 2px solid var(--authority-black);
  border-left: 8px solid var(--authority-orange);
  color: #ffffff;
  background: var(--authority-ink);
  box-shadow: 10px 10px 0 rgba(11, 38, 53, 0.13);
}

.home-answer-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.home-answer-intro .eyebrow {
  margin-bottom: 8px;
  color: #a9c2cb;
}

.home-answer-intro .eyebrow::before { display: none; }

.home-answer-intro > strong {
  color: #ffffff;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.3vw, 2.2rem);
  line-height: 1;
  text-transform: uppercase;
}

.home-answer-bar ul {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-answer-bar li {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  align-content: center;
  min-height: 110px;
  margin: 0;
  padding: 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.home-answer-bar li > span {
  grid-row: 1 / 3;
  color: var(--authority-orange);
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
}

.home-answer-bar li > strong {
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.home-answer-bar li > small {
  margin-top: 3px;
  color: #aebfc6;
  font-size: 0.76rem;
}

@media (min-width: 900px) {
  .home-answer-bar { grid-template-columns: minmax(250px, 0.72fr) 2fr; }
  .home-answer-intro { border-right: 1px solid rgba(255, 255, 255, 0.2); border-bottom: 0; }
  .home-answer-bar ul { grid-template-columns: repeat(4, 1fr); }
  .home-answer-bar li { border-top: 0; }
  .home-answer-bar li + li { border-left: 1px solid rgba(255, 255, 255, 0.16); }
}

/* Direct-answer panel. */
.home-faq-grid > div:first-child {
  border: 2px solid #617681;
  border-left: 8px solid var(--authority-orange);
  border-radius: 2px;
  background: var(--authority-steel);
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.3);
}

.home-faq .clipboard {
  border: 2px solid #9da8aa;
  border-radius: 2px;
  background: #f7f6f1;
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.3) !important;
}

.home-faq details.faq + details.faq { border-top: 1px solid #aeb8bb; }
.home-faq details.faq summary { font-weight: 700; }

.home-final {
  padding-block: clamp(52px, 6vh, 72px);
  background: var(--authority-paper-deep);
  border-top: 8px solid var(--authority-orange);
  border-bottom: 2px solid var(--authority-rule);
}

.home-final h2 { max-width: 14ch; }

/* Carry the authority language through interior pages without changing their
   structure, field names, actions, or scripts. */
.page-head,
.page-head.has-photo { border-bottom: 8px solid var(--authority-orange); }

.page-head h1,
.page-head.has-photo h1 {
  max-width: 16ch;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.015em;
  line-height: 0.96;
  text-transform: uppercase;
}

.card,
.svc-card,
.clipboard,
.step-card,
.step-panel,
.aside-card,
.wizard-card {
  border-width: 2px;
  border-radius: 4px;
  box-shadow: 7px 7px 0 rgba(11, 38, 53, 0.11);
}

.svc-card { border-top: 5px solid var(--authority-steel); }
.svc-card:hover { border-top-color: var(--authority-orange); transform: translate(-2px, -2px); }

.field input:not([type="checkbox"]):not([type="radio"]),
.field select,
.field textarea,
.pills label {
  border-radius: 2px;
}

.footer { border-top: 8px solid var(--authority-orange); }

@media (max-width: 899px) {
  .home-answer-bar ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-answer-bar li:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, 0.16); }
}

@media (max-width: 767px) {
  h2 { font-size: clamp(2.45rem, 12vw, 3.45rem); }

  .nav { border-bottom-width: 2px; }

  .home-proof-grid > div {
    min-height: 82px;
    padding-block: 16px;
  }

  .home-proof-grid strong { font-size: 1.08rem; }
  .home-proof-grid span:not(.home-status-dot) { font-size: 0.65rem; }

  .home-steps { box-shadow: 6px 6px 0 rgba(11, 38, 53, 0.12); }
  .home-steps li { min-height: 230px; }
  .home-steps li + li { border-top: 2px solid var(--authority-ink); }
  .home-step-number { font-size: 3.8rem; }
  .home-step-command { top: 28px; right: 24px; }

  .home-ready-grid > div,
  .home-dave-card,
  .home-faq-grid > div:first-child,
  .home-faq .clipboard { box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.26) !important; }

  .home-help-card {
    min-height: 240px;
    box-shadow: 6px 6px 0 rgba(11, 38, 53, 0.12);
  }

  .home-answer-bar { box-shadow: 6px 6px 0 rgba(11, 38, 53, 0.13); }
  .home-answer-bar ul { grid-template-columns: 1fr; }
  .home-answer-bar li:nth-child(even) { border-left: 0; }
  .home-answer-bar li { min-height: 92px; }
}

/* ============================================================
   Viewport cadence v11

   Desktop sections share one near-screen height floor so the alternating
   light/dark rhythm stays deliberate all the way to the footer. Mobile keeps
   content-driven heights because forced viewport panels would slow scanning.
   ============================================================ */

.home-final-inner { align-items: stretch; }

.home-final-inner > div:first-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-final-action-panel {
  display: flex;
  min-height: 340px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 3.4vw, 52px);
  border: 2px solid #020a0f;
  border-left: 8px solid var(--authority-orange);
  color: #ffffff;
  background: var(--authority-ink);
  box-shadow: 10px 10px 0 rgba(11, 38, 53, 0.14);
}

.home-final-status {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.4vw, 2.2rem);
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.home-final-action-panel > p {
  max-width: 40ch;
  margin: 0 0 26px;
  color: #c7d4d8;
  font-size: 1.02rem;
}

.home-final-action-panel > small {
  display: block;
  margin-top: 20px;
  color: #9fb3ba;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-final-action-panel .hero-actions {
  width: 100%;
  margin: 0;
}

.home-final-action-panel .btn-ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.68);
}

.home-final-action-panel .btn-ghost:hover {
  color: #ffffff;
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.home-final-action-panel .btn-call {
  font-size: 0.84rem;
  letter-spacing: 0;
  white-space: nowrap;
}

@media (min-width: 980px) {
  .home-process,
  .home-ready,
  .home-help,
  .home-faq,
  .home-final {
    display: flex;
    min-height: clamp(800px, calc(100svh - 76px), 960px);
    align-items: center;
  }

  .home-process > .wrap,
  .home-ready > .wrap,
  .home-help > .wrap,
  .home-faq > .wrap,
  .home-final > .wrap { width: 100%; }

  .home-process .sec-head h2 { max-width: 19ch; }
  .home-help .sec-head h2 { max-width: 18ch; }

  .home-final-inner {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(36px, 5vw, 84px);
  }
}

@media (max-width: 899px) {
  .home-final-action-panel {
    min-height: 0;
    padding: 30px 24px;
    box-shadow: 6px 6px 0 rgba(11, 38, 53, 0.14);
  }
}

/* ============================================================
   Local parallax scenes v12

   Two dark sections carry place-specific imagery: the El Paso County
   judicial complex for intake and downtown Colorado Springs at dusk for
   direct answers. Motion is desktop-only and disabled when reduced motion
   is requested. Solid dark backgrounds remain the mobile fallback.
   ============================================================ */

@media (min-width: 980px) and (prefers-reduced-motion: no-preference) {
  html[data-theme] .section.home-ready {
    background-color: var(--authority-black);
    background-image:
      linear-gradient(100deg, rgba(3, 14, 21, 0.95) 0%, rgba(6, 21, 30, 0.88) 54%, rgba(6, 21, 30, 0.82) 100%),
      url("/assets/img/justice-center.jpg");
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
  }

  html[data-theme] .section.home-faq {
    background-color: var(--authority-black);
    background-image:
      linear-gradient(100deg, rgba(3, 14, 21, 0.92) 0%, rgba(6, 21, 30, 0.86) 52%, rgba(6, 21, 30, 0.8) 100%),
      url("/assets/img/downtown-dusk.jpg");
    background-position: center 44%;
    background-size: cover;
    background-attachment: fixed;
  }
}

@media (max-width: 979px), (prefers-reduced-motion: reduce) {
  html[data-theme] .section.home-ready,
  html[data-theme] .section.home-faq {
    background-color: var(--authority-black);
    background-image: none;
    background-attachment: scroll;
  }
}

/* ============================================================
   Dual application paths v13
   ============================================================ */
.nav-cta .btn-defendant-app {
  display: none;
  border: 1px solid #102838;
  background: transparent;
  color: #102838;
  box-shadow: none;
}

.nav-cta .btn-defendant-app:hover,
.nav-cta .btn-defendant-app[aria-current="page"] {
  border-color: #0f4b61;
  background: #0f4b61;
  color: #ffffff;
}

@media (min-width: 1000px) {
  .nav-cta .btn-defendant-app { display: inline-flex; }
  .nav-cta .btn-bond-app,
  .nav-cta .btn-defendant-app {
    padding-inline: 13px;
    font-size: 0.76rem;
    white-space: nowrap;
  }
}

@media (min-width: 1000px) and (max-width: 1199px) {
  .nav-links { gap: 16px; }
  .nav-links a[href="/services"],
  .nav-links a[href="/faq"] { display: none; }
  .nav-cta .btn-call { width: 44px; padding-inline: 11px; }
  .nav-cta .btn-call .num { display: none; }
}

.home-attorney-vouch {
  width: 100%;
  max-width: none;
  margin: 18px 0 0;
  padding: 13px 16px;
  border: 0;
  color: #fffdf8;
  background: rgba(5, 27, 39, 0.58);
  box-shadow: inset 4px 0 0 var(--authority-orange);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.8vw, 1.7rem);
  font-weight: 700;
  letter-spacing: 0.025em;
  line-height: 1.1;
  text-align: center;
}

.home-attorney-vouch strong { color: inherit; font: inherit; }

/* Four choices now share the same fixed hero panel without making the section
   taller than the viewport. */
.home-choice-card > a { padding-block: 18px; }

.application-kind {
  display: grid;
  gap: 12px;
  margin: 0 0 28px;
  padding: 18px 20px;
  border: 2px solid var(--authority-ink);
  border-left: 7px solid var(--authority-orange);
  background: var(--surface-2);
}

.application-kind strong {
  color: var(--text-hi);
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.application-kind p { margin: 0; color: var(--text-mid); }
.application-kind a { font-weight: 800; }

.defendant-form .step-note strong { color: var(--text-hi); }
.defendant-form .sensitive-warning {
  margin: 0 0 24px;
  padding: 14px 16px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text-mid);
  font-size: 0.9rem;
}

.defendant-form .sensitive-warning strong { color: var(--text-hi); }

@media (min-width: 900px) {
  .home-final-action-panel .hero-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .home-attorney-vouch {
    font-size: clamp(1.2rem, 6vw, 1.45rem);
    letter-spacing: 0.04em;
  }
  .home-choice-card > a { padding-block: 16px; }
}

/* Keep the urgent hero decision simple on desktop while giving mobile users
   both application routes before they scroll. */
.home-defendant-mobile { display: none; }

@media (max-width: 767px) {
  .home-defendant-mobile { display: inline-flex; }
}

/* Mobile form containment v15
   Fieldsets and native date controls can retain an intrinsic inline size on
   mobile browsers. Keep every wizard row and control inside the panel instead
   of letting the control's right edge extend into the page gutter. */
.step-panel,
.step-panel .grid,
.step-panel .field {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-inline-size: 0;
  max-inline-size: 100%;
}

.step-panel .field input:not([type="checkbox"]):not([type="radio"]),
.step-panel .field select,
.step-panel .field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* iOS WebKit date/time width workaround v18
   Safari on iPhone miscalculates 100%-wide native date/time controls when the
   input itself has padding. Remove that padding only in WebKit and restore the
   visual left inset with text-indent, which does not change the box width. */
@supports (-webkit-touch-callout: none) {
  .step-panel .field input[type="date"],
  .step-panel .field input[type="time"],
  .step-panel .field input[type="datetime-local"],
  .step-panel .field input[type="month"],
  .step-panel .field input[type="week"] {
    width: 100%;
    max-width: 100%;
    padding: 0;
    text-indent: 14px;
  }

  .step-panel .field input[type="date"]::-webkit-date-and-time-value,
  .step-panel .field input[type="time"]::-webkit-date-and-time-value,
  .step-panel .field input[type="datetime-local"]::-webkit-date-and-time-value {
    text-align: left;
  }
}

/* ============================================================
   Unified application workspace v21

   Both application routes use one continuous intake surface: a compact title,
   an explicit role chooser, and the existing wizard immediately below. The
   photo hero is intentionally absent so applicants can identify the right form
   and begin without crossing a second visual boundary.
   ============================================================ */
.application-page {
  min-height: calc(100vh - 76px);
  padding: clamp(42px, 6vw, 74px) 0 clamp(72px, 8vw, 112px);
  color: #dce7e9;
  background: var(--authority-black);
  border-bottom: 8px solid var(--authority-orange);
}

.application-page .application-page-inner {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
}

.application-page-header {
  max-width: 56rem;
  margin-bottom: clamp(28px, 4vw, 42px);
}

.application-page-header .eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  color: #ff8358;
}

.application-page-header .eyebrow::before {
  background: var(--authority-orange);
}

.application-page-header h1 {
  max-width: 18ch;
  margin: 0;
  color: #fffdf8;
  font-family: var(--font-display);
  font-size: clamp(2.65rem, 6vw, 5.25rem);
  font-weight: 700;
  letter-spacing: 0.012em;
  line-height: 0.96;
  text-transform: uppercase;
  text-wrap: balance;
}

.application-title-rule {
  display: block;
  width: 64px;
  height: 3px;
  margin: 18px 0 22px;
  background: var(--authority-orange);
}

.application-page-header .lead {
  max-width: 45rem;
  margin: 0;
  color: #d7e2e5;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.55;
}

.application-role-chooser {
  margin-bottom: clamp(28px, 4vw, 46px);
}

.application-role-heading {
  margin: 0 0 12px;
  color: #fffdf8;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.application-role-grid {
  display: grid;
  gap: 12px;
}

.application-role-option {
  display: flex;
  min-width: 0;
  min-height: 100px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid #365363;
  color: #fffdf8;
  background: #10293a;
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.application-role-option:hover,
.application-role-option:focus-visible {
  color: #fffdf8;
  border-color: #ff8358;
  background: #183d4e;
  transform: translateY(-2px);
}

.application-role-option:focus-visible {
  outline: 3px solid #ff8358;
  outline-offset: 3px;
}

.application-role-option.is-active {
  border-color: var(--authority-orange);
  background: #2b2436;
  box-shadow: inset 4px 0 0 var(--authority-orange);
}

.application-role-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.application-role-label {
  color: #fffdf8;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  line-height: 1.1;
  text-transform: uppercase;
}

.application-role-description {
  color: #cbd8dc;
  font-size: 0.84rem;
  line-height: 1.45;
}

.application-role-action {
  flex: 0 0 auto;
  color: #ff8358;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.application-page #wizardChrome {
  margin-bottom: 18px;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid #365363;
  background: #0b2635;
}

.application-page .progress { margin-bottom: 14px; }
.application-page .progress li + li::before { background: #55707d; }
.application-page .progress li.done + li::before,
.application-page .progress li.done + li.current::before { background: #4da3ff; }

.application-page .progress .pnum {
  border-color: #6d8590;
  color: #dce7e9;
  background: #10293a;
}

.application-page .progress li.current .pnum {
  border-color: var(--authority-orange);
  color: #071923;
  background: #ff8358;
  box-shadow: 0 0 0 5px rgba(242, 102, 50, 0.18);
}

.application-page .progress li.done .pnum {
  border-color: #4da3ff;
  color: #ffffff;
  background: #17627d;
}

.application-page .progress li .plabel { color: #aebfc6; }
.application-page .progress li.current .plabel { color: #ff9b78; }
.application-page .progress li.done .plabel { color: #dce7e9; }

.application-page .progress-status {
  margin-bottom: 0;
  color: #fffdf8;
}

.application-page .progress-status .stepno { color: #ff9b78; }

.application-page .step-panel,
.application-page .aside-card,
.application-page .success-panel .card {
  border-color: #aebfc4;
  background: #fffdf8;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.24);
}

.application-page .step-panel { border-top: 5px solid var(--authority-steel); }
.application-page .aside-card { border-top: 5px solid var(--authority-orange); }

@media (min-width: 760px) {
  .application-role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .application-page {
    min-height: 0;
    padding-top: 32px;
    padding-bottom: 72px;
  }

  .application-page-header h1 {
    max-width: none;
    font-size: clamp(2.4rem, 11.5vw, 3.55rem);
  }

  .application-page-header .lead { font-size: 1rem; }
  .application-role-option { min-height: 0; padding: 17px 16px; }
  .application-page #wizardChrome { padding: 16px 12px; }
}

@media (max-width: 520px) {
  .application-role-option {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .application-role-option { transition: none; }
}

@media print {
  .application-role-chooser { display: none; }
  .application-page { padding-top: 0; background: #ffffff; border: 0; }
  .application-page-header h1,
  .application-page-header .lead { color: #102838; }
}
