/* ==========================================================================
   Salt Lake Injury Law — "dusk to dawn on the ridge"
   Palette: summit #70548E / dusk #503D66 / night #241C36 / veil #F5F2F9
            mist #E3DCEE / dawn #C97F35 (the comeback ridge — lines only)
   Type:    Alegreya (display + italic) + Alegreya Sans (body/UI)
   ========================================================================== */

:root {
  --summit: #70548E;
  --summit-deep: #5D4478;
  --dusk: #503D66;
  --night: #241C36;
  --night-soft: #2E2545;
  --veil: #F5F2F9;
  --mist: #E3DCEE;
  --white: #FFFFFF;
  --ink: #241C36;
  --muted: #6B6377;
  --lavender: #CFC4E0;
  --dawn: #C97F35;
  --green: #3E9A55;
  --shadow-lg: 0 24px 60px -18px rgba(36, 28, 54, .5);
  --shadow-md: 0 10px 30px -12px rgba(36, 28, 54, .22);
  --radius: 14px;
  --font-display: "Alegreya", "Georgia", serif;
  --font-body: "Alegreya Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--veil);
  -webkit-font-smoothing: antialiased;
}

/* height:auto keeps width/height attributes as aspect-ratio hints only */
img { max-width: 100%; height: auto; display: block; }

a { color: var(--summit-deep); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  text-wrap: balance;
}

h1 { font-size: clamp(38px, 5vw, 58px); }
h2 { font-size: clamp(29px, 3.6vw, 42px); }
h3 { font-size: clamp(19px, 2vw, 22px); font-weight: 600; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

:focus-visible {
  outline: 3px solid var(--dawn);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ----- eyebrow: the "— INJURY LAW —" tapered-dash motif from their wordmark ----- */

.eyebrow {
  display: flex; align-items: center; justify-content: flex-start; gap: 12px;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--summit);
  margin-bottom: 14px;
}

.eyebrow::before, .eyebrow::after {
  content: "";
  width: 30px; height: 3px;
  background: currentColor;
  flex-shrink: 0;
}

.eyebrow::before { clip-path: polygon(0 42%, 100% 0, 100% 100%, 0 58%); }
.eyebrow::after  { clip-path: polygon(0 0, 100% 42%, 100% 58%, 0 100%); }

.eyebrow--center { justify-content: center; }
.eyebrow--dawn { color: var(--dawn); }

.opt { font-weight: 400; color: var(--muted); text-transform: none; letter-spacing: 0; }

.fine { font-size: 13.5px; color: var(--muted); }
.fine a { color: var(--summit-deep); font-weight: 700; }

.linklike {
  background: none; border: none; padding: 0;
  color: var(--summit-deep); font: inherit; font-weight: 700;
  text-decoration: underline; cursor: pointer;
}

/* ----- buttons ----- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body);
  font-weight: 700; font-size: 15.5px;
  padding: 12px 22px; border-radius: 10px;
  border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }
.btn--lg { padding: 15px 28px; font-size: 17px; }
.btn--summit { background: var(--summit); color: var(--white); }
.btn--summit:hover { background: var(--dusk); }
.btn--night { background: var(--night); color: var(--veil); }
.btn--night:hover { background: var(--dusk); }
.btn--ghost { background: transparent; color: var(--veil); border-color: rgba(207, 196, 224, .55); }
.btn--ghost:hover { border-color: var(--veil); }
.btn--plain { background: transparent; color: var(--muted); }
.btn--plain:hover { color: var(--ink); }

/* ==========================================================================
   The Comeback Ridge — one thin amber line that keeps climbing.
   Appears exactly three ways: hero-headline underline, section divider,
   and the form's stepped progress. Nowhere else.
   ========================================================================== */

.ridge-divider {
  display: block;
  width: min(320px, 60vw);
  margin: 0 auto;
  color: var(--dawn);
}

.h1-ridge { display: block; width: min(340px, 70%); margin-top: 10px; color: var(--dawn); }

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: clamp(14px, 2.5vw, 34px);
  padding: 10px clamp(16px, 4vw, 48px);
  background: rgba(245, 242, 249, .93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--mist);
}

