/* Approved iPhone homepage. Desktop keeps the existing LIVE hero unchanged. */
.home-mobile-showcase {
  display: none;
}

@media (max-width: 640px) {
  body.home-body {
    overflow-x: clip;
  }

  body.home-body > main.home {
    display: block !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  body.home-body > main.home > .hero {
    display: none !important;
  }

  .home-mobile-showcase,
  .home-mobile-showcase * {
    box-sizing: border-box;
  }

  .home-mobile-showcase {
    --home-ink: #1d1d1f;
    --home-muted: #606064;
    --home-surface: #f5f5f7;
    --home-section-gap: 14px;
    display: block;
    width: 100%;
    padding: calc(46px + env(safe-area-inset-top)) 0 0;
    background: #fff;
    color: var(--home-ink);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  }

  .home-mobile-showcase h1,
  .home-mobile-showcase h2,
  .home-mobile-showcase p,
  .home-mobile-showcase figure {
    margin: 0;
  }

  .home-mobile-showcase h1,
  .home-mobile-showcase h2 {
    font-size: clamp(37px, 10.5vw, 46px);
    font-weight: 650;
    line-height: 1.04;
    letter-spacing: -0.045em;
  }

  .home-mobile-showcase .home-support-panel,
  .home-mobile-showcase .home-knowledge,
  .home-mobile-showcase .home-photography {
    width: 100%;
    margin: 0;
    overflow: hidden;
  }

  .home-mobile-showcase .home-knowledge,
  .home-mobile-showcase .home-photography {
    margin-top: var(--home-section-gap);
    background: var(--home-surface);
  }

  .home-mobile-showcase .home-support-panel {
    position: relative;
    height: clamp(570px, 158vw, 660px);
    background: #111;
    isolation: isolate;
  }

  .home-mobile-showcase .home-support-panel::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.34);
    content: "";
    pointer-events: none;
  }

  .home-mobile-showcase .home-support-copy {
    position: relative;
    z-index: 2;
    display: flex;
    width: 100%;
    height: auto;
    padding: 46px 22px 0;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    color: #fff;
    text-align: center;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.46);
  }

  .home-mobile-showcase .home-support-copy > h1 {
    color: inherit !important;
  }

  .home-mobile-showcase .home-support-copy > p {
    max-width: 350px;
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.94);
    font-size: 18px;
    font-weight: 430;
    line-height: 1.43;
    letter-spacing: -0.018em;
  }

  .home-mobile-showcase .home-actions {
    display: flex;
    margin-top: 26px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .home-mobile-showcase .home-action {
    display: inline-flex;
    min-height: 48px;
    padding: 12px 20px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.015em;
    text-decoration: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 180ms ease, color 180ms ease, transform 180ms cubic-bezier(0.32, 0.72, 0, 1);
  }

  .home-mobile-showcase .home-action-primary {
    background: var(--home-ink);
    color: #fff !important;
  }

  .home-mobile-showcase .home-support-copy .home-action-primary {
    background: #fff;
    color: #111 !important;
    text-shadow: none;
  }

  .home-mobile-showcase .home-action:active {
    transform: scale(0.97);
  }

  .home-mobile-showcase .home-action:focus-visible,
  .home-mobile-showcase .home-knowledge-card:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 4px;
  }

  .home-mobile-showcase .home-support-picture {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    overflow: hidden;
  }

  .home-mobile-showcase .home-support-picture img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 58%;
  }

  .home-mobile-showcase .home-knowledge {
    padding: 46px 12px;
  }

  .home-mobile-showcase .home-knowledge-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .home-mobile-showcase .home-knowledge-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    border-radius: 18px;
    background: #fff;
    color: var(--home-ink) !important;
    text-decoration: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 180ms ease;
  }

  .home-mobile-showcase .home-knowledge-media,
  .home-mobile-showcase .home-knowledge-card-steve .home-knowledge-media {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 18px 18px 0 0;
    background: #ececef;
  }

  .home-mobile-showcase .home-knowledge-card-steve .home-knowledge-media {
    aspect-ratio: 16 / 9;
  }

  .home-mobile-showcase .home-knowledge-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .home-mobile-showcase .home-knowledge-card-setup .home-knowledge-media img {
    object-fit: contain;
  }

  .home-mobile-showcase .home-knowledge-copy,
  .home-mobile-showcase .home-knowledge-card-steve .home-knowledge-copy {
    display: flex;
    min-height: 230px;
    padding: 27px 20px 30px;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .home-mobile-showcase .home-knowledge-copy h2 {
    font-size: 29px;
    line-height: 1.08;
  }

  .home-mobile-showcase .home-knowledge-copy p {
    max-width: 600px;
    margin-top: 13px;
    color: var(--home-muted);
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: -0.012em;
  }

  .home-mobile-showcase .home-photography {
    padding: 46px 6px 6px;
  }

  .home-mobile-showcase .home-photography-heading {
    display: flex;
    padding: 0 18px 34px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .home-mobile-showcase .home-photography-heading p {
    max-width: 350px;
    margin-top: 14px;
    color: var(--home-muted);
    font-size: 18px;
    line-height: 1.42;
    letter-spacing: -0.015em;
  }

  .home-mobile-showcase .home-photography-heading .home-action {
    margin-top: 25px;
  }

  .home-mobile-showcase .home-photo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .home-mobile-showcase .home-photo {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 14px;
    background: #e8e8eb;
  }

  .home-mobile-showcase .home-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
}

@media (max-width: 360px) {
  .home-mobile-showcase .home-actions,
  .home-mobile-showcase .home-action {
    width: 100%;
  }
}

@media (max-width: 640px) and (max-height: 500px) and (orientation: landscape) {
  .home-mobile-showcase .home-support-panel {
    height: 460px;
  }
}

@media (max-width: 640px) and (prefers-reduced-motion: reduce) {
  .home-mobile-showcase *,
  .home-mobile-showcase *::before,
  .home-mobile-showcase *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
