:root {
  --ink: #101010;
  --muted: #5b625f;
  --soft: #f8f7f2;
  --surface: #ffffff;
  --line: #dedbd2;
  --teal: #2b9c93;
  --teal-soft: #e8f5f2;
  --orange: #e79800;
  --orange-soft: #fff3df;
  --form-label-gap: 8px;
  --heading-copy-gap: 12px;
  --shadow: 0 24px 70px rgba(23, 43, 41, 0.12);
  --serif: "Iowan Old Style", "Georgia", "Times New Roman", serif;
  --sans: Aileron, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Shared service detail pages */
.service-page-shell {
  max-width: none;
  padding: 0 0 96px;
}

.service-page-hero {
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
  grid-template-areas: "copy form";
  gap: 44px;
  width: min(1240px, calc(100% - 88px));
  margin: 0 auto;
  padding: 64px 0 52px;
  align-items: center;
}

.service-hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.62fr);
  grid-template-areas:
    "eyebrow media"
    "title media"
    "summary media"
    "meta media";
  column-gap: 34px;
  align-items: center;
  max-width: none;
}

.service-hero-copy > .eyebrow { grid-area: eyebrow; align-self: end; }
.service-hero-copy h1 { grid-area: title; font-size: clamp(44px, 4.4vw, 68px); line-height: .98; }
.service-hero-summary { grid-area: summary; margin: 18px 0 0; }
.service-hero-meta { grid-area: meta; }

.service-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 16px;
  margin-top: 20px;
  color: #3e514d;
  font-size: 13px;
  font-weight: 800;
}

.service-hero-meta span,
.service-start-panel__assurance {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.service-hero-meta .button-icon,
.service-start-panel__assurance .button-icon { width: 17px; height: 17px; color: var(--teal); }

.service-hero-media {
  grid-area: media;
  min-height: 0;
  height: 280px;
  margin: 0;
  box-shadow: none;
}

.service-hero-media img {
  min-height: 0;
  height: 100%;
  animation: none;
}

.service-start-panel { position: static; padding: 24px; }
.service-start-panel h2 { font-size: clamp(27px, 2.5vw, 38px); }
.service-start-panel__assurance { margin: 16px 0 0; color: #53635f; font-size: 12px; font-weight: 750; }
.service-auth-methods { display: none; }

.service-chapter-nav {
  position: fixed;
  top: 68px;
  right: 0;
  left: 0;
  z-index: 55;
  display: flex;
  justify-content: flex-start;
  gap: 42px;
  border-block: 1px solid var(--line);
  background: rgba(255, 253, 248, .96);
  padding: 15px max(44px, calc((100% - 1320px) / 2 + 44px));
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
  visibility: hidden;
  backdrop-filter: blur(12px);
  transition: opacity 180ms ease, transform 220ms ease, visibility 0s linear 220ms;
}

.service-chapter-nav.is-docked {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
  transition-delay: 0s;
}

[data-section-nav-section] { scroll-margin-top: 138px; }

.service-chapter-nav a { color: #42514e; font-size: 14px; font-weight: 800; text-decoration: none; }
.service-chapter-nav a:hover { color: var(--teal); }

.service-knowledge-section,
.service-faq-section,
.service-bottom-cta {
  width: min(1120px, calc(100% - 88px));
  margin-inline: auto;
}

.service-knowledge-section {
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
  gap: 68px;
  padding: 86px 0;
}

.service-knowledge-section h2,
.service-process-section h2,
.service-bottom-cta h2 { margin: 0; font-size: clamp(34px, 4vw, 52px); line-height: 1.02; }
.service-section-copy h2 + p,
.service-process-section header h2 + p,
.service-bottom-cta h2 + p,
.service-start-panel h2 + p,
.home-deep-link h2 + p,
.memorial-section h2 + p,
.partner-band h2 + p,
.pricing-note h2 + p,
.intake-wizard-step header h2 + p,
.intake-result-panel__header h2 + p {
  margin-top: var(--heading-copy-gap);
}
.service-knowledge-section .service-section-copy > p:last-child { color: var(--muted); font-size: 16px; line-height: 1.6; }

.service-knowledge-list { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; }
.service-knowledge-list details + details { border-top: 1px solid var(--line); }
.service-knowledge-list summary { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: center; padding: 20px 22px; cursor: pointer; list-style: none; }
.service-knowledge-list summary::-webkit-details-marker { display: none; }
.service-knowledge-list summary span { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: var(--teal-soft); color: var(--teal); font-size: 12px; }
.service-knowledge-list summary strong { font-size: 16px; line-height: 1.3; }
.service-knowledge-list details > p { margin: -6px 22px 20px 72px; color: var(--muted); line-height: 1.55; }

.service-process-section {
  background: #edf8f5;
  padding: 76px max(44px, calc((100% - 1120px) / 2));
}

.service-process-section > header { max-width: 720px; margin-bottom: 38px; }
.service-process-section > header > p:last-child { color: var(--muted); font-size: 17px; line-height: 1.55; }
.service-process-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: 62px; align-items: center; }
.service-process-visual { height: 390px; margin: 0; border: 1px solid rgba(43, 156, 147, .22); border-radius: 18px; overflow: hidden; background: #fffaf1; }
.service-process-visual img { width: 100%; height: 100%; object-fit: cover; }
.service-process-steps { position: relative; }
.service-process-steps::before { position: absolute; top: 25px; bottom: 25px; left: 20px; width: 1px; background: rgba(35, 151, 142, .28); content: ""; }
.service-process-steps article { position: relative; display: grid; grid-template-columns: 42px 1fr; gap: 16px; padding: 18px 0; }
.service-process-steps article > span { z-index: 1; display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid #78928d; border-radius: 50%; background: #edf8f5; color: #435854; font-size: 12px; font-weight: 900; }
.service-process-steps article.is-active > span { border-color: var(--teal); background: var(--teal); color: #fff; }
.service-process-steps h3 { margin: 2px 0 6px; font-size: 19px; }
.service-process-steps p { margin: 0; color: var(--muted); line-height: 1.5; }

.service-faq-section {
  display: grid;
  grid-template-columns: minmax(0, .55fr) minmax(0, 1fr);
  gap: 50px;
  border: 0;
  margin-top: 0;
  padding: 86px 0;
  background: #fff;
}

.service-faq-section::before { position: absolute; right: 0; left: 0; z-index: -1; height: inherit; background: #fff; content: ""; }

.service-bottom-cta { display: flex; align-items: center; justify-content: space-between; gap: 36px; border: 1px solid rgba(35, 151, 142, .24); border-radius: 20px; background: var(--teal-soft); padding: 34px 40px; }
.service-bottom-cta h2 { font-size: clamp(30px, 3vw, 42px); }
.service-bottom-cta p:last-child { margin-bottom: 0; color: var(--muted); }
.service-bottom-cta .button { flex: 0 0 auto; }

@media (max-width: 1024px) {
  .service-page-hero { grid-template-columns: 1fr; grid-template-areas: "copy" "form"; width: min(760px, calc(100% - 48px)); padding-top: 44px; }
  .service-start-panel { width: 100%; }
  .service-knowledge-section, .service-faq-section { width: min(760px, calc(100% - 48px)); grid-template-columns: 1fr; gap: 30px; }
  .service-process-layout { grid-template-columns: 1fr; }
  .service-process-visual { height: 360px; }
  .service-bottom-cta { width: min(760px, calc(100% - 48px)); }
}

@media (max-width: 700px) {
  .service-page-hero { width: calc(100% - 36px); padding: 34px 0 38px; }
  .service-hero-copy { grid-template-columns: 1fr; grid-template-areas: "eyebrow" "title" "summary" "meta" "media"; }
  .service-hero-copy h1 { font-size: clamp(40px, 12vw, 56px); }
  .service-hero-media { height: 220px; margin-top: 28px; }
  .service-chapter-nav { top: 64px; justify-content: flex-start; gap: 24px; overflow-x: auto; white-space: nowrap; }
  .service-knowledge-section, .service-faq-section { width: calc(100% - 36px); padding: 58px 0; }
  .service-process-section { padding: 58px 18px; }
  .service-process-visual { height: 250px; }
  .service-process-layout { gap: 28px; }
  .service-knowledge-list summary { padding: 17px 16px; }
  .service-knowledge-list details > p { margin: -4px 16px 18px 66px; }
  .service-bottom-cta { width: calc(100% - 36px); flex-direction: column; align-items: stretch; padding: 28px 24px; }
  .service-bottom-cta .button { width: 100%; }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  margin: -1px !important;
  border: 0 !important;
  padding: 0 !important;
  white-space: nowrap !important;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: clip;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

main {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  width: 100%;
}

main > :only-child {
  flex: 1 0 auto;
}

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

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

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  width: 100%;
  min-height: 68px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.site-header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  min-height: 68px;
  padding: 10px 44px;
}

.page-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  height: 3px;
  overflow: hidden;
  background: rgba(43, 156, 147, 0.14);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.page-progress.is-scrollable {
  opacity: 1;
}

.page-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--teal);
  transform: translateZ(0) scaleX(0);
  transform-origin: left center;
  backface-visibility: hidden;
  contain: paint;
  will-change: transform;
}

.brand {
  display: inline-flex;
  align-items: center;
  position: relative;
  z-index: 31;
}

.brand img {
  display: block;
  width: 142px;
  height: 38px;
  object-fit: contain;
  object-position: left center;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: 18px;
  font-size: 14px;
  font-weight: 700;
}

.nav-trigger {
  padding: 8px 2px;
}

.mega-item {
  position: relative;
}

.nav-trigger {
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-weight: 850;
}

.nav-trigger::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-3px);
}

.mega-panel {
  position: fixed;
  top: 78px;
  left: 24px;
  right: auto;
  z-index: 80;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr) minmax(320px, 1.2fr);
  grid-template-rows: auto auto;
  column-gap: 30px;
  row-gap: 18px;
  box-sizing: border-box;
  width: min(1240px, calc(100vw - 48px));
  min-width: min(1240px, calc(100vw - 48px));
  max-width: min(1240px, calc(100vw - 48px));
  height: min(390px, calc(100vh - 108px));
  min-height: min(390px, calc(100vh - 108px));
  max-height: calc(100vh - 108px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 30px;
  box-shadow: 0 28px 70px rgba(23, 43, 41, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.985);
  transform-origin: top center;
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  visibility: hidden;
}

.mega-panel[hidden] {
  display: none;
}

.mega-panel.narrow {
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.16fr);
  grid-template-rows: auto auto;
}

.mega-panel.resources-panel {
  grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.18fr);
  grid-template-rows: 1fr;
  gap: 30px;
}

.mega-panel.about-menu {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  grid-template-rows: 1fr;
}

#mega-services > .mega-column:first-child {
  grid-column: 1;
  grid-row: 1;
}

#mega-services > .mega-column:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}

#mega-services > .mega-cta {
  grid-column: 1 / span 2;
  grid-row: 2;
}

#mega-services > .mega-visual {
  grid-column: 3;
  grid-row: 1 / span 2;
}

#mega-organisations > .mega-column {
  grid-column: 1;
  grid-row: 1;
}

#mega-organisations > .mega-cta {
  grid-column: 1;
  grid-row: 2;
}

#mega-organisations > .mega-visual {
  grid-column: 2;
  grid-row: 1 / span 2;
}

#mega-about > .mega-visual {
  grid-column: 2;
}

#mega-resources > .mega-visual {
  grid-column: 3;
}

.mega-item[data-open="true"] .mega-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.mega-item[data-open="true"] .nav-trigger {
  color: #147c75;
}

.mega-column {
  display: grid;
  align-content: start;
  min-width: 0;
  gap: 4px;
}

.mega-kicker {
  margin-bottom: 10px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.25;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mega-link {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  border-radius: 8px;
  padding: 5px 8px 5px 2px;
  color: #2c3632;
  font-size: 14px;
  font-weight: 780;
  line-height: 1.32;
}

.mega-link:hover,
.mega-link:focus-visible {
  background: var(--teal-soft);
  color: #147c75;
  outline: 0;
}

.mega-link-icon {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: #147c75;
  transition: color 160ms ease;
}

.mega-link-icon-svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.mega-link-label {
  min-width: 0;
}

.mega-link-arrow {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.mega-link:hover .mega-link-icon,
.mega-link:focus-visible .mega-link-icon {
  color: #147c75;
}

.mega-link:hover .mega-link-arrow,
.mega-link:focus-visible .mega-link-arrow {
  opacity: 1;
  transform: translateX(0);
}

.mega-visual {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  justify-content: stretch;
  min-width: 0;
  margin-block: -30px;
  margin-right: -30px;
  border-left: 1px solid var(--line);
  overflow: hidden;
}

.mega-visual img {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
}

.mega-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0;
  min-width: 0;
}

.mega-cta.compact-cta {
  align-items: center;
}

.mega-cta strong {
  font-family: var(--serif);
  font-size: clamp(22px, 1.6vw, 28px);
  line-height: 1.08;
  overflow-wrap: normal;
}

.mega-cta p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.mega-action,
.nav-demo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mega-action {
  width: fit-content;
  max-width: 100%;
  min-height: 46px;
  justify-content: center;
  margin-top: 4px;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
}

.mega-action .button-icon,
.nav-demo .button-icon {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
}

.nav-demo {
  min-width: 104px;
  min-height: 42px;
  justify-content: center;
  border: 1px solid rgba(35, 151, 142, 0.28);
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  padding: 0 16px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(23, 43, 41, 0.08);
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-demo:hover,
.nav-demo:focus-visible {
  border-color: rgba(35, 151, 142, 0.42);
  background: #147c75;
  color: #fff;
  outline: 0;
  transform: translateY(-1px);
}

.header-auth,
.menu-button {
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 800;
}

.header-auth {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
}

.profile-shell {
  position: relative;
  justify-self: end;
}

.profile-button {
  border: 0;
  background: transparent;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  padding: 0;
  cursor: pointer;
}

.profile-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}

.account-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 75;
  display: grid;
  min-width: 220px;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 20px 50px rgba(23, 43, 41, 0.16);
}

.account-menu[hidden] {
  display: none;
}

.account-menu strong,
.account-menu a {
  border-radius: 10px;
  padding: 10px 12px;
}

.account-menu strong {
  color: var(--muted);
  font-size: 12px;
  word-break: break-word;
}

.account-menu a {
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
}

.account-menu-link {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.account-menu-link__icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #147c75;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.account-menu a:hover {
  background: var(--teal-soft);
}

.menu-button,
.mobile-nav,
.menu-scrim {
  display: none;
}

.header-icon {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 74px 44px 58px;
}

.hero-copy {
  max-width: 100%;
  min-width: 0;
  align-self: start;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2 {
  font-family: var(--serif);
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(48px, 5.4vw, 78px);
  line-height: 0.96;
  font-weight: 800;
}

.hero-title-frame {
  --hero-title-clip-top: clamp(12px, 1.3vw, 20px);
  --hero-title-clip-bottom: clamp(34px, 4vw, 58px);
  overflow: hidden;
  padding: var(--hero-title-clip-top) 0 var(--hero-title-clip-bottom);
  margin: calc(-1 * var(--hero-title-clip-top)) 0 calc(-1 * var(--hero-title-clip-bottom));
}

.hero-title {
  transform-origin: 30% 45%;
}

.hero-title.is-entering {
  animation: hero-title-settle 820ms cubic-bezier(.2, .85, .25, 1.12) both;
}

@keyframes hero-title-settle {
  0% {
    opacity: 0;
    transform: translateY(0.55em);
  }
  56% {
    opacity: 1;
    transform: translateY(-0.08em);
  }
  74% {
    transform: translateY(0.035em);
  }
  89% {
    transform: translateY(-0.012em);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-title.is-entering {
    animation: none;
  }
}

.hero-copy > p {
  max-width: 760px;
  margin-top: 20px;
  color: #303835;
  font-size: 18px;
  line-height: 1.56;
}

.typed-line {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  color: #2f3935;
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 850;
  line-height: 1.18;
}

.typed-line span {
  position: relative;
  color: var(--teal);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 260ms ease, transform 260ms ease;
  will-change: opacity, transform;
}

.typed-line span.is-fading {
  opacity: 0;
  transform: translateY(4px);
}

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

.hero-choice-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 188px;
  grid-template-columns: none;
  gap: 12px;
  margin-top: 22px;
  max-width: 100%;
  padding: 2px 2px 14px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-padding-inline: 2px;
  scroll-snap-type: inline mandatory;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 981px) {
  .hero-choice-grid {
    width: min(1320px, calc(50vw + 522px), calc(100vw - 68px));
    max-width: none;
    padding-right: 24px;
  }
}

.hero-choice-card {
  --action-surface: #f3f8f7;
  --action-accent: #2b9c93;
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: stretch;
  justify-items: stretch;
  gap: 0;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--action-surface);
  padding: 0;
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(23, 43, 41, 0.06);
  font-weight: 900;
  line-height: 1.2;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
  scroll-snap-align: start;
}

.hero-choice-card:hover,
.hero-choice-card:focus-visible {
  border-color: rgba(35, 151, 142, 0.42);
  background: #f3f8f7;
  outline: 0;
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(23, 43, 41, 0.1);
}

.hero-choice-card .button-icon {
  width: 22px;
  height: 22px;
  color: var(--teal);
}

.hero-choice-art {
  display: block;
  width: 100%;
  aspect-ratio: 436 / 640;
  height: auto;
  margin: 0;
  object-fit: contain;
  object-position: center;
  border: 0;
  border-radius: 0;
  background: var(--action-surface);
  filter: saturate(1.08) contrast(1.02);
  mix-blend-mode: multiply;
}

.hero-choice-card span {
  display: flex;
  align-items: flex-start;
  align-self: stretch;
  min-height: 68px;
  box-sizing: border-box;
  padding: 14px 14px 16px;
  min-width: 0;
  border-top: 3px solid var(--action-accent);
  background: #fff;
}

