:root {
  color-scheme: dark;
  /* Title cards: HQ image-set with JPEG fallback + -webkit-image-set for Safari. */
  --hero-topo-image: url("./hero-topography-hq-1920.jpg");
  --hero-topo-image: -webkit-image-set(
    url("./hero-topography-hq.webp") 2x,
    url("./hero-topography-hq-1920.webp") 1x,
    url("./hero-topography-hq.jpg") 2x,
    url("./hero-topography-hq-1920.jpg") 1x
  );
  --hero-topo-image: image-set(
    url("./hero-topography-hq-1920.avif") type("image/avif") 1x,
    url("./hero-topography-hq.webp") type("image/webp") 2x,
    url("./hero-topography-hq-1920.webp") type("image/webp") 1x,
    url("./hero-topography-hq.jpg") type("image/jpeg") 2x,
    url("./hero-topography-hq-1920.jpg") type("image/jpeg") 1x
  );
  --hero-topo-image-sm: url("./hero-topography-hq-1920.jpg");
  --hero-topo-image-sm: -webkit-image-set(
    url("./hero-topography-hq-1920.webp") 1x,
    url("./hero-topography-hq-1920.jpg") 1x
  );
  --hero-topo-image-sm: image-set(
    url("./hero-topography-hq-1920.avif") type("image/avif"),
    url("./hero-topography-hq-1920.webp") type("image/webp"),
    url("./hero-topography-hq-1920.jpg") type("image/jpeg")
  );
  --hero-topo-image-fallback: url("./hero-topography-hq-1920.jpg");
  --bg: #0d090c;
  --bg-deep: #080508;
  --paper: var(--glass-bg-strong);
  --paper-solid: #111118;
  --card: rgba(21, 21, 31, 0.58);
  --card-strong: rgba(20, 20, 29, 0.82);
  --glass-bg: rgba(17, 17, 24, 0.45);
  --glass-bg-subtle: rgba(17, 17, 24, 0.30);
  --glass-bg-strong: rgba(14, 13, 21, 0.58);
  --glass-bg-fallback: rgba(17, 17, 24, 0.92);
  --glass-blur: 22px;
  --glass-blur-sm: 16px;
  --glass-saturate: 155%;
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-subtle: rgba(255, 255, 255, 0.085);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.095);
  --glass-shadow: 0 18px 38px rgba(0, 0, 0, 0.28), 0 2px 8px rgba(0, 0, 0, 0.14);
  --glass-sheen: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.07) 0%,
    rgba(255, 255, 255, 0.028) 48%,
    rgba(0, 0, 0, 0.05) 100%
  );
  --ink: #f4f4f5;
  --muted: #94a3b8;
  --muted-strong: #c8d2e7;
  --line: rgba(248, 113, 113, 0.12);
  --line-strong: rgba(248, 113, 113, 0.24);
  --brand: #f87171;
  --brand-2: #31212a;
  --accent: #f87171;
  --accent-strong: #ef4444;
  --accent-soft: rgba(248, 113, 113, 0.14);
  --success: #7baa86;
  --danger: #f87171;
  --brand-logo-tint: none;
  --topbar-nav-height: 52px;
  /* Wordmark + topbar padding (matches homepage) */
  --brand-logo-height: clamp(4.25rem, 7vw, 5.25rem);
  --brand-logo-max-width: 12rem;
  --shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 18px 38px rgba(0, 0, 0, 0.32);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --serif: Times, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  /* Large section titles — Canela display */
  --font-display: Times, "Times New Roman", serif;
  --hero-title-size: clamp(1.55rem, 2.85vw, 2.15rem);
  --hero-title-line-height: 1.14;
  --hero-title-letter-spacing: -0.022em;
  --page-hero-min-height: 0;
  --page-hero-padding: 1.25rem clamp(1.1rem, 2.4vw, 1.65rem) 1.35rem;
  --page-hero-gap: 0.5rem;
  --page-hero-margin-bottom: 1.5rem;
  --page-hero-radius: 18px;
  --page-hero-lead-size: 0.9375rem;
  --page-hero-topo-position: 50% 42%;
  --page-hero-topo-size: cover;
}

/* Reusable glass surface — applied to card selectors below */
.glass-surface,
.hero-panel,
.page-hero,
.feature-panel,
.cta-panel,
.chat-shell,
.pricing-card,
.welcome-card,
.detail-card,
.preview-card,
.story-card,
.journey-card,
.feature-card,
.summary-section,
.faq-card,
.legal-card,
.search-card,
.intel-panel,
.chat-panel {
  background: var(--glass-sheen), var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg), var(--glass-highlight);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-surface,
  .hero-panel,
  .page-hero,
  .feature-panel,
  .cta-panel,
  .chat-shell,
  .pricing-card,
  .welcome-card,
  .detail-card,
  .preview-card,
  .story-card,
  .journey-card,
  .feature-card,
  .summary-section,
  .faq-card,
  .legal-card,
  .search-card,
  .intel-panel,
  .chat-panel {
    background: var(--glass-bg-fallback);
  }
}

.glass-surface--subtle {
  background: var(--glass-sheen), var(--glass-bg-subtle);
  border: 1px solid var(--glass-border-subtle);
  box-shadow: var(--glass-shadow), var(--glass-highlight);
  -webkit-backdrop-filter: blur(var(--glass-blur-sm)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur-sm)) saturate(var(--glass-saturate));
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-surface--subtle {
    background: var(--glass-bg-fallback);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(circle at 15% -5%, rgba(239, 68, 68, 0.16), transparent 28%),
    radial-gradient(circle at 90% 20%, rgba(59, 130, 246, 0.10), transparent 26%),
    radial-gradient(circle at 50% 118%, rgba(40, 8, 12, 0.72), transparent 36%),
    linear-gradient(180deg, #12090d 0%, var(--bg) 44%, var(--bg-deep) 100%);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Anticipatory dark stage so topo never flashes before page-bg.js mounts the drone. */
body:not(.page-landing):not(.page-explore):not(.page-home):not(.page-welcome) {
  background: #05040a;
}

body:not(.page-landing):not(.page-explore):not(.page-home):not(.page-welcome) .main {
  background: transparent;
}

/* Fixed hero video atmosphere behind marketing pages (injected by page-bg.js) */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #05040a;
}

.page-bg__image,
.page-bg__poster,
.page-bg__video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.03);
  filter: saturate(0.92) contrast(1.04) brightness(0.7);
  background: #05040a;
  opacity: 1;
}

.page-bg__video:not(.is-ready) {
  /* Keep element painted; first frame fades in without a topo underlay. */
  opacity: 0.001;
}

.page-bg__video.is-ready {
  opacity: 1;
  transition: opacity 220ms ease;
}

.page-bg__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 5, 8, 0.28) 0%, rgba(8, 5, 8, 0.16) 34%, rgba(8, 5, 8, 0.32) 70%, rgba(5, 3, 6, 0.58) 100%),
    radial-gradient(ellipse 75% 55% at 50% 18%, transparent 18%, rgba(5, 3, 6, 0.28) 100%);
}

body.has-page-bg,
body.has-page-bg.page-home {
  background: #05040a;
}

/* Let the fixed video show through — these layers were painting solid over it */
body.has-page-bg .main,
body.has-page-bg.page-home .main,
body.has-page-bg.page-welcome .main,
body.has-page-bg.page-profile .main,
body.has-page-bg.page-terms .main,
body.has-page-bg.page-privacy .main,
body.has-page-bg.page-glossary .main,
body.has-page-bg.page-aeo .main,
body.has-page-bg.page-guide .main,
body.has-page-bg.page-guides-hub .main,
body.has-page-bg.page-county .main,
body.has-page-bg.page-city .main,
body.has-page-bg.page-city-hub .main,
body.has-page-bg.page-chat .main,
body.has-page-bg.page-faq .main,
body.has-page-bg.page-about .main,
body.has-page-bg.page-pricing .main,
body.has-page-bg.page-planning .main {
  background: transparent !important;
}

body.has-page-bg::before {
  z-index: 1;
  opacity: 0.18;
}

/* Keep topbar above .main so More / account links stay clickable */
body.has-page-bg .topbar {
  z-index: 40;
}

body.has-page-bg .main,
body.has-page-bg .site-footer,
body.has-page-bg .welcome-shell,
body.has-page-bg .profile-shell {
  position: relative;
  z-index: 2;
}

/* Video replaces the old particle/glow motion layer */
body.has-page-bg .welcome-motion-bg {
  display: none;
}

/* Page heroes: light glass over the shared scroll video */
body.has-page-bg .page-hero::before {
  opacity: 1 !important;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(10, 8, 12, 0.24) 42%,
    rgba(6, 5, 8, 0.28) 100%
  ) !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}

body.has-page-bg .page-hero {
  background: rgba(8, 6, 10, 0.22) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  -webkit-backdrop-filter: blur(20px) saturate(145%) !important;
  backdrop-filter: blur(20px) saturate(145%) !important;
}

body.has-page-bg:not(.page-landing) .page-hero::before {
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .page-bg__video {
    display: none;
  }

  .page-bg__image,
  .page-bg__poster {
    /* Keep mist still; do not fall back to topo. */
    opacity: 1;
  }

  .page-bg__veil {
    background:
      radial-gradient(circle at 18% 12%, rgba(239, 68, 68, 0.14), transparent 40%),
      linear-gradient(180deg, #12090d 0%, #0d090c 50%, #080508 100%);
  }
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 88%);
}

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

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

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

.site-shell {
  width: min(1288px, calc(100% - 48px));
  margin: 0 auto;
}

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 30;
  background: transparent;
  border: none;
  backdrop-filter: none;
  overflow: visible;
}

/* Screen page: keep nav clear so the mountain hero reads through. */
.page-explore .topbar {
  isolation: isolate;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.page-explore .topbar::before {
  content: none;
  display: none;
}

/* Homepage-matched topbar row: logo | nav | account */
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  min-height: 0;
  padding: clamp(1rem, 2.2vw, 1.45rem) 0 0.55rem;
  border-bottom: 0;
  box-sizing: border-box;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  height: auto;
  min-width: 0;
  flex-shrink: 0;
  position: relative;
  isolation: isolate;
  padding: 0;
  margin: 0;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  text-decoration: none;
  color: inherit;
}

.brand:hover .brand__logo,
.brand:focus-visible .brand__logo {
  transform: translateY(-1px) scale(1.02);
  filter: drop-shadow(0 14px 34px rgba(248, 113, 113, 0.32));
}

.brand__logo {
  display: none; /* P mark retired — use .brand--wordmark */
  flex-shrink: 0;
  width: auto;
  height: auto;
  max-width: min(100%, var(--brand-logo-max-width));
  margin: 0;
  object-fit: contain;
  object-position: left center;
}

.brand--wordmark {
  align-items: center;
  justify-content: center;
  padding: 0;
  min-height: 0;
}

.brand--wordmark:hover .brand__wordmark,
.brand--wordmark:focus-visible .brand__wordmark {
  color: #fff;
  text-shadow: 0 0 28px rgba(248, 113, 113, 0.28);
  transform: translateY(-1px);
}

.brand__wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.04em;
  margin: 0;
  font-family: Times, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  font-weight: 700;
  font-style: normal;
  line-height: 0.9;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  padding-left: 0.1em; /* optical center with letter-spacing */
  color: rgba(255, 255, 255, 0.96);
  transition: color 180ms ease, text-shadow 180ms ease, transform 180ms ease;
}

.brand__wordmark span {
  display: block;
}

.topbar__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.55rem, 1.35vw, 1.35rem);
  flex-wrap: nowrap;
  flex: 1 1 auto;
  min-width: 0;
  align-self: center;
  height: calc(var(--topbar-nav-height) + 6px);
  padding: 0 clamp(0.75rem, 1.5vw, 1.25rem) 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  box-sizing: border-box;
}

.topbar__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 0;
  padding: 0 clamp(0.35rem, 0.55vw, 0.55rem);
  height: 100%;
  color: rgba(255, 255, 255, 0.88);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  font-size: clamp(15px, 1.1vw, 17px);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transform: translateZ(0);
  transition:
    color 160ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 160ms cubic-bezier(0.22, 1, 0.36, 1),
    text-shadow 160ms ease,
    opacity 160ms ease;
}

.topbar__link:hover,
.topbar__link:focus-visible {
  background: transparent;
  color: #fff;
  border: 0;
  transform: translateY(-1px);
  box-shadow: none;
  outline: none;
  opacity: 1;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.22);
}

.topbar__link:active {
  transform: translateY(1px) scale(0.97);
  transition-duration: 70ms;
}

.topbar__link[aria-current="page"],
.topbar__dropdown-link[aria-current="page"],
.topbar__mobile-link[aria-current="page"] {
  color: #fff;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-shadow: 0 0 16px rgba(248, 113, 113, 0.28);
}

.topbar__flyout {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  min-width: 0;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.topbar__link--flyout {
  width: auto;
}

button.topbar__link--flyout {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  font: inherit;
  cursor: pointer;
}

.topbar__link--flyout::after {
  content: "▾";
  margin-left: 6px;
  font-size: 0.72em;
  opacity: 0.85;
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.topbar__flyout:hover .topbar__link--flyout::after,
.topbar__flyout:has(> .topbar__link--flyout:focus-visible) .topbar__link--flyout::after {
  transform: rotate(180deg);
}

.topbar__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 176px;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid rgba(248, 113, 113, 0.22);
  background: rgba(14, 12, 20, 0.96);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 4px;
  z-index: 60;
}

.topbar__dropdown--guides {
  min-width: 220px;
  left: 0;
  right: auto;
}

/* Soft hover open — opacity/slide, not click-sticky details */
.topbar__flyout > .topbar__dropdown {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(-6px);
  transition:
    opacity 150ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 150ms;
}

.topbar__flyout > .topbar__dropdown--guides,
.topbar__flyout--more > .topbar__dropdown {
  left: auto;
  right: 0;
  transform: translateX(0) translateY(-6px);
}

.topbar__flyout > .topbar__dropdown--guides {
  left: 0;
  right: auto;
}

/* Hover bridge so the pointer can reach the menu across the gap */
.topbar__flyout > .topbar__dropdown::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

@media (hover: hover) and (pointer: fine) {
  /* Hover opens the menu; mouse click must not pin it open via :focus-within */
  .topbar__flyout:hover > .topbar__dropdown,
  .topbar__flyout:has(> .topbar__link--flyout:focus-visible) > .topbar__dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
    transition-delay: 0s, 0s, 0s;
  }

  .topbar__flyout:hover > .topbar__dropdown--guides,
  .topbar__flyout:has(> .topbar__link--flyout:focus-visible) > .topbar__dropdown--guides,
  .topbar__flyout--more:hover > .topbar__dropdown,
  .topbar__flyout--more:has(> .topbar__link--flyout:focus-visible) > .topbar__dropdown {
    transform: translateX(0) translateY(0);
  }
}

/* Touch / coarse pointer: tap-to-focus still opens the menu */
@media not ((hover: hover) and (pointer: fine)) {
  .topbar__flyout:focus-within > .topbar__dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
    transition-delay: 0s, 0s, 0s;
  }

  .topbar__flyout:focus-within > .topbar__dropdown--guides,
  .topbar__flyout--more:focus-within > .topbar__dropdown {
    transform: translateX(0) translateY(0);
  }
}

.topbar__dropdown-link--all {
  margin-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
}

.topbar__mobile-link--sub {
  padding-left: 1.35rem;
  font-size: 0.92em;
  font-weight: 500;
  opacity: 0.9;
}

.topbar__dropdown-link {
  display: block;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  transition: background 140ms ease, color 140ms ease, transform 140ms cubic-bezier(0.22, 1, 0.36, 1);
}

.topbar__dropdown-link:hover,
.topbar__dropdown-link:focus-visible {
  background: rgba(248, 113, 113, 0.1);
  color: var(--ink);
  outline: none;
  transform: translateX(2px);
}

.topbar__cta {
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 10px;
  padding: 0 0 0.35rem;
  height: calc(var(--topbar-nav-height) + 6px);
  flex-shrink: 0;
  box-sizing: border-box;
}

.topbar-search {
  position: relative;
  display: flex;
  align-items: center;
  z-index: 45;
  height: 100%;
}

.topbar-search__field {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: min(7.75rem, 18vw);
  height: 34px;
  padding: 0 0.65rem 0 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 1px 2px rgba(0, 0, 0, 0.08);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.topbar-search__field:focus-within {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 0 0 3px rgba(255, 255, 255, 0.08);
}

.topbar-search__icon {
  flex: 0 0 auto;
  opacity: 0.75;
  color: rgba(255, 255, 255, 0.88);
  width: 14px;
  height: 14px;
}

.topbar-search__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.96);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 500;
}

.topbar-search__input::placeholder {
  color: rgba(255, 255, 255, 0.52);
}

.topbar-search__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.topbar-search__results {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  width: min(22rem, calc(100vw - 1.5rem));
  max-height: min(24rem, 70vh);
  overflow: auto;
  padding: 0.4rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 9, 15, 0.96);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.topbar-search__empty {
  margin: 0;
  padding: 0.75rem 0.85rem;
  font-size: 0.8125rem;
  color: var(--muted, rgba(255, 255, 255, 0.55));
}

.topbar-search__hit {
  display: grid;
  gap: 0.15rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: background 120ms ease;
}

.topbar-search__hit:hover,
.topbar-search__hit:focus-visible {
  background: rgba(248, 113, 113, 0.1);
  outline: none;
}

.topbar-search__hit-section {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(248, 113, 113, 0.9);
}

.topbar-search__hit-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink, #f5f5f7);
}

.topbar-search__hit-blurb {
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--muted, rgba(255, 255, 255, 0.55));
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 900px) {
  .topbar-search:not(.topbar-search--mobile) {
    display: none;
  }

  .topbar-search--mobile {
    display: block;
    width: 100%;
    margin: 0 0 0.75rem;
  }

  .topbar-search--mobile .topbar-search__field {
    width: 100%;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
  }

  .topbar-search--mobile .topbar-search__results {
    position: relative;
    top: 0.45rem;
    right: auto;
    width: 100%;
    max-height: 16rem;
  }
}

.topbar__cta .button {
  height: 34px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  padding-top: 0;
  padding-bottom: 0;
}

.topbar__mobile-menu {
  display: none;
  position: relative;
  z-index: 40;
  margin-left: auto;
  flex-shrink: 0;
  padding-top: 0;
}

.topbar__menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 1px solid rgba(248, 113, 113, 0.22);
  background: rgba(20, 18, 27, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  list-style: none;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.topbar__menu-toggle::-webkit-details-marker {
  display: none;
}

.topbar__menu-toggle:hover,
.topbar__menu-toggle:focus-visible,
.topbar__mobile-menu[open] > .topbar__menu-toggle {
  background: rgba(40, 25, 33, 0.9);
  border-color: rgba(248, 113, 113, 0.34);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
}

.topbar__menu-icon {
  display: grid;
  gap: 5px;
}

.topbar__menu-icon span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  transition: transform 160ms ease, opacity 160ms ease;
}

.topbar__mobile-menu[open] .topbar__menu-icon span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.topbar__mobile-menu[open] .topbar__menu-icon span:nth-child(2) {
  opacity: 0;
}

.topbar__mobile-menu[open] .topbar__menu-icon span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.topbar__mobile-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(320px, calc(100vw - 20px));
  padding: 14px;
  border-radius: 26px;
  border: 1px solid rgba(248, 113, 113, 0.18);
  background: rgba(10, 10, 15, 0.96);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
  display: grid;
  gap: 10px;
}

.topbar__mobile-nav {
  display: grid;
  gap: 10px;
}

.topbar__mobile-link,
.topbar__mobile-panel .button {
  width: 100%;
}

.topbar__mobile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  color: var(--ink);
  border-radius: 999px;
  border: 1px solid rgba(248, 113, 113, 0.22);
  background: rgba(20, 18, 27, 0.74);
  font-size: 15px;
  font-weight: 700;
}

.button,
.btn,
.chat-send,
.search-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(248, 113, 113, 0.22);
  background: rgba(20, 18, 27, 0.8);
  backdrop-filter: blur(14px);
  color: var(--ink);
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.button:hover,
.btn:hover,
.chat-send:hover:not(:disabled),
.search-go:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.button--primary,
.btn-primary,
.search-go,
.chat-send {
  background:
    linear-gradient(180deg, rgba(248, 113, 113, 0.18), rgba(239, 68, 68, 0.12)),
    var(--card);
  color: #fff;
  border-color: rgba(248, 113, 113, 0.3);
}

.button--primary:hover,
.btn-primary:hover {
  background:
    linear-gradient(180deg, rgba(248, 113, 113, 0.24), rgba(239, 68, 68, 0.18)),
    var(--card);
}

.button--ghost {
  background: var(--card);
}

.main {
  padding: calc(var(--brand-logo-height) + clamp(1.75rem, 3.5vw, 2.75rem)) 0 80px;
  background:
    radial-gradient(circle at 15% -5%, rgba(239, 68, 68, 0.16), transparent 28%),
    radial-gradient(circle at 90% 20%, rgba(59, 130, 246, 0.10), transparent 26%),
    radial-gradient(circle at 50% 118%, rgba(40, 8, 12, 0.72), transparent 36%),
    linear-gradient(180deg, #12090d 0%, var(--bg) 44%, var(--bg-deep) 100%);
}

body.page-home .main {
  padding-top: 0;
}

body.page-home {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% -5%, rgba(239, 68, 68, 0.16), transparent 28%),
    radial-gradient(circle at 90% 20%, rgba(59, 130, 246, 0.10), transparent 26%),
    radial-gradient(circle at 50% 118%, rgba(40, 8, 12, 0.72), transparent 36%),
    linear-gradient(180deg, #12090d 0%, var(--bg) 44%, var(--bg-deep) 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.18);
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #fca5a5);
}

.badge-soon {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.28);
  color: #fcd34d;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
}

.badge-live {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.28);
  color: #86efac;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* Serif italic accent pop — wrap one key word per heading */
.accent-word {
  display: inline-block;
  padding: 0.12em 0.02em 0.08em;
  line-height: 1.35;
  vertical-align: baseline;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  font-family: var(--serif);
  font-style: italic;
  font-weight: inherit;
  color: var(--accent-strong);
}

/* Room for serif italic ascenders — background-clip:text clips glyph tops */
:where(
    .page-hero__title,
    .landing-hero__title,
    .landing-hero__showcase-title,
    .landing-section__head h2,
    .search-card__title,
    h1,
    h2
  ):has(.accent-word) {
  line-height: 1.2;
  overflow: visible;
  padding-top: 0.05em;
}

.page-hero--editorial .page-hero__title:has(.accent-word) {
  line-height: 1.2;
}

.coming-soon-panel {
  max-width: 40rem;
  margin: 0 auto 3rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: var(--page-hero-radius, 20px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(14, 13, 21, 0.55);
  text-align: center;
}

.coming-soon-panel h2 {
  margin: 0 0 0.75rem;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 600;
  line-height: 1.15;
}

.coming-soon-panel p {
  margin: 0 0 1rem;
  color: var(--muted-strong);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.coming-soon-panel ul {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  text-align: left;
}

.coming-soon-panel li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.25rem;
  color: var(--muted-strong);
  font-size: 0.875rem;
  line-height: 1.5;
}

.coming-soon-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

.coming-soon-panel .cta-row {
  justify-content: center;
}

.btn--soon,
.button--soon {
  opacity: 0.72;
  cursor: default;
  pointer-events: none;
}

.landing-tile--soon {
  opacity: 0.92;
}

.landing-tile--soon .landing-tile__link {
  color: #fcd34d;
}

.hero-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  gap: 32px;
  min-height: 780px;
  padding: 138px 40px 40px;
  border-radius: 34px;
  overflow: hidden;
  align-items: start;
}

body.page-home .hero-panel {
  --hero-topbar-space: clamp(4.5rem, 8vw, 5.75rem);
  --hero-content-width: min(1520px, calc(100vw - 48px));
  width: 100vw;
  max-width: 100vw;
  margin-top: 0;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  grid-template-columns: 1fr;
  justify-items: center;
  padding: calc(var(--hero-topbar-space) + 24px) max(24px, calc((100vw - var(--hero-content-width)) / 2)) 48px;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  overflow: visible;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(8, 8, 12, 0.94) 8%, rgba(8, 8, 12, 0.84) 34%, rgba(8, 8, 12, 0.54) 58%, rgba(8, 8, 12, 0.78) 100%),
    linear-gradient(180deg, rgba(8, 8, 12, 0.2) 0%, rgba(8, 8, 12, 0.82) 100%),
    var(--hero-topo-image) center center / cover no-repeat;
  opacity: 0.92;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

