:root {
  --ink: #101923;
  --ink-soft: #354553;
  --ink-muted: #627283;
  --forest: #075f89;
  --mint: #dff5fb;
  --ivory: #f6f9fb;
  --paper: #ffffff;
  --copper: #008fc9;
  --clay: #00a7e1;
  --sky: #e7f4fb;
  --mist: #eef6fa;
  --line: rgba(16, 25, 35, 0.13);
  --shadow: 0 24px 70px rgba(3, 29, 46, 0.16);
  --radius: 8px;
  --radius-small: 6px;
  --header-height: 104px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.panel-open {
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(0, 167, 225, 0.32);
  outline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 10px clamp(18px, 5vw, 72px);
  color: var(--paper);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.site-header[data-elevated="true"] {
  background: rgba(251, 247, 239, 0.94);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-width: 170px;
}

.brand-logo {
  width: 150px;
  height: 84px;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.24));
}

.site-header .brand-text {
  display: none;
}

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

.brand strong {
  font-size: 0.98rem;
}

.brand small {
  color: currentColor;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.72;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  font-size: 0.95rem;
}

.desktop-nav a {
  opacity: 0.86;
  border-bottom: 1px solid transparent;
}

.desktop-nav a:hover {
  opacity: 1;
  border-bottom-color: currentColor;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ghost-link {
  border-bottom: 1px solid currentColor;
  font-size: 0.92rem;
}

.button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius);
  min-height: 44px;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button {
  gap: 9px;
  padding: 12px 18px;
  font-weight: 740;
  white-space: nowrap;
}

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

.button-primary {
  background: var(--forest);
  color: var(--paper);
  box-shadow: 0 12px 28px rgba(0, 143, 201, 0.22);
}

.button-secondary {
  background: var(--ink);
  color: var(--paper);
}

.button-accent {
  background: linear-gradient(135deg, #00a7e1, #0079b8);
  color: white;
}

.icon-button {
  width: 44px;
  padding: 0;
  background: rgba(255, 255, 255, 0.14);
  color: currentColor;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.site-header[data-elevated="true"] .icon-button {
  border-color: var(--line);
  background: var(--paper);
}

.button svg,
.icon-button svg,
.need-finder svg,
.portal-list svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.mobile-nav {
  position: fixed;
  z-index: 28;
  top: var(--header-height);
  right: 16px;
  display: none;
  min-width: 220px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.mobile-nav.open {
  display: grid;
}

.mobile-nav a {
  padding: 12px;
  border-radius: 6px;
}

.mobile-nav a:hover {
  background: var(--mint);
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 94svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  object-fit: cover;
  object-position: 42% center;
  z-index: -2;
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(4, 22, 36, 0.9) 0%, rgba(7, 38, 57, 0.66) 46%, rgba(7, 38, 57, 0.08) 100%),
    linear-gradient(0deg, rgba(4, 22, 36, 0.34), rgba(4, 22, 36, 0.04));
}

.hero-content {
  width: min(760px, calc(100% - 36px));
  margin-left: clamp(18px, 6vw, 86px);
  padding-top: var(--header-height);
  color: var(--paper);
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #88ddff;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 6.2rem;
  font-weight: 700;
  line-height: 0.94;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.9rem;
  line-height: 1.02;
}

h3 {
  font-size: 1.08rem;
  line-height: 1.2;
}

.hero-copy {
  max-width: 690px;
  margin-bottom: 28px;
  color: rgba(255, 253, 250, 0.88);
  font-size: 1.24rem;
}

.hero-slogan {
  max-width: 680px;
  margin-bottom: 16px;
  color: #88ddff;
  font-size: clamp(1.08rem, 1.8vw, 1.42rem);
  font-weight: 780;
}

.need-finder {
  width: min(720px, 100%);
  padding: 10px;
  border: 1px solid rgba(255, 253, 250, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(18px);
}

.need-finder label {
  display: block;
  margin: 0 0 8px 4px;
  color: rgba(255, 253, 250, 0.78);
  font-size: 0.85rem;
}

.finder-row {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding-left: 14px;
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
}

.finder-row input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-metrics span {
  display: inline-flex;
  gap: 7px;
  min-height: 40px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid rgba(255, 253, 250, 0.2);
  border-radius: 999px;
  background: rgba(255, 253, 250, 0.1);
  color: rgba(255, 253, 250, 0.86);
  font-size: 0.88rem;
}

.intro-band,
.calculator-band,
.portal-section,
.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 90px);
  padding: clamp(58px, 8vw, 118px) clamp(18px, 6vw, 86px);
}

.intro-band {
  align-items: center;
  padding-block: clamp(26px, 4vw, 54px);
  background: var(--paper);
}

.intro-band + .services-section {
  padding-top: clamp(30px, 4vw, 58px);
}

.intro-band-copy {
  display: grid;
  justify-items: start;
  gap: 18px;
}

.intro-band-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.03rem;
}

.intro-band-action {
  min-height: 44px;
}

.intro-band-action svg {
  width: 18px;
  height: 18px;
}

.benefit-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0 clamp(18px, 6vw, 86px);
  background: var(--paper);
  border-bottom: 0;
}

.benefit-strip article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  min-height: 160px;
  padding: clamp(24px, 4vw, 38px);
  background: var(--paper);
}

.benefit-strip article + article {
  border-left: 1px solid var(--line);
}

.benefit-strip i {
  width: 34px;
  height: 34px;
  padding: 7px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--forest);
}

.benefit-strip h2 {
  margin-bottom: 8px;
  color: var(--forest);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.26rem;
  font-weight: 850;
  line-height: 1.15;
}

.benefit-strip p {
  max-width: 36rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.section-heading p,
.estimator-copy p,
.portal-copy p {
  color: var(--ink-soft);
  font-size: 1.03rem;
}

.services-section,
.process-section,
.faq-section {
  padding: clamp(58px, 8vw, 118px) clamp(18px, 6vw, 86px);
}

.geo-section {
  padding: clamp(58px, 8vw, 118px) clamp(18px, 6vw, 86px);
  background: var(--paper);
}

.geo-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.geo-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--forest);
  font-weight: 800;
}

.geo-grid a::after {
  content: "->";
  color: var(--copper);
}

.geo-grid a:hover {
  border-color: rgba(184, 115, 66, 0.48);
  box-shadow: 0 14px 34px rgba(23, 35, 31, 0.08);
}

.geo-body {
  background: var(--paper);
}

.geo-hero {
  position: relative;
  min-height: 560px;
  display: grid;
  align-items: end;
  padding: 150px clamp(18px, 5vw, 72px) 72px;
  color: var(--paper);
  overflow: hidden;
}

.geo-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--geo-image-position, 50% 50%);
}

.geo-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(23, 35, 31, 0.88), rgba(23, 35, 31, 0.56)),
    linear-gradient(180deg, rgba(23, 35, 31, 0.18), rgba(23, 35, 31, 0.78));
}

.geo-hero[data-hero-contrast="light"]::after {
  background:
    linear-gradient(90deg, rgba(23, 35, 31, 0.34), rgba(23, 35, 31, 0.04)),
    linear-gradient(180deg, rgba(23, 35, 31, 0), rgba(23, 35, 31, 0.14) 44%, rgba(23, 35, 31, 0.72) 100%);
}

.geo-hero[data-hero-contrast="soft"]::after {
  background:
    linear-gradient(90deg, rgba(23, 35, 31, 0.76), rgba(23, 35, 31, 0.42)),
    linear-gradient(180deg, rgba(23, 35, 31, 0.08), rgba(23, 35, 31, 0.68));
}

.geo-hero[data-image-treatment="clear"] img {
  filter: brightness(1.42) contrast(1.12) saturate(1.12);
}

.geo-hero[data-image-treatment="warm"] img {
  filter: brightness(1.12) contrast(1.04) saturate(1.12);
}

.geo-hero-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.geo-local-mark {
  display: inline-grid;
  gap: 4px;
  min-width: min(100%, 320px);
  margin-bottom: 20px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 253, 250, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 253, 250, 0.12);
  color: var(--paper);
  backdrop-filter: blur(10px);
}

.geo-local-mark span {
  color: rgba(255, 253, 250, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.geo-local-mark strong {
  font-size: clamp(1.25rem, 2.3vw, 1.85rem);
  line-height: 1.06;
}

.geo-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 5.25rem);
  line-height: 0.98;
}

.geo-hero p {
  max-width: 720px;
  color: rgba(255, 253, 250, 0.9);
  font-size: clamp(1rem, 1.7vw, 1.24rem);
}

.geo-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px clamp(18px, 5vw, 40px);
}

.geo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 44px;
  align-items: start;
}

.geo-content {
  display: grid;
  gap: 34px;
}

.geo-content section {
  display: grid;
  gap: 12px;
}

.geo-content h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.06;
}

.geo-content p {
  margin: 0;
  color: var(--ink-soft);
}

.geo-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 8px 0 0;
  list-style: none;
}

.geo-list li {
  position: relative;
  padding-left: 28px;
  color: var(--ink-soft);
}

.geo-list li::before {
  content: "";
  position: absolute;
  top: 0.66em;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--copper);
}

.geo-services-strip {
  padding: 10px 0 4px;
}

.geo-service-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
}

.geo-service-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 74px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.geo-service-link strong,
.geo-service-link small {
  display: block;
}

.geo-service-link strong {
  font-size: 1rem;
}

.geo-service-link small {
  margin-top: 4px;
  color: var(--ink-soft);
  line-height: 1.35;
}

.geo-service-link svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--copper);
  transition:
    transform 0.2s ease,
    color 0.2s ease;
}

.geo-service-link:hover {
  color: var(--forest);
}

.geo-service-link:hover svg {
  color: var(--forest);
  transform: translate(2px, -2px);
}

.geo-sidebar {
  position: sticky;
  top: 118px;
  display: grid;
  gap: 18px;
}

.geo-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ivory);
}

.geo-panel h2,
.geo-panel h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.geo-panel p,
.geo-panel li {
  color: var(--ink-soft);
}