.hero-choice-card--will { --action-surface: #eaf5ef; --action-accent: #3e8f72; }
.hero-choice-card--lpa { --action-surface: #eef0fa; --action-accent: #6d78b8; }
.hero-choice-card--acp { --action-surface: #fff1e8; --action-accent: #d27b55; }
.hero-choice-card--amd { --action-surface: #f4edf8; --action-accent: #9169a5; }
.hero-choice-card--deputyship { --action-surface: #edf4fb; --action-accent: #5687aa; }
.hero-choice-card--estate { --action-surface: #f8f0df; --action-accent: #ad8044; }
.hero-choice-card--funeral { --action-surface: #f6e9e7; --action-accent: #a85f5c; }
.hero-choice-card--resting { --action-surface: #edf3e4; --action-accent: #718c54; }
.hero-choice-card--demo { --action-surface: #e8f3f4; --action-accent: #237b82; }

.hero-choice-grid,
.country-grid {
  scrollbar-width: none;
}

.hero-choice-grid::-webkit-scrollbar,
.country-grid::-webkit-scrollbar {
  display: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 62px;
  padding: 0 34px;
  border-radius: 12px;
  border: 1.5px solid var(--ink);
  font-size: 16px;
  font-weight: 850;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(23, 43, 41, 0.12);
}

.primary {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.orange {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}

.ghost {
  background: #fff;
  color: var(--ink);
}

.text-action {
  display: inline-flex;
  gap: 10px;
  margin-top: 22px;
  color: #147c75;
  font-weight: 850;
  border-bottom: 1px solid currentColor;
  padding-bottom: 5px;
}

.availability {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 30px;
}

.availability .availability-label {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 15px 24px;
  color: var(--ink);
  font-weight: 800;
  box-shadow: 0 8px 26px rgba(34, 34, 34, 0.06);
}

.availability div {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 13px;
}

.availability strong {
  color: #157b47;
  font-size: 14px;
}

.hero-visual {
  position: relative;
  min-height: 595px;
}

.sketch-hero {
  display: grid;
  align-content: start;
  gap: 18px;
}

.family-art {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center top;
  border-radius: 4px;
  filter: drop-shadow(0 22px 38px rgba(59, 64, 60, 0.08));
}

.hero-sketch-art {
  height: 430px;
  object-position: center 42%;
  border: 1px solid rgba(16, 16, 16, 0.08);
  background: #fff;
}

.hero-sketch-tiles {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 16px;
  width: min(520px, 78%);
  margin-left: 12px;
}

.hero-sketch-tiles figure {
  display: grid;
  gap: 8px;
  margin: 0;
  min-width: 0;
}

.hero-sketch-tiles img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 2.25;
  object-fit: cover;
  object-position: center 42%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.hero-sketch-tiles figcaption {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.case-preview {
  position: absolute;
  right: 28px;
  bottom: 16px;
  width: min(560px, 86%);
  padding: 28px;
  border: 1px solid rgba(16, 16, 16, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.case-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.case-head span,
.case-head strong {
  font-size: 18px;
  font-weight: 900;
}

.case-head small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.case-head strong {
  color: var(--teal);
}

.progress-line {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 28px 0;
}

.progress-line span {
  height: 10px;
  border-radius: 999px;
  background: #e7e4da;
}

.progress-line .done {
  background: var(--teal);
}

.progress-line .active {
  background: var(--orange);
}

.case-update {
  border-top: 1px solid var(--line);
  padding-top: 17px;
  color: #39413e;
  font-size: 14px;
}

.trust-strip {
  display: grid;
  grid-template-columns: 0.74fr 1.26fr;
  gap: 42px;
  align-items: stretch;
  max-width: 1320px;
  margin: 0 auto;
  padding: 20px 44px 50px;
}

.trust-copy {
  padding: 32px 0;
}

.trust-copy h2 {
  max-width: 460px;
  font-family: var(--serif);
  font-size: clamp(31px, 3vw, 46px);
  line-height: 1.05;
}

.trust-copy p {
  max-width: 420px;
  margin-top: 16px;
  color: var(--muted);
  line-height: 1.52;
}

.timeline-care-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.48fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  width: calc(100% - 88px);
  max-width: 1180px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 84px 0 0;
}

.timeline-care-copy {
  position: sticky;
  top: 104px;
}

.timeline-care-copy h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 60px);
  line-height: 0.98;
}

.timeline-care-copy p {
  color: var(--muted);
  line-height: 1.55;
}

.timeline-care-grid {
  display: grid;
  gap: 14px;
}

.timeline-care-item {
  display: grid;
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 24px;
  box-shadow: 0 18px 44px rgba(23, 43, 41, 0.08);
}

.timeline-care-item small {
  color: var(--teal);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-care-item h3 {
  margin: 0;
  font-size: clamp(24px, 2.5vw, 34px);
}

.timeline-care-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.timeline-care-item span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
  color: #147c75;
  font-weight: 900;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  position: relative;
  min-height: 286px;
  overflow: hidden;
  padding: 0 22px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(23, 43, 41, 0.06);
}

.feature-illustration {
  display: block;
  width: calc(100% + 44px);
  height: 144px;
  margin: 0 -22px 20px;
  object-fit: contain;
  padding: 10px;
  box-sizing: border-box;
  object-position: center;
  border-bottom: 1px solid rgba(16, 16, 16, 0.08);
  background: #fffaf2;
}

.feature-card h3,
.country-card h3,
.demo-case h3,
.service-options h3,
.memorial-section h2 {
  font-family: var(--serif);
}

.feature-card h3 {
  font-size: 22px;
}

.feature-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.section {
  max-width: 1320px;
  margin: 0 auto;
  padding: 58px 44px;
}

.section-heading {
  text-align: center;
  margin-bottom: 32px;
}

.section-heading h2,
.product-header h2,
.partner-band h2,
.answers h2 {
  font-size: clamp(32px, 3.1vw, 48px);
  line-height: 1.05;
}

.pathway-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 42px;
}

.path-card {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  min-height: 420px;
  padding: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--teal-soft), #f8fbfa);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.path-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(23, 43, 41, 0.1);
}

.path-card.warm {
  background: linear-gradient(180deg, var(--orange-soft), #fffbf5);
}

.path-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border-bottom: 1px solid rgba(16, 16, 16, 0.08);
}

.path-card h3 {
  align-self: end;
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.05;
  padding: 24px 26px 0;
}

.path-card p {
  max-width: 270px;
  margin-top: 10px;
  color: #3f4642;
  line-height: 1.45;
  padding: 0 26px;
}

.path-card span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 0 26px 26px;
  color: #177d77;
  font-weight: 850;
}

.path-card span .button-icon {
  width: 17px;
  height: 17px;
}

.warm span {
  color: #ca7900;
}

.steps-section {
  padding-top: 44px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 16px;
  text-align: left;
}

.step-number {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  box-shadow: 0 8px 20px rgba(23, 43, 41, 0.16);
  font-weight: 900;
}

.step-drawing {
  position: relative;
  width: 100%;
  max-width: none;
  height: auto;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(23, 43, 41, 0.06);
}

.step-drawing img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.step-copy {
  display: grid;
  gap: 8px;
}

.step h3 {
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.08;
}

.step p {
  color: var(--muted);
  line-height: 1.45;
}

.asean-section {
  display: grid;
  gap: 24px;
  max-width: 1320px;
  margin: 22px auto 0;
  padding: 38px 44px 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.asean-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 24px;
  row-gap: 12px;
  align-items: start;
}

.asean-copy h2,
.asean-copy p {
  grid-column: 1;
}

.asean-copy h2,
.demo-copy h2,
.product-header h2,
.partner-band h2,
.answers h2 {
  font-size: clamp(32px, 3.1vw, 48px);
  line-height: 1.05;
}

.asean-copy p,
.demo-copy p {
  max-width: 480px;
  margin-top: 0;
  color: var(--muted);
  line-height: 1.55;
}

.asean-copy a,
.memorial-section a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  color: var(--teal);
  font-weight: 900;
}

.asean-copy a {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
}

.country-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 1fr);
  grid-template-columns: none;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 2px 2px 12px;
  scroll-padding-inline: 2px;
  scroll-snap-type: inline mandatory;
  -webkit-overflow-scrolling: touch;
}

.country-card {
  display: block;
  min-height: 270px;
  overflow: hidden;
  padding: 0 18px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #fbfaf5);
  color: inherit;
  text-decoration: none;
  scroll-snap-align: start;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.country-card:hover {
  border-color: rgba(43, 156, 147, 0.55);
  box-shadow: 0 12px 28px rgba(23, 43, 41, 0.09);
  transform: translateY(-2px);
}

.country-card:focus-visible {
  outline: 3px solid rgba(43, 156, 147, 0.3);
  outline-offset: 3px;
}

.country-skyline {
  display: block;
  width: calc(100% + 36px);
  aspect-ratio: 3 / 2;
  height: auto;
  margin: 0 -18px 16px;
  object-fit: contain;
  object-position: center;
  border: 0;
  background: transparent;
}

.country-card h3 {
  font-size: 25px;
}

.country-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.country-directory {
  width: min(calc(100% - 88px), 1240px);
  margin: 0 auto;
  padding: 72px 0 120px;
}

.country-directory__header {
  max-width: 900px;
  margin-bottom: 38px;
}

.country-directory__header h1 {
  max-width: 780px;
  margin-top: 8px;
  font-size: clamp(46px, 5.6vw, 74px);
  line-height: 0.98;
}

.country-directory__header > p:last-child {
  max-width: 850px;
  margin-top: 20px;
  color: #4b5753;
  font-size: 18px;
  line-height: 1.65;
}

.country-directory__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.country-directory-card {
  display: flex;
  min-width: 0;
  min-height: 390px;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(43, 156, 147, 0.2);
  border-radius: 18px;
  background: #f4faf8;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.country-directory-card:nth-child(2n) {
  background: #fdf8ed;
}

.country-directory-card:hover,
.country-directory-card:focus-visible {
  border-color: rgba(43, 156, 147, 0.58);
  box-shadow: 0 16px 34px rgba(23, 43, 41, 0.1);
  outline: none;
  transform: translateY(-3px);
}

.country-directory-card__visual {
  display: grid;
  width: 100%;
  min-height: 176px;
  margin: 0;
  padding: 18px 14px 4px;
  place-items: end center;
}

.country-directory-card__visual img {
  display: block;
  width: 100%;
  max-height: 176px;
  object-fit: contain;
  object-position: center bottom;
}

.country-directory-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  border-top: 1px solid rgba(43, 156, 147, 0.13);
  padding: 18px;
}

.country-directory-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.country-directory-card__meta span {
  border-radius: 999px;
  background: rgba(43, 156, 147, 0.12);
  padding: 5px 8px;
  color: #147c75;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.country-directory-card__meta small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.country-directory-card h2 {
  margin-top: 14px;
  font-size: 30px;
  line-height: 1;
}

.country-directory-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.country-directory-card__body > strong {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--teal);
  font-size: 12px;
}

.country-directory-card__body > strong .button-icon {
  width: 16px;
  height: 16px;
}

@media (max-width: 1050px) {
  .country-directory__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .country-directory {
    width: 100%;
    padding: 48px 18px 100px;
  }

  .country-directory__header > p:last-child {
    font-size: 16px;
  }

  .country-directory__grid {
    grid-template-columns: 1fr;
  }

  .country-directory-card {
    min-height: 360px;
  }
}

.demo-section {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 46px;
  align-items: center;
  max-width: 1320px;
  margin: 22px auto 0;
  padding: 64px 44px;
}

.demo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.demo-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 12px 18px;
  color: #36413e;
  cursor: pointer;
  font-size: 14px;
  font-weight: 850;
}

.demo-tabs button .button-icon,
.choice-list .choice-example .button-icon {
  width: 17px;
  height: 17px;
}

.demo-tabs .active {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.interactive-demo-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(520px, 1.25fr);
  gap: 48px;
  align-items: start;
  max-width: 1320px;
  margin: 0 auto;
  padding: 78px 44px 142px;
}

.demo-intro {
  position: sticky;
  top: 104px;
}

.demo-intro h1 {
  margin: 0;
  font-size: clamp(46px, 5.8vw, 78px);
  line-height: 0.94;
}

.demo-intro p:not(.eyebrow) {
  margin-top: 18px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.demo-intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.demo-builder {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(23, 43, 41, 0.1);
  overflow: hidden;
}

.demo-stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.demo-stepper span {
  display: grid;
  min-height: 52px;
  place-items: center;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.demo-stepper .active {
  background: var(--teal-soft);
  color: #147c75;
}

.demo-stepper .done {
  background: #f7fbf5;
  color: #157b47;
}

.demo-lead-form {
  display: grid;
}

.demo-step {
  padding: 34px;
}

.demo-step[hidden] {
  display: none;
}

.demo-step-heading {
  max-width: 640px;
}

.demo-step-heading small {
  color: var(--teal);
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.demo-step-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
}

.demo-step-heading p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.demo-scenario-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.demo-scenario {
  display: grid;
  gap: 10px;
  min-height: 178px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 20px;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.demo-scenario:hover,
.demo-scenario:focus-visible,
.demo-scenario.active {
  border-color: var(--teal);
  outline: 0;
  box-shadow: 0 18px 44px rgba(23, 43, 41, 0.08);
  transform: translateY(-1px);
}

.demo-scenario .button-icon {
  width: 24px;
  height: 24px;
  color: var(--teal);
}

.demo-scenario strong {
  font-size: 18px;
}

.demo-scenario span {
  color: var(--muted);
  line-height: 1.45;
}

.demo-detail-grid,
.demo-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.demo-detail-grid label,
.demo-contact-grid label {
  display: grid;
  gap: var(--form-label-gap);
  color: #2d3532;
  font-weight: 850;
}

.demo-detail-grid select,
.demo-contact-grid input,
.demo-contact-grid textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 13px 14px;
  color: var(--ink);
  font: inherit;
}

.demo-detail-grid fieldset {
  display: grid;
  gap: 10px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}

.demo-detail-grid legend {
  padding: 0 6px;
  color: #2d3532;
  font-weight: 850;
}

.demo-detail-grid fieldset label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.demo-contact-grid label:last-child {
  grid-column: 1 / -1;
}

.demo-live-preview {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 0.9fr);
  gap: 18px;
  margin-top: 28px;
}

.demo-case-preview,
.demo-whatsapp-preview {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 24px;
}

.demo-case-preview span {
  color: var(--teal);
  font-size: 13px;
  font-weight: 950;
}

.demo-case-preview h3 {
  margin-top: 12px;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1;
}

.demo-case-preview p {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.demo-route {
  margin-top: 24px;
  border-radius: 14px;
  background: var(--teal-soft);
  padding: 14px;
  color: #147c75;
  font-weight: 900;
}

.demo-whatsapp-preview {
  background: #f7fbf5;
}

.demo-controls {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 22px 34px;
}

.demo-panel {
  display: block;
}

.demo-flow-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) minmax(280px, 1fr);
  gap: 22px;
  align-items: stretch;
}

.demo-flow-panel[hidden] {
  display: none;
}

.phone-demo,
.demo-case {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 22px 55px rgba(23, 43, 41, 0.08);
}

.phone-demo {
  padding: 18px;
}

.phone-top {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  color: #157b47;
  font-size: 13px;
}

.message-list {
  display: grid;
  gap: 12px;
  padding-top: 18px;
}

.message-list p {
  width: 88%;
  border-radius: 18px 18px 18px 4px;
  background: #e8f6ea;
  padding: 13px 14px;
  color: #26312d;
  font-size: 14px;
  line-height: 1.42;
}

.message-list .from-user {
  justify-self: end;
  border-radius: 18px 18px 4px 18px;
  background: #f4f1e8;
}

.demo-case {
  display: grid;
  align-content: center;
  padding: 30px;
}

.demo-case h3 {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
}

.demo-case p {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.mini-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 26px 0;
}

.mini-progress span {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.mini-progress .done {
  border-color: var(--teal);
  background: var(--teal-soft);
  color: #147c75;
}

.compact {
  min-height: 50px;
  width: max-content;
  padding: 0 24px;
}

.public-band {
  --public-band-gutter: max(44px, calc((100vw - 1232px) / 2));
  width: 100%;
  max-width: none;
  margin-right: 0;
  margin-left: 0;
  padding-right: var(--public-band-gutter);
  padding-left: var(--public-band-gutter);
}

.public-band + .public-band {
  margin-top: 0;
  border-top: 0;
}

.public-band:last-child {
  margin-bottom: 0;
}

.product-shell {
  margin-top: 36px;
  padding: 68px var(--public-band-gutter);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.product-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.product-header p {
  margin-top: 8px;
  color: var(--muted);
}

.product-header span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.product-visual-row {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(320px, 1fr);
  gap: 26px;
  align-items: center;
  margin-bottom: 26px;
}

.product-illustration {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 2.25;
  object-fit: cover;
  object-position: center 44%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(23, 43, 41, 0.08);
}

.product-visual-row h3 {
  max-width: 520px;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
}

.product-visual-row p {
  max-width: 620px;
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.52;
}

.intake-flow {
  display: grid;
  grid-template-columns: minmax(320px, 0.86fr) minmax(220px, 0.46fr) minmax(300px, 0.68fr);
  gap: 22px;
}

.question-card,
.quiet-summary,
.service-options article {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.question-card {
  padding: 30px;
  background: linear-gradient(180deg, #fff, #f8fbfa);
}

.question-card small {
  color: var(--teal);
  font-weight: 900;
}

.question-card h3 {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
}

.question-card p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.choice-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.choice-list .choice-example {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 15px 18px;
  text-align: left;
  color: #28312e;
  cursor: default;
  font-weight: 850;
}


.quiet-summary {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 24px;
}

.quiet-summary strong {
  font-family: var(--serif);
  font-size: 24px;
}

.quiet-summary span {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
}

.quiet-summary a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal);
  font-weight: 900;
}

.quiet-summary a .button-icon {
  width: 17px;
  height: 17px;
}

.service-options {
  display: grid;
  gap: 12px;
}

.service-options article {
  padding: 20px;
}

.service-options h3 {
  font-size: 22px;
}

.service-options p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.42;
}

.memorial-section {
  display: grid;
  grid-template-columns: 0.6fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 20px;
  padding: 64px var(--public-band-gutter);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f7fbfa;
}

.memorial-section h2 {
  font-size: clamp(31px, 3vw, 46px);
  line-height: 1.05;
}

.memorial-section p {
  max-width: 650px;
  margin-top: var(--heading-copy-gap);
  color: var(--muted);
  line-height: 1.52;
}

.memorial-art {
  display: block;
  width: 100%;
  min-height: 0;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(23, 43, 41, 0.08);
}

.partner-band {
  display: grid;
  grid-template-columns: minmax(250px, 0.78fr) minmax(0, 1.72fr);
  align-items: start;
  gap: 36px;
  margin-top: 20px;
  padding: 44px var(--public-band-gutter);
  border-top: 1px solid rgba(16, 16, 16, 0.12);
  border-bottom: 1px solid rgba(16, 16, 16, 0.12);
  background: linear-gradient(90deg, #e5f5f2, #eff9f7);
}

.partner-band p {
  max-width: 390px;
  margin-top: var(--heading-copy-gap);
  color: #40504c;
  line-height: 1.45;
}

.partner-band a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: #147c75;
  font-weight: 900;
}

.partner-band a .button-icon,
.memorial-section a .button-icon,
.answers__link .button-icon {
  width: 17px;
  height: 17px;
}

.partner-types {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.partner-band__options {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.partner-band__link {
  align-self: flex-end;
  text-align: right;
}

.partner-type-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(16, 16, 16, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 32px rgba(23, 43, 41, 0.06);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.partner-type-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 17px 38px rgba(23, 43, 41, 0.1);
}

.partner-type-art {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #f9fcfb;
}

.partner-type-card h3 {
  margin: 0;
  padding: 10px 8px 11px;
  border-top: 1px solid rgba(16, 16, 16, 0.08);
  color: #173d3a;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
}

.answers {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  margin: 28px 0 110px;
  padding: 62px var(--public-band-gutter);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fffaf2, #fff);
}

.pricing-note p {
  margin-top: var(--heading-copy-gap);
  color: var(--muted);
}

.answers__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
  text-align: right;
  color: var(--teal);
  font-weight: 900;
}

.faq-accordion {
  width: 100%;
  min-width: 0;
  align-self: start;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.faq-accordion__item + .faq-accordion__item {
  border-top: 1px solid var(--line);
}

.faq-accordion__item h3 {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  letter-spacing: 0;
}

.faq-accordion__item button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 22px 0;
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.4;
  color: #252b28;
  cursor: pointer;
  text-align: left;
  font-weight: 750;
}

.faq-accordion__item button:hover,
.faq-accordion__item button:focus-visible {
  color: var(--teal);
}

.faq-accordion__item button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: -3px;
}

.faq-accordion__icon {
  flex: 0 0 auto;
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  transition: transform 240ms ease;
}

.faq-accordion__item.is-open .faq-accordion__icon {
  transform: rotate(180deg);
}

.faq-accordion__answer {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 320ms ease, opacity 220ms ease;
}

.faq-accordion__item.is-open .faq-accordion__answer {
  grid-template-rows: 1fr;
  opacity: 1;
}

.faq-accordion__answer-inner {
  min-height: 0;
  overflow: hidden;
}

.faq-accordion__answer p {
  margin: 0;
  max-width: none;
  padding: 0 0 22px;
  color: var(--muted);
  font-size: clamp(18px, 1.5vw, 20px);
  line-height: 1.65;
}

.country-page {
  width: 100%;
  overflow: clip;
  background: #fff;
}

.country-page-hero,
.country-planning,
.country-brief,
.country-services,
.country-faq,
.country-page-cta {
  width: min(calc(100% - 88px), 1180px);
  margin-right: auto;
  margin-left: auto;
}

.country-page .country-planning {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 48px;
  padding: 32px;
  background: var(--teal-soft);
  box-shadow: none;
}

.country-planning__copy {
  flex: 1;
  min-width: 0;
}

.country-planning__copy p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.country-planning > .button {
  flex-shrink: 0;
}

.country-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.82fr);
  gap: 64px;
  align-items: center;
  padding: 76px 0 84px;
}

.country-page-hero h1 {
  max-width: 760px;
  margin-top: 8px;
  font-size: clamp(48px, 5.3vw, 76px);
  line-height: 0.98;
}

.country-page-hero__copy > p:not(.eyebrow) {
  max-width: 680px;
  margin-top: 20px;
  color: #35413e;
  font-size: 18px;
  line-height: 1.6;
}

.country-page-locales {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.country-page-locales a {
  border-bottom: 1px solid transparent;
  padding: 5px 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.country-page-locales a[aria-current="page"] {
  border-color: var(--teal);
  color: #147c75;
}

.country-page-hero__visual {
  margin: 0;
  background: transparent;
}

.country-page-hero__visual img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.country-brief {
  scroll-margin-top: 90px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.72fr);
  gap: 70px;
  align-items: start;
  padding: 72px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.country-brief h2,
.country-story h2,
.country-services h2,
.country-faq h2,
.country-page-cta h2 {
  margin-top: 8px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.02;
}

.country-brief__copy > p:not(.eyebrow) {
  margin-top: 18px;
  color: #3f4b48;
  font-size: 17px;
  line-height: 1.65;
}

.country-source-links {
  margin-top: 24px;
}

.country-source-links summary {
  cursor: pointer;
  color: #147c75;
  font-weight: 750;
}

.country-source-links a {
  display: block;
  margin-top: 8px;
  color: #147c75;
  font-size: 13px;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.country-brief__points {
  display: grid;
}

.country-brief__points article {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 5px 14px;
  border-top: 1px solid var(--line);
  padding: 20px 0;
}

.country-brief__points span {
  grid-row: 1 / 3;
  color: var(--teal);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.country-brief__points h3 {
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.08;
}

.country-brief__points p {
  color: var(--muted);
  line-height: 1.52;
}

.country-story {
  margin-top: 84px;
  padding: 84px max(44px, calc((100% - 1180px) / 2));
  background: linear-gradient(180deg, #edf8f6, #f7fbfa);
}

.country-story__header {
  width: 100%;
}

.country-story__header > p:not(.eyebrow) {
  max-width: 680px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.country-story__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.82fr);
  gap: 76px;
  margin-top: 52px;
}

.country-story__visuals {
  position: sticky;
  top: 104px;
  height: min(68vh, 620px);
  overflow: hidden;
  border: 1px solid rgba(43, 156, 147, 0.2);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(23, 43, 41, 0.1);
}

.country-story__visual {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity 500ms ease, transform 700ms ease;
}

.country-story__visual.is-active {
  z-index: 1;
  opacity: 1;
  transform: scale(1);
}

.country-story__counter {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  border: 1px solid rgba(16, 16, 16, 0.1);
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  backdrop-filter: blur(10px);
}

.country-story__counter strong {
  color: #147c75;
}

.country-story__steps {
  display: grid;
}

.country-story-step {
  display: flex;
  min-height: clamp(260px, 34vh, 390px);
  align-items: center;
  scroll-margin-top: 140px;
}

.country-story-step__content {
  width: 100%;
  border-top: 1px solid rgba(16, 16, 16, 0.18);
  padding: 28px 4px;
}

.country-story-step__content > span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.country-story-step h3 {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: clamp(30px, 3.1vw, 44px);
  line-height: 1.03;
  transition: color 260ms ease;
}

.country-story-step__body {
  overflow: hidden;
}

.country-story-step__body p {
  max-width: 520px;
  margin-top: 14px;
  color: #43514d;
  font-size: 16px;
  line-height: 1.62;
}

[data-country-story-ready] .country-story-step:not(.is-active) .country-story-step__body {
  max-height: 0;
  opacity: 0;
  transform: translateY(8px);
}

[data-country-story-ready] .country-story-step__body {
  max-height: 260px;
  opacity: 1;
  transform: translateY(0);
  transition: max-height 420ms ease, opacity 300ms ease, transform 420ms ease;
}

.country-story-step.is-active h3 {
  color: #147c75;
}

.country-story-step__mobile-art {
  display: none;
}

.country-services {
  padding: 90px 0;
}

.country-services > header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.65fr);
  gap: 60px;
  align-items: end;
}

.country-services > header > p {
  color: var(--muted);
  line-height: 1.58;
}

.country-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 42px;
}

.country-service-card {
  display: grid;
  align-content: start;
  min-height: 250px;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 24px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(23, 43, 41, 0.06);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.country-service-card:hover,
.country-service-card:focus-visible {
  border-color: rgba(43, 156, 147, 0.5);
  outline: 0;
  box-shadow: 0 20px 44px rgba(23, 43, 41, 0.1);
  transform: translateY(-3px);
}

.country-service-card__status {
  color: var(--teal);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.country-service-card h3 {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.08;
}

.country-service-card p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.52;
}

.country-service-card__offering {
  margin-top: 8px;
  color: #35413e;
  font-size: 13px;
  font-weight: 850;
}

.country-service-card small {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 20px;
  color: #147c75;
  font-weight: 900;
}

.country-service-card small .button-icon {
  width: 16px;
  height: 16px;
}

.country-services__empty {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  margin-top: 42px;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, #edf8f6, #f7fbfa);
}

.country-services__empty img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.country-services__empty > div {
  padding: 30px 36px 30px 0;
}

.country-services__empty h3 {
  font-family: var(--serif);
  font-size: 32px;
}

.country-services__empty p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.55;
}

.country-faq {
  display: grid;
  grid-template-columns: minmax(260px, 0.62fr) minmax(0, 1fr);
  gap: 76px;
  padding: 76px 0;
  border-top: 1px solid var(--line);
}

.country-faq > div:first-child > p:not(.eyebrow) {
  margin-top: 16px;
  color: var(--muted);
  line-height: 1.56;
}

.country-page-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 110px;
  border-radius: 22px;
  padding: 46px 48px;
  background: linear-gradient(135deg, #0f6964, #147c75);
  color: #fff;
}

.country-page-cta > div {
  max-width: 760px;
}

.country-page-cta .eyebrow,
.country-page-cta > div > p:last-child {
  color: rgba(255, 255, 255, 0.78);
}

.country-page-cta > div > p:last-child {
  margin-top: 14px;
  line-height: 1.55;
}

.country-page-cta .button.primary {
  flex: 0 0 auto;
  background: #fff;
  color: #147c75;
}

@media (max-width: 980px) {
  .country-page-hero,
  .country-planning,
  .country-brief,
  .country-services,
  .country-faq,
  .country-page-cta {
    width: calc(100% - 28px);
  }

  .country-page-hero,
  .country-brief,
  .country-services > header,
  .country-faq {
    grid-template-columns: 1fr;
  }

  .country-page-hero {
    gap: 40px;
    padding-top: 52px;
  }

  .country-page-hero__visual {
    max-width: 720px;
  }

  .country-brief,
  .country-faq {
    gap: 38px;
  }

  .country-story {
    padding-right: 14px;
    padding-left: 14px;
  }

  .country-story__layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .country-story__visuals {
    display: none;
  }

  .country-story-step {
    display: grid;
    min-height: 0;
    margin-top: 20px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
  }

  .country-story-step__mobile-art {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-bottom: 1px solid var(--line);
    object-fit: cover;
  }

  .country-story-step__content {
    border-top: 0;
    padding: 24px;
  }

  [data-country-story-ready] .country-story-step:not(.is-active) .country-story-step__body,
  [data-country-story-ready] .country-story-step__body {
    max-height: none;
    opacity: 1;
    transform: none;
  }

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

@media (max-width: 640px) {
  .country-page .country-planning {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 24px 20px;
    margin-bottom: 32px;
  }

  .country-page-hero h1 {
    font-size: clamp(42px, 12vw, 58px);
  }

  .country-page-hero,
  .country-brief,
  .country-services,
  .country-faq {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .country-story {
    margin-top: 54px;
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .country-service-grid,
  .country-services__empty {
    grid-template-columns: 1fr;
  }

  .country-service-card {
    min-height: 0;
  }

  .country-services__empty > div {
    padding: 0 22px 28px;
  }

  .country-page-cta {
    align-items: stretch;
    flex-direction: column;
    margin-bottom: 72px;
    padding: 32px 24px;
  }
}

.simple-info-page {
  padding-bottom: 110px;
}

.simple-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}

.simple-choice-grid article,
.policy-content {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  padding: 28px;
  box-shadow: 0 16px 36px rgba(29, 65, 59, 0.06);
}

.simple-choice-grid h2,
.policy-content h2 {
  margin: 0 0 10px;
  font-family: var(--serif);
}

.simple-choice-grid p,
.policy-content p {
  color: var(--muted);
  line-height: 1.65;
}

.policy-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px 48px;
  margin-top: 28px;
}

.policy-updated {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.policy-toc {
  display: grid;
  max-width: 900px;
  gap: 12px;
  margin: 32px auto 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  background: var(--teal-soft);
}

.policy-toc > strong {
  color: #173d3a;
  font-size: 13px;
}

.policy-toc > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.policy-toc a {
  color: #147c75;
  font-size: 13px;
  font-weight: 800;
}

.policy-layout {
  display: grid;
  grid-template-columns: minmax(190px, 230px) minmax(0, 900px);
  align-items: start;
  gap: 48px;
  max-width: 1178px;
  margin: 36px auto 0;
}

.policy-layout .policy-toc--sidebar {
  position: sticky;
  top: 104px;
  display: block;
  max-width: none;
  margin: 0;
  border-radius: 12px;
  padding: 18px 12px 12px;
  background: #f2f8f7;
}

.policy-layout .policy-toc--sidebar > strong {
  display: block;
  padding: 0 10px 10px;
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.policy-layout .policy-toc--sidebar > div {
  display: grid;
  gap: 2px;
}

.policy-layout .policy-toc--sidebar a {
  position: relative;
  display: block;
  border-radius: 7px;
  padding: 9px 10px 9px 14px;
  color: #52615f;
  font-size: 13px;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.policy-layout .policy-toc--sidebar a::before {
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: 0;
  width: 3px;
  border-radius: 999px;
  background: var(--teal);
  content: "";
  opacity: 0;
  transform: scaleY(0.45);
  transition: opacity 160ms ease, transform 160ms ease;
}

.policy-layout .policy-toc--sidebar a:hover {
  background: rgba(255, 255, 255, 0.72);
  color: var(--teal);
}

.policy-layout .policy-toc--sidebar a.is-active,
.policy-layout .policy-toc--sidebar a[aria-current="location"] {
  background: #fff;
  color: #147c75;
}

.policy-layout .policy-toc--sidebar a.is-active::before,
.policy-layout .policy-toc--sidebar a[aria-current="location"]::before {
  opacity: 1;
  transform: scaleY(1);
}

.policy-layout .policy-document {
  max-width: none;
  margin: 0;
}

.policy-document {
  grid-template-columns: 1fr;
  max-width: 900px;
  gap: 0;
  margin-right: auto;
  margin-left: auto;
}

.policy-document section {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 120px;
}

.policy-document section:first-child {
  padding-top: 0;
}

.policy-document section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.policy-document h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 32px);
  line-height: 1.12;
}

.policy-document h2 + p,
.policy-document p + p,
.policy-document p + ul,
.policy-document ul + p {
  margin-top: var(--heading-copy-gap);
}

.policy-document ul {
  display: grid;
  gap: 9px;
  margin-bottom: 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.62;
}

.policy-document a {
  color: #147c75;
  font-weight: 800;
}

.intake-question-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.intake-question-grid .intake-field:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.intake-field small {
  display: block;
  margin: -4px 0 8px;
  color: var(--muted);
}

.intake-recommendation {
  margin-bottom: 24px;
  border-radius: 18px;
  background: var(--teal-soft);
  padding: 24px;
}

.intake-recommendation h2 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 24px;
}

.intake-recommendation ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
  line-height: 1.5;
}

.admin-filter-bar {
  display: flex;
  gap: 12px;
  margin: 0 0 22px;
}

.admin-filter-bar .select-input {
  max-width: 260px;
}

.table-panel {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--line);
  padding: 14px 12px;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-table small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.admin-table a:not(.button) {
  color: var(--teal);
  font-weight: 850;
}

.admin-intake-table tbody tr {
  transition: background-color 160ms ease;
}

.admin-intake-table tbody tr:hover {
  background: rgba(43, 156, 147, 0.05);
}

.admin-row-action {
  white-space: nowrap;
}

.admin-intake-table-panel {
  width: 100%;
  padding: 0;
}

.admin-intake-table {
  width: 100%;
  min-width: 780px;
}

.admin-intake-table th:first-child,
.admin-intake-table td:first-child {
  padding-left: 18px;
}

.admin-intake-table th:last-child,
.admin-intake-table td:last-child {
  padding-right: 18px;
}

.admin-table .admin-table__actions-heading,
.admin-table .admin-table__actions {
  position: sticky;
  right: 0;
  width: 64px;
  background: #fff;
  box-shadow: -10px 0 14px rgba(23, 63, 59, 0.04);
  text-align: right;
  vertical-align: middle;
}

.admin-intake-table tbody tr:hover .admin-table__actions {
  background: #f5fbfa;
}

.admin-table-action {
  position: relative;
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(43, 156, 147, 0.32);
  border-radius: 50%;
  background: #fff;
  color: var(--teal);
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.admin-table-action:hover,
.admin-table-action:focus-visible {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
  outline: none;
  transform: translateY(-1px);
}

.admin-table-action:focus-visible {
  box-shadow: 0 0 0 3px rgba(43, 156, 147, 0.2);
}

.admin-table-action__icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-table-action::after {
  position: absolute;
  right: calc(100% + 9px);
  top: 50%;
  z-index: 5;
  width: max-content;
  max-width: 150px;
  border-radius: 6px;
  background: #173f3b;
  padding: 6px 8px;
  color: #fff;
  content: attr(data-tooltip);
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate(4px, -50%);
  transition: opacity 120ms ease, transform 120ms ease;
  white-space: nowrap;
}

.admin-table-action:hover::after,
.admin-table-action:focus-visible::after {
  opacity: 1;
  transform: translate(0, -50%);
}

.admin-detail-list {
  display: grid;
  margin: 0;
}

.admin-detail-list > div {
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) minmax(0, 1.3fr);
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.admin-detail-list dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.admin-detail-list dd {
  min-width: 0;
  margin: 0;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.admin-detail-list dd p {
  margin: 0;
  line-height: 1.5;
}

.admin-intake-answers {
  grid-column: 1 / -1;
}

.admin-connected-account {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: var(--teal-soft);
}

.admin-connected-account span,
.admin-connected-account small,
.form-help {
  color: var(--muted);
  font-size: 13px;
}

.admin-tool-links {
  display: grid;
  gap: 10px;
}

.admin-tool-links a {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  color: var(--teal);
  font-weight: 850;
}

@media (max-width: 760px) {
  .simple-choice-grid,
  .policy-content,
  .intake-question-grid {
    grid-template-columns: 1fr;
  }

  .intake-question-grid .intake-field:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .admin-filter-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-filter-bar .select-input {
    max-width: none;
  }

  .policy-layout {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 24px;
  }

  .policy-layout .policy-toc--sidebar {
    top: 64px;
    z-index: 20;
    margin-right: calc(var(--mobile-page-gutter, 20px) * -1);
    margin-left: calc(var(--mobile-page-gutter, 20px) * -1);
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    padding: 10px var(--mobile-page-gutter, 20px);
    background: rgba(242, 248, 247, 0.96);
    backdrop-filter: blur(12px);
  }

  .policy-layout .policy-toc--sidebar > strong {
    padding: 0 0 7px;
    font-size: 10px;
  }

  .policy-layout .policy-toc--sidebar > div {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .policy-layout .policy-toc--sidebar > div::-webkit-scrollbar {
    display: none;
  }

  .policy-layout .policy-toc--sidebar a {
    flex: 0 0 auto;
    padding: 8px 10px;
    white-space: nowrap;
  }

  .policy-layout .policy-toc--sidebar a::before {
    top: auto;
    right: 10px;
    bottom: 2px;
    left: 10px;
    width: auto;
    height: 2px;
    transform: scaleX(0.45);
  }

  .policy-layout .policy-toc--sidebar a.is-active::before,
  .policy-layout .policy-toc--sidebar a[aria-current="location"]::before {
    transform: scaleX(1);
  }

}

/* Keep shared service page rules after legacy service styles in the cascade. */
body .service-page-shell { width: 100%; max-width: none; margin-inline: 0; padding: 0 0 96px; }
body .service-page-hero {
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, .65fr);
  grid-template-areas: "copy form";
  gap: 44px;
  width: min(1240px, calc(100% - 88px));
  margin: 0 auto;
  padding: 64px 0 52px;
  align-items: center;
}
body .service-hero-copy {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(280px, .62fr);
  grid-template-areas: "eyebrow media" "title media" "summary media" "meta media";
  column-gap: 34px;
  max-width: none;
}
body .service-hero-copy h1 { font-size: clamp(44px, 4.4vw, 68px); line-height: .98; }
body .service-hero-media { min-height: 0; height: 280px; margin: 0; box-shadow: none; }
body .service-hero-media img { min-height: 0; height: 100%; animation: none; }
body .service-start-panel { position: static; padding: 24px; }
body .service-faq-section {
  grid-template-columns: minmax(0, .55fr) minmax(0, 1fr);
  gap: 50px;
  border: 0;
  margin-top: 0;
  padding: 86px 0;
  background: #fff;
}

@media (max-width: 1024px) {
  body .service-page-hero { grid-template-columns: 1fr; grid-template-areas: "copy" "form"; width: min(760px, calc(100% - 48px)); padding-top: 44px; }
  body .service-faq-section { width: min(760px, calc(100% - 48px)); grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 700px) {
  body .service-page-hero { width: calc(100% - 36px); padding: 34px 0 38px; }
  body .service-hero-copy { grid-template-columns: 1fr; grid-template-areas: "eyebrow" "title" "summary" "meta" "media"; }
  body .service-hero-copy h1 { font-size: clamp(40px, 12vw, 56px); }
  body .service-hero-media { height: 220px; margin-top: 28px; }
  body .service-faq-section { width: calc(100% - 36px); padding: 58px 0; }
}

/* Service-page cohesion, scroll storytelling and chapter focus */
body .service-hero-copy {
  grid-template-areas: "title media" "summary media" "meta media";
}

body .service-hero-media {
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}

body .service-hero-media img {
  object-fit: contain;
  mix-blend-mode: multiply;
}

.service-chapter-nav a {
  position: relative;
  padding-block: 3px;
  transition: color 180ms ease;
}

.service-chapter-nav a::after {
  position: absolute;
  right: 0;
  bottom: -17px;
  left: 0;
  height: 3px;
  background: var(--teal);
  content: "";
  opacity: 0;
  transform: scaleX(.35);
  transition: opacity 180ms ease, transform 180ms ease;
}

.service-chapter-nav a.is-active,
.service-chapter-nav a[aria-current="location"] { color: #147c75; }

.service-chapter-nav a.is-active::after,
.service-chapter-nav a[aria-current="location"]::after { opacity: 1; transform: scaleX(1); }

body .service-knowledge-section {
  display: block;
  padding: 86px 0 54px;
}

.service-knowledge-section > .service-section-copy { max-width: 680px; margin-bottom: 54px; }

.service-knowledge-story {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(360px, 1.08fr);
  gap: 82px;
  align-items: start;
}

.service-knowledge-visuals {
  position: sticky;
  top: 170px;
  height: 430px;
  overflow: hidden;
  background: #fdf9ef;
}

.service-knowledge-visual {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(.985) translateY(12px);
  transition: opacity 360ms ease, transform 420ms ease;
}

.service-knowledge-visual.is-active { opacity: 1; transform: scale(1) translateY(0); }
.service-knowledge-visual img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.service-knowledge-visuals > p { position: absolute; right: 30px; bottom: 20px; margin: 0; color: #6b7d78; font-size: 12px; letter-spacing: .12em; }
.service-knowledge-step-visual { display: none; }

.service-knowledge-steps article {
  min-height: clamp(220px, 26vh, 290px);
  border-top: 1px solid var(--line);
  padding: 28px 0 32px;
  opacity: .38;
  transition: opacity 260ms ease, transform 260ms ease;
}

.service-knowledge-steps article.is-active { opacity: 1; transform: translateX(8px); }
.service-knowledge-steps article > span { color: var(--teal); font-size: 12px; font-weight: 900; letter-spacing: .12em; }
.service-knowledge-steps h3 { margin: 12px 0 12px; font-family: var(--serif); font-size: clamp(27px, 3vw, 38px); line-height: 1.08; }
.service-knowledge-steps p { max-width: 620px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.65; }

body .service-process-visual {
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}

body .service-process-visual img { object-fit: contain; mix-blend-mode: multiply; }

@media (max-width: 1024px) {
  .service-knowledge-story { gap: 44px; }
  .service-knowledge-visuals { top: 150px; }
}

@media (max-width: 700px) {
  body .service-hero-copy { grid-template-areas: "title" "summary" "meta" "media"; }
  .service-chapter-nav {
    top: 63px;
    width: 100vw;
    max-width: none;
    margin-right: 0;
    margin-left: 0;
    border-top: 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .service-chapter-nav::-webkit-scrollbar { display: none; }
  .service-knowledge-section > .service-section-copy { margin-bottom: 28px; }
  .service-knowledge-story { display: block; }
  .service-knowledge-visuals { display: none; }
  .service-knowledge-steps { display: grid; gap: 32px; }
  .service-knowledge-steps article,
  .service-knowledge-steps article.is-active {
    min-height: 0;
    border-top: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 32px;
    opacity: 1;
    transform: none;
  }
  .service-knowledge-step-visual {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    margin: 0 0 22px;
    overflow: hidden;
    background: #fdf9ef;
  }
  .service-knowledge-step-visual img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
  .service-knowledge-steps h3 { font-size: 28px; }
  .service-knowledge-steps p { font-size: 16px; }
  body .service-process-visual { height: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  .faq-accordion__answer,
  .faq-accordion__icon {
    transition: none;
  }
}

/* Admin application shell */
.admin-dashboard-page {
  --admin-header-height: 68px;
  --admin-rail-width: 72px;
  background: #f5f7f6;
}

.admin-dashboard-page .site-header {
  border-bottom: 1px solid #d8dfdc;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 0 rgba(18, 52, 48, 0.03);
}

.admin-dashboard-layout {
  display: grid;
  grid-template-columns: var(--admin-rail-width) minmax(0, 1fr);
  min-height: calc(100dvh - var(--admin-header-height));
}

.admin-sidebar {
  position: sticky;
  top: var(--admin-header-height);
  z-index: 45;
  display: flex;
  flex-direction: column;
  align-self: start;
  width: var(--admin-rail-width);
  height: calc(100dvh - var(--admin-header-height));
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  background: #173f3b;
  color: #fff;
  box-shadow: 8px 0 24px rgba(19, 53, 49, 0.08);
  transition: width 180ms ease, box-shadow 180ms ease;
}

.admin-sidebar:hover,
.admin-sidebar:focus-within {
  width: 224px;
  box-shadow: 18px 0 42px rgba(19, 53, 49, 0.18);
}

.admin-sidebar__identity {
  display: flex;
  flex: 0 0 64px;
  align-items: center;
  gap: 13px;
  min-width: 224px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 14px;
}

.admin-sidebar__identity > span {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 800;
}

.admin-sidebar__identity strong {
  font-size: 15px;
  letter-spacing: 0.02em;
}

.admin-sidebar__nav {
  display: grid;
  gap: 5px;
  padding: 12px 10px;
}

.admin-sidebar__footer {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px 10px;
}

.admin-sidebar__link {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 204px;
  min-height: 48px;
  border-radius: 10px;
  padding: 8px 15px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  transition: color 150ms ease, background-color 150ms ease;
}

.admin-sidebar__link:hover,
.admin-sidebar__link:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  outline: none;
}

.admin-sidebar__link.active {
  background: #fff;
  color: #176e67;
}

.admin-sidebar__icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-sidebar__link span,
.admin-sidebar__identity strong {
  opacity: 0;
  transform: translateX(-5px);
  transition: opacity 120ms ease, transform 160ms ease;
}

.admin-sidebar:hover .admin-sidebar__link span,
.admin-sidebar:focus-within .admin-sidebar__link span,
.admin-sidebar:hover .admin-sidebar__identity strong,
.admin-sidebar:focus-within .admin-sidebar__identity strong {
  opacity: 1;
  transform: translateX(0);
}

.admin-dashboard-workspace {
  min-width: 0;
}

.admin-breadcrumbs {
  position: sticky;
  top: var(--admin-header-height);
  z-index: 35;
  display: flex;
  align-items: center;
  min-height: 45px;
  overflow-x: auto;
  border-bottom: 1px solid #dce2df;
  background: rgba(255, 255, 255, 0.94);
  padding: 0 clamp(20px, 3vw, 40px);
  backdrop-filter: blur(14px);
}

.admin-breadcrumbs ol {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
  white-space: nowrap;
}

.admin-breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #77817d;
  font-size: 12px;
  font-weight: 750;
}

.admin-breadcrumbs li + li::before {
  color: #aab3af;
  content: "/";
}

.admin-breadcrumbs a:hover,
.admin-breadcrumbs a:focus-visible {
  color: var(--teal);
}

.admin-breadcrumbs [aria-current="page"] {
  color: #26332f;
  font-weight: 850;
}

.admin-dashboard-main {
  display: block;
  min-width: 0;
}

.admin-dashboard-main .admin-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 24px clamp(20px, 3vw, 40px) 64px;
}

.admin-shell .case-titlebar {
  align-items: center;
  margin-bottom: 18px;
}

.admin-shell .case-titlebar h1 {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.admin-shell .case-titlebar p {
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.4;
}

.admin-shell .eyebrow {
  margin: 0 0 5px;
  font-size: 10px;
}

.admin-shell .case-actions {
  gap: 8px;
}

.admin-shell .case-actions .button,
.admin-shell .case-titlebar > .button {
  min-height: 40px;
  padding: 8px 13px;
  font-size: 12px;
}

.admin-shell .case-summary {
  gap: 10px;
  margin-bottom: 16px;
}

.admin-shell .case-summary article {
  gap: 4px;
  border-radius: 11px;
  padding: 14px 16px;
  box-shadow: none;
}

.admin-shell .case-summary strong {
  font-size: 22px;
}

.admin-shell .case-summary-link small {
  display: none;
}

.admin-shell .case-dashboard-grid,
.admin-shell .referral-grid {
  gap: 14px;
}

.admin-shell .case-panel {
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(23, 43, 41, 0.05);
}

.case-panel.table-panel {
  padding: 0;
}

.admin-shell .case-panel h2 {
  font-family: var(--sans);
  font-size: 18px;
  letter-spacing: -0.01em;
}

.admin-shell .panel-heading {
  margin-bottom: 12px;
}

.admin-shell .panel-heading span,
.admin-shell .case-summary span {
  font-size: 11px;
}

.admin-shell .estate-list,
.admin-shell .document-list,
.admin-shell .people-list {
  gap: 9px;
}

.admin-shell .estate-list li,
.admin-shell .document-list li,
.admin-shell .people-list li {
  gap: 10px;
  padding-top: 10px;
  font-size: 13px;
}

.admin-shell .estate-list small,
.admin-shell .muted-copy {
  font-size: 12px;
  line-height: 1.4;
}

.admin-shell .case-list {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.admin-shell .case-card {
  gap: 8px;
  border-radius: 12px;
  padding: 16px;
  box-shadow: none;
}

.admin-shell .case-card h2 {
  font-family: var(--sans);
  font-size: 18px;
}

.admin-shell .case-card p,
.admin-shell .case-card small {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
}

.admin-shell .case-status,
.admin-shell .pill {
  padding: 4px 8px;
  font-size: 10px;
}

.admin-shell .admin-filter-bar {
  gap: 8px;
  margin-bottom: 12px;
}

.admin-shell .admin-table th,
.admin-shell .admin-table td {
  padding: 10px;
  font-size: 12px;
}

.table-panel .admin-table thead th {
  height: 48px;
  vertical-align: middle;
}

.table-panel .admin-table tbody tr:last-child > td {
  border-bottom: 0;
}

.table-panel .admin-table .admin-table-empty {
  height: 120px;
  text-align: center;
  vertical-align: middle;
  color: var(--muted);
}

.whatsapp-inbox {
  display: grid;
  grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
  min-height: 620px;
  overflow: hidden;
  padding: 0;
}

.whatsapp-thread-list {
  min-width: 0;
  border-right: 1px solid var(--line);
  background: #f7fbfa;
}

.whatsapp-thread-list__heading,
.whatsapp-conversation__header {
  display: flex;
  min-height: 76px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 16px 18px;
}

.whatsapp-thread-list__heading {
  justify-content: space-between;
}

.whatsapp-thread-list__heading strong {
  font-size: 15px;
}

.whatsapp-thread-list__heading span,
.whatsapp-conversation__count {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.whatsapp-thread-list__items {
  max-height: 650px;
  overflow-y: auto;
}

.whatsapp-thread-link {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 15px 14px;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 150ms ease;
}

.whatsapp-thread-link:hover,
.whatsapp-thread-link:focus-visible,
.whatsapp-thread-link.is-selected {
  background: #fff;
}

.whatsapp-thread-link.is-selected::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--teal);
  content: "";
}

.whatsapp-thread-link:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: -2px;
}

.whatsapp-thread-avatar {
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 50%;
  background: #dff2ef;
  color: #176f69;
  font-size: 15px;
  font-weight: 900;
}

.whatsapp-thread-summary {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.whatsapp-thread-summary__top {
  display: flex;
  min-width: 0;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.whatsapp-thread-summary__top strong,
.whatsapp-thread-preview {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whatsapp-thread-summary__top strong {
  font-size: 13px;
}

.whatsapp-thread-summary__top time,
.whatsapp-thread-summary small,
.whatsapp-thread-preview {
  color: var(--muted);
  font-size: 11px;
}

.whatsapp-thread-summary__top time {
  flex: 0 0 auto;
}

.whatsapp-thread-badge {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: var(--teal);
  padding: 0 6px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.whatsapp-conversation {
  display: grid;
  min-width: 0;
  grid-template-rows: auto 1fr;
  background: #f3f8f7;
}

.whatsapp-conversation__header {
  gap: 12px;
  background: #fff;
}

.whatsapp-conversation__header div {
  min-width: 0;
}

.whatsapp-conversation__header h2,
.whatsapp-conversation__header p {
  margin: 0;
}

.whatsapp-conversation__header h2 {
  overflow: hidden;
  font-family: var(--sans);
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whatsapp-conversation__header p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.whatsapp-conversation__count {
  margin-left: auto;
  white-space: nowrap;
}

.whatsapp-message-timeline {
  display: flex;
  max-height: 650px;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding: 24px;
}

.whatsapp-message-row {
  display: flex;
}

.whatsapp-message-row--outbound {
  justify-content: flex-end;
}

.whatsapp-message-bubble {
  width: fit-content;
  max-width: min(76%, 620px);
  border: 1px solid rgba(29, 83, 78, 0.13);
  border-radius: 6px 6px 6px 0;
  background: #fff;
  padding: 12px 14px;
  box-shadow: 0 4px 14px rgba(26, 61, 57, 0.05);
}

.whatsapp-message-row--outbound .whatsapp-message-bubble {
  border-color: rgba(31, 135, 126, 0.18);
  border-radius: 6px 6px 0;
  background: #def3ef;
}

.whatsapp-message-bubble__body p {
  margin: 0;
  color: #283b39;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.whatsapp-message-bubble__body p + p {
  margin-top: 8px;
}

.whatsapp-message-bubble footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
}

.whatsapp-delivery-status {
  color: #19776f;
  font-weight: 800;
}

.whatsapp-delivery-status--failed {
  color: #a43e35;
}

.whatsapp-message-case {
  display: block;
  margin-top: 10px;
  border-top: 1px solid rgba(29, 83, 78, 0.13);
  padding-top: 9px;
  color: #147c75;
  font-size: 11px;
  font-weight: 850;
}

.whatsapp-message-routing {
  margin: 11px -14px -12px;
  border-top: 1px solid var(--line);
  background: #fffdf8;
  padding: 11px 14px 13px;
}

.whatsapp-message-routing > p {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
}

.whatsapp-message-routing .inline-admin-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.whatsapp-message-routing .select-input,
.whatsapp-message-routing .button {
  min-height: 38px;
  font-size: 11px;
}

.whatsapp-inbox-empty {
  display: grid;
  min-height: 320px;
  place-items: center;
  align-content: center;
  gap: 10px;
  text-align: center;
}

.whatsapp-inbox-empty__icon {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--teal);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.whatsapp-inbox-empty h2,
.whatsapp-inbox-empty p {
  margin: 0;
}

.whatsapp-inbox-empty p {
  max-width: 460px;
  color: var(--muted);
}

@media (max-width: 760px) {
  .whatsapp-inbox {
    grid-template-columns: 1fr;
  }

  .whatsapp-thread-list {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .whatsapp-thread-list__items {
    max-height: 270px;
  }

  .whatsapp-message-timeline {
    min-height: 420px;
    max-height: none;
    padding: 18px 12px;
  }

  .whatsapp-message-bubble {
    max-width: 88%;
  }

  .whatsapp-message-routing .inline-admin-form {
    grid-template-columns: 1fr;
  }

  .whatsapp-message-routing .button {
    width: 100%;
  }
}

.admin-form-panel {
  width: min(100%, 680px);
}

.admin-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

.admin-optional-fields {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.admin-optional-fields summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-optional-fields[open] summary {
  margin-bottom: 14px;
}

.admin-shell .case-note-form,
.admin-shell .document-upload-form,
.admin-shell .referral-form {
  gap: 9px;
  margin-top: 14px;
  padding-top: 14px;
}

@media (max-width: 980px) {
  .admin-dashboard-page {
    --admin-header-height: 64px;
    --admin-rail-width: 60px;
  }

  .admin-sidebar__identity {
    padding-inline: 9px;
  }

  .admin-sidebar__nav,
  .admin-sidebar__footer {
    padding-inline: 6px;
  }

  .admin-sidebar__link {
    padding-inline: 13px;
  }

  .admin-shell .case-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .admin-dashboard-page {
    --admin-rail-width: 54px;
  }

  .admin-sidebar:hover,
  .admin-sidebar:focus-within {
    width: 210px;
  }

  .admin-sidebar__identity {
    min-width: 210px;
    padding-inline: 7px;
  }

  .admin-sidebar__identity > span {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }

  .admin-sidebar__nav,
  .admin-sidebar__footer {
    padding-inline: 5px;
  }

  .admin-sidebar__link {
    width: 194px;
    padding-inline: 11px;
  }

  .admin-breadcrumbs,
  .admin-dashboard-main .admin-shell {
    padding-right: 16px;
    padding-left: 16px;
  }

  .admin-shell .case-summary,
  .admin-shell .case-dashboard-grid,
  .admin-shell .referral-grid {
    grid-template-columns: 1fr;
  }

  .admin-shell .case-titlebar {
    align-items: flex-start;
  }
}

/* Cohesive illustrated service hero */
body .service-page-hero {
  position: relative;
  isolation: isolate;
  display: block;
  width: 100%;
  margin: 0 0 108px;
  padding: 54px 44px 0;
  background: transparent;
}

body .service-page-hero::before {
  position: absolute;
  inset: 0 0 160px;
  z-index: -1;
  background: #fdf9ef;
  content: "";
}

body .service-hero-stage {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(380px, 1.18fr);
  gap: 12px;
  align-items: center;
  width: min(1120px, 100%);
  min-height: 390px;
  margin: 0 auto;
}

body .service-hero-copy {
  position: relative;
  z-index: 2;
  display: block;
  grid-area: auto;
  max-width: 580px;
  padding: 20px 0 78px;
}

body .service-hero-copy h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(50px, 5.5vw, 78px);
  line-height: 0.94;
  text-wrap: balance;
}

body .service-hero-summary {
  max-width: 600px;
  margin: 20px 0 0;
  color: #505956;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
}

body .service-hero-meta {
  margin-top: 24px;
}

body .service-hero-media {
  position: relative;
  z-index: 1;
  grid-area: auto;
  width: calc(100% + 64px);
  height: 380px;
  margin: 0 0 0 -64px;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

body .service-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: multiply;
  animation: none;
}

body .service-start-panel {
  position: relative;
  top: auto;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(250px, 0.78fr) minmax(420px, 1.22fr);
  grid-template-areas:
    "title form"
    "intro form"
    "assurance form";
  column-gap: clamp(32px, 5vw, 72px);
  align-items: start;
  width: min(1040px, 100%);
  margin: -34px auto 0;
  border: 1px solid rgba(85, 75, 58, 0.16);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  padding: clamp(26px, 3.2vw, 40px);
  box-shadow: 0 24px 55px rgba(55, 49, 39, 0.12);
  transform: translateY(62px);
}

body .service-start-panel > .eyebrow {
  grid-area: eyebrow;
  margin: 0 0 8px;
}

body .service-start-panel h2 {
  grid-area: title;
  font-size: clamp(30px, 3vw, 42px);
  text-wrap: balance;
}

body .service-start-panel__intro {
  grid-area: intro;
  margin: 12px 0 0;
}

body .service-start-form {
  grid-area: form;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 0;
}

body .service-start-form label,
body .service-start-form__note {
  grid-column: 1 / -1;
}

body .service-start-form .select-input {
  min-width: 0;
}

body .service-start-form__select {
  position: relative;
  display: block;
  min-width: 0;
}

body .service-start-form__select .select-input {
  appearance: none;
  -webkit-appearance: none;
  min-height: 60px;
  padding: 14px 64px 14px 20px;
  border: 1px solid #b7cec8;
  border-radius: 16px;
  background: #faf9f4;
  color: #274c46;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 4px #254e4505;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

body .service-start-form__select .select-input:hover {
  border-color: #5c9f94;
  background: #f2f7f3;
}

body .service-start-form__select .select-input:focus {
  border-color: #19897c;
  outline: 3px solid #2b9c9326;
  outline-offset: 3px;
  background: #fff;
  box-shadow: none;
}

body .service-start-form__select-icon {
  position: absolute;
  top: 50%;
  right: 14px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e5f1ec;
  color: #237d70;
  pointer-events: none;
  transform: translateY(-50%);
}

body .service-start-form__select-icon svg {
  width: 20px;
  height: 20px;
}

@media (prefers-reduced-motion: reduce) {
  body .service-start-form__select .select-input { transition: none; }
}

body .service-start-form .button {
  align-self: stretch;
  white-space: nowrap;
}

body .service-start-panel__assurance {
  grid-area: assurance;
  margin: 18px 0 0;
}

@media (min-width: 701px) {
  body .service-start-panel {
    grid-template-areas:
      "title title"
      "intro form"
      "assurance form";
  }

  body .service-start-panel h2 { margin-bottom: 12px; }
  body .service-start-panel > .service-start-panel__intro { margin-top: 0; }
}

@media (max-width: 900px) {
  body .service-page-hero {
    margin-bottom: 118px;
    padding-inline: 24px;
  }

  body .service-hero-stage {
    grid-template-columns: minmax(0, 0.9fr) minmax(330px, 1.1fr);
  }

  body .service-hero-media {
    width: calc(100% + 36px);
    height: 340px;
    margin-left: -36px;
  }

  body .service-start-panel {
    grid-template-columns: minmax(220px, 0.7fr) minmax(360px, 1.3fr);
    column-gap: 30px;
  }
}

@media (max-width: 700px) {
  body .service-page-hero {
    width: 100vw;
    max-width: none;
    margin-bottom: 92px;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
    padding: 30px 0 0;
  }

  body .service-hero-stage {
    display: flex;
    min-height: 0;
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding-inline: 18px;
  }

  body .service-hero-copy {
    width: 100%;
    padding: 0;
  }

  body .service-hero-copy h1 {
    font-size: clamp(44px, 13.5vw, 58px);
  }

  body .service-hero-summary {
    margin-top: 16px;
    font-size: 17px;
  }

  body .service-hero-meta {
    gap: 10px 16px;
    margin-top: 20px;
  }

  body .service-hero-media {
    width: calc(100% + 28px);
    height: 235px;
    margin: 8px -14px -12px;
  }

  body .service-start-panel {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas: "title" "intro" "form" "assurance";
    gap: 0;
    width: calc(100% - 36px);
    margin: -12px auto 0;
    border-radius: 20px;
    padding: 24px 20px;
    transform: translateY(48px);
  }

  body .service-start-panel h2 {
    font-size: clamp(29px, 9vw, 38px);
  }

  body .service-start-form {
    grid-template-columns: 1fr;
    gap: 11px;
    margin-top: 20px;
  }

  body .service-start-form label,
  body .service-start-form__note {
    grid-column: auto;
  }

  body .service-start-form .button {
    width: 100%;
    min-height: 52px;
  }
}

.floating-actions {
  position: fixed;
  right: 30px;
  bottom: 28px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  pointer-events: none;
}

.sticky-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

.sticky-cta.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.sticky-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 166px;
  min-height: 68px;
  border: 6px solid #fff;
  border-radius: 999px;
  padding: 0 24px;
  box-shadow: 0 16px 38px rgba(23, 43, 41, 0.22);
  text-align: center;
  color: #fff;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.sticky-cta a .button-icon {
  width: 18px;
  height: 18px;
}

.sticky-cta a:first-child {
  background: var(--teal);
}

.sticky-cta a:last-child {
  background: var(--orange);
}

.floating-actions--service {
  right: 0;
  left: 0;
  justify-content: center;
}

.sticky-cta--service .service-sticky-pill,
.sticky-cta--service .service-sticky-pill:first-child,
.sticky-cta--service .service-sticky-pill:last-child {
  width: max-content;
  max-width: calc(100vw - 160px);
  min-width: 0;
  min-height: 58px;
  border-width: 5px;
  background: var(--teal);
}

.floating-actions--service .whatsapp-fab {
  position: absolute;
  right: 30px;
}

.whatsapp-fab {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border: 6px solid #fff;
  border-radius: 50%;
  background: #26a95f;
  color: #fff;
  box-shadow: 0 16px 38px rgba(19, 83, 57, 0.28);
  font-weight: 950;
  pointer-events: auto;
}

.fab-icon {
  display: block;
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.whatsapp-brand-icon { display: block; width: 29px; height: 29px; }

.site-footer {
  flex-shrink: 0;
  width: 100%;
  margin-top: auto;
  padding: 64px 44px 150px;
  background: #0f6964;
  color: #f4fffb;
}

.without-floating-actions .site-footer {
  padding-bottom: 64px;
}

.footer-associations {
  display: grid;
  grid-template-columns: minmax(220px, 0.32fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  width: min(100%, 1240px);
  margin: 32px auto 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  padding: 22px 0 0;
}

.footer-associations__heading p {
  margin: 0;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 800;
}

.footer-associations__row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.association-mark {
  display: grid;
  flex: 0 0 auto;
  min-width: 0;
  min-height: 52px;
  place-items: center;
  padding: 0;
  opacity: 0.82;
  transition: opacity 160ms ease, transform 160ms ease;
}

.association-mark:hover,
.association-mark:focus-visible {
  outline: 0;
  opacity: 1;
  transform: translateY(-2px);
}

.association-mark img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 40px;
  object-fit: contain;
}

.association-mark--stacked {
  align-content: center;
  gap: 4px;
}

.association-mark--stacked img {
  height: 25px;
}

.association-mark--stacked span {
  color: #fff;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-align: center;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1fr);
  gap: 54px;
  width: min(100%, 1240px);
  margin: 0 auto;
}

.footer-brand {
  display: grid;
  align-content: start;
  gap: 18px;
}

.footer-brand img {
  width: min(100%, 220px);
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.footer-brand p {
  max-width: 380px;
  color: rgba(244, 255, 251, 0.82);
  font-size: 17px;
  line-height: 1.55;
}

.footer-icon-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-icon-button {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  cursor: pointer;
  border: 1px solid rgba(244, 255, 251, 0.34);
  border-radius: 50%;
  padding: 0;
  background: rgba(244, 255, 251, 0.08);
  color: #fff;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.footer-icon-button:hover,
.footer-icon-button:focus-visible {
  border-color: rgba(244, 255, 251, 0.64);
  background: rgba(244, 255, 251, 0.16);
  outline: 0;
  transform: translateY(-2px);
}

.footer-action-icon {
  display: block;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.footer-columns div {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-columns h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: none;
}

.footer-columns a {
  color: rgba(244, 255, 251, 0.82);
  font-size: 14px;
  font-weight: 760;
  line-height: 1.35;
}

.footer-columns a:hover,
.footer-columns a:focus-visible,
.footer-selectors a:hover,
.footer-selectors a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  width: min(100%, 1240px);
  margin: 22px auto 0;
  border-top: 1px solid rgba(244, 255, 251, 0.22);
  padding-top: 22px;
}

.footer-bottom small {
  color: rgba(244, 255, 251, 0.74);
  line-height: 1.45;
}

.footer-back-to-top {
  color: rgba(244, 255, 251, 0.86);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.footer-back-to-top:hover,
.footer-back-to-top:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.footer-selectors {
  display: flex;
}

.footer-selectors details {
  position: relative;
}

.footer-selectors summary {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  cursor: pointer;
  list-style: none;
  border: 1px solid rgba(244, 255, 251, 0.34);
  border-radius: 50%;
  padding: 0;
  color: #fff;
  background: rgba(244, 255, 251, 0.08);
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.footer-selectors summary:hover,
.footer-selectors summary:focus-visible {
  border-color: rgba(244, 255, 251, 0.58);
  background: rgba(244, 255, 251, 0.14);
  outline: 0;
  transform: translateY(-1px);
}

.footer-globe-icon {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-selectors summary::-webkit-details-marker {
  display: none;
}

.footer-selectors details > div {
  position: absolute;
  right: auto;
  bottom: calc(100% + 12px);
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 24px;
  min-width: min(420px, calc(100vw - 28px));
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 24px;
  color: #2c3632;
  box-shadow: 0 28px 70px rgba(23, 43, 41, 0.16);
}

.footer-locale-panel section {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
}

.footer-locale-panel h3 {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.25;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-selectors a {
  border-radius: 10px;
  padding: 10px 12px;
  color: #2c3632;
  font-size: 14px;
  font-weight: 780;
  line-height: 1.32;
}

.footer-selectors a:hover,
.footer-selectors a:focus-visible {
  background: var(--teal-soft);
  color: #147c75;
  outline: 0;
  text-decoration: none;
}

.about-shell {
  display: grid;
  gap: 38px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 84px 44px 110px;
}

.about-hero {
  max-width: 760px;
}

.about-hero h1 {
  max-width: 720px;
}

.about-hero > p {
  margin-top: 18px;
  color: #303835;
  font-size: 18px;
  line-height: 1.58;
}

.about-principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.about-principles article {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.about-principles h2,
.about-band h2 {
  font-size: clamp(27px, 2.6vw, 38px);
  line-height: 1.08;
}

.about-principles p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.about-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1fr);
  gap: 40px;
  align-items: start;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 38px 0;
}

.about-band > p {
  color: #303835;
  font-size: 17px;
  line-height: 1.58;
}

.section-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: #147c75;
  font-weight: 900;
}

.section-text-link .button-icon {
  width: 17px;
  height: 17px;
}

.home-deep-link {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(280px, 1fr) auto;
  gap: 36px;
  align-items: center;
  width: calc(100% - 88px);
  max-width: 1180px;
  margin: 70px auto;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(135deg, #f5fbfa, #fffaf2);
  box-shadow: 0 18px 44px rgba(23, 43, 41, 0.07);
}

.home-deep-link h2 {
  margin-top: 8px;
  font-size: clamp(29px, 3vw, 42px);
  line-height: 1.04;
}

.home-deep-link > p {
  color: var(--muted);
  line-height: 1.55;
}

.home-deep-link .button {
  white-space: nowrap;
}

.about-next-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.about-next-links a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px 12px;
  align-items: center;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(23, 43, 41, 0.05);
}

.about-next-links small {
  grid-column: 1 / -1;
  color: var(--teal);
  font-weight: 850;
  letter-spacing: 0.03em;
}

.about-next-links strong {
  font-family: var(--serif);
  font-size: 21px;
}

.about-next-links .button-icon {
  width: 18px;
  height: 18px;
}

.content-page-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 76px;
  margin: 0 auto;
  padding: 76px 0 110px;
}

main > .content-page-shell {
  width: calc(100% - 88px);
  max-width: 1180px;
}

.content-page-shell > * {
  min-width: 0;
}

.content-page-hero {
  max-width: 820px;
}

.content-page-hero--split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.78fr);
  gap: 54px;
  align-items: center;
  max-width: none;
}

.content-page-hero h1 {
  max-width: 800px;
  margin-top: 8px;
  font-size: clamp(44px, 5.4vw, 76px);
  line-height: 0.98;
}

.content-page-hero > p,
.content-page-hero > div > p:not(.eyebrow) {
  max-width: 720px;
  margin-top: 20px;
  color: #34413e;
  font-size: 18px;
  line-height: 1.6;
}

.content-page-hero__art {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f7fbfa;
  box-shadow: 0 20px 48px rgba(23, 43, 41, 0.09);
}

.journey-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.journey-summary article,
.security-principles article {
  border-top: 2px solid rgba(35, 151, 142, 0.5);
  padding: 20px 4px 0;
}

.journey-summary span,
.security-principles span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.journey-summary h2,
.journey-summary h3,
.security-principles h2 {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: clamp(23px, 2.2vw, 30px);
  line-height: 1.08;
}

.journey-summary p,
.security-principles p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.55;
}

.content-page-section.timeline-care-section,
.content-page-section.section {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}

.content-page-section.timeline-care-section {
  padding-top: 58px;
}

.content-page-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 38px 0;
}

.content-page-cta h2 {
  margin-top: 8px;
  font-size: clamp(30px, 3.5vw, 46px);
  line-height: 1.03;
}

.content-page-cta .button {
  flex: 0 0 auto;
}

.security-principles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.sharing-model {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1fr);
  gap: 60px;
  align-items: start;
  padding: 42px;
  border-radius: 20px;
  background: #eaf7f4;
}

.sharing-model h2,
.organisation-workflow h2 {
  margin-top: 8px;
  font-size: clamp(32px, 3.8vw, 50px);
  line-height: 1.02;
}

.sharing-model > div > p:not(.eyebrow) {
  margin-top: 16px;
  color: var(--muted);
  line-height: 1.55;
}

.sharing-role-list {
  display: grid;
}

.sharing-role-list article {
  display: grid;
  gap: 6px;
  border-top: 1px solid rgba(16, 16, 16, 0.15);
  padding: 17px 0;
}

.sharing-role-list strong {
  font-size: 17px;
}

.sharing-role-list span {
  color: var(--muted);
  line-height: 1.45;
}

.content-page-features {
  margin: 0;
}

.organisation-audience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.organisation-audience-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  scroll-margin-top: 96px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(23, 43, 41, 0.07);
}

.organisation-audience-card > img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.organisation-audience-card > div {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.organisation-audience-card h2 {
  font-size: 30px;
}

.organisation-audience-card p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.55;
}

.organisation-audience-card a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
  color: #147c75;
  font-weight: 900;
}

.organisation-audience-card a .button-icon {
  width: 17px;
  height: 17px;
}

.organisation-workflow {
  display: grid;
  gap: 38px;
  padding: 48px;
  border-radius: 20px;
  background: linear-gradient(135deg, #eff9f7, #fff8ed);
}

.faq-page-sections {
  display: grid;
  gap: 64px;
}

.faq-page-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1fr);
  gap: 60px;
  scroll-margin-top: 96px;
}

.faq-page-section h2 {
  margin-top: 8px;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.04;
}

.auth-shell,
.account-shell {
  display: grid;
  grid-template-columns: minmax(320px, 0.75fr) minmax(360px, 0.85fr);
  gap: 54px;
  align-items: start;
  max-width: 1120px;
  margin: 0 auto;
  padding: 86px 44px 120px;
}

.auth-shell {
  padding-top: 72px;
  padding-bottom: 76px;
}

.auth-shell h1,
.account-shell h1 {
  max-width: 620px;
  font-size: clamp(42px, 4.8vw, 68px);
}

.auth-shell p,
.account-shell p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.auth-copy {
  position: sticky;
  top: 100px;
}

.auth-assurance-list {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.auth-assurance-list span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #2d3532;
  font-size: 15px;
  font-weight: 850;
}

.auth-assurance-list .button-icon {
  width: 18px;
  height: 18px;
  color: var(--teal);
}

.eyebrow {
  color: var(--teal) !important;
  font-size: 13px !important;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-panel,
.account-grid article {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(23, 43, 41, 0.08);
}

.auth-panel {
  padding: 30px;
}

.auth-shell--simple {
  display: block;
  max-width: 680px;
  padding-top: 72px;
  padding-bottom: 96px;
}

.auth-shell--simple .auth-copy {
  position: static;
  max-width: 590px;
  margin: 0 auto 30px;
  text-align: center;
}

.auth-shell--simple .auth-copy h1 {
  max-width: none;
}

.auth-shell--simple .auth-copy p {
  max-width: 540px;
  margin-right: auto;
  margin-left: auto;
}

.auth-shell--simple .auth-panel {
  width: 100%;
  max-width: 520px;
  min-width: 0;
  margin: 0 auto;
}

.auth-shell--simple,
.auth-shell--simple .auth-copy,
.auth-shell--simple .auth-form,
.auth-shell--simple .auth-method-switch,
.auth-shell--simple .auth-method-list,
.auth-shell--simple .auth-phone-fields,
.auth-shell--simple .select-control {
  min-width: 0;
  max-width: 100%;
}

.auth-shell--simple .auth-method-button span,
.auth-shell--simple .auth-method-switch span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.auth-shell--simple .auth-form .button {
  width: 100%;
  margin-top: 4px;
}

.onboarding-shell .auth-panel,
.claim-panel {
  min-width: 0;
}

.auth-choice-fieldset {
  display: grid;
  gap: 10px;
  margin: 0;
  border: 0;
  padding: 0;
}

.auth-choice-fieldset legend {
  margin-bottom: 8px;
  font-weight: 850;
}

.auth-choice-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.auth-choice-row label,
.auth-consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  line-height: 1.45;
}

.auth-choice-row label:has(input:checked) {
  border-color: var(--teal);
  background: var(--teal-soft);
  color: #147c75;
  font-weight: 850;
}

.auth-choice-row input,
.auth-consent-row input {
  flex: 0 0 auto;
  margin-top: 3px;
}

.claim-shell .result-facts {
  margin-bottom: 22px;
}

.auth-method-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  margin-bottom: 24px;
  border: 1.5px solid #c9cec9;
  border-radius: 14px;
  background: #fff;
}

.auth-method-switch a {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
  transition: background 160ms ease, color 160ms ease;
}

.auth-method-switch a + a {
  border-left: 1.5px solid #c9cec9;
}

.auth-method-switch a.active {
  background: var(--teal-soft);
  color: #147c75;
}

.auth-method-switch a:hover {
  background: #eef8f6;
  color: #147c75;
}

.auth-method-switch a:focus-visible {
  z-index: 1;
  outline: 3px solid rgba(43, 156, 147, 0.28);
  outline-offset: -3px;
}

.auth-method-switch .button-icon {
  width: 18px;
  height: 18px;
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-field {
  display: grid;
  min-width: 0;
  gap: var(--form-label-gap);
}

.auth-phone-fields {
  display: grid;
  gap: var(--form-label-gap);
}

.auth-phone-labels,
.auth-phone-control-group {
  display: grid;
  grid-template-columns: minmax(116px, 0.72fr) minmax(0, 1.28fr);
}

.auth-phone-labels label {
  min-width: 0;
}

.auth-phone-control-group {
  overflow: hidden;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.auth-phone-control-group > * + * {
  border-left: 1.5px solid var(--line) !important;
}

.auth-form .auth-phone-control-group .select-input,
.auth-form .auth-phone-control-group input[type="tel"] {
  min-width: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
}

.auth-phone-control-group:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(43, 156, 147, 0.15);
}

.auth-code-panel {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.auth-code-panel > p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.whatsapp-enrollment {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.whatsapp-enrollment h3 {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  letter-spacing: 0;
}

.whatsapp-enrollment > p {
  margin: 7px 0 16px;
  font-size: 14px;
  line-height: 1.45;
}

.whatsapp-enrollment .button {
  justify-self: start;
}

.auth-form + .auth-form,
.auth-panel .text-action {
  margin-top: 24px;
}

.auth-form label {
  color: #2d3532;
  font-size: 14px;
  font-weight: 850;
}

.auth-form input[type="email"],
.auth-form input[type="tel"],
.auth-form input[type="text"] {
  width: 100%;
  min-height: 54px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0 16px;
  color: var(--ink);
  font: inherit;
}

.auth-form input:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(43, 156, 147, 0.15);
}

.auth-panel-note {
  margin-top: 16px !important;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: var(--muted);
  font-size: 14px !important;
  line-height: 1.45 !important;
}

.flash {
  margin: 0 0 18px !important;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px !important;
  font-weight: 800;
}

.flash.notice {
  background: var(--teal-soft);
  color: #147c75;
}

.flash.alert {
  background: var(--orange-soft);
  color: #9d5f00;
}

.account-header {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.account-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  min-width: 0;
}

.dashboard-home {
  max-width: 1180px;
}

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

.account-grid article {
  min-width: 0;
  padding: 28px;
}

.account-grid h2 {
  font-size: 30px;
}

.account-grid ul {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.account-grid li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.account-grid li a {
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
}

.account-grid li > span:first-child {
  color: var(--ink);
  font-weight: 850;
}

.case-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 86px 44px 170px;
}

.case-titlebar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 30px;
}

.case-titlebar h1 {
  max-width: 720px;
  font-size: clamp(42px, 5vw, 72px);
}

.case-titlebar p {
  max-width: 680px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.case-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.case-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.case-card,
.empty-state,
.case-summary article,
.case-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(23, 43, 41, 0.08);
}

.case-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 24px;
  color: var(--ink);
  text-decoration: none;
}

.case-card h2 {
  font-size: 25px;
}

.case-card p,
.case-card small,
.muted-copy {
  color: var(--muted);
  line-height: 1.55;
}

.case-status,
.pill {
  width: fit-content;
  border: 1px solid rgba(43, 156, 147, 0.28);
  border-radius: 999px;
  background: var(--teal-soft);
  padding: 6px 10px;
  color: #147c75;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.empty-state {
  max-width: 620px;
  padding: 34px;
}

.empty-state h2,
.case-panel h2 {
  font-size: 28px;
}

.empty-state p {
  margin: 12px 0 22px;
  color: var(--muted);
  line-height: 1.55;
}

.case-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.case-summary article {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 20px;
}

.case-summary-link {
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.case-summary-link article {
  height: 100%;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.case-summary-link:hover article,
.case-summary-link:focus-visible article {
  border-color: var(--teal);
  box-shadow: 0 20px 46px rgba(23, 43, 41, 0.13);
  transform: translateY(-2px);
}

.case-summary-link small {
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
}

.case-summary span,
.panel-heading span,
.case-task-list span,
.document-list span,
.people-list span,
.case-timeline time {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.case-summary strong {
  font-size: 26px;
  overflow-wrap: anywhere;
}

.case-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
}

.estate-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
}

.case-panel {
  min-width: 0;
  padding: 26px;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.case-task-list,
.case-timeline,
.document-list,
.people-list,
.estate-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-task-list li,
.document-list li,
.people-list li,
.estate-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.case-task-list li > div,
.document-list li,
.people-list li,
.estate-list li > div {
  min-width: 0;
}

.case-task-list strong,
.document-list strong,
.people-list strong,
.estate-list strong {
  display: block;
  overflow-wrap: anywhere;
}

.estate-list small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
}

.case-timeline li {
  border-left: 3px solid var(--teal-soft);
  padding-left: 14px;
}

.case-timeline strong {
  display: block;
  margin-top: 4px;
}

.case-timeline p {
  margin-top: 6px;
  color: var(--ink);
  line-height: 1.5;
}

.case-note-form,
.case-share-form,
.document-upload-form,
.estate-workstream-form,
.referral-form {
  display: grid;
  gap: 12px;
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.case-note-form label,
.case-share-form label,
.document-upload-form label,
.estate-workstream-form label,
.referral-form label {
  color: #2d3532;
  font-size: 14px;
  font-weight: 850;
}

.case-note-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
.case-note-form textarea,
.case-share-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
.case-share-form select,
.document-upload-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
.document-upload-form select,
.estate-workstream-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
.estate-workstream-form select,
.referral-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
.referral-form select {
  width: 100%;
  min-height: 50px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  color: var(--ink);
  font: inherit;
}

.case-note-form textarea {
  min-height: 112px;
  padding: 13px 14px;
  resize: vertical;
}

.admin-checkbox-row {
  display: flex !important;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
}

.admin-checkbox-row input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
  accent-color: var(--teal);
}

.admin-checkbox-row span,
.admin-checkbox-row small,
.admin-delivery-log {
  display: grid;
  gap: 3px;
}

.admin-checkbox-row small,
.admin-delivery-log span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.admin-client-timeline {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.admin-delivery-log {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.admin-document-list li {
  align-items: flex-start;
}

.admin-document-controls {
  justify-content: flex-end;
}

.admin-document-controls .select-input {
  min-width: 140px;
}

.referral-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
}

.utm-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.inline-admin-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.inline-admin-form .select-input {
  min-width: 150px;
}

.document-upload-form input[type="file"] {
  min-height: auto;
  padding: 13px;
  background: #fff;
}

.icon-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--teal);
  cursor: pointer;
}

.service-shell,
.intake-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 86px 44px 120px;
}

.service-hero,
.intake-copy {
  min-width: 0;
  max-width: 760px;
}

.service-hero h1,
.intake-copy h1 {
  margin: 0;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 0.94;
  overflow-wrap: break-word;
}

.service-hero p,
.intake-copy p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 48px;
}

.service-card {
  display: grid;
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(23, 43, 41, 0.08);
}

.service-card:hover,
.service-card:focus-visible {
  border-color: rgba(43, 156, 147, 0.5);
  outline: 0;
  transform: translateY(-2px);
}

.service-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  background: var(--teal-soft);
  color: var(--teal);
}

.service-card h2,
.availability-panel h2,
.result-panel h2 {
  margin: 20px 0 0;
  font-size: 28px;
}

.service-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.service-card small {
  align-self: end;
  margin-top: 28px;
  color: #2d3532;
  font-weight: 850;
}

.guide-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 86px 44px 140px;
}

.guide-hero {
  max-width: 780px;
}

.guide-hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 0.94;
}

.guide-hero p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 48px;
}