body.page-home .hero-panel::before {
  top: 0;
  bottom: 0;
  left: 50%;
  right: auto;
  width: 100vw;
  max-width: none;
  margin-left: 0;
  transform: translate3d(-50%, 0, 0);
  opacity: 1;
  background-image:
    linear-gradient(
      180deg,
      rgba(10, 10, 15, 0.32) 0%,
      rgba(10, 10, 15, 0.62) 8%,
      rgba(10, 10, 15, 0.82) 16%,
      rgba(10, 10, 15, 0.48) 28%,
      rgba(8, 8, 12, 0.14) 42%,
      transparent 58%
    ),
    linear-gradient(180deg, transparent 72%, rgba(8, 8, 12, 0.22) 100%),
    var(--hero-topo-image);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

/*
 * Screen page: mountain hero only (no topo underlay).
 * body is both page-home + page-explore — beat page-home specificity.
 */
body.page-explore,
body.page-home.page-explore {
  --screen-hero-image: url("./screen-hero-mountains.jpg?v=3");
  --screen-footer-band: clamp(7.25rem, 13vh, 9.5rem);
}

body.page-explore .hero-panel,
body.page-home.page-explore .hero-panel {
  isolation: isolate;
  overflow: visible;
  background: transparent;
  border: none;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  /* Mountain stage fills the viewport above the black footer band */
  min-height: calc(100dvh - var(--screen-footer-band));
  padding-top: calc(var(--hero-topbar-space, 5.5rem) + 10px);
  padding-bottom: clamp(0.85rem, 2vh, 1.5rem);
  box-sizing: border-box;
  align-content: start;
}

body.page-explore .hero-panel::before,
body.page-home.page-explore .hero-panel::before {
  z-index: 0;
  opacity: 1;
  /* Extend under the topbar so peaks sit behind nav */
  top: calc(-1 * (var(--hero-topbar-space, 5.5rem) + 1.25rem));
  bottom: 0;
  background-image:
    linear-gradient(
      180deg,
      rgba(5, 4, 8, 0.12) 0%,
      transparent 18%,
      transparent 72%,
      rgba(5, 4, 8, 0.28) 100%
    ),
    var(--screen-hero-image);
  /* Cropped asset puts the crest near the top of the frame */
  background-position: center, center top;
  background-size: cover, cover;
  background-repeat: no-repeat;
  filter: brightness(1.12) contrast(1.08);
  -webkit-mask-image: none;
  mask-image: none;
}

/* No frosted strip behind Screen nav — mountains show through */
body.page-explore .topbar,
body.page-home.page-explore .topbar {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.page-explore .topbar::before,
body.page-home.page-explore .topbar::before {
  content: none;
  display: none;
}

body.page-explore .topbar__nav,
body.page-home.page-explore .topbar__nav {
  border-bottom: none;
}

body.page-explore .topbar__link,
body.page-home.page-explore .topbar__link {
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.65), 0 0 2px rgba(0, 0, 0, 0.4);
}

body.page-explore .brand__wordmark,
body.page-home.page-explore .brand__wordmark {
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
}

body.page-explore .hero-panel::after {
  content: none;
  display: none;
}

body.page-explore .main {
  background: transparent;
}

body.page-explore.page-home {
  background: #05040a;
}

body.page-explore .hero-panel__title,
body.page-home.page-explore .hero-panel__title {
  margin-bottom: 0;
}

body.page-explore .hero-panel__eyebrow,
body.page-home.page-explore .hero-panel__eyebrow {
  margin-bottom: 10px;
}

body.page-home.page-explore .hero-side {
  margin-top: clamp(0.65rem, 2vh, 1.35rem);
}

/* Screening cards — solid glass so mountain/topo does not show through the output card */
body.page-explore .search-card,
body.page-home.page-explore .search-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02)),
    rgba(10, 8, 14, 0.46);
  border-color: rgba(255, 255, 255, 0.11);
  -webkit-backdrop-filter: blur(16px) saturate(145%);
  backdrop-filter: blur(16px) saturate(145%);
}

body.page-explore .screen-brief,
body.page-home.page-explore .screen-brief {
  background-color: rgba(14, 13, 21, 0.94);
  background-image: none;
  border-color: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}

body.page-explore .search-card,
body.page-home.page-explore .search-card {
  padding: 20px 22px;
}

/* Solid black footer band — separate from the mountain stage */
body.page-explore .site-footer,
body.page-home.page-explore .site-footer {
  position: relative;
  z-index: 2;
  margin: 0;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  max-width: none;
  min-height: var(--screen-footer-band);
  padding: 1.2rem max(24px, calc((100vw - var(--hero-content-width, 1520px)) / 2)) 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  background: #05040a;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-sizing: border-box;
}

body.page-explore .site-footer__disclosure,
body.page-home.page-explore .site-footer__disclosure {
  padding-top: 12px;
}

.hero-panel::after {
  content: none;
  display: none;
}

.hero-panel > * {
  position: relative;
  z-index: 1;
}

.page-hero {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: var(--page-hero-gap);
  min-height: var(--page-hero-min-height);
  margin-bottom: var(--page-hero-margin-bottom);
  padding: var(--page-hero-padding);
  border-radius: var(--page-hero-radius);
  overflow: hidden;
  text-align: center;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Glass only — never topo. Drone video is the page atmosphere. */
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(10, 8, 12, 0.25) 45%,
    rgba(6, 5, 8, 0.29) 100%
  );
  opacity: 1;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}

/* Distinct topo focal points from hero-topography-hq.jpg (2560px); cover + HQ assets. */
body.page-chat {
  --page-hero-topo-position: 14% 22%;
}

body.page-faq {
  --page-hero-topo-position: 56% 38%;
}

body.page-about {
  --page-hero-topo-position: 82% 74%;
}

body.page-welcome,
body.page-profile {
  --page-hero-topo-position: 28% 58%;
}

body.page-welcome,
body.page-profile {
  overflow-x: hidden;
}

body.page-welcome .main,
body.page-profile .main {
  position: relative;
  z-index: 1;
}

.welcome-motion-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #050307;
  contain: paint;
}

.welcome-motion-bg__base,
.welcome-motion-bg__grid,
.welcome-motion-bg__glow,
.welcome-motion-bg__particle,
.welcome-motion-bg__vignette {
  position: absolute;
  pointer-events: none;
  will-change: transform, opacity;
}

.welcome-motion-bg__base {
  inset: -8%;
  background:
    radial-gradient(circle at 18% 12%, rgba(248, 113, 113, 0.12), transparent 32%),
    radial-gradient(circle at 84% 24%, rgba(96, 165, 250, 0.08), transparent 30%),
    radial-gradient(circle at 50% 112%, rgba(74, 12, 18, 0.52), transparent 42%),
    linear-gradient(180deg, #080408 0%, #0c070a 46%, #030205 100%);
}

.welcome-motion-bg__grid {
  inset: -18%;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(248, 113, 113, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248, 113, 113, 0.12) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 72% 62% at 50% 42%, #000 0%, transparent 72%);
}

.welcome-motion-bg__glow {
  width: clamp(260px, 34vw, 520px);
  height: clamp(260px, 34vw, 520px);
  border-radius: 999px;
  filter: blur(4px);
  mix-blend-mode: screen;
  opacity: 0.68;
}

.welcome-motion-bg__glow--a {
  left: 5%;
  top: 7%;
  background: radial-gradient(circle, rgba(248, 113, 113, 0.2), transparent 68%);
}

.welcome-motion-bg__glow--b {
  right: -8%;
  top: 30%;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.13), transparent 70%);
}

.welcome-motion-bg__glow--c {
  left: 36%;
  bottom: -18%;
  background: radial-gradient(circle, rgba(251, 113, 133, 0.15), transparent 72%);
}

.welcome-motion-bg__particle {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(248, 113, 113, 0.72);
  box-shadow: 0 0 28px rgba(248, 113, 113, 0.45);
  opacity: 0.44;
}

.welcome-motion-bg__particle--a {
  left: 14%;
  top: 24%;
}

.welcome-motion-bg__particle--b {
  right: 18%;
  top: 18%;
  width: 6px;
  height: 6px;
  background: rgba(147, 197, 253, 0.64);
  box-shadow: 0 0 26px rgba(96, 165, 250, 0.34);
}

.welcome-motion-bg__particle--c {
  left: 72%;
  top: 58%;
}

.welcome-motion-bg__particle--d {
  left: 25%;
  bottom: 20%;
  width: 5px;
  height: 5px;
}

.welcome-motion-bg__particle--e {
  right: 30%;
  bottom: 14%;
  width: 7px;
  height: 7px;
  background: rgba(147, 197, 253, 0.52);
  box-shadow: 0 0 24px rgba(96, 165, 250, 0.26);
}

.welcome-motion-bg__vignette {
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 10%, transparent 0%, rgba(3, 2, 5, 0.18) 64%, rgba(3, 2, 5, 0.72) 100%),
    linear-gradient(180deg, rgba(3, 2, 5, 0.08), rgba(3, 2, 5, 0.45));
}

@media (prefers-reduced-motion: reduce) {
  .welcome-motion-bg__base,
  .welcome-motion-bg__grid,
  .welcome-motion-bg__glow,
  .welcome-motion-bg__particle {
    transform: none !important;
  }
}

body.page-terms,
body.page-privacy {
  --accent: #d4a0a0;
  --accent-strong: #b88888;
  background:
    radial-gradient(circle at 15% -5%, rgba(239, 68, 68, 0.07), transparent 28%),
    radial-gradient(circle at 90% 20%, rgba(220, 38, 38, 0.05), transparent 26%),
    radial-gradient(circle at 50% 118%, rgba(40, 8, 12, 0.5), transparent 36%),
    linear-gradient(180deg, #0f0a0c 0%, var(--bg) 44%, var(--bg-deep) 100%);
}

body.page-terms {
  --page-hero-topo-position: 88% 28%;
}

body.page-terms .main,
body.page-privacy .main {
  background: none;
}

body.page-terms .page-hero::after,
body.page-privacy .page-hero::after {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(248, 113, 113, 0.05), transparent 72%);
}

body.page-terms .eyebrow,
body.page-privacy .eyebrow {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.09);
}

body.page-terms .eyebrow::before,
body.page-privacy .eyebrow::before {
  background: linear-gradient(135deg, rgba(212, 160, 160, 0.75), rgba(180, 140, 140, 0.55));
}

body.page-terms .topbar__link,
body.page-privacy .topbar__link {
  border: 0;
  background: transparent;
}

body.page-terms .topbar__link:hover,
body.page-terms .topbar__link:focus-visible,
body.page-privacy .topbar__link:hover,
body.page-privacy .topbar__link:focus-visible {
  border: 0;
  background: transparent;
  color: #fff;
}

body.page-terms .topbar__dropdown,
body.page-terms .topbar__menu-toggle,
body.page-terms .topbar__mobile-panel,
body.page-privacy .topbar__dropdown,
body.page-privacy .topbar__menu-toggle,
body.page-privacy .topbar__mobile-panel {
  border-color: rgba(255, 255, 255, 0.1);
}

body.page-terms .topbar__menu-toggle:hover,
body.page-terms .topbar__menu-toggle:focus-visible,
body.page-terms .topbar__mobile-menu[open] > .topbar__menu-toggle,
body.page-privacy .topbar__menu-toggle:hover,
body.page-privacy .topbar__menu-toggle:focus-visible,
body.page-privacy .topbar__mobile-menu[open] > .topbar__menu-toggle {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(28, 26, 34, 0.9);
}

body.page-terms .button--primary,
body.page-privacy .button--primary {
  background:
    linear-gradient(180deg, rgba(248, 113, 113, 0.08), rgba(239, 68, 68, 0.05)),
    var(--card);
  border-color: rgba(248, 113, 113, 0.16);
}

body.page-terms .button--primary:hover,
body.page-privacy .button--primary:hover {
  background:
    linear-gradient(180deg, rgba(248, 113, 113, 0.12), rgba(239, 68, 68, 0.08)),
    var(--card);
}

body.page-terms .legal-emphasis,
body.page-privacy .legal-emphasis {
  color: var(--muted-strong);
}

body.page-terms .site-footer__disclosure-toggle,
body.page-privacy .site-footer__disclosure-toggle {
  color: var(--muted-strong);
}

body.page-terms .site-footer__disclosure-toggle:hover,
body.page-privacy .site-footer__disclosure-toggle:hover {
  color: var(--ink);
}

body.page-terms .site-footer__disclosure-toggle:focus-visible,
body.page-privacy .site-footer__disclosure-toggle:focus-visible {
  outline-color: rgba(255, 255, 255, 0.28);
}

body.page-pricing {
  --page-hero-topo-position: 42% 12%;
}

body.page-contact {
  --page-hero-topo-position: 72% 52%;
}

body.page-resources {
  --page-hero-topo-position: 22% 82%;
}

body.page-privacy {
  --page-hero-topo-position: 48% 68%;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -34% auto;
  width: 270px;
  height: 270px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(248, 113, 113, 0.16), transparent 70%);
  pointer-events: none;
}

.page-hero > * {
  position: relative;
  z-index: 1;
}

.page-hero__eyebrow {
  justify-self: center;
  margin: 0 auto;
  padding: 5px 10px;
  font-size: 10px;
}

.page-hero__title {
  margin: 0;
  max-width: min(36ch, 92%);
  font-family: var(--serif);
  font-size: var(--hero-title-size);
  font-weight: 600;
  line-height: var(--hero-title-line-height);
  letter-spacing: var(--hero-title-letter-spacing);
  text-transform: none;
  text-wrap: balance;
  text-rendering: optimizeLegibility;
}

.page-hero__lead {
  max-width: 40rem;
  margin: 0;
  color: var(--muted-strong);
  font-size: var(--page-hero-lead-size);
  line-height: 1.55;
  text-wrap: balance;
}

/* City / county / AEO guides: let the lead breathe across the hero card */
body.page-county .page-hero__lead,
body.page-city .page-hero__lead,
body.page-aeo .page-hero__lead {
  max-width: min(58rem, 94%);
  line-height: 1.6;
  text-wrap: pretty;
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 0.2rem;
}

.page-hero .cta-row {
  justify-content: center;
  margin-top: 0.35rem;
  gap: 0.65rem;
}

.page-hero .aeo-updated {
  margin: 0.05rem 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.01em;
}

.section {
  margin-top: 36px;
}

.page-hero--editorial {
  justify-items: start;
  text-align: left;
}

.page-hero--editorial .page-hero__eyebrow {
  justify-self: start;
  margin: 0;
}

.page-hero--editorial .page-hero__title {
  max-width: min(32ch, 94%);
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.4vw, 2.65rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.024em;
  text-transform: none;
  text-wrap: pretty;
}

.page-hero--editorial .page-hero__lead {
  max-width: 42rem;
  font-size: 0.98rem;
  line-height: 1.6;
  text-wrap: pretty;
}

.hero-panel__eyebrow {
  grid-column: 1 / -1;
  justify-self: center;
  margin: 0 auto 16px;
}

.hero-panel__subeyebrow {
  grid-column: 1 / -1;
  justify-self: center;
  margin: 0 auto 24px;
  color: var(--muted);
}

.hero-panel__title {
  grid-column: 1 / -1;
  justify-self: center;
  margin: 0 auto 10px;
  text-align: center;
  font-family: var(--sans);
  font-size: clamp(38px, 5.4vw, 64px);
  font-weight: 600;
  line-height: var(--hero-title-line-height);
  letter-spacing: var(--hero-title-letter-spacing);
  text-transform: uppercase;
  text-wrap: balance;
  text-rendering: optimizeLegibility;
}

.hero-panel__lead {
  grid-column: 1 / -1;
  justify-self: center;
  margin: 0 auto 24px;
  text-align: center;
  max-width: 34rem;
  font-size: 19px;
  color: var(--accent-strong);
}

.hero-panel__lead--pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.18);
  box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.05);
}

.hero-panel__lead--pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #fca5a5);
}

.hero-main {
  display: grid;
  gap: 24px;
  align-content: start;
  justify-items: center;
  min-height: 100%;
  padding-top: 12px;
}

.hero-copy {
  width: min(100%, 42rem);
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}

.hero-copy h1,
.page-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.032em;
  max-width: 10ch;
  text-wrap: balance;
  text-rendering: optimizeLegibility;
}

.hero-copy__lead,
.lead {
  margin: 0;
  max-width: 34rem;
  font-size: 19px;
  color: var(--muted-strong);
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  justify-content: center;
}

.hero-copy .cta-row {
  justify-content: center;
}

.hero-highlight,
.layer-tag,
.parcel-badge,
.micro-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted-strong);
}

.parcel-badge[hidden],
.parcel-badge:empty {
  display: none;
}

.micro-pill--brand {
  background: rgba(148, 163, 184, 0.12);
  color: var(--muted-strong);
}

.search-card,
.welcome-card,
.detail-card,
.pricing-card,
.chat-panel,
.story-card,
.feature-card,
.faq-card {
  border-radius: 24px;
  padding: 19px;
  overflow: hidden;
}

.search-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  contain: paint;
  box-shadow: var(--shadow-md), var(--glass-highlight);
  text-align: left;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

body.page-home .search-card {
  padding: 24px;
}

.search-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(248, 113, 113, 0.12), rgba(248, 113, 113, 0.34), rgba(248, 113, 113, 0.12));
  opacity: 0;
  transition: opacity 160ms ease;
}

.search-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 34%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(248, 113, 113, 0), rgba(239, 68, 68, 0.95) 30%, rgba(248, 113, 113, 1) 60%, rgba(248, 113, 113, 0));
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.5);
  opacity: 0;
  transform: translate3d(-135%, 0, 0);
  pointer-events: none;
}

.search-card.is-loading::before,
.search-card.is-loading::after {
  opacity: 1;
}

.search-card.is-loading::after {
  animation: search-card-loading 1.15s ease-in-out infinite;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .search-card.is-loading::after {
    animation: none;
    transform: translate3d(0, 0, 0);
    opacity: 0.85;
  }
}

.search-card .cta-row,
.search-card .hero-highlights {
  justify-content: flex-start;
}

.search-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.search-card__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.search-card__title {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.08;
}

.search-card__copy {
  margin: 8px 0 0;
  max-width: 34rem;
  color: var(--muted);
}

.search-grid {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  gap: 16px;
  align-items: end;
}

.screen-brief {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 24px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025)),
    rgba(14, 13, 21, 0.58);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px) saturate(140%);
}

.screen-brief__head {
  display: grid;
  gap: 8px;
}

.screen-brief__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.screen-brief__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.12;
  word-break: break-word;
}

.screen-brief__apn,
.screen-brief__lot,
.screen-brief__copy {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.45;
  font-size: 14px;
}

.screen-brief__apn {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.screen-brief__group h3 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.screen-brief__group ul,
.screen-brief__links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.screen-brief__group li,
.screen-brief__links li {
  position: relative;
  padding-left: 18px;
  color: var(--ink);
  line-height: 1.45;
}

.screen-brief__group li::before,
.screen-brief__links li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #fca5a5);
  box-shadow: 0 0 14px rgba(248, 113, 113, 0.32);
}

.screen-brief__links a {
  color: var(--muted-strong);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.screen-brief__links a:hover {
  color: var(--ink);
}

.screen-brief__links-empty {
  color: var(--muted) !important;
  padding-left: 0 !important;
}

.screen-brief__links-empty::before {
  display: none !important;
}

.screen-brief__scores {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.screen-brief__score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 6, 10, 0.35);
}

.screen-brief__score-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.screen-brief__score-value {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-strong);
  white-space: nowrap;
}

.screen-brief__score-value.intel-band--high {
  color: #fda4a4;
}

.screen-brief__score-value.intel-band--med {
  color: #fbbf24;
}

.screen-brief__score-value.intel-band--low {
  color: #86efac;
}

.screen-brief[data-state="idle"] .screen-brief__title {
  color: var(--muted-strong);
}

.screen-brief__callout {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(248, 113, 113, 0.16);
  background: rgba(248, 113, 113, 0.06);
}

.screen-brief__callout-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label,
.county-label,
.search-block-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.field,
.county-select,
.search-input,
.chat-input,
.welcome-input,
.welcome-select {
  width: 100%;
  min-width: 0;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(9, 12, 17, 0.88);
  color: var(--ink);
  padding: 14px 16px;
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.field:focus,
.county-select:focus,
.search-input:focus,
.chat-input:focus,
.welcome-input:focus,
.welcome-select:focus {
  border-color: rgba(248, 113, 113, 0.52);
  box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.12);
  background: rgba(13, 17, 23, 0.96);
}

.search-bar {
  display: flex;
  gap: 10px;
}

.search-input {
  flex: 1;
}

.search-go {
  padding-inline: 20px;
  border-radius: 18px;
}

.search-hint,
.search-status,
.summary-verify,
.chat-footer,
.welcome-note {
  color: var(--muted);
  font-size: 13px;
}

.welcome-demo-hint {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.92em;
}

.search-status.is-error {
  color: var(--danger);
}

.search-suggest {
  margin-top: 8px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(12, 16, 22, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-md);
}

.suggest-item {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  color: var(--ink);
  padding: 12px 16px;
  cursor: pointer;
}

.suggest-item:last-child {
  border-bottom: none;
}

.suggest-item:hover {
  background: rgba(248, 113, 113, 0.08);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-side {
  display: grid;
  gap: 18px;
  align-content: start;
  padding-top: 0;
}

body.page-home .hero-side {
  grid-column: 1 / -1;
  width: min(100%, min(1600px, calc(100vw - 40px)));
  grid-template-columns: minmax(0, 1.24fr) minmax(320px, 0.76fr);
  gap: 22px;
  align-items: stretch;
  margin-top: 40px;
}

body.page-home .preview-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

body.page-home .preview-map {
  flex: 1;
  min-height: 420px;
  height: auto;
}

.preview-card {
  border-radius: 26px;
  overflow: hidden;
  isolation: isolate;
  contain: paint;
}

.preview-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 15px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 13px;
}

.preview-head strong {
  color: var(--ink);
}

.preview-map {
  height: 380px;
  background: #0d1117;
}

.preview-map .maplibregl-ctrl-top-right {
  top: 12px;
  right: 12px;
}

.preview-map .maplibregl-ctrl-group {
  background: rgba(15, 19, 25, 0.9);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

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

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

.hero-stat {
  padding: 18px;
  border-radius: 22px;
  background: var(--glass-sheen), var(--glass-bg-subtle);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), var(--glass-highlight);
  -webkit-backdrop-filter: blur(var(--glass-blur-sm)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur-sm)) saturate(var(--glass-saturate));
}

.hero-stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 34px;
  line-height: 0.98;
}

.hero-stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.stat-card {
  padding: 18px;
  border-radius: 22px;
  background: var(--glass-sheen), var(--glass-bg-subtle);
  border: 1px solid var(--glass-border-subtle);
  box-shadow: var(--glass-shadow), var(--glass-highlight);
  -webkit-backdrop-filter: blur(var(--glass-blur-sm)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur-sm)) saturate(var(--glass-saturate));
}

.stat-card__value {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1;
}

.stat-card__label {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 0.84fr);
  align-items: start;
  gap: 18px 48px;
  margin-bottom: 24px;
}

.section-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.026em;
  max-width: none;
  text-wrap: balance;
}

.section-head p {
  margin: 0;
  max-width: none;
  color: var(--muted-strong);
  line-height: 1.68;
}

.page-faq .section-head {
  display: block;
  text-align: center;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-faq .section-head h2 {
  display: inline-block;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 54px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.faq-jump-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 28px auto 42px;
  max-width: 980px;
}

.faq-jump-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.faq-jump-nav a:hover,
.faq-jump-nav a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(244, 244, 245, 0.32);
  background: rgba(255, 255, 255, 0.09);
  color: var(--text);
}

.faq-category {
  scroll-margin-top: 110px;
}

.faq-category + .faq-category {
  margin-top: 64px;
}