.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 46px; width: auto; }

.nav { display: flex; gap: clamp(12px, 1.8vw, 26px); margin-inline: auto; }

.nav a {
  text-decoration: none; color: var(--ink);
  font-weight: 500; font-size: 15.5px;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.nav a:hover { border-bottom-color: var(--summit); }

.header__actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }

.header__phone { text-decoration: none; text-align: right; line-height: 1.15; }
.header__phone-label { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.header__phone-num { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--dusk); }

.navtoggle { display: none; }

/* ==========================================================================
   Hero — night on the ridge
   ========================================================================== */

.hero {
  position: relative;
  background:
    radial-gradient(1100px 540px at 82% -10%, rgba(112, 84, 142, .35), transparent 62%),
    var(--night);
  color: var(--veil);
  overflow: hidden;
}

.hero__peaks {
  position: absolute; left: 0; right: 0; bottom: -2px;
  width: 100%; height: auto;
  pointer-events: none;
  opacity: .5;
}

.hero__inner {
  position: relative;
  max-width: 1180px; margin: 0 auto;
  padding: clamp(48px, 7vw, 92px) clamp(16px, 4vw, 48px) clamp(64px, 8vw, 110px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 440px);
  gap: clamp(28px, 4.5vw, 64px);
  align-items: start;
}

.hero .eyebrow { color: var(--lavender); }

.hero h1 { color: var(--white); font-weight: 600; }

.hero h1 em {
  font-style: italic;
  color: var(--lavender);
}

.hero__sub {
  margin-top: 20px;
  font-size: clamp(16.5px, 1.5vw, 19px);
  color: var(--lavender);
  max-width: 56ch;
}

.hero__cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

.hero__trust {
  list-style: none;
  margin-top: 34px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 26px;
}

.hero__trust li {
  font-size: 15px; color: var(--lavender);
  display: flex; align-items: baseline; gap: 9px;
}

.hero__trust li::before {
  content: "\2713";
  color: var(--dawn);
  font-weight: 700;
  font-size: 13px;
}

/* ----- consultation card ----- */

.lead-card {
  position: relative;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 30px 26px 24px;
  overflow: hidden;
  scroll-margin-top: 110px;
}

.lead-card::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 8px;
  background: var(--summit);
}

.lead-card__head h2 {
  font-size: 27px;
  color: var(--dusk);
}

.lead-card__head p { color: var(--muted); font-size: 14.5px; margin-top: 4px; }

/* the climb: three segments stepping UP, filling summit-purple as you go */
.lead-card__progress {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  align-items: end;
  margin: 16px 0 18px;
}

.lead-card__progress span {
  border-radius: 3px;
  background: var(--mist);
  transition: background .25s ease;
}

.lead-card__progress span:nth-child(1) { height: 5px; }
.lead-card__progress span:nth-child(2) { height: 9px; }
.lead-card__progress span:nth-child(3) { height: 13px; }

.lead-card__progress span.is-on { background: var(--summit); }
.lead-card__progress span:last-child.is-on { background: var(--dawn); }

.step { display: none; border: none; }
.step.is-active { display: block; }

.step legend {
  font-family: var(--font-display);
  font-size: 21px; font-weight: 600;
  color: var(--dusk);
  margin-bottom: 6px;
}

.step__hint { color: var(--muted); font-size: 13.5px; margin-bottom: 14px; }

.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* 7 chips: the odd one out spans the full row */
.chips > .chip:last-child:nth-child(odd) { grid-column: 1 / -1; }

.chip {
  font-family: var(--font-body);
  font-size: 15px; font-weight: 500;
  padding: 13px 10px;
  background: var(--veil);
  border: 1.5px solid var(--mist);
  border-radius: 10px;
  cursor: pointer;
  color: var(--ink);
  transition: border-color .15s, background .15s;
  text-align: center;
}

.chip:hover { border-color: var(--summit); }

