/* anaf-explorer page, mobile layout (screens up to 720px). Self-contained: no file is shared between pages. */
:root {
  --color-bg: #fafafa;
  --color-surface: #ffffff;
  --color-border: #e0e0e0;
  --color-text: #1a1a1a;
  --color-text-secondary: #555555;
  --color-primary: #2d5be3;
  --color-primary-hover: #1b41b8;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font-family: var(--font-sans); background: var(--color-bg); color: var(--color-text); line-height: 1.5; position: relative; overflow-x: hidden; }
.wave { position: absolute; top: 0; right: 0; height: auto; pointer-events: none; user-select: none; z-index: 0; }
.top { position: sticky; top: 0; z-index: 20; padding: .7rem 1.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; background: transparent; pointer-events: none; }
.top a { pointer-events: auto; }
.top-actions { display: flex; gap: .6rem; }
.b-short { display: none; }
.to-top { position: fixed; right: 1rem; bottom: 1rem; z-index: 30; display: inline-flex; align-items: center; gap: .45rem; padding: .65rem 1rem; font: inherit; font-size: .95rem; font-weight: 600; color: #fff; background: var(--color-primary); border: 0; border-radius: 999px; box-shadow: 0 8px 24px rgba(26, 40, 90, .25); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; }
.to-top.visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover, .to-top:focus-visible { background: var(--color-primary-hover); }
.to-top:focus-visible { outline: 3px solid #9db4f5; outline-offset: 2px; }
.to-top .arrow { font-size: 1.1rem; line-height: 1; }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }
.menu { display: none; }
.nav-link { align-self: center; padding: 0 .5rem; color: var(--color-primary); text-decoration: none; font-size: .95rem; }
.nav-link:hover, .nav-link:focus-visible { color: var(--color-primary-hover); text-decoration: underline; }
.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-family: var(--font-sans); border: 1px solid transparent; border-radius: 10px; text-align: center; transition: background .15s, border-color .15s, color .15s; }
.btn-sm { padding: .45rem 1rem; font-size: .95rem; }
.btn-primary { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--color-primary-hover); border-color: var(--color-primary-hover); }
.btn-secondary { background: var(--color-surface); border-color: var(--color-primary); color: var(--color-primary); }
.btn-secondary:hover, .btn-secondary:focus-visible { color: var(--color-primary-hover); border-color: var(--color-primary-hover); }
.btn:focus-visible { outline: 3px solid #9db4f5; outline-offset: 2px; }
.back { color: var(--color-primary); text-decoration: none; font-size: .95rem; }
.back:hover, .back:focus-visible { color: var(--color-primary-hover); text-decoration: underline; }
.product-main { position: relative; z-index: 1; margin: 0 auto; text-align: center; }
.product-logo { width: auto; max-width: 100%; object-fit: contain; }
.lead { color: var(--color-text-secondary); margin: 0 0 1.2rem; }
.status { display: inline-block; margin: 0 0 1rem; padding: .2rem .8rem; border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-surface); font-size: .9rem; color: var(--color-text-secondary); }
.status-soon { border-color: var(--color-primary); color: var(--color-primary); }
.intro { color: var(--color-text); margin: 0 auto; }
.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--color-border); border-radius: 10px; background: var(--color-surface); box-shadow: 0 6px 24px rgba(26, 40, 90, .10); }
.shot figcaption { margin-top: .6rem; color: var(--color-text-secondary); font-size: .9rem; }
.fine { color: var(--color-text-secondary); font-size: .85rem; }
.legal { position: relative; z-index: 1; text-align: center; padding: 1.4rem 1rem 4.8rem; font-size: .85rem; }
.legal a { color: var(--color-text-secondary); text-decoration: none; }
.legal a:hover, .legal a:focus-visible { color: var(--color-text); text-decoration: underline; }
.wave { width: 100vw; }
.product-main { padding: 1rem 1.2rem 1rem; }
.product-logo { height: 150px; }
h1 { font-size: 1.8rem; margin: .8rem 0 .3rem; }
.lead { font-size: 1.08rem; }
.intro { font-size: 1rem; }
.hero-shot { margin-top: 1.6rem; }
.features { position: relative; z-index: 1; padding: 0 1.2rem; margin-top: 1rem; }
.feature { display: grid; grid-template-columns: 1fr; gap: 1.1rem; padding: 2rem 0; border-top: 1px solid var(--color-border); }
.feature h3 { font-size: 1.2rem; margin: 0 0 .6rem; }
.feature p { margin: 0; color: var(--color-text-secondary); }
.steps { position: relative; z-index: 1; margin-top: 1rem; padding: 2rem 1.2rem; border-top: 1px solid var(--color-border); text-align: center; }
.steps h2 { font-size: 1.3rem; margin: 0 0 1.1rem; }
.steps ol { list-style: none; counter-reset: step; display: grid; grid-template-columns: 1fr; gap: .9rem; margin: 0; padding: 0; }
.steps li { counter-increment: step; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 10px; padding: 1rem; }
.steps li::before { content: counter(step); display: block; margin: 0 auto .5rem; width: 2rem; height: 2rem; line-height: 2rem; border-radius: 50%; background: var(--color-primary); color: #fff; font-weight: 650; }
.closing { position: relative; z-index: 1; text-align: center; padding: 1rem 1.2rem 3rem; color: var(--color-text-secondary); }
.closing p { margin: .3rem 0; }
.toc { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 1.4rem; }
.toc a { padding: .35rem .9rem; border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-surface); color: var(--color-primary); text-decoration: none; font-size: .95rem; }
.toc a:hover, .toc a:focus-visible { border-color: var(--color-primary); }
.group { padding-top: 2rem; scroll-margin-top: 5.5rem; }
.group-title { font-size: 1.6rem; margin: 0; text-align: center; }
.group-text { margin: .4rem 0 0; text-align: center; color: var(--color-text-secondary); }
.group .feature:first-of-type { border-top: 0; }
.zoomable { display: block; cursor: zoom-in; }
.lightbox { border: 0; padding: 0; margin: 0; max-width: none; max-height: none; width: 100vw; height: 100vh; background: rgba(15, 20, 35, .88); }
.lightbox::backdrop { background: rgba(15, 20, 35, .88); }
.lightbox[open] { display: block; }
.lb-scroll { width: 100%; height: 100%; overflow: auto; display: flex; align-items: flex-start; justify-content: center; padding: 3.4rem .5rem 1rem; }
.lb-img { display: block; max-width: 100%; height: auto; cursor: zoom-in; border-radius: 6px; background: #fff; }
.lb-scroll.full .lb-img { max-width: none; width: auto; cursor: zoom-out; }
.lb-close { position: fixed; top: .8rem; right: 1rem; z-index: 2; width: 2.4rem; height: 2.4rem; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; background: rgba(15,20,35,.7); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.lb-close:hover, .lb-close:focus-visible { background: var(--color-primary); border-color: var(--color-primary); outline: none; }
.lb-hint { position: fixed; left: 0; right: 0; top: .9rem; text-align: center; color: #fff; font-size: .9rem; opacity: .85; pointer-events: none; }
.b-long { display: none; }
.b-short { display: inline; }
.top { flex-wrap: wrap; padding: .55rem .9rem; gap: .3rem .5rem; }
.back { font-size: .9rem; white-space: nowrap; }
.top-actions { gap: .4rem; }
.nav-link { padding: 0 .25rem; font-size: .9rem; white-space: nowrap; }
.btn-sm { padding: .4rem .7rem; font-size: .85rem; white-space: nowrap; }
.menu { display: none; }
@media (max-width: 440.98px) {
  .back, .top-actions { display: none; }
  .top { justify-content: flex-end; padding: .5rem .8rem; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--color-border); border-radius: 12px; background: rgba(255, 255, 255, .95); cursor: pointer; pointer-events: auto; -webkit-tap-highlight-color: transparent; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu summary:focus-visible { outline: 3px solid #9db4f5; outline-offset: 2px; }
  .burger { position: relative; display: block; width: 22px; height: 20px; border-radius: 2px; background: repeating-linear-gradient(to bottom, var(--color-text) 0 2px, transparent 2px 6px); background-size: 100% 20px; background-repeat: no-repeat; }
  .burger::before, .burger::after { content: ""; position: absolute; left: 0; top: 9px; width: 100%; height: 2px; border-radius: 2px; background: var(--color-text); opacity: 0; transition: transform .15s, opacity .15s; }
  .menu[open] .burger { background: none; }
  .menu[open] .burger::before { opacity: 1; transform: rotate(45deg); }
  .menu[open] .burger::after { opacity: 1; transform: rotate(-45deg); }
  .menu-panel { position: absolute; right: 0; top: calc(100% + .5rem); width: min(17rem, calc(100vw - 1.6rem)); display: flex; flex-direction: column; gap: .2rem; padding: .5rem; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 14px; box-shadow: 0 12px 36px rgba(26, 40, 90, .18); pointer-events: auto; }
  .menu-panel a { display: block; padding: .8rem 1rem; border-radius: 10px; color: var(--color-text); text-decoration: none; font-size: 1.05rem; }
  .menu-panel a:hover, .menu-panel a:focus-visible { background: #f1f4fc; }
  .menu-panel a[aria-current="page"] { color: var(--color-primary); font-weight: 600; }
  .menu-panel .menu-cta { margin-top: .3rem; background: var(--color-primary); color: #fff; text-align: center; font-weight: 600; }
  .menu-panel .menu-cta:hover, .menu-panel .menu-cta:focus-visible { background: var(--color-primary-hover); }
}