.geo-panel ul {
  display: grid;
  gap: 8px;
  padding-left: 18px;
  margin: 0;
}

.geo-landmark-panel {
  background: var(--forest);
  color: var(--paper);
}

.geo-landmark-panel p {
  color: rgba(255, 253, 250, 0.82);
}

.geo-city-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.geo-city-links a {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--forest);
  font-weight: 700;
}

.geo-editor-help {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.trust-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.5fr);
  gap: 0;
  overflow: hidden;
  margin: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: none;
}

.trust-panel-main,
.trust-panel-grid span {
  background: var(--paper);
}

.trust-panel-main {
  display: grid;
  align-content: center;
  gap: 4px;
  min-height: 118px;
  padding: 22px;
  border-right: 1px solid rgba(20, 61, 45, 0.1);
}

.trust-stars {
  color: var(--clay);
  font-size: 0.98rem;
  letter-spacing: 0.04em;
}

.trust-source-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trust-source-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 10px;
  border: 1px solid rgba(20, 61, 45, 0.18);
  border-radius: 999px;
  color: var(--forest);
  background: rgba(20, 61, 45, 0.06);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.trust-panel-main strong {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.02;
}

.trust-panel-main small {
  color: var(--ink-soft);
  font-weight: 780;
}

.trust-panel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.trust-panel-grid span {
  display: grid;
  align-content: center;
  min-height: 118px;
  padding: 20px;
  border-left: 1px solid rgba(20, 61, 45, 0.1);
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 680;
}

.trust-panel-grid span:first-child {
  border-left: 0;
}

.trust-panel-grid strong {
  display: block;
  margin-bottom: 3px;
  color: var(--forest);
  font-size: 1.38rem;
  line-height: 1;
}

.trust-panel-compact {
  grid-template-columns: 1fr;
  margin: 16px 0 0;
  box-shadow: none;
}

.trust-panel-compact .trust-panel-main {
  min-height: auto;
  padding: 16px;
  border-right: 0;
  border-bottom: 1px solid rgba(20, 61, 45, 0.1);
}

.trust-panel-compact .trust-panel-main strong {
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.18rem;
}

.trust-panel-compact .trust-panel-grid {
  grid-template-columns: 1fr;
}

.trust-panel-compact .trust-panel-grid span {
  min-height: auto;
  padding: 14px 16px;
  border-left: 0;
  border-top: 1px solid rgba(20, 61, 45, 0.1);
  font-size: 0.88rem;
}

.geo-trust-panel {
  margin: 18px 0 4px;
  border: 1px solid rgba(20, 61, 45, 0.1);
  border-radius: var(--radius);
}

.geo-trust-panel .trust-panel-main strong {
  line-height: 1.18;
}

.filter {
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-weight: 720;
}

.filter.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

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

.services-empty-state {
  grid-column: 1 / -1;
  min-height: 170px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.package-card {
  position: relative;
  overflow: hidden;
  display: grid;
  min-height: 356px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 14px 34px rgba(3, 29, 46, 0.07);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.package-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--clay), rgba(0, 167, 225, 0));
}

.package-card:hover {
  border-color: rgba(0, 167, 225, 0.38);
  box-shadow: 0 18px 44px rgba(3, 29, 46, 0.12);
  transform: translateY(-2px);
}

.package-card.featured {
  background:
    radial-gradient(circle at 90% 10%, rgba(0, 167, 225, 0.28), transparent 34%),
    linear-gradient(135deg, #081824, #0b3954);
  color: var(--paper);
}

.package-card.featured p,
.package-card.featured li,
.package-card.featured .tag {
  color: rgba(255, 253, 250, 0.78);
}

.package-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--forest);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.featured .tag {
  background: rgba(136, 221, 255, 0.16);
  color: #bceeff;
}

.price {
  margin: 8px 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.1rem;
}

.package-card p {
  color: var(--ink-soft);
}

.package-card ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0 0 22px;
  list-style: none;
}

.package-card li {
  color: var(--ink-soft);
}

.package-card li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--clay);
  vertical-align: 1px;
}

.package-card .button {
  align-self: end;
  width: 100%;
}

.package-toggle {
  display: none;
}

.calculator-band {
  align-items: center;
  background: linear-gradient(135deg, #e7f4fb, #f7fbfd 58%, #eef6fa);
}

.estimator {
  padding: 24px;
  border: 1px solid rgba(23, 35, 31, 0.14);
  border-radius: var(--radius);
  background: var(--paper);
}

.estimator label {
  display: block;
  margin-bottom: 12px;
  font-weight: 760;
}

.range-row {
  display: grid;
  grid-template-columns: 1fr 64px;
  gap: 18px;
  align-items: center;
}

input[type="range"] {
  accent-color: var(--forest);
}

.range-row output {
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--mint);
  text-align: center;
  font-weight: 800;
}

.estimate-result {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.estimate-result strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

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

.process-item {
  min-height: 220px;
  padding: 22px;
  border-left: 3px solid var(--copper);
  background: rgba(255, 253, 250, 0.58);
}

.process-item span {
  display: block;
  margin-bottom: 30px;
  color: var(--clay);
  font-weight: 840;
}

.process-item p {
  color: var(--ink-soft);
}

.portal-section {
  align-items: center;
  background:
    radial-gradient(circle at 84% 16%, rgba(0, 167, 225, 0.22), transparent 30%),
    linear-gradient(135deg, #081824, #0b3954 58%, #06304a);
  color: var(--paper);
}

.portal-section .section-kicker {
  color: #88ddff;
}

.portal-copy p {
  color: rgba(255, 253, 250, 0.78);
}

.portal-mock {
  padding: clamp(18px, 4vw, 34px);
  border: 1px solid rgba(255, 253, 250, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 253, 250, 0.1);
  box-shadow: 0 32px 80px rgba(3, 18, 28, 0.28);
}

.portal-top {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #7ed88f;
}

.portal-progress {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 253, 250, 0.16);
}

.portal-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #7ed88f;
}

.portal-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.portal-list div {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 12px;
  border-radius: 6px;
  background: rgba(255, 253, 250, 0.12);
}

.faq-section {
  background: var(--paper);
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 940px;
}

details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ivory);
}

summary {
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 790;
}

details p {
  max-width: 760px;
  margin: 0;
  padding: 0 20px 20px;
  color: var(--ink-soft);
}

.site-footer {
  align-items: start;
  background: linear-gradient(135deg, #07131d, #0d2538);
  color: var(--paper);
}

.footer-brand {
  margin-bottom: 18px;
}

.footer-brand .brand-logo,
.legal-brand .brand-logo {
  filter: none;
}

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

.footer-links a {
  width: fit-content;
  border-bottom: 1px solid rgba(255, 253, 250, 0.5);
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(255, 253, 250, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 253, 250, 0.08);
}

.contact-form h2 {
  margin: 0 0 8px;
  color: var(--paper);
  font-size: clamp(1.85rem, 3vw, 2.6rem);
}

.contact-form p {
  margin: 0;
  color: rgba(255, 253, 250, 0.74);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: rgba(255, 253, 250, 0.78);
  font-size: 0.9rem;
  font-weight: 760;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 253, 250, 0.24);
  border-radius: 6px;
  padding: 11px 12px;
  background: rgba(255, 253, 250, 0.96);
  color: var(--ink);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .form-status {
  color: #88ddff;
}

.fine-print {
  grid-column: 1 / -1;
  max-width: 980px;
  margin: 20px 0 0;
  color: rgba(255, 253, 250, 0.66);
  font-size: 0.88rem;
}

.checkout-panel {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  grid-template-rows: auto auto 1fr;
  width: 100%;
  height: 100dvh;
  padding: clamp(18px, 2vw, 30px);
  background:
    radial-gradient(circle at 88% 10%, rgba(0, 143, 201, 0.12), transparent 30%),
    linear-gradient(180deg, #fbfdfe 0%, var(--paper) 34%, var(--paper) 100%);
  box-shadow: 0 -22px 70px rgba(14, 22, 19, 0.18);
  transform: translateY(105%);
  transition: transform 220ms ease;
}

.checkout-panel.open {
  transform: translateY(0);
}

.checkout-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  width: min(100%, 1240px);
  margin: 0 auto;
  padding-bottom: 12px;
}

.checkout-header h2 {
  margin-bottom: 0;
  font-size: clamp(1.9rem, 3vw, 2.55rem);
}

.checkout-panel .icon-button,
.confirmation-dialog .icon-button {
  color: var(--ink);
  border-color: var(--line);
  background: var(--ivory);
}

.selected-service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 20px;
  width: min(100%, 1240px);
  margin: 0 auto 16px;
  padding: 16px 18px;
  border: 1px solid rgba(0, 143, 201, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(223, 245, 251, 0.92), rgba(255, 255, 255, 0.98)),
    var(--paper);
  box-shadow: 0 18px 42px rgba(3, 29, 46, 0.08);
}

.selected-service span {
  width: max-content;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--forest);
  font-size: 0.75rem;
  font-weight: 820;
  text-transform: uppercase;
}

.selected-service h3 {
  margin: 6px 0;
}

.selected-service p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.selected-service strong {
  grid-row: 1 / span 3;
  grid-column: 2;
  align-self: end;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 2.2vw, 2.1rem);
  white-space: nowrap;
}

.checkout-form {
  width: min(100%, 1240px);
  min-height: 0;
  margin: 0 auto;
  overflow-y: auto;
  padding-right: 6px;
}

.checkout-payment-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.billing-column,
.payment-column {
  min-width: 0;
}

.billing-column {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(460px, 1.05fr);
  gap: 20px 30px;
  align-items: start;
}

.checkout-billing-fields,
.checkout-payment-column {
  min-width: 0;
}

.checkout-payment-column {
  position: sticky;
  top: 0;
  display: grid;
  gap: 12px;
}

.checkout-form.locked .checkout-payment-column {
  position: static;
}

.checkout-form.locked .checkout-payment-column button[type="submit"] {
  display: none;
}

