.mobile-dock,
.mobile-dock-fab,
.mobile-dock-sheet,
.mobile-dock-backdrop {
  display: none;
}

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

  .top-nav,
  .header-inner > .btn,
  .lp-menu-toggle,
  .lp-header .lp-btn,
  .lp-nav {
    display: none !important;
  }

  .header-inner,
  .lp-header-inner {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .footer-shell,
  .lp-footer > .lp-shell {
    padding: 26px 0 18px;
  }

  .footer-main,
  .lp-footer-main {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer-main > .footer-column:not(.footer-contact),
  .lp-footer-column,
  .footer-tags,
  .footer-contact a[target="_blank"],
  .footer-bottom > span:last-child {
    display: none;
  }

  .footer-logo,
  .lp-footer-brand img {
    margin-bottom: 12px;
  }

  .footer-brand p,
  .lp-footer-brand p {
    max-width: 330px;
    font-size: 13px;
    line-height: 1.5;
  }

  .footer-contact {
    gap: 7px;
  }

  .footer-contact h3 {
    margin-bottom: 2px;
  }

  .footer-bottom,
  .lp-footer-bottom {
    margin-top: 20px;
    padding-top: 16px;
  }

  .footer-bottom,
  .lp-footer-bottom,
  .footer-legal,
  .lp-footer-legal {
    gap: 6px 12px;
  }

  body.mobile-dock-open {
    overflow: hidden;
  }

  .mobile-dock {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: 72px;
    padding: 9px 8px calc(7px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
    background: rgba(247, 251, 249, 0.96);
    box-shadow: 0 -14px 38px rgba(20, 53, 45, 0.11);
    backdrop-filter: blur(22px);
  }

  .mobile-dock-item {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 54px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 2px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: #6c7b77;
    cursor: pointer;
    font: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-dock-item svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
  }

  .mobile-dock-item span {
    max-width: 100%;
    overflow: hidden;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-dock-item:hover,
  .mobile-dock-item:focus-visible,
  .mobile-dock-item.is-active {
    background: rgba(45, 117, 103, 0.08);
    color: #2d7567;
  }

  .mobile-dock-item:focus-visible,
  .mobile-dock-fab:focus-visible,
  .mobile-dock-sheet-close:focus-visible {
    outline: 2px solid #2d7567;
    outline-offset: 2px;
  }

  .mobile-dock-fab {
    position: fixed;
    right: 18px;
    bottom: calc(76px + env(safe-area-inset-bottom));
    z-index: 103;
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #13866e;
    box-shadow: 0 14px 30px rgba(19, 134, 110, 0.28);
    color: #ffffff;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
  }

  .mobile-dock-fab:hover {
    box-shadow: 0 17px 34px rgba(19, 134, 110, 0.34);
    transform: translateY(-2px);
  }

  .mobile-dock-fab svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.8;
  }

  .mobile-dock-backdrop {
    position: fixed;
    inset: 0;
    z-index: 104;
    background: rgba(15, 28, 24, 0.28);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  .mobile-dock-sheet {
    position: fixed;
    right: 12px;
    bottom: calc(82px + env(safe-area-inset-bottom));
    left: 12px;
    z-index: 105;
    display: block;
    max-height: min(68vh, 560px);
    overflow-y: auto;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 28px 70px rgba(20, 37, 32, 0.2);
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .mobile-dock-backdrop.is-open,
  .mobile-dock-sheet.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-dock-sheet.is-open {
    transform: translateY(0);
  }

  .mobile-dock-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
  }

  .mobile-dock-sheet-head strong {
    color: #171c24;
    font-size: 18px;
    font-weight: 500;
  }

  .mobile-dock-sheet-close {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #f2f6f4;
    color: #536071;
    cursor: pointer;
    font-size: 22px;
  }

  .mobile-dock-sheet-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .mobile-dock-sheet-grid a {
    display: flex;
    min-height: 52px;
    align-items: center;
    padding: 11px 12px;
    border-radius: 14px;
    background: #f6f8f7;
    color: #313946;
    font-size: 12px;
    line-height: 1.3;
    text-decoration: none;
  }

  .mobile-dock-sheet-grid a:hover,
  .mobile-dock-sheet-grid a:focus-visible,
  .mobile-dock-sheet-grid a[aria-current="page"] {
    background: #eaf4f0;
    color: #2d7567;
  }

  /* Mobile app shell */
  html {
    scroll-behavior: smooth;
    background: #eef3f1;
  }

  body {
    background:
      radial-gradient(circle at 100% 0%, rgba(255, 224, 92, 0.1), transparent 24%),
      #eef3f1;
  }

  .site-header,
  .lp-header {
    min-height: 58px;
    padding: 0;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 1px 0 rgba(209, 220, 216, 0.72);
    backdrop-filter: blur(22px);
  }

  .header-inner,
  .lp-header-inner {
    min-height: 58px;
    padding: 0 16px;
  }

  .brand-logo-image,
  .lp-brand img {
    width: 132px;
  }

  main > :where(
    .hero,
    .section,
    .contact-section,
    .lp-hero,
    .lp-section,
    .lp-final-section
  ) {
    width: auto;
    margin: 10px;
    overflow: hidden;
    border: 0;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 34px rgba(31, 62, 54, 0.065);
    scroll-margin-top: 68px;
  }

  .container,
  .lp-shell {
    width: calc(100% - 28px);
  }

  .hero {
    background:
      radial-gradient(circle at 100% 0%, rgba(255, 224, 92, 0.2), transparent 38%),
      linear-gradient(160deg, #ffffff 0%, #f5fbf8 100%);
  }

  .hero-content {
    display: block;
    padding: 28px 0 22px;
    text-align: left;
  }

  .hero-copy {
    width: 100%;
  }

  .hero .eyebrow,
  .lp-kicker {
    min-height: 28px;
    margin-bottom: 14px;
    padding: 0 10px;
    font-size: 10px;
  }

  .hero h1 {
    max-width: 330px;
    font-size: clamp(32px, 9.2vw, 38px);
    line-height: 1.02;
  }

  .hero p,
  .hero .hero-lead {
    max-width: 330px;
    margin: 16px 0 0;
    font-size: 14px;
    line-height: 1.5;
  }

  .hero-bullets {
    gap: 8px;
    margin: 18px 0;
  }

  .hero-bullets li {
    min-height: 48px;
    padding: 12px 12px 12px 38px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: inset 0 0 0 1px rgba(218, 226, 223, 0.78);
    color: #4f5e69;
    font-size: 13px;
    line-height: 1.4;
  }

  .hero-bullets li::before {
    top: 20px;
    left: 16px;
    width: 7px;
    height: 7px;
  }

  .hero-actions {
    display: grid;
    justify-content: stretch;
  }

  .hero .btn,
  .lp-hero-actions .lp-btn {
    width: 100%;
    min-height: 50px;
    border-radius: 15px;
  }

  .section,
  .contact-section {
    padding: 30px 0;
  }

  .section-first {
    padding-top: 30px;
  }

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

  .section-head h2,
  .contact-card h2 {
    font-size: 27px;
    line-height: 1.08;
  }

  .section-head p,
  .contact-card p {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.55;
  }

  .tool-suite,
  .screens-layout,
  .launch-board,
  .contact-card {
    border-radius: 22px;
    box-shadow: none;
  }

  .tool-suite {
    margin-bottom: 18px;
    padding: 7px;
  }

  .suite-copy {
    padding: 18px;
    border-radius: 17px;
  }

  .suite-copy span {
    margin-bottom: 14px;
  }

  .suite-copy h3 {
    font-size: 22px;
  }

  .suite-tools {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding: 4px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .suite-tools::-webkit-scrollbar,
  .solution-pages-grid::-webkit-scrollbar,
  .product-list::-webkit-scrollbar,
  .design-principles::-webkit-scrollbar,
  .lp-card-grid::-webkit-scrollbar,
  .lp-steps::-webkit-scrollbar,
  .lp-detail-grid::-webkit-scrollbar,
  .lp-related-grid::-webkit-scrollbar {
    display: none;
  }

  .suite-tools button {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0 15px;
    scroll-snap-align: start;
  }

  .service-cards {
    gap: 12px;
  }

  .service-card {
    gap: 16px;
    min-height: 0;
    padding: 18px;
    border-radius: 22px;
  }

  .service-card-copy span {
    margin-bottom: 14px;
  }

  .service-card-copy h3 {
    font-size: 21px;
  }

  .service-ui {
    min-height: 178px;
    border-radius: 17px;
  }

  .solution-pages-grid,
  .product-list,
  .design-principles {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 2px 2px 12px;
    scroll-padding-left: 2px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .solution-page-card,
  .product-item,
  .design-principle {
    flex: 0 0 86%;
    min-height: 215px;
    padding: 20px;
    scroll-snap-align: start;
  }

  .solution-page-card {
    border-radius: 20px;
  }

  .solution-page-card > span {
    margin-bottom: 24px;
  }

  .solution-page-card h3 {
    font-size: 21px;
  }

  .screens-layout {
    padding: 20px;
    background: linear-gradient(160deg, #f8fbfa, #ffffff);
  }

  .screen-stage {
    margin-top: 20px;
  }

  .screen-main,
  .mini-screen {
    border-radius: 18px;
  }

  .product-item,
  .design-principle {
    border-radius: 22px;
  }

  .product-preview {
    min-height: 112px;
  }

  .launch-board {
    padding: 8px;
  }

  .launch-focus,
  .launch-step,
  .launch-result {
    border-radius: 16px;
  }

  .contact-card {
    padding: 20px;
    background:
      radial-gradient(circle at 100% 0%, rgba(255, 224, 92, 0.18), transparent 35%),
      #ffffff;
  }

  .contact-detail-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .contact-actions {
    display: grid;
  }

  .contact-actions .btn {
    width: 100%;
  }

  .contact-system,
  .contact-advantages {
    display: none;
  }

  /* Landing pages use the same app-like surfaces */
  .lp-hero {
    background:
      radial-gradient(circle at 100% 0%, rgba(255, 224, 92, 0.18), transparent 34%),
      linear-gradient(160deg, #ffffff, #f5fbf8);
  }

  .lp-hero::before,
  .lp-hero::after {
    display: none;
  }

  .lp-hero-grid {
    display: block;
    min-height: 0;
    padding: 26px 0;
  }

  .lp-breadcrumbs {
    margin-bottom: 16px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .lp-hero h1 {
    font-size: 31px;
    line-height: 1.04;
  }

  .lp-lead {
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.55;
  }

  .lp-proof-list {
    gap: 7px;
    margin-top: 18px;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .lp-proof-list li {
    flex: 0 0 auto;
    min-height: 32px;
    font-size: 11px;
  }

  .lp-presenter {
    margin-top: 24px;
  }

  .lp-section {
    padding: 30px 0;
  }

  .lp-section-head {
    margin-bottom: 24px;
  }

  .lp-section-head h2,
  .lp-copy h2,
  .lp-faq-head h2,
  .lp-final h2 {
    font-size: 27px;
  }

  .lp-section-head p,
  .lp-copy > p,
  .lp-faq-head p {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.6;
  }

  .lp-section-head::after {
    margin-top: 16px;
  }

  .lp-card-grid,
  .lp-steps,
  .lp-detail-grid,
  .lp-related-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 2px 2px 12px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .lp-card,
  .lp-step,
  .lp-detail,
  .lp-related-link {
    flex: 0 0 84%;
    min-height: 210px;
    padding: 20px;
    border-radius: 21px;
    scroll-snap-align: start;
  }

  .lp-card-num,
  .lp-step > span {
    margin-bottom: 28px;
  }

  .lp-split {
    gap: 24px;
  }

  .lp-process-visual,
  .lp-estimator {
    border-radius: 21px;
  }

  .lp-final-section {
    padding: 0;
  }

  .lp-final {
    width: 100%;
    padding: 28px 20px;
    border-radius: 0;
    box-shadow: none;
  }

  .lp-final p {
    margin-bottom: 22px;
    font-size: 14px;
  }

  @media (max-width: 380px) {
    .mobile-dock-sheet-grid {
      grid-template-columns: 1fr;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-dock *,
  .mobile-dock-sheet,
  .mobile-dock-backdrop {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
