@media (max-width: 1200px) {
  .header-actions .js-expert {
    display: none;
  }

  .nav-desktop a {
    padding: 0.45rem 0.55rem;
    font-size: 0.84rem;
  }
}

@media (max-width: 1100px) {
  .home-hero .hero-grid,
  .split,
  .services-bento,
  .service-block,
  .service-block.reverse,
  .contact-grid,
  .case-layout,
  .expert-panel,
  .device-pair,
  .trust-metrics {
    grid-template-columns: 1fr;
  }

  .service-block.reverse .copy {
    order: 0;
  }

  .hero-visual {
    min-height: 0;
    margin-top: 0.35rem;
  }

  .hero-laptop,
  .hero-browser {
    width: 100%;
  }

  .hero-phone {
    display: block;
    width: 128px;
    right: 10px;
    bottom: 14px;
  }

  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }

  .timeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem 1rem;
  }

  .timeline::before {
    display: none;
  }

  .cta-band .container {
    flex-direction: column;
    align-items: start;
  }

  .values,
  .addon-grid,
  .about-stats {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.8rem 1.25rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: 36rem;
  }

  .footer-brand p {
    max-width: 32rem;
  }

  .service-cards,
  .process-grid,
  .review-grid,
  .faq-split,
  .section-head.split-head {
    grid-template-columns: 1fr;
  }

  .faq-split .section-head {
    position: static;
  }

  .choice-grid.logo-choices,
  .choice-grid.project-choices {
    grid-template-columns: 1fr 1fr;
  }

  .onboard-main {
    width: min(calc(100% - 1.5rem), 980px);
  }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }

  .site-header .header-inner {
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
    width: min(calc(100% - 1.25rem), var(--container-wide));
  }

  .nav-desktop {
    display: none;
  }

  .header-actions .js-expert {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100dvh - var(--header-h));
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 0.25rem 1.25rem 1.25rem;
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
    color: var(--navy-900);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    box-shadow: 0 18px 40px rgba(11, 18, 32, 0.12);
    flex-direction: column;
  }

  .site-header.is-open .mobile-nav {
    display: flex;
  }

  .mobile-nav a {
    display: block;
    padding: 0.88rem 0.15rem;
    font-weight: 700;
    font-size: 1.05rem;
    font-family: var(--font-display);
    border-bottom: 1px solid var(--border);
  }

  .mobile-nav .mobile-cta {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 1.1rem;
  }

  .mobile-nav .mobile-cta .btn {
    width: 100%;
  }

  .mobile-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 0.85rem;
    margin-top: auto;
    padding-top: 1.15rem;
  }

  .mobile-legal a {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-600);
    border: 0;
    padding: 0.4rem 0;
  }

  body.nav-open {
    overflow: hidden;
  }

  .hero-stats {
    display: none;
  }

  .tick-marquee {
    margin-bottom: 1.25rem;
  }

  #reviews .coverflow.is-coverflow {
    padding-bottom: 1rem;
  }

  .legal {
    padding: 3rem 0 3.5rem;
  }

  #work .privacy-note {
    display: none;
  }

  #work .coverflow.is-coverflow {
    padding-bottom: 1rem;
  }

  #work .section-action {
    margin-top: 0.45rem;
  }

  .pay-path {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-bottom: 1rem;
  }

  .pay-path::before {
    display: block;
    top: 13px;
    left: 12.5%;
    width: 75%;
  }

  .pay-step {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.28rem;
    padding: 0 0.2rem;
  }

  .pay-step__n {
    width: 26px;
    height: 26px;
    font-size: 0.62rem;
    box-shadow: 0 0 0 4px var(--offwhite);
    flex-shrink: 0;
  }

  .section-alt .pay-step__n {
    box-shadow: 0 0 0 4px var(--bg-alt);
  }

  .pay-step strong {
    font-size: 0.72rem;
    margin-top: 0.05rem;
  }

  .pay-step p {
    display: none;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .grid-3,
  .grid-4,
  .service-mini-grid,
  .feature-list,
  .service-cards,
  .process-grid,
  .review-grid {
    grid-template-columns: 1fr 1fr;
  }

  .home-hero {
    padding: 1.4rem 0 0;
  }

  body[data-hero="dark"] .home-hero {
    padding-top: calc(var(--header-h) + 1.15rem);
  }

  .home-hero .hero-grid {
    gap: 1.5rem;
    padding-bottom: 1.6rem;
  }

  .hero-code span {
    font-size: 0.68rem;
  }

  .hero-phone {
    display: block;
    width: 112px;
    right: 8px;
    bottom: 12px;
  }

  .addon-select {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0.85rem;
    padding: 0.15rem 0.2rem 1rem;
    margin-inline: -0.2rem;
  }

  .addon-pick {
    flex: 0 0 78%;
    scroll-snap-align: center;
    min-height: 230px;
  }

  .choice-grid,
  .choice-grid.logo-choices {
    grid-template-columns: 1fr 1fr;
  }

  .choice-grid.project-choices {
    grid-template-columns: 1fr;
  }

  .radio-row.triple,
  .radio-row.quad {
    grid-template-columns: 1fr 1fr;
  }

  .radio-row.binary {
    grid-template-columns: 1fr 1fr;
  }

  .step-panel.is-active {
    padding: 1.6rem 1.35rem 1.4rem;
  }

  .checkboxes {
    grid-template-columns: 1fr 1fr;
  }

  .photo-panel {
    min-height: 280px;
  }

  .device-phone {
    max-width: 260px;
    margin-inline: auto;
  }
}

