/* Mobile + usability refinements. Loaded last. Does not change copy, prices, credentials, or the logo file. */
html{overflow-x:hidden;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{overflow-x:hidden;min-width:0}
img,video{max-width:100%;height:auto}
:focus-visible{outline:2px solid #7a6440;outline-offset:3px}
.skip-link:focus,.skip-link:focus-visible{
  position:fixed;left:1rem;top:1rem;z-index:10000;width:auto;height:auto;margin:0;padding:.7rem 1rem;
  clip:auto;overflow:visible;background:#2b2621;color:#f8f6f1;border-radius:8px;
}

/* Sticky/fixed header on all viewports so the menu stays in reach while scrolling */
header.site-header,.site-header{position:fixed!important;top:0;left:0;right:0;width:100%;z-index:1000}

/* Honeypot fields must never appear */
.contact-form label[aria-hidden="true"]{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;overflow:hidden!important}

/* Desktop: collapsed lists stay fully visible (summary hidden) */
@media(min-width:701px){
  details.list-collapse>summary{display:none!important}
  details.list-collapse>ul{display:block!important}
}

/* ---- Phones and small tablets ---- */
@media(max-width:900px){
  body{font-size:16px;line-height:1.55}
  button,a,.button,summary,.menu-toggle,
  .nav-dropdown>button,.nav-cta,.dd-filters button,.dd-more,
  .demo-tabs button,.demo-scenes button,.review-toggle,.add-chip,
  .faq-list summary,.simulator-faq summary,.home-faq summary,
  .list-collapse summary,.mini-nav a{
    min-height:44px;
  }
  .menu-toggle{
    display:flex;flex-direction:column;justify-content:center;align-items:center;
    min-width:44px;min-height:44px;width:44px;height:44px;padding:0;box-sizing:border-box;
    margin-left:auto!important;margin-right:0!important;flex:0 0 44px;
    z-index:1002;background:transparent;border:0;color:inherit;gap:6px
  }
  header.site-header, .site-header{align-items:center;justify-content:flex-start}
  .site-header nav>a,
  .site-header .nav-dropdown>button,
  .site-header .nav-dropdown-menu a,
  .site-header .nav-cta{
    display:flex;align-items:center;min-height:44px;width:100%;box-sizing:border-box;
  }
  .site-header .nav-cta{justify-content:center;margin-top:.5rem!important}
  .site-header .nav-dropdown-menu{position:static;box-shadow:none;padding:.15rem 0 .15rem 1rem;background:transparent}
  .global-footer a{display:inline-flex;align-items:center;min-height:44px}

  /* Readable type; keep the display voice without overflowing a 390px screen */
  .hero h1,.inner-hero h1{font-size:clamp(2.15rem,10vw,2.85rem)!important;line-height:1.08;overflow-wrap:anywhere}
  .section-heading h2,.solutions-lead h2,.contact h2,h2{font-size:clamp(1.85rem,8vw,2.45rem)!important;line-height:1.12}
  .hero-copy,.inner-hero-content>p,.lead,p{overflow-wrap:break-word}

  /* Shorter sections so the home page is scrollable, not a marathon */
  .section-pad{padding-top:2.75rem!important;padding-bottom:2.75rem!important}
  .content-section{padding:2.25rem 1.25rem!important}
  .hero,.hero-reference,.hero.hero-reference{min-height:100svh!important;padding-top:6.5rem;padding-bottom:3rem}
  @supports not (min-height:100svh){
    .hero,.hero-reference{min-height:100vh}
  }
  .inner-hero{min-height:0!important;padding-top:6.25rem;padding-bottom:1.75rem}
  .philosophy-image,.portrait,.split-image{min-height:0!important;min-height:240px;max-height:320px}
  .solution-image{min-height:0!important;height:220px;max-height:220px;background-size:cover;background-position:center}
  .service-card,.service-card.feature,.feature-item{min-height:0!important}
  .service-media,.service-demo-video,.service-card.feature .service-demo-video{
    width:100%;max-height:220px;aspect-ratio:16/9;object-fit:cover;
  }
  .service-grid{grid-template-columns:1fr!important}
  .service-card,.service-card.feature{grid-column:auto!important}

  /* Primary CTA is easy to hit */
  .hero-actions{flex-direction:column;align-items:stretch;gap:.85rem}
  .hero-actions .button,.hero-actions .button-primary{width:100%;justify-content:center;min-height:48px;text-align:center}
  .hero-actions .text-link{min-height:44px;display:inline-flex;align-items:center}

  /* Forms */
  input,select,textarea,
  .add-compose textarea,.add-lead input,.add-lead select,.add-lead textarea{
    font-size:16px!important;max-width:100%;box-sizing:border-box;
  }
  .contact-form{grid-template-columns:1fr!important}
  .contact-form label.full,.contact-form .button{grid-column:auto!important}
  .contact-form input,.contact-form textarea,.contact-form select{
    min-height:48px;padding:.85rem 1rem;border-radius:10px;
  }
  .contact-form textarea{min-height:140px}
  .contact-form .button,.contact-form button{min-height:48px;width:100%}

  /* Expandable lists + FAQs */
  details.list-collapse{
    margin:1rem 0 0;border-top:1px solid rgba(43,38,33,.14);
  }
  details.list-collapse>summary{
    display:flex;align-items:center;justify-content:space-between;gap:1rem;
    min-height:44px;padding:.7rem 0;cursor:pointer;list-style:none;
    font-family:var(--body,"Manrope",sans-serif);font-size:.95rem;font-weight:700;
    letter-spacing:.04em;color:#2b2621;
  }
  details.list-collapse>summary::-webkit-details-marker{display:none}
  details.list-collapse>summary:after{content:"+";color:#7a6440;font-size:1.2rem;line-height:1}
  details.list-collapse[open]>summary:after{content:"−"}
  details.list-collapse>ul{margin:.15rem 0 1rem;padding-left:1.15rem}
  .faq-list summary,.simulator-faq summary,.home-faq summary,.list-collapse summary{
    min-height:44px;padding-top:.65rem;padding-bottom:.65rem;
  }
  .faq-list details,.simulator-faq details,.home-faq details{margin:0}
  .home-faq,.simulator-faq{gap:0}

  /* Gallery: no horizontal page scroll; filters can still swipe */
  .dd-filters{margin-right:0;max-width:100%}
  .dd-grid img,.dd-tile img{width:100%;height:100%;object-fit:cover}
  .dd-lightbox button{width:44px;height:44px;min-width:44px;min-height:44px}
  .dd-lb-prev,.dd-lb-next{top:auto;bottom:calc(12px + env(safe-area-inset-bottom,0px));transform:none}
  .dd-lb-close{top:calc(10px + env(safe-area-inset-top,0px));right:10px}
  .dd-lightbox figure,.dd-lightbox img,.dd-lb-stage img,.dd-lb-stage video{
    max-width:calc(100vw - 24px);max-height:calc(100dvh - 140px);
  }

  /* Footer: dense but tappable */
  .global-footer{padding:2rem 1.25rem calc(2rem + env(safe-area-inset-bottom,0px))!important;gap:1.25rem}
  .global-footer .brand-logo{max-height:56px;width:auto}

  /* Proof rail and start-here shouldn't force huge rows */
  .proof-rail{gap:.75rem}
  .feature-list{grid-template-columns:1fr!important}

  /* Keep fixed Call + chat from covering the last lines of a page */
  body{padding-bottom:calc(6.5rem + env(safe-area-inset-bottom,0px))!important}
}

@media(max-width:620px){
  .hero h1,.inner-hero h1{font-size:clamp(2.05rem,11vw,2.55rem)!important}
  .section-heading h2,h2{font-size:clamp(1.7rem,8.5vw,2.2rem)!important}
  .dd-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem}
  .builder-choices button,.start-here a,.start-card{min-height:44px}
}

/* Print: hide chrome */
@media print{
  .mobile-call,.add-root,.menu-toggle{display:none!important}
  header.site-header,.site-header{position:static!important}
}

@media(max-width:900px){
  .breadcrumb a{display:inline-flex;align-items:center;min-height:44px}
  .global-footer a{min-width:44px;padding-inline:.2rem}
  footer.global-footer,.global-footer{
    display:grid!important;
    grid-template-columns:1fr 1fr;
    align-items:start;
  }
  .global-footer>.brand,.global-footer .footer-brand,
  .global-footer>.footer-note,.global-footer>p{grid-column:1/-1}
}
@media(max-width:900px){
  /* Stack breadcrumb above the title (it was absolutely placed and collided with the headline) */
  .inner-hero{
    display:flex!important;
    flex-direction:column;
    justify-content:flex-end;
    align-items:flex-start;
    gap:.85rem;
  }
  .breadcrumb{
    position:relative!important;
    top:auto!important;
    left:auto!important;
    margin:0;
    padding:0;
    order:0;
  }
  .inner-hero-content{order:1;width:100%;max-width:100%}
}

/* Credentials + partner wordmarks: phones and tablets only. Desktop (luxe.css) is unchanged. */
@media (max-width: 900px) {
  .partner-line {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: .55rem 1.15rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
    text-align: center;
    letter-spacing: .06em;
    font-size: .82rem;
    padding-top: 1.25rem;
  }
  .partner-line span { display: inline-block; }

  .dd-creds {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: .75rem;
    margin-top: 1.15rem;
    width: 100%;
  }
  .dd-cred {
    flex: none !important;
    width: auto;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 1.1rem 1.15rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
  }
  .dd-cred small,
  .dd-cred strong {
    margin-left: 0;
    text-align: left;
    align-self: flex-start;
  }
  .dd-cred-logos {
    justify-content: flex-start;
    align-items: center;
    gap: 1.15rem;
    width: 100%;
    margin: .4rem 0 .55rem;
    padding: .15rem 0;
  }
  .dd-cred-logos img {
    height: 22px !important;
    width: auto;
    max-width: 50%;
    object-fit: contain;
    object-position: left center;
    display: block;
  }
  .dd-cred-logos img.dd-logo-sonos {
    height: 18px !important;
  }
  .dd-cred-badge {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: .9rem;
    width: 100%;
  }
  .dd-cred-badge .dd-badge {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0;
  }
  .dd-cred-badge > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
    text-align: left;
  }
  .dd-cred-badge strong { white-space: normal; }

  /* Official partner lockup centers the wordmark over a full-width "Authorized Partner".
     On cards that reads as an indent; use a left-aligned stack of the same marks. */
  .dd-cred-partner .dd-partner-logo {
    display: block;
    height: 62px;
    width: auto;
    max-width: 100%;
    margin: .15rem 0 0;
    align-self: flex-start;
    object-fit: contain;
    object-position: left center;
    content: url("logo-eero-wordmark.png");
  }
}

@media (min-width: 701px) and (max-width: 900px) {
  .partner-line {
    gap: .6rem 1.5rem;
    font-size: .9rem;
    letter-spacing: .06em;
  }
  .dd-creds {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important;
    align-items: start;
    gap: .75rem;
  }
  .dd-cred { width: 100%; }
  .dd-cred-logos { flex-wrap: nowrap; }
  .dd-cred-badge strong { white-space: nowrap; }
  .dd-cred-badge .dd-badge {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
  }
  .dd-cred-partner .dd-partner-logo { height: 64px; }
}
