/* app-landing.css — /app/ only, the Android app's landing page. Page-scoped like
 * precon-hub.css and life-counter.css. Loaded AFTER styles.css. Every class here
 * is `al-`. DESIGN.md → "App landing page".
 *
 * The eyebrow, the dark bands, their gold and ghost buttons and the phone frame
 * are the SHARED ones since 2026-10-23 (`.rf-eyebrow`, `.rf-dark`, `.rf-btn-*`,
 * `.rf-phone` in styles.css, the design refresh layer): this page was their
 * source, and its own copies went when the refresh promoted them. What stays
 * here is the page's own layout, plus two frame details the shared phone does
 * not carry (side keys, a hairline ring on the screen), scoped `.al`.
 *
 * The phone and tablet bodies are drawn HERE, around untouched screenshots
 * (img/app/), so a new capture is a file swap and the image stays a true frame
 * of the app. Motion is decoration only: under prefers-reduced-motion nothing
 * moves, and the scroll reveal is behind @supports, so a browser without
 * scroll-driven animations simply shows everything.
 */

.al {
  --al-ink-soft: rgba(247, 244, 236, 0.74);
  --al-stage: #ECE5D5;
  --rf-phone-w: 280px;
  padding-top: 0;
  overflow-x: clip;
}

.al-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.al h1, .al h2 { text-wrap: balance; }
.al p { text-wrap: pretty; }

.al .btn { padding: 12px 22px; border-radius: 999px; }

/* ---------- Hero ---------- */
.al-hero { padding: 56px 0 64px; }
.al-hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .al-hero { padding: 72px 0 80px; }
  .al-hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; }
}
.al-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.al-hero h1 em { font-style: normal; color: var(--accent); }
.al-lede {
  margin: 0 0 28px;
  max-width: 36em;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--al-ink-soft);
}
.al-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0 0 22px; }

.al-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--parchment);
  background: rgba(247, 244, 236, 0.07);
  box-shadow: inset 0 0 0 1px rgba(247, 244, 236, 0.14);
}
.al-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(200, 135, 58, 0.22);
}

.al-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
  color: var(--al-ink-soft);
}
.al-checks li { display: inline-flex; align-items: center; gap: 8px; }
.al-checks svg { flex: none; color: var(--accent); }

/* Two phones: the board in front cycling through four screens, the game over
   summary behind it. The back phone is decoration and hides on narrow screens. */
.al-hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 10px 0 0;
}
.al-hero-art::before {
  content: "";
  position: absolute;
  inset: 8% 6% 4%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(200, 135, 58, 0.30), transparent);
  filter: blur(10px);
}
.al-hero-art .rf-phone { --rf-phone-w: clamp(230px, 62vw, 300px); }
.al-phone-back { display: none; }
@media (min-width: 560px) {
  .al-hero-art { justify-content: flex-end; padding-right: 4%; }
  .al-hero-art .al-phone-front { margin-left: auto; }
  .al-hero-art .al-phone-back {
    display: block;
    position: absolute;
    left: 2%;
    top: 12%;
    --rf-phone-w: clamp(200px, 22vw, 250px);
    transform: rotate(-7deg);
    opacity: 0.92;
  }
}
/* Stacked under the copy, the pair stays together rather than spanning the row. */
@media (min-width: 560px) and (max-width: 899px) {
  .al-hero-art { justify-self: center; width: min(100%, 560px); }
}
@media (min-width: 900px) {
  .al-hero-art { padding-right: 0; }
  .al-hero-art .al-phone-back { left: 0; }
}

/* ---------- Device frames: the phone is the shared .rf-phone (styles.css) ---------- */
/* Side keys: power on the right, volume on the left. This page's phones only. */
.al .rf-phone::before,
.al .rf-phone::after {
  content: "";
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: #2a303c;
}
.al .rf-phone::before { right: -3px; top: 22%; height: 9%; }
.al .rf-phone::after { left: -3px; top: 16%; height: 14%; }
.al .rf-phone-screen { box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6); }
/* The tablet's screen. */
.al-screen {
  position: relative;
  overflow: hidden;
  border-radius: 33px;
  background: #151a23;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6);
}
.al-screen img { display: block; width: 100%; height: auto; }
/* Every phone screen is 9:20 with corners 7% of its width: the shared frame's rules
   (DESIGN.md, App landing page, for why each number is what it is). */