.checkout-form.payment-ready .checkout-column-heading,
.checkout-form.payment-ready .checkout-billing-fields,
.checkout-form.payment-ready .checkout-payment-column {
  display: none;
}

.checkout-form.payment-ready .billing-column {
  grid-template-columns: 1fr;
}

.checkout-form.payment-ready .embedded-payment {
  margin-top: 0;
}

.checkout-column-heading {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
  color: var(--ink);
}

.checkout-column-heading span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--forest);
  color: white;
  font-size: 0.8rem;
  font-weight: 850;
}

.checkout-column-heading strong {
  font-size: 1.02rem;
}

.checkout-form label {
  display: grid;
  gap: 7px;
  margin-bottom: 11px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 720;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field-grid-three {
  grid-template-columns: 1fr 0.7fr 0.8fr;
}

.checkout-form input,
.checkout-form textarea,
.checkout-form select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  padding: 11px 12px;
}

.honey-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.checkout-form textarea {
  resize: vertical;
  min-height: 94px;
}

.checkout-form.locked input:disabled,
.checkout-form.locked textarea:disabled,
.checkout-form.locked select:disabled {
  color: var(--ink);
  opacity: 1;
  background: #f7fbfc;
  cursor: default;
}

.check-row {
  grid-template-columns: 18px 1fr;
  align-items: start;
}

.check-row input {
  width: 18px;
  margin-top: 3px;
  accent-color: var(--forest);
}

.payment-box {
  display: grid;
  gap: 10px;
  margin: 0 0 2px;
  padding: 16px;
  border: 1px solid rgba(0, 143, 201, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(247, 252, 253, 0.98), rgba(239, 247, 250, 0.98)),
    var(--mist);
  box-shadow: 0 16px 34px rgba(3, 29, 46, 0.07);
}

.payment-box div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.payment-box .payment-total-row {
  margin-top: 2px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.payment-box .payment-total-row strong {
  color: var(--forest);
  font-size: 1.18rem;
}

.klarna-messaging {
  min-height: 28px;
  padding-top: 10px;
  border-top: 1px solid rgba(21, 52, 72, 0.1);
}

.payment-box p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.embedded-payment {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  width: 100%;
  margin: 18px 0 0;
}

.embedded-payment[hidden] {
  display: none;
}

.embedded-payment-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.embedded-payment-heading div {
  display: grid;
  gap: 5px;
}

.embedded-payment-heading span {
  color: var(--copper);
  font-size: 0.74rem;
  font-weight: 840;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.embedded-payment-heading strong {
  font-size: 1.1rem;
}

.stripe-embedded-container {
  position: relative;
  display: grid;
  align-items: stretch;
  min-height: 620px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: white;
  isolation: isolate;
  overflow: visible;
}

.checkout-form.payment-ready .stripe-embedded-container {
  min-height: max(720px, calc(100dvh - 300px));
}

.stripe-embedded-container > *,
.stripe-embedded-container iframe {
  width: 100% !important;
  max-width: none !important;
}

.stripe-placeholder {
  display: grid;
  place-content: center;
  gap: 14px;
  min-height: 220px;
  border: 1px dashed rgba(0, 143, 201, 0.42);
  border-radius: 6px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(223, 245, 251, 0.58), rgba(255, 255, 255, 0.96));
  color: var(--ink-soft);
  text-align: center;
}

.stripe-card-preview {
  display: grid;
  gap: 10px;
  width: min(320px, 100%);
  margin: 0 auto 2px;
  padding: 18px;
  border: 1px solid rgba(21, 52, 72, 0.14);
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 20%, rgba(0, 143, 201, 0.18), transparent 28%),
    linear-gradient(135deg, #ffffff, #eef8fb);
  box-shadow: 0 16px 34px rgba(15, 42, 58, 0.1);
  color: var(--ink);
  text-align: left;
}

.stripe-card-preview span,
.stripe-card-preview small {
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stripe-card-preview strong {
  font-size: 1.08rem;
  letter-spacing: 0.02em;
}

.stripe-card-preview div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.stripe-placeholder strong {
  color: var(--ink);
  font-size: 1.08rem;
}

.stripe-placeholder p {
  max-width: 320px;
  margin: 0 auto;
  font-size: 0.9rem;
}

.custom-questions {
  display: grid;
  gap: 12px;
  margin: 10px 0 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ivory);
}

.custom-questions:empty {
  display: none;
}

.question-group-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
}

.question-group-heading span {
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 760;
}

.form-status {
  min-height: 22px;
  margin: 0 0 12px;
  color: var(--forest);
  font-size: 0.9rem;
  font-weight: 720;
}

.full-width {
  width: 100%;
}

.overlay {
  position: fixed;
  z-index: 45;
  inset: 0;
  background: rgba(14, 22, 19, 0.48);
}

.confirmation-dialog {
  width: min(460px, calc(100% - 32px));
  border: 0;
  border-radius: var(--radius);
  padding: 32px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.confirmation-dialog::backdrop {
  background: rgba(14, 22, 19, 0.46);
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
}

.dialog-icon {
  width: 42px;
  height: 42px;
  color: var(--forest);
}

.confirmation-dialog h2 {
  margin: 16px 0 10px;
  font-size: 2.3rem;
}

.confirmation-dialog p {
  color: var(--ink-soft);
}

.legal-page {
  min-height: 100svh;
  padding: clamp(26px, 5vw, 72px);
  background: var(--ivory);
}

.legal-brand {
  margin-bottom: clamp(42px, 8vw, 86px);
}

.legal-page article {
  width: min(920px, 100%);
  padding: clamp(26px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 14px 34px rgba(22, 31, 28, 0.07);
}

.legal-page h1 {
  color: var(--ink);
  font-size: 4.7rem;
}

.legal-page h2 {
  margin: 32px 0 10px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.15rem;
  line-height: 1.25;
}

.legal-page p {
  color: var(--ink-soft);
}

.legal-page a:not(.brand):not(.button) {
  border-bottom: 1px solid currentColor;
}

.resource-body {
  min-height: 100svh;
  background: var(--ivory);
}

.resource-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px clamp(18px, 5vw, 72px);
}

.resource-header .brand-logo {
  filter: none;
}

.resource-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--ink);
  font-weight: 780;
}

.resource-nav a {
  border-bottom: 1px solid transparent;
}

.resource-nav a:hover {
  border-bottom-color: currentColor;
}

.resource-shell {
  width: min(1380px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(18px, 3vw, 42px) 0 clamp(58px, 8vw, 104px);
}

.resource-hero {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  min-height: 520px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow);
}

.resource-hero-copy {
  display: grid;
  align-content: end;
  padding: clamp(28px, 5vw, 58px);
}

.resource-hero h1 {
  max-width: 740px;
  margin-bottom: 18px;
  color: var(--paper);
  font-size: clamp(3.5rem, 7vw, 6.8rem);
  letter-spacing: 0;
}

.resource-hero p {
  max-width: 780px;
  color: rgba(255, 253, 250, 0.8);
  font-size: 1.16rem;
}

.resource-hero .section-kicker {
  color: #f0c598;
}

.resource-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.resource-pill-row a {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 253, 250, 0.18);
  border-radius: 999px;
  background: rgba(255, 253, 250, 0.1);
  color: var(--paper);
  font-size: 0.88rem;
  font-weight: 790;
}

.resource-hero-media {
  position: relative;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
}

.resource-hero-media img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: center;
}

.resource-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(23, 35, 31, 0.58), rgba(23, 35, 31, 0.04));
}

.resource-hero-media figcaption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  width: min(340px, calc(100% - 36px));
  padding: 12px 14px;
  border-radius: var(--radius);
  background: rgba(251, 247, 239, 0.92);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 760;
}

.resource-feature {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(320px, 0.84fr) minmax(0, 1fr);
  gap: 0;
  min-height: 430px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 16px 42px rgba(22, 31, 28, 0.1);
}

.resource-feature > img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.resource-feature > div {
  display: grid;
  align-content: center;
  padding: clamp(24px, 5vw, 52px);
}

.resource-feature h2 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.resource-feature p {
  max-width: 760px;
  margin-bottom: 22px;
  color: var(--ink-soft);
  font-size: 1.04rem;
}

.resource-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--forest);
  font-size: 0.74rem;
  font-weight: 820;
  text-transform: uppercase;
}

.resource-feature .resource-tag {
  background: var(--sky);
  color: var(--ink);
}

.resource-collection {
  padding: clamp(22px, 4vw, 42px) 0 0;
}

.city-seo-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 12px;
}

.city-seo-panels article {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 260px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.city-seo-panels i {
  width: 30px;
  height: 30px;
  color: var(--copper);
}

.city-seo-panels h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.35rem, 2vw, 1.78rem);
}

.city-seo-panels p {
  margin: 0;
  color: var(--ink-soft);
}

.resource-section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 18px;
}

.resource-section-head h2 {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(2.3rem, 5vw, 4.4rem);
}

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

.resource-card {
  overflow: hidden;
  display: grid;
  grid-template-rows: 190px 1fr;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 14px 34px rgba(22, 31, 28, 0.07);
}

.resource-card-wide {
  grid-column: span 2;
}

.resource-card > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.resource-card > div {
  display: grid;
  padding: 18px;
}

.resource-card h3 {
  margin: 0 0 10px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.16rem;
  line-height: 1.24;
}

.resource-card p {
  margin-bottom: 18px;
  color: var(--ink-soft);
}

.resource-card a {
  align-self: end;
  width: fit-content;
  border-bottom: 1px solid currentColor;
  color: var(--forest);
  font-weight: 820;
}

.resource-disclaimer {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  max-width: 920px;
  margin-top: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.resource-disclaimer svg {
  width: 22px;
  height: 22px;
  color: var(--forest);
}

.resource-disclaimer p {
  margin: 0;
  color: var(--ink-soft);
}

.team-shell {
  display: grid;
  gap: 18px;
}

.team-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.34fr);
  gap: 18px;
  align-items: stretch;
}

