/* Shared vector icons keep their shape across system fonts and mobile browsers. */
.ui-icon { display: block; width: 20px; height: 20px; flex: 0 0 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.button-icon { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; background: #101c3014; }
.button.primary { gap: 20px; }
.button-icon .ui-icon { transition: transform .2s ease; }
.screen-open-hint .ui-icon { width: 17px; height: 17px; flex-basis: 17px; }
#expand-image { display: inline-flex; align-items: center; gap: 10px; }
.dialog-close { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 8px; }
.image-toolbar .dialog-close { padding: 0; }
@media (hover: hover) and (pointer: fine) {
  .hero-bottom .button:hover .ui-icon { transform: translate(2px, -2px); }
  .dialog-close:hover { background: #0368fc26; }
}

@media (max-width: 700px) {
  .wrap { width: calc(100% - 40px); }
  .header { flex-wrap: wrap; column-gap: 12px; row-gap: 0; padding-block: 18px 8px; }
  .header nav { display: flex; order: 3; width: 100%; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 4px; border-top: 1px solid var(--brand-line); font-size: 12px; }
  .header nav a { display: flex; align-items: center; min-height: 44px; }
  .header .button.small { min-height: 44px; padding: 9px 12px; }
  .hero { padding-top: 32px; }
  .hero h1 { font-size: clamp(32px, 8.6vw, 52px); line-height: 1.14; letter-spacing: -.045em; text-wrap: balance; margin-block: 24px; }
  .hero-bottom { gap: 24px; }
  .hero-bottom p { font-size: 16px; line-height: 1.7; }
  .hero-bottom .button.primary { width: 100%; min-height: 56px; justify-content: space-between; padding: 12px 18px 12px 22px; border-radius: 10px; }
  .hero-line { margin-top: 32px; padding-block: 16px; }
  .product-frame { border-radius: 12px; }
  .product-frame .image-button, #gallery-button, #gallery-button[data-screen="operations"] { aspect-ratio: auto; }
  .product-frame .image-button img, #gallery-image { width: 100%; max-width: 100%; height: auto; object-fit: contain; border-radius: 0; }
  .screen-open-hint { position: static; justify-content: space-between; min-height: 44px; padding: 11px 13px; border: 0; border-top: 1px solid var(--brand-line); border-radius: 0; font-size: 11px; line-height: 1.4; box-shadow: none; }
  .hero-meta { align-items: center; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px; }
  .hero-meta .image-caption { max-width: none; flex: 1 1 200px; }
  .motion-toggle { min-height: 44px; padding-block: 8px; }
  .intro { padding-block: 64px; }
  h2 { font-size: clamp(30px, 7.8vw, 40px); line-height: 1.18; letter-spacing: -.035em; text-wrap: balance; }
  .section-heading { margin-bottom: 28px; }
  .section-heading > p { margin-top: 20px; line-height: 1.7; }
  .showcase { padding-block: 56px; }
  .screen-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .screen-tabs button { min-width: 0; min-height: 50px; padding: 10px 7px; font-size: 12px; line-height: 1.35; text-wrap: balance; }
  .screen-foot { gap: 10px; padding: 16px; }
  #expand-image { min-height: 44px; }
  .steps { gap: 28px 20px; }
  .steps li { min-width: 0; }
  .steps h3 { font-size: 19px; line-height: 1.25; }
  .demo-section { padding: 26px 14px; gap: 28px; border-radius: 16px; }
  .demo-copy { min-width: 0; padding-inline: 4px; }
  .demo-copy h2 { font-size: clamp(35px, 9.5vw, 46px); line-height: 1.12; letter-spacing: -.035em; }
  .form-card { min-width: 0; padding: 24px 16px; }
  .form-card > h3 { font-size: 25px; line-height: 1.2; }
  .form-card input, .form-card textarea { font-size: 16px; min-height: 48px; }
  .form-card .submit { min-height: 52px; }
  .form-privacy { line-height: 1.8; }
  .inline-button { min-height: 36px; }
  .faq { padding-block: 64px; }
  .faq h2 { font-size: clamp(30px, 7.8vw, 40px); }
  .faq-items summary { min-height: 44px; padding-right: 32px; font-size: 16px; line-height: 1.5; }
  .faq-items summary:after { top: 0; }
  footer { padding-block: 28px; gap: 20px; }
  footer > div:last-child a { display: inline-flex; align-items: center; min-height: 44px; }
  #image-dialog { width: calc(100% - 24px); max-height: calc(100svh - 24px); }
  .image-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto 44px; gap: 6px; padding: 12px 10px; }
  .image-toolbar strong { font-size: 13px; line-height: 1.3; }
  .image-toolbar p { max-width: none; font-size: 10px; line-height: 1.4; }
  .image-toolbar .zoom-button { min-height: 44px; padding: 8px; font-size: 11px; }
  .image-toolbar .dialog-close { width: 44px; height: 44px; }
  .image-viewport { max-height: calc(100svh - 172px); }
  #full-image { max-height: calc(100svh - 177px); }
  .image-viewport.is-zoomed #full-image { max-height: none; }
  .dialog-caption { padding: 10px 12px; font-size: 10px; line-height: 1.5; }
  #privacy-dialog { width: calc(100% - 28px); max-height: calc(100svh - 28px); padding: 60px 22px 24px; }
}

@media (max-width: 600px) {
  .module-grid { grid-template-columns: 1fr; gap: 12px; }
  .module-grid > article:nth-child(n) { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px 16px; padding: 22px 18px; }
  .module-grid article .module-number { grid-column: 1; grid-row: 1 / 4; margin-bottom: 0; }
  .module-grid article h3, .module-grid article p, .module-grid article .tags { grid-column: 2; margin: 0; }
  .module-grid article h3 { font-size: 19px; line-height: 1.3; }
  .module-grid article p { font-size: 14px; line-height: 1.7; }
  .module-grid article .tags { margin-top: 4px; }
}

@media (hover: none) and (pointer: coarse) {
  .button:hover, .module-grid article:hover { transform: none; }
}