.chip.is-selected {
  background: var(--summit); color: var(--white); border-color: var(--summit);
}

.chips--small { grid-template-columns: repeat(3, 1fr); }
.chips--small .chip { padding: 10px 6px; font-size: 14px; }
.chips--two { grid-template-columns: 1fr 1fr; }

.step textarea, .field input {
  width: 100%;
  font: inherit;
  padding: 11px 13px;
  border: 1.5px solid var(--mist);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
}

.step textarea { margin-top: 12px; }

.step textarea:focus, .field input:focus {
  outline: none; border-color: var(--summit);
  box-shadow: 0 0 0 3px rgba(112, 84, 142, .16);
}

.field { margin-bottom: 12px; }

.field label, .field__label {
  display: block;
  font-size: 12.5px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}

.step__nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 18px;
}

.btn--submit { min-width: 170px; }

.form-error {
  margin-top: 12px;
  background: #FBF0EC; color: #A8412A;
  border: 1px solid #EFCFC4; border-radius: 8px;
  padding: 9px 12px; font-size: 14px;
}

.step--success { text-align: center; padding: 18px 4px 8px; }
.success__mark { width: 56px; margin: 0 auto 14px; }
.step--success h3 { color: var(--dusk); font-size: 25px; }
.step--success p { margin: 8px 0 14px; }
.step--success .fine { margin-bottom: 16px; }

/* ==========================================================================
   Bands
   ========================================================================== */

.section { padding: clamp(56px, 8vw, 100px) clamp(16px, 4vw, 48px); }

.section__head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.section__head .eyebrow { justify-content: center; }
.section__head h2 { color: var(--dusk); }
.section__sub { margin-top: 14px; color: var(--muted); font-size: 17px; }

/* ----- practice areas ----- */

