/* Android app: the section on the home pages and the install bar for Android visitors (12 Oct 2026). */

/* Section */
.app-promo { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; padding: 52px 56px; border-radius: 24px; border: 1px solid var(--border); background: linear-gradient(135deg, var(--accent-soft) 0%, var(--card) 62%); overflow: hidden; }
.app-promo::before { content: ""; position: absolute; width: 420px; height: 420px; right: -90px; top: 50%; transform: translateY(-50%); border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent) 0%, transparent 68%); pointer-events: none; }
.app-copy { position: relative; }
.app-copy h2 { margin-bottom: .4em; }
.app-copy > p { color: var(--text-2); max-width: 52ch; }
.app-feats { margin: 22px 0 28px; grid-template-columns: 1fr 1fr; gap: 12px 22px; }
.app-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; }
.app-play { padding: 13px 22px; font-size: 1rem; }
.app-play svg { width: 18px; height: 18px; }
.app-note { font-size: .92rem; color: var(--text-3); }

/* Phone drawing (decorative) */
.app-visual { position: relative; display: flex; justify-content: center; padding: 8px 0; }
.phone { position: relative; width: 236px; aspect-ratio: 9 / 17; padding: 9px; border-radius: 38px; background: #0f172a; box-shadow: 0 30px 60px -20px rgba(15, 23, 42, .45), inset 0 0 0 2px #334155; transform: rotate(-4deg); }
:root[data-theme="dark"] .phone { background: #1e293b; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), inset 0 0 0 2px #475569; }
.phone::before { content: ""; position: absolute; top: 16px; left: 50%; width: 54px; height: 6px; margin-left: -27px; border-radius: 6px; background: #334155; z-index: 2; }
.ph-screen { height: 100%; border-radius: 30px; background: var(--bg); padding: 34px 16px 14px; display: flex; flex-direction: column; gap: 16px; overflow: hidden; }
.ph-top { display: flex; align-items: center; }
.ph-logo { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: .84rem; color: var(--text); letter-spacing: -.01em; }
.ph-logo svg { width: 22px; height: 22px; }
.ph-logo b { color: var(--accent); font-weight: 700; }
.ph-ring { position: relative; width: 112px; height: 112px; margin: 2px auto 0; }
.ph-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ph-ring circle { fill: none; stroke-width: 11; }
.ph-ring .trk { stroke: var(--border); }
.ph-ring .val { stroke: var(--ai); stroke-linecap: round; stroke-dasharray: 301.6; stroke-dashoffset: 301.6; transition: stroke-dashoffset 1.4s var(--ease) .25s; }
.app-promo.in .ph-ring .val { stroke-dashoffset: 12; }
.ph-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.45rem; font-weight: 800; color: var(--text); letter-spacing: -.03em; }
.ph-pill { width: 46%; height: 18px; margin: -4px auto 2px; border-radius: 10px; background: var(--ai-soft); position: relative; }
.ph-pill::after { content: ""; position: absolute; left: 10px; right: 10px; top: 7px; height: 4px; border-radius: 3px; background: var(--ai); opacity: .55; }
.ph-lines { display: grid; gap: 9px; }
.ph-lines i { display: block; height: 12px; border-radius: 6px; background: var(--ai-soft); border-left: 3px solid var(--ai); width: 100%; }
.ph-lines i.w2 { width: 84%; }
.ph-lines i.w3 { width: 92%; }
.ph-lines i.mx { background: var(--mixed-soft); border-left-color: var(--mixed); width: 76%; }
.ph-lines i.h { background: var(--human-soft); border-left-color: var(--human); width: 88%; }
.ph-nav { margin-top: auto; display: flex; justify-content: space-around; padding: 10px 6px 2px; border-top: 1px solid var(--border); color: var(--text-3); }
.ph-nav span:first-child { color: var(--accent); }
.ph-nav svg { width: 20px; height: 20px; display: block; }
.ph-chip { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--card); color: var(--accent); border: 1px solid var(--border); box-shadow: var(--shadow); animation: phFloat 5s ease-in-out infinite; }
.ph-chip svg { width: 24px; height: 24px; }
.ph-chip.c1 { left: 6%; top: 18%; }
.ph-chip.c2 { right: 6%; bottom: 16%; animation-delay: -2.5s; }
@keyframes phFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (max-width: 960px) {
  .app-promo { grid-template-columns: 1fr; padding: 40px 32px; gap: 28px; }
  .app-promo::before { right: 50%; top: auto; bottom: -160px; transform: translateX(50%); }
}
@media (max-width: 640px) {
  .app-promo { padding: 28px 22px 32px; border-radius: 20px; }
  .app-feats { grid-template-columns: 1fr; }
  .app-actions .app-play { width: 100%; }
  .phone { width: 200px; }
  .ph-chip { width: 44px; height: 44px; border-radius: 14px; }
  .ph-chip.c1 { left: 2%; }
  .ph-chip.c2 { right: 2%; }
}
[dir="rtl"] .app-promo { background: linear-gradient(225deg, var(--accent-soft) 0%, var(--card) 62%); }
[dir="rtl"] .app-promo::before { right: auto; left: -90px; }
[dir="rtl"] .phone { transform: rotate(4deg); }
[dir="rtl"] .ph-lines i { border-left: 0; border-right: 3px solid var(--ai); }
[dir="rtl"] .ph-lines i.mx { border-right-color: var(--mixed); }
[dir="rtl"] .ph-lines i.h { border-right-color: var(--human); }

/* Install bar for Android visitors */
.appbar { position: fixed; left: 10px; right: 10px; bottom: 10px; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 58; max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; background: var(--card); color: var(--text); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 18px 40px -14px rgba(15, 23, 42, .4); transform: translateY(140%); opacity: 0; transition: transform .45s var(--ease), opacity .3s; }
.appbar[hidden] { display: none; }
.appbar.in { transform: none; opacity: 1; }
.appbar img { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.appbar-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.appbar-txt b { font-size: .98rem; text-align: start; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appbar-txt span { font-size: .82rem; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appbar-go { padding: 9px 16px; font-size: .92rem; flex: none; }
.appbar-x { flex: none; display: grid; place-items: center; width: 34px; height: 34px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--text-3); cursor: pointer; }
.appbar-x:hover { background: var(--bg-soft); color: var(--text); }
.appbar-x svg { width: 18px; height: 18px; }
[dir="rtl"] .appbar { padding: 10px 12px 10px 10px; }
[dir="rtl"] .appbar-txt b { text-align: right; }
html.has-appbar body { padding-bottom: calc(var(--appbar-h, 66px) + 20px); }
html.has-appbar #wcInputPane .pane-foot { bottom: calc(var(--appbar-h, 66px) + 20px); }

@media (prefers-reduced-motion: reduce) {
  .ph-chip { animation: none; }
  .ph-ring .val, .appbar { transition: none; }
}

/* Header account button */
.acct-btn[aria-current="page"] { color: var(--accent); border-color: var(--accent); }
@media (max-width: 359px) { .acct-btn { display: none; } }

/* Header account button when signed in: photo or initial */
.acct-btn.acct-in { padding: 0; overflow: hidden; border-radius: 50%; border-color: var(--border-2); }
.acct-btn.acct-in img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acct-initial { width: 100%; height: 100%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font: 700 .95rem var(--font); }
.acct-toast { position: fixed; top: 76px; right: 16px; z-index: 95; max-width: min(360px, calc(100vw - 32px)); background: var(--card); color: var(--text); border: 1px solid var(--border); box-shadow: var(--shadow-lg); border-radius: 12px; padding: 12px 14px; font-size: .92rem; transition: opacity .3s, transform .3s; }
.acct-toast.out { opacity: 0; transform: translateY(-6px); }