.guide-card {
  display: grid;
  gap: 12px;
  min-height: 270px;
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(23, 43, 41, 0.08);
}

.guide-card:hover,
.guide-card:focus-visible {
  border-color: rgba(43, 156, 147, 0.5);
  outline: 0;
  transform: translateY(-2px);
}

.guide-card h2 {
  margin: 0;
  font-size: 25px;
}

.guide-card p,
.guide-card small,
.guide-article p,
.guide-aside p {
  color: var(--muted);
  line-height: 1.55;
}

.guide-card small {
  align-self: end;
  font-weight: 800;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 32px;
  align-items: start;
  margin-top: 56px;
}

.guide-article {
  display: grid;
  gap: 34px;
  min-width: 0;
}

.guide-article section {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.guide-article h2,
.guide-aside h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
}

.guide-article p {
  max-width: 720px;
  margin-top: 12px;
  font-size: 18px;
}

.guide-aside {
  display: grid;
  gap: 16px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  background: var(--soft);
}

.quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
  gap: 24px;
  align-items: start;
}

.quote-line-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.quote-line-list li,
.quote-total,
.payment-details div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.quote-line-list span,
.quote-line-list strong,
.quote-total strong,
.payment-details dd {
  overflow-wrap: anywhere;
}

.quote-total {
  margin-top: 20px;
  border-bottom: 0;
  padding-top: 18px;
  padding-bottom: 0;
  font-size: 22px;
}

