/* Android Applications by TrueNorth Digital Mobile — shared styles for the hub and app pages.
   Builds on /assets/site.css tokens (Archivo, limestone, folder teal, brick, brass). */

.apps-page main { --accent: var(--folder); }
.apps-page .section { padding-block: clamp(64px, 8vw, 120px) 0; }
.apps-page main > .section:last-child { padding-bottom: clamp(64px, 8vw, 120px); }
.eyebrow-line { display: flex; align-items: center; gap: 12px; font-size: var(--t-small); font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 14px; }
.eyebrow-line::before { content: ""; width: 28px; height: 2px; background: var(--accent, var(--brick)); }
.apps-page h2 { max-width: 22ch; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .5em; margin: 0 0 22px; padding: 0; font-size: var(--t-small); }
.crumbs li + li::before { content: "/"; margin-right: .5em; opacity: .5; }
.crumbs a { color: inherit; }
.apps-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.apps-hero .btn-quiet, .app-hero .btn-quiet { border-color: rgba(230,235,230,.5); color: #fff; }
.narrow-text { max-width: 880px; }
.plain-list { padding-left: 1.2em; display: grid; gap: 8px; }

/* ---------- Hub hero: globe + portrait + orbit ---------- */
.apps-hero { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 70% 40%, #14595a 0%, var(--folder) 45%, var(--folder-deep) 100%); color: var(--on-folder); padding-block: clamp(40px, 6vw, 88px) clamp(40px, 5vw, 80px); }
.apps-hero .wrap { display: grid; gap: clamp(28px, 4vw, 64px); align-items: center; }
@media (min-width: 960px) { .apps-hero .wrap { grid-template-columns: minmax(0,5fr) minmax(0,6fr); } }
.apps-hero h1 { color: #fff; max-width: 11ch; }
.apps-hero h1 em, .app-hero h1 .wt { font-style: normal; color: var(--brass-light); }
.apps-hero .lede { color: var(--on-folder); margin-top: 22px; }
.apps-tag { display: inline-block; font-size: var(--t-small); font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-light); margin: 0 0 18px; }
.apps-stage { position: relative; aspect-ratio: 1/1; width: min(100%, 640px); margin-inline: auto; margin-bottom: clamp(56px, 9vw, 84px); perspective: 1400px; }
.globe { position: absolute; inset: 4%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(220,189,114,.18), rgba(15,69,70,0) 60%); }
.globe canvas, .globe svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.globe svg { opacity: .55; }
.globe.has-canvas svg { display: none; }
.figure { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -46%); width: 74%; aspect-ratio: 4/3.3; z-index: 2; margin: 0; border-radius: 50% 50% 14px 14px / 42% 42% 14px 14px; overflow: hidden; box-shadow: 0 0 0 1px rgba(220,189,114,.55), 0 0 0 10px rgba(15,69,70,.35), 0 40px 80px -30px rgba(0,0,0,.7); }
.figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; display: block; }
.figure figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 0 8px; text-align: center; font-size: .72rem; letter-spacing: .06em; color: #fff; background: linear-gradient(transparent, rgba(10,50,51,.75)); }
.orbit { position: absolute; inset: 0; transform-style: preserve-3d; z-index: 3; pointer-events: none; }
.ring { position: absolute; left: 50%; top: 80%; width: 0; height: 0; transform-style: preserve-3d; transform: rotateX(-14deg) rotateY(var(--spin, 0deg)); }
.orbit-card { display: block; position: absolute; width: clamp(60px, 11vw, 96px); margin-left: calc(clamp(60px, 11vw, 96px) / -2); margin-top: -56px; transform: rotateY(var(--a)) translateZ(var(--r, 250px)) rotateY(calc(-1 * var(--a) - var(--spin, 0deg))); text-align: center; pointer-events: auto; text-decoration: none; color: #fff; backface-visibility: hidden; transition: opacity .3s; }
.orbit-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 24%; box-shadow: 0 18px 40px -14px rgba(0,0,0,.6); background: var(--paper); }
.orbit-card span { display: block; margin-top: 6px; font-size: .74rem; font-weight: 650; line-height: 1.15; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.orbit-card:focus-visible { outline: 2px solid var(--brass-light); outline-offset: 4px; border-radius: 8px; }
.orbit-controls[hidden] { display: none; }
.orbit-controls { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
.orbit-controls button { min-height: 44px; min-width: 44px; border-radius: 999px; border: 1px solid rgba(230,235,230,.45); background: transparent; color: #fff; font: inherit; font-weight: 650; padding: 0 16px; cursor: pointer; }
.orbit-controls button:hover { background: rgba(255,255,255,.08); }

/* ---------- App index cards ---------- */
.app-index { display: grid; gap: clamp(16px, 2vw, 28px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); margin-top: clamp(28px, 4vw, 48px); }
.app-index-sm { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); margin-bottom: 28px; }
.app-card { display: flex; flex-direction: column; background: var(--paper); color: var(--ink); text-decoration: none; border: 1px solid var(--stone-2); transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out); }
.app-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(28,36,39,.45); }
.app-card .shot { position: relative; aspect-ratio: 4/3; overflow: hidden; background: radial-gradient(120% 100% at 30% 0%, color-mix(in srgb, var(--accent) 55%, #fff) 0%, var(--accent) 55%, color-mix(in srgb, var(--accent) 60%, #000) 100%); }
.app-card .shot img { position: absolute; top: 9%; left: 50%; height: 100%; width: auto; max-width: none; translate: -50% 0; border-radius: 14px 14px 0 0; box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); transition: scale .7s var(--ease-out); transform-origin: 50% 0; }
.app-card .shot-icon img { top: 50%; height: 46%; translate: -50% -50%; border-radius: 24%; }
.app-card:hover .shot img { scale: 1.04; }
.app-index-sm .shot { aspect-ratio: 16/9; }
.app-card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.app-card .head { display: flex; gap: 14px; align-items: center; }
.app-card .head img { width: 48px; height: 48px; border-radius: 24%; flex: none; }
.app-card h3 { margin: 0; font-size: 1.15rem; }
.app-card .cat { margin: 2px 0 0; font-size: var(--t-small); color: var(--ink-2); }
.app-card .body > p { margin: 0; }
.app-card .status { font-size: var(--t-small); color: var(--ink-2); }
.app-card .go { margin-top: auto; font-weight: 650; color: var(--brick); }

/* ---------- App page hero ---------- */
.app-hero { position: relative; overflow: hidden; color: var(--on-folder); background: radial-gradient(90% 120% at 85% 20%, color-mix(in srgb, var(--accent) 70%, var(--folder)) 0%, var(--folder) 48%, var(--folder-deep) 100%); padding-block: clamp(36px, 5vw, 72px) clamp(48px, 6vw, 96px); }
.app-hero::after { content: ""; position: absolute; right: -10%; top: -20%; width: 60vmax; height: 60vmax; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 45%, transparent), transparent 60%); opacity: .55; pointer-events: none; }
.app-hero-grid { position: relative; z-index: 1; display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 960px) { .app-hero-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }
.app-hero h1 { color: #fff; font-size: clamp(2.3rem, 1.2rem + 4vw, 4.8rem); max-width: 14ch; margin-top: 18px; }
.app-hero h1 .wt { display: block; font-size: .32em; letter-spacing: .02em; margin-top: 10px; }
.app-tagline { font-size: clamp(1.2rem, 1rem + .9vw, 1.7rem); font-weight: 600; font-stretch: var(--semi); color: var(--brass-light); margin: 14px 0 0; max-width: 28ch; }
.app-hero .lede { color: var(--on-folder); margin-top: 16px; }
.app-id { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.app-icon { width: 72px; height: 72px; border-radius: 24%; box-shadow: 0 16px 34px -14px rgba(0,0,0,.6); background: var(--paper); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); font-size: var(--t-small); font-weight: 600; color: #fff; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--brass-light); box-shadow: 0 0 0 4px rgba(220,189,114,.25); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(220,189,114,0); } }
.meta-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; }
.meta-chips li { padding: 5px 11px; border-radius: 4px; background: rgba(0,0,0,.18); font-size: var(--t-small); color: var(--on-folder); }
.app-hero-visual { display: grid; place-items: center; }

/* Phone frame */
.phone { margin: 0; text-align: center; }
.phone-frame { width: clamp(210px, 26vw, 300px); margin-inline: auto; padding: 10px; border-radius: 38px; background: linear-gradient(145deg, #2b3336, #0d1214); box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 50px 90px -40px rgba(0,0,0,.8); }
.phone-frame img { display: block; width: 100%; height: auto; border-radius: 29px; background: #fff; }
.app-hero-visual .phone-frame { transform: rotate(-3deg); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { translate: 0 -10px; } }
.phone figcaption { margin-top: 12px; font-size: var(--t-small); font-weight: 600; color: var(--ink-2); }
.gallery { display: flex; gap: clamp(18px, 3vw, 36px); overflow-x: auto; scroll-snap-type: x mandatory; padding: 28px 4px 24px; scrollbar-width: thin; }
.gallery .phone { scroll-snap-align: start; flex: none; }
.gallery .phone-frame { width: clamp(180px, 22vw, 250px); }
.gallery:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* Roast Alarm art (no screenshots yet) */
.roast-art { display: grid; justify-items: center; gap: 22px; }
.roast-ring { width: clamp(170px, 22vw, 230px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, rgba(255,99,51,.35), transparent 70%); animation: float 6s ease-in-out infinite; }
.roast-ring img { width: 84%; height: auto; filter: drop-shadow(0 20px 30px rgba(0,0,0,.45)); }
.mood-chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; max-width: 420px; }
.mood-chips li { padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); color: #fff; font-size: .85rem; font-weight: 600; animation: rise .8s var(--ease-out) both; animation-delay: calc(var(--i) * 90ms); }
.lang-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; font-size: .95rem; color: var(--brass-light); max-width: 420px; }
@keyframes rise { from { opacity: 0; translate: 0 12px; } }

/* Features, steps, trust, testing, FAQ */
.features { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 1px; background: var(--stone-2); border: 1px solid var(--stone-2); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.feature { background: var(--paper); padding: clamp(22px, 2.6vw, 34px); position: relative; }
.feature::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--accent); transition: width .6s var(--ease-out); }
.feature:hover::before { width: 100%; }
.feature-n { font-size: var(--t-small); font-weight: 700; color: var(--accent); letter-spacing: .1em; }
.feature h3 { margin: 10px 0 8px; }
.feature p { margin: 0; color: var(--ink-2); }
.steps { list-style: none; counter-reset: s; margin: 32px 0 0; padding: 0; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.steps li { counter-increment: s; border-top: 2px solid var(--ink); padding-top: 18px; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-size: clamp(2rem, 1.4rem + 2vw, 3.2rem); font-weight: 200; font-stretch: var(--wide); color: var(--accent); line-height: 1; margin-bottom: 10px; }
.steps h3 { margin: 0 0 6px; }
.steps p { margin: 0; color: var(--ink-2); }
.trust-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.trust-card { padding: clamp(24px, 3vw, 40px); background: var(--paper); border: 1px solid var(--stone-2); }
.trust-card p:last-child { margin-bottom: 0; }
.trust-limits { background: var(--stone-2); }
.trust-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 16px; }
.link-arrow { font-weight: 650; color: var(--brick); }
.health-note { margin-top: 14px; padding: 12px 14px; border-left: 3px solid var(--brick); background: var(--paper); }
.testing-band { display: grid; gap: 24px; padding: clamp(28px, 4vw, 56px); background: var(--folder); color: var(--on-folder); }
@media (min-width: 900px) { .testing-band { grid-template-columns: 1fr 1.2fr; align-items: center; } }
.testing-band h2 { color: #fff; margin: 0; }
.testing-band .eyebrow-line { color: var(--brass-light); }
.testing-band .eyebrow-line::before { background: var(--brass-light); }
.testing-band .muted { color: var(--on-folder-2); }
.testing-band .btn-quiet { border-color: rgba(230,235,230,.5); color: #fff; }
.join-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 14px; padding: 0; }
.faq { margin-top: 24px; border-top: 1px solid var(--stone-2); max-width: 900px; }
.faq details { border-bottom: 1px solid var(--stone-2); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-weight: 650; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; translate: 0 -50%; font-size: 1.5rem; font-weight: 300; transition: rotate .3s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { margin: 0 0 20px; color: var(--ink-2); max-width: 70ch; }
.more-apps { padding-bottom: clamp(64px, 8vw, 120px); }

/* Scroll reveal (only when JS has marked the page) */
.js-reveal .reveal { opacity: 0; translate: 0 18px; transition: opacity .8s var(--ease-out), translate .8s var(--ease-out); }
.js-reveal .reveal.is-in { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  .app-hero-visual .phone-frame, .roast-ring, .pill i, .mood-chips li { animation: none; }
  .app-card, .app-card .shot img, .feature::before { transition: none; }
  .js-reveal .reveal { opacity: 1; translate: none; transition: none; }
}

/* Duplicate Cleaner privacy policy page (2026-11-22) */
.policy { max-width: 820px; }
.policy-sec { padding: 26px 0; border-top: 1px solid var(--stone-2); }
.policy-sec h2 { font-size: var(--t-h3); margin: 0 0 12px; max-width: none; }
.policy-sec p, .policy-sec li { max-width: 70ch; }
.policy a { color: var(--brick); }
.app-card .shot-full img, .app-icon { object-fit: cover; }
/* Hub headline: publisher line (2026-11-24) */
.apps-hero h1 em { display: block; font-size: .6em; line-height: 1.05; margin-top: .12em; }
/* App pages: publisher name in footer fits the width (2026-11-24) */
.apps-page .footer-name { white-space: normal; font-size: clamp(2.25rem, 7vw, 5.25rem); line-height: .95; }
/* App pages: full publisher brand on phones (2026-11-24) */
@media (max-width: 767px) { .apps-page .brand span { display: inline; white-space: nowrap; } .apps-page .brand b { font-size: 1.15em; } }
@media (max-width: 359px) { .apps-page .brand span { display: none; } }