.team-hero > div,
.team-proof-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 14px 34px rgba(22, 31, 28, 0.07);
}

.team-hero > div {
  padding: clamp(28px, 5vw, 58px);
}

.team-hero h1 {
  max-width: 980px;
  margin-bottom: 16px;
  color: var(--ink);
  font-size: clamp(2.6rem, 5vw, 5.2rem);
}

.team-hero p {
  max-width: 860px;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.team-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.team-proof-panel {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: clamp(22px, 4vw, 34px);
}

.team-proof-panel span {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 820;
}

.team-proof-panel span:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.team-list {
  display: grid;
  gap: 18px;
}

.team-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 14px 34px rgba(22, 31, 28, 0.07);
}

.team-card figure {
  min-height: 440px;
  margin: 0;
  background: var(--ink);
}

.team-card img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
  object-position: center 24%;
}

.team-card-copy {
  display: grid;
  align-content: center;
  padding: clamp(24px, 5vw, 52px);
}

.team-card h2 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.team-role {
  margin: 0 0 18px;
  color: var(--forest);
  font-weight: 850;
}

.team-card p:not(.team-role) {
  max-width: 860px;
  color: var(--ink-soft);
  font-size: 1.03rem;
}

.team-card ul {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.team-card li {
  position: relative;
  padding-left: 18px;
  color: var(--ink);
  font-weight: 720;
}

.team-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--copper);
}

.team-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.service-page .resource-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.service-shell {
  display: grid;
  gap: 18px;
}

.service-hero {
  min-height: 560px;
}

.service-hero .resource-hero-copy {
  align-content: center;
}

.service-hero .button svg {
  width: 18px;
  height: 18px;
}

.service-intro-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1fr);
  gap: clamp(18px, 4vw, 44px);
  align-items: center;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.service-intro-band h2,
.service-local-links h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.75rem, 3vw, 2.7rem);
}

.service-intro-band p,
.service-local-links p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.04rem;
}

.service-proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(0, 143, 201, 0.18);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(223, 245, 251, 0.72), rgba(255, 255, 255, 0.98));
}

.service-proof span {
  display: grid;
  align-content: center;
  min-height: 92px;
  padding: 18px 20px;
  border-right: 1px solid rgba(0, 143, 201, 0.16);
  color: var(--ink);
  font-weight: 850;
}

.service-proof span:last-child {
  border-right: 0;
}

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

.service-index-card {
  display: grid;
  align-content: start;
  min-height: 330px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 14px 34px rgba(22, 31, 28, 0.07);
}

.service-index-card h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.24rem;
  line-height: 1.22;
}

.service-index-card p {
  margin: 0 0 22px;
  color: var(--ink-soft);
}

.service-card-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  align-self: end;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.service-card-footer strong {
  color: var(--forest);
  font-size: 1.06rem;
}

.service-card-footer a {
  border-bottom: 1px solid currentColor;
  color: var(--ink);
  font-weight: 850;
}

.service-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 18px;
  align-items: start;
}

.service-video {
  margin: 0;
}

.service-video[hidden] {
  display: none;
}

.service-video-frame {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0f1715;
  box-shadow: 0 18px 44px rgba(22, 31, 28, 0.1);
}

.service-video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.service-detail-main {
  display: grid;
  gap: 14px;
}

.service-detail-main section,
.service-detail-side,
.service-related,
.service-faq,
.service-local-links {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 14px 34px rgba(22, 31, 28, 0.06);
}

.service-detail-main section {
  padding: clamp(22px, 4vw, 34px);
}

.service-detail-main h2,
.service-detail-side h2,
.service-related h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
}

.service-detail-main p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.service-detail-side {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 14px;
  padding: 24px;
}

.service-detail-side strong {
  color: var(--forest);
  font-size: 2rem;
  line-height: 1.1;
}

.service-detail-side ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-detail-side li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-soft);
  font-weight: 720;
}

.service-detail-side li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--clay);
}

.service-detail-side .button {
  width: 100%;
}

.service-related,
.service-faq,
.service-local-links {
  padding: clamp(22px, 4vw, 34px);
}

.service-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.service-related-grid a {
  display: grid;
  gap: 8px;
  min-height: 170px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--ivory);
}

.service-related-grid span {
  color: var(--copper);
  font-size: 0.73rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-related-grid strong {
  color: var(--ink);
  line-height: 1.22;
}

.service-related-grid small {
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.45;
}

.service-local-links {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1fr);
  gap: clamp(18px, 4vw, 42px);
  align-items: center;
}

.service-local-links > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: flex-end;
}

.service-local-links a {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(0, 143, 201, 0.2);
  border-radius: 999px;
  background: var(--mist);
  color: var(--ink);
  font-weight: 820;
}

.resource-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 24px clamp(18px, 5vw, 72px);
  background: var(--ink);
  color: var(--paper);
}

.resource-footer p {
  margin: 0;
  color: rgba(255, 253, 250, 0.72);
}

.article-body {
  min-height: 100svh;
  background: var(--ivory);
}

.article-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.article-shell {
  width: min(1380px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(20px, 4vw, 54px) 0 clamp(58px, 8vw, 110px);
}

.article-loading {
  min-height: 56svh;
  display: grid;
  align-content: center;
}

.article-loading h1 {
  color: var(--ink);
}

.article-hero {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 1.05fr);
  min-height: 560px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow);
}

.article-hero-copy {
  display: grid;
  align-content: end;
  padding: clamp(28px, 5vw, 58px);
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 22px;
  color: rgba(255, 253, 250, 0.78);
  font-weight: 820;
}

.article-back svg {
  width: 17px;
  height: 17px;
}

.article-hero .resource-tag {
  background: rgba(240, 197, 152, 0.16);
  color: #f0c598;
}

.article-hero h1 {
  max-width: 830px;
  color: var(--paper);
  font-size: clamp(3rem, 6vw, 6.1rem);
  letter-spacing: 0;
}

.article-hero p {
  max-width: 760px;
  color: rgba(255, 253, 250, 0.78);
  font-size: 1.15rem;
}

.article-hero > img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 253, 250, 0.18);
  border-radius: 999px;
  background: rgba(255, 253, 250, 0.08);
  color: rgba(255, 253, 250, 0.78);
  font-size: 0.84rem;
  font-weight: 780;
}

.article-content-grid {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 780px);
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
  justify-content: center;
  padding: clamp(42px, 7vw, 88px) 0;
}

.article-summary {
  position: sticky;
  top: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 14px 34px rgba(22, 31, 28, 0.07);
}

.article-summary ul {
  display: grid;
  gap: 12px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.article-summary li {
  color: var(--ink-soft);
}

.article-summary li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--clay);
  vertical-align: 1px;
}

.article-summary .button {
  width: 100%;
  white-space: normal;
}

.article-content {
  display: grid;
  gap: 30px;
}

.article-content section {
  padding-bottom: 18px;
  border-bottom: 0;
}

.article-content section:last-of-type {
  border-bottom: 0;
}

.article-content h2 {
  margin-bottom: 12px;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.35rem, 2.4vw, 1.72rem);
  line-height: 1.22;
}

.article-content p {
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.article-notice {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--sky);
}

.article-notice svg {
  width: 22px;
  height: 22px;
  color: var(--forest);
}

.article-notice p {
  margin: 0;
  font-size: 0.96rem;
}