.faq-category__intro {
  max-width: 840px;
  margin: 0 auto 22px;
  text-align: center;
}

.faq-category__intro .eyebrow {
  justify-content: center;
  margin-bottom: 14px;
}

.faq-category__intro h3 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 54px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

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

.feature-card,
.story-card,
.journey-card,
.faq-card {
  border-radius: 24px;
  padding: 24px;
}

.feature-card .cta-row,
.journey-card .cta-row,
.faq-card .cta-row {
  margin-top: 18px;
}

.feature-card__icon,
.journey-card__step {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(148, 163, 184, 0.12);
  color: var(--muted-strong);
  font-weight: 800;
}

.feature-card h3,
.journey-card h3,
.story-card h3,
.pricing-card h3,
.faq-card h3 {
  margin: 16px 0 8px;
  font-size: 20px;
  line-height: 1.18;
}

.feature-card p,
.journey-card p,
.story-card p,
.pricing-card p,
.faq-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.journey-card {
  position: relative;
  overflow: hidden;
}

.journey-card::after {
  content: "";
  position: absolute;
  inset: auto -18% -30% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(248, 113, 113, 0.12), transparent 70%);
}

.cta-panel {
  margin-top: 0;
  padding: 26px;
  border-radius: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
}

.cta-panel h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(26px, 3.6vw, 36px);
  line-height: 1.08;
  letter-spacing: -0.026em;
  max-width: 14ch;
  text-wrap: balance;
}

.cta-panel p {
  margin: 10px 0 0;
  color: var(--muted-strong);
  max-width: 40rem;
}

.cta-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.cta-panel--actions-only {
  grid-template-columns: 1fr;
  margin-top: 56px;
}

.cta-panel--actions-only .cta-panel__actions {
  justify-self: center;
}

body.page-contact .cta-panel--contact .cta-panel__actions {
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

body.page-contact .cta-panel--contact .button--lead {
  padding: 15px 32px;
  font-size: 16px;
  min-width: 220px;
}

body.page-contact .cta-panel--contact .cta-panel__actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.screening-summary {
  margin-top: 30px;
  padding: 30px;
  border-radius: 30px;
  background: var(--card-strong);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-lg);
}

.summary-head {
  margin-bottom: 24px;
}

.summary-intel-slot:empty {
  display: none;
}

.summary-brand {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.summary-apn {
  margin-top: 6px;
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.04;
}

.summary-address {
  margin-top: 8px;
  color: var(--muted-strong);
}

.summary-coverage {
  margin: 12px 0 0;
  font-weight: 700;
}

.summary-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}

.summary-screened-at {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.print-only {
  display: none;
}

.btn-toolbar--export {
  border-color: rgba(52, 211, 153, 0.28);
}

/* ---------------------------------------------------------------------------
 * Customize PDF popup (screen page)
 * ------------------------------------------------------------------------- */
html.pdf-customize-open {
  overflow: hidden;
}

.pdf-customize {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(8, 10, 14, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.pdf-customize__card {
  width: min(520px, 100%);
  max-height: min(92vh, 720px);
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(165deg, rgba(28, 32, 40, 0.98) 0%, rgba(16, 18, 24, 0.98) 100%);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  color: var(--text, #f4f4f5);
}

.pdf-customize__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 22px 0;
}

.pdf-customize__eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(52, 211, 153, 0.9);
}

.pdf-customize__title {
  margin: 0;
  font-family: Times, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.pdf-customize__parcel {
  margin: 6px 0 0;
  font-size: 0.875rem;
  color: var(--muted-strong, #a1a1aa);
}

.pdf-customize__close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.pdf-customize__close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.pdf-customize__body {
  padding: 18px 22px 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pdf-customize__fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pdf-customize__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(244, 244, 245, 0.88);
}

.pdf-customize__field textarea,
.pdf-customize__field input[type="file"] {
  font: inherit;
  font-weight: 400;
  color: #f4f4f5;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.28);
}

.pdf-customize__field textarea {
  padding: 10px 12px;
  resize: vertical;
  min-height: 56px;
}

.pdf-customize__field input[type="file"] {
  padding: 8px 10px;
  font-size: 0.8rem;
}

.pdf-customize__hint {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted, #71717a);
}

.pdf-customize__locked {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pdf-customize__locked p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(244, 244, 245, 0.9);
}

.pdf-customize__watermark-note,
.pdf-customize__saved {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted-strong, #a1a1aa);
}

.pdf-customize__saved a {
  color: rgba(52, 211, 153, 0.95);
}

.pdf-customize__foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 22px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---------------------------------------------------------------------------
 * PDF Studio — full-screen preview + drag editor
 * ------------------------------------------------------------------------- */
html.pdf-studio-open {
  overflow: hidden;
}

.pdf-studio {
  position: fixed;
  inset: 0;
  z-index: 1300;
  background: #0b0c10;
  color: #f4f4f5;
}

.pdf-studio__shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.pdf-studio__bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(28, 30, 38, 0.98), rgba(16, 18, 24, 0.96));
}

.pdf-studio__eyebrow {
  margin: 0 0 2px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(52, 211, 153, 0.9);
}

.pdf-studio__title {
  margin: 0;
  font-family: Times, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 600;
}

.pdf-studio__parcel {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: #a1a1aa;
}

.pdf-studio__bar-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.pdf-studio__main {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 220px;
  gap: 0;
}

.pdf-studio__rail,
.pdf-studio__inspector {
  padding: 14px 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  overflow: auto;
  background: rgba(12, 14, 18, 0.95);
}

.pdf-studio__inspector {
  border-right: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.pdf-studio__rail-label {
  margin: 12px 0 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #71717a;
}

.pdf-studio__rail-label:first-child {
  margin-top: 0;
}

.pdf-studio__tools {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pdf-studio__tool {
  appearance: none;
  text-align: left;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.pdf-studio__tool:hover {
  background: rgba(255, 255, 255, 0.09);
}

.pdf-studio__tool--alt {
  border-style: dashed;
  color: #d4d4d8;
}

.pdf-studio__logo-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
}

.pdf-studio__logo-field input {
  font: inherit;
  font-weight: 400;
  font-size: 0.75rem;
  color: #e4e4e7;
}

.pdf-studio__hint {
  margin: 10px 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: #71717a;
}

.pdf-studio__saved {
  margin-top: 16px;
  font-size: 0.75rem;
  color: #a1a1aa;
}

.pdf-studio__saved a {
  color: rgba(52, 211, 153, 0.95);
}

.pdf-studio__locked {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pdf-studio__locked p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
}

.pdf-studio__layers {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 240px;
  overflow: auto;
}

.pdf-studio__layer {
  appearance: none;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 7px 8px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: #d4d4d8;
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
}

.pdf-studio__layer:hover,
.pdf-studio__layer.is-active {
  background: rgba(255, 255, 255, 0.08);
}

.pdf-studio__layer.is-dim {
  opacity: 0.45;
}

.pdf-studio__layer em {
  font-style: normal;
  color: #71717a;
}

.pdf-studio__reset {
  margin-top: 12px;
  width: 100%;
}

.pdf-studio__field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #d4d4d8;
}

.pdf-studio__field textarea,
.pdf-studio__field input {
  font: inherit;
  font-weight: 400;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.28);
  color: #f4f4f5;
  padding: 8px;
}

.pdf-studio__inspector-name {
  margin: 0 0 10px;
  font-weight: 700;
  font-size: 0.9rem;
}

.pdf-studio__stage-wrap {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  background: #5c5f66;
  padding: 28px 20px 48px;
  position: relative;
}

.pdf-studio__stage-toolbar {
  position: sticky;
  top: 8px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: calc(100% - 24px);
  margin: 0 auto 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  color: #f8fafc;
  font-size: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.pdf-studio__stage-toolbar[hidden] {
  display: none !important;
}

.pdf-studio__stage-toolbar button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.1);
  color: inherit;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.pdf-studio__stage-toolbar button:hover {
  background: rgba(255, 255, 255, 0.18);
}

.pdf-studio__stage {
  margin: 0 auto;
  width: min(816px, 100%); /* ~ letter at 96dpi */
}

.pdf-studio__main--wysiwyg {
  grid-template-columns: 220px minmax(0, 1fr);
}

.pdf-studio__loading,
.pdf-studio__error {
  margin: 48px auto;
  text-align: center;
  color: #e4e4e7;
}

.pdf-studio__error {
  color: #fca5a5;
}

/* Live report — letter pages that look like the PDF */
html.pdf-studio-open .pv-report.pv-report--studio,
.pv-report.pv-report--studio {
  display: block !important;
  color: #0f172a;
  background: transparent;
}

html.pdf-studio-open .pv-report--studio .pv-page,
.pv-report.pv-report--studio .pv-page {
  width: 100%;
  max-width: 8.5in;
  min-height: 11in;
  margin: 0 auto 28px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  border: 0;
  overflow: visible;
  background: #fff;
}

/* Selection wrappers — invisible until selected (no dark bars) */
.pdf-studio-block {
  position: relative;
  box-sizing: border-box;
  outline: 2px solid transparent;
  outline-offset: 2px;
  cursor: grab;
  border-radius: 2px;
}

.pdf-studio-block.is-positioned {
  cursor: move;
}

.pdf-studio-block.is-selected {
  outline-color: #3b82f6;
  z-index: 8;
}

.pdf-studio-block.is-dragging {
  opacity: 0.92;
  cursor: grabbing;
}

.pdf-studio-block.is-hidden-block {
  opacity: 0.22;
  filter: grayscale(0.5);
}

.pdf-studio-block[data-locked="1"] {
  cursor: default;
}

.pdf-studio-block__handles {
  display: none;
  pointer-events: none;
}

.pdf-studio-block.is-selected > .pdf-studio-block__handles,
.pdf-studio-overlay.is-selected > .pdf-studio-block__handles {
  display: block;
  pointer-events: auto;
}

.pdf-studio-block__tag {
  position: absolute;
  left: 0;
  top: -22px;
  padding: 2px 8px;
  border-radius: 4px 4px 0 0;
  background: #3b82f6;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  pointer-events: none;
}

.pdf-studio-block__x {
  position: absolute;
  right: -10px;
  top: -10px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.pdf-studio-block__resize {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 2px solid #fff;
  background: #3b82f6;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
  pointer-events: auto;
  cursor: nwse-resize;
  right: -5px;
  bottom: -5px;
}

.pdf-studio-block__resize--nw {
  left: -5px;
  top: -5px;
  right: auto;
  bottom: auto;
  cursor: nwse-resize;
}

.pdf-studio-block__resize--ne {
  right: -5px;
  top: -5px;
  bottom: auto;
  cursor: nesw-resize;
}

.pdf-studio-block__resize--sw {
  left: -5px;
  bottom: -5px;
  right: auto;
  cursor: nesw-resize;
}

.pdf-studio-page {
  position: relative;
}

.pdf-studio-overlay {
  position: absolute;
  z-index: 7;
  box-sizing: border-box;
  padding: 4px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  cursor: move;
}

.pdf-studio-overlay.is-selected {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.pdf-studio-overlay img {
  display: block;
  width: 100%;
  height: auto;
}

.pdf-studio-overlay__body {
  font-size: 12px;
  line-height: 1.4;
  padding: 4px;
}

.pv-studio-text {
  margin: 3mm 0;
  padding: 3mm 4mm;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.45;
  color: #334155;
  white-space: pre-wrap;
}

.pv-studio-callout {
  margin: 3mm 0;
  padding: 3.5mm 4.5mm;
  border-left: 3px solid #b91c1c;
  border-radius: 0 6px 6px 0;
  background: #fef2f2;
  font-size: 11px;
  line-height: 1.45;
  color: #3f3038;
}

.pv-studio-callout strong {
  display: block;
  margin-bottom: 2mm;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9f1239;
}

.pv-studio-callout p {
  margin: 0;
}

.pv-studio-divider {
  border: 0;
  border-top: 1px solid #e2e8f0;
  margin: 4mm 0;
}

.pv-studio-spacer {
  height: 10mm;
}

.pv-studio-image {
  margin: 3mm 0;
}

.pv-studio-image img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}

.pv-studio-image figcaption {
  margin-top: 2mm;
  font-size: 9px;
  color: #64748b;
}

@media (max-width: 980px) {
  .pdf-studio__main,
  .pdf-studio__main--wysiwyg {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .pdf-studio__rail {
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    max-height: 28vh;
  }
}

@media print {
  .pdf-studio,
  .pdf-studio-block__handles,
  .pdf-studio__stage-toolbar,
  .no-print {
    display: none !important;
  }

  .pdf-studio-placed,
  .pdf-studio-overlay {
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
  }
}

.recent-screenings {
  margin-top: 28px;
  padding: 22px 24px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 13, 21, 0.45);
}

.recent-screenings__head h2 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
}

.recent-screenings__head p {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--muted-strong);
}

.recent-screenings__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.recent-screenings__open {
  display: grid;
  gap: 0.2rem;
  width: 100%;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.recent-screenings__open:hover {
  border-color: rgba(248, 113, 113, 0.25);
  background: rgba(248, 113, 113, 0.06);
}

.recent-screenings__label {
  font-size: 0.9375rem;
  font-weight: 600;
}

.recent-screenings__summary {
  font-size: 0.8125rem;
  color: var(--muted-strong);
}

.recent-screenings__when {
  font-size: 0.75rem;
  color: var(--muted);
}

.intel-panel {
  margin: 0 0 28px;
  padding: 24px;
  border-radius: 28px;
}

.intel-panel__head {
  margin-bottom: 18px;
}

.intel-panel__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.1;
}

.intel-panel__header {
  margin: 8px 0 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.intel-panel__subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

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

.intel-grid--extra {
  margin-top: 14px;
}

.intel-more {
  margin-top: 4px;
}

.intel-more__toggle {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--glass-border-subtle);
  background: var(--glass-sheen), rgba(0, 0, 0, 0.22);
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  user-select: none;
}

.intel-more__toggle::-webkit-details-marker {
  display: none;
}

.intel-more__toggle::after {
  content: "▾";
  font-size: 11px;
  opacity: 0.75;
  transition: transform 0.2s ease;
}

.intel-more[open] .intel-more__toggle::after {
  transform: rotate(180deg);
}

.intel-more__toggle:hover {
  border-color: var(--glass-border);
  color: var(--text);
}

.intel-card {
  padding: 16px 18px;
  border-radius: 20px;
  background: var(--glass-sheen), rgba(0, 0, 0, 0.28);
  border: 1px solid var(--glass-border-subtle);
  box-shadow: var(--glass-shadow), var(--glass-highlight);
  -webkit-backdrop-filter: blur(var(--glass-blur-sm)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur-sm)) saturate(var(--glass-saturate));
}

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

.intel-card__title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-strong);
}

.intel-band {
  flex-shrink: 0;
  max-width: 52%;
  text-align: right;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.intel-band--low {
  background: rgba(52, 211, 153, 0.16);
  color: #6ee7b7;
}

.intel-band--med {
  background: rgba(251, 191, 36, 0.16);
  color: #fcd34d;
}

.intel-band--high {
  background: rgba(248, 113, 113, 0.18);
  color: #fca5a5;
}

.intel-meter {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.intel-meter__track {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.intel-meter__fill {
  height: 100%;
  border-radius: inherit;
  transition: width 0.35s ease;
}

.intel-meter__fill.intel-band--low {
  background: linear-gradient(90deg, #34d399, #6ee7b7);
}

.intel-meter__fill.intel-band--med {
  background: linear-gradient(90deg, #f59e0b, #fcd34d);
}

.intel-meter__fill.intel-band--high {
  background: linear-gradient(90deg, #ef4444, #fca5a5);
}

.intel-meter__value {
  min-width: 2ch;
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.intel-drivers {
  margin: 0 0 10px;
  padding-left: 18px;
  color: var(--muted-strong);
  font-size: 13px;
  line-height: 1.45;
}

.intel-drivers li + li {
  margin-top: 4px;
}

.intel-meta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.intel-verify-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #93c5fd;
  text-decoration: none;
}

.intel-verify-link:hover {
  text-decoration: underline;
}

.intel-disclaimer {
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.intel-panel--skeleton .intel-card--skeleton {
  min-height: 120px;
}

.btn-toolbar {
  padding: 10px 15px;
}

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

.summary-section {
  padding: 20px;
  border-radius: 24px;
}

.summary-section h3 {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.summary-empty {
  margin: 0;
  color: var(--muted);
}

.summary-row {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-row--dimmed {
  opacity: 0.72;
}

.summary-row-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.swatch {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex-shrink: 0;
}

.summary-value {
  margin-top: 4px;
  padding-left: 18px;
}

.summary-meta {
  margin-top: 4px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
}

.summary-source-link {
  display: inline-block;
  margin-top: 7px;
  padding-left: 18px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
}

.summary-foot {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 13px;
  max-width: 54rem;
}

.screening-summary--loading .summary-verify {
  opacity: 0.72;
}

.summary-loading {
  margin: 0 0 22px;
}

.summary-loading__status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.summary-loading__spinner {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  box-sizing: border-box;
  border: 2px solid rgba(248, 113, 113, 0.22);
  border-top-color: var(--accent-strong, #ef4444);
  border-radius: 50%;
  animation: screening-spinner 0.75s linear infinite;
}

.summary-loading-bar {
  height: 3px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.summary-loading-bar__fill {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    rgba(239, 68, 68, 0.15),
    rgba(239, 68, 68, 0.95) 45%,
    rgba(248, 113, 113, 0.15)
  );
  animation: summary-loading-indeterminate 1.35s ease-in-out infinite;
}

.summary-loading-text {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.summary-loading-text::before {
  content: none;
}

@keyframes screening-spinner {
  to { transform: rotate(360deg); }
}

.summary-apn--pending {
  color: var(--muted-strong);
}

.summary-section--loading {
  min-height: 168px;
}

.summary-row--skeleton {
  pointer-events: none;
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

.summary-skeleton-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.summary-skeleton-swatch {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
}

.summary-skeleton-line {
  display: block;
  height: 11px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.14) 48%,
    rgba(255, 255, 255, 0.04) 100%
  );
  background-size: 220% 100%;
  animation: summary-shimmer 1.45s ease-in-out infinite;
  animation-delay: var(--skeleton-delay, 0s);
}

.summary-skeleton-line--title {
  width: min(68%, 220px);
  height: 13px;
}

.summary-skeleton-line--value {
  width: min(82%, 280px);
  margin-top: 10px;
  margin-left: 18px;
}

.summary-skeleton-line--meta {
  width: min(46%, 140px);
  margin-top: 8px;
  margin-left: 18px;
  height: 9px;
  opacity: 0.72;
}

.summary-skeleton-line--label {
  width: 38%;
  height: 12px;
  margin-bottom: 14px;
}

.summary-skeleton-line--wide {
  width: 100%;
  height: 12px;
  margin-top: 10px;
}

.summary-skeleton-line--short {
  width: 72%;
}

.intel-panel--skeleton .intel-panel__head {
  display: grid;
  gap: 10px;
}

.summary-skeleton-line--intel-title {
  width: min(52%, 280px);
  height: 22px;
}

.summary-skeleton-line--intel-sub {
  width: min(72%, 420px);
  height: 11px;
  opacity: 0.72;
}

.intel-card--skeleton .summary-skeleton-head {
  justify-content: space-between;
  margin-bottom: 14px;
}

.summary-skeleton-line--meter {
  width: 100%;
  height: 8px;
  margin-top: 0;
  margin-left: 0;
}

@keyframes summary-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@keyframes summary-loading-indeterminate {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(320%);
  }
}

@keyframes summary-loading-pulse {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.92);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .summary-loading-bar__fill,
  .summary-skeleton-line,
  .summary-loading-text::before {
    animation: none;
  }

  .summary-loading__spinner {
    animation: none;
  }

  .summary-loading-bar__fill {
    width: 100%;
    opacity: 0.55;
  }

  .summary-skeleton-line {
    background: rgba(255, 255, 255, 0.08);
  }

  .summary-loading-text::before {
    opacity: 0.85;
  }
}

.site-footer,
.page-footer {
  margin: 0 0 24px;
  padding: 40px 0 12px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  width: 100%;
}

.site-footer p,
.page-footer p {
  margin: 0;
  color: var(--muted);
  max-width: 38rem;
  font-size: 13px;
  line-height: 1.65;
}

.site-footer__disclosure {
  width: 100%;
  max-width: none;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer p.site-footer__disclosure-lead,
.site-footer__disclosure p.site-footer__disclosure-lead {
  font-weight: 600;
  color: var(--text-primary, inherit);
  margin: 0;
  max-width: none;
  font-size: clamp(10.5px, 0.72vw + 3.5px, 12.75px);
  line-height: 1.35;
  letter-spacing: -0.014em;
}
@media (min-width: 1100px) {
  .site-footer p.site-footer__disclosure-lead,
  .site-footer__disclosure p.site-footer__disclosure-lead {
    white-space: nowrap;
  }
}
@media (max-width: 1099px) {
  .site-footer p.site-footer__disclosure-lead,
  .site-footer__disclosure p.site-footer__disclosure-lead {
    white-space: normal;
    text-wrap: pretty;
  }
}

.site-footer__disclosure p {
  max-width: none;
}

.site-footer__disclosure p + p {
  margin-top: 10px;
}

.site-footer__disclosure-details {
  margin-top: 10px;
}

.site-footer__disclosure-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
}

.site-footer__disclosure-toggle::-webkit-details-marker {
  display: none;
}

.site-footer__disclosure-toggle::after {
  content: "▾";
  font-size: 11px;
  opacity: 0.85;
  transition: transform 160ms ease;
}

.site-footer__disclosure-details[open] .site-footer__disclosure-toggle::after {
  transform: rotate(180deg);
}

.site-footer__disclosure-toggle .when-open {
  display: none;
}

.site-footer__disclosure-details[open] .site-footer__disclosure-toggle .when-closed {
  display: none;
}

.site-footer__disclosure-details[open] .site-footer__disclosure-toggle .when-open {
  display: inline;
}

.site-footer__disclosure-more {
  margin-top: 10px;
}

.site-footer__disclosure-more p:first-child {
  margin-top: 0;
}

.site-footer__disclosure-toggle:hover {
  color: #fca5a5;
}

.site-footer__disclosure-toggle:focus-visible {
  outline: 2px solid rgba(248, 113, 113, 0.45);
  outline-offset: 3px;
  border-radius: 4px;
}

.site-footer__disclosure strong {
  color: var(--muted-strong);
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  color: var(--muted-strong);
}

.footer-links a:hover {
  color: var(--ink);
}

/* Legacy alias — docs pages previously used page-footer + header-links */
.page-footer .header-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted-strong);
}

.page-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 24px 28px;
  margin-bottom: 42px;
  align-items: start;
}

.docs-shell {
  display: grid;
  gap: 0;
}

.legal-card {
  border-radius: 28px;
  padding: 30px 32px 34px;
}

.legal-card h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 3.1vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.026em;
  max-width: none;
  text-wrap: balance;
}

.legal-updated {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.legal-card > .legal-updated:first-child {
  margin-top: 0;
}

.legal-intro {
  margin: 22px 0 0;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted-strong);
  line-height: 1.72;
}

.legal-intro strong,
.source-use strong,
.legal-emphasis,
.about-prose strong {
  color: var(--ink);
}

.legal-callout {
  margin-top: 22px;
  padding: 18px 20px 16px;
  border-radius: 16px;
  border: 1px solid rgba(237, 137, 54, 0.28);
  background: rgba(237, 137, 54, 0.08);
}

.legal-callout p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.68;
  max-width: none;
}

.legal-callout p + p {
  margin-top: 12px;
}

.legal-callout strong {
  color: var(--ink);
}

.legal-callout--warn {
  border-color: rgba(248, 113, 113, 0.32);
  background: rgba(248, 113, 113, 0.07);
}

.legal-compact-list {
  margin: 10px 0 0;
  padding-left: 1.25rem;
  color: var(--muted-strong);
  line-height: 1.65;
}

.legal-compact-list li + li {
  margin-top: 6px;
}

.legal-section ol {
  margin: 0;
  padding-left: 1.35rem;
  color: var(--muted-strong);
  line-height: 1.72;
}

.legal-section ol li + li {
  margin-top: 8px;
}

.about-prose .legal-intro > p + p {
  margin-top: 10px;
}

.faq-block,
.legal-section {
  margin-top: 28px;
}

.faq-block h2,
.legal-section h2 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: clamp(24px, 2.5vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.022em;
  max-width: none;
}

.legal-section h3 {
  margin: 18px 0 10px;
  font-size: 17px;
  line-height: 1.3;
  color: var(--ink);
}

.faq-item {
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-item:first-of-type {
  padding-top: 6px;
  border-top: none;
}

.faq-item h3,
.source-item h3 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.3;
}

.faq-item p,
.legal-section p,
.county-note,
.source-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.legal-section > p + p,
.legal-section > p + ul,
.legal-section ul + p,
.source-item p + p,
.faq-item p + p {
  margin-top: 10px;
}

.legal-section ul,
.county-note ul {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted-strong);
  line-height: 1.68;
}

.legal-section li,
.county-note li {
  margin-bottom: 6px;
}

.legal-section li:last-child,
.county-note li:last-child {
  margin-bottom: 0;
}

.aeo-facts dl {
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.aeo-facts dt {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.aeo-facts dd {
  margin: 0.2rem 0 0;
  color: var(--muted-strong);
  line-height: 1.6;
  max-width: 72ch;
}

.legal-emphasis {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.source-list {
  display: grid;
  gap: 14px;
}

.source-item {
  padding: 18px 20px;
  border-radius: 22px;
  background: var(--glass-sheen), var(--glass-bg-subtle);
  border: 1px solid var(--glass-border-subtle);
  box-shadow: var(--glass-shadow), var(--glass-highlight);
  overflow: hidden;
  -webkit-backdrop-filter: blur(var(--glass-blur-sm)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur-sm)) saturate(var(--glass-saturate));
}

.source-agency {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.source-use {
  font-size: 12px;
  color: var(--muted-strong);
}

.pricing-grid,
.detail-grid,
.welcome-grid,
.chat-layout {
  display: grid;
  gap: 18px;
}

.pricing-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 12px;
}

.pricing-card {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
}

.pricing-card--featured {
  min-height: calc(100% + 14px);
  transform: translateY(-7px);
  border-color: rgba(248, 113, 113, 0.48) !important;
  background:
    linear-gradient(180deg, rgba(248, 113, 113, 0.1), rgba(14, 13, 21, 0.04)),
    var(--glass-sheen),
    var(--glass-bg-strong);
  box-shadow:
    0 28px 68px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(248, 113, 113, 0.18),
    0 0 34px rgba(248, 113, 113, 0.16),
    var(--glass-highlight);
}

.pricing-card--featured:hover {
  transform: translateY(-11px);
}

.pricing-card--featured::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(248, 113, 113, 0.95), rgba(217, 181, 117, 0.85), transparent);
}

.pricing-card__tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 14px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(217, 181, 117, 0.28);
  background: rgba(217, 181, 117, 0.1);
  color: #f8dfb2;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pricing-card:focus-visible {
  outline: 2px solid rgba(248, 113, 113, 0.55);
  outline-offset: 3px;
}

.pricing-card--selected {
  transform: translateY(-6px);
  border-color: rgba(248, 113, 113, 0.58) !important;
  box-shadow:
    0 0 0 1px rgba(248, 113, 113, 0.32),
    0 0 0 4px var(--accent-soft),
    0 22px 48px rgba(248, 113, 113, 0.18);
}

.pricing-card--selected::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.85;
}

.pricing-card--selected .cta-row .button {
  background:
    linear-gradient(180deg, rgba(248, 113, 113, 0.28), rgba(239, 68, 68, 0.2)),
    var(--card);
  color: #fff;
  border-color: rgba(248, 113, 113, 0.45);
  box-shadow: 0 8px 24px rgba(248, 113, 113, 0.16);
}

.pricing-card ul {
  flex: 1;
}

.pricing-card .cta-row {
  margin-top: auto;
  padding-top: 18px;
}

.pricing-card__eyebrow {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pricing-card__price {
  margin: 18px 0 4px;
  font-family: var(--serif);
  font-size: 42px;
  line-height: 0.92;
}

.pricing-card__price span {
  font-size: 15px;
  color: var(--muted);
}

.pricing-card__meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.pricing-card__audience {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.pricing-path {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.pricing-path__step {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  background: var(--glass-bg-subtle);
}

.pricing-path__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.pricing-path__value {
  font-size: 14px;
  font-weight: 650;
  color: var(--ink);
}

.pricing-compare {
  margin: 42px 0 18px;
}

.pricing-compare__head {
  margin-bottom: 16px;
}

.pricing-compare__head h2 {
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 8px;
}

.pricing-compare__head p {
  margin: 0;
  color: var(--muted-strong);
  max-width: 60ch;
  line-height: 1.55;
}

.pricing-compare__scroll {
  overflow-x: auto;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  background: var(--card);
}

.pricing-compare__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: 13px;
}

.pricing-compare__table thead th {
  text-align: center;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 1px solid var(--glass-border);
}

.pricing-compare__table thead th:first-child {
  text-align: left;
}

.pricing-compare__table tbody th[scope="row"] {
  text-align: left;
  padding: 11px 14px;
  color: var(--muted-strong);
  font-weight: 600;
  border-bottom: 1px solid var(--glass-border-subtle);
}

.pricing-compare__table td {
  text-align: center;
  padding: 11px 14px;
  color: var(--ink);
  border-bottom: 1px solid var(--glass-border-subtle);
  border-left: 1px solid var(--glass-border-subtle);
}

.pricing-compare__group th {
  text-align: left;
  padding: 12px 14px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(0, 0, 0, 0.18);
  border-bottom: 1px solid var(--glass-border-subtle);
}

@media (max-width: 1100px) {
  .pricing-path {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .pricing-path {
    grid-template-columns: 1fr;
  }
}

.pricing-card__subhead {
  margin: 6px 0 0;
  color: var(--muted-strong);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}

.detail-grid--pricing {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-card ul,
.detail-card ul,
.welcome-card ul,
.faq-card ul {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--muted-strong);
}

.pricing-card li,
.detail-card li,
.welcome-card li,
.faq-card li {
  margin-bottom: 8px;
}

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

.welcome-mode-panel[hidden],
.welcome-mode-panel:not(.is-active) {
  display: none !important;
}

.welcome-form.is-active {
  display: grid;
  gap: 14px;
}

.button--google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: #fff;
  color: #1f1f1f;
  border: 1px solid rgba(15, 23, 42, 0.16);
}

.button--google[hidden],
.welcome-auth-divider[hidden] {
  display: none !important;
}

.button--google:hover {
  background: #f8fafc;
}

.button__google-icon {
  flex: 0 0 auto;
}

.welcome-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 0;
  color: var(--muted, #6b7280);
  font-size: 0.85rem;
}

.welcome-auth-divider::before,
.welcome-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--glass-border, rgba(15, 23, 42, 0.12));
}

.welcome-card--auth-choose .button--google {
  margin-bottom: 4px;
}

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

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

.role-option {
  border-radius: 18px;
  border: 1px solid var(--glass-border);
  background: var(--glass-sheen), var(--glass-bg-subtle);
  padding: 14px;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--glass-shadow), var(--glass-highlight);
  -webkit-backdrop-filter: blur(var(--glass-blur-sm)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur-sm)) saturate(var(--glass-saturate));
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
  will-change: transform;
}

.role-option:hover {
  transform: scale(1.02) translateY(-2px);
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(255, 255, 255, 0.06);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(248, 113, 113, 0.18),
    0 0 18px rgba(248, 113, 113, 0.12);
}

.role-option:active {
  transform: scale(0.98) translateY(0);
  transition-duration: 0.08s;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(248, 113, 113, 0.22);
}

.role-option strong {
  display: block;
  margin-bottom: 4px;
}

.role-option span {
  color: var(--muted);
  font-size: 13px;
}

.role-option.is-active {
  border-color: rgba(248, 113, 113, 0.32);
  background: rgba(248, 113, 113, 0.12);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(248, 113, 113, 0.24);
}

.role-option--other {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: text;
}

.role-option--other strong {
  margin: 0;
  flex: 0 0 auto;
}

.role-option--other:hover,
.role-option--other:active {
  transform: none;
}

.role-option__input {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  color: inherit;
  font: inherit;
  font-size: 14px;
}

.role-option__input::placeholder {
  color: var(--muted);
}

.role-option__input:focus {
  outline: none;
  border-color: rgba(248, 113, 113, 0.55);
}

@media (prefers-reduced-motion: reduce) {
  .role-option {
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    will-change: auto;
  }

  .role-option:hover,
  .role-option:active {
    transform: none;
  }
}

.welcome-status {
  min-height: 1.4em;
  font-size: 13px;
  color: var(--success);
}

.account-dashboard {
  display: grid;
  gap: 18px;
}

.account-profile-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.account-profile-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px 18px;
  margin: 18px 0 0;
}

.account-profile-meta dt {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.account-profile-meta dd {
  margin: 0;
  font-size: 15px;
  color: var(--ink);
}

.profile-edit-panel {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-edit-panel h3 {
  margin: 0 0 14px;
  font-size: 18px;
}

.account-workspace-head {
  margin-bottom: 18px;
}

.account-workspace-lead {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.workspace-empty {
  margin: 0;
  padding: 28px 22px;
  border-radius: 18px;
  border: 1px dashed var(--glass-border-subtle);
  background: var(--glass-sheen), var(--glass-bg-subtle);
  -webkit-backdrop-filter: blur(var(--glass-blur-sm)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur-sm)) saturate(var(--glass-saturate));
  color: var(--muted-strong);
  text-align: center;
}

.workspace-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.workspace-card {
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  background: var(--glass-sheen), var(--glass-bg-subtle);
  box-shadow: var(--glass-shadow), var(--glass-highlight);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  -webkit-backdrop-filter: blur(var(--glass-blur-sm)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur-sm)) saturate(var(--glass-saturate));
}

.workspace-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.workspace-card__eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.workspace-card__apn {
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.1;
}

.workspace-card__address {
  margin: 6px 0 0;
  color: var(--muted-strong);
  font-size: 13px;
  line-height: 1.4;
}

.workspace-card__date {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--muted);
}

.workspace-card__oneliner {
  margin: 0;
  color: var(--muted-strong);
  font-size: 13px;
  line-height: 1.45;
}

.workspace-card__actions {
  margin-top: auto;
  flex-wrap: wrap;
}

.workspace-card__actions .button {
  font-size: 13px;
  padding: 10px 14px;
}

/* —— Profile portal —— */

.topbar__account-link {
  padding: 0 12px;
  white-space: nowrap;
  font-size: 0.8125rem;
}

.topbar__cta .button.topbar__account-link--guest {
  width: 34px;
  height: 34px;
  min-width: 34px;
  max-width: 34px;
  padding: 0;
  aspect-ratio: 1 / 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  backdrop-filter: blur(12px) saturate(150%);
}

.topbar__account-icon {
  display: block;
  flex-shrink: 0;
  opacity: 0.95;
  color: #fff;
}

.topbar__account-label {
  display: none;
}

.topbar__account-link--guest:hover,
.topbar__account-link--guest:focus-visible {
  border-color: rgba(255, 255, 255, 0.85);
  background: transparent;
  outline: none;
}

.topbar__account-link--guest:hover .topbar__account-icon,
.topbar__account-link--guest:focus-visible .topbar__account-icon {
  opacity: 1;
}

.topbar__account-link--signed-in {
  border-color: rgba(248, 113, 113, 0.28);
  background: rgba(248, 113, 113, 0.08);
}

.page-hero__title--greeting {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  text-transform: none;
}

.page-hero--signed-in {
  --page-hero-min-height: 0;
  --page-hero-padding: 1.15rem 1.35rem 1.25rem;
}

.welcome-card--auth {
  max-width: none;
  margin-inline: 0;
}

body.page-welcome .welcome-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(270px, 0.95fr);
  align-items: start;
  gap: clamp(1rem, 2.5vw, 1.35rem);
}

.welcome-phone-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: clamp(1.1rem, 2.5vw, 1.35rem);
  overflow: visible;
}

.welcome-phone-card__copy h2 {
  margin: 0.35rem 0 0.55rem;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  line-height: 1.15;
}

.welcome-phone-card__copy p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.welcome-phone {
  display: flex;
  justify-content: center;
  padding: 0.35rem 0 0.15rem;
  perspective: 900px;
}

.welcome-phone__shell {
  position: relative;
  width: min(100%, 268px);
  padding: 10px;
  border-radius: 42px;
  background:
    linear-gradient(145deg, #3a3a40 0%, #1a1a1f 38%, #0d0d10 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 0 2px rgba(0, 0, 0, 0.85),
    0 28px 60px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transform: rotateY(-8deg) rotateX(4deg);
  transform-style: preserve-3d;
}

.welcome-phone__button {
  position: absolute;
  background: linear-gradient(180deg, #4a4a52, #2a2a30);
  border-radius: 2px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.welcome-phone__button--volume {
  left: -2px;
  top: 108px;
  width: 3px;
  height: 28px;
}

.welcome-phone__button--power {
  right: -2px;
  top: 132px;
  width: 3px;
  height: 44px;
}

.welcome-phone__screen {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  background: #050508;
  aspect-ratio: 9 / 19.5;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.welcome-phone__notch {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 12;
  width: 34%;
  height: 22px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.welcome-phone__status {
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 11;
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  font-size: 0.625rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  pointer-events: none;
}

.welcome-phone__map {
  position: absolute;
  inset: 0 0 38%;
  overflow: hidden;
  background: #0a090f;
}

.welcome-phone__basemap {
  position: absolute;
  inset: -8%;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 28%, transparent 72%, rgba(0, 0, 0, 0.28)),
    url("./welcome-phone-basemap.png") center 46% / cover no-repeat;
  filter: saturate(1.02) contrast(1.04);
  animation: welcome-phone-pan 18s ease-in-out infinite alternate;
}

.welcome-phone__layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.65s ease;
  pointer-events: none;
}

.welcome-phone__layer--fire {
  background:
    radial-gradient(ellipse 55% 42% at 62% 38%, rgba(248, 113, 113, 0.55), transparent 68%),
    radial-gradient(ellipse 40% 35% at 38% 58%, rgba(239, 68, 68, 0.42), transparent 70%);
  mix-blend-mode: multiply;
}

.welcome-phone__layer--flood {
  background:
    radial-gradient(ellipse 48% 38% at 28% 72%, rgba(96, 165, 250, 0.5), transparent 72%),
    radial-gradient(ellipse 36% 30% at 70% 68%, rgba(59, 130, 246, 0.38), transparent 70%);
  mix-blend-mode: multiply;
}

.welcome-phone__layer.is-on {
  opacity: 1;
}

.welcome-phone__parcel {
  position: absolute;
  left: 10%;
  top: 16%;
  width: 72%;
  height: 58%;
  border: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
  pointer-events: none;
  z-index: 4;
  transform: perspective(480px) rotateX(18deg);
  transform-origin: 50% 92%;
  filter: drop-shadow(0 8px 7px rgba(40, 8, 8, 0.32));
}

.welcome-phone__parcel-face {
  fill: rgba(248, 113, 113, 0.2);
  stroke: rgba(248, 113, 113, 0.96);
  stroke-width: 1.7;
  stroke-linejoin: miter;
  stroke-miterlimit: 3;
  vector-effect: non-scaling-stroke;
}

.welcome-phone__parcel-drape {
  fill: rgba(127, 29, 29, 0.28);
  stroke: none;
}

.welcome-phone__hud {
  position: absolute;
  top: 2.6rem;
  right: 0.55rem;
  z-index: 6;
  padding: 0.22rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(0, 0, 0, 0.62);
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fecaca;
}

.welcome-phone__chips {
  position: absolute;
  left: 0.45rem;
  bottom: 0.45rem;
  z-index: 6;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.28rem;
}

.welcome-phone__chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.18rem 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.58);
  font-size: 0.5rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  transition:
    color 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease;
}

.welcome-phone__chips li i {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
}

.welcome-phone__chips li.is-on {
  color: #fff;
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.18);
}

.welcome-phone__chips li[data-phone-chip="fire"].is-on i {
  background: #f56565;
}

.welcome-phone__chips li[data-phone-chip="flood"].is-on i {
  background: #4299e1;
}

.welcome-phone__sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 8;
  padding: 0.55rem 0.75rem 0.85rem;
  border-radius: 18px 18px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(18, 14, 20, 0.97), rgba(8, 6, 10, 0.98));
  box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.45);
}

.welcome-phone__sheet-handle {
  width: 2.1rem;
  height: 3px;
  margin: 0 auto 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.welcome-phone__sheet-address {
  margin: 0;
  font-size: 0.5625rem;
  color: var(--muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.welcome-phone__sheet-title {
  display: block;
  margin: 0.15rem 0 0.1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff;
}

.welcome-phone__sheet-meta {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.5625rem;
  color: var(--muted-strong);
}

.welcome-phone__sheet-rows {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.28rem;
}

.welcome-phone__sheet-rows li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.28rem 0.35rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.5625rem;
  color: var(--muted-strong);
}

.welcome-phone__sheet-rows li em {
  font-style: normal;
  font-weight: 700;
  color: #fff;
}

.welcome-phone__sheet-rows li.is-on em {
  color: #fecaca;
}

@keyframes welcome-phone-pan {
  from {
    transform: scale(1.08) translate3d(-1.5%, -1%, 0);
  }
  to {
    transform: scale(1.12) translate3d(1.5%, 1%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .welcome-phone__basemap {
    animation: none;
  }

  .welcome-phone__shell {
    transform: none;
  }
}

@media (max-width: 1080px) {
  body.page-welcome .welcome-grid {
    grid-template-columns: 1fr;
  }

  .welcome-phone-card {
    order: -1;
  }

  .welcome-phone__shell {
    transform: none;
  }
}

.welcome-auth-head h2 {
  margin: 0;
}

.welcome-auth-lead {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.welcome-mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1rem;
}

.welcome-mode-tab {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-strong);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.welcome-mode-tab.is-active {
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.12);
  color: #fecaca;
}

.welcome-mode-cta--stack {
  flex-direction: column;
  align-items: stretch;
}

.welcome-mode-cta--stack .button {
  width: 100%;
  justify-content: center;
}

.welcome-grid--auth-single {
  grid-template-columns: minmax(0, 32rem);
  justify-content: center;
}

.welcome-card--auth-choose {
  text-align: center;
}

.welcome-auth-switch a {
  color: #fecaca;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.welcome-mode-cta {
  margin-bottom: 0.75rem;
}

.welcome-auth-switch {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
  text-align: center;
}

.welcome-auth-switch button {
  appearance: none;
  border: 0;
  padding: 0;
  background: none;
  color: #fecaca;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.welcome-auth-switch button:hover {
  color: #fff;
}

.welcome-demo-inline {
  width: 100%;
}

.welcome-step-label {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.choose-plan-payment {
  margin-top: 1.25rem;
  max-width: 32rem;
}

.choose-plan-payment__title {
  margin: 0 0 0.35rem;
  font-family: var(--serif);
  font-size: 1.35rem;
}

.choose-plan-payment__lead {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.account-section-lead {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.workspace-empty__cta {
  display: block;
  margin-top: 10px;
  font-size: 13px;
}

.workspace-empty__cta a {
  color: var(--muted-strong);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.workspace-empty__cta a:hover,
.workspace-empty__cta a:focus-visible {
  color: var(--ink);
}

.account-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.account-quick-action {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid var(--glass-border-subtle);
  background: var(--glass-sheen), var(--glass-bg-subtle);
  box-shadow: var(--glass-shadow), var(--glass-highlight);
  -webkit-backdrop-filter: blur(var(--glass-blur-sm)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur-sm)) saturate(var(--glass-saturate));
  color: var(--ink);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.account-quick-action:hover {
  transform: translateY(-2px);
  border-color: rgba(248, 113, 113, 0.28);
  box-shadow:
    var(--shadow-lg),
    0 0 0 1px rgba(248, 113, 113, 0.12);
}

.account-quick-action:focus-visible {
  outline: 2px solid rgba(248, 113, 113, 0.55);
  outline-offset: 2px;
}

.account-quick-action__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.18);
  font-size: 16px;
  line-height: 1;
}

.account-quick-action__icon svg {
  display: block;
}

.account-quick-action__text {
  display: grid;
  gap: 2px;
}

.account-quick-action__text strong {
  font-size: 15px;
}

.account-quick-action__text span {
  color: var(--muted);
  font-size: 13px;
}

.account-dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 18px;
  align-items: start;
}

.account-dashboard-side {
  display: grid;
  gap: 18px;
}

.account-plan-card__eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-plan-card__title {
  margin: 0;
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1.05;
}

.account-plan-card__lead {
  margin: 10px 0 0;
  color: var(--muted-strong);
  font-size: 14px;
  line-height: 1.5;
}

.account-plan-features {
  margin: 18px 0;
  padding-left: 18px;
  color: var(--muted-strong);
  font-size: 14px;
}

.account-plan-features li {
  margin-bottom: 8px;
}

.account-links-card h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.account-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.account-links a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted-strong);
  font-size: 14px;
  font-weight: 600;
  transition: background 140ms ease, color 140ms ease;
}

.account-links a:hover,
.account-links a:focus-visible {
  background: rgba(248, 113, 113, 0.08);
  color: var(--ink);
  outline: none;
}

.screening-history-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.screening-history-item {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 18px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.screening-history-item__eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.screening-history-item__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.screening-history-item__summary {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted-strong);
  line-height: 1.45;
}

.screening-history-item__meta {
  flex-shrink: 0;
  display: grid;
  gap: 8px;
  justify-items: end;
  text-align: right;
}

.screening-history-item__meta time {
  font-size: 12px;
  color: var(--muted);
}

.screening-history-item__actions {
  display: inline-flex;
  gap: 8px;
}

.screening-history-item__link {
  border: none;
  background: transparent;
  padding: 4px 0;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.screening-history-item__link:hover,
.screening-history-item__link:focus-visible {
  color: var(--ink);
  outline: none;
}

/* —— Streamlined profile —— */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.button--sm {
  padding: 8px 12px;
  font-size: 13px;
}

.button--block {
  display: flex;
  width: 100%;
  justify-content: center;
}

.page-hero--profile {
  --page-hero-min-height: 0;
  --page-hero-padding: 1.1rem 1.25rem 1.2rem;
}

.page-hero__lead--compact {
  max-width: 36ch;
  margin-bottom: 0;
}

.account-hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

.account-hero-stats {
  display: flex;
  gap: 0.75rem;
}

.account-hero-stat {
  min-width: 6.25rem;
  padding: 0.9rem 1rem 0.85rem;
  border-radius: 18px;
  border: 1px solid var(--glass-border-subtle);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent),
    var(--glass-sheen),
    var(--glass-bg-subtle);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.26),
    var(--glass-highlight);
  text-align: center;
}

.account-hero-stat strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 2.6vw, 2.35rem);
  line-height: 0.96;
  color: var(--ink);
}

.account-hero-stat span {
  display: block;
  margin-top: 0.2rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.account-dashboard--streamlined {
  gap: 14px;
}

.account-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.account-action-bar__link {
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--glass-border-subtle);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 600;
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
}

.account-action-bar__link:hover,
.account-action-bar__link:focus-visible {
  border-color: rgba(248, 113, 113, 0.32);
  background: rgba(248, 113, 113, 0.08);
  color: var(--ink);
  outline: none;
}

.account-profile-card--compact {
  padding: 1.1rem 1.15rem;
}

.account-profile-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.85rem 1rem;
  align-items: center;
}

.account-avatar {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(248, 113, 113, 0.28);
  background: linear-gradient(145deg, rgba(248, 113, 113, 0.18), rgba(248, 113, 113, 0.06));
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fecaca;
}

.account-profile-summary__name {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.15;
}

.account-profile-summary__email {
  margin: 0.15rem 0 0;
  font-size: 13px;
  color: var(--muted-strong);
}

.account-profile-summary__meta {
  margin: 0.35rem 0 0;
  font-size: 12px;
  color: var(--muted);
}

.account-profile-summary__dot {
  margin: 0 0.35rem;
}

.account-profile-summary__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.account-activity-card {
  padding: 1.1rem 1.15rem 0.85rem;
}

.account-activity-card__head {
  margin-bottom: 0.85rem;
}

