.hero-title-mobile,
.hero-copy-mobile,
.hero-phone-mobile,
.mobile-sticky-cta,
.mobile-card-icon {
  display: none;
}

@media (min-width: 961px) {
  .hero-title-desktop,
  .hero-copy-desktop {
    display: inline;
  }
}

@media (max-width: 960px) and (min-width: 721px) {
  .hero-inner {
    gap: 30px;
  }

  .hero-panel {
    max-width: 720px;
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 76px;
  }

  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
    overflow-x: clip;
  }

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

  .header-inner,
  .section-inner {
    width: min(100% - 28px, 1120px);
  }

  .header-inner {
    min-height: 68px;
    padding: 8px 0;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .nav-menu-toggle {
    min-width: 48px;
    min-height: 48px;
    padding: 0 12px;
  }

  .site-header.nav-open .nav {
    max-height: calc(100dvh - 76px);
    padding: 10px 0 16px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .nav > a,
  .nav-link-button,
  .nav-button,
  .nav-customer-session,
  .language-toggle {
    min-height: 46px;
  }

  .hero {
    background-position: 72% top;
    background-size: auto 520px;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(3, 12, 28, 0.18) 0%, rgba(3, 12, 28, 0.88) 395px, #071326 620px),
      linear-gradient(90deg, rgba(3, 11, 26, 0.94) 0%, rgba(7, 24, 52, 0.56) 100%);
  }

  .hero-inner {
    gap: 22px;
    min-height: auto;
    padding: 30px 0 34px;
  }

  .hero .eyebrow {
    margin-bottom: 14px;
  }

  .hero h1 {
    max-width: 100%;
    margin: 0 0 16px;
    font-size: clamp(36px, 9.6vw, 42px);
    line-height: 1.08;
    letter-spacing: -0.045em;
    word-break: keep-all;
  }

  .hero-title-desktop,
  .hero-copy-desktop {
    display: none;
  }

  .hero-title-mobile,
  .hero-copy-mobile,
  .hero-phone-mobile {
    display: inline;
  }

  .hero-phone-desktop {
    display: none;
  }

  .hero-copy {
    max-width: 34rem;
    margin-bottom: 22px;
    font-size: 16px;
    line-height: 1.58;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .hero-actions .button {
    min-width: 0;
    min-height: 52px;
    padding: 0 12px;
    font-size: 15px;
  }

  .hero-actions .hero-phone-link {
    grid-column: 1 / -1;
    justify-content: flex-start;
    min-height: 44px;
    padding: 0 2px;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 4px;
  }

  .hero-panel {
    padding: 14px;
    border-radius: 22px;
  }

  .hero-preview-heading {
    margin-bottom: 10px;
  }

  .hero-preview-heading span,
  .hero-preview-heading strong {
    font-size: 12px;
  }

  .hero-preview-window {
    height: 178px;
    border-radius: 14px;
    overflow: hidden;
  }

  .hero-preview-window picture {
    display: block;
    width: 100%;
    height: 100%;
  }

  .hero-preview-window img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 58% 18%;
    transform: scale(1.18);
    transform-origin: 58% 18%;
  }

  .hero-preview-caption {
    right: 8px;
    bottom: 8px;
    left: 8px;
    padding: 8px 10px;
    font-size: 11px;
    line-height: 1.35;
  }

  .hero-panel > h2,
  .hero-panel > p,
  .hero-preview-flow {
    display: none;
  }

  section {
    padding: 54px 0;
  }

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

  .section-heading h2 {
    font-size: clamp(28px, 7.6vw, 34px);
    line-height: 1.18;
  }

  .section-heading p {
    font-size: 15px;
    line-height: 1.62;
  }

  .product-flow,
  .workflow-compare,
  .pricing-grid,
  #payments .card-grid {
    display: flex;
    gap: 12px;
    max-width: 100%;
    margin-right: 0;
    padding-right: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 0;
    overscroll-behavior-inline: contain;
    touch-action: pan-x pan-y;
    scrollbar-width: none;
  }

  .product-flow::-webkit-scrollbar,
  .workflow-compare::-webkit-scrollbar,
  .pricing-grid::-webkit-scrollbar,
  #payments .card-grid::-webkit-scrollbar {
    display: none;
  }

  .product-flow {
    grid-template-columns: none;
  }

  .product-flow-step {
    flex: 0 0 min(76vw, 288px);
    min-height: 126px;
    padding: 16px;
    scroll-snap-align: start;
  }

  .product-flow-step p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .workflow-showcase {
    margin-top: 16px;
    border-radius: 20px;
  }

  .workflow-summary {
    gap: 10px;
    padding: 18px 16px;
  }

  .workflow-summary h3 {
    margin-bottom: 7px;
    font-size: 22px;
    line-height: 1.28;
  }

  .workflow-summary-copy > p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .workflow-connection {
    width: 100%;
    justify-content: center;
    font-size: 11px;
  }

  .workflow-compare {
    padding: 14px 14px 18px;
  }

  .workflow-pane {
    flex: 0 0 calc(100vw - 56px);
    max-width: 430px;
    scroll-snap-align: center;
  }

  .workflow-bridge {
    display: none;
  }

  .workflow-pane-heading {
    min-height: 74px;
    padding: 14px;
  }

  .workflow-frame-link {
    min-height: 260px;
  }

  .workflow-frame-image {
    width: 100%;
    height: 270px;
    object-fit: cover;
    object-position: center top;
  }

  .workflow-frame-image[src*="04-home-profile-input-focused"] {
    object-fit: contain;
    background: #f8fafc;
  }

  #features .card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  #features .card,
  #payments .card {
    padding: 16px;
    border-radius: 16px;
  }

  .mobile-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 12px;
    border-radius: 12px;
    background: #eff6ff;
    color: #2563eb;
  }

  .mobile-card-icon svg {
    width: 21px;
    height: 21px;
  }

  #features .card h3,
  #payments .card h3 {
    margin-bottom: 7px;
    font-size: 16px;
    line-height: 1.34;
  }

  #features .card p,
  #payments .card p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  #payments .card {
    flex: 0 0 min(84vw, 350px);
    scroll-snap-align: center;
  }

  .pricing-grid {
    grid-template-columns: none;
    align-items: stretch;
  }

  .price-card {
    flex: 0 0 min(87vw, 370px);
    scroll-snap-align: center;
  }

  .price-card:not(.mobile-benefits-expanded) li:nth-child(n + 4) {
    display: none;
  }

  .price-card:not(.mobile-benefits-expanded) ul::after {
    display: block;
    margin-top: 12px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
    content: "요금제를 선택하면 전체 혜택을 확인할 수 있습니다.";
  }

  html[lang="en"] .price-card:not(.mobile-benefits-expanded) ul::after {
    content: "Select a plan to view all benefits.";
  }

  .mobile-sticky-cta {
    position: fixed;
    z-index: 1100;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 9px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -14px 30px rgba(15, 23, 42, 0.13);
    backdrop-filter: blur(14px);
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .mobile-sticky-cta .button {
    min-width: 0;
    min-height: 48px;
    padding: 0 10px;
  }

  .mobile-sticky-cta .button:last-child {
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
  }

  body.mobile-modal-open .mobile-sticky-cta,
  body.mobile-keyboard-open .mobile-sticky-cta,
  body.mobile-nav-open .mobile-sticky-cta,
  .mobile-sticky-cta.is-hero-actions-visible,
  .mobile-sticky-cta.is-footer-visible {
    pointer-events: none;
    opacity: 0;
    transform: translateY(110%);
  }

  .inquiry-dialog-backdrop {
    z-index: 1300;
  }

  .inquiry-dialog {
    max-height: calc(100dvh - 16px);
    overflow: auto;
  }

  .workflow-image-dialog,
  .workflow-image-dialog img {
    max-width: calc(100vw - 20px);
    max-height: calc(100dvh - 72px);
  }
}

@media (max-width: 374px) {
  .header-inner,
  .section-inner {
    width: min(100% - 24px, 1120px);
  }

  .hero h1 {
    font-size: 35px;
  }

  .hero-actions .button {
    font-size: 14px;
  }

  .workflow-pane {
    flex-basis: calc(100vw - 48px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-sticky-cta,
  .product-flow,
  .workflow-compare,
  .pricing-grid,
  #payments .card-grid {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