.article-footnotes {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.article-footnotes h2 {
  margin-bottom: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.05rem;
}

.article-footnotes p,
.article-footnotes li {
  color: var(--ink-soft);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  line-height: 1.55;
}

.article-footnotes ol {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding-left: 20px;
}

.article-footnotes a {
  border-bottom: 1px solid currentColor;
  color: var(--forest);
}

.article-related {
  padding-top: 12px;
}

.article-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.article-related-card {
  overflow: hidden;
  display: grid;
  grid-template-rows: 170px auto auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 14px 34px rgba(22, 31, 28, 0.07);
}

.article-related-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-related-card span,
.article-related-card strong {
  margin-inline: 18px;
}

.article-related-card span {
  margin-top: 16px;
  color: var(--copper);
  font-size: 0.74rem;
  font-weight: 840;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-related-card strong {
  display: block;
  margin-top: 6px;
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.24;
}

.resource-body,
.article-body {
  background: var(--ivory);
}

.resource-header {
  background: rgba(255, 253, 250, 0.92);
  border-bottom: 1px solid var(--line);
}

.resource-shell,
.article-shell {
  width: min(1180px, calc(100% - 36px));
}

.resource-hero {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  min-height: 0;
  margin-bottom: 42px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

.resource-hero-copy {
  align-content: center;
  padding: clamp(34px, 6vw, 76px) 0;
}

.resource-hero h1 {
  max-width: 760px;
  color: var(--ink);
  font-size: clamp(3.2rem, 7vw, 6rem);
}

.resource-hero p {
  color: var(--ink-soft);
}

.resource-hero .section-kicker {
  color: var(--copper);
}

.resource-pill-row a {
  border-color: var(--line);
  background: var(--paper);
  color: var(--ink);
}

.resource-hero-media {
  align-self: center;
  min-height: 0;
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(22, 31, 28, 0.12);
}

.resource-hero-media img {
  min-height: 360px;
}

.resource-hero-media::after {
  background: linear-gradient(0deg, rgba(23, 35, 31, 0.34), rgba(23, 35, 31, 0.02));
}

.resource-hero-media figcaption {
  left: 16px;
  right: 16px;
  width: auto;
}

.service-page .service-shell {
  width: min(1500px, calc(100% - 72px));
  padding-top: 0;
}

.service-page .service-hero {
  align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 520px);
  min-height: 0;
  margin-bottom: 16px;
  gap: clamp(32px, 4vw, 58px);
}

.service-page .service-hero .resource-hero-copy {
  align-content: start;
  padding-top: clamp(4px, 1vw, 14px);
  padding-bottom: clamp(14px, 2.2vw, 28px);
}

.service-page .service-hero h1 {
  max-width: 720px;
  font-size: clamp(3rem, 6.2vw, 5.45rem);
  line-height: 0.96;
}

.service-page .service-hero p {
  max-width: 850px;
  font-size: 1.08rem;
  line-height: 1.5;
}

.service-page .service-hero .resource-hero-media img {
  min-height: 300px;
}

.resource-feature {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  min-height: 0;
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(22, 31, 28, 0.07);
}

.resource-feature > img {
  order: 2;
  min-height: 360px;
}

.resource-feature > div {
  order: 1;
  padding: clamp(24px, 5vw, 48px);
}

.resource-feature h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.resource-section-head {
  display: block;
  max-width: 760px;
}

.resource-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.resource-card,
.resource-card-wide {
  grid-column: auto;
}

.resource-card {
  grid-template-rows: 168px 1fr;
  min-height: 380px;
  box-shadow: none;
}

.resource-card:hover,
.article-related-card:hover {
  border-color: rgba(184, 115, 66, 0.48);
  transform: translateY(-2px);
}

.resource-card,
.article-related-card {
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.resource-card:hover,
.article-related-card:hover {
  box-shadow: 0 14px 34px rgba(22, 31, 28, 0.08);
}

.resource-disclaimer {
  max-width: none;
  background: transparent;
}

.article-shell {
  padding-top: clamp(16px, 3vw, 38px);
}

.article-hero {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
  min-height: 0;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 14px 34px rgba(22, 31, 28, 0.07);
}

.article-hero-copy {
  align-content: center;
  padding: clamp(28px, 5vw, 56px);
}

.article-back {
  color: var(--forest);
}

.article-hero .resource-tag {
  background: var(--mint);
  color: var(--forest);
}

.article-hero h1 {
  max-width: 760px;
  color: var(--ink);
  font-size: clamp(2.65rem, 5vw, 4.65rem);
  line-height: 1;
}

.article-hero p {
  color: var(--ink-soft);
  font-size: 1.12rem;
}

.article-hero > img {
  min-height: 420px;
}

.article-meta span {
  border-color: var(--line);
  background: var(--ivory);
  color: var(--ink-soft);
}

.article-content-grid {
  grid-template-columns: minmax(0, 740px) minmax(260px, 320px);
  gap: clamp(28px, 5vw, 64px);
  justify-content: space-between;
  padding: clamp(40px, 6vw, 76px) 0;
}

.article-summary {
  order: 2;
  top: 28px;
  box-shadow: none;
}

.article-content {
  order: 1;
  gap: 24px;
}

.article-content section {
  padding-bottom: 18px;
}

.article-content h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 2.7vw, 2.2rem);
  font-weight: 700;
}

.article-content p {
  font-family: Georgia, "Times New Roman", serif;
  color: #30423b;
  font-size: 1.16rem;
  line-height: 1.72;
}

.article-notice {
  background: var(--paper);
  border: 1px solid var(--line);
}

.article-related {
  border-top: 1px solid var(--line);
  padding-top: clamp(30px, 5vw, 54px);
}

.article-related-card {
  box-shadow: none;
}

.portal-body {
  min-height: 100svh;
  --portal-bg-image: url("assets/portal-cities/optimized/portal-city-quebec-levis.webp");
  --portal-bg-position: center;
  background:
    linear-gradient(180deg, rgba(246, 249, 251, 0.9), rgba(246, 249, 251, 0.96)),
    var(--portal-bg-image) var(--portal-bg-position) / cover fixed;
}

.portal-body[data-portal-city="quebec"],
.portal-body[data-portal-city="default"] {
  --portal-bg-image: url("assets/portal-cities/optimized/portal-city-quebec-levis.webp");
  --portal-bg-position: center 34%;
}

.portal-body[data-portal-city="montreal"] {
  --portal-bg-image: url("assets/portal-cities/optimized/portal-city-montreal.webp");
  --portal-bg-position: center 48%;
}

.portal-body[data-portal-city="laval"] {
  --portal-bg-image: url("assets/portal-cities/optimized/portal-city-montreal.webp");
  --portal-bg-position: center 48%;
}

.portal-body[data-portal-city="longueuil"] {
  --portal-bg-image: url("assets/portal-cities/optimized/portal-city-longueuil.webp");
  --portal-bg-position: center;
}

.portal-body[data-portal-city="gatineau"] {
  --portal-bg-image: url("assets/portal-cities/optimized/portal-city-gatineau.webp");
  --portal-bg-position: center;
}

.portal-body[data-portal-city="sherbrooke"] {
  --portal-bg-image: url("assets/portal-cities/optimized/portal-city-montreal.webp");
  --portal-bg-position: center 48%;
}

.portal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 5vw, 72px);
}

.portal-header .brand-logo {
  filter: none;
}

.portal-header-actions {
  display: flex;
  gap: 18px;
  font-weight: 760;
}

.portal-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(22px, 4vw, 58px) 0 clamp(58px, 8vw, 104px);
}

.portal-login {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: clamp(26px, 6vw, 78px);
  align-items: center;
  min-height: calc(100svh - 150px);
}

.payment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 470px);
  gap: clamp(26px, 6vw, 78px);
  align-items: center;
  min-height: calc(100svh - 150px);
}

.portal-login h1,
.dashboard-heading h1,
.payment-layout h1 {
  color: var(--ink);
  font-size: 4.2rem;
}

.portal-login p,
.dashboard-heading p,
.dashboard-panel p,
.payment-layout p {
  color: var(--ink-soft);
}

.portal-access-form {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.payment-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.payment-card h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.4rem;
}

.secure-note {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  margin: 18px 0;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--mint);
}

.secure-note svg {
  width: 20px;
  height: 20px;
  color: var(--forest);
}

.secure-note p {
  margin: 0;
  font-size: 0.9rem;
}

.payment-methods {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.payment-method {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: rgba(255, 255, 255, 0.66);
}

.payment-method-heading {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  margin-bottom: 12px;
}

.payment-method-heading svg {
  width: 22px;
  height: 22px;
  color: var(--forest);
}

.payment-method h3 {
  margin: 0 0 3px;
  color: var(--ink);
  font-size: 1.05rem;
}

.payment-method p {
  margin: 0;
  font-size: 0.92rem;
}

.interac-details {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  padding: 12px;
  border-radius: var(--radius-small);
  background: var(--mist);
}

.interac-details div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.interac-details dt {
  color: var(--ink-muted);
  font-size: 0.82rem;
}

.interac-details dd {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  text-align: right;
  overflow-wrap: anywhere;
}

.payment-card .button + .button {
  margin-top: 10px;
}

.portal-access-form label {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 760;
}

.portal-access-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  color: var(--ink);
  background: white;
}

.dashboard-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
  border: 1px solid rgba(76, 100, 83, 0.14);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 28px);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 44px rgba(22, 31, 28, 0.08);
  backdrop-filter: blur(14px);
}

.dashboard-heading h1 {
  margin-bottom: 8px;
  letter-spacing: 0;
}

.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: end;
}

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

.client-dashboard.questionnaire-first {
  width: min(920px, 100%);
  margin: 0 auto;
}

.client-dashboard.identity-first {
  width: min(920px, 100%);
  margin: 0 auto;
}

.client-dashboard.questionnaire-first .dashboard-heading,
.client-dashboard.questionnaire-first .dashboard-grid > :not(.questionnaire-panel),
.client-dashboard.identity-first .dashboard-heading,
.client-dashboard.identity-first .dashboard-grid > :not(.documents-panel) {
  display: none;
}

.client-dashboard.questionnaire-first .dashboard-grid,
.client-dashboard.identity-first .dashboard-grid {
  grid-template-columns: 1fr;
}

.client-dashboard.questionnaire-first .questionnaire-panel,
.client-dashboard.identity-first .documents-panel {
  grid-column: 1 / -1;
  padding: clamp(22px, 4vw, 38px);
  box-shadow: 0 20px 54px rgba(22, 31, 28, 0.08);
}

.client-dashboard.questionnaire-first .questionnaire-panel h2,
.client-dashboard.identity-first .documents-panel h2 {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
}

.client-dashboard.identity-first .document-list {
  margin-bottom: 18px;
}

.dashboard-panel {
  padding: 20px;
  border: 1px solid rgba(76, 100, 83, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 12px 30px rgba(22, 31, 28, 0.055);
}

.status-panel,
.documents-panel,
.timeline-panel,
.questionnaire-panel {
  grid-column: span 4;
}

.dashboard-panel:not(.status-panel, .documents-panel, .timeline-panel, .questionnaire-panel) {
  grid-column: span 2;
}

.panel-label {
  margin-bottom: 12px;
  color: var(--copper);
  font-size: 0.74rem;
  font-weight: 840;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-panel h2 {
  margin-bottom: 12px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.35rem;
  line-height: 1.22;
}

.dashboard-progress {
  height: 10px;
  overflow: hidden;
  margin-top: 22px;
  border-radius: 999px;
  background: var(--mint);
}

.dashboard-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--forest), var(--clay));
}

.dashboard-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  color: var(--ink-soft);
}

.detail-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.detail-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 9px;
}

.detail-list dt {
  color: var(--ink-soft);
}

.detail-list dd {
  margin: 0;
  font-weight: 820;
  text-align: right;
}

.document-list,
.timeline-list {
  display: grid;
  gap: 10px;
}

.document-row {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 13px;
  border: 1px solid rgba(76, 100, 83, 0.1);
  border-radius: 6px;
  background: linear-gradient(180deg, #fff, rgba(244, 250, 246, 0.72));
}

.document-row svg {
  width: 18px;
  height: 18px;
  color: var(--forest);
}

.document-row strong {
  border: 1px solid rgba(154, 112, 78, 0.24);
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--clay);
  font-size: 0.86rem;
  white-space: nowrap;
}

.secure-upload-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  border: 1px solid rgba(76, 100, 83, 0.12);
  border-radius: 8px;
  padding: 14px;
  background: rgba(244, 250, 246, 0.52);
}

.secure-upload-form label {
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-weight: 760;
}