.al-tablet-frame {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(8px, 1.4vw, 16px);
  border-radius: clamp(18px, 2.6vw, 34px);
  background: linear-gradient(150deg, #3a4254 0%, #11151d 45%, #262c39 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.10),
    0 50px 80px -40px rgba(0, 0, 0, 0.8);
}
.al-tablet-frame .al-screen { border-radius: clamp(10px, 1.5vw, 20px); }

/* A screenshot not captured yet: a label naming the file, under an <img> that
   removes itself on error, so committing the file at that path fills the frame
   with no HTML edit. img/app/README.md lists them. */
.al-slot-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  padding: 18px;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--al-ink-soft);
  background:
    repeating-linear-gradient(135deg, rgba(247, 244, 236, 0.035) 0 12px, transparent 12px 24px),
    #1b2130;
}
.al-slot-label svg { color: var(--accent); margin-bottom: 4px; }
.al-slot-label strong { color: var(--parchment); font-size: 0.95rem; }
.al-slot-label code { font-size: 0.72rem; color: var(--accent); background: transparent; padding: 0; }

/* The hero carousel: the frames stack, the first shows, the rest take turns over
   it. 16s loop, 4s per screen. */
.al-cycle > img:not(:first-child) { opacity: 0; }

/* ---------- Promise strip ---------- */
.al-points { padding: 44px 0 8px; }
.al-points-grid {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 560px) { .al-points-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .al-points-grid { grid-template-columns: repeat(4, 1fr); } }
.al-points-grid li {
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.al-points-grid h3 { margin: 12px 0 4px; font-size: 1.05rem; }
.al-points-grid p { margin: 0; font-size: 0.95rem; color: var(--text-muted); }

.al-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--link);
  background: rgba(200, 135, 58, 0.14);
}

/* ---------- Feature rows ---------- */
.al-features { padding: 24px 0 40px; }
.al-feature {
  display: grid;
  gap: 28px;
  align-items: center;
  padding: 44px 0;
}
.al-feature + .al-feature { border-top: 1px solid var(--card-border); }
@media (min-width: 880px) {
  .al-feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; padding: 64px 0; }
  .al-feature--flip .al-stage { order: -1; }
}
.al-feature h2 {
  margin: 0 0 14px;
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.al-feature-copy > p { font-size: 1.05rem; }
.al-feature-copy > p:last-child { margin-bottom: 0; }

.al-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.al-list li { position: relative; padding-left: 30px; }
.al-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E2430' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Everything the counter keeps, as a cloud: too many items for a list of sentences. */
.al-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.al-chips li {
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-slate);
  background: rgba(200, 135, 58, 0.10);
  box-shadow: inset 0 0 0 1px rgba(200, 135, 58, 0.30);
}
/* On a phone the pills wrapped 1-4 to a row; a two-column list with gold dots reads tidier. */
@media (max-width: 599px) {
  .al-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
  .al-chips li {
    position: relative;
    padding: 0 0 0 18px;
    border-radius: 0;
    font-size: 0.92rem;
    line-height: 1.35;
    background: none;
    box-shadow: none;
  }
  .al-chips li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
  }
}

.al-quote {
  margin: 20px 0 0;
  padding: 14px 18px;
  border-left: 3px solid var(--accent);
  background: rgba(200, 135, 58, 0.08);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--ink-slate);
}

/* The panel a phone sits on: a warm stage with a gold light behind the device. */
.al-stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(28px, 5vw, 56px) 20px;
  border-radius: 24px;
  background:
    radial-gradient(55% 55% at 50% 45%, rgba(200, 135, 58, 0.28), transparent 75%),
    var(--al-stage);
  overflow: hidden;
}
.al-stage .rf-phone { --rf-phone-w: clamp(220px, 60vw, 290px); }

/* ---------- Tablet band ---------- */
.al-band { padding: 72px 0; }
.al-band-head { max-width: 46em; margin: 0 auto 36px; text-align: center; }
.al-band-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem);
  letter-spacing: -0.01em;
}
.al-band-head p { margin: 0; font-size: 1.08rem; color: var(--text-muted); }
.rf-dark .al-band-head p { color: var(--al-ink-soft); }
.al-features-head { margin-top: 32px; margin-bottom: 0; }

/* ---------- Account section ---------- */
.al-account { padding: 72px 0 40px; }