.services__grid {
  max-width: 1180px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.svc {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  padding: 24px 22px 20px;
  display: flex; flex-direction: column; gap: 9px;
  transition: transform .18s ease, box-shadow .18s ease;
}

.svc:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.svc svg { width: 32px; height: 32px; color: var(--summit); }

.svc h3 { color: var(--dusk); font-size: 19px; }

.svc p { color: var(--muted); font-size: 14.5px; flex: 1; }

.svc__go {
  align-self: flex-start;
  background: none; border: none; padding: 0;
  font: inherit; font-weight: 700; font-size: 14.5px;
  color: var(--summit-deep); cursor: pointer;
}

.svc__go::after { content: " \2192"; }
.svc__go:hover { text-decoration: underline; }

/* ----- why clients choose ----- */

.why { background: var(--white); }

.why__grid {
  max-width: 1180px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.why__item {
  border-top: 3px solid var(--summit);
  background: var(--veil);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 18px 18px 20px;
}

.why__item h3 { color: var(--dusk); font-size: 18px; margin-bottom: 7px; }
.why__item p { color: var(--muted); font-size: 14px; }

/* ----- brain injury band ----- */

.tbi {
  background: var(--night);
  color: var(--veil);
  padding: clamp(56px, 8vw, 100px) clamp(16px, 4vw, 48px);
}

.tbi__inner {
  max-width: 1080px; margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.tbi .eyebrow { color: var(--lavender); }
.tbi h2 { color: var(--white); }
.tbi__copy > p { margin-top: 16px; color: var(--lavender); }
.tbi__copy strong { color: var(--white); }

.tbi__list { list-style: none; display: grid; gap: 14px; }

.tbi__list li {
  background: var(--night-soft);
  border: 1px solid rgba(207, 196, 224, .2);
  border-radius: 12px;
  padding: 15px 17px;
  font-size: 15.5px;
  color: var(--lavender);
  display: flex; gap: 11px; align-items: baseline;
}

.tbi__list li::before { content: "\2713"; color: var(--dawn); font-weight: 700; flex-shrink: 0; }

/* ----- attorney ----- */

.attorney__inner {
  max-width: 1080px; margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .62fr) minmax(0, 1.38fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.attorney__art img {
  width: min(100%, 340px);
  border-radius: var(--radius);
  border: 6px solid var(--white);
  box-shadow: var(--shadow-md);
}

.attorney h2 { color: var(--dusk); }
.attorney__role { color: var(--summit); font-weight: 700; margin-top: 6px; }
.attorney__copy > p { margin-top: 16px; color: #4B4458; }

.attorney__facts {
  margin-top: 22px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}

.attorney__facts h3 { font-size: 15px; color: var(--dusk); letter-spacing: .06em; text-transform: uppercase; font-family: var(--font-body); font-weight: 700; margin-bottom: 8px; }

.attorney__facts ul { list-style: none; display: grid; gap: 7px; }
.attorney__facts li { font-size: 14.5px; color: var(--muted); }
.attorney__facts li strong { color: var(--ink); font-weight: 700; }

.team {
  max-width: 1080px; margin: 44px auto 0;
  border-top: 1px solid var(--mist);
  padding-top: 30px;
  display: flex; gap: 26px; flex-wrap: wrap; align-items: center;
}

.team__label { font-weight: 700; color: var(--dusk); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }

.team__member { display: flex; align-items: center; gap: 12px; }

.team__member img {
  width: 58px; height: 58px; object-fit: cover;
  border-radius: 50%;
  border: 2.5px solid var(--mist);
}

.team__member span { font-weight: 700; color: var(--ink); }

/* ----- testimonials ----- */

.quotes { background: var(--white); }

.quotes__grid {
  max-width: 1180px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.quote {
  background: var(--veil);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  padding: 26px 24px 20px;
  display: flex; flex-direction: column;
}

.quote blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17.5px;
  line-height: 1.5;
  color: #3C3350;
  flex: 1;
}

.quote figcaption {
  margin-top: 16px;
  font-weight: 700;
  color: var(--summit-deep);
  font-size: 14.5px;
  letter-spacing: .04em;
}

/* ----- how it works (their real 4 hiring steps — a true sequence) ----- */

.steps__grid {
  max-width: 1180px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step;
}

.how__step {
  counter-increment: step;
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  padding: 22px 20px;
}

.how__step::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--dusk);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700; font-size: 17px;
  margin-bottom: 12px;
}

.how__step h3 { color: var(--dusk); font-size: 18px; margin-bottom: 7px; }
.how__step p { color: var(--muted); font-size: 14.5px; }

.steps__fine { text-align: center; margin-top: 26px; font-size: 15px; color: var(--muted); }

/* ----- cities ----- */

.cities { background: var(--white); padding-top: 0; }

.cities__inner { max-width: 1080px; margin: 0 auto; text-align: center; }
.cities h2 { color: var(--dusk); font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 18px; }

.towns { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

.towns li {
  background: var(--veil);
  border: 1px solid var(--mist);
  border-radius: 99px;
  font-size: 13.5px; font-weight: 500;
  padding: 5px 14px;
}

/* ----- closer ----- */

.closer {
  position: relative;
  background: var(--night);
  color: var(--veil);
  text-align: center;
  padding: clamp(56px, 8vw, 96px) clamp(16px, 4vw, 48px);
  overflow: hidden;
}

.closer .eyebrow { justify-content: center; color: var(--lavender); }
.closer h2 { color: var(--white); }
.closer p { color: var(--lavender); margin: 14px auto 26px; max-width: 54ch; }
.closer__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ----- footer ----- */

.footer {
  background: var(--night);
  border-top: 1px solid rgba(207, 196, 224, .22);
  color: var(--lavender);
  padding: 34px clamp(16px, 4vw, 48px) 96px;
}

.footer__inner {
  max-width: 1180px; margin: 0 auto 20px;
  display: flex; flex-wrap: wrap; gap: 28px 56px; align-items: flex-start;
}

.footer__brand img { height: 52px; width: auto; }

.footer__col { display: grid; gap: 6px; font-size: 14.5px; }
.footer__col a { color: var(--lavender); text-decoration: none; }
.footer__col a:hover { color: var(--white); }
.footer__col strong { color: var(--veil); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }

.footer__legal {
  max-width: 1180px; margin: 0 auto;
  font-size: 12.5px; color: #8D82A3;
  border-top: 1px solid rgba(207, 196, 224, .22);
  padding-top: 16px;
}

/* ==========================================================================
   Mobile action bar
   ========================================================================== */

.mobilebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(36, 28, 54, .96);
  backdrop-filter: blur(8px);
  transform: translateY(110%);
  transition: transform .25s ease;
}

.mobilebar.is-show { transform: translateY(0); }
.mobilebar .btn { flex: 1; }
.mobilebar .btn--summit { background: var(--summit); }
.mobilebar .btn--ghost { border-color: rgba(207, 196, 224, .5); }

/* ==========================================================================
   Chat
   ========================================================================== */

.chat-launch {
  position: fixed; right: 20px; bottom: 20px; z-index: 70;
  display: flex; align-items: center; gap: 10px;
  background: var(--night);
  color: var(--veil);
  border: 1px solid rgba(201, 127, 53, .5);
  border-radius: 99px;
  padding: 10px 20px 10px 12px;
  font: 700 15px var(--font-body);
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: transform .18s ease, border-color .18s ease;
}

.chat-launch:hover { transform: translateY(-2px); border-color: var(--dawn); }

.chat-launch__mark, .chat__mark {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--summit);
  color: var(--white);
  display: grid; place-items: center;
  flex-shrink: 0;
}

.chat-launch__mark svg, .chat__mark svg { width: 19px; height: 19px; }

.chat-launch::after {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--dawn);
}

.chat[hidden] { display: none; }

.chat {
  position: fixed; right: 20px; bottom: 20px; z-index: 80;
  width: min(400px, calc(100vw - 24px));
  height: min(620px, calc(100vh - 40px));   /* fallback for browsers without dvh */
  height: min(620px, calc(100dvh - 40px));
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  overflow: hidden;
}

/* Header, starters, input row and footer never shrink; only the log scrolls. */
.chat__head, .chat__starters, .chat__inputrow, .chat__foot { flex-shrink: 0; }

.chat__head {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  background: var(--night);
  color: var(--veil);
  padding: 14px 16px;
}

.chat__head::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(to right, var(--summit) 0 72%, var(--dawn) 72% 100%);
}