.secure-upload-form select,
.secure-upload-form input[type="file"] {
  width: 100%;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}

.identity-upload-help {
  border: 1px solid rgba(76, 100, 83, 0.16);
  border-radius: 6px;
  padding: 10px 12px;
  background: rgba(244, 250, 246, 0.72);
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.identity-upload-help summary {
  color: var(--forest);
  cursor: pointer;
  font-weight: 840;
}

.identity-upload-help p {
  margin: 8px 0 0;
  line-height: 1.45;
}

.uploaded-file-list,
.secure-file-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.uploaded-file-row,
.secure-file-row,
.empty-file-state {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 54px;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid rgba(76, 100, 83, 0.1);
  background: rgba(244, 250, 246, 0.72);
}

.uploaded-file-row {
  grid-template-columns: 24px 1fr auto;
}

.secure-file-row {
  grid-template-columns: 24px 1fr auto;
}

.uploaded-file-row svg,
.secure-file-row svg,
.empty-file-state svg {
  width: 18px;
  height: 18px;
  color: var(--forest);
}

.uploaded-file-row span,
.secure-file-row span {
  display: grid;
  gap: 3px;
}

.uploaded-file-row small,
.secure-file-row small,
.empty-file-state span {
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.document-timeline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.document-timeline-head h3 {
  margin: 0;
}

.document-timeline-head span {
  border: 1px solid rgba(76, 100, 83, 0.22);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(244, 250, 246, 0.9);
  color: var(--forest);
  font-size: 0.82rem;
  font-weight: 840;
  white-space: nowrap;
}

.document-status-timeline {
  display: grid;
  gap: 10px;
}

.document-status-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.document-status-marker {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(154, 112, 78, 0.28);
  border-radius: 50%;
  color: var(--clay);
  cursor: pointer;
}

.document-status-marker svg {
  width: 15px;
  height: 15px;
}

.document-status-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 94px;
  border: 1px solid rgba(154, 112, 78, 0.28);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--clay);
  font-size: 0.82rem;
  font-weight: 840;
  cursor: pointer;
}

.document-status-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.document-status-toggle.complete {
  border-color: rgba(76, 100, 83, 0.28);
  background: rgba(244, 250, 246, 0.95);
  color: var(--forest);
}

.document-status-row.complete .document-status-marker {
  border-color: rgba(76, 100, 83, 0.28);
  background: rgba(244, 250, 246, 0.95);
  color: var(--forest);
}

.document-status-row div {
  display: grid;
  gap: 4px;
}

.document-status-row small {
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.document-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
  margin-bottom: 12px;
}

.document-editor-head h3 {
  margin: 0;
}

.document-editor-list {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.document-editor-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.42fr) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.timeline-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.timeline-quick-group {
  display: grid;
  align-content: start;
  gap: 10px;
}

.timeline-quick-group h4 {
  margin: 0;
  font-size: 0.92rem;
}

.timeline-check-row {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.timeline-check-row input {
  margin-top: 3px;
  accent-color: var(--forest);
}

.timeline-check-row span {
  display: grid;
  gap: 4px;
}

.timeline-check-row small {
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.timeline-check-row.complete {
  border-color: rgba(76, 100, 83, 0.24);
  background: rgba(244, 250, 246, 0.82);
}

.timeline-check-card {
  display: grid;
  gap: 8px;
}

.timeline-file-attach {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.timeline-file-attach input {
  min-width: 0;
  width: 100%;
}

.portal-timeline-group {
  display: grid;
  gap: 10px;
}

.portal-timeline-group h3 {
  margin: 8px 0 0;
  font-size: 0.95rem;
}

.timeline-empty {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.timeline-editor-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  font-weight: 840;
}

.timeline-editor-panel summary svg {
  width: 18px;
  height: 18px;
  color: var(--forest);
}

.timeline-editor-panel[open] summary {
  margin-bottom: 14px;
}

.timeline-row {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 12px;
  align-items: start;
  padding: 10px 0;
}

.timeline-row > span {
  width: 13px;
  height: 13px;
  margin-top: 5px;
  border: 2px solid var(--copper);
  border-radius: 50%;
  background: var(--paper);
}

.timeline-row.complete > span {
  border-color: var(--forest);
  background: var(--forest);
}

.timeline-row strong,
.timeline-row p {
  display: block;
  margin: 0;
}

.timeline-row strong {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.timeline-row p {
  color: var(--ink-soft);
}

.timeline-status {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border: 1px solid rgba(20, 61, 45, 0.14);
  border-radius: 999px;
  color: var(--forest);
  background: rgba(20, 61, 45, 0.07);
  font-size: 0.72rem;
  font-weight: 840;
}

.timeline-row:not(.complete) .timeline-status {
  color: var(--ink-soft);
  background: rgba(16, 25, 35, 0.05);
}

.summary-block {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.summary-block p {
  margin-bottom: 0;
}

.portal-questionnaire-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.portal-questionnaire-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 760;
}

.portal-questionnaire-form input,
.portal-questionnaire-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 14px;
  background: var(--ivory);
  color: var(--ink);
  font: inherit;
  font-weight: 520;
}

.portal-questionnaire-form textarea {
  min-height: 116px;
  resize: vertical;
}

.portal-questionnaire-form input:focus,
.portal-questionnaire-form textarea:focus {
  outline: 3px solid rgba(0, 143, 201, 0.18);
  border-color: var(--copper);
  background: var(--paper);
}

.questionnaire-subhead {
  display: grid;
  gap: 5px;
  margin: 4px 0 10px;
}

.questionnaire-subhead span,
.person-address-card span {
  color: var(--copper);
  font-size: 0.74rem;
  font-weight: 840;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.person-address-card {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ivory);
}

.address-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.portal-questionnaire-form .inline-check {
  display: flex;
  grid-template-columns: auto;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.portal-questionnaire-form .inline-check input {
  width: 16px;
  min-width: 16px;
  padding: 0;
  accent-color: var(--forest);
}

.address-suggestions {
  display: grid;
  gap: 4px;
  margin-top: -2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  background: white;
  box-shadow: 0 14px 30px rgba(22, 31, 28, 0.1);
}

.address-suggestions[hidden] {
  display: none;
}

.address-suggestions button {
  width: 100%;
  border: 0;
  border-radius: 6px;
  padding: 10px 11px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.address-suggestions button:hover,
.address-suggestions button:focus {
  outline: 0;
  background: var(--mist);
}

.questionnaire-panel .answer-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.questionnaire-panel .answer-list > div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--ivory);
}

.questionnaire-panel .answer-list p {
  margin: 6px 0 0;
}

.lawyer-body {
  background:
    linear-gradient(180deg, rgba(246, 249, 251, 0.96), rgba(246, 249, 251, 0.98)),
    url("assets/chateau-frontenac-hero.jpeg") center / cover fixed;
}

.lawyer-shell {
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(22px, 4vw, 54px) 0 clamp(58px, 8vw, 104px);
}

.lawyer-login {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: clamp(26px, 6vw, 76px);
  align-items: center;
  min-height: calc(100svh - 150px);
}

.lawyer-login h1,
.lawyer-console-top h1 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  letter-spacing: 0;
}

.lawyer-console-top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 18px;
}

.lawyer-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.lawyer-stats article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(22, 31, 28, 0.07);
}

.lawyer-stats span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 760;
}

.lawyer-stats strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 2rem;
  line-height: 1;
}

.lawyer-view-tabs {
  display: inline-flex;
  gap: 6px;
  margin: 0 0 16px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.lawyer-view-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  padding: 8px 12px;
  color: var(--ink-soft);
  background: transparent;
  font-weight: 820;
}

.lawyer-view-tabs button.active {
  color: var(--paper);
  background: var(--forest);
}

.lawyer-view-tabs svg {
  width: 17px;
  height: 17px;
}

.lawyer-workspace {
  display: grid;
  grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.settings-workspace {
  grid-template-columns: minmax(0, 760px);
}

.settings-panel {
  overflow: hidden;
}

.presence-options {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.presence-options label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: white;
  cursor: pointer;
}

.presence-options input {
  margin-top: 4px;
  accent-color: var(--blue);
}

.presence-options strong,
.presence-options small {
  display: block;
}

.presence-options small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 720;
}

.lawyer-list-panel,
.lawyer-detail-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 250, 0.94);
  box-shadow: 0 14px 34px rgba(22, 31, 28, 0.08);
}

.lawyer-list-panel {
  position: sticky;
  top: 16px;
  overflow: hidden;
}

.lawyer-tools {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.lawyer-search {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: white;
}

.lawyer-search svg {
  width: 18px;
  height: 18px;
  color: var(--forest);
}

.lawyer-search input,
.lawyer-filter-row select,
.owner-control select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
}

.lawyer-search input {
  border: 0;
  padding: 0;
  outline: 0;
}

.lawyer-filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.lawyer-filter-row select,
.owner-control select {
  padding: 10px;
}

.lawyer-case-list {
  display: grid;
  max-height: calc(100svh - 340px);
  overflow: auto;
}

.lawyer-case-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 14px;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.lawyer-case-card:hover,
.lawyer-case-card.active {
  background: var(--mint);
}

.case-main,
.case-side {
  display: grid;
  gap: 4px;
}

.case-main small,
.case-side small {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.case-side {
  justify-items: end;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 820;
  white-space: nowrap;
}

.status-pill.paid {
  background: var(--mint);
  color: var(--forest);
}

.status-pill.pending {
  background: var(--sky);
  color: var(--ink);
}

.status-pill.required {
  background: #f7dfd5;
  color: #8b321f;
}

.lawyer-detail-panel {
  min-height: 620px;
  padding: 22px;
}

.lawyer-empty {
  display: grid;
  place-items: center;
  min-height: 520px;
  color: var(--ink-soft);
  text-align: center;
}

.lawyer-empty svg {
  width: 42px;
  height: 42px;
  color: var(--forest);
}

.lawyer-empty h2 {
  margin: 8px 0 0;
  font-size: 1.7rem;
}

.lawyer-detail-head,
.lawyer-action-bar,
.lawyer-action-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.lawyer-detail-head {
  justify-content: space-between;
  margin-bottom: 14px;
}

.lawyer-detail-head h2 {
  margin: 0 0 4px;
  font-size: 2.1rem;
}

.lawyer-detail-head p {
  margin: 0;
  color: var(--ink-soft);
}

.lawyer-action-bar {
  margin-bottom: 16px;
}

.lawyer-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.lawyer-detail-grid section,
.lawyer-command-panel,
.lawyer-text-panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--ivory);
}

