/* /app/ page (page-app.php). Role tokens only; the "ap-" prefix is this page's. */

.ap-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.ap-hero__title { margin-top: 14px; }
.ap-hero__hl { color: var(--blue); }
.ap-hero .k-lede { margin-top: 20px; }
.ap-stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.ap-store { display: inline-flex; flex-direction: column; justify-content: center; min-width: 190px; min-height: 58px; padding: 8px 18px; background: var(--ink); color: var(--bg); text-decoration: none; border: 1px solid var(--ink); }
.ap-store:hover { background: var(--blue); border-color: var(--blue); color: var(--on-blue); text-decoration: none; }
.ap-store--soon { background: var(--panel); color: var(--muted); border-color: var(--rule); cursor: default; }
.ap-store__k { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.ap-store__n { font-family: var(--display); font-size: 20px; font-weight: 500; line-height: 1.15; }
.ap-hero__note { margin-top: 14px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; color: var(--muted); }

/* A phone, drawn with the page's own tokens: the aisle overlay and the shelf. */
.ap-hero__art { display: flex; justify-content: center; }
.ap-phone { width: 300px; border: 3px solid var(--ink); border-radius: 44px; padding: 12px; background: var(--white); }
.ap-phone__cam { position: relative; height: 330px; border-radius: 32px 32px 10px 10px; background: var(--ink); overflow: hidden; }
.ap-bubble { position: absolute; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--white); color: var(--ink); font-family: var(--mono); font-size: 20px; font-weight: 500; border: 5px solid var(--blue); animation: ap-pop .6s cubic-bezier(.2,1.4,.4,1) both; }
.ap-bubble--a { left: 28px; top: 112px; border-color: var(--blue); animation-delay: .2s; }
.ap-bubble--b { left: 122px; top: 150px; border-color: var(--ink-hi, var(--ink)); animation-delay: .6s; }
.ap-bubble--c { left: 212px; top: 118px; border-color: var(--amber); animation-delay: 1s; }
.ap-chip { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 8px; border-radius: 999px; background: var(--white); color: var(--ink); font-size: 13px; font-weight: 600; }
.ap-phone__shelf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px 2px 4px; }
.ap-tile { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 10px; border: 1px solid var(--rule-lt, var(--rule)); border-radius: 14px; background: var(--white); }
.ap-tile b { font-family: var(--mono); font-size: 20px; font-weight: 500; }
.ap-tile span { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ap-tile em { font-style: normal; font-family: var(--mono); font-size: 11px; }
.ap-dot { position: absolute; right: 10px; top: 12px; width: 8px; height: 8px; border-radius: 50%; }
.ap-dot--good { background: var(--green); }
.ap-dot--warn { background: var(--red); }
@keyframes ap-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ap-bubble { animation: none; } }

.ap-minis { margin-top: 26px; }

.ap-updated { color: var(--muted); }
.ap-group { margin-top: 36px; }
.ap-group__head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; border-bottom: 1px solid var(--ink); padding-bottom: 10px; }
.ap-group__title { font-family: var(--display); font-weight: 500; font-size: 22px; text-transform: uppercase; letter-spacing: -.01em; margin: 0; }
.ap-group__sub { margin: 0; color: var(--muted); font-size: 14.5px; }
.ap-items { list-style: none; margin: 0; padding: 0; }
.ap-item { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 20px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--rule-lt, var(--rule)); }
.ap-item__meta { display: flex; flex-direction: column; gap: 6px; }
.ap-ver { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; }
.ap-shipped { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--muted); }
.ap-item__title { margin: 0; font-family: var(--display); font-size: 18px; font-weight: 500; line-height: 1.25; }
.ap-item__sum { margin: 6px 0 0; font-size: 15.5px; line-height: 1.5; }
.ap-item__details { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.ap-inapp { display: inline-block; padding: 7px 12px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; background: var(--green); color: var(--white); }
.ap-votebtn { display: inline-flex; align-items: center; gap: 8px; min-width: 76px; height: 40px; padding: 0 14px; border: 1px solid var(--ink); background: var(--white); color: var(--ink); font-family: var(--mono); font-size: 14px; cursor: pointer; }
.ap-votebtn:hover { background: var(--rule-lt, var(--panel)); }
.ap-votebtn.is-on { background: var(--blue); border-color: var(--blue); color: var(--on-blue); }
.ap-votebtn[disabled] { opacity: .6; cursor: progress; }
.ap-idea { margin-top: 36px; }
.ap-idea h4 { margin: 0 0 6px; font-family: var(--display); font-weight: 500; font-size: 18px; }
.ap-idea p { margin: 0 0 16px; }

.ap-privacy__link { margin-top: 22px; font-size: 14.5px; color: var(--muted); }

@media (max-width: 900px) {
	.ap-hero { grid-template-columns: 1fr; gap: 32px; }
	.ap-hero__art { order: -1; }
	.ap-phone { width: 260px; }
	.ap-phone__cam { height: 280px; }
	.ap-bubble--c { left: 180px; }
	.ap-item { grid-template-columns: 1fr; gap: 10px; }
	.ap-item__meta { flex-direction: row; align-items: center; gap: 12px; }
}

/* Three features across on wide screens; k-minis stacks them by default. */
@media (min-width: 901px) {
	.k-section .k-minis.ap-minis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
	.k-section .k-minis.ap-minis .k-mini { margin: 0; }
}
.ap-tile em { white-space: nowrap; font-size: 10.5px; }