.chat__head strong { font-family: var(--font-display); font-size: 18px; display: block; line-height: 1.1; }
.chat__head span { font-size: 12px; color: var(--lavender); }

.chat__close {
  margin-left: auto;
  background: none; border: none; color: var(--lavender);
  font-size: 26px; line-height: 1; cursor: pointer; padding: 2px 6px;
}

.chat__close:hover { color: var(--white); }

.chat__log {
  flex: 1;
  min-height: 0; /* lets the log shrink inside the flex column so the input row stays visible */
  overflow-y: auto;
  padding: 16px 14px 8px;
  display: flex; flex-direction: column; gap: 10px;
  background: var(--veil);
}

.msg {
  max-width: 86%;
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 14.5px;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

.msg--user {
  align-self: flex-end;
  background: var(--summit);
  color: var(--white);
  border-bottom-right-radius: 4px;
}

.msg--bot {
  align-self: flex-start;
  background: var(--white);
  border: 1px solid var(--mist);
  border-bottom-left-radius: 4px;
  color: var(--ink);
}

.msg--system {
  align-self: center;
  background: #EDF5EE;
  border: 1px solid #C2E0C8;
  color: #26663A;
  font-size: 13px; font-weight: 700;
  padding: 7px 14px;
  border-radius: 99px;
}

.msg--bot.is-typing::after {
  content: "\2022 \2022 \2022";
  letter-spacing: 3px;
  color: var(--muted);
  animation: pulse 1.1s infinite;
}

@keyframes pulse { 50% { opacity: .35; } }

.chat__starters {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 4px 14px 10px;
  background: var(--veil);
}

.chat__starters button {
  font: 500 13px var(--font-body);
  color: var(--dusk);
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: 99px;
  padding: 7px 13px;
  cursor: pointer;
}

.chat__starters button:hover { border-color: var(--summit); }

.chat__inputrow {
  display: flex; align-items: flex-end; gap: 8px;
  border-top: 1px solid var(--mist);
  padding: 10px 12px;
  background: var(--white);
}

.chat__inputrow textarea {
  flex: 1;
  font: inherit; font-size: 16px;
  border: none; resize: none;
  max-height: 110px;
  padding: 8px 6px;
  background: transparent;
  color: var(--ink);
}

.chat__inputrow textarea:focus { outline: none; }

.chat__inputrow button {
  width: 38px; height: 38px;
  border: none; border-radius: 10px;
  background: var(--summit); color: var(--white);
  cursor: pointer;
  display: grid; place-items: center;
  flex-shrink: 0;
}

.chat__inputrow button:hover { background: var(--dusk); }
.chat__inputrow button svg { width: 18px; height: 18px; }
.chat__inputrow button:disabled { background: var(--mist); cursor: default; }

.chat__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 14px calc(9px + env(safe-area-inset-bottom));
  background: var(--white);
  border-top: 1px solid var(--mist);
  font-size: 12.5px;
}