.lawyer-detail-grid h3,
.lawyer-command-panel h3,
.lawyer-text-panel h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 1.04rem;
}

.lawyer-command-panel,
.lawyer-text-panel {
  margin-top: 14px;
}

.owner-control {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 760;
}

.owner-control input,
.owner-control textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 12px;
  color: var(--ink);
  background: white;
  font: inherit;
  font-weight: 520;
}

.owner-control textarea {
  min-height: 92px;
  resize: vertical;
}

.tracking-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.8fr);
  gap: 12px;
  align-items: start;
}

.tracking-panel .button {
  margin-top: 6px;
}

.timeline-editor-panel {
  display: grid;
  gap: 12px;
}

.timeline-editor-list {
  display: grid;
  gap: 12px;
}

.timeline-editor-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(260px, 1.5fr) auto;
  gap: 12px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: white;
}

.timeline-editor-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  min-height: 44px;
}

.timeline-move-actions {
  display: inline-flex;
  gap: 4px;
}

.order-actions {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.timeline-editor-actions .switch-row {
  margin: 0;
  white-space: nowrap;
}

.lawyer-action-grid {
  align-items: stretch;
}

.lawyer-action-grid .button {
  flex: 1 1 170px;
}

.lawyer-text-panel p {
  margin: 0 0 16px;
  color: var(--ink-soft);
}

.answer-list {
  display: grid;
  gap: 12px;
}

.answer-list div {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.answer-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.answer-list strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
}

.answer-list p {
  margin: 0;
}

.service-editor {
  display: grid;
  gap: 14px;
}

.service-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.service-timeline-config,
.service-language-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--ivory);
}

.service-timeline-config h3,
.service-timeline-config p,
.service-language-panel h3,
.service-language-panel p {
  margin: 0;
}

.service-timeline-config p,
.service-language-panel p {
  color: var(--ink-soft);
}

.service-timeline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

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

.section-builder-head,
.service-section-row-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

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

.service-section-row {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(16, 65, 82, 0.16);
  border-radius: var(--radius-small);
  background: white;
}

.service-section-row-head label {
  flex: 1;
}

.section-row-actions {
  display: flex;
  gap: 6px;
}

.rich-text-toolbar {
  display: flex;
  gap: 6px;
  align-items: center;
}

.mini-tool-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  border: 1px solid rgba(16, 65, 82, 0.18);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--ink);
  background: #f7fbfc;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.mini-tool-button:hover {
  border-color: rgba(0, 159, 213, 0.34);
  color: var(--blue-strong);
}

.service-detail-main section p + p,
.service-faq p + p {
  margin-top: 0.85rem;
}

.service-editor label {
  display: grid;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 760;
}

.service-editor input,
.service-editor select,
.service-editor textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 12px;
  color: var(--ink);
  background: white;
}

.geo-image-preview {
  overflow: hidden;
  align-self: end;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ivory);
}

.geo-image-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.geo-image-preview figcaption {
  padding: 9px 11px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 760;
}

.switch-row {
  display: inline-flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px !important;
  min-height: 38px;
  color: var(--ink);
}

.switch-row input {
  width: auto;
}

.service-featured {
  align-self: end;
  padding: 10px 0;
}

.lawyer-no-results {
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 34px 16px;
  color: var(--ink-soft);
  text-align: center;
}

.lawyer-no-results svg {
  width: 30px;
  height: 30px;
  color: var(--forest);
}

@media (max-width: 1220px) {
  h1 {
    font-size: 5.1rem;
  }

  h2 {
    font-size: 3.2rem;
  }
}

