/* Mobile uses a flowing hero and readable type instead of a scaled desktop. */
@media (max-width: 650px) {
  .header, .header.scrolled { gap: 8px; background: #090909f5; }
  .brand { gap: 8px; }
  .brand-type { flex-direction: column; align-items: flex-start; gap: 3px; font-size: 22px; line-height: 1; }
  .brand-type > span { font-size: 14px; letter-spacing: .8px; }
  .header-contact { min-height: 44px; font-size: 14px; gap: 6px; }
  .header-contact .icon { width: 17px; height: 17px; }
  .menu-toggle { width: 44px; height: 44px; align-items: center; margin: 0; flex-shrink: 0; }
  .mobile-nav > a { font-size: 18px; }

  .hero { display: flex; flex-direction: column; height: auto; min-height: 0; padding-top: 115px; }
  .hero-content { order: 1; padding-top: 0; }
  .hero-line { animation-name: mobile-hero-in; }
  .hero-description, .hero-actions { animation: none; }
  .hero h1 { font-size: clamp(44px, 13.85vw, 64px); letter-spacing: -2.8px; line-height: 1.14; }
  .hero-description { font-size: 16px; line-height: 1.85; color: #c3c3c8; margin-top: 24px; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
  .button { font-size: 16px; min-height: 56px; padding: 14px 18px; gap: 16px; }
  .hero-actions .button { justify-content: center; gap: 12px; padding-inline: 10px; }
  .hero-actions .text-link { justify-content: center; font-size: 16px; gap: 8px; min-height: 56px; border: 1px solid #ffffff38; border-radius: 5px; }
  .hero-actions .icon { width: 18px; height: 18px; }
  .hero-art { position: relative; order: 2; inset: auto; width: 100%; height: clamp(340px, 105vw, 540px); margin-top: 24px; transform: none; will-change: auto; }
  .hero-art img { object-position: right center; mask-image: none; animation: none; }
  .hero-art-shade { background: linear-gradient(180deg, #090909 0%, transparent 5%, transparent 78%, #090909 100%); }
  .hero-caption { display: none; }
  .hero-bottom { position: relative; order: 3; inset: auto; justify-content: center; padding: 18px 0 28px; font-size: 14px; }
  .hero-bottom > span, .hero-bottom::before { display: none; }
  .hero-bottom > a { font-size: 14px; letter-spacing: .9px; color: #c3c3c8; }
  .scroll-line { height: 30px; }

  .section-top { align-items: flex-start; flex-direction: column; gap: 10px; }
  .eyebrow, .tiny-label { font-size: 14px; letter-spacing: 1px; }
  .section-note { font-size: 14px; line-height: 1.6; color: #b1b1b9; }
  .light-section .section-note { color: #62626c; }
  .intro-copy, .principle p, .admin-intro, .story-step p,
  .demo-heading p, .pricing-heading > p, .contact-content p { font-size: 16px; line-height: 1.85; }
  .intro-copy, .principle p, .demo-heading p, .pricing-heading > p { color: #5f5f69; }
  .principle, .principle:first-child, .principle:last-child { padding: 32px 0; }
  .principle-number, .principle:first-child .principle-number { position: static; display: block; font-size: 14px; color: #65656e; margin-bottom: 18px; }
  .principle-visual { top: 5px; width: 85px; height: 90px; transform: scale(.5); }
  .principle h3 { font-size: 23px; }
  .principle p { position: relative; z-index: 2; }
  .principle-en { font-size: 14px; letter-spacing: .7px; color: #696973; margin-top: 18px; }
  .admin-intro, .story-step p { color: #b6b6bf; }
  .story-step { opacity: 1; }
  .story-step > span { font-size: 14px; }
  .story-step h3 { font-size: 22px; }

  /* The example dashboard gets a mobile layout, keeping its labels readable. */
  .preview-meta { font-size: 14px; gap: 10px; flex-wrap: wrap; color: #b6b6bf; }
  .preview-meta > span:last-child { font-size: 14px; color: #c4c4ce; }
  .dashboard { grid-template-columns: minmax(0, 1fr); transform: none; }
  .dashboard-sidebar { display: none; }
  .dashboard-toolbar { height: auto; min-height: 50px; padding: 12px 14px; gap: 10px; flex-wrap: wrap; font-size: 14px; color: #62626e; }
  .sample-badge { font-size: 14px; color: #666670; }
  #preview-screen { padding: 20px 14px; }
  .screen-title { flex-wrap: wrap; gap: 14px; }
  .screen-title h3 { font-size: 23px; }
  .screen-title p { font-size: 14px; line-height: 1.7; color: #666670; }
  .screen-chip { font-size: 14px; padding: 7px 10px; }
  .metric-grid { grid-template-columns: 1fr; gap: 10px; margin-bottom: 16px; }
  .metric { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; align-items: center; padding: 14px; }
  .metric > span { font-size: 14px; color: #5d5d69; }
  .metric strong { grid-column: 2; grid-row: 1 / 3; font-size: 30px; margin: 0; }
  .metric strong > small { font-size: 14px; color: #62626c; }
  .metric em { grid-column: 1; font-size: 14px; color: #6d6d78; margin: 0; }
  .panel-label { font-size: 16px; flex-wrap: wrap; gap: 6px; }
  .panel-label > span { font-size: 14px; color: #666670; }
  .chart-area { height: 140px; }
  .chart-labels { font-size: 14px; color: #62626c; }
  .preview-footer { align-items: flex-start; gap: 12px; }
  .preview-footer > span { font-size: 14px; color: #aaaab5; line-height: 1.8; }
  .preview-dots { padding-top: 9px; }
  .screen-footnote { font-size: 14px; color: #666670; }

  .demo-category-nav { top: 67px; }
  .demo-category-nav a { font-size: 16px; flex-direction: column; gap: 8px; min-height: 95px; padding: 14px 4px; color: #62626c; }
  .category-label { max-width: none; min-height: 24px; }
  .category-count { width: 28px; height: 25px; font-size: 14px; color: #60606b; }
  .gallery-heading { flex-direction: column; align-items: flex-start; gap: 10px; }
  .gallery-heading h3 { font-size: 20px; }
  .gallery-heading h3 span { font-size: 14px; }
  .gallery-heading p { font-size: 16px; color: #62626c; }
  .gallery-heading > span { font-size: 14px; line-height: 1.7; color: #666670; }
  .demo-gallery { grid-template-columns: 1fr; gap: 24px; }
  .demo-card + .demo-card { border-top: 1px solid #c7c7cf; padding-top: 24px; }
  .window-toolbar { padding: 13px 14px; min-height: 42px; }
  .window-address { font-size: 14px; }
  .window-toolbar > .icon { width: 15px; height: 15px; }
  .preview-enter { font-size: 14px; padding: 11px 13px; }
  .preview-enter .icon { width: 16px; height: 16px; }
  .demo-card-heading { align-items: center; flex-wrap: wrap; gap: 16px; padding: 20px 0 10px; }
  .demo-card-info { flex: 1 1 195px; }
  .demo-card-heading h4 { font-size: 24px; line-height: 1.4; }
  .demo-domain { font-size: 14px; }
  .demo-open-link { font-size: 16px; min-height: 48px; padding-inline: 13px; }
  .demo-open-link .icon { width: 17px; height: 17px; }
  .gallery-footer p { font-size: 14px; color: #666670; }
  .gallery-footer a { font-size: 16px; white-space: normal; line-height: 1.7; min-height: 48px; margin-top: 15px; }

  .price-main > .tiny-label { font-size: 14px; color: #62626c; }
  .price-value { flex-wrap: wrap; gap: 10px; }
  .price-value > span { font-size: 14px; color: #62626c; }
  .price-main .button { min-height: 56px; }
  .price-scope > p { font-size: 18px; }
  .price-scope li { font-size: 16px; line-height: 1.75; color: #55555f; }
  .price-scope small { font-size: 14px; color: #64646f; line-height: 1.8; }
  .contact-section .section-note, .contact-content p { color: #542116; }
  .contact-orb { width: 148px; height: 148px; margin: 8px 0 0 auto; }
  .contact-orb > span { font-size: 16px; }
  .contact-bottom { flex-direction: column; align-items: flex-start; gap: 16px; font-size: 14px; letter-spacing: .8px; color: #542116; }
  .contact-bottom > a { font-size: 18px; min-height: 44px; }
  .footer > .container { gap: 24px; }
  .footer .brand-type { font-size: 22px; }
  .footer .brand-type > span { font-size: 14px; }
  .footer p { font-size: 14px; line-height: 1.8; color: #a1a1ad; }
  .footer > .container > a:last-child { font-size: 14px; min-height: 44px; letter-spacing: .5px; color: #b8b8c2; }
}

@keyframes mobile-hero-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 370px) {
  .hero-actions { grid-template-columns: 1fr; gap: 10px; }
  .hero-art { height: 350px; }
  .demo-category-nav a { font-size: 14px; }
  .demo-open-link { width: 100%; }
}