@media (max-width: 720px) {
  .container,
  .container-wide {
    width: min(calc(100% - 1.25rem), var(--container));
  }

  .home-hero .hero-grid {
    gap: 1.4rem;
  }

  .hero-visual {
    min-height: 0;
  }

  .hero-laptop,
  .hero-browser {
    width: 100%;
  }

  .hero-tablet {
    display: none;
  }

  .hero-pill {
    font-size: 0.72rem;
    max-width: 100%;
  }

  .hero-pill__typed {
    overflow: hidden;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .hero-copy .hero-terminal {
    display: block;
    max-width: 100%;
    margin-top: 1rem;
  }

  .term-screen {
    min-height: 92px;
    font-size: 0.68rem;
  }

  .hero-phone {
    display: block;
    width: 86px;
    right: 6px;
    bottom: 8px;
    padding: 6px;
    border-radius: 20px;
  }

  .hero-phone img {
    border-radius: 14px;
  }

  .hero-trust {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
  }

  .trust-grid,
  .trust-metrics {
    grid-template-columns: 1fr;
  }

  .home-pay-note {
    flex-direction: row;
    align-items: flex-start;
  }

  .trust-rail {
    justify-content: flex-start;
  }

  .trust-rail span {
    white-space: normal;
  }

  .hero-laptop,
  .hero-phone {
    will-change: auto;
  }

  .step-panel.is-active {
    padding: 1.25rem 1rem 1.15rem;
    border-radius: 18px;
  }

  .pricing-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .service-mini-grid,
  .form-grid,
  .values,
  .addon-grid,
  .about-stats,
  .work-grid,
  .work-grid.featured,
  .feature-list,
  .timeline {
    grid-template-columns: 1fr;
  }

  .addon-grid.addon-grid-home {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0.85rem;
    padding: 0.2rem 0 1rem;
  }

  .addon-grid.addon-grid-home .addon {
    flex: 0 0 82%;
    scroll-snap-align: center;
    min-height: 240px;
  }

  .contact-grid,
  .summary-row,
  .process-row {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding: 2.75rem 0 1.35rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.35rem 1.1rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: 28rem;
  }

  .footer-brand p {
    margin-top: 0.7rem;
    font-size: 0.9rem;
  }

  .footer-col h4 {
    margin-bottom: 0.7rem;
  }

  .footer-col a {
    padding: 0.22rem 0;
    font-size: 0.9rem;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    margin-top: 1.6rem;
    gap: 0.7rem;
  }

  .footer-legal {
    justify-content: flex-start;
  }

  .summary-row dt {
    margin-bottom: 0.15rem;
  }

  .wizard-actions {
    flex-direction: column-reverse;
  }

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

  .progress-step span.label {
    display: none;
  }

  .progress-step .line {
    width: 12px;
    margin: 0 0.15rem;
  }

  .page-hero {
    padding: 3rem 0 2.2rem;
  }

  body[data-hero="dark"] .page-hero.dark {
    padding-top: calc(var(--header-h) + 2.5rem);
    padding-bottom: 2.2rem;
  }

  .section {
    padding: 3.2rem 0;
  }

  .hero-chip {
    display: none;
  }

  .device-pair {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .device-phone {
    max-width: 240px;
  }

  .onboard-header .inner {
    width: min(calc(100% - 1.25rem), 1120px);
  }

  .onboard-actions .btn-ghost {
    display: none;
  }

  .onboard-main {
    padding: 1.4rem 0 3rem;
    width: min(calc(100% - 1.25rem), 980px);
  }

  .onboard-main h1 {
    font-size: 1.85rem;
  }

  .notice {
    grid-template-columns: 1fr;
  }

  .notice__icon {
    display: none;
  }

  .trust-pills {
    flex-direction: column;
    gap: 0.45rem;
  }

  .cluster.gap-md {
    width: 100%;
  }

  .cluster.gap-md .btn {
    flex: 1 1 auto;
  }

  .header-actions .btn-primary {
    padding: 0 0.85rem;
    font-size: 0.86rem;
  }

  .brand__name {
    font-size: 1rem;
  }

  .filter-bar {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.3rem;
  }

  .filter-bar button {
    flex: 0 0 auto;
  }

  .choice-grid {
    grid-template-columns: 1fr 1fr;
  }

  .choice-grid.logo-choices,
  .choice-grid.project-choices {
    grid-template-columns: 1fr;
  }

  .checkboxes {
    grid-template-columns: 1fr 1fr;
  }

  .radio-row.triple,
  .radio-row.quad {
    grid-template-columns: 1fr 1fr;
  }

  .service-cards,
  .process-grid,
  .review-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .industries-bar .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .industry-marquee {
    width: 100%;
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  }

  .onboard-actions .btn-ghost {
    display: none;
  }

  .cluster.gap-md {
    align-items: stretch;
  }

  .device-phone .device-screen img {
    height: 380px;
    min-height: 380px;
  }
}

@media (min-width: 901px) {
  .mobile-nav {
    display: none !important;
  }
}

@media (max-width: 420px) {
  .btn {
    --btn-h: 46px;
  }

  .display {
    font-size: 2.2rem;
  }

  .hero-price {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .hero-price__amt {
    font-size: 1.7rem;
  }

  .header-actions .btn-primary .arrow {
    display: none;
  }

  .header-actions .btn-primary {
    padding: 0 0.75rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .footer-brand,
  .footer-col {
    grid-column: auto;
    max-width: none;
  }

  .pay-step strong {
    font-size: 0.68rem;
  }

  .pay-step__n {
    width: 24px;
    height: 24px;
    font-size: 0.58rem;
  }

  .pay-path::before {
    top: 12px;
  }
}