.chat__foot a { color: var(--muted); text-decoration: none; }

.chat__handoff {
  background: none; border: none; padding: 0;
  font: 700 13px var(--font-body);
  color: var(--summit-deep); cursor: pointer;
}

.chat__handoff:hover { text-decoration: underline; }

/* ==========================================================================
   Reveal animation
   ========================================================================== */

/* Progressive: elements only start hidden once JS has tagged <body class="js"> */
body.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
body.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body.js .reveal { transition: opacity .3s ease; transform: none; }
  .svc, .btn, .chat-launch, .mobilebar { transition: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; }
  .lead-card { max-width: 560px; }
  .services__grid { grid-template-columns: 1fr 1fr; }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .why__grid .why__item:last-child { grid-column: 1 / -1; }
  .tbi__inner { grid-template-columns: 1fr; }
  .steps__grid { grid-template-columns: 1fr 1fr; }
  .quotes__grid { grid-template-columns: 1fr; max-width: 640px; }
}

@media (max-width: 860px) {
  .nav {
    position: fixed; inset: 66px 0 auto 0; z-index: 49;
    flex-direction: column; gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--mist);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 15px 22px; border-bottom: 1px solid var(--mist); font-size: 16px; }
  .header__phone { display: none; }
  .header__cta { display: none; }
  .navtoggle {
    display: grid; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px;
  }
  .navtoggle span { width: 22px; height: 2.5px; background: var(--dusk); border-radius: 2px; }
  .attorney__inner { grid-template-columns: 1fr; }
  .attorney__art img { width: min(70%, 300px); }
  .mobilebar { display: flex; }
  .chat-launch { bottom: calc(74px + env(safe-area-inset-bottom)); right: 14px; padding: 9px 16px 9px 10px; }
  .chat { right: 0; bottom: 0; width: 100vw; height: 100vh; height: 100dvh; border-radius: 0; }
}

@media (max-width: 560px) {
  .services__grid { grid-template-columns: 1fr; }
  .why__grid { grid-template-columns: 1fr; }
  .steps__grid { grid-template-columns: 1fr; }
  .chips { grid-template-columns: 1fr 1fr; }
  .hero__cta .btn { flex: 1; }
  .hero__trust { grid-template-columns: 1fr; }
  .lead-card { padding: 24px 18px 18px; }
  .attorney__facts { grid-template-columns: 1fr; }
  .brand img { height: 38px; }
}

/* desktop tel fallback toast */
.teltoast {
  position: fixed; left: 50%; bottom: 26px; z-index: 300;
  transform: translateX(-50%) translateY(8px);
  background: #1B1B22; color: #FFFFFF;
  font-size: 15px; font-weight: 600;
  padding: 12px 22px; border-radius: 999px;
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, .4);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.teltoast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }
