@media (max-width: 640px) {
  :root {
    --section-y: 72px;
  }

  iframe[src*="sitepilot"],
  [class*="sitepilot" i][style*="fixed"],
  [id*="sitepilot" i][style*="fixed"] {
    right: 12px !important;
    bottom: calc(12px + env(safe-area-inset-bottom)) !important;
    max-width: calc(100vw - 24px) !important;
    transform-origin: right bottom !important;
  }

  .section {
    scroll-margin-bottom: 120px;
  }

  .container {
    width: min(100% - 28px, 100%);
  }

  .header {
    padding-block: 12px;
  }

  .header__toggle {
    display: inline-flex;
    position: relative;
    z-index: 60;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border-radius: 999px;
    background: #f2f4f7;
    cursor: pointer;
  }

  .header__toggle-bar {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--color-ink);
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .header__nav {
    position: fixed;
    top: 68px;
    left: 14px;
    right: 14px;
    display: grid;
    gap: 6px;
    padding: 16px;
    border: 1px solid var(--color-line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transform: translate3d(0, -10px, 0);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .header__link,
  .header__cta {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 14px;
  }

  .header__toggle-input:checked ~ .header__toggle .header__toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .header__toggle-input:checked ~ .header__toggle .header__toggle-bar:nth-child(2) {
    opacity: 0;
  }

  .header__toggle-input:checked ~ .header__toggle .header__toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .header__toggle-input:checked ~ .header__nav {
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
  }

  .hero {
    min-height: 100vh;
    padding-top: 116px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 42px;
    text-align: center;
  }

  .hero__visual {
    display: none;
  }

  .hero__title {
    font-size: clamp(46px, 15vw, 64px);
  }

  .hero__subtitle {
    margin-top: 22px;
    font-size: 16px;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__device-img {
    width: min(112vw, 430px);
    margin-inline: -24px;
  }

  .features__kicker {
    margin-top: 36px;
  }

  .features__cards {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 22px;
  }

  .features__card,
  .features__card--primary {
    grid-row: auto;
    min-height: auto;
    padding: 24px;
    border-radius: 22px;
  }

  .features__card--primary .features__card-title,
  .features__card--primary .features__card-text {
    max-width: none;
  }

  .features__card-metrics {
    margin-top: 24px;
    padding-top: 0;
  }

  .features__card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
  }

  .features__card-icon--lg {
    width: 54px;
    height: 54px;
  }

  .callout__inner,
  .collab__inner,
  .cta__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .callout__title,
  .collab__title,
  .cta__title {
    font-size: clamp(38px, 12vw, 54px);
  }

  .callout__text,
  .features__intro,
  .collab__text,
  .cta__subtitle {
    font-size: 16px;
  }

  .features__title {
    font-size: clamp(38px, 12vw, 54px);
  }

  .intelligence__strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    border-radius: 24px;
    text-align: center;
  }

  .intelligence__strip-label {
    grid-column: 1 / -1;
  }

  .callout__visual {
    min-height: auto;
  }

  .callout__workspace {
    padding: 18px;
    border-radius: 24px;
    text-align: left;
  }

  .callout__workspace-card {
    padding: 14px;
    border-radius: 18px;
  }

  .callout__workspace-card--main {
    min-height: 140px;
    padding: 18px;
  }

  .callout__workspace-card--main strong {
    font-size: 24px;
  }

  .screens__title {
    font-size: clamp(34px, 11vw, 48px);
  }

  .screens__intro {
    font-size: 16px;
  }

  .sync-stage {
    margin-top: 28px;
  }

  .sync-stage__panel {
    border-radius: 22px;
    padding: 22px 14px 18px;
    overflow: hidden;
  }

  .sync-stage__core {
    gap: 8px;
    padding-bottom: 4px;
  }

  .sync-stage__rings {
    width: 88px;
    height: 88px;
  }

  .sync-stage__orb {
    width: 58px;
    height: 58px;
    border-radius: 18px;
  }

  .sync-stage__orb svg {
    width: 24px;
    height: 24px;
  }

  .sync-stage__title {
    margin-top: 8px;
    font-size: 20px;
  }

  .sync-stage__live {
    padding: 6px 12px;
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  .sync-stage__status {
    height: 16px;
    margin-top: 0;
  }

  .sync-stage__status-item {
    font-size: 12px;
  }

  .sync-stage__grid {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 12px;
  }

  .sync-stage__col {
    gap: 10px;
  }

  .sync-stage__beam {
    height: 36px;
  }

  .sync-stage__device {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 14px;
    padding: 16px 14px 14px;
    border-radius: 18px;
    min-height: auto;
  }

  .sync-stage__device-head {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
  }

  .sync-stage__device-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .sync-stage__device-icon svg {
    width: 20px;
    height: 20px;
  }

  .sync-stage__device-title {
    font-size: 20px;
  }

  .sync-stage__device-desc {
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.5;
  }

  .sync-stage__device-visual,
  .sync-stage__device-visual--phone {
    min-height: auto;
    padding-top: 0;
    align-items: center;
  }

  .sync-stage__asset,
  .sync-stage__asset--mac,
  .sync-stage__asset--ipad,
  .sync-stage__asset--iphone {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
  }

  .sync-stage__asset--iphone {
    width: min(72vw, 240px);
  }

  .collab__visual {
    min-height: 320px;
  }

  .collab__people {
    width: min(100%, 320px);
    height: 320px;
  }

  .collab__person {
    width: 116px;
    height: 214px;
    border-radius: 22px;
  }

  .collab__person--1 {
    top: 34px;
    left: 0;
  }

  .collab__person--2 {
    top: 92px;
    left: 102px;
  }

  .collab__person--3 {
    top: 18px;
    right: 0;
  }

  .cta__actions {
    justify-content: center;
  }

  .cta__actions .btn,
  .cta__appstore {
    width: 100%;
    justify-content: center;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .footer__nav {
    justify-content: center;
    flex-wrap: wrap;
  }
}