.account-activity-card__head h2 {
  margin: 0 0 0.25rem;
  font-size: 1.125rem;
}

.account-activity-card__head p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.account-fold {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.account-fold:first-of-type {
  border-top: none;
}

.account-fold__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0.15rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--ink);
  transition: color 140ms ease;
}

.account-fold__summary::-webkit-details-marker {
  display: none;
}

.account-fold__summary::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 180ms ease;
  flex-shrink: 0;
}

.account-fold[open] > .account-fold__summary::after {
  transform: rotate(-135deg);
  margin-top: 0.2rem;
}

.account-fold__summary:hover,
.account-fold__summary:focus-visible {
  color: #fecaca;
  outline: none;
}

.account-fold__label {
  font-size: 14px;
}

.account-fold__count {
  min-width: 1.5rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted-strong);
  text-align: center;
}

.account-fold__body {
  padding: 0 0 0.85rem;
}

.account-fold-empty {
  margin: 0;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.account-fold-empty a {
  color: var(--muted-strong);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.workspace-list {
  display: grid;
  gap: 0.55rem;
}

.workspace-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  align-items: stretch;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.workspace-row__main {
  min-width: 0;
}

.workspace-row__eyebrow {
  margin: 0 0 0.15rem;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.workspace-row__title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
}

.workspace-row__sub {
  margin: 0.15rem 0 0;
  font-size: 12px;
  color: var(--muted);
}

.workspace-row__summary {
  margin: 0.35rem 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted-strong);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.workspace-row__aside {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem 0.75rem;
  width: 100%;
  margin: 0;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.workspace-row__date {
  font-size: 11px;
  color: var(--muted);
  flex-shrink: 0;
}

.workspace-row__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-start;
  margin-left: auto;
}

.screening-history-list--compact {
  gap: 0.55rem;
}

.screening-history-item--compact {
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
}

.account-plan-card--compact {
  padding: 1.1rem 1.15rem;
}

.account-plan-card--compact .account-plan-card__title {
  font-size: 1.65rem;
}

.account-plan-card--compact .account-plan-features {
  display: none;
}

.account-plan-card--compact .account-plan-card__lead {
  margin-bottom: 1rem;
  font-size: 13px;
}

.account-links-fold {
  padding: 0;
  overflow: hidden;
}

.account-links-fold__summary {
  padding: 1rem 1.15rem;
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.account-links-fold__summary::-webkit-details-marker {
  display: none;
}

.account-links-fold[open] .account-links {
  padding: 0 0.65rem 0.85rem;
}

.account-links-fold .account-links {
  padding: 0 0.65rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 200ms ease, padding 200ms ease;
}

.account-links-fold[open] .account-links {
  max-height: 20rem;
}

@media (max-width: 720px) {
  .account-profile-summary {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .account-profile-summary__actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .account-hero-row {
    align-items: flex-start;
  }

  .workspace-row__aside {
    width: 100%;
  }
}

/* —— Profile portal (welcome theme) —— */

.account-dashboard--refined {
  gap: clamp(1rem, 2.5vw, 1.35rem);
}

.profile-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.78fr);
  gap: clamp(1rem, 2.5vw, 1.35rem);
  align-items: start;
}

.profile-dashboard-main,
.profile-dashboard-side {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.15rem);
}

.account-hero-stat--interactive {
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

@media (hover: hover) {
  .account-hero-stat--interactive:hover {
    transform: scale(1.028) translateY(-2px);
    border-color: rgba(248, 113, 113, 0.38);
    box-shadow:
      var(--shadow-lg),
      0 0 0 1px rgba(248, 113, 113, 0.14),
      0 0 20px rgba(248, 113, 113, 0.1);
  }
}

.account-hero-stat--interactive:active {
  transform: scale(0.98);
  transition-duration: 80ms;
}

.account-quick-action:active {
  transform: scale(0.98) translateY(0);
  transition-duration: 80ms;
}

.account-quick-action--muted {
  opacity: 0.92;
}

.account-profile-summary__headline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
}

.account-role-badge {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(248, 113, 113, 0.28);
  background: rgba(248, 113, 113, 0.1);
  color: #fecaca;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.account-fold--interactive > .account-fold__summary {
  border-radius: 14px;
  margin-inline: -0.15rem;
  padding-inline: 0.65rem;
  transition:
    color 140ms ease,
    background 140ms ease,
    transform 180ms ease;
}

.account-fold--interactive > .account-fold__summary:hover,
.account-fold--interactive > .account-fold__summary:focus-visible {
  background: rgba(248, 113, 113, 0.06);
}

.account-fold--interactive[open] > .account-fold__summary {
  color: #fecaca;
}

.account-fold__count[data-count="0"] {
  opacity: 0.55;
}

.profile-atlas-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: hidden;
}

.profile-atlas-card__copy h2 {
  margin: 0.35rem 0 0.45rem;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  line-height: 1.12;
}

.profile-atlas-card__copy p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.profile-atlas {
  position: relative;
  aspect-ratio: 867 / 1024;
  min-height: 0;
  max-height: 520px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #07080b;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 22px 54px rgba(0, 0, 0, 0.34);
}

.profile-atlas__basemap {
  position: absolute;
  inset: 4% 3% 5%;
  display: grid;
  place-items: center;
  opacity: 1;
  transform: translateZ(0);
  pointer-events: none;
  isolation: isolate;
}

.profile-atlas__outline {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 1;
}

.profile-atlas__basemap::before,
.profile-atlas__basemap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.profile-atlas__basemap::before {
  opacity: 0;
}

.profile-atlas__basemap::after {
  z-index: 2;
  opacity: 0.06;
  background: radial-gradient(ellipse at 50% 50%, transparent 72%, rgba(7, 8, 11, 0.35) 100%);
}

.profile-atlas__contours {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 76% 86% at 50% 50%, #000 22%, transparent 82%);
}

.profile-atlas__pins {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.profile-atlas__pin {
  position: absolute;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  padding: 0;
  border: none;
  border-radius: 999px;
  pointer-events: auto;
  background: transparent;
  color: #fff;
  box-shadow:
    0 0 0 0 rgba(248, 113, 113, 0),
    0 0 0 0 rgba(248, 113, 113, 0);
  cursor: pointer;
  animation: profile-atlas-pin-in 420ms ease both;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.profile-atlas__pin-dot {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid rgba(7, 8, 11, 0.9);
  border-radius: 999px;
  background: linear-gradient(135deg, #f87171, #ef4444);
  box-shadow:
    0 0 0 5px rgba(248, 113, 113, 0.22),
    0 0 26px rgba(248, 113, 113, 0.62);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.profile-atlas__pin::before,
.profile-atlas__pin::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.profile-atlas__pin::before {
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 1px solid rgba(248, 113, 113, 0.28);
  transform: translate(-50%, -50%);
}

.profile-atlas__pin::after {
  left: 50%;
  top: calc(100% - 4px);
  width: 2px;
  height: 12px;
  margin-left: -1px;
  border-radius: 999px;
  background: rgba(248, 113, 113, 0.65);
}

.profile-atlas__pin-label {
  position: absolute;
  left: calc(100% + 8px);
  top: 50%;
  z-index: 4;
  max-width: 150px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(8, 6, 10, 0.76);
  color: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transform: translateY(-50%);
  opacity: 0;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.profile-atlas__pin:hover,
.profile-atlas__pin:focus-visible {
  transform: scale(1.25);
  outline: none;
}

.profile-atlas__pin:hover .profile-atlas__pin-label,
.profile-atlas__pin:focus-visible .profile-atlas__pin-label {
  opacity: 1;
  transform: translateY(-50%) translateX(3px);
}

.profile-atlas__pin:active {
  transform: scale(0.92);
  transition-duration: 80ms;
}

.profile-atlas__hud {
  position: absolute;
  left: 0.65rem;
  top: 0.65rem;
  z-index: 3;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 6, 10, 0.72);
  backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fecaca;
}

.profile-atlas::after {
  content: "Saved parcel map";
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  z-index: 3;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: rgba(8, 6, 10, 0.64);
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.profile-atlas--empty::before {
  content: "No pins yet";
  position: absolute;
  left: 50%;
  top: 62%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin: -48px 0 0 -48px;
  border-radius: 999px;
  border: 1px solid rgba(248, 113, 113, 0.22);
  background: rgba(8, 6, 10, 0.52);
  box-shadow: 0 0 24px rgba(248, 113, 113, 0.22);
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: profile-atlas-pulse 2.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes profile-atlas-drift {
  from {
    transform: translate3d(-1.5%, -1%, 0) scale(1.04);
  }
  to {
    transform: translate3d(1.5%, 1%, 0) scale(1.08);
  }
}

@keyframes profile-atlas-pin-in {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes profile-atlas-pulse {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.15);
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-atlas__basemap {
    animation: none;
  }

  .profile-atlas--empty::before {
    animation: none;
  }

  .profile-atlas__pin {
    animation: none;
  }
}

.workspace-row--interactive,
.screening-history-item--interactive {
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

@media (hover: hover) {
  .workspace-row--interactive:hover {
    transform: scale(1.012) translateY(-1px);
    border-color: rgba(248, 113, 113, 0.22);
    background: rgba(255, 255, 255, 0.045);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  }

  .screening-history-item--interactive:hover {
    transform: translateY(-2px);
    border-color: rgba(248, 113, 113, 0.22);
    background: rgba(248, 113, 113, 0.05);
  }
}

.workspace-row--interactive:active,
.screening-history-item--interactive:active {
  transform: scale(0.99);
  transition-duration: 80ms;
}

.detail-card--interactive {
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

@media (hover: hover) {
  .detail-card--interactive:hover {
    transform: scale(1.012) translateY(-3px);
    border-color: rgba(248, 113, 113, 0.28);
    box-shadow:
      var(--shadow-lg),
      0 0 0 1px rgba(248, 113, 113, 0.12);
  }
}

.detail-card--interactive:active {
  transform: scale(0.99) translateY(0);
  transition-duration: 80ms;
}

.profile-discovery {
  margin-top: 0.5rem;
}

.profile-discovery .detail-card h3 {
  margin: 0 0 0.55rem;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
}

.account-links-fold--interactive > .account-links-fold__summary {
  transition: background 140ms ease, color 140ms ease;
}

.account-links-fold--interactive > .account-links-fold__summary:hover,
.account-links-fold--interactive > .account-links-fold__summary:focus-visible {
  background: rgba(248, 113, 113, 0.05);
  outline: none;
}

@media (max-width: 1080px) {
  .profile-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* —— Account workspace layout (usable desk, clear hierarchy) —— */

.profile-workspace {
  --workspace-gap: clamp(0.85rem, 2vw, 1.25rem);
  display: flex;
  flex-direction: column;
  gap: var(--workspace-gap);
  padding-bottom: 2rem;
}

.page-profile .page-hero--profile {
  --page-hero-min-height: 0;
  margin-bottom: 0;
  padding-block: clamp(1.25rem, 3vw, 1.85rem);
}

.workspace-hero__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.15rem 1.75rem;
}

.workspace-hero__copy .page-hero__title--greeting {
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.account-hero-stat--link {
  text-decoration: none;
  color: inherit;
  display: block;
  scroll-margin-top: 6.5rem;
}

.account-hero-stat--link:focus-visible {
  outline: 2px solid rgba(248, 113, 113, 0.55);
  outline-offset: 3px;
}

.workspace-toolbar {
  position: sticky;
  top: 0.75rem;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr) auto;
  gap: 0.55rem 0.75rem;
  align-items: stretch;
  padding: 0.55rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(18, 12, 14, 0.88), rgba(10, 7, 9, 0.82)),
    rgba(8, 5, 7, 0.72);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
}

.workspace-toolbar__tools,
.workspace-toolbar__resume,
.workspace-toolbar__jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: stretch;
}

.workspace-toolbar__jump {
  align-items: center;
  justify-content: flex-end;
}

.workspace-tool {
  appearance: none;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.08rem;
  min-height: 3.1rem;
  padding: 0.55rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition:
    border-color 140ms ease,
    background 140ms ease,
    transform 160ms ease,
    opacity 140ms ease;
}

.workspace-tool--primary {
  border-color: rgba(248, 113, 113, 0.34);
  background: linear-gradient(160deg, rgba(248, 113, 113, 0.18), rgba(248, 113, 113, 0.06));
}

.workspace-tool__label {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.1;
}

.workspace-tool__hint {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.2;
}

.workspace-tool:hover,
.workspace-tool:focus-visible {
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.1);
  outline: none;
}

.workspace-tool:active {
  transform: scale(0.98);
}

.workspace-tool:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
}

.workspace-jump {
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 140ms ease, border-color 140ms ease, background 140ms ease;
}

.workspace-jump:hover,
.workspace-jump:focus-visible {
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.28);
  background: rgba(248, 113, 113, 0.08);
  outline: none;
}

.account-dashboard--workspace {
  gap: var(--workspace-gap);
}

.workspace-panel {
  padding: clamp(1rem, 2vw, 1.25rem);
  scroll-margin-top: 6.5rem;
  animation: workspace-panel-in 420ms ease both;
}

.workspace-panel--secondary {
  animation-delay: 60ms;
}

.profile-dashboard-side > .workspace-panel:nth-child(1) {
  animation-delay: 40ms;
}
.profile-dashboard-side > .workspace-panel:nth-child(2) {
  animation-delay: 90ms;
}
.profile-dashboard-side > .workspace-panel:nth-child(3) {
  animation-delay: 130ms;
}
.profile-dashboard-side > .workspace-links-card {
  animation: workspace-panel-in 420ms ease both;
  animation-delay: 170ms;
}

@keyframes workspace-panel-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.workspace-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem 1rem;
  margin-bottom: 0.95rem;
}

.workspace-panel__head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.workspace-panel__eyebrow,
.workspace-links-card__eyebrow {
  margin: 0 0 0.25rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.workspace-panel__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.workspace-panel__lead {
  margin: 0.35rem 0 0;
  max-width: 42ch;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

.workspace-panel__lead--inline {
  display: block;
  margin-top: 0.2rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
}

.workspace-panel__count {
  min-width: 2rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted-strong);
  text-align: center;
}

.workspace-panel__count[data-count="0"] {
  opacity: 0.55;
}

.account-fold--panel {
  border-top: none;
}

.account-fold__summary--panel {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.15rem 0 0.85rem;
  margin: 0;
}

.account-fold__summary--panel::after {
  margin-top: 0.55rem;
}

.account-fold__copy {
  display: grid;
  gap: 0.05rem;
  min-width: 0;
}

.account-fold__summary--panel .account-fold__label {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.account-fold__summary-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.account-fold__summary-actions .account-fold__count {
  margin: 0;
}

.account-fold__action-link {
  pointer-events: auto;
}

.account-fold__body--flush {
  padding-bottom: 0;
}

.workspace-list {
  gap: 0.65rem;
}

.workspace-row {
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border-color: rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 42%),
    rgba(255, 255, 255, 0.025);
  transition:
    border-color 160ms ease,
    transform 180ms ease,
    background 160ms ease;
}

@media (hover: hover) {
  .workspace-row--interactive:hover {
    border-color: rgba(248, 113, 113, 0.28);
    transform: translateY(-1px);
    background:
      linear-gradient(180deg, rgba(248, 113, 113, 0.06), transparent 50%),
      rgba(255, 255, 255, 0.03);
  }
}

.workspace-row__title {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.workspace-row__actions .button {
  min-height: 2rem;
}

.profile-atlas-card {
  gap: 0.85rem;
}

.profile-atlas {
  min-height: 280px;
}

.workspace-links-card {
  padding: 1rem 1.1rem 0.85rem;
}

.workspace-links-card__eyebrow {
  margin-bottom: 0.55rem;
}

.account-links--open {
  display: grid;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: none;
  overflow: visible;
}

.account-links--open a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.35rem;
  border-radius: 10px;
  color: var(--muted-strong);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 140ms ease, background 140ms ease;
}

.account-links--open a::after {
  content: "→";
  color: var(--muted);
  font-size: 13px;
  opacity: 0.7;
}

.account-links--open a:hover,
.account-links--open a:focus-visible {
  color: #fecaca;
  background: rgba(248, 113, 113, 0.07);
  outline: none;
}

.account-plan-card .account-plan-features {
  margin: 0 0 1rem;
}

@media (max-width: 960px) {
  .workspace-toolbar {
    position: static;
    grid-template-columns: 1fr;
  }

  .workspace-toolbar__jump {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .workspace-hero__stats {
    width: 100%;
  }

  .account-hero-stat--link {
    flex: 1 1 0;
    min-width: 0;
  }

  .workspace-tool {
    flex: 1 1 calc(50% - 0.4rem);
  }

  .workspace-panel__head {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .workspace-panel,
  .profile-dashboard-side > .workspace-links-card {
    animation: none;
  }

  .workspace-row--interactive:hover {
    transform: none;
  }
}

.button:focus-visible,
.role-option:focus-visible,
.welcome-input:focus-visible,
.welcome-select:focus-visible {
  outline: 2px solid rgba(248, 113, 113, 0.55);
  outline-offset: 2px;
}

.chat-layout {
  grid-template-columns: minmax(0, 0.84fr) minmax(320px, 0.56fr);
  align-items: start;
}

.chat-layout--solo {
  grid-template-columns: 1fr;
}

.chat-shell {
  position: relative;
  border-radius: 32px;
  padding: 0;
  overflow: hidden;
}

.chat-head {
  padding: 22px 22px 0;
}

.chat-head__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.chat-fullscreen-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  margin-top: 2px;
  border-radius: 12px;
  border: 1px solid rgba(248, 113, 113, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-strong);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.chat-fullscreen-btn:hover {
  color: var(--ink);
  border-color: rgba(248, 113, 113, 0.42);
  background: rgba(248, 113, 113, 0.08);
}

.chat-fullscreen-btn__icon {
  width: 18px;
  height: 18px;
}

.chat-fullscreen-btn__icon--collapse {
  display: none;
}

body.chat-fullscreen {
  overflow: hidden;
}

body.chat-fullscreen .topbar,
body.chat-fullscreen .page-hero,
body.chat-fullscreen .site-footer {
  display: none !important;
}

body.chat-fullscreen .main {
  padding: 0;
  min-height: 100svh;
}

body.chat-fullscreen .site-shell {
  width: 100%;
  max-width: none;
  min-height: 100svh;
  margin: 0;
}

body.chat-fullscreen .chat-layout,
body.chat-fullscreen .chat-layout--solo {
  margin-top: 0 !important;
  min-height: 100svh;
}

body.chat-fullscreen .chat-shell {
  min-height: 100svh;
  border-radius: 0;
  display: flex;
  flex-direction: column;
}

body.chat-fullscreen .chat-body {
  flex: 1 1 auto;
  max-height: none;
  min-height: 0;
}

body.chat-fullscreen .chat-input-row {
  flex-shrink: 0;
}

body.chat-fullscreen .chat-fullscreen-btn__icon--expand {
  display: none;
}

body.chat-fullscreen .chat-fullscreen-btn__icon--collapse {
  display: block;
}

.chat-head h1,
.chat-head__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 4.2vw, 44px);
  letter-spacing: -0.026em;
  line-height: 1.04;
}

.chat-subtitle {
  margin: 14px 0 0;
  color: var(--muted-strong);
}

.chat-body {
  min-height: 420px;
  max-height: 62vh;
  overflow-y: auto;
  padding: 22px;
}

.chat-welcome p {
  margin: 0 0 14px;
  color: var(--muted);
}

.chat-starters {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-starter {
  text-align: left;
  padding: 13px 14px;
  border-radius: 16px;
  border: 1px solid var(--glass-border-subtle);
  background: var(--glass-sheen), var(--glass-bg-subtle);
  box-shadow: var(--glass-shadow), var(--glass-highlight);
  -webkit-backdrop-filter: blur(var(--glass-blur-sm)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur-sm)) saturate(var(--glass-saturate));
  cursor: pointer;
}

.chat-starter:hover {
  background: rgba(248, 113, 113, 0.08);
}

.chat-bubble {
  max-width: min(100%, 720px);
  padding: 14px 16px;
  border-radius: 22px;
  margin-bottom: 12px;
}

.chat-bubble--user {
  margin-left: auto;
  background: linear-gradient(135deg, #26404d 0%, #4a6a73 100%);
  color: #fff;
  border-bottom-right-radius: 8px;
}

.chat-bubble--assistant {
  background: var(--glass-sheen), var(--glass-bg-subtle);
  border: 1px solid var(--glass-border-subtle);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(var(--glass-blur-sm)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur-sm)) saturate(var(--glass-saturate));
  border-bottom-left-radius: 8px;
}

.chat-bubble--typing {
  color: var(--muted);
  font-style: italic;
}

.chat-disclosure {
  max-width: min(100%, 720px);
  margin: -4px 0 14px 4px;
  padding: 0 4px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
}

.chat-disclosure a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.chat-disclosure__text {
  margin: 6px 0 0;
}

.chat-md p {
  margin: 0 0 0.7em;
}

.chat-md p:last-child {
  margin-bottom: 0;
}

.chat-md ul {
  margin: 0.45em 0 0.7em;
  padding-left: 1.2em;
}

.chat-input-row {
  display: flex;
  gap: 10px;
  padding: 18px 22px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.chat-input {
  flex: 1;
}

.chat-footer {
  margin: 18px 0 0;
}

.chat-side {
  display: grid;
  gap: 18px;
}

.detail-card h2,
.welcome-card h2,
.story-card h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(24px, 2.5vw, 30px);
  line-height: 1.08;
}

.detail-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.detail-card p {
  margin: 0;
  color: var(--muted);
}

.fine-print {
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
}

.no-print {}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes search-card-loading {
  0% {
    transform: translate3d(-135%, 0, 0);
  }
  100% {
    transform: translate3d(335%, 0, 0);
  }
}

.hero-panel,
.page-hero,
.screening-summary,
.section,
.page-intro,
.chat-layout {
  animation: rise-in 420ms ease both;
}

@media (max-width: 1080px) {
  .hero-panel,
  .page-hero,
  .page-intro,
  .welcome-grid,
  .chat-layout,
  .detail-grid,
  .pricing-grid,
  .card-grid,
  .journey-grid,
  .summary-grid,
  .intel-grid,
  .account-dashboard-layout,
  .account-quick-actions {
    grid-template-columns: 1fr;
  }

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

  .cta-panel__actions {
    justify-content: center;
  }

  .preview-map {
    height: 320px;
  }

  .page-hero {
    min-height: 0;
  }

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

  .hero-panel {
    min-height: unset;
  }

  .section-head {
    grid-template-columns: 1fr;
  }

  body.page-home .hero-panel {
    --hero-topbar-space: 5rem;
  }

  body.page-home .hero-side {
    grid-template-columns: 1fr;
    width: min(100%, 760px);
  }

  body.page-home .preview-map {
    flex: none;
    height: 320px;
    min-height: 320px;
  }
}

@media (max-width: 960px) {
  .topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 120;
    background: transparent;
    backdrop-filter: none;
    border: none;
  }

  .topbar__inner {
    align-items: center;
    min-height: 0;
    height: auto;
    padding: clamp(0.85rem, 3vw, 1.15rem) 0 0.35rem;
    gap: 0.85rem;
  }

  .brand__logo {
    display: none;
  }

  .brand__wordmark {
    font-size: clamp(1.25rem, 4.5vw, 1.55rem);
  }

  .topbar__nav {
    display: none;
  }

  .topbar__cta {
    display: inline-flex;
    margin-left: auto;
    height: 48px;
    padding: 0;
  }

  .topbar__cta .button {
    width: auto;
    max-width: min(9rem, 28vw);
  }

  .topbar__cta .button.topbar__account-link--guest {
    width: auto;
    min-width: 34px;
    max-width: none;
    aspect-ratio: auto;
    padding: 0 12px;
    gap: 6px;
  }

  .topbar__account-label {
    display: inline;
  }

  .topbar__mobile-menu {
    display: flex;
    align-items: center;
    padding-top: 0;
    align-self: center;
    height: auto;
    margin-left: 0;
  }

  .topbar__menu-toggle {
    width: 48px;
    height: 48px;
  }

  .topbar__mobile-panel {
    z-index: 121;
    width: min(340px, calc(100vw - 20px));
    max-height: calc(100dvh - max(5.25rem, env(safe-area-inset-top)) - env(safe-area-inset-bottom) - 12px);
    overflow-y: auto;
    overscroll-behavior: contain;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
  }

  .topbar__mobile-nav {
    min-height: 0;
  }

  .topbar__mobile-link {
    flex: 0 0 auto;
  }

  body.page-home .hero-panel {
    --hero-topbar-space: 4.5rem;
  }

  body.page-home .hero-panel::before {
    background-image:
      linear-gradient(
        180deg,
        rgba(10, 10, 15, 0.32) 0%,
        rgba(10, 10, 15, 0.62) 8%,
        rgba(10, 10, 15, 0.82) 16%,
        rgba(10, 10, 15, 0.48) 28%,
        rgba(8, 8, 12, 0.14) 42%,
        transparent 58%
      ),
      linear-gradient(180deg, transparent 72%, rgba(8, 8, 12, 0.22) 100%),
      var(--hero-topo-image-sm);
  }

  body.page-explore .hero-panel::before,
  body.page-home.page-explore .hero-panel::before {
    top: calc(-1 * (var(--hero-topbar-space, 4.5rem) + 1rem));
    background-image:
      linear-gradient(
        180deg,
        rgba(5, 4, 8, 0.12) 0%,
        transparent 18%,
        transparent 72%,
        rgba(5, 4, 8, 0.28) 100%
      ),
      var(--screen-hero-image);
    background-position: center, center top;
  }

  body.page-explore,
  body.page-home.page-explore {
    --screen-footer-band: clamp(9rem, 22vh, 12rem);
  }

  body.page-explore .hero-panel,
  body.page-home.page-explore .hero-panel {
    min-height: calc(100dvh - var(--screen-footer-band));
  }

  body.page-explore .hero-panel::after {
    content: none;
    display: none;
  }

  .page-hero::before {
    background: linear-gradient(
      165deg,
      rgba(255, 255, 255, 0.05) 0%,
      rgba(10, 8, 12, 0.25) 45%,
      rgba(6, 5, 8, 0.29) 100%
    );
  }
}

@media (max-width: 780px) {
  .site-shell {
    width: min(100% - 20px, 1240px);
  }

  .topbar__nav,
  .search-grid,
  .search-bar,
  .hero-stats,
  .welcome-split,
  .role-grid,
  .chat-input-row,
  .site-footer {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .topbar {
    position: fixed;
  }

  .topbar__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: clamp(0.85rem, 3vw, 1.15rem) 0 0.35rem;
    min-height: 0;
    height: auto;
  }

  .brand {
    justify-content: flex-start;
    flex: 1 1 auto;
    min-width: 0;
    height: auto;
  }

  .topbar__cta {
    flex: 0 0 auto;
    align-items: center;
    flex-direction: row;
  }

  .topbar__account-link--signed-in {
    max-width: min(8rem, 27vw) !important;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand__logo {
    display: none;
  }

  body.page-home .hero-panel {
    --hero-topbar-space: 4.25rem;
    padding-top: calc(var(--hero-topbar-space) + 28px);
    padding-inline: 20px;
  }

  body.page-home .search-card,
  body.page-home .screen-brief {
    padding: 20px;
  }

  .hero-panel,
  .search-card,
  .screening-summary,
  .feature-card,
  .story-card,
  .journey-card,
  .pricing-card,
  .welcome-card,
  .detail-card,
  .faq-card,
  .chat-shell {
    border-radius: 24px;
  }

  .page-hero {
    border-radius: 16px;
  }

  .hero-copy h1,
  .page-title {
    font-size: 32px;
    line-height: 1.08;
  }

  .hero-panel__title {
    font-size: 40px;
    line-height: 1.05;
  }

  .page-hero {
    min-height: 0;
    padding: 1.1rem 1rem 1.2rem;
  }

  .page-hero__title {
    max-width: min(28ch, 94%);
    font-size: clamp(1.4rem, 6.5vw, 1.85rem);
    letter-spacing: -0.02em;
  }

  .page-hero--editorial .page-hero__title {
    font-size: clamp(1.55rem, 7.5vw, 2.15rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
  }

  .page-hero__lead {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .faq-jump-nav {
    justify-content: flex-start;
    gap: 8px;
    margin: 22px 0 34px;
  }

  .faq-jump-nav a {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 11px;
  }

  .faq-category + .faq-category {
    margin-top: 46px;
  }

  .faq-category__intro h3 {
    font-size: 30px;
    line-height: 1.04;
  }

  .page-faq .section-head h2 {
    font-size: 30px;
    line-height: 1.04;
  }

  .search-go,
  .chat-send,
  .button,
  .btn {
    width: 100%;
  }

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

  .legal-card {
    padding: 28px 22px 30px;
  }

  .site-footer,
  .page-footer,
  .page-footer .header-links,
  .footer-links {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 480px) {
  .site-shell {
    width: min(100% - 16px, 1240px);
  }

  .topbar__inner {
    gap: 8px;
    padding-top: max(0.7rem, env(safe-area-inset-top));
  }

  .topbar__menu-toggle {
    width: 44px;
    height: 44px;
  }

  .topbar__cta {
    height: 44px;
  }

  .topbar__cta .button {
    min-height: 38px;
    height: 38px;
    padding-inline: 12px;
    font-size: 0.75rem;
  }

  .topbar__cta .button.topbar__account-link--guest {
    width: auto;
    height: 38px;
    min-width: 38px;
    max-width: none;
    padding-inline: 10px;
  }

  .topbar__mobile-panel {
    right: -2px;
    padding: 10px;
    border-radius: 20px;
  }

  .topbar__mobile-nav {
    gap: 7px;
  }

  .topbar__mobile-link {
    min-height: 42px;
    padding: 10px 14px;
    font-size: 14px;
  }

  .topbar__mobile-link--sub {
    justify-content: flex-start;
    padding-left: 1.15rem;
    font-size: 12px;
  }

  body.page-home .hero-panel {
    padding-inline: 12px;
  }

  body.page-home .search-card,
  body.page-home .screen-brief,
  .screening-summary {
    padding: 16px;
  }

  .search-card__title {
    font-size: clamp(1.25rem, 6vw, 1.5rem);
  }

  .search-input,
  .county-select,
  .field-group,
  .search-bar {
    min-width: 0;
    max-width: 100%;
  }

  .summary-loading__status {
    align-items: flex-start;
  }

  .summary-loading-text {
    line-height: 1.4;
  }
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
  .glass-surface,
  .hero-panel,
  .page-hero,
  .feature-panel,
  .cta-panel,
  .chat-shell,
  .pricing-card,
  .welcome-card,
  .detail-card,
  .preview-card,
  .story-card,
  .journey-card,
  .feature-card,
  .summary-section,
  .faq-card,
  .legal-card,
  .search-card,
  .intel-panel,
  .chat-panel {
    border-width: 0.5px;
  }
}

/* Title cards: smoked glass so the scroll video reads through */
body:not(.page-landing) .page-hero {
  background: rgba(8, 6, 10, 0.22) !important;
  border-color: rgba(255, 255, 255, 0.09) !important;
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  -webkit-backdrop-filter: blur(20px) saturate(145%) !important;
  backdrop-filter: blur(20px) saturate(145%) !important;
}

body:not(.page-landing) .page-hero::before {
  opacity: 1 !important;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(10, 8, 12, 0.25) 45%,
    rgba(6, 5, 8, 0.29) 100%
  ) !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}

/* ---------------------------------------------------------------------------
 * County SEO landing pages (generated by scripts/build-county-pages.mjs)
 * ------------------------------------------------------------------------- */

.crumbs {
  margin: 18px 0 4px;
  font-size: 13px;
  color: var(--muted);
}
.crumbs a {
  color: var(--muted-strong);
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--accent);
}
.county-section {
  margin: 34px 0;
}
.county-section > h2 {
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 14px;
}

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

.city-intel__item {
  margin: 0;
  padding: 14px 15px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 6, 10, 0.28);
  min-height: 100%;
}

.city-intel__item dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 6px;
}

.city-intel__item dd {
  margin: 0;
  color: var(--ink);
  line-height: 1.45;
  font-size: 14px;
}

.city-intel h3 {
  margin: 18px 0 10px;
  font-size: 15px;
}
.county-p {
  color: var(--muted-strong);
  max-width: 68ch;
  line-height: 1.6;
  margin: 0 0 16px;
}
.county-about .county-seo-description {
  max-width: none;
  width: 100%;
  font-size: 16px;
  line-height: 1.7;
}

.county-subhead {
  margin: 1.35rem 0 0.65rem;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
}

/* —— Housing & land patterns intelligence dashboard —— */
.intel-dash {
  margin: 1.5rem 0 1.75rem;
  padding: 1.25rem 1.2rem 1.35rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border-subtle);
  background: rgba(8, 6, 10, 0.22);
}
.intel-dash--panel {
  margin: 0;
}
.county-section > .intel-dash--panel,
.city-intel > .intel-dash--panel {
  margin: 0;
}
.intel-dash__title {
  margin-top: 0;
}
/* Skimmable point cards (city / county / guide bullet continuity) */
.intel-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}
.intel-point {
  margin: 0;
  padding: 15px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(8, 6, 10, 0.28);
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.intel-point__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted-strong);
}
.intel-point__text strong {
  color: var(--ink);
  font-weight: 650;
}
@media (max-width: 900px) {
  .intel-points,
  .city-intel__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .intel-points,
  .city-intel__grid {
    grid-template-columns: 1fr;
  }
}
.intel-cards--labeled {
  margin-top: 12px;
}
.intel-dash--panel .city-intel__grid {
  margin-top: 14px;
}
.intel-dash--cta .county-p {
  margin-bottom: 0.65rem;
}
.guide-prose .intel-points {
  margin: 0.35rem 0 0;
}
.intel-glance {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 1.1rem;
}
.intel-glance__item {
  padding: 14px 15px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.intel-glance__label {
  margin: 0 0 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.intel-glance__value {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.intel-snapshot {
  margin: 0 0 1rem;
  max-width: 72ch;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--muted-strong);
}
.intel-dash--panel > .intel-snapshot,
.intel-dash--panel .intel-cards--diligence + .intel-snapshot {
  max-width: none;
  width: 100%;
}
.intel-notes {
  margin: 0 0 1.15rem;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 2px solid rgba(148, 163, 184, 0.55);
  background: rgba(0, 0, 0, 0.18);
}
.intel-notes__label {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.intel-notes__tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--muted-strong);
  text-transform: none;
  font-weight: 600;
}
.intel-notes__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 78ch;
}
.intel-fold {
  margin: 0 0 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}