.payment-panel {
  max-width: 760px;
}

.payment-details {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
}

.payment-details dt {
  color: var(--muted);
  font-weight: 800;
}

.payment-details dd {
  margin: 0;
  font-weight: 850;
  text-align: right;
}

.service-detail,
.intake-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.62fr);
  gap: 54px;
  align-items: start;
}

.service-actions {
  margin-top: 28px;
}

.availability-panel,
.result-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(23, 43, 41, 0.08);
}

.availability-panel ul {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}

.availability-panel li,
.result-panel dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 0 0 14px;
}

.availability-panel span,
.result-panel dd {
  color: var(--teal);
  font-weight: 900;
}

.intake-panel {
  min-width: 0;
}

.select-input {
  width: 100%;
  min-height: 54px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0 16px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.select-input:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(43, 156, 147, 0.15);
}

.intake-checks {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}

.intake-checks legend {
  padding: 0 8px;
  color: #2d3532;
  font-size: 14px;
  font-weight: 850;
}

.intake-checks label {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.4;
}

.intake-checks input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--teal);
}

.intake-wizard-page {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  padding-bottom: 130px;
  background: #f5faf8;
}

.intake-wizard-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  overflow: hidden;
  min-height: 300px;
  place-items: center;
  border-bottom: 1px solid rgba(35, 151, 142, 0.18);
  background: var(--teal-soft);
}

.intake-wizard-hero::before,
.intake-wizard-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.intake-wizard-hero::before {
  z-index: -2;
  background-image: var(--intake-hero-image);
  background-position: center;
  background-size: cover;
  opacity: 0.38;
  filter: saturate(0.72) contrast(0.86);
}

.intake-wizard-hero::after {
  z-index: -1;
  background: linear-gradient(90deg, rgba(232, 245, 242, 0.72), rgba(248, 250, 246, 0.92) 30%, rgba(248, 250, 246, 0.94) 70%, rgba(232, 245, 242, 0.72));
}

.intake-wizard-hero__copy {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100% - 44px));
  padding: 38px 0 88px;
  text-align: center;
}

.intake-wizard-hero__copy h1 {
  max-width: 880px;
  margin: 0 auto;
  font-size: clamp(52px, 5.4vw, 76px);
  line-height: 0.96;
  overflow-wrap: anywhere;
}

.intake-wizard-hero__lead {
  max-width: 720px;
  margin: 18px auto 0;
  color: #213b36;
  font-size: clamp(21px, 2.2vw, 29px);
  font-weight: 800;
  line-height: 1.18;
}

.intake-wizard-hero__support {
  max-width: 620px;
  margin: 12px auto 0;
  color: #34443f;
  font-size: 16px;
  line-height: 1.5;
}

.intake-wizard-progress {
  display: grid;
  grid-template-columns: repeat(var(--intake-step-count, 3), minmax(0, 1fr));
  width: 100%;
  max-width: none;
  gap: 10px;
  margin: 28px auto 0;
  padding: 0;
  list-style: none;
}

.intake-wizard-progress li {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  align-content: start;
  gap: 7px;
  min-width: 0;
  border-bottom: 2px solid rgba(16, 16, 16, 0.13);
  padding: 0 3px 10px;
  color: #52625e;
  font-size: 14px;
  font-weight: 850;
  text-align: center;
}

.intake-wizard-progress__number {
  display: inline-grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 12px;
}

.intake-wizard-progress__label {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.15;
}

.intake-wizard-progress li.active {
  border-color: var(--teal);
  color: #147c75;
}

.intake-wizard-progress li.active .intake-wizard-progress__number {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.intake-wizard-progress li.done {
  border-color: rgba(43, 156, 147, 0.42);
  color: #47615c;
}

.intake-wizard-progress li.done .intake-wizard-progress__number {
  border-color: rgba(43, 156, 147, 0.72);
  background: var(--teal-soft);
  color: #147c75;
}

.intake-wizard-panel {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 44px));
  min-height: 510px;
  margin: -72px auto 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 34px;
  background: #fff;
  box-shadow: 0 26px 64px rgba(23, 43, 41, 0.14);
}

.intake-wizard-panel,
.intake-wizard-form,
.intake-wizard-step,
.intake-wizard-step header,
.intake-field,
.intake-choice-fieldset,
.intake-choice-grid,
.intake-wizard-actions {
  min-width: 0;
  max-width: 100%;
}

.intake-wizard-panel > .intake-wizard-progress {
  margin: 0 auto 24px;
}

.intake-result-panel {
  display: grid;
  min-height: 0;
  gap: 26px;
}

.intake-result-panel .intake-wizard-progress__number .button-icon {
  width: 14px;
  height: 14px;
}

.intake-result-panel__header > span {
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}

.intake-result-panel__header h2 {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.04;
}

.intake-result-panel__header p {
  margin-top: var(--heading-copy-gap);
  color: var(--muted);
  line-height: 1.5;
}

.intake-result-steps {
  border-radius: 14px;
  padding: 22px;
  background: var(--teal-soft);
}

.intake-result-steps h3 {
  margin: 0 0 16px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 900;
}

.intake-result-steps ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.intake-result-steps li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
}

.intake-result-steps li > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #147c75;
  font-size: 12px;
  font-weight: 900;
}

.intake-result-steps li p {
  margin: 3px 0 0;
  line-height: 1.45;
}

.intake-result-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.intake-result-summary > div {
  display: grid;
  min-width: 0;
  gap: 5px;
  padding: 16px;
}

.intake-result-summary > div + div {
  border-left: 1px solid var(--line);
}

.intake-result-summary dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.intake-result-summary dd {
  margin: 0;
  color: #147c75;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.intake-result-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.intake-result-actions > :only-child {
  grid-column: 1 / -1;
}

.intake-result-actions .button {
  width: 100%;
  min-width: 0;
  min-height: 54px;
}

.intake-result-security-note {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  color: var(--muted);
}

.intake-result-security-note .button-icon {
  width: 19px;
  height: 19px;
  color: var(--teal);
}

.intake-result-security-note p {
  margin: 0;
  line-height: 1.5;
}

.intake-result-security-note strong {
  color: #2d3532;
}

.intake-wizard-form,
.intake-wizard-step,
.intake-helper-details {
  display: grid;
  gap: 24px;
}

.intake-wizard-step header > span {
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}

.intake-wizard-step header h2 {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.04;
}

.intake-wizard-step header p {
  margin-top: var(--heading-copy-gap);
  color: var(--muted);
  line-height: 1.5;
}

.intake-question-help {
  position: relative;
  width: fit-content;
  margin-top: 12px;
}

.intake-question-help summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #147c75;
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
  list-style: none;
}

.intake-question-help summary::-webkit-details-marker {
  display: none;
}

.intake-question-help summary > span {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 12px;
}

.intake-question-help[open] {
  width: 100%;
}

.intake-question-help[open] > p {
  max-width: none;
  margin-top: 9px;
  border-left: 3px solid var(--teal);
  border-radius: 0 8px 8px 0;
  background: var(--teal-soft);
  padding: 10px 12px;
  color: #34443f;
  font-size: 13px;
  line-height: 1.45;
}

.intake-field {
  display: grid;
  gap: var(--form-label-gap);
}

.intake-field label,
.intake-field-label,
.intake-choice-fieldset legend {
  color: #2d3532;
  font-size: 14px;
  font-weight: 850;
}

.intake-phone-fields {
  display: grid;
  grid-template-columns: minmax(132px, 0.72fr) minmax(0, 1.28fr);
  gap: 10px;
}

.intake-phone-fieldset {
  margin: 0;
  border: 0;
  padding: 0;
}

.intake-phone-labels,
.intake-phone-control-group {
  display: grid;
  grid-template-columns: minmax(112px, 0.65fr) minmax(0, 1.35fr);
}

.intake-phone-labels {
  gap: 0;
  color: #2d3532;
  font-size: 13px;
  font-weight: 850;
}

.intake-phone-labels span {
  padding: 0 14px;
}

.intake-phone-control-group {
  overflow: hidden;
  height: 56px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

body .intake-wizard-form .intake-phone-control-group select:not([multiple]):not([size]),
body .intake-wizard-form .intake-phone-control-group input[type="tel"] {
  height: 100%;
  min-height: 0;
}
.intake-phone-control-group > .select-control { min-height: 0; }

.intake-phone-control-group > * + * {
  border-left: 1px solid var(--line) !important;
}

.intake-wizard-form .intake-phone-control-group .select-input,
.intake-wizard-form .intake-phone-control-group input[type="tel"] {
  min-width: 0;
  border: 0;
  border-radius: 0;
  outline-offset: -3px;
}

.intake-phone-control-group:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(43, 156, 147, 0.15);
}

.intake-phone-part {
  display: grid;
  min-width: 0;
  gap: var(--form-label-gap);
}

.intake-idd-select {
  width: 100%;
}

.intake-wizard-form input[type="email"],
.intake-wizard-form input[type="tel"],
.intake-wizard-form input[type="text"],
.intake-wizard-form textarea,
.intake-wizard-form .select-input {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 56px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0 16px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.intake-wizard-form textarea {
  min-height: 112px;
  padding: 14px 16px;
  line-height: 1.5;
  resize: vertical;
}

.intake-wizard-form input:focus,
.intake-wizard-form textarea:focus,
.intake-wizard-form .select-input:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(43, 156, 147, 0.15);
}

.select-control {
  position: relative;
}

.intake-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 50px !important;
}

.select-control__icon {
  position: absolute;
  top: 50%;
  right: 18px;
  width: 19px;
  height: 19px;
  color: var(--teal);
  pointer-events: none;
  transform: translateY(-50%);
}

.intake-choice-fieldset {
  display: grid;
  gap: 10px;
  margin: 0;
  border: 0;
  padding: 0;
}

.intake-choice-fieldset > legend {
  margin-bottom: var(--form-label-gap);
}

.intake-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 10px;
}

.intake-choice-grid--responses {
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
}

.intake-response-fieldset .intake-choice-option__body {
  align-items: center;
  min-height: 92px;
}

.intake-choice-option {
  position: relative;
  display: block;
  height: 100%;
  cursor: pointer;
}

.intake-choice-option > input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.intake-choice-option__body {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  height: 100%;
  min-height: 86px;
  box-sizing: border-box;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 15px;
  background: #fff;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.intake-choice-option__body .button-icon {
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  color: var(--teal);
}

.intake-choice-option__body strong,
.intake-choice-option__body small {
  display: block;
  overflow-wrap: anywhere;
}

.intake-choice-option__body strong {
  color: var(--ink);
  font-size: 15px;
}

.intake-choice-option__body small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.intake-choice-option:hover .intake-choice-option__body,
.intake-choice-option > input:checked + .intake-choice-option__body {
  border-color: var(--teal);
  background: var(--teal-soft);
}

.intake-choice-option > input:focus-visible + .intake-choice-option__body {
  outline: 3px solid rgba(43, 156, 147, 0.18);
  outline-offset: 2px;
}

.intake-contact-choice {
  margin-top: 2px;
}

.intake-privacy-note {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #40504c;
  font-size: 13px;
  line-height: 1.4;
}

.intake-privacy-note .button-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--teal);
}

.intake-wizard-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.intake-wizard-actions .ghost {
  margin-right: auto;
}

.intake-wizard-actions .button:disabled,
.will-builder__actions .button:disabled {
  border-color: #cfd8d5;
  background: #e7ecea;
  color: #78827f;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 1;
  transform: none;
}

.intake-wizard-assurances {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 30px;
  width: min(880px, calc(100% - 44px));
  margin: 30px auto 0;
  color: #40504c;
  font-size: 13px;
  font-weight: 800;
}

.intake-wizard-assurances span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.intake-wizard-assurances .button-icon {
  width: 18px;
  height: 18px;
  color: var(--teal);
}

.result-panel dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.result-panel dt {
  color: var(--muted);
  font-weight: 800;
}

.result-panel dd {
  margin: 0;
  text-align: right;
}

.result-actions {
  margin-top: 28px;
}

.service-page-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 70px 44px 140px;
}

.service-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.5fr);
  grid-template-areas:
    "copy form"
    "media form";
  gap: 28px 34px;
  align-items: start;
}

.service-hero-copy {
  grid-area: copy;
  max-width: 760px;
}

.service-hero-copy h1 {
  margin: 0;
  font-size: clamp(46px, 6vw, 82px);
  line-height: 0.92;
}

.service-hero-copy p,
.service-story-section p,
.service-section-copy p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.service-proof-row,
.service-auth-methods,
.result-auth-strip div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

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

.service-proof-row span,
.service-auth-methods span,
.result-auth-strip span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(43, 156, 147, 0.22);
  border-radius: 999px;
  background: var(--teal-soft);
  padding: 8px 11px;
  color: #147c75;
  font-size: 13px;
  font-weight: 900;
}

.service-proof-row .button-icon {
  width: 17px;
  height: 17px;
}

.service-hero-media {
  grid-area: media;
  min-height: 390px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #fffaf1;
  box-shadow: 0 18px 44px rgba(23, 43, 41, 0.08);
}

.service-hero-media img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
  object-position: center;
  animation: gentlePan 12s ease-in-out infinite alternate;
}

.service-hero-media--probate img,
.service-hero-media--estate-administration img,
.service-hero-media--funeral-arrangement img,
.service-hero-media--funeral img {
  object-position: 62% center;
}

.service-start-panel {
  grid-area: form;
  position: sticky;
  top: 96px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 26px;
  box-shadow: 0 20px 50px rgba(23, 43, 41, 0.12);
}

.service-start-panel h2,
.service-story-section h2,
.service-benefit-section h2,
.service-faq-section h2,
.case-progress-copy h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.02;
}

.service-start-panel > p {
  color: var(--muted);
  line-height: 1.5;
}

.service-start-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.service-start-form__note {
  margin: 2px 0 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.intake-field--single-question {
  max-width: 520px;
}

.service-start-form label,
.service-mini-checks legend,
.service-consent-line {
  color: #2d3532;
  font-size: 13px;
  font-weight: 850;
}

.service-start-form input[type="text"],
.service-start-form input[type="email"],
.service-start-form input[type="tel"] {
  width: 100%;
  min-height: 50px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  color: var(--ink);
  font: inherit;
}

.service-mini-checks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 2px 0;
  padding: 14px;
}

.service-mini-checks label,
.service-consent-line {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 9px;
  align-items: start;
  color: var(--muted);
  line-height: 1.35;
}

.service-consent-line input,
.service-mini-checks input {
  accent-color: var(--teal);
}

.service-auth-methods {
  margin-top: 16px;
}

.service-auth-methods span {
  background: #fff;
}

.service-story-section,
.service-benefit-section,
.service-faq-section {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  border-top: 1px solid var(--line);
  margin-top: 70px;
  padding-top: 54px;
}

.service-step-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.service-step-strip article,
.service-benefit-grid article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(23, 43, 41, 0.07);
}

.service-step-strip article,
.service-benefit-grid article {
  padding: 22px;
}

.service-step-strip span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-weight: 900;
}

.service-step-strip p,
.service-benefit-grid p {
  margin: 14px 0 0;
  color: var(--ink);
  font-weight: 760;
  line-height: 1.45;
}

.service-benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.service-availability-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 52px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.service-availability-label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.service-country-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-country-list li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 14px;
}

.service-country-flag {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 16px rgba(23, 43, 41, 0.08);
  font-size: 22px;
  line-height: 1;
}

.service-country-pending {
  color: var(--muted) !important;
}

.result-auth-strip {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.result-auth-strip p {
  color: var(--muted);
  line-height: 1.5;
}

.auth-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.auth-option {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 12px 13px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}

.auth-option:hover,
.auth-option:focus-visible,
.auth-option.active {
  border-color: rgba(35, 151, 142, 0.38);
  background: var(--teal-soft);
  color: #147c75;
  outline: 0;
}

.auth-option.muted {
  background: #f8f7f3;
  color: var(--muted);
}

.auth-option .button-icon {
  width: 18px;
  height: 18px;
}

.auth-option span {
  min-width: 0;
}

.auth-help-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}

.auth-help-links a {
  color: #147c75;
  font-size: 14px;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.auth-method-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  text-align: center;
}

.auth-method-divider::before,
.auth-method-divider::after {
  height: 1px;
  flex: 1;
  background: var(--line);
  content: "";
}

.auth-method-list {
  display: grid;
  gap: 10px;
}

.auth-method-list > [data-controller="passkey"],
.auth-method-list button.auth-method-button {
  width: 100%;
  min-width: 0;
}

.auth-method-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}

.auth-method-message {
  min-height: 0;
  margin: 6px 0 0;
  color: #8f3028;
  font-size: 13px;
  line-height: 1.4;
}

.auth-method-message:empty {
  display: none;
}

.passkey-enrollment {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.passkey-enrollment h3,
.passkey-enrollment p {
  margin-top: 0;
}

.security-method-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.security-method-row form {
  margin: 0;
}

.auth-method-button:hover,
.auth-method-button:focus-visible {
  border-color: rgba(35, 151, 142, 0.42);
  background: var(--teal-soft);
  color: #147c75;
  outline: 0;
}

.auth-method-button .button-icon {
  width: 19px;
  height: 19px;
}

.auth-shell--simple .auth-help-links {
  justify-content: center;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  text-align: center;
}

.case-progress-board {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  margin-bottom: 24px;
  padding: 24px;
  box-shadow: 0 18px 44px rgba(23, 43, 41, 0.08);
}

.case-progress-copy p {
  color: var(--muted);
  line-height: 1.5;
}

.case-status-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

.case-status-rail li {
  position: relative;
  display: grid;
  gap: 9px;
  justify-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.case-status-rail li::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--line);
}

.case-status-rail li:first-child::before {
  left: 50%;
  width: 50%;
}

.case-status-rail li:last-child::before {
  width: 50%;
}

.case-status-rail span {
  position: relative;
  z-index: 1;
  width: 26px;
  height: 26px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.case-status-rail .active span {
  border-color: var(--teal);
  background: var(--teal);
  box-shadow: 0 0 0 6px var(--teal-soft);
}

.case-status-rail .active strong {
  color: var(--teal);
}

.case-action-dock {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.case-action-dock a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 58px;
  border: 1px solid rgba(43, 156, 147, 0.28);
  border-radius: 14px;
  background: #fff;
  color: #147c75;
  font-weight: 900;
  text-decoration: none;
}

.case-timeline-panel {
  grid-row: span 2;
}

.people-avatar-list li {
  display: grid;
  grid-template-columns: 42px 1fr;
  justify-content: start;
}

.people-avatar-list li > span:not(.person-avatar) {
  grid-column: 2;
}

.person-avatar {
  grid-row: span 2;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 14px;
  font-weight: 900;
}

@keyframes gentlePan {
  from {
    transform: scale(1.02) translate3d(-6px, 0, 0);
  }

  to {
    transform: scale(1.06) translate3d(8px, -4px, 0);
  }
}

.will-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 0.7fr);
  gap: 54px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: 86px 44px 120px;
}

.will-copy {
  min-width: 0;
  max-width: 760px;
}

.will-copy h1 {
  margin: 0;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 0.94;
  overflow-wrap: break-word;
}

.will-copy p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.will-panel,
.will-result {
  min-width: 0;
}

.draft-text {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  background: var(--soft);
  color: #26312d;
  font: 14px/1.65 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
}

