/* Momentile v2: vector wordmark, app mark, app-screen theme */
.site-logo{display:inline-flex;align-items:center;color:var(--ink);line-height:0}
.site-logo .wm{height:21px;width:auto;display:block}
.site-logo-sm .wm{height:17px}

/* lockup tiles (2x2 cluster + i-dot), same fills as the app's wordmarkClusterTiles:
   dark → TL/BR dark grey, TR light grey, BL accent; light swaps the greys */
.wm .wm-a{fill:var(--indigo)}
.wm .wm-b{fill:var(--mark-base,#3A3A44)}
.wm .wm-c{fill:var(--mark-contrast,#D2D2DA)}

/* app header lockup */
.app-head .brand{gap:6px;color:var(--ink)}
.app-head .brand .wm{height:15px;width:auto;display:block;margin-top:-2px}

/* app-screen theme (phones only; the site stays dark-first) */
[data-app-theme="light"] .phone-screen{
  --bg:#FBFBFD;--bg-2:#F4F4F8;--surface:#FFFFFF;--surface-2:#F4F4F7;
  --hairline:#E6E6EC;--hairline-soft:rgba(22,22,29,0.07);
  --ink:#16161D;--ink-2:#44444C;--muted:#6B6B76;--muted-2:#8A8A95;
  --indigo-bright:#5B4BD6;--mark-base:#D2D2DA;--mark-contrast:#3A3A44;
}
[data-app-theme="light"] .phone-screen .zoompill{background:rgba(255,255,255,0.92)}
[data-app-theme="light"] .phone-screen .loupe-tag{background:rgba(255,255,255,0.97);box-shadow:0 6px 16px -6px rgba(22,22,29,0.18)}
[data-app-theme="light"] .phone-screen .loupe-lens{border-color:rgba(108,92,231,0.45);box-shadow:0 12px 26px -8px rgba(22,22,29,0.28),0 0 0 4px rgba(108,92,231,0.1)}
[data-app-theme="light"] .phone-screen .cat-chip.sel{color:var(--ink);background:rgba(108,92,231,0.1)}
[data-app-theme="light"] .phone-screen .cd-rbtn.sel{--shape-bg:#EEEBFD;background:rgba(108,92,231,0.1)}
[data-app-theme="light"] .phone-screen .sheet-scrim{background:rgba(22,22,29,0.28)}
[data-app-theme="light"] .phone-screen .phone-sheet{box-shadow:0 -16px 40px -20px rgba(22,22,29,0.25)}

/* app-screen theme switch in the nav: a phone glyph marks it as phones-only,
   the site itself stays dark */
.app-theme{position:relative;display:inline-flex;align-items:center;gap:2px;height:42px;padding:3px 4px 3px 3px;border-radius:12px;background:rgba(22,22,29,0.6);border:1px solid var(--hairline)}
.at-phone{display:inline-flex;align-items:center;justify-content:center;width:30px;height:34px;margin-right:3px;border-radius:9px;color:var(--indigo-bright);background:rgba(108,92,231,0.14)}
.at-phone svg{width:17px;height:17px}
.app-theme button{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:9px;color:var(--muted);transition:color .2s,background .2s}
.app-theme button svg{width:16px;height:16px}
.app-theme button:hover{color:var(--ink)}
.app-theme button[aria-pressed="true"]{background:var(--surface-2);color:var(--ink);box-shadow:0 0 0 1px var(--hairline)}
.app-theme button:focus-visible{outline:2px solid var(--indigo-bright);outline-offset:2px}
.at-tip{position:absolute;top:calc(100% + 10px);left:50%;transform:translate(-50%,-4px);white-space:nowrap;pointer-events:none;
  font-size:12.5px;font-weight:600;color:var(--ink-2);padding:7px 11px;border-radius:9px;background:var(--surface);border:1px solid var(--hairline);
  box-shadow:0 10px 24px -10px rgba(0,0,0,0.6);opacity:0;transition:opacity .18s,transform .18s}
.app-theme:hover .at-tip,.app-theme:focus-within .at-tip{opacity:1;transform:translate(-50%,0)}
@media (hover:none){.at-tip{display:none}}
@media (prefers-reduced-motion:reduce){.at-tip{transition:none;transform:translate(-50%,0)}}

/* nav fit: hide text links sooner (the toggle needs room); on phones keep logo + toggle,
   the hero already shows the "coming soon" pill */
@media (max-width: 900px){.nav-links a.link{display:none}}
@media (max-width: 560px){
  .nav{padding-left:16px;padding-right:16px}
  .nav-links{gap:10px}
  .nav-links .store-soon-sm{display:none}
}