.intel-fold > summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.intel-fold > summary::-webkit-details-marker {
  display: none;
}
.intel-fold > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
  flex-shrink: 0;
}
.intel-fold[open] > summary::after {
  transform: rotate(225deg);
}
.intel-fold__body {
  padding: 0 14px 14px;
}
.intel-fold__note {
  margin: 12px 0 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 68ch;
}
.intel-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 14px;
}
.intel-cards.intel-cards--afford {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
/* Diligence / labeled cards: must beat base .intel-cards + its responsive overrides */
.intel-cards.intel-cards--labeled,
.intel-cards.intel-cards--diligence {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 12px;
  margin-top: 12px;
  margin-bottom: 0;
  align-items: stretch;
}
.intel-cards.intel-cards--labeled .intel-card,
.intel-cards.intel-cards--diligence .intel-card {
  padding: 18px 17px 16px;
  min-height: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.intel-cards.intel-cards--labeled .intel-card__label,
.intel-cards.intel-cards--diligence .intel-card__label {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--ink);
  line-height: 1.3;
  width: 100%;
  max-width: none;
}
.intel-cards.intel-cards--labeled .intel-card__detail,
.intel-cards.intel-cards--diligence .intel-card__detail {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted-strong);
  width: 100%;
  max-width: none;
  flex: 1 1 auto;
  text-align: justify;
  text-wrap: pretty;
  hyphens: auto;
}
.intel-card {
  padding: 15px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(8, 6, 10, 0.28);
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.intel-card__label {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.intel-card__value {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.intel-card__unit {
  font-size: 0.55em;
  font-family: var(--sans);
  font-weight: 600;
  color: var(--muted);
  margin-left: 2px;
}
.intel-card__detail {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.intel-badge {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.intel-badge--higher {
  color: #d8c4a8;
  background: rgba(216, 196, 168, 0.12);
  border: 1px solid rgba(216, 196, 168, 0.28);
}
.intel-badge--lower {
  color: #9eb4c8;
  background: rgba(158, 180, 200, 0.12);
  border: 1px solid rgba(158, 180, 200, 0.28);
}
.intel-badge--near {
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.intel-bars,
.intel-compare {
  display: grid;
  gap: 12px;
  margin: 0 0 14px;
  max-width: 36rem;
}
.intel-bar__meta,
.intel-compare__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--muted-strong);
}
.intel-bar__track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.intel-bar__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(248, 113, 113, 0.75), rgba(252, 165, 165, 0.9));
}
.intel-bar__fill--muted {
  background: rgba(148, 163, 184, 0.55);
}
.intel-compare__delta {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
}
.intel-timeline {
  margin: 4px 0 8px;
  max-width: 36rem;
}
.intel-timeline__rail {
  position: relative;
  height: 2px;
  margin: 22px 0 8px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}
.intel-timeline__tick {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.intel-timeline__marker {
  width: 10px;
  height: 10px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.2);
}
.intel-timeline__year {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.intel-timeline__ends {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.intel-timeline__caption {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}
.intel-personas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.intel-persona {
  padding: 15px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(8, 6, 10, 0.24);
  min-height: 100%;
}
.intel-persona__title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
}
.intel-persona__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.intel-persona__list li {
  position: relative;
  padding-left: 12px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--muted-strong);
}
.intel-persona__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(248, 113, 113, 0.7);
}
.intel-terrain__summary {
  margin: 0 0 12px;
  max-width: 72ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted-strong);
}
.intel-terrain__elev {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: var(--muted-strong);
}
.intel-terrain__elev span {
  display: inline-block;
  margin-right: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.intel-terrain__strip {
  display: grid;
  gap: 0;
  margin: 0 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.intel-terrain__node {
  display: grid;
  grid-template-columns: 2.5rem minmax(7rem, 11rem) 1fr;
  gap: 10px 14px;
  align-items: start;
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.intel-terrain__node:first-child {
  border-top: 0;
}
.intel-terrain__index {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding-top: 2px;
}
.intel-terrain__name {
  font-size: 14px;
  font-weight: 650;
  color: var(--ink);
  line-height: 1.35;
}
.intel-terrain__desc {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--muted);
}
.intel-callouts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 4px;
}
.intel-callout {
  padding: 14px 15px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-left: 2px solid rgba(216, 196, 168, 0.55);
  background: rgba(216, 196, 168, 0.06);
  min-height: 100%;
}
.intel-callout--warn {
  border-left-color: rgba(248, 113, 113, 0.55);
  background: rgba(248, 113, 113, 0.06);
}
.intel-callout__label {
  margin: 0 0 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.intel-callout__text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted-strong);
}
.intel-checklist {
  margin: 0;
  padding: 0 0 0 1.1rem;
  display: grid;
  gap: 6px;
  color: var(--muted-strong);
  font-size: 14px;
  line-height: 1.5;
  max-width: 40rem;
}
.intel-checklist li::marker {
  color: rgba(248, 113, 113, 0.75);
}
.intel-takeaways {
  margin: 1rem 0 0;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}
.intel-takeaways__title {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.intel-takeaways ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.intel-takeaways li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted-strong);
  max-width: 68ch;
}
.intel-takeaways li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 8px;
  height: 4px;
  border-left: 1.5px solid var(--success);
  border-bottom: 1.5px solid var(--success);
  transform: rotate(-45deg);
}
@media (max-width: 640px) {
  .intel-dash {
    padding: 1rem 0.9rem 1.1rem;
  }
  .intel-terrain__node {
    grid-template-columns: 2rem 1fr;
  }
  .intel-terrain__desc {
    grid-column: 1 / -1;
  }
  .intel-glance,
  .intel-cards:not(.intel-cards--labeled):not(.intel-cards--diligence),
  .intel-cards.intel-cards--afford,
  .intel-personas,
  .intel-callouts {
    grid-template-columns: 1fr;
  }
  .intel-cards.intel-cards--labeled,
  .intel-cards.intel-cards--diligence {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
}
@media (min-width: 641px) and (max-width: 900px) {
  .intel-glance,
  .intel-cards:not(.intel-cards--labeled):not(.intel-cards--diligence):not(.intel-cards--afford) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .intel-cards.intel-cards--afford {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .intel-cards.intel-cards--labeled,
  .intel-cards.intel-cards--diligence {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .intel-personas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 1100px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

.county-bullets {
  margin: 0 0 1.15rem;
  padding: 0 0 0 1.15rem;
  max-width: 72ch;
  color: var(--muted-strong);
  line-height: 1.65;
  display: grid;
  gap: 0.55rem;
}

.county-bullets li {
  padding-left: 0.15rem;
}

.county-bullets li::marker {
  color: rgba(248, 113, 113, 0.85);
}

.county-bullets--topo {
  max-width: 78ch;
}

.county-topo .county-bullets,
.city-intel .county-bullets {
  max-width: none;
  width: min(100%, 78ch);
}

body.page-city .county-bullets,
body.page-county .county-bullets {
  max-width: none;
  width: min(100%, 78ch);
  font-size: 15.5px;
}
body.page-city .county-p,
body.page-city .county-sources,
body.page-city .county-seo-description {
  max-width: none;
  width: 100%;
}
body.page-city .county-sources--full {
  max-width: none;
  width: 100%;
}
body.page-city .aeo-faqs--full {
  max-width: none;
  width: 100%;
}
body.page-city .aeo-faq {
  width: 100%;
}
body.page-city-hub .city-card-grid,
body.page-city .city-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  width: 100%;
}
body.page-city-hub .glossary-index__item a,
body.page-city .glossary-index__item a {
  height: 100%;
}
body.page-city-hub .city-place-section {
  margin-bottom: 8px;
}
body.page-city-hub .city-fold-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
  box-shadow: none;
}
body.page-city-hub .city-fold-btn:hover {
  color: #fff;
  background: transparent;
  border: 0;
  opacity: 0.85;
}
body.page-city-hub .city-fold-btn::after {
  content: "";
  width: 0.4em;
  height: 0.4em;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  margin-top: -0.2em;
  transition: transform 160ms ease;
}
body.page-city-hub .city-place-section.is-expanded .city-fold-btn::after {
  transform: rotate(-135deg);
  margin-top: 0.15em;
}
body.page-city-hub .city-fold-btn__less {
  display: none;
}
body.page-city-hub .city-place-section.is-expanded .city-fold-btn__more {
  display: none;
}
body.page-city-hub .city-place-section.is-expanded .city-fold-btn__less {
  display: inline;
}
body.page-city-hub .city-fold-btn[hidden] {
  display: none;
}
/* One visible row before/without JS; extra rows collapse to 0 height */
body.page-city-hub .city-card-grid--fold.is-collapsed {
  grid-template-rows: auto;
  grid-auto-rows: 0;
  overflow: hidden;
  align-items: start;
  /* Keep 1px of room so first-row card borders aren’t flush-clipped */
  padding: 1px;
  margin: -1px;
}
body.page-city-hub .city-card-grid--fold.is-collapsed > .glossary-index__item {
  min-height: 0;
  overflow: hidden;
}
.county-layers {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  align-items: stretch;
}
.county-layers--nested {
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  margin: 0;
}
.county-layer {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: rgba(8, 6, 10, 0.28);
  padding: 14px 14px 13px;
  min-width: 0;
}
.county-layer h3 {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.3;
}
.county-layer p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--muted-strong);
}
@media (max-width: 1100px) {
  .county-layers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
  .county-layer {
    padding: 14px 16px;
  }
  .county-layer h3 {
    font-size: 10px;
  }
  .county-layer p {
    font-size: 14px;
  }
}
@media (max-width: 640px) {
  .county-layers {
    grid-template-columns: 1fr;
  }
}
.county-sources {
  margin: 0;
  padding-left: 20px;
  color: var(--muted-strong);
  line-height: 1.7;
  max-width: 74ch;
}
.county-sources a {
  color: var(--accent);
  text-decoration: none;
}
.county-sources a:hover {
  text-decoration: underline;
}
.county-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.county-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg-subtle);
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.county-chip:hover {
  border-color: var(--accent);
  color: var(--ink);
  transform: translateY(-1px);
}
.county-region {
  margin: 26px 0;
}
.county-region h2 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

/* Compact in-page filter (Counties / Cities / Guides hubs) */
.section-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.85rem;
  margin: 0 0 0.85rem;
  max-width: 22rem;
}

.section-search--hub {
  margin: 0 0 1.35rem;
  max-width: min(28rem, 100%);
}

.section-search__field {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 1 1 10rem;
  min-width: 0;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 9, 14, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 160ms ease, background 160ms ease;
}

.section-search__field:focus-within {
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(14, 12, 18, 0.72);
}

.section-search__icon {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.45);
}

.section-search__input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink, #f4f4f5);
  font-family: var(--sans);
  font-size: 0.8125rem;
  line-height: 1.3;
  outline: none;
}

.section-search__input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.section-search__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.section-search__status {
  margin: 0;
  font-size: 0.7rem;
  color: var(--muted, rgba(255, 255, 255, 0.5));
  letter-spacing: 0.01em;
}

.county-chip.is-section-search-hidden,
.glossary-index__item.is-section-search-hidden,
.guides-featured__item.is-section-search-hidden {
  display: none !important;
}

.site-footer__note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  max-width: 80ch;
  margin: 10px 0 0;
}

/* ---------------------------------------------------------------------------
 * AEO glossary / educational content pages
 * ------------------------------------------------------------------------- */
.aeo-article {
  max-width: 760px;
}
body.page-guide .guide-article,
body.page-guide .aeo-article {
  max-width: none;
  width: 100%;
}
body.page-guide .aeo-answer,
body.page-guide .aeo-faqs,
body.page-guide .aeo-faqs--full,
body.page-guide .aeo-sources,
body.page-guide .county-sources--full,
body.page-guide .guide-prose {
  max-width: none;
  width: 100%;
}
body.page-guide .guide-prose > :first-child {
  margin-top: 0;
}
body.page-guide .guide-prose > :last-child {
  margin-bottom: 0;
}
body.page-guide .guide-prose p,
body.page-guide .guide-prose li {
  color: var(--muted-strong);
  line-height: 1.7;
  font-size: 16px;
}
body.page-guide .guide-prose ol,
body.page-guide .guide-prose ul {
  margin: 0;
  padding-left: 1.35rem;
  display: grid;
  gap: 10px;
}
body.page-guide .guide-prose li + li {
  margin-top: 0;
}
body.page-guide .aeo-answer {
  margin: 0 0 8px;
}
body.page-guide .aeo-cta h2 {
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 10px;
}
body.page-guides-hub .city-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  width: 100%;
}
body.page-guides-hub .glossary-index__item a {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
body.page-guides-hub .glossary-index__term {
  line-height: 1.35;
}

/* Featured hubs on guides index (Planning directory, etc.) */
body.page-guides-hub .guides-featured-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  width: 100%;
}
body.page-guides-hub .guides-featured__item a {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 18px 20px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  background: var(--card);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}
body.page-guides-hub .guides-featured__item--highlight a {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--glass-border));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent);
}
body.page-guides-hub .guides-featured__item a:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
body.page-guides-hub .guides-featured__eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2px;
}

/* Planning directory */
body.page-planning .planning-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  width: 100%;
}
body.page-planning .planning-card {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  background: var(--card);
  padding: 16px 16px 14px;
  min-width: 0;
}
body.page-planning .planning-card__title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
body.page-planning .planning-card__links {
  display: grid;
  gap: 6px;
}
body.page-planning .planning-card__link {
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}
body.page-planning .planning-card__link:hover {
  text-decoration: underline;
}
body.page-planning .planning-card__muted {
  color: var(--muted);
  font-size: 13px;
}

.aeo-hero {
  position: relative;
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 0.45rem;
  margin: 0 0 1.35rem;
  padding: 1.2rem 1.25rem 1.3rem;
  border-radius: var(--page-hero-radius, 18px);
  overflow: hidden;
  text-align: left;
  isolation: isolate;
  background: rgba(8, 6, 10, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
  backdrop-filter: blur(20px) saturate(145%);
}

.aeo-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(10, 8, 12, 0.25) 45%,
    rgba(6, 5, 8, 0.29) 100%
  );
  opacity: 1;
  pointer-events: none;
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}