/* Four phones. Under 760px they become a swipeable row inside their own scroller,
   so the page itself never scrolls sideways. */
.al-gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 64%);
  gap: 18px;
  margin: 0 -20px;
  padding: 8px 20px 18px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 20px;
}
@media (min-width: 760px) {
  .al-gallery {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    margin: 0;
    padding: 8px 0 0;
    overflow: visible;
  }
}
.al-gallery > li { scroll-snap-align: start; }
.al-gallery .rf-phone { --rf-phone-w: 100%; padding: 7px; border-radius: calc(7% + 7px) / calc(3.15% + 7px); }
.al-gallery h3 { margin: 20px 0 4px; font-size: 1.08rem; }
.al-gallery p { margin: 0; font-size: 0.95rem; color: var(--text-muted); }
.al-account-more { max-width: 46em; margin: 32px auto 0; text-align: center; color: var(--text-muted); }

/* ---------- What it never does ---------- */
.al-never { padding: 24px 0 72px; }
.al-never-card {
  padding: clamp(24px, 4vw, 40px);
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card);
}
.al-never-card h2 { margin: 0 0 6px; font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); }
.al-never-card > p { margin: 0 0 22px; color: var(--text-muted); }
.al-never-grid { display: grid; gap: 18px 28px; margin: 0 0 22px; padding: 0; list-style: none; }
@media (min-width: 700px) { .al-never-grid { grid-template-columns: 1fr 1fr; } }
.al-never-grid li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.al-never-grid .al-icon { width: 36px; height: 36px; border-radius: 50%; color: var(--mana-r); background: rgba(176, 68, 46, 0.10); }
.al-never-grid strong { display: block; }
.al-never-grid span { color: var(--text-muted); font-size: 0.95rem; }
.al-never-card > p:last-child { margin: 0; }

/* ---------- Closing call to action ---------- */
.al-cta { padding: 72px 0; text-align: center; }
.al-cta-icon {
  display: block;
  width: 84px;
  height: 84px;
  margin: 0 auto 20px;
  border-radius: 22px;
  box-shadow: 0 0 0 1px rgba(247, 244, 236, 0.14), 0 20px 40px -16px rgba(0, 0, 0, 0.6);
}
.al-cta h2 { margin: 0 0 12px; font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); letter-spacing: -0.01em; }
.al-cta p { max-width: 34em; margin: 0 auto 26px; font-size: 1.08rem; color: var(--al-ink-soft); }
.al-cta .al-actions { justify-content: center; margin: 0; }

/* ---------- FAQ and related links: the site's own components, in the page's measure ----------
   A plain .container on purpose: support-cta.js mounts its ask in `main > .container`. */
.al-after { padding-top: 56px; }
.al-after > h2:first-child { margin-top: 0; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .al-phone-front { animation: al-float 7s ease-in-out infinite alternate; }
  @media (min-width: 560px) {
    .al-phone-back { animation: al-float-tilt 8s ease-in-out -3s infinite alternate; }
  }
  .al-cycle > img:not(:first-child) { animation: al-cycle 16s linear infinite; }
  .al-cycle > img:nth-child(2) { animation-delay: 4s; }
  .al-cycle > img:nth-child(3) { animation-delay: 8s; }
  .al-cycle > img:nth-child(4) { animation-delay: 12s; }

  .al-hero-copy > * { animation: al-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .al-hero-copy > :nth-child(2) { animation-delay: 0.06s; }
  .al-hero-copy > :nth-child(3) { animation-delay: 0.12s; }
  .al-hero-copy > :nth-child(4) { animation-delay: 0.18s; }
  .al-hero-copy > :nth-child(5) { animation-delay: 0.24s; }
  .al-hero-copy > :nth-child(6) { animation-delay: 0.30s; }

  @supports (animation-timeline: view()) {
    .al-reveal {
      animation: al-rise linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 28%;
    }
  }
}
/* Without motion the carousel is a still of its first frame. */
@media (prefers-reduced-motion: reduce) {
  .al-cycle > img:not(:first-child) { display: none; }
}

@keyframes al-float {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}
@keyframes al-float-tilt {
  from { transform: rotate(-7deg) translateY(0); }
  to { transform: rotate(-6deg) translateY(-12px); }
}
@keyframes al-cycle {
  0% { opacity: 0; }
  3% { opacity: 1; }
  25% { opacity: 1; }
  28% { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes al-rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
