/* Building Trust final geometry and page-end rhythm, 22 August 2026. */

:root {
  --radius-card: 2px;
  --radius-frame: 2px;
  --radius-control: 4px;
  --radius-feature: 2px;
}

/* Remove inherited decorative rounding from the compiled page system. */
html * {
  border-radius: 2px;
}

/* Structural surfaces use the sharper geometry requested for the final site. */
.bt-public-header,
.page-jump,
.rp-related,
.bt-site-guide-panel,
.engagement-digest-frame-shell,
.record-check-hero figure,
.estate-map-hero figure,
.fix-library-hero figure,
.record-check-output,
.estate-map-output,
.record-check-next,
.estate-map-next,
.fix-library-boundary,
.evidence-hero aside,
.evidence-register > article,
.evidence-types {
  border-radius: 2px;
}

/* Controls remain easy to identify without looking pill-like. */
.bt-public-login,
.bt-public-cta,
.bt-public-mobile-cta,
.bt-public-mobile-nav summary,
.bt-public-mobile-nav nav,
.page-jump a,
.page-jump-select,
.hp-button,
.hp-nav-cta,
.engagement-share-actions button,
.engagement-share-actions a,
.engagement-digest-open,
.engagement-digest-form input,
.engagement-digest-form select,
.engagement-digest-form button,
.bt-site-guide-launcher,
.bt-site-guide-panel > header button,
.bt-guide-message,
.bt-guide-lease-iq-cta,
.bt-guide-suggestions button,
.bt-guide-message nav a,
.bt-guide-handoff-offer,
.bt-site-guide-quick button,
.bt-site-guide-question-form input,
.bt-site-guide-question-form button,
.bt-guide-handoff-form,
.bt-guide-handoff-form > input:not([type="checkbox"]),
.bt-guide-handoff-form > textarea,
.bt-guide-handoff-actions button,
.bt-guide-handoff-error button {
  border-radius: 4px;
}

.engagement-digest-form-shell {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  max-width: 560px;
  margin-top: 18px;
  padding: 20px;
}

.engagement-digest-form {
  display: grid;
  gap: 8px;
}

.engagement-digest-form > label:not(.digest-consent) {
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.engagement-digest-form input[type="email"],
.engagement-digest-form select {
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: #ffffff;
  width: 100%;
  min-height: 46px;
  color: #0b1d3a;
  padding: 10px 12px;
  font: 15px/1.4 Inter, Arial, sans-serif;
}

.engagement-digest-form input:focus-visible,
.engagement-digest-form select:focus-visible,
.engagement-digest-form button:focus-visible {
  outline: 3px solid #86d4c8;
  outline-offset: 2px;
}

.engagement-digest-form .digest-consent {
  color: #d6e0eb;
  align-items: flex-start;
  gap: 10px;
  margin: 8px 0;
  font-size: 12px;
  line-height: 1.5;
  display: flex;
}

.engagement-digest-form .digest-consent input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.engagement-digest-form button {
  border: 0;
  background: #ffffff;
  min-height: 46px;
  color: #0b1d3a;
  cursor: pointer;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 850;
}

.engagement-digest-form button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.engagement-digest-form-status {
  min-height: 20px;
  color: #ffffff;
  margin: 12px 0 0;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.5;
}

.digest-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

/* Pills and genuinely circular indicators keep their semantic shape. */
.proof-status,
.updates-meta span,
.hp-page .hp-tag-row i,
.control-header nav span,
.route-tier,
.route-status,
.route-protected,
.route-source,
.route-source-missing,
.status-dot,
.tag-row i,
.architecture-header nav span,
.architecture-layer-grid code,
.architecture-audience-list b,
.budget-category-bars i,
.page-jump-progress,
.control-score-track {
  border-radius: 999px;
}

.decision-scatter-visual b,
.option-kicker span,
.legal-grid li > span {
  border-radius: 50%;
}

/* Give the final content block a deliberate pause before the digest and footer. */
main + .engagement-band {
  margin-top: 64px;
}

@media (max-width: 720px) {
  main + .engagement-band {
    margin-top: 40px;
  }

  /* Keep the mobile guide as the approved compact Ask plus logo button. */
  .bt-site-guide-launcher {
    width: auto;
    min-width: 0;
    height: 46px;
    min-height: 46px;
    gap: 8px;
    padding: 0 11px 0 13px;
    border-radius: 4px;
    box-shadow: none;
  }

  .bt-site-guide-launcher-label {
    clip: auto;
    white-space: normal;
    width: auto;
    height: auto;
    margin: 0;
    position: static;
    overflow: visible;
  }

  .bt-site-guide-launcher-logo {
    width: 50px !important;
    height: 22px !important;
  }

  .engagement-digest-form-shell {
    max-width: none;
    padding: 16px;
  }
}

/* Final art direction and compact interest-page header. */
.tool-library-hero figure {
  background: #bee2ee;
}

.tool-library-hero figcaption,
.aud-hero-image figcaption {
  display: none !important;
}

.aud-hero-leaseholder { background: #a6ceff !important; }
.aud-hero-buying { background: #92b7bf !important; }
.aud-hero-product { background: #5b6376 !important; }
.aud-hero-resident { background: #2e5191 !important; }

.bt-compact-header-page .bt-public-desktop-nav,
.bt-compact-header-page .bt-public-login {
  display: none !important;
}

.bt-compact-header-page .bt-public-actions {
  margin-left: auto;
}

.bt-compact-header-page .bt-public-mobile-nav {
  display: block;
}