.aeo-hero > * {
  position: relative;
  z-index: 1;
}

.aeo-hero .eyebrow,
.aeo-hero__eyebrow {
  margin-bottom: 0.15rem;
}

.aeo-hero h1 {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin: 0;
  text-transform: none;
}

.aeo-updated {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.aeo-answer {
  margin: 0 0 28px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  border-left: 3px solid var(--accent);
  background: var(--card);
}
.aeo-answer--sources {
  padding: 14px 18px;
}
.aeo-answer--sources .aeo-answer__label {
  margin: 0;
  display: inline;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.aeo-answer--sources .aeo-answer__resources {
  margin: 0;
}
.aeo-answer__resources--inline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.55rem;
  font-size: 14px;
  line-height: 1.45;
}
.aeo-answer__resources--inline .aeo-answer__label {
  flex: 0 0 auto;
}
.aeo-answer__resources--inline a {
  flex: 1 1 auto;
  min-width: 12rem;
}
.aeo-answer__label {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.aeo-answer p,
.aeo-answer__text {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted-strong);
}
.aeo-answer strong {
  color: var(--ink);
  font-weight: 600;
}
.aeo-answer__resources {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.45;
}
.aeo-answer__resources a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.aeo-answer__resources a:hover {
  color: var(--accent-strong, var(--accent));
  text-decoration: underline;
}
#official-sources:target {
  scroll-margin-top: 5.5rem;
  outline: 1px solid rgba(248, 113, 113, 0.35);
  outline-offset: 6px;
  border-radius: 14px;
}
.aeo-section {
  margin: 28px 0;
}
.aeo-section > h2 {
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 12px;
}
.aeo-section p,
.aeo-section li {
  color: var(--muted-strong);
  line-height: 1.65;
  font-size: 15px;
}
.aeo-section ul {
  padding-left: 20px;
}
.aeo-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  background: var(--card);
}
.aeo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.aeo-table caption {
  caption-side: top;
  text-align: left;
  padding: 12px 14px 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.aeo-table th {
  text-align: left;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.aeo-table td {
  padding: 10px 14px;
  color: var(--muted-strong);
  border-top: 1px solid var(--glass-border-subtle);
  vertical-align: top;
}
.aeo-faqs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.aeo-faq {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  background: var(--glass-bg-subtle);
  padding: 0 14px;
}
.aeo-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 0;
  font-weight: 650;
  color: var(--ink);
  font-size: 15px;
}
.aeo-faq summary::-webkit-details-marker {
  display: none;
}
.aeo-faq summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-weight: 700;
}
.aeo-faq[open] summary::after {
  content: "–";
}
.aeo-faq p {
  margin: 0 0 14px;
  padding-top: 0;
  border-top: 1px solid var(--glass-border-subtle);
  padding-top: 10px;
}
.aeo-sources {
  margin: 0;
  padding-left: 20px;
  line-height: 1.75;
}
.aeo-sources a {
  color: var(--accent);
  text-decoration: none;
}
.aeo-sources a:hover {
  text-decoration: underline;
}
.aeo-cta {
  margin: 36px 0 20px;
  padding: 22px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: var(--card);
}
.aeo-cta h2 {
  font-family: var(--serif);
  font-size: 22px;
  margin: 0 0 8px;
  color: var(--ink);
}
.aeo-cta p {
  margin: 0 0 14px;
  color: var(--muted-strong);
  line-height: 1.55;
}
.aeo-checklist {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 10px;
  color: var(--muted-strong);
  line-height: 1.5;
}
.aeo-checklist li {
  padding-left: 4px;
}
.glossary-index {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.glossary-toolbar {
  display: grid;
  gap: 14px;
  margin: 0 0 1.5rem;
}
.glossary-search {
  display: grid;
  gap: 8px;
}
.glossary-search__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.glossary-search__input {
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 6, 10, 0.42);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.glossary-search__input::placeholder {
  color: var(--muted);
}
.glossary-search__input:focus {
  outline: none;
  border-color: rgba(248, 113, 113, 0.55);
  box-shadow:
    0 0 0 3px rgba(248, 113, 113, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.glossary-search__status {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.glossary-search__empty {
  margin: 24px 0;
  padding: 18px 16px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--glass-border);
  color: var(--muted-strong);
  text-align: center;
}
.glossary-az {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.glossary-az__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  padding: 0 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-strong);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.glossary-az__link:hover,
.glossary-az__link:focus-visible {
  color: var(--ink);
  border-color: rgba(248, 113, 113, 0.45);
  outline: none;
}
.glossary-letter__heading {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.045em;
  margin: 0 0 12px;
  color: var(--ink);
}
.glossary-letter[hidden],
.glossary-index__item[hidden],
.glossary-search__empty[hidden],
.glossary-az[hidden] {
  display: none !important;
}
.glossary-index__item a {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  background: var(--card);
  text-decoration: none;
  box-sizing: border-box;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.glossary-index__item a:hover,
.glossary-index__item a:focus-visible {
  border-color: var(--accent);
  /* Inset ring stays inside the card — no lift, so overflow:hidden grids
     (city hub folds) don't clip the top edge of the hover outline. */
  box-shadow: inset 0 0 0 1px var(--accent);
}
.glossary-index__term {
  display: block;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.glossary-index__blurb {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

/* ---------------------------------------------------------------------------
 * Workspace pipeline stages + parcel comparison (profile moat features)
 * ------------------------------------------------------------------------- */
.workspace-row__pipeline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}
.workspace-stage {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.workspace-stage select {
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text, var(--ink));
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line);
  border-left: 3px solid var(--muted);
  border-radius: 8px;
  padding: 5px 8px;
  cursor: pointer;
}
.workspace-stage--prospect select { border-left-color: #64748b; }
.workspace-stage--screening select { border-left-color: #3b82f6; }
.workspace-stage--diligence select { border-left-color: #f59e0b; }
.workspace-stage--offer select { border-left-color: #16a34a; }
.workspace-stage--passed select { border-left-color: #ef4444; }
.workspace-compare {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-strong);
  cursor: pointer;
}
.workspace-compare input {
  accent-color: var(--accent);
  width: 15px;
  height: 15px;
  cursor: pointer;
}
.compare-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 14px;
  padding: 10px 14px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  background: var(--glass-bg-subtle);
}
.compare-toolbar__hint {
  font-size: 13px;
  color: var(--muted-strong);
}
.compare-toolbar__actions {
  display: inline-flex;
  gap: 8px;
}
.compare-panel {
  margin: 0 0 16px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  background: var(--card);
  overflow: hidden;
}
.compare-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--glass-border);
}
.compare-panel__head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}
.compare-panel__scroll {
  overflow-x: auto;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.compare-table th[scope="col"] {
  text-align: left;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.compare-table th[scope="row"] {
  text-align: left;
  padding: 10px 14px;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 1px solid var(--glass-border-subtle);
}
.compare-table td {
  padding: 10px 14px;
  color: var(--muted-strong);
  border-bottom: 1px solid var(--glass-border-subtle);
  border-left: 1px solid var(--glass-border-subtle);
  vertical-align: top;
  min-width: 150px;
}

/* ---------------------------------------------------------------------------
 * Print / PDF report (.pv-report is built by home.js buildPrintReport).
 * Hidden on screen; the only visible content when printing a screening.
 * ------------------------------------------------------------------------- */
.pv-report {
  display: none;
}

html.pdf-studio-open .pv-report.pv-report--studio {
  display: block !important;
  color: #0f172a;
}

@media print {
  @page {
    size: letter;
    margin: 0;
  }

  html,
  body {
    margin: 0;
    padding: 0;
    background: #fff !important;
    color: #0f172a;
  }

  /* When a screening report exists, print only the report. */
  body:has(.pv-report) > *:not(.pv-report),
  body:has(.pv-report)::before {
    display: none !important;
  }

  /* Fallback layout cleanup for pages without a generated report. */
  body::before,
  .topbar,
  .recent-screenings,
  .no-print {
    display: none !important;
  }

  .pv-report {
    --pv-ink: #31212a;
    --pv-accent: #ef4444;
    --pv-accent-soft: #f87171;
    --pv-band-bg: #16090d;
    --pv-body: #3f3038;
    --pv-muted: #8b7d84;
    --pv-line: #e9e2e5;
    display: block;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--pv-body);
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .pv-page {
    position: relative;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
    min-height: 10.9in;
    padding: 12mm 15mm 10mm;
    background: #fff;
    overflow: visible;
  }

  .pv-page:not(:last-child) {
    page-break-after: always;
  }

  /* Subtle brand watermark */
  .pv-page::after {
    content: "PV";
    position: absolute;
    right: -8mm;
    bottom: -14mm;
    font-family: Times, "Times New Roman", serif;
    font-size: 220px;
    font-weight: 700;
    color: rgba(239, 68, 68, 0.035);
    pointer-events: none;
  }

  /* --- Branded header band (full bleed on cover) --- */
  .pv-band {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: -12mm -15mm 9mm;
    padding: 8mm 15mm;
    background: var(--pv-band-bg);
    border-bottom: 3px solid var(--pv-accent);
    color: #fff;
  }

  .pv-band__mark {
    display: none;
  }

  .pv-band__title {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .pv-band__brand {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.24em;
    color: var(--pv-accent-soft);
  }

  .pv-band__doc {
    font-family: Times, "Times New Roman", serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.02em;
  }

  .pv-band__id {
    margin-left: auto;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.72);
  }

  .pv-band__client-logo {
    max-height: 40px;
    max-width: 110px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    background: #fff;
    padding: 2px 5px;
    flex: 0 0 auto;
  }

  .pv-cover-note {
    margin: 6px 0 0;
    font-size: 11px;
    line-height: 1.4;
    color: #475569;
    font-style: italic;
  }

  .pv-page--notes .pv-custom-block {
    margin-top: 0;
    flex: 0 1 auto;
  }

  .pv-page--notes .pv-disclaimer-short--inline {
    margin-top: 6mm;
    margin-bottom: 0;
  }

  .pv-custom-block {
    margin-top: 0;
    padding: 5mm 5.5mm;
    border: 1px solid var(--pv-line);
    border-radius: 6px;
    background: #f8fafc;
    break-inside: avoid;
  }

  .pv-custom-block .pv-h2 {
    margin-top: 0;
  }

  .pv-custom-block__item {
    margin: 0 0 3.5mm;
  }

  .pv-custom-block__item:last-of-type {
    margin-bottom: 2mm;
  }

  .pv-custom-block__item p {
    margin: 0;
    font-size: 10.5px;
    line-height: 1.45;
    white-space: pre-wrap;
  }

  /* --- Cover heading + QR --- */
  .pv-cover-heading {
    display: flex;
    align-items: flex-start;
    gap: 10mm;
  }

  .pv-cover-heading__text {
    flex: 1;
    min-width: 0;
  }

  .pv-cover-heading h1 {
    margin: 0 0 4px;
    font-family: Times, "Times New Roman", serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--pv-ink);
  }

  .pv-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2mm;
    flex: 0 0 auto;
  }

  /* ~28mm — small QR codes often fail phone cameras */
  .pv-qr img {
    width: 28mm;
    height: 28mm;
    border: 1px solid var(--pv-line);
    border-radius: 6px;
    padding: 1.5mm;
    background: #fff;
  }

  .pv-qr span {
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--pv-muted);
    text-align: center;
    max-width: 32mm;
  }

  a.pv-url {
    color: var(--pv-accent);
    word-break: break-all;
  }

  .pv-cover-meta {
    margin: 0 0 2px;
    font-size: 13px;
    font-weight: 600;
    color: var(--pv-body);
  }

  .pv-cover-date {
    margin: 0;
    font-size: 10.5px;
    color: var(--pv-muted);
  }

  /* --- Aerial figure with parcel outline --- */
  .pv-aerial {
    position: relative;
    margin: 8mm 0 0;
    break-inside: avoid;
  }

  .pv-aerial__crop {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
  }

  .pv-aerial__crop img {
    position: absolute;
    display: block;
  }

  .pv-aerial__crop svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .pv-aerial svg polygon,
  .pv-aerial__crop svg polygon {
    fill: rgba(248, 113, 113, 0.14);
    stroke: #f87171;
    stroke-width: 4;
    vector-effect: non-scaling-stroke;
  }

  .pv-aerial figcaption {
    margin-top: 3px;
    font-size: 7.5px;
    color: var(--pv-muted);
  }

  /* --- Cover two-column: overall screening + property info --- */
  .pv-cover-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 12mm;
    margin-top: 8mm;
  }

  .pv-h2 {
    margin: 0 0 3.5mm;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pv-ink);
    border-bottom: 2px solid var(--pv-accent);
    padding-bottom: 2mm;
  }

  .pv-h3 {
    margin: 6mm 0 3mm;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--pv-muted);
  }

  /* --- Overall screening dashboard --- */
  .pv-dash {
    display: flex;
    flex-direction: column;
    gap: 3mm;
  }

  .pv-dash-row {
    display: flex;
    align-items: center;
    font-size: 11px;
  }

  .pv-dash-row__label {
    font-weight: 700;
    color: var(--pv-ink);
    white-space: nowrap;
  }

  .pv-overall {
    margin-top: 5mm;
    padding: 3.5mm 4.5mm;
    border-radius: 9px;
    border: 1px solid;
  }

  .pv-overall--good { background: #f0faf2; border-color: #bbe5c4; }
  .pv-overall--warn { background: #fdf6e7; border-color: #f0dcae; }
  .pv-overall--bad { background: #fdeeee; border-color: #f3c1c1; }

  .pv-overall__label {
    display: block;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pv-muted);
    margin-bottom: 1mm;
  }

  .pv-overall__value {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--pv-ink);
  }

  .pv-overall--good .pv-overall__value { color: #15803d; }
  .pv-overall--warn .pv-overall__value { color: #b45309; }
  .pv-overall--bad .pv-overall__value { color: #b91c1c; }

  /* --- Development snapshot --- */
  .pv-snapshot {
    margin-top: 8mm;
  }

  .pv-snapshot__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10mm;
  }

  /* --- Key facts with dot leaders --- */
  .pv-facts {
    display: flex;
    flex-direction: column;
    gap: 2.4mm;
  }

  .pv-fact {
    display: flex;
    align-items: baseline;
    font-size: 10.5px;
  }

  .pv-fact__label {
    font-weight: 600;
    color: var(--pv-muted);
    white-space: nowrap;
  }

  .pv-fact__dots {
    flex: 1;
    margin: 0 6px;
    border-bottom: 1px dotted #d8ced3;
    transform: translateY(-2px);
  }

  .pv-fact__value {
    font-weight: 700;
    color: var(--pv-ink);
    text-align: right;
    max-width: 60%;
  }

  .pv-disclaimer-short {
    margin: auto 0 0;
    padding: 3mm 4.5mm;
    border-radius: 8px;
    background: #faf7f8;
    border: 1px solid var(--pv-line);
    font-size: 8.5px;
    line-height: 1.55;
    color: var(--pv-muted);
  }

  .pv-disclaimer-short--inline {
    margin: 6mm 0 0;
  }

  /* --- Section titles (interior pages) --- */
  .pv-section-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 6mm;
    font-family: Times, "Times New Roman", serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--pv-ink);
  }

  .pv-section-title + .pv-note {
    margin-top: -4mm;
  }

  .pv-section-title__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    border-radius: 8px;
    background: var(--pv-ink);
    color: #fca5a5;
  }

  .pv-section-title__icon svg {
    width: 15px;
    height: 15px;
  }

  .pv-page > .pv-section-title:not(:first-child) {
    margin-top: 10mm;
  }

  /* --- Highlights --- */
  .pv-highlights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10mm;
  }

  .pv-highlights-grid .pv-h3 {
    margin-top: 0;
  }

  .pv-check-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 3.2mm;
    font-size: 10.5px;
    line-height: 1.5;
    color: var(--pv-body);
  }

  .pv-check-list li {
    display: flex;
    gap: 7px;
    align-items: flex-start;
  }

  .pv-li-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    border-radius: 5px;
    margin-top: 1px;
  }

  .pv-li-icon svg {
    width: 10px;
    height: 10px;
  }

  .pv-li-icon--good { background: #dcfce7; color: #15803d; }
  .pv-li-icon--warn { background: #fef3c7; color: #b45309; }

  /* --- Category cards --- */
  .pv-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5mm;
  }

  .pv-card {
    break-inside: avoid;
    border: 1px solid var(--pv-line);
    border-left-width: 3px;
    border-radius: 10px;
    padding: 4.5mm 5mm;
    background: #fff;
  }

  .pv-card--good { border-left-color: #16a34a; }
  .pv-card--warn { border-left-color: #f59e0b; }
  .pv-card--bad { border-left-color: #dc2626; }
  .pv-card--info { border-left-color: #3b82f6; }

  .pv-card__head {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 2.5mm;
  }

  .pv-card__head h3 {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    color: var(--pv-ink);
    flex: 1;
  }

  .pv-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: #f7f1f3;
    color: var(--pv-ink);
  }

  .pv-card__icon svg {
    width: 12px;
    height: 12px;
  }

  .pv-card__drivers {
    margin: 0 0 2.5mm;
    padding-left: 14px;
    font-size: 9px;
    line-height: 1.45;
    color: #475569;
  }

  /* --- Status pills --- */
  .pv-pill {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 7.5px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .pv-pill--good { background: #dcfce7; color: #15803d; }
  .pv-pill--warn { background: #fef3c7; color: #b45309; }
  .pv-pill--bad { background: #fee2e2; color: #b91c1c; }
  .pv-pill--info { background: #dbeafe; color: #1d4ed8; }
  .pv-pill--na { background: #eeeaec; color: #8b7d84; }

  /* --- Confidence meter --- */
  .pv-meter {
    display: flex;
    align-items: center;
    gap: 7px;
  }

  .pv-meter__track {
    flex: 1;
    height: 5px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
  }

  .pv-meter__fill {
    height: 100%;
    border-radius: 999px;
  }

  .pv-meter__fill--high { background: #16a34a; }
  .pv-meter__fill--medium { background: #f59e0b; }
  .pv-meter__fill--low { background: #b3a6ac; }

  .pv-meter__label {
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--pv-muted);
    white-space: nowrap;
  }

  /* --- Findings table --- */
  .pv-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 9.5px;
    margin: 2mm 0 0;
  }

  .pv-table th {
    text-align: left;
    padding: 2.6mm 3.5mm;
    background: var(--pv-ink);
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .pv-table th:first-child { border-radius: 6px 0 0 6px; }
  .pv-table th:last-child { border-radius: 0 6px 6px 0; }

  .pv-table td {
    padding: 2.8mm 3.5mm;
    border-bottom: 1px solid var(--pv-line);
    color: var(--pv-body);
    vertical-align: middle;
  }

  .pv-table tr {
    break-inside: avoid;
  }

  .pv-table__row--dim td,
  .pv-table__row--dim .pv-table__result {
    color: #a89ba1;
  }

  .pv-table__result {
    font-weight: 600;
    color: var(--pv-ink);
  }

  .pv-table__src {
    margin-top: 0.8mm;
    font-size: 8px;
    color: var(--pv-muted);
  }

  .pv-note {
    margin: 0 0 4mm;
    font-size: 9px;
    color: var(--pv-muted);
  }

  .pv-source-list {
    margin: 0;
    padding-left: 14px;
    font-size: 8.5px;
    line-height: 1.7;
    color: var(--pv-body);
  }

  .pv-url {
    color: var(--pv-accent);
    word-break: break-all;
  }

  /* --- Legal + page footer --- */
  .pv-legal {
    margin-top: auto;
    padding-top: 6mm;
  }

  .pv-legal p {
    margin: 0 0 2mm;
    font-size: 8px;
    line-height: 1.6;
    color: var(--pv-muted);
  }

  .pv-page__foot {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 3mm;
    border-top: 1px solid var(--pv-line);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pv-muted);
  }

  .pv-legal ~ .pv-page__foot,
  .pv-disclaimer-short ~ .pv-page__foot {
    margin-top: 4mm;
  }
}
.site-footer__build { margin: 12px 0 0; color: rgba(226, 232, 240, .62); font-size: 11px; letter-spacing: .03em; }
.workspace-row__advisory-fields {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.workspace-row__advisory-fields summary { min-height: 44px; display: flex; align-items: center; color: var(--text); font-size: 12px; font-weight: 700; cursor: pointer; }
.workspace-row__advisory-fields label { display: grid; gap: 5px; margin-top: 9px; color: var(--muted); font-size: 11px; }
.workspace-row__advisory-fields input, .workspace-row__advisory-fields textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 10px; background: rgba(0,0,0,.2); color: var(--text); padding: 9px 10px; font: inherit; font-size: 13px; }

/* —— Intelligence chat (sellable screening aesthetic) —— */
body.page-chat {
  --intel-rose: #c9898f;
  --intel-rose-strong: #a35d65;
  --intel-rose-send: #b56b73;
  --intel-slate: #94a3b8;
  --intel-panel: rgba(16, 14, 18, 0.78);
  --intel-bubble: rgba(28, 26, 32, 0.92);
  --intel-user-border: rgba(127, 55, 62, 0.85);
}

body.page-chat .page-hero--chat {
  --page-hero-min-height: 0;
  --page-hero-padding: 1.15rem 1.35rem 1.25rem;
  margin-bottom: 1.15rem;
}

body.page-chat .page-hero--chat .page-hero__title {
  max-width: none;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}

body.page-chat .chat-layout--solo {
  max-width: 960px;
  margin-inline: auto;
}

.intel-shell {
  display: flex;
  flex-direction: column;
  min-height: min(72vh, 760px);
  padding: 0;
  overflow: hidden;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(248, 113, 113, 0.05), transparent 28%),
    var(--intel-panel);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(22px) saturate(155%);
  backdrop-filter: blur(22px) saturate(155%);
}

.intel-shell__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.intel-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(163, 93, 101, 0.55);
  color: var(--intel-rose);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(163, 93, 101, 0.1);
}

.intel-brand-pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--intel-rose-strong);
  box-shadow: 0 0 0 3px rgba(163, 93, 101, 0.22);
}

.intel-context {
  position: relative;
  margin-left: auto;
  max-width: min(52vw, 320px);
}

.intel-context-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 0;
  max-width: 100%;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: var(--intel-slate);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(148, 163, 184, 0.08);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition:
    border-color 140ms ease,
    background 140ms ease,
    color 140ms ease;
}

.intel-context-pill::-webkit-details-marker {
  display: none;
}

.intel-context-pill__chev {
  width: 0.45rem;
  height: 0.45rem;
  flex: 0 0 auto;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.75;
  transition: transform 140ms ease;
}

.intel-context[open] > .intel-context-pill,
.intel-context-pill:hover {
  border-color: rgba(201, 137, 143, 0.55);
  background: rgba(163, 93, 101, 0.12);
  color: #e8c4c8;
}

.intel-context[open] > .intel-context-pill .intel-context-pill__chev {
  transform: rotate(225deg) translateY(-1px);
}

.intel-context.is-set > .intel-context-pill {
  border-color: rgba(104, 211, 145, 0.35);
  color: #a7f3d0;
  background: rgba(104, 211, 145, 0.08);
}

.intel-context__panel {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  z-index: 30;
  width: min(22.5rem, calc(100vw - 2rem));
  padding: 0.9rem 0.95rem 0.95rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(36, 28, 32, 0.98), rgba(16, 14, 18, 0.98));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

.intel-context__lead {
  margin: 0 0 0.75rem;
  color: var(--muted-strong);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.intel-context__form {
  display: grid;
  gap: 0.65rem;
}

.intel-context__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.intel-context__field {
  display: grid;
  gap: 0.3rem;
  text-align: left;
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.intel-context__field input,
.intel-context__field select,
.intel-context__field textarea {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.28);
  color: var(--ink);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.35;
}

.intel-context__field textarea {
  resize: vertical;
  min-height: 3.25rem;
}

.intel-context__field input:focus,
.intel-context__field select:focus,
.intel-context__field textarea:focus {
  outline: none;
  border-color: rgba(201, 137, 143, 0.55);
  box-shadow: 0 0 0 2px rgba(163, 93, 101, 0.22);
}

.intel-context__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.15rem;
}

.intel-context__actions .button {
  min-height: 2.15rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.8125rem;
}

.intel-shell__head .chat-fullscreen-btn {
  margin-top: 0;
}

.intel-body.chat-body {
  flex: 1 1 auto;
  min-height: 360px;
  max-height: 58vh;
  padding: 18px 18px 10px;
}

.intel-welcome.chat-welcome p {
  color: var(--muted-strong);
  font-size: 15px;
  line-height: 1.55;
}

.intel-turn {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}

.intel-turn__meta {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-inline: 44px;
}

.intel-turn--user .intel-turn__meta {
  text-align: right;
}

.intel-turn__row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.intel-turn--user .intel-turn__row {
  justify-content: flex-end;
}

.intel-avatar {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
}

.intel-avatar--assistant {
  background: rgba(55, 52, 60, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.intel-avatar--user {
  background: rgba(127, 45, 55, 0.92);
  border: 1px solid rgba(248, 113, 113, 0.35);
}

.intel-bubble.chat-bubble {
  max-width: min(100%, 560px);
  margin-bottom: 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--intel-bubble);
  line-height: 1.5;
  font-size: 14.5px;
}

.intel-bubble.chat-bubble--assistant {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom-left-radius: 8px;
  color: #e8eaed;
}

.intel-bubble.chat-bubble--user {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-left: 0;
  background: rgba(22, 18, 22, 0.95);
  border: 1px solid var(--intel-user-border);
  border-bottom-right-radius: 8px;
  color: #f4f4f5;
  box-shadow: none;
}

.intel-bubble__text {
  flex: 1 1 140px;
  min-width: 0;
}

.intel-tag {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
}

.intel-tag--flood {
  background: rgba(59, 90, 140, 0.55);
  color: #c7d7f5;
  border: 1px solid rgba(147, 180, 230, 0.28);
}

.intel-tag--fire {
  background: rgba(154, 72, 48, 0.5);
  color: #fdba8c;
  border: 1px solid rgba(251, 146, 60, 0.28);
}

.intel-tag--landuse {
  background: rgba(36, 84, 58, 0.55);
  color: #b7e4c7;
  border: 1px solid rgba(110, 180, 140, 0.28);
}

.intel-tag--zoning {
  background: rgba(70, 78, 120, 0.5);
  color: #c9d0f5;
  border: 1px solid rgba(165, 180, 230, 0.25);
}

.intel-tag--soils {
  background: rgba(110, 84, 48, 0.5);
  color: #e8d4a8;
  border: 1px solid rgba(214, 176, 110, 0.28);
}

.intel-tag--geology {
  background: rgba(88, 72, 48, 0.55);
  color: #d9c4a0;
  border: 1px solid rgba(180, 150, 100, 0.25);
}

.intel-tag--adu,
.intel-tag--build {
  background: rgba(88, 52, 72, 0.5);
  color: #f0c4d4;
  border: 1px solid rgba(232, 160, 180, 0.25);
}

.intel-tag--neutral {
  background: rgba(70, 78, 92, 0.5);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.intel-turn .chat-disclosure {
  margin: 4px 0 0 44px;
  max-width: min(100%, 560px);
  opacity: 0.78;
  font-size: 10.5px;
}

.intel-turn .chat-disclosure__text {
  margin-top: 4px;
  color: rgba(148, 163, 184, 0.78);
}

.intel-turn--user + .intel-turn--assistant,
.intel-turn--assistant + .intel-turn--user {
  margin-top: 2px;
}

.intel-composer {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-top: auto;
  padding: 16px 18px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(8, 6, 9, 0.45);
}

.intel-composer__input {
  flex: 1;
  width: 100%;
  min-height: 64px;
  max-height: 160px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 10, 14, 0.92);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.45;
  outline: none;
  resize: vertical;
  field-sizing: content;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.intel-composer__input::placeholder {
  color: rgba(148, 163, 184, 0.72);
  font-style: italic;
}

.intel-composer__input:focus {
  border-color: rgba(163, 93, 101, 0.55);
  box-shadow: 0 0 0 3px rgba(163, 93, 101, 0.16);
}

.intel-composer__send {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(180deg, #c9898f 0%, var(--intel-rose-send) 55%, var(--intel-rose-strong) 100%);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 22px rgba(163, 93, 101, 0.32);
  transition: transform 140ms ease, filter 140ms ease, opacity 140ms ease;
}

.intel-composer__send svg {
  width: 22px;
  height: 22px;
}

.intel-composer__send:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.intel-composer__send:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.intel-footnote {
  max-width: 960px;
  margin: 16px auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.intel-footnote a {
  color: var(--muted-strong);
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.chat-fullscreen .intel-shell {
  min-height: 100svh;
  border-radius: 0;
}

body.chat-fullscreen .intel-body.chat-body {
  max-height: none;
}

body.chat-fullscreen .intel-footnote,
body.chat-fullscreen .site-footer {
  display: none !important;
}

@media (max-width: 720px) {
  .intel-shell__head {
    flex-wrap: wrap;
  }

  .intel-context {
    order: 3;
    margin-left: 0;
    max-width: 100%;
    flex: 1 1 100%;
  }

  .intel-context-pill {
    max-width: 100%;
  }

  .intel-context__panel {
    left: 0;
    right: 0;
    width: auto;
  }

  .intel-context__row {
    grid-template-columns: 1fr;
  }

  .intel-turn__meta {
    padding-inline: 40px;
  }

  .intel-turn .chat-disclosure {
    margin-left: 40px;
  }

  .intel-bubble.chat-bubble {
    font-size: 14px;
  }
}

/* Soft upgrade panel when free users open paid /guides/* */
.guide-gate {
  width: min(56rem, 100%);
  max-width: none;
  margin: 0.75rem auto 3rem;
  padding: clamp(2rem, 4vw, 2.75rem) clamp(1.5rem, 4vw, 2.75rem) clamp(2.1rem, 4vw, 2.85rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.06) 0%, transparent 55%),
    var(--glass-bg-strong);
  box-shadow: var(--glass-highlight), var(--glass-shadow);
  text-align: center;
}

.guide-gate__eyebrow {
  margin: 0 auto 0.55rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.guide-gate__title {
  margin: 0 auto 0.85rem;
  max-width: 28ch;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}

.guide-gate__lead {
  margin: 0 auto 1.45rem;
  max-width: 42rem;
  font-family: var(--sans);
  font-size: clamp(1.05rem, 1.5vw, 1.15rem);
  line-height: 1.6;
  color: var(--muted-strong);
}

.guide-gate__cta {
  justify-content: center;
  margin-bottom: 1rem;
}

.guide-gate__note {
  margin: 0 auto;
  max-width: 40rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
}

.guide-gate--hub {
  width: min(56rem, 100%);
  margin-bottom: 2rem;
}

.guide-link--locked > a,
li.guide-link--locked > a {
  position: relative;
  opacity: 0.72;
}

.guide-lock-badge {
  display: inline-block;
  margin-left: 0.55rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.12);
  color: var(--accent, #f87171);
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
}

html.pdf-studio-open .pv-report.pv-report--studio {
  display: block !important;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}


/* PDF studio WYSIWYG — same visuals as printed report */
  html.pdf-studio-open .pv-report.pv-report--studio {
    --pv-ink: #31212a;
    --pv-accent: #ef4444;
    --pv-accent-soft: #f87171;
    --pv-band-bg: #16090d;
    --pv-body: #3f3038;
    --pv-muted: #8b7d84;
    --pv-line: #e9e2e5;
    display: block;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--pv-body);
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  html.pdf-studio-open .pv-report--studio .pv-page {
    position: relative;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
    min-height: 10.9in;
    padding: 12mm 15mm 10mm;
    background: #fff;
    overflow: visible;
  }

  html.pdf-studio-open .pv-report--studio .pv-page:not(:last-child) {
    page-break-after: always;
  }

  /* Subtle brand watermark */
  html.pdf-studio-open .pv-report--studio .pv-page::after {
    content: "PV";
    position: absolute;
    right: -8mm;
    bottom: -14mm;
    font-family: Times, "Times New Roman", serif;
    font-size: 220px;
    font-weight: 700;
    color: rgba(239, 68, 68, 0.035);
    pointer-events: none;
  }

  /* --- Branded header band (full bleed on cover) --- */
  html.pdf-studio-open .pv-report--studio .pv-band {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: -12mm -15mm 9mm;
    padding: 8mm 15mm;
    background: var(--pv-band-bg);
    border-bottom: 3px solid var(--pv-accent);
    color: #fff;
  }

  html.pdf-studio-open .pv-report--studio .pv-band__mark {
    display: none;
  }

  html.pdf-studio-open .pv-report--studio .pv-band__title {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  html.pdf-studio-open .pv-report--studio .pv-band__brand {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.24em;
    color: var(--pv-accent-soft);
  }

  html.pdf-studio-open .pv-report--studio .pv-band__doc {
    font-family: Times, "Times New Roman", serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.02em;
  }

  html.pdf-studio-open .pv-report--studio .pv-band__id {
    margin-left: auto;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.72);
  }

  html.pdf-studio-open .pv-report--studio .pv-band__client-logo {
    max-height: 40px;
    max-width: 110px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    background: #fff;
    padding: 2px 5px;
    flex: 0 0 auto;
  }

  html.pdf-studio-open .pv-report--studio .pv-cover-note {
    margin: 6px 0 0;
    font-size: 11px;
    line-height: 1.4;
    color: #475569;
    font-style: italic;
  }

  html.pdf-studio-open .pv-report--studio .pv-page--notes .pv-custom-block {
    margin-top: 0;
    flex: 0 1 auto;
  }

  html.pdf-studio-open .pv-report--studio .pv-page--notes .pv-disclaimer-short--inline {
    margin-top: 6mm;
    margin-bottom: 0;
  }

  html.pdf-studio-open .pv-report--studio .pv-custom-block {
    margin-top: 0;
    padding: 5mm 5.5mm;
    border: 1px solid var(--pv-line);
    border-radius: 6px;
    background: #f8fafc;
    break-inside: avoid;
  }

  html.pdf-studio-open .pv-report--studio .pv-custom-block .pv-h2 {
    margin-top: 0;
  }

  html.pdf-studio-open .pv-report--studio .pv-custom-block__item {
    margin: 0 0 3.5mm;
  }

  html.pdf-studio-open .pv-report--studio .pv-custom-block__item:last-of-type {
    margin-bottom: 2mm;
  }

  html.pdf-studio-open .pv-report--studio .pv-custom-block__item p {
    margin: 0;
    font-size: 10.5px;
    line-height: 1.45;
    white-space: pre-wrap;
  }

  /* --- Cover heading + QR --- */
  html.pdf-studio-open .pv-report--studio .pv-cover-heading {
    display: flex;
    align-items: flex-start;
    gap: 10mm;
  }

  html.pdf-studio-open .pv-report--studio .pv-cover-heading__text {
    flex: 1;
    min-width: 0;
  }

  html.pdf-studio-open .pv-report--studio .pv-cover-heading h1 {
    margin: 0 0 4px;
    font-family: Times, "Times New Roman", serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--pv-ink);
  }

  html.pdf-studio-open .pv-report--studio .pv-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2mm;
    flex: 0 0 auto;
  }

  /* ~28mm — small QR codes often fail phone cameras */
  html.pdf-studio-open .pv-report--studio .pv-qr img {
    width: 28mm;
    height: 28mm;
    border: 1px solid var(--pv-line);
    border-radius: 6px;
    padding: 1.5mm;
    background: #fff;
  }

  html.pdf-studio-open .pv-report--studio .pv-qr span {
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--pv-muted);
    text-align: center;
    max-width: 32mm;
  }

  html.pdf-studio-open .pv-report--studio a.pv-url {
    color: var(--pv-accent);
    word-break: break-all;
  }

  html.pdf-studio-open .pv-report--studio .pv-cover-meta {
    margin: 0 0 2px;
    font-size: 13px;
    font-weight: 600;
    color: var(--pv-body);
  }

  html.pdf-studio-open .pv-report--studio .pv-cover-date {
    margin: 0;
    font-size: 10.5px;
    color: var(--pv-muted);
  }

  /* --- Aerial figure with parcel outline --- */
  html.pdf-studio-open .pv-report--studio .pv-aerial {
    position: relative;
    margin: 8mm 0 0;
    break-inside: avoid;
  }

  html.pdf-studio-open .pv-report--studio .pv-aerial__crop {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
  }

  html.pdf-studio-open .pv-report--studio .pv-aerial__crop img {
    position: absolute;
    display: block;
  }

  html.pdf-studio-open .pv-report--studio .pv-aerial__crop svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  html.pdf-studio-open .pv-report--studio .pv-aerial svg polygon,
html.pdf-studio-open .pv-report--studio .pv-aerial__crop svg polygon {
    fill: rgba(248, 113, 113, 0.14);
    stroke: #f87171;
    stroke-width: 4;
    vector-effect: non-scaling-stroke;
  }

  html.pdf-studio-open .pv-report--studio .pv-aerial figcaption {
    margin-top: 3px;
    font-size: 7.5px;
    color: var(--pv-muted);
  }

  /* --- Cover two-column: overall screening + property info --- */
  html.pdf-studio-open .pv-report--studio .pv-cover-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 12mm;
    margin-top: 8mm;
  }

  html.pdf-studio-open .pv-report--studio .pv-h2 {
    margin: 0 0 3.5mm;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pv-ink);
    border-bottom: 2px solid var(--pv-accent);
    padding-bottom: 2mm;
  }

  html.pdf-studio-open .pv-report--studio .pv-h3 {
    margin: 6mm 0 3mm;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--pv-muted);
  }

  /* --- Overall screening dashboard --- */
  html.pdf-studio-open .pv-report--studio .pv-dash {
    display: flex;
    flex-direction: column;
    gap: 3mm;
  }

  html.pdf-studio-open .pv-report--studio .pv-dash-row {
    display: flex;
    align-items: center;
    font-size: 11px;
  }

  html.pdf-studio-open .pv-report--studio .pv-dash-row__label {
    font-weight: 700;
    color: var(--pv-ink);
    white-space: nowrap;
  }

  html.pdf-studio-open .pv-report--studio .pv-overall {
    margin-top: 5mm;
    padding: 3.5mm 4.5mm;
    border-radius: 9px;
    border: 1px solid;
  }

  html.pdf-studio-open .pv-report--studio .pv-overall--good { background: #f0faf2; border-color: #bbe5c4; }
  html.pdf-studio-open .pv-report--studio .pv-overall--warn { background: #fdf6e7; border-color: #f0dcae; }
  html.pdf-studio-open .pv-report--studio .pv-overall--bad { background: #fdeeee; border-color: #f3c1c1; }

  html.pdf-studio-open .pv-report--studio .pv-overall__label {
    display: block;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pv-muted);
    margin-bottom: 1mm;
  }

  html.pdf-studio-open .pv-report--studio .pv-overall__value {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--pv-ink);
  }

  html.pdf-studio-open .pv-report--studio .pv-overall--good .pv-overall__value { color: #15803d; }
  html.pdf-studio-open .pv-report--studio .pv-overall--warn .pv-overall__value { color: #b45309; }
  html.pdf-studio-open .pv-report--studio .pv-overall--bad .pv-overall__value { color: #b91c1c; }

  /* --- Development snapshot --- */
  html.pdf-studio-open .pv-report--studio .pv-snapshot {
    margin-top: 8mm;
  }

  html.pdf-studio-open .pv-report--studio .pv-snapshot__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10mm;
  }

  /* --- Key facts with dot leaders --- */
  html.pdf-studio-open .pv-report--studio .pv-facts {
    display: flex;
    flex-direction: column;
    gap: 2.4mm;
  }

  html.pdf-studio-open .pv-report--studio .pv-fact {
    display: flex;
    align-items: baseline;
    font-size: 10.5px;
  }

  html.pdf-studio-open .pv-report--studio .pv-fact__label {
    font-weight: 600;
    color: var(--pv-muted);
    white-space: nowrap;
  }

  html.pdf-studio-open .pv-report--studio .pv-fact__dots {
    flex: 1;
    margin: 0 6px;
    border-bottom: 1px dotted #d8ced3;
    transform: translateY(-2px);
  }

  html.pdf-studio-open .pv-report--studio .pv-fact__value {
    font-weight: 700;
    color: var(--pv-ink);
    text-align: right;
    max-width: 60%;
  }

  html.pdf-studio-open .pv-report--studio .pv-disclaimer-short {
    margin: auto 0 0;
    padding: 3mm 4.5mm;
    border-radius: 8px;
    background: #faf7f8;
    border: 1px solid var(--pv-line);
    font-size: 8.5px;
    line-height: 1.55;
    color: var(--pv-muted);
  }

  html.pdf-studio-open .pv-report--studio .pv-disclaimer-short--inline {
    margin: 6mm 0 0;
  }

  /* --- Section titles (interior pages) --- */
  html.pdf-studio-open .pv-report--studio .pv-section-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 6mm;
    font-family: Times, "Times New Roman", serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--pv-ink);
  }

  html.pdf-studio-open .pv-report--studio .pv-section-title + .pv-note {
    margin-top: -4mm;
  }

  html.pdf-studio-open .pv-report--studio .pv-section-title__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    border-radius: 8px;
    background: var(--pv-ink);
    color: #fca5a5;
  }

  html.pdf-studio-open .pv-report--studio .pv-section-title__icon svg {
    width: 15px;
    height: 15px;
  }

  html.pdf-studio-open .pv-report--studio .pv-page > .pv-section-title:not(:first-child) {
    margin-top: 10mm;
  }

  /* --- Highlights --- */
  html.pdf-studio-open .pv-report--studio .pv-highlights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10mm;
  }

  html.pdf-studio-open .pv-report--studio .pv-highlights-grid .pv-h3 {
    margin-top: 0;
  }

  html.pdf-studio-open .pv-report--studio .pv-check-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 3.2mm;
    font-size: 10.5px;
    line-height: 1.5;
    color: var(--pv-body);
  }

  html.pdf-studio-open .pv-report--studio .pv-check-list li {
    display: flex;
    gap: 7px;
    align-items: flex-start;
  }

  html.pdf-studio-open .pv-report--studio .pv-li-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    border-radius: 5px;
    margin-top: 1px;
  }

  html.pdf-studio-open .pv-report--studio .pv-li-icon svg {
    width: 10px;
    height: 10px;
  }

  html.pdf-studio-open .pv-report--studio .pv-li-icon--good { background: #dcfce7; color: #15803d; }
  html.pdf-studio-open .pv-report--studio .pv-li-icon--warn { background: #fef3c7; color: #b45309; }

  /* --- Category cards --- */
  html.pdf-studio-open .pv-report--studio .pv-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5mm;
  }

  html.pdf-studio-open .pv-report--studio .pv-card {
    break-inside: avoid;
    border: 1px solid var(--pv-line);
    border-left-width: 3px;
    border-radius: 10px;
    padding: 4.5mm 5mm;
    background: #fff;
  }

  html.pdf-studio-open .pv-report--studio .pv-card--good { border-left-color: #16a34a; }
  html.pdf-studio-open .pv-report--studio .pv-card--warn { border-left-color: #f59e0b; }
  html.pdf-studio-open .pv-report--studio .pv-card--bad { border-left-color: #dc2626; }
  html.pdf-studio-open .pv-report--studio .pv-card--info { border-left-color: #3b82f6; }

  html.pdf-studio-open .pv-report--studio .pv-card__head {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 2.5mm;
  }

  html.pdf-studio-open .pv-report--studio .pv-card__head h3 {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    color: var(--pv-ink);
    flex: 1;
  }

  html.pdf-studio-open .pv-report--studio .pv-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: #f7f1f3;
    color: var(--pv-ink);
  }

  html.pdf-studio-open .pv-report--studio .pv-card__icon svg {
    width: 12px;
    height: 12px;
  }

  html.pdf-studio-open .pv-report--studio .pv-card__drivers {
    margin: 0 0 2.5mm;
    padding-left: 14px;
    font-size: 9px;
    line-height: 1.45;
    color: #475569;
  }

  /* --- Status pills --- */
  html.pdf-studio-open .pv-report--studio .pv-pill {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 7.5px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
  }

  html.pdf-studio-open .pv-report--studio .pv-pill--good { background: #dcfce7; color: #15803d; }
  html.pdf-studio-open .pv-report--studio .pv-pill--warn { background: #fef3c7; color: #b45309; }
  html.pdf-studio-open .pv-report--studio .pv-pill--bad { background: #fee2e2; color: #b91c1c; }
  html.pdf-studio-open .pv-report--studio .pv-pill--info { background: #dbeafe; color: #1d4ed8; }
  html.pdf-studio-open .pv-report--studio .pv-pill--na { background: #eeeaec; color: #8b7d84; }

  /* --- Confidence meter --- */
  html.pdf-studio-open .pv-report--studio .pv-meter {
    display: flex;
    align-items: center;
    gap: 7px;
  }

  html.pdf-studio-open .pv-report--studio .pv-meter__track {
    flex: 1;
    height: 5px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
  }

  html.pdf-studio-open .pv-report--studio .pv-meter__fill {
    height: 100%;
    border-radius: 999px;
  }

  html.pdf-studio-open .pv-report--studio .pv-meter__fill--high { background: #16a34a; }
  html.pdf-studio-open .pv-report--studio .pv-meter__fill--medium { background: #f59e0b; }
  html.pdf-studio-open .pv-report--studio .pv-meter__fill--low { background: #b3a6ac; }

  html.pdf-studio-open .pv-report--studio .pv-meter__label {
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--pv-muted);
    white-space: nowrap;
  }

  /* --- Findings table --- */
  html.pdf-studio-open .pv-report--studio .pv-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 9.5px;
    margin: 2mm 0 0;
  }

  html.pdf-studio-open .pv-report--studio .pv-table th {
    text-align: left;
    padding: 2.6mm 3.5mm;
    background: var(--pv-ink);
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  html.pdf-studio-open .pv-report--studio .pv-table th:first-child { border-radius: 6px 0 0 6px; }
  html.pdf-studio-open .pv-report--studio .pv-table th:last-child { border-radius: 0 6px 6px 0; }

  html.pdf-studio-open .pv-report--studio .pv-table td {
    padding: 2.8mm 3.5mm;
    border-bottom: 1px solid var(--pv-line);
    color: var(--pv-body);
    vertical-align: middle;
  }

  html.pdf-studio-open .pv-report--studio .pv-table tr {
    break-inside: avoid;
  }

  html.pdf-studio-open .pv-report--studio .pv-table__row--dim td,
html.pdf-studio-open .pv-report--studio .pv-table__row--dim .pv-table__result {
    color: #a89ba1;
  }

  html.pdf-studio-open .pv-report--studio .pv-table__result {
    font-weight: 600;
    color: var(--pv-ink);
  }

  html.pdf-studio-open .pv-report--studio .pv-table__src {
    margin-top: 0.8mm;
    font-size: 8px;
    color: var(--pv-muted);
  }

  html.pdf-studio-open .pv-report--studio .pv-note {
    margin: 0 0 4mm;
    font-size: 9px;
    color: var(--pv-muted);
  }

  html.pdf-studio-open .pv-report--studio .pv-source-list {
    margin: 0;
    padding-left: 14px;
    font-size: 8.5px;
    line-height: 1.7;
    color: var(--pv-body);
  }

  html.pdf-studio-open .pv-report--studio .pv-url {
    color: var(--pv-accent);
    word-break: break-all;
  }

  /* --- Legal + page footer --- */
  html.pdf-studio-open .pv-report--studio .pv-legal {
    margin-top: auto;
    padding-top: 6mm;
  }

  html.pdf-studio-open .pv-report--studio .pv-legal p {
    margin: 0 0 2mm;
    font-size: 8px;
    line-height: 1.6;
    color: var(--pv-muted);
  }

  html.pdf-studio-open .pv-report--studio .pv-page__foot {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 3mm;
    border-top: 1px solid var(--pv-line);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pv-muted);
  }

  html.pdf-studio-open .pv-report--studio .pv-legal ~ .pv-page__foot,
html.pdf-studio-open .pv-report--studio .pv-disclaimer-short ~ .pv-page__foot {
    margin-top: 4mm;
  }