@media (max-width: 1060px) {
  .desktop-nav,
  .ghost-link {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

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

  .trust-panel,
  .trust-panel-grid {
    grid-template-columns: 1fr;
  }

  .trust-panel-main,
  .trust-panel-grid span {
    min-height: auto;
  }

  .trust-panel-main {
    border-right: 0;
    border-bottom: 1px solid rgba(20, 61, 45, 0.1);
  }

  .trust-panel-grid span {
    border-left: 0;
    border-top: 1px solid rgba(20, 61, 45, 0.1);
  }

  .trust-panel-grid span:first-child {
    border-top: 0;
  }

  .benefit-strip {
    grid-template-columns: 1fr;
  }

  .benefit-strip article {
    min-height: auto;
  }

  .benefit-strip article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

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

  .city-seo-panels,
  .geo-layout {
    grid-template-columns: 1fr;
  }

  .geo-sidebar {
    position: static;
  }

  .resource-hero,
  .resource-feature,
  .team-hero,
  .team-card,
  .article-hero,
  .service-detail-layout,
  .service-intro-band,
  .service-local-links,
  .article-content-grid {
    grid-template-columns: 1fr;
  }

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

  .service-detail-side {
    position: static;
  }

  .service-local-links > div:last-child {
    justify-content: flex-start;
  }

  .team-proof-panel {
    align-content: start;
  }

  .team-card figure,
  .team-card img {
    min-height: 360px;
  }

  .resource-feature > img {
    order: 1;
  }

  .resource-feature > div {
    order: 2;
  }

  .article-summary {
    position: static;
  }

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

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

  .resource-card-wide {
    grid-column: span 1;
  }

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

  .portal-login,
  .payment-layout,
  .dashboard-grid,
  .lawyer-login,
  .lawyer-workspace,
  .lawyer-detail-grid,
  .service-form-grid,
  .service-timeline-grid,
  .tracking-grid,
  .timeline-editor-row,
  .checkout-payment-grid {
    grid-template-columns: 1fr;
  }

  .billing-column {
    grid-template-columns: 1fr;
  }

  .checkout-payment-column {
    position: static;
  }

  .lawyer-list-panel {
    position: static;
  }

  .lawyer-case-list {
    max-height: none;
  }

  .status-panel,
  .documents-panel,
  .timeline-panel,
  .questionnaire-panel,
  .dashboard-panel:not(.status-panel, .documents-panel, .timeline-panel, .questionnaire-panel) {
    grid-column: auto;
  }

  .dashboard-heading,
  .lawyer-console-top {
    display: grid;
    align-items: start;
  }

  .dashboard-actions {
    justify-content: start;
  }
}

@media (max-width: 780px) {
  .site-header {
    padding: 10px 14px;
  }

  .brand {
    min-width: auto;
  }

  .brand-logo {
    width: 150px;
    height: 84px;
  }

  .brand small,
  .header-actions .start-order {
    display: none;
  }

  .hero {
    min-height: 96svh;
    align-items: end;
  }

  .hero-media {
    object-position: 38% center;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, rgba(4, 22, 36, 0.92) 0%, rgba(7, 38, 57, 0.78) 58%, rgba(7, 38, 57, 0.18) 100%),
      linear-gradient(90deg, rgba(4, 22, 36, 0.54), rgba(4, 22, 36, 0.16));
  }

  .hero-content {
    width: calc(100% - 28px);
    margin: 0 auto;
    padding-bottom: 26px;
  }

  h1 {
    font-size: 3.65rem;
  }

  h2,
  .legal-page h1 {
    font-size: 2.65rem;
  }

  .hero-copy {
    font-size: 1.08rem;
  }

  .finder-row {
    grid-template-columns: 22px 1fr;
    padding: 12px 12px 12px 14px;
  }

  .finder-row .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .intro-band,
  .calculator-band,
  .portal-section,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .benefit-strip {
    padding-inline: 14px;
  }

  .benefit-strip article {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 14px;
    padding: 22px 18px;
  }

  .benefit-strip h2 {
    font-size: 1.08rem;
  }

  .package-grid,
  .process-grid,
  .geo-grid,
  .geo-service-links,
  .geo-city-links {
    grid-template-columns: 1fr;
  }

  .services-section {
    padding: 38px 14px 58px;
  }

  .services-section .section-heading {
    margin-bottom: 16px;
  }

  .services-section .section-kicker {
    margin-bottom: 9px;
    font-size: 0.78rem;
  }

  .services-section h2 {
    max-width: 12ch;
    margin-bottom: 14px;
    font-size: clamp(2.42rem, 12vw, 3.05rem);
    line-height: 0.98;
  }

  .services-section .section-heading > p {
    max-width: 33rem;
    font-size: 1rem;
    line-height: 1.55;
  }

  .filters {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin-right: -14px;
    margin-bottom: 16px;
    margin-left: -14px;
    padding: 0 14px 2px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .filters::-webkit-scrollbar {
    display: none;
  }

  .filter {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 8px 15px;
    font-size: 0.92rem;
    scroll-snap-align: start;
  }

  .geo-service-link {
    min-height: 68px;
  }

  .geo-hero {
    min-height: 620px;
    padding: 132px 18px 44px;
  }

  .package-card,
  .process-item {
    min-height: auto;
  }

  .package-grid {
    gap: 12px;
  }

  .package-card {
    gap: 14px;
    padding: 18px;
    border-color: rgba(16, 25, 35, 0.1);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 32px rgba(3, 29, 46, 0.07);
  }

  .package-card.featured {
    background:
      linear-gradient(135deg, rgba(223, 245, 251, 0.74), rgba(255, 255, 255, 0.98)),
      var(--paper);
    color: var(--ink);
  }

  .package-card.featured p,
  .package-card.featured li,
  .package-card.featured .tag {
    color: var(--ink-soft);
  }

  .package-card.featured .tag:first-child,
  .package-card .tag {
    background: var(--mint);
    color: var(--forest);
  }

  .package-card.featured .tag:not(:first-child) {
    background: var(--forest);
    color: var(--paper);
  }

  .package-top {
    align-items: center;
    margin-bottom: 10px;
  }

  .tag {
    min-height: 24px;
    padding: 4px 9px;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
  }

  .package-card h3 {
    margin-bottom: 9px;
    font-size: 1.22rem;
    line-height: 1.18;
  }

  .package-card p {
    display: -webkit-box;
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.45;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .price {
    margin: 12px 0 11px;
    font-size: 1.82rem;
    line-height: 1;
  }

  .package-card ul {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0;
  }

  .package-card li {
    display: none;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(223, 245, 251, 0.64);
    color: var(--forest);
    font-size: 0.82rem;
    font-weight: 750;
  }

  .package-card li:nth-child(-n + 2) {
    display: inline-flex;
  }

  .package-card.expanded p {
    display: block;
    overflow: visible;
  }

  .package-card.expanded li {
    display: inline-flex;
  }

  .package-card li::before {
    width: 5px;
    height: 5px;
    margin-right: 7px;
  }

  .package-toggle {
    display: inline-flex;
    justify-self: start;
    align-items: center;
    min-height: 36px;
    margin-top: 10px;
    padding: 0;
    border: 0;
    border-bottom: 1px solid currentColor;
    background: transparent;
    color: var(--forest);
    cursor: pointer;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 820;
  }

  .package-card.featured .package-toggle {
    color: var(--forest);
  }

  .package-card .button {
    min-height: 48px;
    margin-top: 2px;
  }

  .portal-top,
  .portal-list div {
    grid-template-columns: 22px 1fr;
  }

  .portal-top strong,
  .portal-list strong {
    grid-column: 2;
  }

  .field-grid,
  .range-row {
    grid-template-columns: 1fr;
  }

  .checkout-panel {
    padding: 0 14px 14px;
    background:
      radial-gradient(circle at 92% 8%, rgba(0, 143, 201, 0.14), transparent 32%),
      linear-gradient(180deg, #f8fcfd 0%, #ffffff 250px, #ffffff 100%);
  }

  .checkout-header {
    position: sticky;
    top: 0;
    z-index: 6;
    padding: calc(14px + env(safe-area-inset-top)) 0 10px;
    background: linear-gradient(180deg, rgba(248, 252, 253, 0.98), rgba(248, 252, 253, 0.94));
    backdrop-filter: blur(14px);
  }

  .checkout-header h2 {
    font-size: clamp(2.25rem, 10vw, 3.05rem);
    line-height: 0.96;
  }

  .checkout-header .section-kicker {
    margin-bottom: 7px;
    font-size: 0.78rem;
  }

  .checkout-panel .icon-button {
    width: 54px;
    height: 54px;
    border-radius: 14px;
  }

  .selected-service {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 16px;
    padding: 18px;
    border-color: rgba(0, 143, 201, 0.18);
    background:
      linear-gradient(145deg, rgba(223, 245, 251, 0.92), rgba(255, 255, 255, 0.98)),
      var(--paper);
    box-shadow: 0 18px 36px rgba(3, 29, 46, 0.09);
  }

  .selected-service span {
    padding: 6px 9px;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
  }

  .selected-service h3 {
    margin: 0;
    font-size: 1.22rem;
    line-height: 1.18;
  }

  .selected-service p {
    display: -webkit-box;
    margin: 0;
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.45;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .selected-service strong {
    grid-row: auto;
    grid-column: auto;
    justify-self: start;
    padding: 4px 12px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 1.72rem;
    line-height: 1;
  }

  .checkout-form {
    padding-bottom: calc(40px + env(safe-area-inset-bottom));
  }

  .checkout-payment-grid {
    gap: 14px;
  }

  .checkout-column-heading {
    gap: 12px;
    padding: 8px 0 4px;
  }

  .checkout-column-heading span {
    width: 34px;
    height: 34px;
    font-size: 0.88rem;
  }

  .checkout-column-heading strong {
    font-size: 1.18rem;
  }

  .checkout-form label {
    gap: 8px;
    margin-bottom: 14px;
    font-size: 0.95rem;
  }

  .checkout-form input,
  .checkout-form textarea,
  .checkout-form select {
    min-height: 54px;
    border-color: rgba(16, 25, 35, 0.16);
    padding: 13px 14px;
    font-size: 1rem;
    box-shadow: inset 0 1px 0 rgba(16, 25, 35, 0.03);
  }

  .checkout-form textarea {
    min-height: 92px;
  }

  .payment-box {
    gap: 12px;
    padding: 18px;
    border-color: rgba(0, 143, 201, 0.18);
    background:
      linear-gradient(180deg, rgba(247, 252, 253, 0.98), rgba(239, 247, 250, 0.98)),
      var(--mist);
  }

  .payment-box div {
    font-size: 0.98rem;
  }

  .payment-box .payment-total-row {
    margin-top: 4px;
    padding-top: 14px;
    border-top-color: rgba(16, 25, 35, 0.12);
  }

  .payment-box .payment-total-row strong {
    font-size: 1.45rem;
  }

  .checkout-payment-column .button.full-width {
    position: sticky;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 8;
    min-height: 56px;
    box-shadow: 0 18px 38px rgba(7, 95, 137, 0.24);
  }

  .portal-header {
    padding: 12px 14px;
  }

  .resource-header {
    display: grid;
    padding: 12px 14px;
  }

  .resource-nav {
    gap: 12px;
    font-size: 0.94rem;
  }

  .resource-shell {
    width: min(100% - 28px, 1380px);
  }

  .article-shell {
    width: min(100% - 28px, 1380px);
  }

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

  .resource-hero-copy {
    padding: 24px;
  }

  .resource-hero h1 {
    font-size: 3.1rem;
  }

  .resource-hero-media img {
    min-height: 260px;
  }

  .resource-feature {
    min-height: auto;
  }

  .resource-feature > img {
    min-height: 240px;
    max-height: 300px;
  }

  .resource-section-head {
    display: grid;
    align-items: start;
  }

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

  .resource-card {
    min-height: auto;
    grid-template-rows: 190px 1fr;
  }

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

  .article-hero-copy {
    padding: 24px;
  }

  .article-hero > img {
    min-height: 270px;
    max-height: 340px;
  }

  .article-hero h1 {
    font-size: 2.75rem;
  }

  .article-content-grid {
    padding: 34px 0;
  }

  .article-content p {
    font-size: 1.08rem;
  }

  .article-related-grid {
    grid-template-columns: 1fr;
  }

  .service-proof,
  .service-index-grid,
  .service-related-grid {
    grid-template-columns: 1fr;
  }

  .service-proof span {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(0, 143, 201, 0.16);
  }

  .service-proof span:last-child {
    border-bottom: 0;
  }

  .service-index-card,
  .service-related-grid a {
    min-height: auto;
  }

  .portal-header-actions {
    gap: 12px;
    font-size: 0.92rem;
  }

  .portal-login {
    min-height: auto;
  }

  .portal-login h1,
  .dashboard-heading h1,
  .payment-layout h1,
  .lawyer-login h1,
  .lawyer-console-top h1 {
    font-size: 2.7rem;
  }

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

  .lawyer-filter-row,
  .lawyer-case-card {
    grid-template-columns: 1fr;
  }

  .lawyer-view-tabs {
    display: grid;
  }

  .case-side {
    justify-items: start;
  }

  .document-row {
    grid-template-columns: 24px 1fr;
  }

  .secure-file-row {
    grid-template-columns: 24px 1fr;
  }

  .document-status-row,
  .document-editor-row {
    grid-template-columns: 1fr;
  }

  .document-status-marker {
    display: none;
  }

  .document-status-toggle {
    width: fit-content;
  }

  .secure-file-row .button {
    grid-column: 2;
    width: fit-content;
  }

  .timeline-quick-grid {
    grid-template-columns: 1fr;
  }

  .document-row strong {
    grid-column: 2;
  }
}

@media (max-width: 430px) {
  h1 {
    font-size: 3.05rem;
  }

  h2,
  .legal-page h1 {
    font-size: 2.25rem;
  }

  .hero-metrics span {
    width: 100%;
    border-radius: var(--radius);
  }

  .filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .services-section .filters {
    display: flex;
    grid-template-columns: none;
  }

  .filter {
    width: 100%;
    padding-inline: 10px;
  }

  .services-section .filter {
    width: auto;
  }

  .lawyer-stats,
  .lawyer-action-bar,
  .lawyer-action-grid {
    grid-template-columns: 1fr;
  }

  .lawyer-detail-panel {
    padding: 16px;
  }
}

@media (max-width: 640px) {
  .service-page {
    max-width: 100%;
    overflow-x: hidden;
  }

  .service-page .resource-shell,
  .service-page .service-shell {
    width: 100%;
    max-width: 100%;
    padding-right: 14px;
    padding-left: 14px;
    overflow-x: hidden;
  }

  .service-page .resource-hero,
  .service-page .service-detail-layout,
  .service-page .service-detail-main,
  .service-page .service-detail-main section,
  .service-page .service-detail-side,
  .service-page .service-faq,
  .service-page .service-related {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .service-page .resource-hero {
    grid-template-columns: 1fr;
  }

  .service-page .resource-hero-copy {
    min-width: 0;
    padding: 16px 18px 20px;
  }

  .service-page .resource-hero h1 {
    max-width: 100%;
    font-size: clamp(2.25rem, 10.4vw, 3rem);
    line-height: 1;
    overflow-wrap: anywhere;
  }

  .service-page .resource-hero p,
  .service-page .service-detail-main p,
  .service-page .service-faq p,
  .service-page .service-related p {
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .service-page .team-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .service-page .button {
    width: 100%;
    max-width: 100%;
    white-space: normal;
  }
}

@media (max-width: 390px) {
  .service-page .resource-shell,
  .service-page .service-shell {
    padding-right: 12px;
    padding-left: 12px;
  }

  .service-page .resource-hero-copy {
    padding-right: 16px;
    padding-left: 16px;
  }
}
