/* Homepage adaptations. Desktop compositions remain in their module stylesheets. */
@media (max-width: 991.98px) {
  .home-page {
    --section-rhythm-y: 48px;
    --section-content-gap: 28px;
    --section-title-gap: 16px;
    --section-kicker-gap: 12px;
  }
  body.home-page main > section { padding-block: 40px !important; }
  .home-page main > section > .container,
  .home-page .site-footer > .container { width: 100%; max-width: 760px; padding-inline: 20px; }
  body.home-page main > section h2,
  body.home-page .site-footer h2 { font-size: clamp(1.875rem, 6.8vw, 2.5rem) !important; line-height: 1.14 !important; letter-spacing: -.025em; overflow-wrap: anywhere; }
  .home-page main .section-copy,
  .home-page main .results-intro,
  .home-page main .faq-intro,
  .home-page main .hotel-cta-text,
  .home-page .footer-newsletter-text { font-size: 1rem; line-height: 1.6; }
  .home-page main :is(.section-kicker, .results-kicker),
  .home-page .footer-newsletter-kicker { font-size: .7rem; line-height: 1.5; letter-spacing: .1em; }
  .home-page main :is(.real-impact-head, .problem-panel, .compliance-panel, .results-layout, .faq-panel, .stack-product-layout, .guest-journey-layout) { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .home-page main :is(.real-impact-head, .problem-panel, .compliance-panel, .results-layout, .faq-panel, .stack-product-layout, .guest-journey-layout) > * { min-width: 0; max-width: 100%; }
  .home-page main .hotel-cta-secondary { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
  .home-page main :is(.tools-showcase-heading, .integrations-heading, .tools-stack-heading, .faq-panel > .text-center) { text-align: left !important; }
  .home-page main :is(.tools-showcase-heading, .integrations-heading, .tools-stack-heading) h2 { margin-inline: 0 !important; }

  /* Remove desktop sticky positioning before the accordion becomes one column. */
  .home-page .faq-panel > .text-center { position: static !important; margin-bottom: 0 !important; }
  .home-page .faq-accordion .accordion-button { min-height: 72px; padding-block: 18px !important; font-size: 1rem; line-height: 1.4; border-radius: 0 !important; }
  .home-page .faq-accordion .accordion-body { padding: 0 0 20px !important; font-size: .9375rem; line-height: 1.65; }
  .home-page .faq-accordion .accordion-button:focus-visible { outline: 2px solid #0d6efd; outline-offset: -2px; }

  .home-page .results-layout { align-items: start; }
  .home-page .results-visual { min-height: 0; }
  .home-page .results-visual > img { height: 260px; min-height: 0; }
  .home-page .results-operation-card { position: relative; inset: auto; width: calc(100% - 24px); margin: -44px auto 0; }
  .home-page .results-operation-head { gap: 12px; padding: 18px; }
  .home-page .results-flow-map { grid-template-columns: minmax(0, 1fr); }
  .home-page .results-flow-map > div + div::before { display: none; }

  .home-page .tools-stack .stack-product-card { position: relative !important; top: auto !important; min-height: 0 !important; padding: 24px !important; }
  .home-page .tools-stack .stack-product-layout { gap: 24px; }
  .home-page .tools-stack .stack-product-copy { min-width: 0; padding: 0 !important; }
  .home-page .stack-list { gap: 24px; }
  .home-page .tools-stack .stack-title { font-size: 1.5rem !important; line-height: 1.2; }
  .home-page .tools-stack .stack-photo-visual { min-height: 0 !important; height: 320px !important; }

  .home-page .guest-journey-wrap { width: 100%; max-width: 760px; padding: 0 20px; }
  .home-page .journey-demo-shell { display: flex; flex-direction: column; min-height: 0; padding: 12px; overflow: hidden; }
  .home-page .journey-demo-topbar { flex-wrap: wrap; gap: 8px; margin: 0; }
  .home-page .journey-demo-guest { max-width: 100%; }
  .home-page .journey-demo-guest strong { white-space: normal; overflow: visible; }
  .home-page .journey-demo-status strong { max-width: none; white-space: normal; overflow: visible; }
  .home-page .journey-active-card { position: relative; inset: auto; width: 100%; margin: 150px 0 16px; }
  .home-page .journey-visual-controls { position: relative; inset: auto !important; width: 100%; transform: none; margin: 0; padding: 6px; gap: 8px; }
  .home-page .journey-control { width: 44px; height: 44px; }
  .home-page .journey-dot { position: relative; height: 32px; background: transparent !important; box-shadow: none !important; }
  .home-page .journey-dot::after { content: ''; position: absolute; inset: 14px 0; border-radius: 99px; background: rgba(255,255,255,.35); }
  .home-page .journey-dot.is-active::after { background: #8ec5ff; }

  .home-page .footer-newsletter { gap: 28px; padding-block: 12px 36px; }
  .home-page .footer-newsletter-copy { min-width: 0; }
  .home-page .footer-newsletter-form input { min-width: 0; width: 100%; font-size: 16px; min-height: 48px; }
  .home-page .footer-newsletter-form button { min-height: 48px; }
  .home-page .footer-newsletter-media { min-height: 0; height: 220px; }
  .home-page .footer-newsletter-media img { min-height: 0; height: 100%; }
  .home-page .footer-directory { --bs-gutter-x: 24px; --bs-gutter-y: 28px; }
  .home-page .footer-link { display: inline-flex; align-items: center; min-height: 44px; line-height: 1.4; }
  .home-page .footer-directory ul { gap: 0 !important; }
  .home-page .footer-heading { margin-bottom: 12px !important; }
  .home-page .footer-bottom { margin-top: 28px; line-height: 1.8; overflow-wrap: anywhere; }
}

@media (max-width: 767.98px) {
  .home-page .real-impact-head { margin-bottom: 28px; }
  .home-page .real-impact-link { white-space: normal; gap: 12px; line-height: 1.5; }
  .home-page .impact-image-dashboard { min-height: 0; padding: 0; }
  .home-page .impact-main-image { min-height: 0; height: 260px; }
  .home-page .impact-main-image img { height: 100%; min-height: 0; }
  .home-page .impact-ops-card { position: relative; inset: auto; width: calc(100% - 24px); margin: -44px auto 0; }
  .home-page .impact-ops-row { grid-template-columns: 20px minmax(0,1fr) auto; gap: 8px; padding: 12px; }
  .home-page .impact-ops-foot > div { min-width: 0; padding: 14px 12px; }
  .home-page .real-impact-marquee { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; scrollbar-width: thin; }
  .home-page .real-impact-marquee::before, .home-page .real-impact-marquee::after { display: none; }
  .home-page .real-impact-track { width: max-content; animation: none !important; transform: none; padding-inline: 20px; }
  .home-page .real-impact-item { min-width: 0; width: 210px; padding: 20px; scroll-snap-align: start; }
  .home-page .real-impact-item[aria-hidden='true'] { display: none; }
  .home-page .real-impact-marquee:focus-visible { outline: 2px solid #0d6efd; outline-offset: -2px; }

  .home-page .problem-panel, .home-page .compliance-panel { padding: 24px 20px; border-radius: 20px; }
  .home-page .problem-points { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .home-page .problem-points article { display: grid; grid-template-columns: 40px minmax(0,1fr); text-align: left; gap: 12px; padding: 18px 14px; }
  .home-page .problem-points .problem-icon { width: 40px; height: 40px; margin: 0; }
  .home-page .problem-points h3 { font-size: 1.125rem; line-height: 1.3; }
  .home-page .problem-points p { font-size: .9375rem; line-height: 1.55; }
  .home-page .problem-visual-stage { display: grid; min-height: 0; padding: 110px 12px 12px; gap: 10px; }
  .home-page .problem-visual-stage > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .home-page .problem-visual-stage :is(.problem-mini-card, .problem-dashboard-card) { position: relative; inset: auto; width: 100%; min-width: 0; }
  .home-page .problem-dashboard-card { order: 2; }

  .home-page .tools-showcase-grid { gap: 20px; grid-template-columns: minmax(0,1fr); }
  .home-page .hotel-tool-card { min-width: 0; border-radius: 20px; }
  .home-page .hotel-tool-card .hotel-tool-copy { padding: 24px 20px; }
  .home-page .hotel-tool-copy h3 { font-size: 1.5rem; line-height: 1.2; }
  .home-page .hotel-tool-copy p:not(.tool-kicker) { font-size: .9375rem; line-height: 1.55; }
  .home-page .tool-image-panel { min-height: 0; height: 240px; }
  .home-page .tool-image-panel img { min-height: 0; height: 100%; }
  .home-page .card-visible-cta { white-space: normal; line-height: 1.45; }

  /* The scene uses normal document flow so translated cards cannot overlap. */
  .home-page .compliance-switcher { display: flex; overflow-x: auto; gap: 6px; padding: 6px; scrollbar-width: thin; }
  .home-page .compliance-option { flex: 1 0 auto; display: flex; flex-direction: column; gap: 4px; min-height: 56px; padding: 8px 10px; text-align: center; }
  .home-page .compliance-option strong { font-size: .8rem; }
  .home-page .compliance-stage { min-height: 0; }
  .home-page .compliance-photo-wrap { display: grid; gap: 10px; min-height: 0; height: auto; padding: 120px 12px 12px; }
  .home-page .compliance-photo-wrap > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .home-page .compliance-photo-wrap :is(.compliance-status-card, .compliance-detail-card, .compliance-ops-card) { position: relative; inset: auto; width: 100%; min-width: 0; padding: 14px; }
  .home-page .compliance-ops-grid { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .home-page .compliance-ops-grid > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 10px; }
  .home-page .compliance-status-card strong { white-space: normal; }

  .home-page .integrations-panel { grid-template-columns: minmax(0,1fr); gap: 14px; }
  .home-page .integration-card { min-height: 0; padding: 24px; }
  .home-page .integration-card h3 { font-size: 1.25rem; line-height: 1.3; }
  .home-page .integration-card p { font-size: .9375rem; line-height: 1.55; }
  .home-page .integrations-footer { gap: 16px; align-items: flex-start; text-align: left; }

  .home-page .tools-stack .stack-product-card { padding: 20px !important; }
  .home-page .tools-stack .stack-kicker { white-space: normal; font-size: .68rem; line-height: 1.5; }
  .home-page .tools-stack .stack-content-panel { gap: 12px; padding: 0; }
  .home-page .tools-stack .stack-content-panel > div { padding: 12px 0; }
  .home-page .tools-stack .stack-photo-overlay { padding: 16px; }
  .home-page .tools-stack .stack-photo-overlay strong { font-size: 1.15rem; }
  .home-page .tools-stack .stack-photo-overlay p { font-size: .8125rem; }
  .home-page .tools-stack .stack-photo-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-page .tools-stack .stack-photo-metrics em { min-width: 0; }

  .home-page .solutions-carousel { margin-top: 24px; padding-bottom: 60px; }
  .home-page .solutions-track { gap: 14px; padding-inline: 20px; scroll-padding-inline: 20px; }
  .home-page .solution-card { flex-basis: 80vw; height: 370px; }
  .home-page .solutions-control { top: auto; bottom: 0; width: 44px; height: 44px; transform: none; }
  .home-page .solutions-control-prev { left: auto; right: 76px; }
  .home-page .solutions-control-next { right: 20px; }
  .home-page .solution-card-label { padding: 18px 14px; }
  .home-page .solution-card-label h3 { font-size: 1.125rem; }

  .home-page .hotel-cta-panel { margin: 0; min-height: 0; border-radius: 20px; }
  .home-page .hotel-cta-copy { padding: 32px 20px; }
  .home-page .hotel-cta-badge { width: fit-content; max-width: 100%; gap: 8px; flex-wrap: wrap; line-height: 1.5; }
  .home-page .hotel-cta-actions { display: grid; grid-template-columns: minmax(0,1fr); gap: 12px; }
  .home-page .hotel-cta-points { gap: 12px; }
  .home-page .footer-directory > div { width: 50%; }
  .home-page .footer-link { font-size: .875rem; }
}

@media (max-width: 359.98px) {
  .home-page main > section > .container, .home-page .site-footer > .container { padding-inline: 16px; }
  .home-page .problem-panel, .home-page .compliance-panel { padding-inline: 16px; }
  body.home-page main > section h2, body.home-page .site-footer h2 { font-size: 1.75rem !important; }
  .home-page .journey-visual-controls { gap: 4px; padding: 4px; }
  .home-page .journey-dots { gap: 3px; padding-inline: 0; }
  .home-page .tools-stack .stack-photo-visual { height: 350px !important; }
}