.checklist {
  display: grid;
  gap: 10px;
  margin: 18px 0 28px;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.5;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .service-chapter-nav { padding-inline: 18px; }

  .site-header,
  .site-header-inner {
    min-height: 64px;
  }

  .site-header-inner {
    grid-template-columns: 54px 1fr 54px;
    padding: 8px 18px;
    gap: 0;
  }

  .menu-button {
    display: inline-flex;
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    position: relative;
    z-index: 31;
    border-radius: 14px;
    border-color: var(--ink);
    background: transparent;
    color: var(--ink);
    box-shadow: none;
  }

  .menu-button:hover,
  .menu-button:focus-visible {
    border-color: var(--ink);
    background: rgba(23, 43, 41, 0.06);
    color: var(--ink);
    outline: 2px solid rgba(23, 43, 41, 0.2);
    outline-offset: 2px;
  }

  .site-header.mobile-nav-open .menu-button {
    z-index: 60;
  }

  .brand {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
  }

  .brand img {
    width: 118px;
    height: 38px;
    object-position: center;
  }

  .header-auth,
  .profile-shell {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .header-auth {
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    min-height: 46px;
    padding: 0;
    border-radius: 14px;
  }

  .header-auth {
    color: var(--ink);
    border-color: var(--ink);
    background: transparent;
    box-shadow: none;
  }

  .header-auth:hover,
  .header-auth:focus-visible {
    color: var(--ink);
    border-color: var(--ink);
    background: rgba(23, 43, 41, 0.06);
    outline: 2px solid rgba(23, 43, 41, 0.2);
    outline-offset: 2px;
  }

  .header-auth span {
    display: none;
  }

  .profile-button {
    width: 46px;
    height: 46px;
  }

  .profile-avatar {
    width: 32px;
    height: 32px;
  }

  .account-menu {
    right: 0;
    min-width: 210px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    z-index: 55;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: min(82vw, 340px);
    height: 100dvh;
    gap: 0;
    border-left: 1px solid var(--line);
    border-radius: 0;
    background: #fff;
    padding: 18px 24px calc(28px + env(safe-area-inset-bottom));
    overflow-y: auto;
    box-shadow: -18px 0 44px rgba(23, 43, 41, 0.16);
    opacity: 0;
    pointer-events: none;
    transform: translateX(100%);
    transition: opacity 220ms ease, transform 280ms cubic-bezier(.2, .8, .2, 1), visibility 280ms;
    visibility: hidden;
  }

  .mobile-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
    visibility: visible;
  }

  .mobile-nav a,
  .mobile-nav summary {
    color: var(--ink);
  }

  .mobile-nav-group {
    border-top: 1px solid var(--line);
    padding: 12px 0;
  }

  .mobile-nav-group:first-of-type {
    border-top: 0;
    padding-top: 0;
  }

  .mobile-nav-group:last-of-type {
    border-bottom: 1px solid var(--line);
  }

  .mobile-nav summary {
    cursor: pointer;
    list-style: none;
    font-family: var(--serif);
    font-size: 23px;
    font-weight: 800;
  }

  .mobile-nav summary::-webkit-details-marker {
    display: none;
  }

  .mobile-nav summary::after {
    content: "+";
    float: right;
    font-family: var(--sans);
    font-size: 20px;
    font-weight: 850;
  }

  .mobile-nav details[open] summary::after {
    content: "-";
  }

  .mobile-nav-group a {
    display: block;
    padding: 12px 0 0 12px;
    color: var(--muted);
    font-size: 15px;
    font-weight: 780;
  }

  .mobile-nav-actions {
    display: grid;
    gap: 10px;
    margin-top: 18px;
  }

  .mobile-nav .mobile-nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 999px;
    background: var(--teal);
    color: #fff;
    font-family: var(--sans);
    font-size: 15px;
  }

  .mobile-nav .mobile-nav-cta-secondary {
    border: 1.5px solid rgba(35, 151, 142, 0.34);
    background: #fff;
    color: var(--teal);
  }

  .menu-scrim {
    position: fixed;
    inset: 0;
    z-index: 45;
    display: block;
    border: 0;
    background: rgba(16, 16, 16, 0.22);
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease;
  }

  .menu-scrim.visible {
    opacity: 1;
    pointer-events: auto;
  }

  .hero,
  .trust-strip,
  .timeline-care-section,
  .asean-section,
  .demo-section,
  .interactive-demo-shell,
  .demo-panel,
  .demo-flow-panel,
  .product-visual-row,
  .intake-flow,
  .memorial-section,
  .partner-band,
  .answers,
  .auth-shell,
  .account-shell,
  .about-band,
  .account-grid,
  .dashboard-grid,
  .service-page-hero,
  .service-story-section,
  .service-benefit-section,
  .service-faq-section,
  .service-grid,
  .service-detail,
  .intake-shell,
  .will-shell,
  .case-list,
  .case-progress-board,
  .case-summary,
  .case-dashboard-grid,
  .estate-grid,
  .referral-grid {
    grid-template-columns: 1fr;
  }

  .timeline-care-copy,
  .auth-copy {
    position: static;
  }

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

  .hero {
    padding: 46px 22px 34px;
  }

  .pathway-grid,
  .steps,
  .feature-row,
  .service-step-strip,
  .service-benefit-grid,
  .case-action-dock {
    grid-template-columns: 1fr;
  }

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

  .service-page-hero {
    grid-template-areas:
      "copy"
      "media"
      "form";
  }

  .service-start-panel {
    position: static;
  }

  .intake-wizard-hero__copy {
    padding-top: 58px;
  }

  .section,
  .trust-strip,
  .timeline-care-section,
  .asean-section,
  .demo-section,
  .interactive-demo-shell,
  .product-shell,
  .memorial-section,
  .partner-band,
  .answers,
  .auth-shell,
  .account-shell,
  .site-footer,
  .about-shell,
  .service-page-shell,
  .service-shell,
  .intake-shell,
  .will-shell,
  .guide-shell,
  .case-shell {
    width: calc(100% - 28px);
    max-width: none;
    margin-left: 14px;
    margin-right: 14px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .site-footer {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .product-shell,
  .memorial-section,
  .partner-band,
  .answers {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 28px;
    padding-right: 28px;
  }

  .interactive-demo-shell {
    gap: 28px;
  }

  .demo-intro {
    position: static;
  }

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

  .demo-scenario-grid,
  .demo-detail-grid,
  .demo-contact-grid,
  .demo-live-preview {
    grid-template-columns: 1fr;
  }

  .case-shell .case-summary,
  .account-shell .account-grid {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .trust-strip {
    padding-top: 16px;
  }

  .feature-card {
    min-height: 0;
  }

  .feature-illustration {
    height: 190px;
  }

  .asean-copy {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .asean-copy a {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }

  .asean-copy p {
    max-width: 720px;
  }

  .country-grid {
    grid-template-columns: none;
  }

  .guide-grid,
  .guide-layout,
  .quote-layout {
    grid-template-columns: 1fr;
  }

  .about-principles {
    grid-template-columns: 1fr;
  }

  .home-deep-link {
    width: calc(100% - 28px);
    max-width: none;
    margin-left: 14px;
    margin-right: 14px;
  }

  main > .content-page-shell {
    width: calc(100% - 28px);
    max-width: none;
    margin-left: 14px;
    margin-right: 14px;
  }

  .content-page-shell {
    gap: 58px;
    padding-top: 52px;
    padding-bottom: 84px;
  }

  .content-page-hero--split,
  .sharing-model,
  .faq-page-section,
  .home-deep-link {
    grid-template-columns: 1fr;
  }

  .content-page-hero__art {
    max-width: 620px;
  }

  .home-deep-link {
    gap: 20px;
  }

  .home-deep-link .button {
    justify-self: start;
  }

  .security-principles,
  .about-next-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sharing-model,
  .faq-page-section {
    gap: 30px;
  }
}

@media (max-width: 640px) {
  .partner-types {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .partner-band {
    gap: 26px;
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .intake-result-panel {
    gap: 22px;
  }

  .intake-result-summary {
    grid-template-columns: 1fr;
  }

  .intake-result-summary > div {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 12px;
    padding: 13px 15px;
  }

  .intake-result-summary > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .intake-result-summary dd {
    text-align: right;
  }

  .intake-result-actions {
    grid-template-columns: 1fr;
  }

  .intake-result-actions > :only-child {
    grid-column: auto;
  }

  .content-page-shell {
    gap: 46px;
    padding-top: 38px;
    padding-bottom: 68px;
  }

  .content-page-hero h1 {
    font-size: clamp(40px, 12vw, 56px);
  }

  .journey-summary,
  .security-principles,
  .about-next-links,
  .organisation-audience-grid {
    grid-template-columns: 1fr;
  }

  .sharing-model,
  .organisation-workflow,
  .home-deep-link {
    padding: 26px 20px;
  }

  .content-page-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .content-page-cta .button {
    width: 100%;
  }

  .content-page-section .steps {
    margin-right: 0;
    margin-left: 0;
    padding-right: 0;
    padding-left: 0;
  }

  .brand img {
    width: 104px;
  }

  .site-header-inner {
    grid-template-columns: 50px 1fr 50px;
  }

  h1 {
    font-size: clamp(44px, 14vw, 62px);
  }

  .intake-wizard-page {
    padding-bottom: 108px;
  }

  .intake-wizard-hero {
    min-height: 270px;
  }

  .intake-wizard-hero__copy {
    width: calc(100% - 32px);
    padding: 30px 0 70px;
  }

  .intake-wizard-hero__copy h1 {
    font-size: clamp(42px, 12vw, 52px);
  }

  .intake-wizard-hero__lead {
    font-size: clamp(20px, 6vw, 26px);
  }

  .intake-wizard-hero__support {
    font-size: 15px;
  }

  .intake-wizard-progress {
    grid-auto-columns: minmax(88px, 1fr);
    grid-auto-flow: column;
    grid-template-columns: none;
    margin-top: 22px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .intake-wizard-progress li {
    font-size: 12px;
    scroll-snap-align: start;
  }

  .intake-wizard-progress::-webkit-scrollbar {
    display: none;
  }

  .intake-wizard-panel {
    width: calc(100% - 24px);
    max-width: calc(100vw - 24px);
    min-height: 0;
    margin-top: -64px;
    padding: 22px 16px;
  }

  .intake-wizard-panel > .intake-wizard-progress {
    margin-bottom: 16px;
  }

  .intake-wizard-progress li {
    padding-bottom: 7px;
  }

  .intake-wizard-progress__number {
    width: 24px;
    height: 24px;
  }

  .intake-wizard-form,
  .intake-wizard-step {
    gap: 14px;
  }

  .intake-choice-option__body {
    min-height: 76px;
    padding: 13px 11px;
  }

  .intake-wizard-actions {
    flex-wrap: wrap;
    align-items: stretch;
  }

  .intake-wizard-actions .button {
    min-width: 0;
    width: auto;
  }

  .intake-wizard-assurances {
    display: grid;
    width: calc(100% - 36px);
    gap: 12px;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-choice-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(150px, 42vw);
    grid-template-columns: none;
    gap: 12px;
    margin-top: 18px;
    margin-left: -22px;
    margin-right: -22px;
    padding: 2px 22px 12px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: 22px;
    scroll-snap-type: inline mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .hero-choice-card {
    min-height: 0;
    padding: 0;
    font-size: 14px;
    scroll-snap-align: start;
  }

  .hero-choice-art {
    width: 100%;
    aspect-ratio: 436 / 640;
    height: auto;
    margin: 0;
  }

  .hero-choice-card span {
    padding: 12px 12px 14px;
  }

  .guide-shell .hero-actions {
    width: 100%;
  }

  .auth-option-grid {
    grid-template-columns: 1fr;
  }

  .auth-help-links {
    display: grid;
    gap: 10px;
  }

  .product-shell,
  .memorial-section,
  .partner-band,
  .answers {
    padding-left: 18px;
    padding-right: 18px;
  }

  .button,
  .sticky-cta a {
    flex: 1;
    min-width: 0;
    padding-left: 16px;
    padding-right: 16px;
    font-size: 14px;
  }

  .product-illustration {
    border-radius: 10px;
  }

  .feature-illustration {
    height: 150px;
  }

  .country-card {
    min-height: 270px;
  }

  .country-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(248px, 78vw);
    grid-template-columns: none;
    gap: 14px;
    margin-left: -18px;
    margin-right: -18px;
    padding: 2px 18px 12px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: 18px;
    scroll-snap-type: inline mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .country-card {
    scroll-snap-align: start;
  }

  .intake-phone-fields {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .steps {
    grid-auto-flow: column;
    grid-auto-columns: minmax(248px, 78vw);
    grid-template-columns: none;
    gap: 14px;
    margin-right: -18px;
    margin-left: -18px;
    padding: 2px 18px 12px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: 18px;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .steps::-webkit-scrollbar {
    display: none;
  }

  .step {
    scroll-snap-align: start;
  }

  .mini-progress,
  .case-status-rail {
    grid-template-columns: 1fr;
  }

  .service-page-shell {
    padding-top: 42px;
  }

  .service-hero-copy h1 {
    font-size: clamp(42px, 13vw, 60px);
  }

  .service-hero-copy p,
  .service-story-section p,
  .service-section-copy p {
    font-size: 16px;
  }

  .service-hero-media,
  .service-hero-media img {
    min-height: 260px;
  }

  .service-story-section,
  .service-benefit-section,
  .service-faq-section {
    margin-top: 48px;
    padding-top: 38px;
  }

  .case-progress-board {
    padding: 20px;
  }

  .case-status-rail {
    gap: 12px;
  }

  .case-status-rail li {
    grid-template-columns: 28px 1fr;
    align-items: center;
    justify-items: start;
  }

  .case-status-rail li::before {
    display: none;
  }

  .demo-step {
    padding: 24px;
  }

  .demo-controls {
    flex-direction: column;
    padding: 18px 24px;
  }

  .demo-controls .button {
    width: 100%;
  }

  .product-header,
  .account-header,
  .case-titlebar,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer {
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }

  .without-floating-actions .site-footer {
    padding-bottom: calc(32px + env(safe-area-inset-bottom));
  }

  .footer-main,
  .footer-bottom {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    justify-items: center;
    text-align: center;
  }

  .footer-brand img {
    object-position: center;
  }

  .footer-brand p {
    margin-inline: auto;
  }

  .footer-icon-row {
    justify-content: center;
  }

  .footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
    row-gap: 34px;
  }

  .footer-columns div:nth-child(odd) {
    text-align: right;
  }

  .footer-columns div:nth-child(even) {
    text-align: left;
  }

  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
  }

  .footer-selectors {
    flex: 0 0 auto;
    justify-content: flex-end;
  }

  .footer-selectors details > div {
    right: 0;
    left: auto;
    grid-template-columns: 1fr;
    gap: 18px;
    min-width: min(290px, calc(100vw - 28px));
    padding: 20px;
  }

  .case-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .case-task-list li,
  .document-list li,
  .people-list li,
  .estate-list li {
    align-items: flex-start;
    flex-direction: column;
  }

  .utm-row {
    grid-template-columns: 1fr;
  }

  .floating-actions {
    right: 14px;
    bottom: 14px;
    left: 14px;
    gap: 8px;
  }

  .sticky-cta {
    flex: 1 1 auto;
    gap: 8px;
    transform: translateY(18px);
  }

  .sticky-cta.visible {
    transform: translateY(0);
  }

  .sticky-cta a {
    min-height: 54px;
    min-width: 0;
    flex: 1;
    border-width: 4px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 13px;
    box-shadow: 0 12px 26px rgba(23, 43, 41, 0.16);
  }

  .whatsapp-fab {
    width: 54px;
    height: 54px;
    border-width: 4px;
  }

  .floating-actions--service {
    right: 0;
    left: 0;
  }

  .sticky-cta--service {
    flex: 0 1 auto;
    width: auto;
    max-width: calc(100vw - 160px);
  }

  .sticky-cta--service .service-sticky-pill,
  .sticky-cta--service .service-sticky-pill:first-child,
  .sticky-cta--service .service-sticky-pill:last-child {
    width: max-content;
    max-width: 100%;
    min-width: 0;
  }

  .floating-actions--service .whatsapp-fab { right: 14px; }

  .fab-icon {
    width: 23px;
    height: 23px;
  }
}

@media (max-width: 480px) {
  .intake-choice-grid,
  .intake-phone-fields {
    grid-template-columns: 1fr;
  }

  .intake-wizard-progress {
    gap: 4px;
  }

  .intake-wizard-progress li {
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .intake-wizard-actions .button {
    flex: 1 1 0;
  }
}

.will-result-page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 72px 44px 150px;
}

.will-result-hero {
  max-width: 780px;
}

.will-result-hero h1 {
  max-width: 760px;
  font-size: clamp(42px, 5.2vw, 70px);
  line-height: 0.98;
}

.will-result-hero p:not(.eyebrow),
.will-next-steps p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.will-builder {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 150px;
  background: #fff;
}

.will-builder__hero {
  display: grid;
  min-height: 410px;
  place-items: center;
  padding: 52px 24px 122px;
  background-color: #fbf7ed;
  background-image: var(--will-builder-hero-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.will-builder__intro {
  width: min(790px, 100%);
  margin: 0 auto;
  text-align: center;
}

.will-builder__intro .eyebrow {
  margin-bottom: 14px;
}

.will-builder__intro h1 {
  margin: 0;
  font-size: clamp(46px, 4.7vw, 66px);
  line-height: 0.98;
}

.will-builder__intro p:not(.eyebrow) {
  max-width: 640px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.will-builder__workspace {
  width: min(1280px, calc(100% - 48px));
  margin: -84px auto 0;
  overflow: clip;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 22px 56px rgba(23, 43, 41, 0.1);
  scroll-margin-top: 78px;
}

.will-builder__progress {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 28px 54px 24px;
  border-bottom: 1px solid var(--line);
}

.will-builder__progress::before {
  position: absolute;
  top: 43px;
  right: calc(10% + 54px);
  left: calc(10% + 54px);
  height: 1px;
  background: #cbc8bd;
  content: "";
}

.will-builder__progress button {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 9px;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0 8px;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

.will-builder__progress button span {
  display: inline-grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid #cbc8bd;
  border-radius: 50%;
  background: #fff;
  color: #52605b;
  font-size: 13px;
  font-weight: 850;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.will-builder__progress button strong {
  min-height: 18px;
  color: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.will-builder__progress button.active {
  color: #147c75;
}

.will-builder__progress button.active span,
.will-builder__progress button.is-complete span {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.will-builder__grid,
.will-result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 0;
  align-items: start;
}

.result-panel,
.will-next-steps {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(23, 43, 41, 0.08);
}

.will-builder__form {
  min-height: 610px;
  padding: 38px 48px 42px;
}

.will-step {
  display: grid;
  gap: 20px;
}

.will-step:not([hidden]) {
  animation: will-step-enter 240ms ease both;
}

@keyframes will-step-enter {
  from {
    opacity: 0;
    transform: translateX(10px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.will-step__kicker {
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.will-step h2,
.result-panel h2,
.will-next-steps h2 {
  margin: 0;
  font-size: clamp(30px, 3.5vw, 46px);
  line-height: 1.04;
}

.will-step__lead {
  max-width: none;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.field-grid {
  display: grid;
  gap: 16px;
}

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

.will-readiness-checklist { display: grid; gap: 10px; border: 0; padding: 0; margin: 0; min-width: 0; }
.will-readiness-checklist legend { color: #2d3532; font-size: 14px; font-weight: 850; padding: 0; margin-bottom: var(--form-label-gap); }
.will-readiness-checklist > p { color: var(--muted); margin: 0; line-height: 1.5; }
.will-readiness-checklist .will-confirmation { min-height: 0; margin: 0 !important; border: 0; border-radius: 0; padding: 4px 0; background: transparent; align-items: flex-start; line-height: 1.5; cursor: pointer; }
.will-readiness-checklist .will-confirmation input[type="checkbox"] { margin: 2px 0 0; }

.field-grid label,
.will-step label,
.beneficiary-row label {
  display: block;
  margin-bottom: var(--form-label-gap);
  color: #2d3532;
  font-size: 14px;
  font-weight: 850;
}

.will-builder input[type="email"],
.will-builder input[type="number"],
.will-builder input[type="tel"],
.will-builder input[type="text"] {
  width: 100%;
  min-height: 54px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0 15px;
  color: var(--ink);
  font: inherit;
}

.will-builder input:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(43, 156, 147, 0.15);
}

.will-guide-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.will-guide-strip div {
  display: grid;
  align-content: center;
  min-height: 84px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: var(--soft);
  color: #2d3532;
  font-size: 13px;
  font-weight: 850;
}

.will-guide-strip .button-icon {
  width: 18px;
  height: 18px;
  margin-bottom: 8px;
  color: var(--teal);
}

.will-confirmation {
  display: flex !important;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  margin: 26px 0 0 !important;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--soft);
}

.will-confirmation input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.person-block,
.will-help-note {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
  padding: 18px;
}

.person-block {
  display: grid;
  gap: 12px;
}

.beneficiary-list {
  display: grid;
  gap: 12px;
}

.beneficiary-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.25fr) minmax(150px, 1fr) minmax(90px, 0.45fr) 44px;
  gap: 12px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: var(--soft);
}

.beneficiary-row .icon-button {
  align-self: end;
  color: #8e3d32;
}

.beneficiary-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.beneficiary-tools > .button { align-self: flex-end; width: auto; }

.total-meter {
  flex: 1;
  min-width: 220px;
}

.total-meter strong {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
}

.total-meter div {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #ece8dc;
}

.total-meter span span,
.total-meter div span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--orange);
  transition: width 180ms ease, background 180ms ease;
}

.total-meter div span.complete {
  background: var(--teal);
}

.total-meter div span.over {
  background: #bf3f34;
}

.review-flags {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0;
  border: 0;
  padding: 0;
}

.review-flags legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.review-flags label {
  display: grid;
  align-items: flex-start;
  gap: 12px;
  min-height: 64px;
  margin: 0 !important;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
  padding: 14px;
}

.review-flags input {
  flex: 0 0 auto;
  margin-top: 3px;
}

.will-help-note {
  color: #2d3532;
  line-height: 1.5;
}

.will-help-note p,
.visual-note p,
.will-save-panel p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
}

.will-final-guide img,
.will-next-steps img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.will-builder__visual {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 0;
  max-height: calc(100vh - 124px);
  overflow-y: auto;
  border-left: 1px solid var(--line);
  padding: 38px 34px 42px;
  background: #fff;
}

.will-builder__visual-title {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 750;
}

.visual-note,
.will-save-panel {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 24px 0;
}

.visual-note:first-of-type {
  border-top: 0;
}

.visual-note .button-icon,
.will-builder__text-action .button-icon {
  width: 20px;
  height: 20px;
  color: var(--teal);
}

.visual-note strong,
.will-save-panel strong {
  color: #2d3532;
  font-size: 15px;
}

.will-save-panel {
  grid-template-columns: 1fr;
  gap: 12px;
}

.will-save-panel > .button {
  box-sizing: border-box;
  height: 40px;
  min-height: 40px;
  padding: 8px 14px;
  font-size: 14px;
  line-height: 1.4;
  border-radius: 8px;
}

body .will-builder .will-save-panel > .button svg.button-icon { width: 18px; height: 18px; }

.will-builder__text-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border: 0;
  background: transparent;
  padding: 0;
  color: #147c75;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
}

.will-builder__text-action:hover {
  text-decoration: underline;
}

.will-save-panel small {
  min-height: 18px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

.will-builder__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
}

.will-builder__actions > .button {
  width: auto;
}

.will-builder__actions > .primary {
  margin-inline-start: auto;
}

.button.compact {
  min-height: 50px;
  padding: 0 20px;
  border-radius: 12px;
}

.form-alert {
  margin-bottom: 22px;
  border: 1px solid rgba(191, 63, 52, 0.3);
  border-radius: 14px;
  background: #fff4ef;
  padding: 16px;
}

.form-alert p {
  margin-top: 6px;
  color: #7a332a;
}

.will-result-hero {
  margin-bottom: 32px;
}

.will-status-panel,
.will-draft-panel,
.signing-panel {
  padding: 26px;
}

.will-status-panel dl {
  display: grid;
  gap: 12px;
  margin: 20px 0 28px;
}

.will-status-panel dl div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.will-status-panel dt {
  color: var(--muted);
  font-weight: 850;
}

.will-status-panel dd {
  margin: 0;
  text-align: right;
  font-weight: 850;
}

.will-status-panel h3 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 26px;
}

.compact-list,
.checklist {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.compact-list li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: var(--soft);
}

.compact-list strong {
  color: var(--muted);
  font-size: 13px;
}

.compact-list span {
  text-align: right;
  font-weight: 850;
}

.draft-text {
  max-height: 620px;
  overflow: auto;
  margin: 22px 0 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffdf8;
  padding: 20px;
  color: #2d3532;
  font: 15px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
}

.will-next-steps {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(360px, 1.2fr);
  gap: 28px;
  align-items: center;
  margin-top: 24px;
  padding: 26px;
}

.signing-panel {
  margin-top: 24px;
}

.signing-panel .checklist,
.will-draft-panel .checklist {
  margin-top: 18px;
  list-style: decimal;
  padding-left: 22px;
  color: #2d3532;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .will-result-page {
    padding: 48px 22px 150px;
  }

  .will-builder__hero {
    min-height: 390px;
    padding: 48px 22px 116px;
  }

  .will-builder__workspace {
    width: min(760px, calc(100% - 28px));
    margin-top: -76px;
  }

  .will-builder__progress {
    padding-right: 22px;
    padding-left: 22px;
  }

  .will-builder__progress::before {
    right: calc(10% + 22px);
    left: calc(10% + 22px);
  }

  .will-builder__grid,
  .will-result-grid,
  .will-next-steps {
    grid-template-columns: 1fr;
  }

  .will-builder__visual {
    position: static;
    order: 0;
    max-height: none;
    overflow: visible;
    border-top: 1px solid var(--line);
    border-left: 0;
    padding: 30px 38px 36px;
  }

  .review-flags,
  .field-grid.two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .will-result-page {
    padding-left: 10px;
    padding-right: 10px;
  }

  .will-builder {
    padding-bottom: 120px;
  }

  .will-builder__hero {
    min-height: 356px;
    padding: 44px 18px 104px;
    background-image: var(--will-builder-hero-mobile-image);
    background-position: center;
    background-size: cover;
  }

  .will-builder__intro {
    width: min(100%, 520px);
  }

  .will-builder__intro .eyebrow {
    margin-bottom: 10px;
    font-size: 11px;
  }

  .will-builder__intro h1 {
    font-size: clamp(38px, 12vw, 54px);
    line-height: 0.98;
  }

  .will-builder__intro p:not(.eyebrow) {
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.45;
  }

  .will-builder__workspace {
    width: calc(100% - 20px);
    margin-top: -64px;
    border-radius: 16px;
  }

  .will-builder__progress {
    padding: 20px 8px 18px;
  }

  .will-builder__progress::before {
    top: 35px;
    right: calc(10% + 8px);
    left: calc(10% + 8px);
  }

  .will-builder__progress button {
    gap: 7px;
    padding: 0 2px;
  }

  .will-builder__progress button span {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  .will-builder__progress button strong {
    font-size: 10px;
  }

  .will-builder__form,
  .result-panel,
  .will-next-steps {
    padding: 24px 18px 28px;
  }

  .will-step {
    gap: 17px;
  }

  .will-step h2 {
    font-size: clamp(31px, 9.5vw, 42px);
  }

  .will-step__lead {
    font-size: 15px;
  }

  .will-builder__visual {
    padding: 26px 18px 30px;
  }

  .beneficiary-row {
    grid-template-columns: 1fr 44px;
  }

  .beneficiary-row > div {
    grid-column: 1 / -1;
  }

  .beneficiary-row .icon-button {
    grid-column: 2;
  }

  .beneficiary-tools,
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .total-meter {
    min-width: 0;
  }

  .button,
  .button.compact {
    width: 100%;
  }
}

@media (max-width: 980px) {
  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    justify-items: center;
    text-align: center;
  }

  .footer-brand img {
    object-position: center;
  }

  .footer-brand p {
    margin-inline: auto;
  }

  .footer-icon-row {
    justify-content: center;
  }

  .footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
    row-gap: 34px;
  }

  .footer-columns div:nth-child(odd) {
    text-align: right;
  }

  .footer-columns div:nth-child(even) {
    text-align: left;
  }

  .footer-associations {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .footer-associations__row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
  }

  .association-mark {
    width: 100%;
    min-height: 38px;
    padding: 0;
  }

  .association-mark img {
    width: 100%;
    height: 28px;
  }

  .association-mark--stacked {
    gap: 2px;
  }

  .association-mark--stacked img {
    height: 19px;
  }

  .association-mark--stacked span {
    font-size: 8px;
    line-height: 1;
  }

  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
  }
}

/* Unified illustration treatment across service pages and guided forms. */
.intake-wizard-hero {
  display: grid;
  min-height: 390px;
  place-items: stretch;
  background: #fdf9ef;
}

.intake-wizard-hero::before,
.intake-wizard-hero::after {
  display: none;
}

.intake-wizard-hero__media {
  grid-area: 1 / 1;
  width: 100%;
  height: 390px;
  margin: 0;
}

.intake-wizard-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.intake-wizard-hero__copy {
  grid-area: 1 / 1;
  align-self: center;
  justify-self: center;
  width: min(1180px, calc(100% - 88px));
  padding: 42px 0 112px;
  text-align: left;
}

.intake-wizard-hero__copy h1,
.intake-wizard-hero__lead,
.intake-wizard-hero__support {
  max-width: 520px;
  margin-right: 0;
  margin-left: 0;
}

.will-builder__hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr;
  min-height: 410px;
  padding: 0;
  overflow: hidden;
  background: #fdf9ef;
}

.will-builder__hero-media {
  grid-area: 1 / 1;
  width: 100%;
  height: 410px;
  margin: 0;
}

.will-builder__hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.will-builder__intro {
  z-index: 1;
  grid-area: 1 / 1;
  align-self: center;
  justify-self: center;
  width: min(1180px, calc(100% - 88px));
  padding: 42px 0 112px;
  text-align: left;
}

.will-builder__intro p:not(.eyebrow) {
  margin-right: 0;
  margin-left: 0;
}

@media (max-width: 700px) {
  body .service-hero-stage {
    align-items: stretch;
  }

  body .service-hero-media {
    order: -1;
    width: calc(100% + 36px);
    height: auto;
    aspect-ratio: 3 / 2;
    margin: -14px -18px 20px;
  }

  body .service-hero-media img {
    object-fit: cover;
  }

  .intake-wizard-hero {
    display: flex;
    min-height: 0;
    flex-direction: column;
  }

  .intake-wizard-hero__media {
    order: 0;
    height: auto;
    aspect-ratio: 3 / 2;
  }

  .intake-wizard-hero__copy {
    order: 1;
    width: 100%;
    padding: 26px 18px 104px;
    text-align: left;
  }

  .intake-wizard-hero__copy h1,
  .intake-wizard-hero__lead,
  .intake-wizard-hero__support {
    margin-right: 0;
    margin-left: 0;
  }

  .will-builder__hero {
    display: flex;
    min-height: 0;
    flex-direction: column;
  }

  .will-builder__hero-media {
    order: 0;
    height: auto;
    aspect-ratio: 3 / 2;
  }

  .will-builder__intro {
    order: 1;
    width: 100%;
    padding: 26px 18px 104px;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Country-aware planning: concise first, details when needed. */
.planning-hub { max-width: 1180px; margin-inline: auto; }
.planning-hub > h1 { max-width: 750px; }
.planning-location { display: flex; gap: 20px; align-items: end; flex-wrap: wrap; margin: 30px 0; }
.planning-location > div { display: grid; gap: 8px; flex: 1; min-width: 220px; }
.planning-location select { padding: 13px; border: 1px solid #d4d9d0; border-radius: 10px; background: white; width: 100%; }
.planning-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.planning-card { display: flex; flex-direction: column; align-items: start; gap: 14px; }
.planning-card h2, .planning-card p { margin: 0; }
.planning-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: #ecf1e8; color: #354b37; }
.planning-icon svg { width: 28px; height: 28px; }
.planning-card details { width: 100%; line-height: 1.7; }
.planning-card summary { cursor: pointer; font-weight: 600; padding-block: 8px; }
.planning-card li { margin-block: 10px; }
.planning-card .button { margin-top: auto; }
.planning-human { margin-block: 24px; }
@media (max-width: 650px) { .planning-card-grid { grid-template-columns: 1fr; } .planning-location { display: grid; } }

/* Provider application and operations forms use the existing referral form system. */
.referral-form textarea { width: 100%; box-sizing: border-box; min-height: 7rem; padding: .8rem; border: 1px solid var(--line, #d8dcd7); border-radius: 12px; font: inherit; }
.estate-list form { max-width: 100%; }

.site-flash { max-width: 1100px; margin: 1rem auto; padding: 1rem 1.5rem; border-radius: 12px; }

.whatsapp-entry { max-width: 1180px; margin: 1rem auto; padding: 0 1.25rem; }
.whatsapp-entry p { font-size: .85rem; color: var(--muted); margin: .4rem 0; }
.whatsapp-page details { padding: 1.2rem; margin: 1rem 0; border: 1px solid #d9e4df; border-radius: 16px; background: white; }
.whatsapp-page summary { cursor: pointer; font-weight: 600; }
.whatsapp-page .journey-summary { margin: 2rem 0; }

.service-disclosure { max-width: 1120px; margin: 1.25rem auto; padding: 1rem 1.25rem; border-left: 3px solid #729d92; background: #f4f8f6; color: #344a43; font-size: .9rem; line-height: 1.6; }
.service-disclosure p { margin: 0 0 .5rem; }
.service-disclosure summary { cursor: pointer; font-weight: 600; }

/* A shared, gently animated conversation for the three multi-step forms. */
.form-conversation {
  padding: 22px 30px 0;
  background: #faf8f2;
  border-radius: 20px 20px 0 0;
}
.form-conversation__voice { display: flex; align-items: center; gap: 14px; min-width: 0; }
.form-conversation__mark { flex: 0 0 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #396764; }
.form-conversation__mark .button-icon { width: 22px; height: 22px; }
.form-conversation__label { color: #396764; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.form-conversation__voice p { margin: 4px 0 0; color: #354d48; font-size: 14px; line-height: 1.45; }
.form-conversation__count { margin-left: auto; white-space: nowrap; font-size: 12px; font-variant-numeric: tabular-nums; color: #396764; font-weight: 800; }
.form-conversation__meter { height: 3px; margin-top: 20px; background: #e3e7de; overflow: hidden; }
.form-conversation__meter > span { display: block; height: 100%; width: 0; background: #396764; transition: width 420ms cubic-bezier(.16,1,.3,1); }
.demo-builder, .intake-wizard-panel, .will-builder__workspace { border-color: #dbe3dc; box-shadow: 0 20px 65px #254e4510; }
.demo-stepper { background: #faf8f2; gap: 8px; padding: 16px 30px; }
.demo-stepper span { min-height: 36px; border-radius: 20px; background: transparent; font-weight: 700; transition: background 220ms ease, color 220ms ease; }
.demo-stepper .active { background: #396764; color: white; }
.demo-stepper .done { color: #396764; background: #e8eee5; }
.demo-step, .will-builder__form { background: linear-gradient(155deg, #fffdf8 0%, #fff 44%); }
.demo-step-heading small, .will-step__kicker { font-size: 11px; letter-spacing: .12em; }
.demo-step h2, .will-step h2, .intake-wizard-step h2 { scroll-margin-top: 100px; }
.demo-step h2:focus, .will-step h2:focus, .intake-wizard-step h2:focus { outline: none; }
.demo-scenario { position: relative; min-height: 158px; border-radius: 18px; box-shadow: 0 3px 0 #eeeae1; padding: 22px; }
.demo-scenario.active { background: #edf5ef; border-color: #396764; box-shadow: 0 3px 0 #a8c7b8; }
.demo-scenario.active::after { content: "Selected"; position: absolute; right: 16px; top: 18px; color: #396764; font-size: 11px; font-weight: 800; }
.demo-scenario strong { font-size: 19px; }
.demo-scenario span { font-size: 14px; }
.demo-scenario .button-icon { color: #396764; width: 28px; height: 28px; }
.demo-detail-grid fieldset { border: 0; padding: 0; margin: 0; }
.demo-detail-grid fieldset label { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 16px; margin-top: 8px; border: 1px solid #dbe3dc; border-radius: 12px; background: #fff; cursor: pointer; transition: background 180ms ease, border-color 180ms ease; }
.demo-detail-grid fieldset label:has(input:checked) { background: #edf5ef; border-color: #396764; }
.demo-detail-grid input[type=radio] { accent-color: #396764; width: 18px; height: 18px; }
.demo-detail-grid legend { margin-bottom: 8px; font-weight: 750; }
.demo-controls { background: #faf8f2; }
.demo-controls .button, .intake-wizard-actions .button, .will-builder__actions .button { min-height: 48px; transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease; }
.demo-controls .button:not(:disabled):active, .intake-wizard-actions .button:not(:disabled):active, .will-builder__actions .button:not(:disabled):active { transform: scale(.97); }
.intake-wizard-overview {
  margin-bottom: 32px;
  border: 1px solid #e3e7de;
  border-radius: 16px;
  background: #faf8f2;
  padding: 24px;
}
.intake-wizard-overview .form-conversation {
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
}
.intake-wizard-overview .form-conversation__meter { border-radius: 3px; }
.intake-wizard-overview .intake-wizard-progress {
  grid-auto-flow: row;
  grid-auto-columns: auto;
  grid-template-columns: repeat(var(--intake-step-count, 3), minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  overflow: visible;
}
.intake-wizard-overview .intake-wizard-progress li { border-bottom: 0; padding: 0; gap: 8px; }
.intake-wizard-panel .intake-wizard-overview .intake-wizard-progress__label {
  display: block;
  position: static;
  width: 100%;
  min-height: 0;
  transform: none;
  white-space: normal;
  overflow-wrap: normal;
  overflow: visible;
  font-size: 12px;
  line-height: 1.4;
}
@media (max-width: 700px) {
  .intake-wizard-overview { padding: 18px 12px; margin-bottom: 28px; border-radius: 12px; }
  .intake-wizard-overview .form-conversation__voice { display: grid; grid-template-columns: 34px minmax(0, 1fr); }
  .intake-wizard-overview .form-conversation__count { grid-column: 2; margin: 0; }
  .intake-wizard-overview .form-conversation__meter { margin-top: 16px; }
  .intake-wizard-overview .intake-wizard-progress { gap: 6px; }
  .intake-wizard-overview .intake-wizard-progress:has(li:nth-child(5)) { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 16px; }
  .intake-wizard-panel .intake-wizard-overview .intake-wizard-progress__label { font-size: 11px; }
}
.intake-choice-option__body { transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.intake-choice-option:has(input:checked) .intake-choice-option__body { box-shadow: 0 3px 0 #a8c7b8; }
.form-action-hint { min-height: 20px; margin: 16px 0 8px; color: #566a64; font-size: 13px; }
.will-step:not([hidden]) { animation: none; }
.will-builder__progress { background: #faf8f2; }
.will-builder__progress button { min-height: 48px; transition: color 180ms ease; }
.will-builder__progress button span { transition: background 200ms ease, color 200ms ease; }
.will-save-panel small { display: block; min-height: 20px; line-height: 1.5; }
:is(.demo-builder, .intake-wizard-page, .will-builder) :is(input, select, textarea) { accent-color: #396764; transition: border-color 180ms ease, box-shadow 180ms ease; }
:is(.demo-builder, .intake-wizard-page, .will-builder) :is(input, select, textarea):focus-visible { outline: 2px solid #396764; outline-offset: 3px; box-shadow: 0 0 0 5px #39676412; }
:is(.demo-builder, .intake-wizard-page, .will-builder) :is(button, a, summary):focus-visible { outline: 3px solid #396764; outline-offset: 4px; }
.intake-choice-option:has(input:focus-visible) .intake-choice-option__body { outline: 3px solid #396764; outline-offset: 4px; }
@media (hover: hover) {
  .demo-scenario:hover { transform: translateY(-3px); }
  .intake-choice-option:hover .intake-choice-option__body { border-color: #396764; background: #f3f7f0; }
}
@media (max-width: 700px) {
  .form-conversation { padding: 18px 20px 0; }
  .form-conversation__voice { gap: 10px; }
  .form-conversation__mark { flex-basis: 34px; height: 34px; }
  .form-conversation__count { font-size: 11px; }
  .form-conversation__voice p { font-size: 13px; }
  .demo-stepper { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; padding: 12px; }
  .demo-stepper span { font-size: 11px; min-height: 32px; }
  .demo-step { padding: 24px 20px; }
  .demo-scenario { min-height: 130px; gap: 8px; padding: 18px; }
  .demo-controls { display: flex; gap: 12px; padding: 20px; }
  .demo-controls .button { flex: 1; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  :is(.demo-builder, .intake-wizard-page, .will-builder) *,
  :is(.demo-builder, .intake-wizard-page, .will-builder) *::before,
  :is(.demo-builder, .intake-wizard-page, .will-builder) *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .demo-scenario:hover { transform: none; }
}
.form-conversation { scroll-margin-top: 84px; }
.demo-stepper { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.demo-step:not([hidden]) .demo-whatsapp-preview .message-list p { animation: conversation-reply 320ms cubic-bezier(.16,1,.3,1) both; }
.demo-step:not([hidden]) .demo-whatsapp-preview .message-list p:nth-child(2) { animation-delay: 150ms; }
.demo-step:not([hidden]) .demo-whatsapp-preview .message-list p:nth-child(3) { animation-delay: 300ms; }
@keyframes conversation-reply { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.auth-panel { background: linear-gradient(155deg, #faf8f2, white 55%); }
.auth-panel > .auth-form, .auth-code-panel, .auth-panel > .flash { animation: conversation-reply 280ms ease-out both; }
.auth-method-switch a { transition: background 180ms ease, color 180ms ease; }
.auth-shell :is(a, button, input, select):focus-visible { outline: 3px solid #396764; outline-offset: 4px; }
.auth-code-panel input[autocomplete="one-time-code"] { font-size: 26px; letter-spacing: .22em; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) {
  .auth-panel *, .demo-step:not([hidden]) .demo-whatsapp-preview .message-list p { animation: none !important; transition: none !important; }
}
.demo-detail-grid > label { align-content: start; }
.demo-detail-grid > label select { height: 52px; }
.demo-intro-art { display: block; width: min(100%, 340px); height: 210px; object-fit: contain; margin: 30px auto 0; mix-blend-mode: multiply; }
.will-completion { margin: 28px 0; background: #f8f7f1; }
.will-completion-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; gap: 16px; list-style: none; }
.will-completion-steps li { display: grid; gap: 10px; border-top: 3px solid #d8dcd7; padding: 18px 8px; }
.will-completion-steps li.done { border-color: #396764; background: #edf4ed; border-radius: 0 0 12px 12px; }
.review-request { border-top: 1px solid #d8dcd7; padding: 22px 0; }
.review-request .pill { display: inline-block; margin-bottom: 12px; }
.quote-terms { padding-top: 20px; }
.quote-terms dd { margin: 0 0 20px; }
@media (max-width: 700px) { .will-completion-steps { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .demo-intro-art { display: none; } }
/* Keep the overlapping paper workspace above the illustrated hero. */
.will-builder__workspace { position: relative; z-index: 1; }
.form-privacy { margin-top: 24px; font-size: 13px; }
.form-privacy .service-disclosure { margin-top: 12px; }
.intake-question-help.form-privacy[open] > .service-disclosure {
  max-width: none;
  margin: 12px 0 0;
}
@media (max-width: 700px) {
  .intake-wizard-panel > .intake-wizard-progress { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(var(--intake-step-count, 3), minmax(0, 1fr)); overflow: visible; padding-top: 12px; }
  .intake-wizard-progress__label { white-space: normal; overflow-wrap: anywhere; font-size: 10px; min-height: 24px; }
}
@media (max-width: 480px) {
  .intake-wizard-panel > .intake-wizard-progress li { position: relative; min-height: 57px; }
  .intake-wizard-panel > .intake-wizard-progress .intake-wizard-progress__label { display: none; }
  .intake-wizard-panel > .intake-wizard-progress .active .intake-wizard-progress__label { display: block; position: absolute; top: 31px; left: 50%; transform: translateX(-50%); width: 92px; font-size: 11px; white-space: nowrap; overflow: visible; }
}

/* The case stays readable and actionable on a phone. */
.case-journey { background: #eef7f5; border: 1px solid #cee4df; border-radius: 24px; padding: clamp(20px, 4vw, 40px); margin: 24px 0; }
.case-journey-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.case-journey-heading h2 { font-size: clamp(26px, 4vw, 40px); margin: 8px 0 24px; max-width: 650px; }
.case-journey-heading img { width: 180px; mix-blend-mode: multiply; }
.case-journey-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 0; list-style: none; }
.case-journey-steps li { position: relative; border-top: 2px solid #bdd9d3; padding-top: 16px; }
.case-journey-steps .is-complete { border-color: #16877b; }
.journey-number { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: white; border: 1px solid #bdd9d3; margin-bottom: 12px; }
.is-complete .journey-number { background: #137d72; color: white; }
.journey-number svg { width: 20px; height: 20px; }
.case-journey-steps strong { font-size: 18px; }
.case-journey-steps p { margin: 5px 0; font-size: 14px; line-height: 1.6; }
.case-storage-note { display: flex; gap: 14px; background: #fff; border-radius: 14px; padding: 18px; margin-top: 24px; }
.case-storage-note > svg { width: 25px; min-width: 25px; }
.case-storage-note p { margin: 6px 0 0; font-size: 14px; line-height: 1.65; }
.case-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.case-choice { display: flex; align-items: center; gap: 12px; padding: 18px; min-height: 72px; border: 1px solid #b4ccc7; border-radius: 16px; cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.case-choice:has(input:checked) { background: #eaf7f3; border-color: #147d72; }
.case-choice:focus-within { outline: 3px solid #83c7bf; outline-offset: 3px; }
.case-choice small { display: block; margin-top: 4px; line-height: 1.5; }
.case-choice svg { width: 24px; min-width: 24px; }
.case-choice input { width: 20px; min-width: 20px; height: 20px; }
.case-add-task summary, .will-privacy-note summary { cursor: pointer; min-height: 44px; padding: 12px 0; }
.case-panel textarea { width: 100%; min-height: 100px; padding: 14px; border: 1px solid #b8cbc7; border-radius: 12px; font: inherit; resize: vertical; }
.case-timeline li { border-left: 2px solid #bcded7; padding-left: 24px; position: relative; }
.case-timeline li::before { content: ''; position: absolute; left: -7px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: #178c80; border: 2px solid white; }
.case-timeline small { display: block; color: #596963; }
.case-timeline p { white-space: pre-wrap; overflow-wrap: anywhere; }
.will-privacy-note { margin: 8px 0; font-size: 14px; }
.will-builder__intro h1 { font-size: clamp(34px, 4vw, 58px); }
.case-panel .button, .case-panel input:not([type=checkbox]):not([type=hidden]), .case-panel select { min-height: 48px; }
.case-panel, .case-panel form, .case-panel li > div { min-width: 0; }
.invitation-share { border: 2px solid #16877b; }
@media (max-width: 640px) {
  .will-builder__hero { position: relative; padding: 24px 18px !important; display: block !important; }
  .will-builder__hero-media { display: none; }
  .will-builder__intro h1 { font-size: 34px; line-height: 1.08; margin: 12px 0; }
  .will-builder__intro > p:last-child { font-size: 15px; }
  .will-builder__workspace { padding: 16px !important; margin-top: 0; }
  .will-builder__progress { overflow-x: auto; }
  .will-builder__progress button { min-width: 64px; min-height: 48px; }
  .will-builder__progress strong { font-size: 12px; }
  .will-builder input, .will-builder select, .will-builder textarea { font-size: 16px !important; min-height: 48px; }
  .will-builder input[type=checkbox] { min-height: 22px; }
  .will-builder__grid { gap: 20px; }
  .case-journey-heading img { display: none; }
  .case-journey-steps { grid-template-columns: 1fr; gap: 0; }
  .case-journey-steps li { display: flex; align-items: start; gap: 16px; border-top: 0; border-left: 2px solid #bdd9d3; padding: 0 0 22px 18px; margin-left: 20px; }
  .journey-number { min-width: 36px; width: 36px; height: 36px; margin-left: -37px; margin-bottom: 0; }
  .case-journey-steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
  .case-choice-grid { grid-template-columns: 1fr; }
  .case-titlebar h1 { overflow-wrap: anywhere; font-size: 34px; }
  .case-action-dock { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-action-dock a { min-height: 64px; }
  .case-panel .button { width: 100%; }
  .case-task-list li, .people-list li { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: no-preference) {
  .case-journey { animation: case-arrival .45s ease both; }
  .case-choice:hover { transform: translateY(-2px); }
  @keyframes case-arrival { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}
.review-flags { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.review-flags .will-situation-card { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 12px; padding: 16px; min-height: 92px; border: 1px solid var(--line); background: #fff; border-radius: 14px; cursor: pointer; transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease; }
.review-flags .will-situation-card:hover { border-color: var(--teal); background: var(--teal-soft); }
.review-flags .will-situation-card:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); box-shadow: 0 3px 0 #a8c7b8; }
.review-flags .will-situation-card input[type="checkbox"] { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 700px) { .review-flags { grid-template-columns: 1fr; } .review-flags .will-situation-card { min-height: 76px; } }
.review-flags .will-situation-icon { width: 40px; height: 40px; color: var(--teal); }
.review-flags .will-situation-icon .timeliss-icon__standard { display: inline; }
.review-flags .will-situation-icon .timeliss-icon__sketch { display: none; }
.review-flags .will-situation-card input { margin: 0; }
.review-flags .will-situation-card span { line-height: 1.5; }
.will-situation-card:has(input:focus-visible) { outline: 3px solid #83c7bf; outline-offset: 2px; }

@media (max-width: 640px) {
  .will-builder__intro { padding: 0 !important; }
  .will-step h2 { font-size: 30px; }
}

.case-detail-shell > .whatsapp-entry { padding: 0; margin: 0 0 24px; }
@media (max-width: 640px) {
  .case-detail-shell { padding-top: 28px; }
  .case-detail-shell .case-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

.case-panel[id] { scroll-margin-top: 96px; }
.case-task-list .icon-button { min-width: 48px; min-height: 48px; }

/* One progress display per form; supporting details live beside the questions. */
.will-builder__intro h1 { max-width: 720px; }
.will-support-details { border-bottom: 1px solid var(--line); padding: 24px 0; }
.will-support-details summary { cursor: pointer; color: #34443f; font-size: 14px; font-weight: 800; line-height: 1.5; }
.will-support-details p { margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.will-support-details .service-disclosure { max-width: none; padding: 0; border: 0; background: transparent; }
.will-support-details a { text-decoration: underline; text-underline-offset: 3px; }
.will-support-channel { display: grid; gap: 12px; padding: 24px 0; font-size: 14px; }
.will-builder__visual-title { margin-bottom: 24px; }
@media (max-width: 640px) {
  .will-builder__hero { min-height: 0; }
  .will-builder__intro { width: 100%; padding: 8px 0; }
  .will-builder__workspace { padding: 0 !important; }
  .will-builder__progress { padding: 20px 8px; overflow: visible; }
  .will-builder__progress button { min-width: 0; padding: 0 2px; }
  .will-builder__progress button strong { font-size: 10px; line-height: 1.4; overflow-wrap: normal; }
  .will-builder__form { min-height: 0; }
  .will-builder__grid { gap: 0; }
}

.partner-onboarding { max-width: 1100px; }
.partner-onboarding__heading { max-width: 740px; margin-bottom: 28px; }
.partner-onboarding__heading h1 { margin: 10px 0 16px; font-size: clamp(34px, 5vw, 52px); line-height: 1.08; }
.partner-onboarding__heading > p:last-child { color: var(--muted); line-height: 1.6; }
.partner-onboarding__back { display: inline-block; margin-bottom: 24px; color: #147c75; }
.partner-onboarding__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 20px; margin: 0 0 28px; list-style: none; border: 1px solid var(--line); border-radius: 14px; background: #faf8f2; }
.partner-onboarding__steps li { display: flex; gap: 10px; align-items: center; color: #52625e; font-size: 14px; font-weight: 750; }
.partner-onboarding__steps span { display: grid; place-items: center; flex: 0 0 30px; height: 30px; border: 1px solid #a9b5b0; border-radius: 50%; }
.partner-onboarding__steps [aria-current] { color: #147c75; }
.partner-onboarding__steps [aria-current] span { background: #147c75; border-color: #147c75; color: white; }
.partner-onboarding__layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); gap: 32px; align-items: start; }
.partner-onboarding__layout > * { min-width: 0; }
.partner-onboarding__form { margin-top: 24px; gap: 22px; }
.partner-onboarding__form label { display: block; margin-bottom: 8px; }
.partner-onboarding__hint { margin: 0 0 10px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.partner-onboarding__hint a { text-decoration: underline; }
.partner-onboarding__help { padding: 24px 0; }
.partner-onboarding__help h2 { font-size: 26px; }
.partner-onboarding__help p { margin-top: 20px; color: #52625e; line-height: 1.65; }
.partner-onboarding__help strong { color: #34443f; }
.partner-onboarding__review dt { margin-top: 20px; font-weight: 800; }
.partner-onboarding__review dd { margin: 8px 0 20px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.partner-onboarding__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 28px; }
@media (max-width: 700px) {
  .partner-onboarding__layout { grid-template-columns: 1fr; gap: 8px; }
  .partner-onboarding__steps { gap: 10px; padding: 16px 10px; }
  .partner-onboarding__steps li { flex-direction: column; text-align: center; font-size: 12px; }
  .partner-onboarding__steps span { flex-basis: auto; width: 30px; }
  .partner-onboarding__form input, .partner-onboarding__form select, .partner-onboarding__form textarea { font-size: 16px; }
  .partner-onboarding__form .button { width: 100%; white-space: normal; }
}
.partner-onboarding__back { display: inline-flex; align-items: center; gap: 8px; }
.partner-onboarding__back .button-icon { width: 16px; height: 16px; }
@media (max-width: 700px) {
  .partner-onboarding { padding-top: 32px; }
  .partner-onboarding .case-panel { padding: 22px 18px; }
  .partner-onboarding .case-panel h2 { font-size: 27px; }
}

/* Illustration fills the hero, including when copy makes the section taller. */
.intake-wizard-hero,
.will-builder__hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.intake-wizard-hero__media,
.will-builder__hero-media {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  margin: 0;
  pointer-events: none;
}
.intake-wizard-hero__copy,
.will-builder__intro { position: relative; z-index: 1; }
.intake-wizard-panel:has(> .intake-wizard-overview) { padding: 0; overflow: hidden; }
.intake-wizard-panel > .intake-wizard-overview {
  margin: 0;
  padding: 26px 34px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: #faf8f2;
}
.intake-wizard-panel > .intake-wizard-form { padding: 34px; }
@media (max-width: 700px) {
  .intake-wizard-hero__media,
  .will-builder__hero-media { opacity: .24; }
  .intake-wizard-hero__media img,
  .will-builder__hero-media img { object-position: 65% center; }
  .intake-wizard-hero__copy { padding: 38px 24px 100px; }
  .intake-wizard-panel > .intake-wizard-overview { padding: 22px 16px; }
  .intake-wizard-panel > .intake-wizard-form { padding: 26px 20px; }
  body .service-hero-stage { position: relative; isolation: isolate; overflow: hidden; padding: 36px 24px 48px; }
  body .service-hero-media { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; aspect-ratio: auto; opacity: .18; pointer-events: none; }
  body .service-hero-media img { object-fit: cover; }
}

/* Feather the paper edges of hero artwork into the surrounding canvas. */
body .service-hero-media img,
.intake-wizard-hero__media img,
.will-builder__hero-media img,
.country-page-hero__visual img,
.content-page-hero__art {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent), linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent), linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
  mask-composite: intersect;
}
.content-page-hero__art {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  mix-blend-mode: multiply;
}
body .service-hero-summary { text-wrap: pretty; }
@media (min-width: 701px) {
  body .service-hero-stage {
    position: relative;
    isolation: isolate;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    gap: 24px;
    min-height: 420px;
  }
  body .service-hero-copy { max-width: 620px; }
  body .service-hero-media {
    position: absolute;
    inset: -30px -24px 0 auto;
    display: block;
    width: 78%;
    height: calc(100% + 30px);
    margin: 0;
    pointer-events: none;
  }
  body .service-hero-media img {
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: right center;
    -webkit-mask-image: linear-gradient(to right, transparent, rgba(0, 0, 0, .12) 24%, #000 52%, #000 94%, transparent), linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(to right, transparent, rgba(0, 0, 0, .12) 24%, #000 52%, #000 94%, transparent), linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent);
  }
}

/* Timeliss line illustrations: fine ink over a soft, organic colour wash. */
svg.timeliss-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}
svg.timeliss-icon .timeliss-icon__wash {
  fill: currentColor;
  fill-opacity: .09;
  stroke: none;
}
.intake-choice-option__body .timeliss-icon--illustrated,
.choice-list .choice-example .timeliss-icon--illustrated {
  width: 36px;
  height: 36px;
  color: #367d74;
  transition: transform 180ms ease;
}
.intake-choice-option__body { align-items: center; }
.intake-choice-option:hover .timeliss-icon--illustrated,
.intake-choice-option > input:checked + .intake-choice-option__body .timeliss-icon--illustrated {
  transform: rotate(-3deg);
}
@media (prefers-reduced-motion: reduce) {
  .intake-choice-option__body .timeliss-icon--illustrated,
  .choice-list .choice-example .timeliss-icon--illustrated { transition: none; }
  .intake-choice-option:hover .timeliss-icon--illustrated,
  .intake-choice-option > input:checked + .intake-choice-option__body .timeliss-icon--illustrated { transform: none; }
}

/* Keep optional help and navigation together, without a separate status panel. */
.intake-wizard-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  border-top: 0;
  padding-top: 0;
}
.intake-wizard-footer > .form-privacy { margin: 0; }
.intake-wizard-footer > .form-privacy[open] { flex-basis: 100%; }
.intake-wizard-footer .intake-wizard-actions {
  flex: 1 1 auto;
  align-items: center;
  border: 0;
  padding: 0;
}
.intake-wizard-actions .form-action-hint {
  min-height: 0;
  margin: 0;
  max-width: none;
  font-size: 12px;
}
.intake-wizard-actions .form-action-hint:empty { display: none; }
@media (max-width: 600px) {
  .intake-wizard-footer .intake-wizard-actions { flex-basis: 100%; }
  .intake-wizard-actions .form-action-hint { flex: 1 1 120px; }
}

/* A consistent pause between section labels and their headings. */
body :is(.eyebrow, .will-step__kicker):has(+ :is(h1, h2, h3, h4)) {
  display: block;
  margin-bottom: 14px;
  line-height: 1.5;
}
body :is(.eyebrow, .will-step__kicker) + :is(h1, h2, h3, h4) {
  margin-top: 0;
}

/* Shared hero entrance: one quiet arrival, then a still, readable page. */
@media (prefers-reduced-motion: no-preference) {
  body :is(
    .service-hero-copy, .country-page-hero__copy, .intake-wizard-hero__copy,
    .will-builder__intro, .will-result-hero, .content-page-hero,
    .content-page-hero--split > div, .about-hero, .service-hero, .guide-hero,
    .country-directory__header
  ) > :is(h1, p, .hero-actions, .service-hero-meta) {
    animation: hero-copy-arrive 680ms cubic-bezier(.2, .75, .25, 1) var(--hero-entrance-delay, 0ms) backwards;
  }
  body :is(
    .service-hero-copy, .country-page-hero__copy, .intake-wizard-hero__copy,
    .will-builder__intro, .will-result-hero, .content-page-hero,
    .content-page-hero--split > div, .about-hero, .service-hero, .guide-hero,
    .country-directory__header
  ) > :is(p:not(.eyebrow), .service-hero-meta) { animation-delay: 100ms; }
  body .hero-actions { --hero-entrance-delay: 180ms; }
  body :is(
    .service-hero-media, .country-page-hero__visual,
    .intake-wizard-hero__media, .will-builder__hero-media
  ) img,
  body .content-page-hero__art {
    animation: hero-art-arrive 1000ms cubic-bezier(.2, .75, .25, 1) 80ms backwards;
  }
  /* Keyboard users can act immediately, even during the entrance. */
  body .hero-actions:focus-within { animation: none; }
}
@keyframes hero-copy-arrive {
  from { opacity: 0; translate: 0 14px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes hero-art-arrive {
  from { opacity: 0; translate: 12px 0; scale: .985; }
  to { opacity: 1; translate: 0 0; scale: 1; }
}

/* Compact page endings and readable spacing in simple support panels. */
.case-shell.planning-hub { padding-bottom: 40px; }
.planning-hub > h1 + p { margin-top: 18px; line-height: 1.6; }
.case-panel:not(.planning-card) > :is(h2, h3) + p { margin-top: 12px; line-height: 1.6; }
.case-panel:not(.planning-card) > p + p { margin-top: 12px; }
.case-panel:not(.planning-card) > p + :is(.button, form, details) { margin-top: 20px; }
.planning-location > div[hidden] { display: none; }

/* Keep privacy guidance inside the form, separated below its actions. */
.form-collection-note {
  width: 100%;
  margin: 22px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.intake-wizard-form > .form-collection-note { margin-top: 0; }
.form-collection-note .service-disclosure {
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: #566a64;
  font-size: 13px;
  line-height: 1.6;
}
.form-collection-note a { text-decoration: underline; text-underline-offset: 3px; }

/* Ink illustrations echo the wordmark; colour belongs to the control, not a badge. */
svg.timeliss-icon .timeliss-icon__stroke--0 { stroke-width: 1.6; }
svg.timeliss-icon .timeliss-icon__stroke--1 { stroke-width: 1.25; }
svg.timeliss-icon .timeliss-icon__stroke--2 { stroke-width: 1.4; }
.intake-choice-option__body .timeliss-icon,
.choice-list .choice-example .timeliss-icon,
.planning-icon .timeliss-icon { color: #242623; }
.intake-phone-control-group,
.intake-phone-labels { grid-template-columns: 116px minmax(0, 1fr); }
.contact-verification-note { margin: 20px auto; max-width: 1092px; }
svg.timeliss-icon--illustrated { color: #242623; }
.button.primary .timeliss-icon,
.nav-demo .timeliss-icon,
.footer-icon-button .timeliss-icon { color: inherit; }

.intake-phone-fieldset > legend { font-weight: 700; margin-bottom: 8px; }
@media (max-width: 600px) {
  .intake-wizard-actions .form-action-hint { order: -1; flex-basis: 100%; max-width: none; }
  .intake-wizard-actions .button { white-space: nowrap; }
}

/* Keep the question and its optional explanation trigger on one heading row. */
.intake-wizard-step > header:has(> .intake-question-help) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 16px;
}
.intake-wizard-step > header:has(> .intake-question-help) > h2 {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
}
.intake-wizard-step > header > .intake-question-help { display: contents; }
.intake-wizard-step > header > .intake-question-help > summary {
  grid-column: 2;
  grid-row: 1;
  min-height: 44px;
  white-space: nowrap;
}
.intake-wizard-step > header > .intake-question-help:not([open]) > p { display: none; }
.intake-wizard-step > header > .intake-question-help::details-content {
  grid-column: 1 / -1;
  grid-row: 2;
  width: 100%;
}
.intake-wizard-step > header > .intake-question-help[open] > p {
  grid-column: 1 / -1;
  grid-row: 2;
  max-width: none;
  width: 100%;
  margin: 12px 0 0;
}
.intake-wizard-step > header:has(> .intake-question-help) > p {
  grid-column: 1 / -1;
  grid-row: 3;
  margin: 12px 0 0;
}
@media (max-width: 420px) {
  .intake-wizard-step > header:has(> .intake-question-help) { column-gap: 10px; }
  .intake-wizard-step > header > .intake-question-help > summary { font-size: 12px; gap: 5px; }
}

/* Let the action card bridge the illustrated hero and the page below. */
body .service-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 0;
  margin-bottom: 64px;
}
body .service-page-hero::before {
  position: relative;
  grid-area: 1 / 1;
  inset: auto;
  align-self: stretch;
  justify-self: stretch;
  width: auto;
  height: auto;
  margin: -54px -44px -44px;
}
body .service-hero-stage { grid-area: 1 / 1; }
body .service-start-panel {
  grid-area: 2 / 1;
  margin: 0 auto;
  transform: none;
}
@media (max-width: 900px) {
  body .service-page-hero::before { margin-inline: -24px; }
}
@media (max-width: 700px) {
  body .service-page-hero { margin-bottom: 48px; }
  body .service-page-hero::before { margin: -30px 0 -32px; }
}
@media (min-width: 701px) and (max-width: 900px) {
  body .service-start-form { grid-template-columns: minmax(0, 1fr); }
  body .service-start-form .button { width: 100%; }
}

/* Closing actions are the last page element and bridge into the footer. */
.footer-cta-bridge {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 48px));
  margin: 32px auto -44px;
}
.footer-cta-bridge > :is(.service-bottom-cta, .content-page-cta, .country-page-cta) {
  width: 100%;
  margin: 0;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid rgba(35, 151, 142, .2);
  border-radius: 24px;
  background: #e8f4f1;
  color: var(--ink);
  box-shadow: 0 18px 40px rgba(24, 64, 57, .12);
}
.footer-cta-bridge .country-page-cta > div > p { color: var(--muted); }
.footer-cta-bridge .country-page-cta .button.primary { background: var(--teal); color: #fff; }
body > main:has(.footer-cta-bridge) + .site-footer {
  margin-top: 0;
  padding-top: 108px;
}
@media (max-width: 700px) {
  .footer-cta-bridge { width: calc(100% - 36px); margin-top: 24px; margin-bottom: -32px; }
  .footer-cta-bridge > section { flex-direction: column; align-items: stretch; gap: 24px; }
  .footer-cta-bridge > section .button { width: 100%; }
  body > main:has(.footer-cta-bridge) + .site-footer { padding-top: 80px; }
}

/* Planning uses the same illustrated, gently animated hero as service pages. */
body .planning-hero { margin-bottom: 40px; }
body .planning-hero .service-hero-copy h1 { font-size: clamp(42px, 5vw, 64px); }
body .planning-hero .service-hero-copy { max-width: 610px; }
body .planning-location-panel { display: block; padding: 28px; }
.planning-location-panel .planning-location { margin: 0; gap: 20px; }
.planning-location-panel label { font-size: 14px; font-weight: 750; line-height: 1.5; }
.planning-location-panel :is(select, .button) {
  height: 60px;
  min-height: 60px;
  box-sizing: border-box;
  border-radius: 14px;
  font-size: 16px;
}
.planning-location-panel select {
  appearance: none;
  padding: 0 44px 0 18px;
  border: 1px solid #bfd6d1;
  background: #faf9f5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23157870' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 16px center / 20px;
  color: #244e47;
}
.planning-location-panel select:focus-visible { outline: 3px solid #cde7e2; outline-offset: 3px; }
.planning-location-panel .button { padding: 0 24px; flex-shrink: 0; }
.case-shell.planning-hub { padding-top: 0; }
.planning-state-hint { margin: 0 0 24px; color: var(--muted); line-height: 1.6; }
@media (max-width: 900px) {
  .planning-location-panel .planning-location { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .planning-location-panel .planning-location > div { min-width: 0; }
  .planning-location-panel .planning-location > .button { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body .planning-location-panel { padding: 24px 20px; }
  .planning-location-panel .planning-location { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  body .planning-hero .service-hero-copy h1 { font-size: clamp(38px, 10vw, 54px); }
}
@media (prefers-reduced-motion: no-preference) {
  .planning-location-panel { animation: hero-copy-arrive 680ms cubic-bezier(.2, .75, .25, 1) 160ms backwards; }
}

/* Read the planning options as an illustrated sequence, one row at a time. */
.planning-card-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
.planning-card {
  display: grid;
  grid-template-columns: minmax(220px, .85fr) minmax(0, 1.6fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(24px, 3vw, 40px);
  box-shadow: none;
  background: #fdfbf6;
}
.planning-card__art { margin: 0; width: 100%; }
.planning-card__art img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  mix-blend-mode: multiply;
  mask-image: radial-gradient(ellipse, #000 48%, transparent 73%);
}
.planning-card__content { display: grid; justify-items: start; gap: 16px; min-width: 0; }
.planning-card__number { color: #197f77; font-size: 14px; font-weight: 800; letter-spacing: .12em; }
.planning-card__content h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.15; text-wrap: pretty; }
.planning-card__content > p { color: var(--muted); line-height: 1.6; }
.planning-card__content details p { margin-block: 16px; }
.planning-card__content .button { margin-top: 4px; }
@media (max-width: 600px) {
  .planning-card { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 24px; position: relative; }
  .planning-card__art { position: absolute; top: 14px; right: 16px; width: 104px; }
  .planning-card__content { gap: 14px; }
  .planning-card__number { min-height: 64px; display: flex; align-items: center; }
  .planning-card__content .button { width: 100%; }
}

body .service-start-panel__reassurance {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: #53635f;
}
body .service-start-panel__reassurance .button-icon {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  color: var(--teal);
}

.service-template-option { display: flex; align-items: center; justify-content: space-between; gap: 28px; width: min(1120px, calc(100% - 48px)); margin: 40px auto 0; border-top: 1px solid var(--line); padding-top: 28px; }
.service-template-option p { margin-top: 12px; max-width: 650px; line-height: 1.6; }
.service-template-option .button { flex-shrink: 0; }
.template-download-page { max-width: 960px; margin-inline: auto; }
.template-download-page > p { margin: 20px 0 28px; line-height: 1.6; }
.template-download-form { display: grid; gap: 22px; margin-top: 26px; }
.template-download-consent { display: flex; align-items: flex-start; gap: 12px; line-height: 1.6; }
.template-download-consent input { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 3px; }
@media(max-width:700px) { .service-template-option { flex-direction: column; align-items: stretch; } }

.planning-hub[hidden], .planning-selection-status[hidden] { display: none; }
.planning-selection-status { width: min(1120px, calc(100% - 48px)); margin: 0 auto 40px; line-height: 1.6; }
.planning-results-title { margin: 0 0 28px; font-size: clamp(24px, 3vw, 34px); }

.planning-account-cta > div:first-child { max-width: 650px; }
.planning-account-cta p { margin-top: 16px; line-height: 1.6; color: var(--muted); }
.planning-account-cta__actions { display: flex; flex-direction: column; gap: 12px; flex-shrink: 0; }

/* Continue the hero canvas behind the transparent navigation at the top. */
body.has-hero-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: var(--hero-header-height, 68px);
  background: var(--hero-header-canvas, #fff);
  pointer-events: none;
}
.site-header.has-hero { transition: background-color 220ms ease, box-shadow 220ms ease; }
.site-header.has-hero.is-over-hero:not(.mobile-nav-open):not(:has([aria-expanded="true"])) {
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}
.site-header.has-hero:not(.is-over-hero),
.site-header.has-hero.mobile-nav-open,
.site-header.has-hero:has([aria-expanded="true"]) { background: #fff; box-shadow: 0 1px 0 rgba(40, 65, 58, .1); }
@media (prefers-reduced-motion: reduce) { .site-header.has-hero { transition: none; } }

/* Account workspace: compact navigation and readable action lists. */
body .account-shell.dashboard-home { display: block; max-width: 1240px; padding: 20px 32px 56px; min-height: 65vh; }
.dashboard-breadcrumbs { display: flex; align-items: center; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.dashboard-breadcrumbs a { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.dashboard-breadcrumbs .button-icon { width: 16px; height: 16px; }
.dashboard-breadcrumbs [aria-current] { color: var(--ink); font-weight: 650; }
.dashboard-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 22px 0; }
body .dashboard-home h1 { font-family: var(--font-sans, sans-serif); font-size: clamp(26px, 3vw, 32px); line-height: 1.2; letter-spacing: -.7px; }
body .dashboard-home p { font-size: 14px; line-height: 1.6; margin-top: 10px; }
body .dashboard-heading p { margin-top: 5px; }
body .dashboard-home .button { font-size: 14px; min-height: 42px; padding: 10px 16px; border-radius: 10px; }
.dashboard-tabs { display: flex; gap: 8px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.dashboard-tabs a { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 3px solid transparent; color: var(--muted); text-decoration: none; white-space: nowrap; font-size: 14px; font-weight: 650; }
.dashboard-tabs a[aria-selected="true"] { color: var(--teal-dark, #16736e); border-color: var(--teal); background: #f0f7f5; border-radius: 10px 10px 0 0; }
.dashboard-home .button-icon { flex-shrink: 0; width: 21px; height: 21px; }
.dashboard-count { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; padding: 2px 7px; border-radius: 7px; background: #e9efec; color: #38504a; font-size: 12px; font-weight: 700; }
.dashboard-section[hidden] { display: none; }
.dashboard-shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.dashboard-shortcuts > a { display: flex; align-items: center; gap: 14px; padding: 17px 20px; border: 1px solid var(--line); border-radius: 12px; background: #faf9f5; color: var(--ink); text-decoration: none; }
.dashboard-shortcuts > a > .button-icon:first-child { width: 30px; height: 30px; }
.dashboard-shortcuts > a > .button-icon:last-child { margin-left: auto; width: 18px; }
.dashboard-shortcuts strong, .dashboard-shortcuts small { display: block; }
.dashboard-shortcuts strong { font-size: 15px; }
.dashboard-shortcuts small { font-size: 12px; color: var(--muted); margin-top: 4px; }
.dashboard-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.dashboard-panel { padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; min-width: 0; }
.dashboard-home .panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; }
.dashboard-home h2 { font-family: var(--font-sans, sans-serif); font-size: 17px; line-height: 1.4; letter-spacing: -.2px; }
.dashboard-home h3 { font-family: var(--font-sans, sans-serif); font-size: 15px; line-height: 1.4; }
.dashboard-home .panel-heading > span { font-size: 12px; color: var(--muted); }
.dashboard-panel ul { list-style: none; padding: 0; margin: 14px 0 0; }
.dashboard-panel li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding: 12px 0; font-size: 14px; }
.dashboard-panel li:last-child { padding-bottom: 0; }
.dashboard-panel li a { color: var(--ink); font-weight: 600; text-decoration: none; }
.dashboard-panel li > span:last-child { flex-shrink: 0; font-size: 12px; color: var(--muted); }
.dashboard-panel a:hover, .dashboard-breadcrumbs a:hover { text-decoration: underline; }
.dashboard-security { max-width: 760px; }
.dashboard-security .passkey-enrollment, .dashboard-security .whatsapp-enrollment, .dashboard-security .email-enrollment { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 20px; }
.dashboard-home .auth-form { margin-top: 14px; gap: 14px; }
.dashboard-home input, .dashboard-home select { font-size: 14px; }
.dashboard-home .auth-method-message:empty { display: none; }
.account-workspace-footer { display: flex; justify-content: center; gap: 24px; border-top: 1px solid var(--line); padding: 22px; font-size: 13px; }
.account-workspace-footer a { color: var(--muted); }
@media(max-width: 700px) {
  body .account-shell.dashboard-home { padding: 16px 18px 36px; }
  .dashboard-heading { gap: 12px; align-items: flex-start; }
  .dashboard-heading .button { white-space: nowrap; }
  .dashboard-panels { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .dashboard-shortcuts { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .dashboard-shortcuts > a { padding: 13px 15px; }
  .dashboard-tabs { gap: 0; }
  .dashboard-tabs a { padding: 11px 12px; }
  .dashboard-panel { padding: 16px; }
  .dashboard-panel li { flex-wrap: wrap; gap: 5px 14px; }
}
@media(max-width: 700px) {
  .dashboard-heading { flex-wrap: wrap; }
  .dashboard-heading > div { flex: 1 0 100%; }
  .dashboard-heading .button { flex-shrink: 0; }
  .dashboard-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; gap: 4px; }
  .dashboard-tabs a { font-size: 13px; padding: 10px 8px; gap: 6px; }
}

/* Keep consent controls out of text-field sizing and task columns aligned. */
.case-note-form .case-consent { display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; font-weight: 600; cursor: pointer; padding: 8px 0; }
.case-note-form .case-consent input[type="checkbox"] { flex: 0 0 20px; width: 20px; height: 20px; min-height: 20px; margin: 1px 0 0; padding: 0; accent-color: var(--teal); }
.case-task-list.case-task-list--actions li { display: grid; grid-template-columns: minmax(0, 1fr) 110px 48px; gap: 18px; align-items: center; }
.case-task-list--actions li > .pill { grid-column: 2; justify-self: start; margin: 0; }
.case-task-list--actions li > form { grid-column: 3; margin: 0; }
.case-task-list--actions .icon-button { width: 48px; height: 48px; padding: 0; }
@media(max-width: 600px) {
  .case-task-list.case-task-list--actions li { grid-template-columns: minmax(0, 1fr) 44px; gap: 10px; }
  .case-task-list--actions li > div { grid-column: 1 / -1; }
  .case-task-list--actions li > .pill { grid-column: 1; }
  .case-task-list--actions li > form { grid-column: 2; }
  .case-task-list--actions .pill { font-size: 11px; padding: 6px 8px; }
  .case-task-list--actions .icon-button { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
}

/* Case workspace: persistent navigation alongside a single focused section. */
body .case-shell.case-workspace { max-width: 1320px; padding: 20px 32px 56px; }
.case-workspace-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; }
.case-workspace h1 { font-family: var(--font-sans, sans-serif); font-size: clamp(24px, 3vw, 32px); line-height: 1.25; letter-spacing: -.6px; }
.case-workspace-heading p { margin-top: 8px; color: var(--muted); font-size: 13px; }
.case-workspace-heading > .pill { flex-shrink: 0; }
.case-workspace-layout { display: grid; grid-template-columns: 235px minmax(0, 1fr); gap: 32px; align-items: start; }
.case-workspace-sidebar { position: sticky; top: 88px; }
.case-workspace-sidebar nav { display: grid; gap: 4px; }
.case-workspace-sidebar a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; font-size: 14px; color: var(--ink); text-decoration: none; border-radius: 8px; }
.case-workspace-sidebar a[aria-current="page"] { background: #e9f4f1; color: #146b62; font-weight: 700; }
.case-workspace-sidebar a:hover { background: #f1f5f3; }
.case-workspace-sidebar .button-icon { width: 21px; height: 21px; flex-shrink: 0; }
.case-workspace-sidebar .dashboard-count { margin-left: auto; }
.case-workspace-links { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 12px; }
.case-workspace-links p { font-size: 12px; color: var(--muted); margin: 8px 12px; line-height: 1.5; }
.case-workspace-content { min-width: 0; border-left: 1px solid var(--line); padding-left: 32px; min-height: 540px; }
.case-workspace-content > [hidden] { display: none !important; }
.case-workspace .case-panel, .case-workspace .case-journey, .case-workspace .case-progress-board { border: 0; border-radius: 0; padding: 0; margin: 0; box-shadow: none; background: transparent; }
.case-workspace .case-panel + .case-panel { margin-top: 24px; }
.case-workspace h2 { font-family: var(--font-sans, sans-serif); font-size: 22px; line-height: 1.35; letter-spacing: -.25px; }
.case-workspace p { font-size: 14px; line-height: 1.6; }
.case-workspace .case-panel > p { margin-top: 12px; margin-bottom: 16px; }
.case-workspace .button { min-height: 44px; font-size: 14px; padding: 10px 16px; border-radius: 9px; }
.case-workspace .case-journey-heading img, .case-workspace .case-journey-heading .eyebrow { display: none; }
.case-workspace .case-journey-heading h2 { margin: 0 0 20px; }
.case-workspace .case-journey-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
.case-workspace .case-journey-steps li { display: flex; gap: 12px; border: 0; padding: 0; margin: 0; }
.case-workspace .journey-number { flex: 0 0 30px; width: 30px; height: 30px; margin: 0; font-size: 13px; }
.case-workspace .case-journey-steps strong { font-size: 15px; }
.case-workspace .case-journey-steps p { font-size: 13px; }
.case-workspace .case-storage-note { padding: 16px; margin: 20px 0; border-radius: 10px; background: #f4f7f3; }
.case-workspace .case-storage-note strong { font-size: 14px; }
.case-workspace .case-workspace-overview > .case-panel { margin-top: 24px; }
.case-workspace .case-task-list strong { font-size: 14px; }
.case-workspace .case-task-list li > div > span { font-size: 12px; }
.case-workspace .case-timeline { margin-top: 20px; }
@media(max-width: 700px) {
  body .case-shell.case-workspace { padding: 16px 18px 36px; }
  .case-workspace-heading { align-items: flex-start; gap: 12px; }
  .case-workspace-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .case-workspace-sidebar { position: static; }
  .case-workspace-sidebar nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-workspace-sidebar a { font-size: 12px; gap: 7px; padding: 10px 8px; }
  .case-workspace-sidebar .dashboard-count { font-size: 11px; padding: 1px 5px; }
  .case-workspace-links { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; padding-top: 8px; }
  .case-workspace-links p { display: none; }
  .case-workspace-content { border-left: 0; border-top: 1px solid var(--line); padding: 22px 0 0; min-height: 0; }
  .case-workspace .case-journey-steps { grid-template-columns: 1fr; }
}

/* Keep footer content clear of viewport edges at every breakpoint. */
body .site-footer { box-sizing: border-box; padding-inline: clamp(24px, 4vw, 44px); }
.footer-main, .footer-columns, .footer-columns > div, .footer-bottom { min-width: 0; }
.footer-columns a { overflow-wrap: anywhere; }
body .footer-bottom { flex-wrap: wrap; row-gap: 16px; }
.footer-back-to-top { flex-shrink: 0; }
.account-workspace-footer { flex-wrap: wrap; padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
@media(max-width: 600px) {
  body .footer-bottom { flex-direction: column; align-items: flex-start; }
}

.case-action-slot { margin: 32px auto 0; width: min(100%, 860px); }
.case-floating-actions { display: flex; justify-content: center; gap: 6px; padding: 10px; border: 1px solid #c6ddd7; border-radius: 20px; background: #fff; box-shadow: 0 8px 28px rgba(25, 62, 54, .15); z-index: 40; }
.case-floating-actions.is-floating { position: fixed; bottom: calc(16px + env(safe-area-inset-bottom)); left: var(--action-bar-left); width: var(--action-bar-width); }
.case-floating-actions a { display: flex; flex: 1; align-items: center; justify-content: center; gap: 9px; padding: 12px 10px; min-height: 46px; border-radius: 12px; color: #176e66; font-size: 14px; font-weight: 700; text-decoration: none; }
.case-floating-actions a:hover, .case-floating-actions a[aria-current="page"] { background: #eaf5f1; }
.case-floating-actions .button-icon { width: 20px; height: 20px; flex-shrink: 0; }
.case-workspace-content h2 { scroll-margin-top: 100px; }
@media(max-width: 600px) {
  .case-floating-actions { gap: 2px; padding: 6px; border-radius: 16px; }
  .case-floating-actions a { flex-direction: column; gap: 5px; padding: 8px 4px; font-size: 11px; text-align: center; line-height: 1.3; }
}

/* Separate app navigation from content when there is no reading-progress line. */
.site-header:not(:has(.page-progress)):not(.is-over-hero) {
  border-bottom: 1px solid var(--line);
}

.case-card-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 18px; }
.case-card-avatars { display: inline-flex; align-items: center; padding-left: 6px; }
.case-card-avatar { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 38px; width: 38px; height: 38px; margin-left: -6px; border: 2px solid #fff; border-radius: 50%; background: #dcece6; color: #245d52; font-size: 12px; font-weight: 750; line-height: 1; }
.case-card-avatar--1 { background: #eee5d5; color: #705532; }
.case-card-avatar--2 { background: #e0e7ef; color: #3c5670; }
.case-card-avatar--more { background: #f0f2ef; color: #43534d; }

.account-navigation-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; max-width: 1360px; width: 100%; margin-inline: auto; padding: 24px; }
.account-desktop-sidebar { position: sticky; top: 90px; align-self: start; }
.account-navigation-content { min-width: 0; border-left: 1px solid var(--line); }
.account-navigation a { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 9px; color: var(--ink); font-size: 14px; text-decoration: none; }
.account-navigation a[aria-current="page"] { background: #e9f4f1; color: #176e66; font-weight: 700; }
.account-navigation a:hover { background: #f2f5f2; }
.account-navigation .button-icon { width: 21px; height: 21px; flex-shrink: 0; }
.account-navigation-secondary { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 12px; }
.case-account-navigation { border-bottom: 1px solid var(--line); margin-bottom: 18px; padding-bottom: 12px; }
.case-account-navigation .account-navigation-secondary { display: none; }
.account-navigation-content > .case-shell { padding: 20px 32px 56px; width: auto; margin: 0; }
.account-navigation-content .case-titlebar h1 { font-size: 32px; }
.account-settings > section { margin-bottom: 24px; }
.settings-choice { display: flex; align-items: start; gap: 10px; padding: 12px 0; font-size: 14px; cursor: pointer; }
.settings-choice input { flex: 0 0 20px; width: 20px; height: 20px; margin: 0; accent-color: var(--teal); }
.settings-notifications form { margin-top: 14px; }
.settings-notifications .button { margin-top: 16px; }
.account-settings #security, .account-settings #notifications { scroll-margin-top: 90px; }
.account-offcanvas-title { padding: 8px 12px 20px; font-size: 22px; }
@media(max-width: 980px) {
  .account-navigation-layout { display: block; padding: 0; }
  .account-desktop-sidebar, .case-account-navigation { display: none; }
  .account-navigation-content { border: 0; }
  .account-workspace-header .menu-button { display: flex; }
  .account-workspace-header .mobile-nav.account-offcanvas { position: fixed; top: var(--header-height, 64px); left: 0; right: auto; bottom: 0; width: min(320px, 88vw); max-height: none; height: calc(100dvh - var(--header-height, 64px)); border-radius: 0 18px 18px 0; padding: 24px 16px; overflow-y: auto; box-shadow: 12px 0 30px rgba(20,40,30,.15); }
}
body.account-drawer-open { overflow: hidden; }
@media(min-width: 701px) and (max-width: 980px) {
  .account-navigation-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); padding: 20px; gap: 16px; }
  .account-desktop-sidebar, .case-account-navigation { display: block; }
  .account-navigation-content { border-left: 1px solid var(--line); }
}

/* The service rail clips only at the viewport, not the headline container. */
.hero .hero-choice-grid {
  width: var(--rail-width, 100%);
  max-width: none;
  margin-left: calc(-1 * var(--rail-inset, 0px));
  margin-right: 0;
  padding: 10px max(24px, var(--rail-inset, 24px)) 26px var(--rail-inset, 2px);
  scroll-padding-inline: var(--rail-inset, 24px);
  scroll-snap-type: x proximity;
}
.home-introduction { display: flex; align-items: center; gap: 24px; margin-top: 24px; padding: 28px 32px; border-radius: 16px; background: #edf5f1; border: 1px solid #d6e5de; }
.home-introduction-icon { width: 44px; height: 44px; flex-shrink: 0; object-fit: contain; }
.home-introduction p { margin: 0; font-size: 18px; line-height: 1.65; color: #36534b; max-width: 900px; }
.home-introduction strong { font-weight: 700; color: #1d4036; }
@media(max-width: 700px) {
  .home-introduction { align-items: flex-start; gap: 14px; padding: 22px 18px; }
  .home-introduction-icon { width: 32px; height: 32px; margin-top: 3px; }
  .home-introduction p { font-size: 15px; }
}

/* Reversible homepage entrances, progressively enhanced by IntersectionObserver. */
.reveal.scroll-reveal-ready { transition: opacity 550ms ease, transform 650ms cubic-bezier(.2,.7,.2,1); }
.reveal.scroll-reveal-ready:not(.visible) { opacity: 0; transform: translateY(24px); }
.reveal.scroll-reveal-ready.visible { opacity: 1; transform: translateY(0); }
.reveal.scroll-reveal-ready:focus-within { opacity: 1; transform: none; }
@media(prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
@media print {
  .reveal.scroll-reveal-ready { opacity: 1 !important; transform: none !important; }
}

.footer-icon-button img.footer-social-icon { width: 18px; height: 18px; object-fit: contain; object-position: center; }

/* Information pages share the illustrated, edge-to-edge hero canvas. */
body main > .content-page-shell.editorial-page {
  width: 100%; max-width: none; padding: 0 0 80px; gap: 64px;
}
.editorial-page > * { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.editorial-page > .content-page-hero {
  width: 100%; max-width: none; min-height: 540px;
  padding: 64px max(32px, calc((100% - 1180px) / 2)) 112px;
  background: #fcf8ef; gap: 24px; box-sizing: border-box;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.editorial-page .content-page-hero h1 { font-size: clamp(42px, 4.5vw, 68px); line-height: 1.04; text-wrap: balance; }
.editorial-page .content-page-hero__art { width: 110%; max-width: 110%; margin-left: -5%; aspect-ratio: 1.15; object-fit: contain; }
.editorial-page > :is(.journey-summary, .security-principles, .editorial-summary) {
  position: relative; z-index: 1; margin-top: -112px;
  padding: 30px; border: 1px solid var(--line); border-radius: 24px;
  background: #fff; box-shadow: 0 20px 48px rgba(23, 43, 41, .09);
  box-sizing: border-box; gap: 28px;
}
.editorial-page .about-principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.editorial-page .about-principles h2 { font-size: 25px; }
.faq-topic-links { display: flex; flex-wrap: wrap; align-items: center; }
.faq-topic-links a { color: var(--teal); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 700px) {
  body main > .content-page-shell.editorial-page { gap: 44px; }
  .editorial-page > * { width: calc(100% - 32px); }
  .editorial-page > .content-page-hero { grid-template-columns: 1fr; padding: 36px 24px 82px; gap: 12px; }
  .editorial-page .content-page-hero__art { width: 100%; max-width: 100%; height: 230px; margin: 0; }
  .editorial-page > :is(.journey-summary, .security-principles, .editorial-summary) { margin-top: -82px; padding: 24px; gap: 24px; grid-template-columns: 1fr; }
  .editorial-page .content-page-hero h1 { font-size: 42px; }
}
body main > .content-page-shell.editorial-page { margin-inline: 0; }

/* Separate the introduction, reading blocks and next section clearly. */
.timeline-care-section { column-gap: clamp(40px, 5vw, 80px); }
.timeline-care-copy { display: grid; gap: 22px; }
.timeline-care-copy > :is(.eyebrow, h2, p) { margin: 0; }
.timeline-care-copy h2 { line-height: 1.1; text-wrap: balance; }
.timeline-care-copy p { line-height: 1.7; }
.timeline-care-grid { gap: 28px; }
.timeline-care-item { padding: clamp(28px, 3vw, 40px); gap: 18px; }
.timeline-care-item h3 { line-height: 1.2; }
.timeline-care-item p { line-height: 1.7; }
.timeline-care-item span { margin-top: 10px; }
.editorial-page > .content-page-section {
  width: min(1180px, calc(100% - 64px)); margin-inline: auto;
}
.editorial-page > .content-page-section.timeline-care-section { padding-top: 72px; }
.editorial-page > .content-page-section + .content-page-section {
  margin-top: 24px; border-top: 1px solid var(--line); padding-top: 72px;
}
.editorial-page .section-heading { display: grid; gap: 20px; margin-bottom: 40px; }
.editorial-page .section-heading > :is(.eyebrow, h2, p) { margin: 0; }
@media (max-width: 700px) {
  .timeline-care-section { row-gap: 36px; }
  .timeline-care-copy { gap: 18px; }
  .timeline-care-grid { gap: 24px; }
  .timeline-care-item { padding: 26px 24px; gap: 16px; }
  .editorial-page > .content-page-section { width: calc(100% - 32px); }
  .editorial-page > .content-page-section.timeline-care-section,
  .editorial-page > .content-page-section + .content-page-section { padding-top: 44px; }
}

/* Section navigation begins below the introduction and sticks beneath the header. */
.home-section-nav {
  position: sticky;
  top: var(--home-navbar-height, 68px);
  z-index: 50;
  flex-shrink: 0;
  width: 100%;
  border-block: 1px solid var(--line);
  background: #fff;
}
.home-section-nav__links {
  display: flex; gap: 26px; max-width: 1320px; margin: 0 auto;
  padding: 0 24px; overflow-x: auto; scrollbar-width: thin;
}
.home-section-nav a {
  flex: 0 0 auto; display: flex; align-items: center; min-height: 46px;
  padding: 10px 0; border-bottom: 3px solid transparent;
  color: var(--muted); font-size: 14px; font-weight: 700; white-space: nowrap;
}
.home-section-nav a[aria-current="location"] { color: var(--teal); border-bottom-color: var(--teal); }
.home-section-nav a:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
body:has(.home-section-nav) main section[id] { scroll-margin-top: calc(var(--home-header-height, 116px) + 12px); }
@media (max-width: 700px) {
  .home-section-nav__links { gap: 22px; padding-inline: 18px; scrollbar-width: none; }
  .home-section-nav__links::-webkit-scrollbar { display: none; }
  .home-section-nav a { font-size: 13px; min-height: 44px; }
}

/* Every FAQ uses the same heading-above-questions layout. */
body .faq-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}
body .faq-section > .faq-accordion { grid-column: 1; }
body .faq-section .faq-accordion__item { border-bottom: 0; }

/* Keep one spacing boundary between service FAQs and the disclosure. */
body .service-page-shell { padding-bottom: 0; }
body .service-faq-section { padding-bottom: 32px; }

.service-template-option .service-template-disclaimer { font-size: 13px; line-height: 1.6; color: var(--muted); }
.service-template-disclaimer a { text-decoration: underline; text-underline-offset: 3px; }
#template-conditions { scroll-margin-top: 100px; }

.footer-cta-bridge > .service-bottom-cta--illustrated {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 280px; padding: 48px; background: #e6f3f0;
}
.service-bottom-cta--illustrated .service-bottom-cta__copy { position: relative; z-index: 1; width: 48%; }
.service-bottom-cta--illustrated h2 { max-width: 420px; line-height: 1.12; margin: 0 0 28px; }
.service-bottom-cta__art {
  position: absolute; right: -3%; top: -24%; width: 65%; height: 150%;
  object-fit: cover; object-position: center; pointer-events: none;
  mix-blend-mode: multiply;
  mask-image: linear-gradient(to right, transparent, #000 24%);
}
@media (max-width: 700px) {
  .footer-cta-bridge > .service-bottom-cta--illustrated { min-height: 390px; padding: 30px 24px 190px; }
  .service-bottom-cta--illustrated .service-bottom-cta__copy { width: 100%; }
  .service-bottom-cta--illustrated h2 { max-width: 290px; margin-bottom: 22px; }
  .service-bottom-cta--illustrated .button { width: auto; }
  .service-bottom-cta__art { width: 100%; height: 250px; top: auto; bottom: -72px; right: -10%; mask-image: linear-gradient(to bottom, transparent, #000 28%); }
}

.whatsapp-fab { position: relative; }
.whatsapp-fab__tooltip {
  position: absolute; bottom: calc(100% + 16px); right: -4px;
  width: max-content; max-width: calc(100vw - 40px); padding: 10px 14px;
  border-radius: 10px; background: #173f3b; color: #fff;
  font-size: 14px; font-weight: 600; line-height: 1.5;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .15);
  visibility: hidden; opacity: 0; pointer-events: none;
}
.whatsapp-fab:is(:hover, :focus-visible) .whatsapp-fab__tooltip { visibility: visible; opacity: 1; }

.faq-accordion__links { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.faq-accordion__links a { color: var(--teal); text-decoration: underline; text-underline-offset: 4px; }

.account-mobile-navigation { display: none; }
body.account-sidebar-open { overflow: hidden; }
.account-sidebar-drawer { box-sizing: border-box; position: fixed; inset: 0 auto 0 0; margin: 0; width: min(340px, 88vw); height: 100dvh; max-height: 100dvh; max-width: none; padding: 24px 20px; border: 0; border-radius: 0 20px 20px 0; background: #fff; color: var(--ink); }
.account-sidebar-drawer::backdrop { background: rgba(15, 40, 35, .4); }
.account-sidebar-drawer__heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.account-sidebar-drawer__heading h2 { font-family: var(--sans); font-size: 22px; margin: 0; }
.account-sidebar-drawer__heading button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 28px; cursor: pointer; }
@media (max-width: 980px) {
  .account-workspace-header { backdrop-filter: none; background: #fff; }
  .account-mobile-navigation { display: block; position: fixed; left: calc(16px + env(safe-area-inset-left)); bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 50; }
  .account-mobile-navigation__trigger { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 12px 18px; border: 1px solid #c6ddd7; border-radius: 999px; background: #fff; color: var(--teal); box-shadow: 0 4px 18px rgba(25, 62, 54, .16); font-weight: 700; cursor: pointer; }
  .account-mobile-navigation__trigger .button-icon { width: 20px; height: 20px; flex-shrink: 0; }
  .account-mobile-navigation__trigger:hover { background: var(--teal-soft); }
  .account-mobile-navigation__trigger:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
  body:has(.case-floating-actions.is-floating) .account-mobile-navigation { bottom: calc(104px + env(safe-area-inset-bottom)); }
  body .account-workspace-footer { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
}

/* Corporate and partner screens use the account workspace scale. */
.account-navigation-content > .organisation-workspace {
  width: auto; max-width: none; margin: 0; padding: 20px 32px 56px; min-width: 0;
}
.organisation-workspace .case-titlebar { margin: 24px 0; gap: 20px; }
.organisation-workspace h1 { font-family: var(--sans); font-size: 30px; line-height: 1.2; margin: 0 0 8px; }
.organisation-workspace .case-titlebar .eyebrow { display: none; }
.organisation-workspace .case-titlebar p { font-size: 15px; line-height: 1.6; margin: 0; }
.organisation-workspace .case-panel { padding: 24px; border-radius: 14px; box-shadow: none; margin-block: 24px; }
.organisation-workspace h2 { font-family: var(--sans); font-size: 20px; line-height: 1.3; }
.organisation-workspace .case-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-block: 24px; }
.organisation-workspace .case-summary article { padding: 16px; border-radius: 12px; box-shadow: none; min-width: 0; }
.organisation-workspace .case-summary strong { font-size: 20px; overflow-wrap: anywhere; }
.organisation-workspace .referral-grid { display: block; }
.organisation-workspace .button { min-height: 42px; padding: 10px 16px; font-size: 14px; }
.organisation-workspace .referral-form { max-width: 760px; }
.organisation-workspace .table-panel { overflow-x: auto; }
.organisation-workspace .partner-onboarding__heading { padding: 24px 0; }
@media(max-width:700px) {
  .organisation-workspace .case-titlebar { flex-direction: column; }
  .organisation-workspace .case-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .organisation-workspace .case-panel { padding: 18px; }
}

@media (max-width: 980px) {
  .account-navigation-content > .organisation-workspace { padding: 16px 18px 36px; }
}

/* Start workspace breadcrumbs on the same row as the first sidebar label. */
@media (min-width: 701px) {
  body .account-navigation-content > :is(.account-shell.dashboard-home, .case-shell) {
    padding-top: 0;
  }
  .account-desktop-sidebar .account-navigation > a:first-child {
    box-sizing: border-box;
    min-height: 46px;
  }
  .account-navigation-content .dashboard-breadcrumbs {
    box-sizing: border-box;
    min-height: 46px;
    padding-block: 0;
  }
}

.account-workspace-footer { display: block; color: var(--muted); }
body:has(> .account-workspace-footer) > .site-header,
body:has(> .account-workspace-footer) > .account-workspace-footer { flex-shrink: 0; }
body:has(> .account-workspace-footer) > main { flex: 1 0 auto; }
body:has(> .account-workspace-footer) .account-shell.dashboard-home { min-height: 0; }
body > .account-workspace-footer { margin-top: auto; }
.account-workspace-footer__inner { max-width: 1312px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.account-workspace-footer__links, .account-workspace-footer__links > nav { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.account-workspace-footer small { font-size: 13px; }
.account-footer-language { position: relative; }
.account-footer-language summary { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; list-style: none; }
.account-footer-language summary::-webkit-details-marker { display: none; }
.account-footer-language summary::after { content: "⌄"; }
.account-footer-language .button-icon { width: 16px; height: 16px; }
.account-footer-language__options { position: absolute; bottom: calc(100% + 8px); left: 0; z-index: 20; min-width: 180px; padding: 6px; background: white; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px #173f3b20; }
.account-footer-language__options a { display: block; padding: 10px 12px; border-radius: 6px; text-decoration: none; }
.account-footer-language__options a:is(:hover, :focus-visible, [aria-current]) { background: #e9f4f1; color: #176e66; }
@media (max-width: 700px) {
  .account-workspace-footer__inner { flex-direction: column; align-items: center; gap: 18px; text-align: center; }
  .account-workspace-footer__links { display: contents; }
  .account-workspace-footer__links > nav { order: 1; justify-content: center; flex-wrap: nowrap; gap: 24px; }
  .account-workspace-footer__inner > small { order: 2; }
  .account-workspace-footer .account-footer-language { order: 3; }
  .account-footer-language__options { left: 50%; transform: translateX(-50%); text-align: left; }
}

/* Let the action dock use spare viewport height on short case pages. */
body .case-shell.case-workspace { display: flex; flex-direction: column; flex: 1 0 auto; width: 100%; box-sizing: border-box; }
.case-workspace > .case-workspace-layout { margin-bottom: 32px; }
.case-workspace > .case-action-slot { margin-top: auto; }

.toast-stack { position: fixed; top: calc(var(--header-height, 72px) + 16px); right: 24px; z-index: 150; width: min(420px, calc(100vw - 32px)); display: grid; gap: 12px; pointer-events: none; }
.site-toast { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border: 1px solid #c6ddd7; border-radius: 14px; background: #fff; box-shadow: 0 8px 30px #173f3b26; color: var(--ink); pointer-events: auto; animation: toast-enter 180ms ease-out; }
.site-toast__icon { display: grid; place-items: center; flex: 0 0 24px; height: 24px; border-radius: 50%; background: #e9f4f1; color: #176e66; font-weight: 700; }
.site-toast--alert { border-color: #e8c5b8; }
.site-toast--alert .site-toast__icon { background: #fff0e9; color: #923a20; }
.site-toast p { flex: 1; margin: 0; font-size: 14px; line-height: 24px; overflow-wrap: anywhere; }
.site-toast button { display: grid; place-items: center; flex: 0 0 32px; height: 32px; margin: -4px -4px -4px 0; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 24px; cursor: pointer; }
.site-toast button:hover { background: #f2f5f2; }
@keyframes toast-enter { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 700px) { .toast-stack { right: 16px; } }
@media (prefers-reduced-motion: reduce) { .site-toast { animation: none; } }

.case-overview-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-block: 32px; }
.case-overview-links > a { display: flex; align-items: center; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; }
.case-overview-links > a:hover { background: #f2f7f5; border-color: #9bc9be; }
.case-overview-links__icon { display: grid; place-items: center; padding: 10px; border-radius: 10px; background: #e9f4f1; color: #176e66; }
.case-overview-links .button-icon { width: 22px; height: 22px; }
.case-overview-links strong, .case-overview-links small { display: block; }
.case-overview-links small { margin-top: 6px; color: var(--muted); }
.case-overview-links > a > span:last-child { margin-left: auto; }
.case-overview-activity { padding-top: 24px; border-top: 1px solid var(--line); }
@media(max-width: 700px) { .case-overview-links { grid-template-columns: 1fr; } }

.case-sidebar-return { padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.case-sidebar-return a { font-weight: 600; color: var(--muted); }
.case-workspace-sidebar .case-sidebar-label { display: block; margin: 0 12px 12px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.case-floating-actions a { flex: 1 1 0; min-width: 0; }
.case-floating-actions a span { white-space: nowrap; }

.case-index-workspace .case-titlebar { margin: 22px 0; }
.case-index-workspace .case-titlebar h1 { font-family: var(--sans); font-size: 32px; line-height: 1.2; letter-spacing: -.7px; }
.case-index-workspace .case-titlebar p { font-size: 14px; line-height: 1.6; margin-top: 5px; }
.case-index-workspace .case-titlebar .button { min-height: 42px; padding: 10px 16px; font-size: 14px; border-radius: 10px; }
@media (max-width: 700px) {
  .account-navigation-content > .case-index-workspace { padding: 16px 18px 36px; }
  .case-index-workspace .case-titlebar h1 { font-size: 26px; }
}

.case-header-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; flex-shrink: 0; max-width: 45%; }
.case-header-people { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.case-person { position: relative; }
.case-person summary { list-style: none; cursor: pointer; border-radius: 50%; }
.case-person summary::-webkit-details-marker { display: none; }
.case-person summary .case-card-avatar { width: 38px; height: 38px; border: 2px solid white; font-size: 12px; }
.case-person summary:is(:hover, :focus-visible) { outline: 2px solid var(--teal); outline-offset: 2px; }
.case-person__card { position: absolute; top: calc(100% + 10px); right: 0; z-index: 60; width: 270px; max-width: calc(100vw - 36px); padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 30px #173f3b26; }
.case-person__card strong, .case-person__card > span, .case-person__card a { display: block; }
.case-person__card > span { margin-top: 5px; font-size: 13px; color: var(--muted); }
.case-person__card a { padding-block: 9px; color: #176e66; font-size: 14px; font-weight: 600; }
.case-header-people__add { display: grid; place-items: center; width: 38px; height: 38px; border: 1px dashed #9bc9be; border-radius: 50%; text-decoration: none; color: #176e66; font-size: 22px; }
@media (max-width: 700px) {
  .case-workspace-heading { flex-wrap: wrap; }
  .case-header-meta { max-width: 100%; width: 100%; flex-direction: row; justify-content: space-between; align-items: center; }
  .case-person { position: static; }
  .case-header-people { position: relative; }
}

.trust-copy > .eyebrow { margin: 0 0 18px; color: var(--teal); }



body:has(.home-section-nav) .timeline-care-copy {
  top: calc(var(--home-header-height, 116px) + 32px);
}

.home-will-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; gap: clamp(28px, 4vw, 64px); }
.home-will-intro__art { width: 100%; height: auto; object-fit: contain; border-radius: 16px; }
.home-will-intro__copy { display: grid; justify-items: start; gap: 20px; }
.home-will-intro__copy > :is(h2, p) { margin: 0; }
.home-will-intro__copy h2 { font-size: clamp(30px, 3vw, 44px); line-height: 1.15; }
.home-will-intro__copy p:not(.eyebrow) { color: var(--muted); line-height: 1.7; }
@media (max-width: 700px) { .home-will-intro { grid-template-columns: 1fr; } .home-will-intro__art { max-width: 440px; justify-self: center; } }

.planning-empty { width: min(960px, calc(100% - 48px)); margin: 12px auto 48px; padding: 32px; display: flex; align-items: center; justify-content: center; gap: 32px; background: #f6f9f7; border: 1px solid var(--line); border-radius: 18px; }
.planning-empty[hidden] { display: none; }
.planning-empty__art { width: 220px; height: 150px; object-fit: contain; }
.planning-empty h2 { font-size: 28px; margin-bottom: 12px; }
.planning-empty p { color: var(--muted); line-height: 1.6; max-width: 360px; }
.planning-selection-status { text-align: center; padding: 32px 0; }
@media (max-width: 650px) { .planning-empty { flex-direction: column; text-align: center; gap: 16px; padding: 24px; } .planning-empty__art { width: 180px; height: 120px; } }

/* Give the will introduction the full reading width before the illustrated steps. */
.service-knowledge-section > .service-will-introduction { max-width: none; margin-bottom: 48px; }
.service-will-introduction__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 28px; }
.service-will-introduction__grid > div { border-top: 2px solid #d6e5de; padding-top: 20px; }
.service-will-introduction__grid h3 { margin: 0 0 12px; font-family: var(--sans); font-size: 20px; font-weight: 700; line-height: 1.35; }
.service-section-copy .service-will-introduction__grid p { margin: 0; max-width: none; color: var(--muted); font-size: 17px; line-height: 1.65; }
@media (max-width: 700px) {
  .service-will-introduction__grid { grid-template-columns: 1fr; gap: 22px; margin-top: 24px; }
  .service-will-introduction__grid > div { padding-top: 16px; }
  .service-knowledge-section > .service-will-introduction { margin-bottom: 36px; }
}

.form-collection-note__links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.form-collection-note .service-disclosure > p { margin: 0 0 8px; font: inherit; color: inherit; }

/* Form controls use editorial ink drawings; small action marks stay legible. */
.timeliss-icon__sketch { display: none; }
:is(form, .auth-panel, .form-conversation, .choice-list) .timeliss-icon__standard { display: none; }
:is(form, .auth-panel, .form-conversation, .choice-list) .timeliss-icon__sketch { display: inline; }
/* Action buttons use compact line icons; choice illustrations stay larger. */
body .button .timeliss-icon__standard { display: inline; }
body .button .timeliss-icon__sketch { display: none; }
body .auth-panel .timeliss-icon__standard { display: inline; }
body .auth-panel .timeliss-icon__sketch { display: none; }
svg.timeliss-icon .timeliss-icon__brush { fill: currentColor; stroke: none; }
svg.timeliss-icon .timeliss-icon__pen { stroke-width: 1.7; }
svg.timeliss-icon .timeliss-icon__pen--1 { stroke-width: 1.15; }
svg.timeliss-icon .timeliss-icon__pen--2 { stroke-width: 2.1; }
:is(form, .auth-panel) .button .timeliss-icon:has(.timeliss-icon__drawing) { width: 30px; height: 30px; }
.intake-choice-option__body .timeliss-icon { width: 54px; height: 54px; flex: 0 0 54px; }
.intake-choice-option__body { gap: 14px; }
.auth-method-switch .timeliss-icon { width: 30px; height: 30px; }
@media (max-width: 600px) {
  .intake-choice-option__body .timeliss-icon { width: 44px; height: 44px; flex-basis: 44px; }
}

/* Let the closing card provide separation, with one shared gap before it. */
body main > :has(+ .footer-cta-bridge) {
  margin-bottom: 0;
}
body main > :is(.public-band, .content-page-shell, .country-page):has(+ .footer-cta-bridge) {
  padding-bottom: 0;
  border-bottom: 0;
}
body main > .country-page:has(+ .footer-cta-bridge) > .country-faq:last-child {
  padding-bottom: 0;
}

/* Shared select fields and their expanded menus use the Timeliss form treatment. */
body select:not([multiple]):not([size]) {
  appearance: none;
  -webkit-appearance: none;
  min-height: 48px;
  border: 1px solid #d4d9d0;
  border-radius: 12px;
  padding: 12px 44px 12px 16px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%2323978e' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 15px center;
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--sans);
  cursor: pointer;
}
body .select-control select:not([multiple]):not([size]) { background-image: none; }
body select:not([multiple]):not([size]):focus-visible { outline: 3px solid #23978e33; outline-offset: 2px; border-color: var(--teal); }
body select:disabled { cursor: not-allowed; opacity: .6; }
@supports (appearance: base-select) {
  body select:not([multiple]):not([size]),
  body select:not([multiple]):not([size])::picker(select) {
    appearance: base-select;
    -webkit-appearance: base-select;
  }
  body select:not([multiple]):not([size])::picker-icon { display: none; }
  body select:not([multiple]):not([size])::picker(select) {
    margin-block: 6px;
    padding: 6px;
    border: 1px solid #d6e5de;
    border-radius: 14px;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 12px 32px #183f3926;
    max-height: min(360px, 60dvh);
    overflow-y: auto;
    font-family: var(--sans);
    font-size: 16px;
  }
  body select:not([multiple]):not([size]) option {
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 8px;
    gap: 12px;
    white-space: normal;
  }
  body select:not([multiple]):not([size]) option:checked { background: #e8f4f1; color: #176c65; font-weight: 600; }
  body select:not([multiple]):not([size]) option:is(:hover, :focus) { background: #f0f7f5; outline: none; }
  body select:not([multiple]):not([size]) option::checkmark { color: #23978e; }
  body select:not([multiple]):not([size]) optgroup { padding: 6px 0; }
}
body .intake-wizard-page select:not([multiple]):not([size]) { min-height: 56px; }
body .service-start-form__select select:not([multiple]):not([size]) { background-image: none; }

/* Keep native country menus descriptive and the closed phone prefix compact. */
.select-control.phone-country-ready { position: relative; }
body .select-control.phone-country-ready > select:not([multiple]):not([size]) { color: transparent; }
.select-control.phone-country-ready > select option { color: var(--ink); }
.phone-country-selected {
  position: absolute;
  inset: 0 30px 0 16px;
  display: flex;
  align-items: center;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  color: var(--ink);
  font-size: inherit;
}

.intake-choice-grid--illustrated-goals .intake-choice-option__body {
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 18px 14px;
  text-align: center;
}
.intake-choice-grid--illustrated-goals .intake-choice-option__body > span { width: 100%; min-width: 0; }
.intake-choice-grid--illustrated-goals .intake-choice-option__body strong { line-height: 1.4; }

.intake-wizard-form .intake-verification-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.will-builder .will-contact-help {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.will-email-row { align-items: end; }
.will-builder .will-email-row .will-contact-help { margin: 0; align-self: center; padding-top: 24px; }
@media (max-width: 980px) {
  .will-builder .will-email-row .will-contact-help { padding-top: 0; }
}
.will-account-status { padding-bottom: 24px; border-bottom: 1px solid var(--line); margin-bottom: 0; }
.will-account-status strong { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.will-account-status p { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

.will-builder__visual :is(.will-account-status, .will-support-details, .will-support-channel, .will-save-panel) :is(strong, summary) {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}

.will-builder__visual :is(.will-account-status, .will-support-details, .will-save-panel) p {
  font-size: 14px;
  line-height: 1.6;
}

/* Match the country field and action in every service start form. */
body .service-start-form__select select:not([multiple]):not([size]),
body .service-start-form > .button {
  box-sizing: border-box;
  height: 60px;
  min-height: 60px;
  align-self: center;
}

.planning-guidance-note {
  box-sizing: border-box;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.planning-guidance-note summary { cursor: pointer; font-weight: 600; }
.planning-guidance-note p { margin: 12px 0 8px; }
.planning-guidance-note a { color: var(--teal); text-decoration: underline; }

/* A continuous path follows reading order, turning back across the second row. */
.will-service-journey { list-style: none; margin: 0 24px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 64px; }
.will-service-journey > li { position: relative; min-width: 0; text-align: center; }
.will-service-journey > li:nth-child(4) { grid-column: 3; grid-row: 2; }
.will-service-journey > li:nth-child(5) { grid-column: 2; grid-row: 2; }
.will-service-journey > li:nth-child(6) { grid-column: 1; grid-row: 2; }
.will-service-journey > li::after { content: ""; position: absolute; top: 24px; border-top: 2px solid #a8cec4; width: 100%; left: 50%; }
.will-service-journey > li:nth-child(3)::after { left: 50%; width: calc(50% + 24px); height: calc(100% + 64px); border: 2px solid #a8cec4; border-left: 0; border-radius: 0 32px 32px 0; box-sizing: border-box; }
.will-service-journey > li:nth-child(4)::after,
.will-service-journey > li:nth-child(5)::after { left: auto; right: 50%; }
.will-service-journey > li:last-child::after { display: none; }
.will-service-journey__illustration { position: relative; z-index: 1; display: grid; place-items: center; width: 64px; height: 48px; margin: 0 auto 20px; background: #edf8f5; }
.will-service-journey__icon { display: block; width: 48px; height: 48px; }
.will-service-journey .timeliss-icon__standard { display: none; }
.will-service-journey .timeliss-icon__sketch { display: inline; }
.will-service-journey__copy { padding: 0 24px; }
.will-service-journey h3 { margin: 0 0 10px; font-size: 20px; line-height: 1.3; }
.will-service-journey p { max-width: 270px; margin: 0 auto; color: var(--muted); font-size: 15px; line-height: 1.6; }
@media (max-width: 700px) {
  .will-service-journey { grid-template-columns: 1fr; gap: 28px; margin: 0; }
  .will-service-journey > li { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 20px; text-align: left; }
  .will-service-journey > li:nth-child(n) { grid-column: auto; grid-row: auto; }
  .will-service-journey > li:nth-child(n)::after { left: 23px; right: auto; top: 24px; width: 0; height: calc(100% + 28px); border: 0; border-left: 2px solid #a8cec4; border-radius: 0; }
  .will-service-journey__illustration { margin: 0; width: 48px; }
  .will-service-journey__copy { padding: 10px 0 0; }
  .will-service-journey p { max-width: none; }
}


.service-will-checklist .service-knowledge-steps article,
.service-will-checklist .service-knowledge-steps article.is-active { opacity: 1; transform: none; }
.will-preparation-checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 22px; }
.will-preparation-checklist li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: start; }
.will-preparation-checklist__check { width: 20px; height: 20px; margin-top: 2px; color: var(--ink); }
.will-preparation-checklist h4 { margin: 0 0 6px; font: 700 17px/1.4 var(--sans); }
.service-will-checklist .will-preparation-checklist p { font-size: 15px; line-height: 1.55; }

/* Centre the selected country inside the service form's fixed-height field. */
body .service-start-form__select select:not([multiple]):not([size]) {
  display: flex;
  align-items: center;
  padding-block: 0;
  line-height: 1.5;
}

/* Fade the will illustrations into the page rather than a rectangular canvas. */
.service-will-checklist .service-knowledge-visuals,
.service-will-checklist .service-knowledge-step-visual { background: transparent; }
.service-will-checklist :is(.service-knowledge-visual, .service-knowledge-step-visual) img {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent), linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent), linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent);
  mask-composite: intersect;
}

.will-checklist-option { width: 100%; }
.service-process-section > header.will-process-heading { max-width: none; }

/* Shared selected-value alignment, including intake and account forms. */
body select:not([multiple]):not([size]) {
  display: flex;
  align-items: center;
  padding-block: 0;
  line-height: 1.5;
}
.select-control__icon {
  box-sizing: border-box;
  right: 14px;
  width: 32px;
  height: 32px;
  padding: 6px;
  border-radius: 50%;
  background: #e5f1ec;
  color: #237d70;
}
.phone-country-ready .select-control__icon { width: 24px; height: 24px; padding: 3px; right: 10px; }

/* Compact illustrations belong to the expanded answer, never the question. */
.will-faq-visual {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 12px;
  margin: 0 0 22px;
  max-width: 760px;
  padding: 0;
  list-style: none;
}
.will-faq-visual li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  color: var(--ink);
}
.will-faq-sketch { display: block; position: relative; width: 112px; height: 112px; overflow: hidden; }
.will-faq-sketch img { position: absolute; width: 300%; height: 200%; max-width: none; }
.will-faq-visual strong { font-size: 15px; line-height: 1.4; }
.will-faq-visual--people { max-width: none; }
.will-faq-person-icon { width: 64px; height: 64px; }
.will-faq-person-icon .timeliss-icon__standard { display: none; }
.will-faq-person-icon .timeliss-icon__sketch { display: inline; }
.will-faq-person-description { font-size: 14px; line-height: 1.5; color: var(--muted); }
.faq-accordion__answer .will-faq-visual__caption { margin-top: 12px; font-size: 14px; font-weight: 600; }
@media (max-width: 600px) {
  .will-faq-visual { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .will-faq-sketch { width: 96px; height: 96px; }
}
.will-faq-visual--roles { position: relative; gap: 36px; max-width: 520px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.will-faq-visual--roles::after {
  content: "≠";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 26px;
  color: var(--ink);
}

.will-executor-rows .person-block[hidden], .will-executor-rows button[hidden] { display: none; }

.will-guardian-section { display: grid; gap: 12px; }
.will-guardian-actions { display: flex; align-items: start; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
.will-guardian-actions > .button { width: auto; }
.will-guardian-section [hidden] { display: none; }

.will-builder__actions { align-items: center; }
.will-continue-hint { flex: 1 1 180px; text-align: right; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.will-continue-hint[hidden] { display: none; }


body .will-builder .intake-phone-control-group :is(select, input[type="tel"]) {
  height: 100%; min-height: 0; min-width: 0; border: 0; border-radius: 0; outline-offset: -3px;
}

.will-specific-gifts { display: grid; gap: 16px; }
.will-specific-gift [hidden], .will-step [data-residue-substitute][hidden] { display: none; }

.will-save-panel [hidden] { display: none; }
.will-guardian-add { display: grid; gap: 8px; justify-items: end; }
.will-guardian-help-link { border: 0; padding: 0; background: none; color: var(--teal); font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.will-guardian-dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); overflow-y: auto; margin: auto; padding: 28px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: #fff; }
.will-guardian-dialog::backdrop { background: rgb(20 40 35 / 45%); }
.will-guardian-dialog h2 { font-size: 26px; margin: 0 32px 18px 0; }
.will-guardian-dialog p { font-size: 15px; line-height: 1.6; margin: 0 0 16px; }
.will-guardian-dialog > .will-guardian-dialog__external { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 24px; color: var(--teal); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.will-guardian-dialog__external .button-icon { width: 18px; height: 18px; flex-shrink: 0; }
.will-guardian-dialog__dismiss { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 8px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.will-guardian-dialog__dismiss:hover { background: #e6f2ef; }
.will-guardian-dialog__actions { display: flex; justify-content: flex-end; }
.will-guardian-dialog__actions > .button { width: auto; }

/* WhatsApp landing page: shared illustrated hero, clear benefits and next steps. */
.whatsapp-page .content-page-hero__art { mix-blend-mode: multiply; }
.whatsapp-page .hero-actions { align-items: center; gap: 20px; }
.whatsapp-text-link { color: var(--teal); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.whatsapp-page .content-page-hero .whatsapp-hero-note { font-size: 14px; line-height: 1.6; margin-top: 18px; }
.whatsapp-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.whatsapp-benefit-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: var(--teal); background: #e6f2ef; margin-bottom: 16px; }
.whatsapp-benefit-icon .button-icon { width: 24px; height: 24px; }
.whatsapp-benefits h2 { font-size: 25px; line-height: 1.2; margin: 0 0 12px; }
.whatsapp-benefits p, .whatsapp-workflow p, .whatsapp-questions p { color: var(--muted); font-size: 16px; line-height: 1.7; margin: 0; }
.whatsapp-workflow, .whatsapp-questions { display: grid; grid-template-columns: 1fr 1.3fr; gap: 80px; }
.whatsapp-section-intro h2, .whatsapp-questions h2 { font-size: clamp(32px, 3vw, 44px); line-height: 1.15; margin: 16px 0 20px; }
.whatsapp-section-intro .whatsapp-text-link { display: inline-block; margin-top: 20px; }
.whatsapp-steps { list-style: none; padding: 0; margin: 0; }
.whatsapp-steps li { display: flex; gap: 22px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.whatsapp-steps li:first-child { padding-top: 0; }
.whatsapp-steps li > span { color: var(--teal); font-size: 14px; font-weight: 800; padding-top: 6px; }
.whatsapp-steps h3 { font-size: 25px; margin: 0 0 10px; }
.whatsapp-questions { border-top: 1px solid var(--line); padding-top: 48px; }
.whatsapp-faq-list details { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 20px 0; }
.whatsapp-faq-list details:first-child { padding-top: 0; }
.whatsapp-faq-list summary { cursor: pointer; font-size: 16px; font-weight: 700; }
.whatsapp-faq-list details p { margin-top: 16px; }
.whatsapp-faq-list .whatsapp-text-link { display: inline-block; margin-top: 12px; }
.whatsapp-closing-cta .button { flex-shrink: 0; }
.whatsapp-workflow { scroll-margin-top: 100px; }
@media (max-width: 700px) {
  .whatsapp-workflow, .whatsapp-questions { grid-template-columns: 1fr; gap: 28px; }
  .whatsapp-page .hero-actions { align-items: flex-start; flex-direction: column; }
  .whatsapp-page .content-page-hero h1 { font-size: 40px; }
  .whatsapp-questions { padding-top: 32px; }
}

.will-allocation-help-link { justify-self: start; text-align: left; margin-bottom: 8px; }
.will-allocation-dialog { width: min(680px, calc(100vw - 32px)); }
.will-allocation-examples { display: grid; gap: 20px; margin: 24px 0; }
.will-allocation-examples article { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 18px; align-items: start; }
.will-allocation-examples h3 { font-size: 17px; margin: 0 0 6px; }
.will-allocation-examples p { margin: 0; }
.will-allocation-illustration { width: 64px; height: 64px; color: var(--teal); }
.will-allocation-illustration .timeliss-icon__standard { display: none; }
.will-allocation-illustration .timeliss-icon__sketch { display: inline; }
.will-allocation-dialog .will-allocation-caveat { color: var(--muted); font-size: 13px; }
@media (max-width: 480px) {
  .will-allocation-examples article { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; }
  .will-allocation-illustration { width: 40px; height: 40px; }
}

.will-allocation-section { display: grid; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); }
.will-allocation-section > header { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 4px; }
.will-allocation-number { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex-shrink: 0; background: #e6f2ef; color: var(--teal); border-radius: 50%; font-weight: 800; }
.will-allocation-section > header h3 { font-size: 21px; margin: 3px 0 8px; line-height: 1.25; }
.will-allocation-section > header h3 small { font-size: 14px; color: var(--muted); font-weight: 400; }
.will-allocation-section > header p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.will-allocation-section > .button { justify-self: end; width: auto; }
.will-allocation-section .beneficiary-row { background: var(--soft); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.will-allocation-section .will-contact-help { margin-bottom: 0; }

.will-allocation-section .beneficiary-row {
  position: relative;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(80px, .45fr);
  align-items: end;
}
.will-allocation-section .beneficiary-row input:not([type="hidden"]),
.will-allocation-section .beneficiary-row select {
  box-sizing: border-box;
  height: 52px;
  min-height: 52px;
}
.will-allocation-section .beneficiary-row .select-control { height: 52px; }
.will-specific-gift { position: relative; padding-top: 40px; }
.will-allocation-section .beneficiary-row .icon-button,
.will-specific-gift .will-gift-remove {
  position: absolute; top: 6px; right: 6px;
  width: 32px; height: 32px; padding: 6px;
  color: #737b78; background: transparent; border: 0; border-radius: 6px;
}
.will-allocation-section .beneficiary-row .icon-button { top: 10px; right: 8px; }
.will-allocation-section .beneficiary-row > div:last-of-type label { padding-right: 28px; }
@media (max-width: 900px) {
  .will-allocation-section .beneficiary-row > div:first-of-type label { padding-right: 28px; }
}
.will-allocation-section .beneficiary-row .icon-button:hover,
.will-specific-gift .will-gift-remove:hover { color: var(--ink); background: #edf0ee; }
@media (max-width: 900px) {
  .will-allocation-section .beneficiary-row { grid-template-columns: 1fr; }
}

.will-professional-review { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; align-items: start; padding: 24px; }
.will-professional-review__art { width: 64px; height: 64px; }
.will-professional-review h3 { margin: 0 0 10px; font-size: 23px; line-height: 1.25; }
.will-professional-review p { margin: 0 0 16px; }
.will-professional-review .will-professional-review__choice { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 14px; cursor: pointer; line-height: 1.5; }
.will-professional-review__choice input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 3px; }
.will-professional-review .will-contact-help { margin-bottom: 0; }
@media (max-width: 600px) {
  .will-professional-review { grid-template-columns: 1fr; gap: 12px; padding: 20px; }
}

.will-review-summary { display: grid; gap: 18px; }
.will-review-card { border: 1px solid var(--line); border-radius: 14px; padding: 22px; background: #fff; }
.will-review-card header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.will-review-card h3 { margin: 0; font-size: 21px; }
.will-review-heading { display: flex; align-items: center; gap: 14px; min-width: 0; }
.will-review-illustration { width: 56px; height: 56px; flex: 0 0 56px; }
.will-review-heading .timeliss-icon__standard { display: none; }
.will-review-heading .timeliss-icon__sketch { display: inline; }
.will-review-card :is(dt, dd) strong { color: var(--ink); font-weight: 750; }
@media (max-width: 600px) {
  .will-review-heading { gap: 10px; }
  .will-review-illustration { width: 44px; height: 44px; flex-basis: 44px; }
  .will-review-card h3 { font-size: 19px; }
}
.will-review-card dl { display: grid; gap: 12px; margin: 0; }
.will-review-card dl > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: first baseline; gap: 20px; }
.will-review-card :is(dt, dd) { min-width: 0; margin: 0; padding: 0; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.will-review-card dt { color: var(--muted); }
.will-review-card dd.will-review-empty { color: #707975; font-style: italic; }
.will-signing-warning { display: flex; gap: 16px; padding: 24px; background: #fff8e7; border: 1px solid #d9b35b; border-left: 4px solid #b58625; border-radius: 12px; }
.will-signing-warning > .button-icon { flex: 0 0 28px; width: 28px; height: 28px; color: #855f16; }
.will-signing-warning h2 { margin: 0 0 10px; font-size: 25px; }
.will-signing-warning p { line-height: 1.6; }
.will-signing-warning a { color: var(--teal); text-decoration: underline; }
.will-post-generation { padding: 28px 0; }
@media (max-width: 600px) {
  .will-review-card { padding: 18px; }
  .will-review-card dl > div { grid-template-columns: 1fr; gap: 3px; }
}

/* Give generated-will content one shared width and spacing rhythm. */
.will-result-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.will-result-page > * { width: 100%; min-width: 0; max-width: none; margin: 0; box-sizing: border-box; }
.will-result-page .will-result-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
.will-result-grid > .result-panel { width: 100%; min-width: 0; margin: 0; box-sizing: border-box; }
.will-result-page > .will-post-generation { padding-block: 0; }

[data-controller~="pdf-download"] [hidden] { display: none !important; }
.pdf-download-spinner { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: pdf-download-spin .8s linear infinite; }
[data-pdf-download-target="document"], [data-pdf-download-target="check"] { display: inline-flex; }
.will-result-hero .pdf-download-status { flex-basis: 100%; margin: 0; font-size: 14px; color: var(--muted); }
@keyframes pdf-download-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pdf-download-spinner { animation: none; } }

/* The generated draft hands off to the case's single finishing checklist. */
.will-result-hero h1 { max-width: 920px; font-size: clamp(36px, 4.5vw, 60px); }
.will-case-handoff { display: flex; gap: 28px; align-items: flex-start; background: #f2f8f6; }
.will-case-handoff > .will-service-journey__illustration { flex: 0 0 80px; }
.will-case-handoff h2, .will-result-summary h2 { font-size: 30px; margin: 0 0 12px; }
.will-result-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.will-result-summary h3 { margin-top: 0; }
.will-result-note { color: var(--muted); line-height: 1.6; }
.will-preview-page { max-width: 1000px; margin: auto; padding: 64px 28px 100px; }
.will-preview-page header { margin: 32px 0; }
.will-preview-page h1 { font-size: clamp(32px, 5vw, 48px); overflow-wrap: anywhere; }
.will-preview-paper { padding: clamp(24px, 5vw, 64px); background: #fffefa; border: 1px solid #deddd5; border-radius: 12px; font: 18px/1.8 Georgia, serif; overflow-wrap: anywhere; }
.will-case-checklist > header h2 { margin: 0; }
.will-case-checklist .will-signing-warning { margin: 20px 0; }
.will-case-checklist .will-signing-warning p { margin-bottom: 0; }
.will-finish-list { list-style: none; margin: 0; padding: 0; }
.will-finish-list > li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; padding: 28px 0; border-bottom: 1px solid #e4e3dc; }
.will-finish-list h3 { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font: 700 20px/1.4 var(--font-body, sans-serif); margin: 0 0 8px; }
.will-finish-list h3 small { font-size: 12px; font-weight: 500; color: #54716b; background: #edf5f2; border-radius: 20px; padding: 4px 10px; }
.will-finish-icon .button-icon { width: 48px; height: 48px; color: #138e87; }
.will-finish-list p { line-height: 1.6; }
.will-finish-list details { margin: 16px 0; }
.will-finish-list summary { cursor: pointer; color: #007c76; font-weight: 600; }
.will-finish-list .hero-actions { margin: 16px 0; gap: 12px; }
.will-help-offer { display: flex; gap: 20px; margin: 24px 0; padding: 24px; background: #f8f7f2; border-radius: 12px; }
.will-help-offer > .button-icon { flex: 0 0 40px; height: 40px; color: #138e87; }
.will-help-offer h3 { margin-top: 0; }
.will-case-document { display: flex; gap: 20px; padding: 24px; margin: 20px 0; background: #f4f8f6; border: 1px solid #dce7e2; border-radius: 12px; }
.will-case-document > .button-icon { width: 40px; height: 40px; flex-shrink: 0; }
.will-case-document h3 { margin: 0; }
.will-suggested-people { padding: 0; list-style: none; }
.will-suggested-people li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px; border: 1px solid #e4e3dc; border-radius: 12px; margin: 12px 0; }
.will-suggested-people li > div { display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.will-suggested-people small, .will-suggested-people span { color: var(--muted); }
#prepared-invitation { padding: 20px; background: #edf5f2; scroll-margin-top: 100px; }
@media (max-width: 650px) {
  .will-result-summary { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .will-case-handoff { flex-direction: column; }
  .will-case-handoff > .will-service-journey__illustration { flex-basis: auto; }
  .will-finish-list > li { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; }
  .will-finish-icon .button-icon { width: 32px; height: 32px; }
  .will-suggested-people li { align-items: flex-start; flex-direction: column; }
  .will-help-offer { padding: 18px; }
}
.will-download { display: inline-flex; flex-direction: column; gap: 8px; max-width: 100%; }
.will-download .pdf-download-status { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; max-width: 260px; }

.will-finish-icon .timeliss-icon__standard, .will-case-handoff .timeliss-icon__standard { display: none; }
.will-finish-icon .timeliss-icon__sketch, .will-case-handoff .timeliss-icon__sketch { display: inline; }
.will-case-handoff > .will-service-journey__illustration { height: 80px; border-radius: 50%; }
.will-case-handoff > .will-service-journey__illustration .button-icon { width: 64px; height: 64px; }
.will-result-page .hero-actions, .will-case-checklist .hero-actions { align-items: flex-start; }
.will-result-hero .will-download .pdf-download-status { margin: 0; font-size: 13px; line-height: 1.5; }
.will-case-handoff p { line-height: 1.65; margin-bottom: 20px; }
.will-case-handoff .eyebrow { margin-bottom: 10px; }
#will-checklist, #signing-record { scroll-margin-top: 140px; }

.document-upload-dialog { width: min(600px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); margin: auto; padding: 28px; overflow-y: auto; box-sizing: border-box; border: 1px solid var(--line); border-radius: 20px; background: #fff; color: var(--ink); box-shadow: 0 24px 80px #152e3430; }
.document-upload-dialog::backdrop { background: rgb(20 40 35 / 48%); }
.document-upload-dialog header { padding-right: 28px; }
.document-upload-dialog header h2 { margin: 0 0 10px; font-size: 30px; }
.document-upload-dialog header p { color: var(--muted); line-height: 1.5; }
.document-upload-dialog__close { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f1f5f3; color: var(--muted); cursor: pointer; }
.document-upload-dialog .document-upload-form { margin: 22px 0 0; padding: 0; border: 0; }
.document-upload-form .document-file-picker { position: relative; display: grid; justify-items: center; gap: 8px; padding: 24px 18px; border: 1.5px dashed #8bbeb5; border-radius: 12px; background: #f3f9f7; text-align: center; overflow-wrap: anywhere; }
.document-file-picker > .button-icon { width: 32px; height: 32px; color: #098c83; }
.document-file-picker > strong { max-width: 100%; color: #007c76; }
.document-file-picker > span { font-size: 13px; color: var(--muted); }
.document-file-picker:hover { border-color: #007c76; background: #eaf5f1; }
.document-file-picker:focus-within { outline: 2px solid #007c76; outline-offset: 3px; }
.document-upload-form .document-file-picker input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
.document-upload-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px; }
.document-upload-form .document-upload-actions .button { width: auto; }
.document-upload-dialog .document-upload-form > p { font-size: 13px; color: var(--muted); line-height: 1.6; }
@media (max-width: 600px) { .document-upload-dialog { padding: 22px; max-height: calc(100dvh - 24px); } .document-upload-dialog header h2 { font-size: 26px; } }

.case-header-summary { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.case-header-summary a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; min-height: 40px; box-sizing: border-box; border: 1px solid #dce7e3; border-radius: 9px; color: #315f59; background: #f5f9f7; text-decoration: none; font-size: 13px; }
.case-header-summary .button-icon { width: 18px; height: 18px; }
.case-header-summary strong { font-size: 15px; color: var(--ink); }
.case-header-summary a:hover { background: #e8f3ef; border-color: #85b9ae; }
.case-header-summary a:focus-visible { outline: 2px solid #007c76; outline-offset: 3px; }
@media (max-width: 600px) { .case-header-summary { gap: 8px; } .case-header-summary a { padding: 8px 10px; } }

.contact-verification-note,
.case-workspace .case-workspace-overview > .contact-verification-note {
  display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px;
  width: 100%; max-width: none; box-sizing: border-box; margin: 0 0 24px;
  padding: 22px; border: 1px solid #e6d5a6; border-left: 4px solid #b58a2c;
  border-radius: 12px; background: #fffaf0; color: var(--ink);
}
.contact-verification-note__icon .button-icon { width: 26px; height: 26px; color: #947021; }
.contact-verification-note h2 { margin: 0; font: 700 19px/1.35 var(--font-body, sans-serif); }
.contact-verification-note p { margin: 8px 0 12px; font-size: 14px; line-height: 1.6; color: #535d58; }
.contact-verification-note .button { width: fit-content; margin: 0; }
@media (max-width: 600px) { .contact-verification-note, .case-workspace .case-workspace-overview > .contact-verification-note { padding: 18px 16px; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; } }

/* A compact route from a prepared draft to a stored signed copy. */
.case-storage-banner { display: flex; align-items: center; gap: 12px; margin: 0 0 24px; padding: 12px 16px; border-radius: 10px; background: #f0f6f3; color: #395b52; font-size: 13px; line-height: 1.6; }
.case-storage-banner > .button-icon { flex: 0 0 20px; height: 20px; }
.will-progress { margin: 16px 0; }
.will-progress ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.will-progress li { position: relative; display: flex; align-items: center; gap: 8px; padding: 12px 8px; border-bottom: 3px solid #e5ebe8; color: #6d7773; font-size: 14px; }
.will-progress li.is-complete { border-color: #89beb3; color: #315f55; }
.will-progress li.is-current { border-color: #138e87; color: #007c76; background: #f0f8f5; }
.will-progress__number { display: grid; place-items: center; width: 26px; height: 26px; flex-shrink: 0; border: 1px solid #b8d5ce; border-radius: 50%; font-size: 12px; }
.is-complete > .will-progress__number { color: white; background: #138e87; border-color: #138e87; }
.will-progress__number .button-icon { width: 16px; height: 16px; }
.will-progress p { margin: 12px 0 0; color: #42665c; font-size: 14px; line-height: 1.6; }
.will-finish-list > li { display: block; padding: 0; }
.will-finish-list .will-finish-step { margin: 0; }
.will-finish-step > summary { padding: 18px 0; font-size: 17px; color: var(--ink); line-height: 1.5; }
.will-finish-step > summary small { margin-left: 8px; font-size: 12px; color: #5d746b; font-weight: 400; }
.will-finish-step__body { padding: 0 0 20px 20px; }
.will-finish-step__body > p:first-child { margin-top: 0; }
body .case-shell.case-workspace { padding-bottom: 16px; }
.case-workspace > .case-action-slot { padding-top: 20px; }
@media (max-width: 600px) {
  .will-progress li { flex-direction: column; padding: 10px 2px; gap: 6px; font-size: 13px; }
  .case-storage-banner { align-items: flex-start; }
  .case-storage-banner span { display: block; }
  .will-finish-step > summary { font-size: 16px; }
  .will-finish-step__body { padding-left: 0; }
}
.will-finish-step, .will-finish-step__body { min-width: 0; overflow-wrap: anywhere; }
.case-workspace > .case-workspace-layout { margin-bottom: 12px; }
@media (max-width: 600px) { body .case-shell.case-workspace { padding: 16px 18px; } }

.case-service-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 24px 0 32px; }
.case-service-cards article { display: flex; flex-direction: column; align-items: flex-start; padding: 20px; border: 1px solid #dce5df; border-radius: 14px; background: #fafbf8; min-width: 0; }
.case-service-cards article > .button-icon { width: 36px; height: 36px; color: #138e87; margin-bottom: 14px; }
.case-service-cards h3 { font-size: 18px; margin: 0 0 10px; }
.case-service-cards p { font-size: 14px; line-height: 1.6; margin: 0 0 18px; }
.case-service-price { margin-top: auto; color: #42665c; font-size: 14px; }
.case-service-cards small { display: block; margin: 8px 0 18px; color: var(--muted); line-height: 1.5; }
.case-service-cards .button { font-size: 13px; white-space: normal; text-align: center; }
#service-request, #case-quotes { scroll-margin-top: 110px; }
@media (max-width: 1000px) { .case-service-cards { grid-template-columns: minmax(0, 1fr); } }

.case-settings-card { margin-top: 24px; padding: 24px; border: 1px solid #dce5df; border-radius: 14px; background: #fafbf8; }
.case-settings-card h2 { display: flex; align-items: center; gap: 10px; font-size: 19px; margin: 0 0 12px; }
.case-settings-card h2 .button-icon { width: 24px; height: 24px; color: #138e87; }
.case-settings-card p { line-height: 1.6; margin: 12px 0 16px; }
.case-settings-card .case-choice .button-icon { width: 24px; height: 24px; }
@media (max-width: 600px) { .case-settings-card { padding: 18px; } }

.case-people-group { padding: 22px; margin: 24px 0; border: 1px solid #dde5e0; border-radius: 14px; background: #fff; }
.case-people-group h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 10px; font-size: 19px; }
.case-people-group h3 small { color: #5e746b; background: #edf5f1; border-radius: 20px; padding: 5px 10px; font-size: 12px; font-weight: 500; }
.case-people-group > p { margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.case-people-group .people-list { margin-bottom: 0; }
.case-people-group .will-suggested-people { margin-bottom: 0; }
.case-invitation-dialog > p, .case-invitation-dialog .case-share-form p { font-size: 14px; line-height: 1.6; }
.case-invitation-dialog .case-share-form { margin-top: 18px; padding-top: 18px; }
.case-invitation-dialog .document-upload-actions .button { width: auto; }
@media (max-width: 600px) { .case-people-group { padding: 18px; } #share-case > .panel-heading { flex-wrap: wrap; gap: 14px; } }

.case-file-list { list-style: none; margin: 20px 0; padding: 0; border: 1px solid #dce5df; border-radius: 12px; overflow: hidden; }
.case-file-list > li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 20px; background: #fff; }
.case-file-list > li + li { border-top: 1px solid #e3e8e4; }
.case-file-icon .button-icon { width: 28px; height: 28px; color: #138e87; }
.case-file-details { display: grid; gap: 5px; min-width: 0; overflow-wrap: anywhere; }
.case-file-details strong { font-size: 16px; }
.case-file-details span, .case-file-details small { font-size: 13px; color: var(--muted); line-height: 1.5; }
.case-file-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 16px; max-width: 240px; font-size: 14px; }
.case-file-actions .button { min-height: 40px; padding: 8px 14px; }
@media (max-width: 700px) {
  .case-file-list > li { grid-template-columns: 26px minmax(0, 1fr); padding: 16px; gap: 12px; }
  .case-file-actions { grid-column: 2; max-width: none; }
  .case-file-actions .button { width: auto; }
}

.case-storage-usage { padding: 16px; margin: 16px 0; border-radius: 10px; background: #f0f6f3; font-size: 13px; }
.case-storage-usage > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.case-storage-usage progress { display: block; width: 100%; height: 8px; margin: 12px 0; accent-color: #138e87; }
.case-storage-usage p { margin: 0; line-height: 1.6; color: var(--muted); }

.case-workspace > .case-workspace-heading {
  margin: 20px 0 24px;
  padding: 24px;
  border: 1px solid #dce5df;
  border-radius: 16px;
  background: #fafbf8;
  box-shadow: 0 4px 16px rgb(23 63 59 / 4%);
}
.case-workspace-heading > div:first-child { min-width: 0; }
.case-workspace-heading h1 { overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .case-workspace > .case-workspace-heading { padding: 18px; margin: 16px 0 20px; }
}

.case-index-workspace .case-list { grid-template-columns: minmax(0, 1fr); }
.case-index-workspace .case-card { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; box-shadow: 0 4px 18px rgb(23 63 59 / 5%); }
.case-index-workspace .case-card h2 { margin: 0 0 8px; font: 700 21px/1.4 var(--font-body, sans-serif); }
.case-index-workspace .case-card p { margin: 0; font-size: 14px; }
.case-index-workspace .case-card-footer { margin: 0; display: grid; justify-items: end; gap: 10px; }
.case-card-open, .case-planning-action { display: inline-flex; align-items: center; gap: 10px; color: #007c76; font-size: 14px; font-weight: 700; }
.case-card-main .case-status { margin-bottom: 12px; }
.case-planning-suggestions { margin-top: 36px; }
.case-planning-suggestions > h2 { margin-bottom: 10px; font-size: 24px; }
.case-planning-suggestions > p { color: var(--muted); font-size: 14px; line-height: 1.6; max-width: 760px; }
.case-planning-list { display: grid; gap: 16px; margin-top: 20px; }
.case-planning-card { display: grid; grid-template-columns: 108px minmax(0, 1fr) auto; align-items: center; gap: 22px; padding: 22px; border: 1px dashed #bccfc5; border-radius: 16px; background: #fafbf7; text-decoration: none; color: var(--ink); }
.case-planning-card > img { width: 108px; height: 108px; object-fit: contain; }
.case-planning-label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #54756a; }
.case-planning-card h3 { margin: 6px 0; font-size: 19px; }
.case-planning-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.case-planning-card[href]:hover, .case-index-workspace .case-card:hover { border-color: #138e87; background: #f1f8f4; }
@media (max-width: 650px) {
  .case-index-workspace .case-card { grid-template-columns: minmax(0, 1fr); padding: 20px; gap: 16px; }
  .case-index-workspace .case-card-footer { display: flex; justify-content: space-between; }
  .case-planning-card { grid-template-columns: 56px minmax(0, 1fr); gap: 14px; padding: 18px; }
  .case-planning-card > img { width: 56px; height: 56px; }
  .case-planning-action { grid-column: 2; }
}

.case-planning-symbol { display: grid; place-items: center; width: 108px; height: 108px; color: #54756a; }
.case-planning-symbol .button-icon { width: 52px; height: 52px; }
.case-planning-soon { padding: 7px 12px; border-radius: 20px; background: #eeeee6; color: #60675e; font-size: 12px; font-weight: 700; white-space: nowrap; }
.case-planning-card--soon { border-style: solid; border-color: #e3e6de; }
@media (max-width: 640px) {
  .case-planning-symbol { width: 56px; height: 56px; }
  .case-planning-symbol .button-icon { width: 38px; height: 38px; }
  .case-planning-soon { grid-column: 2; justify-self: start; }
}

.account-contact-list { display: grid; gap: 1.25rem; }
.account-contact-card { border: 1px solid #dddcd5; border-radius: 16px; padding: 1.5rem; display: grid; gap: 1rem; background: #fff; }
.account-contact-card header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.account-contact-card h2, .account-contact-card p { margin: 0; }
.account-contact-card p { color: #55615f; overflow-wrap: anywhere; }
.account-contact-card .pill { white-space: nowrap; }
.account-contact-invite, .account-contact-share { display: grid; gap: .75rem; margin-top: .75rem; }
.account-contact-share { padding: 1rem; background: #eff7f5; border-radius: 10px; }
.account-contact-share input { width: 100%; min-width: 0; }
.account-contact-cases ul { margin: .5rem 0; padding-left: 1.25rem; }
@media (max-width: 640px) { .account-contact-card header { flex-direction: column; } }
.account-contacts h1, .account-actions h1 { font-family: var(--sans); font-size: clamp(1.5rem, 3vw, 2rem); }
.account-contact-card h2 { font-family: var(--sans); font-size: 1.2rem; }
.account-contact-share input, .account-contact-invite select { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: .75rem; font: inherit; width: 100%; }
.account-contact-card button.text-link { border: 0; background: none; padding: 0; font: inherit; color: var(--muted); text-decoration: underline; cursor: pointer; }
.account-contact-share [role="status"]:empty { display: none; }
.whatsapp-login { display: grid; gap: 16px; }
.whatsapp-login > h2, .whatsapp-login > p { margin: 0; }
.whatsapp-login .button, .whatsapp-login .auth-form { width: 100%; margin: 0; box-sizing: border-box; }
.whatsapp-login-steps { list-style: none; margin: 8px 0 0; padding: 0; }
.whatsapp-login-steps li { display: flex; gap: 12px; align-items: flex-start; }
.whatsapp-login-step-number { display: grid; place-items: center; flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--teal-soft); color: #08796f; font-weight: 700; }
.whatsapp-login-steps h3 { font: 700 16px/1.4 var(--sans); margin: 2px 0 6px; }
.whatsapp-login-steps p, .whatsapp-login small { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; }
.whatsapp-login-status { background: var(--teal-soft); padding: 12px 14px; border-radius: 8px; font-size: 14px; line-height: 1.5; }
.whatsapp-login-restart { background: none; border: 0; padding: 4px 0; color: #08796f; text-decoration: underline; font: inherit; font-size: 14px; cursor: pointer; }
.whatsapp-login [aria-disabled="true"] { opacity: .5; pointer-events: none; }
.auth-shell--whatsapp-pending { padding-top: 32px; }
.auth-shell--whatsapp-pending .auth-copy h1 { font-size: clamp(30px, 4vw, 44px); }
.auth-shell--whatsapp-pending .auth-copy { margin-bottom: 16px; }

/* Account tools use the same heading, breadcrumb and panel rhythm as settings. */
.account-contacts-empty h2 { font-family: var(--sans); font-size: 20px; }
.account-contact-form { display: grid; gap: 10px; }
.account-contact-form label { font-size: 14px; font-weight: 700; }
.account-contact-form input:not([type=submit]),
.account-contact-form select { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }
.account-contact-form label:not(:first-child) { margin-top: 8px; }
.account-contact-form__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
@media (max-width: 700px) {
  .account-contacts .dashboard-heading { flex-wrap: wrap; }
  .account-contact-form input:not([type=submit]), .account-contact-form select { font-size: 16px; }
}

.account-start-service { position: fixed; bottom: calc(16px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 50; width: max-content; min-height: 48px; border-radius: 999px; box-shadow: 0 4px 18px rgba(25, 62, 54, .2); }
body:has(.account-start-service) .account-workspace-footer { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
@media (max-width: 600px) {
  body:has(.account-start-service) .account-mobile-navigation__trigger { width: 48px; padding: 12px; justify-content: center; }
  body:has(.account-start-service) .account-mobile-navigation__trigger span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .account-start-service { padding-inline: 18px; font-size: 14px; }
}

/* Keep mobile will navigation clear of guidance and long optional-action labels. */
@media (max-width: 700px) {
  .will-builder__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 12px; }
  .will-builder__actions > .will-continue-hint { grid-column: 1 / -1; grid-row: 1; text-align: left; }
  .will-builder__actions > .button { box-sizing: border-box; width: 100%; min-width: 0; margin: 0; padding: 12px; white-space: normal; line-height: 1.35; }
  .will-builder__actions > .ghost { grid-column: 1; grid-row: 2; }
  .will-builder__actions > .primary { grid-column: 2; grid-row: 2; }
  .will-builder__actions > .button .button-icon { display: none; }
  .will-builder__actions > [hidden] { display: none; }
  .will-guardian-actions { flex-direction: column; align-items: stretch; }
  .will-guardian-actions > .button, .will-guardian-add, .will-guardian-add > .button { box-sizing: border-box; width: 100%; min-width: 0; }
  .will-guardian-actions .button { padding: 12px 16px; white-space: normal; line-height: 1.4; }
  .will-guardian-actions .button span { min-width: 0; overflow-wrap: anywhere; }
  .will-guardian-actions .button .button-icon { flex-shrink: 0; }
  .will-guardian-help-link { max-width: 100%; white-space: normal; }
}
