/* Phone app (PWA): the /app page, in the Founding 100 page's look, and the install bar (pwa.js). */
html:has(.ap) { scroll-behavior: smooth; }
.ap { --ap-gold: #e6b85c; --ap-gold-soft: rgba(230, 184, 92, .12); max-width: 1040px; margin: 0 auto; padding: 8px 0 40px; }
.ap #install, .ap #benefits { scroll-margin-top: 24px; }
.ap-crumbs { margin: 4px 0 14px; font-size: .9rem; }
.ap > .notice { margin: 0 0 14px; }
.ap-eyebrow { margin: 0 0 12px; text-transform: uppercase; letter-spacing: .16em; font-size: .76rem; font-weight: 700; color: var(--ap-gold); }
.ap-free { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px; background: var(--ap-gold); color: #1c1606; letter-spacing: .06em; }
.ap-small { margin: 10px 0 0; font-size: .86rem; color: var(--ab-muted); }
.ap-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ap-cta { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; font-size: 1rem; }
.ap .ap-cta--gold { background: var(--ap-gold); border-color: var(--ap-gold); color: #1c1606; font-weight: 800; }
.ap .ap-cta--gold:hover { background: #f0c978; }

.ap-hero { display: grid; grid-template-columns: 1fr auto; gap: 28px 40px; align-items: center; padding: 40px 36px 28px; border: 1px solid var(--ab-line); border-radius: 22px; background: radial-gradient(90% 120% at 100% 0%, var(--ap-gold-soft), transparent 60%), linear-gradient(180deg, rgba(255, 255, 255, .03), transparent); }
.ap-hero h1 { margin: 0 0 14px; font-size: clamp(1.9rem, 4.4vw, 3rem); line-height: 1.1; letter-spacing: -.01em; }
.ap-hero__sub { max-width: 560px; margin: 0 0 24px; font-size: 1.12rem; line-height: 1.5; }
.ap-hero__side { text-align: center; }
.ap-trust { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9rem; color: var(--ab-muted); }
.ap-trust li { display: flex; align-items: center; gap: 7px; }
.ap-trust li::before { content: "\2713"; color: #5fb8a3; font-weight: 900; }

/* A phone home screen with the ArtBuild icon on it. */
.ap-phone { position: relative; width: 170px; height: 230px; margin: 0 auto; border: 2px solid rgba(230, 184, 92, .55); border-bottom: 0; border-radius: 30px 30px 0 0; background: linear-gradient(160deg, #2a2f3b, #191c24 70%); box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }
.ap-phone::before { content: ""; position: absolute; top: 12px; left: 50%; width: 54px; height: 6px; margin-left: -27px; border-radius: 6px; background: rgba(245, 243, 238, .18); }
.ap-phone__app { position: absolute; top: 60px; left: 50%; display: grid; justify-items: center; gap: 8px; transform: translateX(-50%); color: #f5f3ee; font-size: .82rem; font-weight: 600; }
.ap-phone__app img { border-radius: 18px; box-shadow: 0 8px 22px rgba(0, 0, 0, .5), 0 0 0 1px rgba(230, 184, 92, .35); }
.ap-qr { width: 170px; margin: 0 auto; padding: 0; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px rgba(230, 184, 92, .55); }
.ap-qr svg { display: block; width: 100%; height: auto; }

.ap-facts { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ap-facts li { display: grid; gap: 2px; padding: 16px 18px; border: 1px solid var(--ab-line); border-radius: 14px; background: var(--ab-surface); color: var(--ab-muted); font-size: .92rem; }
.ap-facts strong { color: var(--ap-gold); font-size: 1.5rem; line-height: 1.15; }

.ap-section { margin-top: 40px; }
.ap-section > h2 { margin: 0 0 16px; font-size: 1.5rem; }
.ap-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ap-card { padding: 20px; border: 1px solid var(--ab-line); border-radius: 16px; background: var(--ab-surface); }
.ap-card h3 { margin: 14px 0 8px; font-size: 1.12rem; }
.ap-card p { margin: 0; color: var(--ab-muted); }
.ap-card__icon { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--ap-gold-soft); color: var(--ap-gold); }
.ap-card__icon .icon { width: 18px; height: 18px; }

.ap-how { list-style: none; counter-reset: ap-step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ap-how li { position: relative; display: grid; gap: 4px; align-content: start; padding-left: 46px; counter-increment: ap-step; }
.ap-how li::before { content: counter(ap-step); position: absolute; left: 0; top: 0; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--ap-gold); color: #141414; font-weight: 800; }
.ap-how strong { font-size: 1.04rem; }
.ap-how span { font-size: .92rem; color: var(--ab-muted); }
.ap-other { margin-top: 22px; }
.ap-other summary { cursor: pointer; font-weight: 600; color: var(--ap-gold); }
.ap-other[open] summary { margin-bottom: 14px; }

.ap-faq details { border-top: 1px solid var(--ab-line); }
.ap-faq details:last-of-type { border-bottom: 1px solid var(--ab-line); }
.ap-faq summary { min-height: 52px; display: flex; align-items: center; padding: 6px 0; font-weight: 600; cursor: pointer; list-style: none; }
.ap-faq summary::-webkit-details-marker { display: none; }
.ap-faq summary::after { content: "+"; margin-left: auto; padding-left: 12px; font-size: 1.3rem; color: var(--ap-gold); }
.ap-faq details[open] summary::after { content: "\2212"; }
.ap-faq details > p { max-width: 780px; margin: 0 0 16px; color: var(--ab-muted); }

@media (max-width: 640px) {
	.ap-hero { grid-template-columns: 1fr; padding: 26px 20px 22px; }
	.ap-hero h1 { font-size: 1.75rem; }
	.ap-hero__sub { margin-bottom: 18px; font-size: 1rem; }
	.ap-hero__side { display: none; }
	.ap-cta { width: 100%; }
	.ap-facts { grid-template-columns: 1fr; gap: 6px; }
	.ap-facts li { grid-template-columns: auto 1fr; align-items: baseline; gap: 10px; padding: 12px 14px; }
	.ap-facts strong { font-size: 1.05rem; }
	.ap-benefits, .ap-how { grid-template-columns: 1fr; }
	.ap-section { margin-top: 30px; }
	.ap-section > h2 { font-size: 1.3rem; }
}

/* "On this phone" card on /account/notifications. */
.notify-settings [data-push-panel] { margin-top: 18px; }
.notify-settings [data-push-panel] .button[hidden] { display: none; }

.app-bar { position: fixed; z-index: 900; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; padding: 12px 10px 12px 12px; border: 1px solid rgba(245, 243, 238, .14); border-radius: 16px; background: #1e222b; box-shadow: 0 12px 32px rgba(0, 0, 0, .5); color: #f5f3ee; }
.app-bar img { flex: none; border-radius: 10px; }
.app-bar p { flex: 1; min-width: 0; margin: 0; font-size: 14px; line-height: 1.35; }
.app-bar p span { display: block; color: rgba(245, 243, 238, .62); font-size: 13px; }
.app-bar .button { flex: none; padding: 9px 16px; border-color: #e6b85c; background: #e6b85c; color: #1c1606; font-weight: 800; }
.app-bar__close { flex: none; width: 32px; height: 32px; border: 0; background: none; color: rgba(245, 243, 238, .62); font-size: 24px; line-height: 1; cursor: pointer; }
