/* Arc free-component interaction guidance, adapted to the existing static site.
   References and implementation scope: docs/arc-ui-optimization.md. */
:root { --ui-ease: cubic-bezier(.23,1,.32,1); --ui-fast: 160ms; --ui-enter: 260ms; }
.section h2 { letter-spacing: -.02em; }
body[data-lang="en"] .section h2 { letter-spacing: .01em; font-size: clamp(34px,4.3vw,62px); }
body[data-lang="en"] .hero h1 { letter-spacing: .01em; }
[hidden] { display: none !important; }
.menu-toggle svg, .carousel-playback svg, dialog .close svg, .search-field svg,
.capture-glyph svg, .service-card-top i svg, .intro-action-icon svg {
  width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; flex: none;
}
header:has(.mobile-navigation) { position: fixed; height: 86px; transition: background var(--ui-fast), color var(--ui-fast), box-shadow var(--ui-fast); }
header:has(.mobile-navigation).is-scrolled, header:has(.mobile-navigation).menu-open {
  background: #fffaf5; color: var(--ink); box-shadow: 0 1px 0 #2d252b26;
}
header.is-scrolled .nav, header.menu-open .nav { border-color: transparent; }
header.is-scrolled .brand, header.menu-open .brand, header.is-scrolled .links a, header.menu-open .links a { color: var(--ink); }
header.is-scrolled .language, header.menu-open .language { color: var(--ink); border-color: var(--ink); }
.links { gap: clamp(12px,1.8vw,26px); }
.links a[aria-current="location"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 0; align-items: center; justify-content: center; border: 1.5px solid currentColor; border-radius: 7px; background: transparent; color: inherit; cursor: pointer; }
.mobile-navigation { position: absolute; top: 100%; left: max(16px,calc((100% - 1260px)/2)); right: max(16px,calc((100% - 1260px)/2)); padding: 12px; background: #fffaf5; border: 1.5px solid var(--ink); border-radius: 0 0 16px 16px; box-shadow: 6px 6px 0 #ead3d3; color: var(--ink); display: grid; grid-template-columns: 1fr 1fr; gap: 8px; transform-origin: top; }
.mobile-navigation a { min-height: 48px; display: flex; align-items: center; padding: 10px 14px; text-decoration: none; font-size: 16px; font-weight: 700; border-radius: 8px; }
.mobile-navigation a:hover, .mobile-navigation a:focus-visible { background: #f9e5e4; }
.feature-filter { display: inline-flex; position: relative; isolation: isolate; gap: 4px; padding: 5px; margin: 10px 0 8px; max-width: 100%; background: #eaded3; border: 1px solid #b8a89d; border-radius: 12px; }
.feature-filter button { position: relative; z-index: 1; min-height: 44px; padding: 10px 18px; background: transparent; color: #625550; border: 0; border-radius: 8px; font: 700 14px/1.25 "LivePocket Sans",sans-serif; cursor: pointer; white-space: nowrap; transition: color var(--ui-fast); }
.feature-filter button[aria-pressed="true"] { color: var(--red-dark); }
.filter-highlight { position: absolute; top: 5px; left: 0; bottom: 5px; background: #fffaf5; border-radius: 8px; box-shadow: 0 1px 3px #2d252b26; pointer-events: none; }
.feature-ledger { align-content: start; }
.features-section { padding-block: 40px; }
.feature-layout { margin-top: 8px; }
.feature-ledger article { transform-origin: top left; }
.feature-media-label { line-height: 1.4; }
.device-shot .screen-button { border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: visible; }
.device-shot img { filter: drop-shadow(8px 10px 0 #bfcdc1); }
.carousel-controls button { width: 44px; height: 44px; }
.carousel-controls output { font-variant-numeric: tabular-nums; }
.carousel-playback { display: grid; place-items: center; margin-right: 5px; }
.carousel-playback[aria-pressed="true"] { background: #f7d5d7; }
.carousel-playback[aria-disabled="true"] { opacity: .6; }
.carousel-playback svg { width: 20px; height: 20px; }
.carousel-controls button:hover { translate: none; }
dialog { width: min(680px,calc(100vw - 24px)); height: min(1000px,calc(100dvh - 24px)); padding: 54px 16px 116px; border: 1.5px solid #2d252b; border-radius: 16px; box-shadow: 0 20px 70px #0004; }
dialog::backdrop { background: #211a24ed; }
.gallery-title { position: absolute; top: 18px; left: 20px; right: 68px; margin: 0; font: 700 16px/1.3 "LivePocket Sans",sans-serif; color: #2d252b; }
dialog .close { display: grid; place-items: center; width: 44px; height: 44px; top: 8px; right: 10px; padding: 0; background: #fffaf5; border: 1px solid #b8a89d; border-radius: 8px; color: #2d252b; }
.gallery-caption { position: absolute; left: 20px; right: 20px; bottom: 57px; margin: 0; color: #625550; font: 400 12px/1.5 "LivePocket Sans",sans-serif; text-align: center; }
.gallery-controls { bottom: 10px; gap: 24px; }
.gallery-controls button { width: 44px; height: 44px; }
.support-search { margin: 20px 0 26px; }
.support-search label { display: block; margin-bottom: 9px; font: 700 14px/1.5 "LivePocket Sans",sans-serif; color: #625550; }
.search-field { display: flex; gap: 12px; align-items: center; min-height: 52px; border: 1.5px solid #a89a91; border-radius: 10px; padding: 4px 8px 4px 16px; background: #fff; color: #625550; transition: border-color var(--ui-fast), box-shadow var(--ui-fast); }
.search-field:focus-within { border-color: #a93345; box-shadow: 0 0 0 3px #a9334514; }
.search-field input { min-width: 0; width: 100%; border: 0; outline: 0; padding: 8px 0; background: transparent; color: #2d252b; font: 400 16px/1.5 "LivePocket Sans",sans-serif; }
.search-field input:focus-visible { outline: none !important; }
.search-field input::-webkit-search-cancel-button { display: none; }
.search-field button { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 6px; padding: 0; color: #625550; background: #f5eeea; }
.search-field .search-clear[hidden] { display: grid !important; visibility: hidden; }
.search-status { min-height: 21px; margin: 9px 0 0; color: #625550; font: 400 13px/1.6 "LivePocket Sans",sans-serif; }
.search-empty { padding: 22px; margin: 14px 0; border: 1px dashed #a89a91; border-radius: 10px; font-size: 15px; background: #fffaf5; }
.capture-glyph svg { width: 32px; height: 32px; }
.capture-glyph, .service-card-top i { display: grid; place-items: center; }
.service-card-top i svg { width: 28px; height: 28px; }
@media (max-width: 1000px) {
  .links > a:not(.nav-download) { display: none; }
  .menu-toggle { display: inline-flex; }
  header:has(.mobile-navigation) { height: 76px; }
  .links { gap: 8px; }
}
@media (max-width: 1050px) {
  .feature-media-label { flex-direction: column; align-items: flex-start; gap: 8px; margin: 18px 18px 0; padding-bottom: 12px; }
}
@media (min-width: 701px) and (max-width: 1050px) {
  .feature-ledger article { padding-block: 8px; }
  .feature-filter { margin-block: 6px; }
  .device-copy h2 { font-size: clamp(34px,4.4vw,42px); }
}
@media (max-width: 700px) {
  .service-card-top i { display: none; }
  header:has(.mobile-navigation) { height: 68px; }
  .nav { gap: 8px; }
  .brand { gap: 7px; font-size: 21px; }
  .brand img { width: 32px; height: 32px; }
  .brand-dot { display: none; }
  .links .language { min-width: 44px; height: 44px; padding: 0 6px; }
  .feature-filter { display: flex; width: 100%; margin: 8px 0 12px; }
  .feature-filter button { flex: 1; padding: 10px 8px; font-size: 12px; }
  .carousel-bar { flex-wrap: wrap; gap: 12px; }
  .carousel-bar > span { flex: 1 0 100%; }
  .carousel-controls { width: 100%; gap: 12px; }
  .carousel-controls output { margin-right: auto; }
  .carousel-controls button { width: 44px; height: 44px; }
  .gallery-caption { font-size: 11px; }
}
@media (max-width: 370px) {
  .links .nav-download { display: none; }
  .brand { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .feature-filter button, .search-field, header:has(.mobile-navigation) { transition: none; }
}
