/* =========================================================================
   Public house landing page — global chrome.
   Extracted from templates/public_house.html so section <style> blocks don't
   re-import fonts / re-declare resets on every full-page section. Each
   section still keeps its own layout CSS inline.
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding: 0;
  background: #faf7f1;
  color: #1e1e1e;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  container-type: inline-size;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* --- Public Phone Canvas for Desktop & Tablet Viewports (> 640px) --- */
.public-phone-stage,
.public-phone-device,
.public-phone-screen {
  margin: 0;
  padding: 0;
}

@media (max-width: 640px) {
  .public-phone-stage,
  .public-phone-device,
  .public-phone-screen {
    display: contents;
  }
  .public-phone-speaker {
    display: none;
  }
}

@media screen and (min-width: 641px) {
  /* =========================================================================
     1. CONTRACTOR PREVIEW MODE (SIMULATED 420px PHONE CHASSIS ON DARK VOID)
     ========================================================================= */
  body[data-viewport-mode="chassis"] {
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    background: radial-gradient(circle at 50% 20%, #172436 0%, #09101a 100%) !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
  }
  body[data-viewport-mode="chassis"] .public-phone-stage {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: calc(100% - 40px);
    padding: clamp(8px, 1.8vh, 20px) 16px;
    box-sizing: border-box;
    overflow: hidden;
  }
  body[data-viewport-mode="chassis"] .public-phone-device {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: 420px;
    height: min(860px, calc(100vh - 64px));
    height: min(860px, calc(100dvh - 64px));
    border: 11px solid #1e293b;
    border-radius: 46px;
    background: #faf7f1;
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.12),
      0 24px 64px -12px rgba(0, 0, 0, 0.75),
      0 10px 24px -6px rgba(0, 0, 0, 0.45);
    overflow: hidden;
  }
  body[data-viewport-mode="chassis"] .public-phone-speaker {
    position: absolute;
    top: 9px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 16px;
    background: #000000;
    border-radius: 12px;
    z-index: 10000;
    pointer-events: none;
    box-shadow: 0 0 1px rgba(255, 255, 255, 0.2);
  }
  body[data-viewport-mode="chassis"] .public-phone-screen {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    overflow-x: hidden;
    background: #faf7f1;
    border-radius: 34px;
    padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px));
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    display: block;
    box-sizing: border-box;
  }
  body[data-viewport-mode="chassis"] .public-phone-screen::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  /* Fixed sticky Call / Text action bar firmly anchored to the device frame */
  body[data-viewport-mode="chassis"] .public-phone-device .mobile-action-bar {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    background: #0d2140 !important;
    border-bottom-left-radius: 34px !important;
    border-bottom-right-radius: 34px !important;
    overflow: hidden !important;
    box-shadow: 0 -6px 22px rgba(0, 0, 0, 0.22) !important;
    display: flex !important;
    flex-direction: column !important;
  }
  body[data-viewport-mode="chassis"] .public-phone-device .roof-ai-preparation {
    position: absolute !important;
    inset: 0 !important;
    border-radius: 34px !important;
    max-width: 100% !important;
    max-height: 100% !important;
  }
  body[data-viewport-mode="chassis"] .public-phone-device .lead-delivery-prompt {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    border-radius: 34px !important;
  }

  /* =========================================================================
     2. HOMEOWNER PUBLIC VIEW (CLEAN TABLET / IPAD WIDTH CONSTRAINED)
     ========================================================================= */
  body:not([data-viewport-mode="chassis"]),
  body[data-viewport-mode="live"] {
    background-color: #f3ede4 !important;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;
  }
  body:not([data-viewport-mode="chassis"]) .public-phone-stage,
  body[data-viewport-mode="live"] .public-phone-stage {
    display: block;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 0;
    margin: 0;
    background: transparent;
  }
  body:not([data-viewport-mode="chassis"]) .public-phone-device,
  body[data-viewport-mode="live"] .public-phone-device {
    position: relative;
    width: 100%;
    max-width: 768px;
    margin: 0 auto;
    min-height: 100vh;
    min-height: 100dvh;
    height: auto;
    border: none;
    border-radius: 0;
    background: #faf7f1;
    box-shadow: 0 0 36px rgba(0, 0, 0, 0.07);
    overflow: visible;
  }
  body:not([data-viewport-mode="chassis"]) .public-phone-speaker,
  body[data-viewport-mode="live"] .public-phone-speaker {
    display: none !important;
  }
  body:not([data-viewport-mode="chassis"]) .public-phone-screen,
  body[data-viewport-mode="live"] .public-phone-screen {
    position: static;
    inset: auto;
    display: block;
    width: 100%;
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible;
    border-radius: 0;
    padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px));
  }
  body:not([data-viewport-mode="chassis"]) .public-phone-device .mobile-action-bar,
  body[data-viewport-mode="live"] .public-phone-device .mobile-action-bar {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 768px !important;
    z-index: 9999 !important;
    background: #0d2140 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    box-shadow: 0 -6px 22px rgba(0, 0, 0, 0.22) !important;
    display: flex !important;
    flex-direction: column !important;
  }
  body:not([data-viewport-mode="chassis"]) .public-phone-device .roof-ai-preparation,
  body[data-viewport-mode="live"] .public-phone-device .roof-ai-preparation {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    max-width: 768px !important;
    margin: 0 auto !important;
    border-radius: 0 !important;
  }
  body:not([data-viewport-mode="chassis"]) .public-phone-device .lead-delivery-prompt,
  body[data-viewport-mode="live"] .public-phone-device .lead-delivery-prompt {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    max-width: 768px !important;
    margin: 0 auto !important;
    border-radius: 0 !important;
  }

  /* Shared Action Bar styles */
  .public-phone-device .mobile-action-bar {
    display: flex !important;
    flex-direction: column !important;
  }
  .public-phone-device .mab-book {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 50px !important;
    background: #e8a838 !important;
    color: #0d2140 !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 800 !important;
    font-size: 16px !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(13, 33, 64, 0.22) !important;
  }
  .public-phone-device .mab-row {
    display: grid !important;
    width: 100% !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  }
  .public-phone-device .mab-row-single {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .public-phone-device .mab-row a {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 0 !important;
    height: 64px !important;
    padding: 8px 12px !important;
    text-decoration: none !important;
    line-height: 1.1 !important;
  }
  .public-phone-device .mab-call {
    background: #0d2140 !important;
    color: #ffffff !important;
    border-right: 1px solid rgba(232, 168, 56, 0.32) !important;
  }
  .public-phone-device .mab-row-single .mab-call {
    border-right: 0 !important;
  }
  .public-phone-device .mab-call .mab-label {
    max-width: 100% !important;
    font-size: 10px !important;
    letter-spacing: 0.08em !important;
    color: #e8a838 !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    margin-bottom: 3px !important;
    text-align: center !important;
    line-height: 1.15 !important;
  }
  .public-phone-device .mab-call .mab-value {
    font-family: 'Archivo Black', 'Inter', sans-serif !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
    text-align: center !important;
    color: #ffffff !important;
  }
  .public-phone-device .mab-text {
    background: #e8a838 !important;
    color: #0d2140 !important;
  }
  .public-phone-device .mab-text .mab-label {
    max-width: 100% !important;
    font-size: 14px !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    font-weight: 800 !important;
    margin-bottom: 0 !important;
    text-align: center !important;
    line-height: 1.15 !important;
    color: #0d2140 !important;
  }

  /* Roof AI Preparation Loading Overlay base styles */
  .public-phone-device .roof-ai-preparation {
    position: absolute !important;
    inset: 0 !important;
    z-index: 9000 !important;
    padding: 36px 20px !important;
    box-sizing: border-box !important;
    background:
      radial-gradient(circle at 50% 18%, rgba(232, 168, 56, 0.18), transparent 36%),
      linear-gradient(145deg, #07172d, #0d2140 62%, #07172d) !important;
    color: #ffffff !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }
  .public-phone-device .roof-ai-preparation.is-visible {
    display: flex !important;
  }
  .public-phone-device .roof-ai-preparation[hidden] {
    display: none !important;
  }
  .public-phone-device .roof-ai-fallback-notice {
    position: absolute !important;
    top: 24px !important;
    left: 50% !important;
    width: calc(100% - 32px) !important;
    transform: translateX(-50%) !important;
    z-index: 9500 !important;
    box-sizing: border-box !important;
  }
  .public-phone-device .lead-delivery-prompt {
    position: absolute !important;
    inset: 0 !important;
    z-index: 9000 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding: 18px 18px 132px !important;
  }
  .public-phone-device .lead-delivery-prompt[hidden] {
    display: none !important;
  }
  .public-phone-device .lead-delivery-panel {
    max-height: 100% !important;
    overflow-y: auto !important;
  }
  .public-phone-screen .scroll-progress {
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 3px !important;
    margin-bottom: -3px !important;
    max-width: 100% !important;
    z-index: 9998 !important;
    pointer-events: none !important;
    border-top-left-radius: 34px !important;
    border-top-right-radius: 34px !important;
  }

  /* ----------------------------------------------------
     FORCE ALL SECTIONS TO 100% SINGLE-COLUMN MOBILE LAYOUT
     ---------------------------------------------------- */
  .public-phone-screen .nav-dots,
  .public-phone-screen .nav-chips--sections {
    display: none !important;
  }

  /* Section Roots */
  .public-phone-screen .s1-root,
  .public-phone-screen .s2-root,
  .public-phone-screen .s3-root,
  .public-phone-screen .s4-root,
  .public-phone-screen .s5-root,
  .public-phone-screen .s6-root,
  .public-phone-screen .estimate-book-section,
  .public-phone-screen .tuneup-book-root {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    display: block !important;
  }

  /* Section Bands & Headers */
  .public-phone-screen .s1-band,
  .public-phone-screen .s2-topband,
  .public-phone-screen .s3-topband,
  .public-phone-screen .s4-topband,
  .public-phone-screen .s5-topband {
    padding: 10px 14px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 3px !important;
    text-align: center !important;
    grid-template-columns: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .public-phone-screen .s2-topband::before,
  .public-phone-screen .s2-topband::after,
  .public-phone-screen .s3-topband::before,
  .public-phone-screen .s3-topband::after,
  .public-phone-screen .s4-topband::before,
  .public-phone-screen .s4-topband::after,
  .public-phone-screen .s5-topband::before,
  .public-phone-screen .s5-topband::after {
    display: none !important;
  }

  /* Section 1 Hero */
  .public-phone-screen .s1-stage {
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    max-width: 100% !important;
    gap: 0 !important;
    grid-template-columns: none !important;
  }
  .public-phone-screen .s1-photo-wrap {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 16 / 10 !important;
    background: #08172d !important;
    overflow: hidden !important;
    border-bottom: 1px solid rgba(232, 168, 56, 0.5) !important;
    max-height: 260px !important;
    min-height: 0 !important;
    order: -1 !important;
  }
  .public-phone-screen .s1-photo {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }
  .public-phone-screen .s1-left {
    max-width: 100% !important;
    width: 100% !important;
    padding: 20px 16px 12px !important;
    order: 1 !important;
    box-sizing: border-box !important;
  }
  .public-phone-screen .s1-right {
    padding-top: 0 !important;
    width: 100% !important;
    order: -1 !important;
  }
  .public-phone-screen .s1-reassurance--mobile {
    display: block !important;
  }
  .public-phone-screen .s1-reassurance--desktop {
    display: none !important;
  }
  .public-phone-screen .s1-cta-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    grid-template-columns: none !important;
  }
  .public-phone-screen .s1-phone {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    font-size: 22px !important;
    line-height: 1.15 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  /* Section 2 Hero Photos & Story */
  .public-phone-screen .s2-hero {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 2px !important;
    grid-template-columns: none !important;
  }
  .public-phone-screen .s2-hero-panel {
    position: relative !important;
    width: 100% !important;
    height: 190px !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }
  .public-phone-screen .s2-prose-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
    width: 100% !important;
  }
  .public-phone-screen .s2-meta,
  .public-phone-screen .s2-yearstamp {
    position: static !important;
    align-self: flex-start !important;
    text-align: left !important;
    margin: 4px 0 10px 0 !important;
  }
  .public-phone-screen .s2-sep {
    width: 64px !important;
    margin-bottom: 20px !important;
  }
  .public-phone-screen .s2-sep::after {
    display: none !important;
  }

  /* Section Bodies & Wraps */
  .public-phone-screen .s2-body,
  .public-phone-screen .s3-body,
  .public-phone-screen .s4-body,
  .public-phone-screen .s5-body,
  .public-phone-screen .s3-wrap,
  .public-phone-screen .s4-wrap,
  .public-phone-screen .s5-wrap,
  .public-phone-screen .s6-wrap,
  .public-phone-screen .estimate-book-inner,
  .public-phone-screen .tuneup-book-inner {
    padding: 20px 16px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
  }
  .public-phone-screen .s2-body::before,
  .public-phone-screen .s3-body::before,
  .public-phone-screen .s4-body::before,
  .public-phone-screen .s5-body::before,
  .public-phone-screen .s5-pagemark {
    display: none !important;
  }

  /* Section 2 Prose & Dropcap Fix */
  .public-phone-screen .s2-prose {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 8px !important;
    margin-top: 24px !important;
    max-width: 100% !important;
    grid-template-columns: none !important;
  }
  .public-phone-screen .s2-prose-kicker {
    font-size: 11px !important;
    letter-spacing: 0.05em !important;
    padding-top: 4px !important;
    margin-bottom: 4px !important;
  }
  .public-phone-screen .s2-prose p {
    font-size: 14.5px !important;
    line-height: 1.6 !important;
    max-width: 100% !important;
  }
  .public-phone-screen .s2-prose p::first-letter,
  .public-phone-screen .s3-body::first-letter {
    float: none !important;
    font-size: inherit !important;
    line-height: inherit !important;
    padding: 0 !important;
    margin: 0 !important;
    font-weight: inherit !important;
    color: inherit !important;
    font-family: inherit !important;
    display: inline !important;
  }

  /* Option Comparison Menu & Matrix (Single Column on Phone) */
  .public-phone-screen .s2-option-menu {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-top: 28px !important;
  }
  .public-phone-screen .s2-option-head {
    margin-bottom: 18px !important;
  }
  .public-phone-screen .s2-option-title {
    font-size: 22px !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em !important;
  }
  .public-phone-screen .s2-option-groups {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 20px !important;
    grid-template-columns: none !important;
  }
  .public-phone-screen .s2-option-group,
  .public-phone-screen .s2-tier {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
  }
  .public-phone-screen .s2-option-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 14px 16px !important;
    min-height: 0 !important;
    box-sizing: border-box !important;
    grid-template-columns: none !important;
  }
  .public-phone-screen .s2-option-price {
    text-align: left !important;
    width: 100% !important;
    margin-top: 4px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
  }
  .public-phone-screen .s2-option-price strong {
    font-size: 20px !important;
    line-height: 1.1 !important;
    color: var(--navy) !important;
  }
  .public-phone-screen .s2-option-item.is-current-system-match .s2-option-price strong {
    color: var(--gold-bright) !important;
  }
  .public-phone-screen .s2-option-price span {
    font-size: 11.5px !important;
    line-height: 1.3 !important;
    margin-top: 0 !important;
  }
  .public-phone-screen .s2-option-name {
    font-size: 16px !important;
    line-height: 1.25 !important;
  }
  .public-phone-screen .s2-option-description {
    font-size: 13px !important;
    line-height: 1.4 !important;
    margin-top: 3px !important;
  }
  .public-phone-screen .s2-option-badge {
    margin-bottom: 2px !important;
    font-size: 9px !important;
  }
  .public-phone-screen .s2-hybrid-plan {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100% !important;
    padding: 18px 16px !important;
    box-sizing: border-box !important;
    grid-template-columns: none !important;
    gap: 14px !important;
  }
  .public-phone-screen .s2-hybrid-plan-price {
    min-width: 0 !important;
    text-align: left !important;
    width: 100% !important;
  }

  /* The Math Of Waiting (Section 3) */
  .public-phone-screen .s3-math {
    padding: 22px 16px 22px 22px !important;
    margin-bottom: 24px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .public-phone-screen .s3-math::before {
    width: 6px !important;
  }
  .public-phone-screen .s3-math-inner {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    align-items: flex-start !important;
    width: 100% !important;
    grid-template-columns: none !important;
  }
  .public-phone-screen .s3-math-label {
    font-size: 10.5px !important;
    letter-spacing: 0.24em !important;
    margin-bottom: 8px !important;
  }
  .public-phone-screen .s3-math-headline {
    font-size: 22px !important;
    line-height: 1.25 !important;
    text-wrap: balance !important;
    max-width: 100% !important;
    margin: 0 0 10px !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }
  .public-phone-screen .s3-math-body {
    font-size: 13.5px !important;
    line-height: 1.5 !important;
    max-width: 100% !important;
  }
  .public-phone-screen .s3-math-badge {
    border-left: none !important;
    border-top: 1px solid rgba(232, 168, 56, 0.3) !important;
    padding: 12px 0 0 0 !important;
    min-width: 0 !important;
    text-align: left !important;
    width: 100% !important;
    display: flex !important;
    align-items: baseline !important;
    gap: 10px !important;
  }
  .public-phone-screen .s3-math-badge .s3-badge-num {
    font-size: 36px !important;
    line-height: 1 !important;
  }

  /* Section 3 & 4 Editorial Intros */
  .public-phone-screen .s3-intro,
  .public-phone-screen .s4-intro-row,
  .public-phone-screen .s4-dyk {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    grid-template-columns: none !important;
    gap: 14px !important;
  }
  .public-phone-screen .s3-intro-meta,
  .public-phone-screen .s4-meta {
    width: 100% !important;
    max-width: 100% !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(13, 33, 64, 0.14) !important;
    padding-bottom: 14px !important;
    margin-bottom: 4px !important;
    box-sizing: border-box !important;
  }
  .public-phone-screen .s4-intro {
    font-size: 15px !important;
    line-height: 1.6 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .public-phone-screen .s3-item,
  .public-phone-screen .s4-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    border: 1px solid rgba(13, 33, 64, 0.14) !important;
    padding: 20px 16px !important;
  }
  .public-phone-screen .s4-dyk {
    padding: 20px 16px 20px 22px !important;
    margin-bottom: 28px !important;
  }
  .public-phone-screen .s4-dyk::before {
    width: 6px !important;
  }
  .public-phone-screen .s4-dyk::after {
    display: none !important;
  }
  .public-phone-screen .s4-dyk-label {
    font-size: 10.5px !important;
    letter-spacing: 0.22em !important;
  }
  .public-phone-screen .s4-dyk-body {
    font-size: 15px !important;
    line-height: 1.55 !important;
    max-width: 100% !important;
  }

  /* CTA Boxes (Sections 1, 2, 3, 4, 5) */
  .public-phone-screen .s1-cta,
  .public-phone-screen .s2-cta,
  .public-phone-screen .s3-cta,
  .public-phone-screen .s4-cta,
  .public-phone-screen .s5-cta {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
    padding: 22px 16px 22px 22px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-inline: 0 !important;
    grid-template-columns: none !important;
    border-radius: 4px !important;
    flex-wrap: wrap !important;
  }
  .public-phone-screen .s2-cta::before,
  .public-phone-screen .s3-cta::before,
  .public-phone-screen .s4-cta::before,
  .public-phone-screen .s5-cta::before {
    width: 6px !important;
  }
  .public-phone-screen .s3-cta-label,
  .public-phone-screen .s4-cta-eyebrow,
  .public-phone-screen .s5-cta-eyebrow {
    font-size: 10px !important;
    letter-spacing: 0.22em !important;
  }
  .public-phone-screen .s2-cta-title,
  .public-phone-screen .s4-cta-title,
  .public-phone-screen .s5-cta-title {
    font-size: 22px !important;
    line-height: 1.2 !important;
    margin-bottom: 6px !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }
  .public-phone-screen .s2-cta-sub,
  .public-phone-screen .s4-cta-sub,
  .public-phone-screen .s5-cta-sub {
    font-size: 13px !important;
    margin-bottom: 10px !important;
    word-break: break-word !important;
  }
  .public-phone-screen .s1-cta-phone,
  .public-phone-screen .s2-cta-phone,
  .public-phone-screen .s3-cta-phone,
  .public-phone-screen .s4-cta-phone,
  .public-phone-screen .s5-cta-phone {
    font-size: clamp(18px, 5vw, 24px) !important;
    line-height: 1.2 !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 12px !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }
  .public-phone-screen .s3-cta-phone-action,
  .public-phone-screen .s3-cta-phone-number,
  .public-phone-screen .s4-cta-phone-action,
  .public-phone-screen .s4-cta-phone-number,
  .public-phone-screen .s5-cta-phone-action,
  .public-phone-screen .s5-cta-phone-number {
    display: inline !important;
  }
  .public-phone-screen .s3-cta-web,
  .public-phone-screen .s4-cta-site,
  .public-phone-screen .s5-cta-site {
    text-align: left !important;
    font-size: 13px !important;
    margin-top: 4px !important;
  }

  /* Section 5 Steps & Process */
  .public-phone-screen .s5-steps {
    padding: 0 !important;
    margin: 24px 0 0 !important;
    list-style: none !important;
  }
  .s5-steps::before,
  .public-phone-screen .s5-steps::before {
    display: none !important;
  }
  .public-phone-screen .s5-step {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    padding: 20px 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    grid-template-columns: none !important;
  }
  .public-phone-screen .s5-step + .s5-step {
    border-top: 1px solid rgba(13, 33, 64, 0.08) !important;
  }
  .public-phone-screen .s5-step-num {
    font-family: 'Archivo Black', 'Inter', sans-serif !important;
    font-size: 32px !important;
    line-height: 1.15 !important;
    letter-spacing: -0.02em !important;
    color: var(--gold) !important;
    margin: 0 !important;
  }
  .s5-step-num::after,
  .public-phone-screen .s5-step-num::after {
    display: none !important;
  }
  .public-phone-screen .s5-step-body {
    padding: 0 !important;
    min-width: 0 !important;
    width: 100% !important;
  }
  .public-phone-screen .s5-step-title {
    font-family: 'Archivo Black', 'Inter', sans-serif !important;
    font-size: 18px !important;
    line-height: 1.25 !important;
    color: var(--navy) !important;
    margin: 0 0 8px !important;
    word-break: break-word !important;
    text-wrap: balance !important;
  }
  .public-phone-screen .s5-step-desc {
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
    color: var(--ink) !important;
    margin: 0 !important;
    word-break: break-word !important;
    max-width: none !important;
  }
  .public-phone-screen .s5-cta::after {
    width: 6px !important;
  }
  .public-phone-screen .s5-cta-edge {
    display: none !important;
  }
  .public-phone-screen .s5-cta-body {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  .public-phone-screen .s5-cta-text {
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
  }

  /* Footer Links */
  .public-phone-screen .s5-footer,
  .public-phone-screen .s6-footer {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding-bottom: 24px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .public-phone-screen .s5-footer-links,
  .public-phone-screen .s6-footer-links {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px 12px !important;
  }
  .public-phone-screen .s5-footer-links a,
  .public-phone-screen .s6-footer-links a {
    font-size: 11px !important;
  }

  /* Section 5 Hero block */
  .public-phone-screen .s5-hero {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    grid-template-columns: none !important;
    gap: 16px !important;
    align-items: flex-start !important;
    padding-bottom: 24px !important;
  }
  .public-phone-screen .s5-headline {
    font-size: 26px !important;
    line-height: 1.15 !important;
    letter-spacing: -0.01em !important;
    width: 100% !important;
    margin: 4px 0 0 !important;
  }
  .public-phone-screen .s5-headline span {
    display: inline !important;
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .public-phone-screen .s5-copy {
    width: 100% !important;
    max-width: 100% !important;
    padding-bottom: 0 !important;
  }
  .public-phone-screen .s5-creds-grid {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    grid-template-columns: none !important;
    gap: 12px !important;
  }

  /* All Grids & Multi-column layouts forced to 1-column flex */
  .public-phone-screen .s2-review-grid,
  .public-phone-screen .s2-checklist-grid,
  .public-phone-screen .s2-option-menu,
  .public-phone-screen .s2-tier,
  .public-phone-screen .s2-tier-grid,
  .public-phone-screen .s3-grid,
  .public-phone-screen .s3-tier-grid,
  .public-phone-screen .s4-grid,
  .public-phone-screen .s5-grid,
  .public-phone-screen .eb-grid,
  .public-phone-screen .eb-row,
  .public-phone-screen .tuneup-book-grid {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: none !important;
    gap: 16px !important;
    border: none !important;
    box-sizing: border-box !important;
  }
  .public-phone-screen .s3-aside,
  .public-phone-screen .s3-main,
  .public-phone-screen .s3-card,
  .public-phone-screen .s4-aside,
  .public-phone-screen .s4-main,
  .public-phone-screen .s4-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Typography & Wrapping */
  .public-phone-screen .s1-address,
  .public-phone-screen .s2-address {
    font-size: 26px !important;
    line-height: 1.15 !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }
  .public-phone-screen .s1-headline,
  .public-phone-screen .s2-headline,
  .public-phone-screen .s3-headline,
  .public-phone-screen .s4-headline,
  .public-phone-screen .s2-review-headline {
    font-size: 22px !important;
    line-height: 1.2 !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }
  .public-phone-screen .s2-subhead,
  .public-phone-screen .s3-subhead,
  .public-phone-screen .s4-subhead,
  .public-phone-screen .s5-subhead {
    font-size: 14px !important;
    line-height: 1.45 !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }
  .public-phone-screen .s2-prose p,
  .public-phone-screen .s3-prose p,
  .public-phone-screen .s4-prose p,
  .public-phone-screen .s5-prose p {
    font-size: 14.5px !important;
    line-height: 1.55 !important;
  }

  /* CTA Boxes */
  .public-phone-screen .s1-cta,
  .public-phone-screen .s2-cta,
  .public-phone-screen .s3-cta,
  .public-phone-screen .s4-cta,
  .public-phone-screen .s5-cta {
    padding: 20px 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-inline: 0 !important;
  }
  .public-phone-screen .s1-cta-phone,
  .public-phone-screen .s2-cta-phone,
  .public-phone-screen .s3-cta-phone,
  .public-phone-screen .s4-cta-phone,
  .public-phone-screen .s5-cta-phone {
    font-size: clamp(18px, 5vw, 24px) !important;
    word-break: break-word !important;
  }
}

@media (max-width: 640px) {
  .public-phone-screen .s2-option-groups,
  .public-phone-screen .s3-grid,
  .public-phone-screen .s4-grid,
  .public-phone-screen .s4-cta,
  .public-phone-screen .s5-cta,
  .public-phone-screen .s5-footer {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    grid-template-columns: none !important;
  }

  .public-phone-screen .s2-option-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    grid-template-columns: none !important;
  }
  .public-phone-screen .s2-option-price {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
    width: 100% !important;
    min-width: 0 !important;
    text-align: left !important;
  }
  .public-phone-screen .s2-option-badge {
    margin-bottom: 2px !important;
  }
  .public-phone-screen .s3-math-headline,
  .s3-math-headline {
    font-size: 22px !important;
    line-height: 1.25 !important;
    text-wrap: balance !important;
  }
  .public-phone-screen .s2-option-price span {
    margin-top: 0 !important;
  }
  .public-phone-screen .s5-cta::after {
    width: 6px !important;
  }
  .public-phone-screen .s5-cta-edge {
    display: none !important;
  }
  .public-phone-screen .s5-cta-body,
  .public-phone-screen .s5-footer {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .public-phone-screen .s2-prose p::first-letter,
  .public-phone-screen .s3-body::first-letter {
    float: none !important;
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
    font: inherit !important;
    color: inherit !important;
  }
}

/* Keep the homeowner page branded without the over-tracked editorial label feel. */
.s1-band-name,
.s2-hero-meta,
.s2-prose-kicker,
.s2-review-kicker,
.s2-cta-phone-label,
.s3-topband,
.s3-math-label,
.s3-cta-label,
.s3-cta-web,
.s4-band,
.s4-cta-eyebrow,
.s4-dyk-label,
.s5-topband,
.s5-pagemark,
.s5-cred-tag,
.s5-founder-eyebrow,
.s5-stat-label,
.s5-mat-label,
.s5-cta-phone-kicker {
  letter-spacing: 0.08em !important;
}

/* --- Fixed page-jump dots on the right edge (desktop) --- */
.nav-dots {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 1000;
}
.nav-dots a {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #0d2140;
  box-shadow: 0 0 0 1.5px rgba(250, 247, 241, 0.9), 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  display: block;
}
.nav-dots a:hover,
.nav-dots a.is-active {
  background: #e8a838;
  transform: scale(1.4);
  box-shadow: 0 0 0 1.5px #0d2140, 0 2px 6px rgba(0, 0, 0, 0.2);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #e8a838, #f4b948);
  z-index: 1001;
  transition: width 0.08s linear;
}

/* --- Mobile chrome: labeled jump chips + persistent bottom action bar --- */
.nav-chips { display: none; }
.mobile-action-bar { display: none; }
.lead-delivery-prompt[hidden] { display: none; }
.lead-delivery-prompt {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 18px;
  background: rgba(8, 23, 45, 0.42);
}
.lead-delivery-panel {
  width: min(100%, 440px);
  background: #faf7f1;
  color: #0d2140;
  border: 2px solid #e8a838;
  border-radius: 8px;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.28);
  padding: 20px;
}
.lead-delivery-kicker {
  margin: 0 0 8px;
  color: #9a6814;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lead-delivery-panel h2 {
  margin: 0 0 8px;
  font-family: 'Archivo Black', 'Inter', sans-serif;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: 0;
}
.lead-delivery-panel p {
  margin: 0 0 16px;
  color: #3d4758;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 700;
}
.lead-delivery-form {
  display: grid;
  gap: 10px;
}
.lead-delivery-form label {
  display: grid;
  gap: 6px;
  color: #3d4758;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.lead-delivery-form input {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(13, 33, 64, 0.18);
  border-radius: 6px;
  background: #fffdfa;
  color: #0d2140;
  font: 800 18px/1 'Inter', sans-serif;
  letter-spacing: 0;
  padding: 0 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.lead-delivery-form input:focus,
.lead-delivery-form input:focus-visible {
  outline: none;
  border-color: #0b69c7;
  box-shadow: 0 0 0 3px #b4d7ff;
}
.lead-delivery-form button,
.lead-delivery-dismiss {
  min-height: 48px;
  border: 0;
  border-radius: 6px;
  font: 900 15px/1 'Inter', sans-serif;
  letter-spacing: 0;
  cursor: pointer;
}
.lead-delivery-form button {
  background: #e8a838;
  color: #0d2140;
}
.lead-delivery-dismiss {
  width: 100%;
  margin-top: 10px;
  background: transparent;
  color: #3d4758;
}

/* Kill sticky nav-chips entirely on phones: overflows horizontally, hides
   the Call chip, tap targets fail 44x44, and it occludes every section's
   gold topband. The persistent bottom action bar covers the same jobs.
   The estimate landing gives phones its jump affordance in the hero card
   instead (.s1-estimate-jump), so nothing here needs resurrecting. */
@media (max-width: 640px) {
  .nav-chips { display: none !important; }
  body { padding-top: 0 !important; }
}

/* --- Labeled section bar (estimate landing only) ---------------------------
   The page is ~11,000px tall across six sections. A rail of six unlabeled
   dots tells a homeowner nothing about where their pricing lives, so on
   viewports with room for words the dots are replaced by named jumps plus a
   standing call button. Revealed on scroll, same as the phone-width chips.
   Rules that could reach a shared element are gated on body.has-section-nav:
   this stylesheet is also served to the tune-up landing, which has no labeled
   bar and still relies on the dot rail. */
@media (min-width: 721px) {
  .nav-chips--sections {
    display: flex;
    align-items: center;
    gap: 3px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 54px;
    padding: 0 20px;
    background: rgba(13, 33, 64, 0.97);
    -webkit-backdrop-filter: saturate(1.3) blur(8px);
    backdrop-filter: saturate(1.3) blur(8px);
    border-bottom: 2px solid #e8a838;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-100%);
    transition: opacity 0.22s ease, transform 0.22s ease;
  }
  body.chips-revealed .nav-chips--sections {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav-chips--sections .nav-chips-address {
    flex: 0 1 auto;
    min-width: 0;
    margin-right: auto;
    padding-right: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
  .nav-chips--sections a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 12px;
    border-radius: 3px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s ease, background 0.15s ease;
  }
  .nav-chips--sections a:hover,
  .nav-chips--sections a:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.11);
  }
  .nav-chips--sections a.is-active {
    color: #0d2140;
    background: #e8a838;
    font-weight: 800;
  }
  .nav-chips--sections .nav-chips-cta {
    margin-left: 12px;
    background: #e8a838;
    color: #0d2140;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .nav-chips--sections .nav-chips-cta:hover,
  .nav-chips--sections .nav-chips-cta:focus-visible {
    background: #f4b948;
    color: #0d2140;
  }
  /* One nav is enough: the labeled bar retires the unlabeled dot rail. */
  .has-section-nav .nav-dots { display: none; }
  /* Anchor jumps must clear the fixed bar. */
  .has-section-nav section[id^="page-"],
  .has-section-nav #your-options { scroll-margin-top: 66px; }
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (max-width: 720px) {
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  /* On mobile, unlabeled right-edge dots are cryptic — swap for chips. */
  .nav-dots { display: none; }

  .nav-chips {
    display: flex;
    position: fixed;
    top: 3px;
    left: 0;
    right: 0;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(250, 247, 241, 0.94);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid rgba(13, 33, 64, 0.1);
    overflow-x: auto;
    scrollbar-width: none;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  /* Only reveal chips after the user has scrolled past the personalized hero,
     so they don't cover the "your house" moment on arrival. Toggled in JS. */
  body.chips-revealed .nav-chips {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav-chips::-webkit-scrollbar { display: none; }

  .nav-chips a {
    flex: 0 0 auto;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(13, 33, 64, 0.08);
    color: #0d2140;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
  }
  .nav-chips a.is-active {
    background: #0d2140;
    color: #f4b948;
  }
  .nav-chips a.chip-call {
    background: #e8a838;
    color: #0d2140;
  }
  .nav-chips a.chip-call.is-active {
    background: #0d2140;
    color: #f4b948;
  }
}

/* --- Persistent Bottom Action Bar (Base Component) --- */
.mobile-action-bar {
  display: none;
  flex-direction: column;
  background: #0d2140;
  z-index: 999;
  box-shadow: 0 -6px 22px rgba(0, 0, 0, 0.22);
  align-items: stretch;
}
.mab-book {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  background: #e8a838;
  color: #0d2140;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(15px, 4.4vw, 17px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid rgba(13, 33, 64, 0.22);
}
.mab-row {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.mab-row-single {
  grid-template-columns: minmax(0, 1fr);
}
.mab-row a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 64px;
  padding: 8px 12px;
  text-decoration: none;
  line-height: 1.1;
}
.mab-call {
  background: #0d2140;
  color: #ffffff;
  border-right: 1px solid rgba(232, 168, 56, 0.32);
}
.mab-row-single .mab-call {
  border-right: 0;
}
.mab-call .mab-label {
  max-width: 100%;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #e8a838;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 3px;
  text-align: center;
  line-height: 1.15;
  overflow-wrap: break-word;
}
.mab-call .mab-value {
  font-family: 'Archivo Black', 'Inter', sans-serif;
  font-size: clamp(16px, 4.7vw, 19px);
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
  text-align: center;
}
.mab-text {
  background: #e8a838;
  color: #0d2140;
}
.mab-text .mab-label {
  max-width: 100%;
  font-size: clamp(13px, 3.6vw, 15px);
  letter-spacing: 0;
  text-transform: none;
  font-weight: 800;
  margin-bottom: 0;
  text-align: center;
  line-height: 1.15;
  overflow-wrap: break-word;
  white-space: normal;
}
.mab-text .mab-value {
  display: none;
}

@media (max-width: 720px) {
  body {
    padding-bottom: calc(118px + env(safe-area-inset-bottom, 0px));
  }
  .mobile-action-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
}

@media (max-width: 370px) {
  .mab-row a {
    padding-inline: 6px;
  }

  .mab-call .mab-value {
    font-size: 14px;
  }

  .mab-text .mab-label {
    font-size: 12.5px;
  }
}

@media (max-width: 640px) {
  .nav-dots { right: 12px; gap: 10px; }
  .nav-dots a { width: 8px; height: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-progress { transition: none; }
  .nav-chips { transition: none; }
}

/* ============ PRINT / PDF ============ */
@page {
  size: letter;
  margin: 0;
}
@media print {
  html, body {
    background: #faf7f1;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    margin: 0 !important;
    padding: 0 !important;
  }
  .nav-dots,
  .nav-chips,
  .scroll-progress,
  .mobile-action-bar { display: none !important; }

  /* Each section maps to one printed page. Width is locked to letter;
     height is capped at 11in with overflow hidden so any residual
     overflow is trimmed instead of spilling onto a phantom page. Each
     section is responsible, via its own @media print, for actually
     fitting inside that box. */
  section[id^="page-"] {
    width: 8.5in !important;
    height: 11in !important;
    min-height: 0 !important;
    max-height: 11in !important;
    page-break-after: always;
    page-break-inside: avoid;
    break-after: page;
    break-inside: avoid;
    overflow: hidden !important;
    margin: 0 !important;
    box-shadow: none !important;
  }
  section[id^="page-"]:last-of-type {
    page-break-after: auto;
    break-after: auto;
  }

  /* Fast-forward all animations to their end state so print never
     snapshots elements mid-fade-in (many sections animate from
     opacity: 0, and would otherwise print blank). */
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-delay: 0s !important;
    animation-fill-mode: both !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
  }

  /* Sections that toggle visibility via JS classes won't have the
     class applied before print, so force the "visible" end-state. */
  .s2-root .s2-headline-line,
  .s2-root .s2-yearstamp { opacity: 1 !important; transform: none !important; }
  .s3-root .s3-item { opacity: 1 !important; transform: none !important; }
  .s3-root .s3-item::before { width: 64px !important; }
}

.public-offer-unavailable {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 10px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(13, 33, 64, 0.16);
  background: #fffdfa;
  color: #0d2140;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

:where(a, button, summary):focus-visible {
  outline: 3px solid #e8a838;
  outline-offset: 3px;
}

:where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea):focus,
:where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea):focus-visible {
  outline: none !important;
  border-color: #0b69c7 !important;
  box-shadow: 0 0 0 3px #b4d7ff !important;
}

@media (max-width: 720px) {
  :where(
    .cm-btn,
    .cm-final-btn,
    .mab-book,
    .mab-call,
    .mab-text,
    .s1-phone,
    .s1-book-btn,
    .s2-cta,
    .s2-book-btn,
    .s3-cta-phone,
    .s4-cta-phone,
    .s5-cta-phone,
    .tuneup-day,
    .tuneup-window,
    .tuneup-tier,
    .tuneup-submit,
    button,
    input,
    select,
    textarea,
    summary
  ) {
    min-height: 44px;
  }
  :where(
    .cm-btn,
    .cm-final-btn,
    .mab-text,
    .s1-phone,
    .s2-cta,
    .s2-cta-phone,
    .s3-cta,
    .s3-cta-phone,
    .s3-cta-phone-action,
    .s3-cta-phone-number,
    .s4-cta,
    .s4-cta-left,
    .s4-cta-phone,
    .s4-cta-phone-action,
    .s4-cta-phone-number,
    .s5-cta,
    .s5-cta-body,
    .s5-cta-phone-wrap,
    .s5-cta-phone
  ) {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
    min-width: 0;
  }
}

@media (max-width: 340px) {
  .mab-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .mab-call {
    border-right: 0;
    border-bottom: 1px solid rgba(232, 168, 56, 0.32);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
