/* Apps section — shared structure. Each app's colors/fonts come from CSS
   variables set in _layouts/app.html from that app's front matter. */

*, *::before, *::after { box-sizing: border-box; }
.app-page {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.075rem/1.6 var(--body); overflow-x: hidden;
}
.app-page h1, .app-page h2 { font-family: var(--display); line-height: 1.1; margin: 0; }
.app-page a { color: var(--primary); }

.app-nav { position: relative; z-index: 2; max-width: 1040px; margin: 0 auto; padding: 18px 24px; }
.app-nav a { font-weight: 700; text-decoration: none; }
.app-nav a:hover, .app-nav a:focus { text-decoration: underline; }

/* Hero */
.hero { position: relative; z-index: 1; text-align: center; padding: 24px 24px 40px; max-width: 760px; margin: 0 auto; }
.app-icon { display: block; margin: 0 auto; width: 128px; height: 128px; border-radius: 28px; background: #fff;
  /* thin ring in the page's text color keeps dark icons visible on dark backgrounds */
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 25%, transparent), 0 12px 30px rgb(0 0 0 / .15); }
.eyebrow {
  display: inline-block; margin: 22px 0 8px; padding: 4px 14px; border-radius: 999px;
  background: var(--sun); color: var(--on-sun, inherit); font-weight: 700; font-size: .9rem;
}
.hero h1 { font-size: clamp(3rem, 9vw, 5.5rem); font-weight: 800; color: var(--primary); letter-spacing: -.01em; }
.tagline { font-size: 1.35rem; font-weight: 600; margin: 8px 0 26px; }

/* Badges */
.store-badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
.badge img { display: block; height: 80px; width: auto; }          /* Play art has built-in padding */
.badge-apple img { height: 54px; margin: 0 13px; }
.btn-ghost {
  display: inline-block; padding: 12px 22px; border-radius: 999px; border: 2px solid currentColor;
  font-weight: 700; text-decoration: none;
}

/* Screenshots — store graphics already have their own captions, so no fake phone frame.
   Phones: one per row, stacked vertically (no sideways scrolling). */
.shots {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center;
  gap: 24px; padding: 10px 24px 50px;
}
.shot { width: 100%; max-width: 320px; margin: 0; }
.shot img {
  display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 22px;
  box-shadow: 0 14px 32px rgb(0 0 0 / .14);
}
@media (min-width: 760px) {
  .shots { display: grid; grid-template-columns: repeat(3, 240px); justify-content: center; gap: 26px; overflow: visible; }
  .shot { width: auto; }
}
/* Exactly 4 screenshots: 2 x 2 on tablets, one row of 4 on wide screens (never 3 + 1) */
@media (min-width: 760px) {
  .shots:has(> .shot:nth-child(4):last-child) { grid-template-columns: repeat(2, 240px); }
}
@media (min-width: 1040px) {
  .shots:has(> .shot:nth-child(4):last-child) { grid-template-columns: repeat(4, 220px); }
}

/* About + features */
.about { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; padding: 0 24px 30px; text-align: center; font-size: 1.2rem; }
.features {
  position: relative; z-index: 1; display: grid; gap: 20px; max-width: 1040px; margin: 0 auto; padding: 10px 24px 50px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.feature { background: var(--card, #fff); border-radius: 24px; padding: 26px; box-shadow: 0 6px 0 rgb(0 0 0 / .06); }
.feature h2 { font-size: 1.45rem; margin: 10px 0 6px; }
.feature p { margin: 0; }
.feature-icon {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px;
  font-size: 1.6rem; color: #fff; background: var(--primary);
}
.feature-2 .feature-icon { background: var(--accent); }
.feature-3 .feature-icon { background: var(--mint); }

/* Pricing */
/* Questions (FAQ) — native <details>, so it works with keyboard and screen readers, no JS */
.faq { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; padding: 0 24px 40px; }
.faq h2 { font-size: 2rem; text-align: center; margin-bottom: 18px; }
.faq details { background: var(--card, #fff); border-radius: 18px; padding: 0 22px; margin-bottom: 12px; box-shadow: 0 4px 0 rgb(0 0 0 / .06); }
.faq summary { cursor: pointer; font-weight: 700; padding: 18px 0; font-size: 1.1rem; }
.faq summary:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; border-radius: 6px; }
.faq details p { margin: 0 0 20px; line-height: 1.55; }
@media (max-width: 730px) { .faq { padding: 0 16px 32px; } }

.pricing {
  position: relative; z-index: 1; max-width: 680px; margin: 0 auto 50px; padding: 34px 24px; text-align: center;
  background: var(--primary); color: var(--on-primary, #fff); border-radius: 32px;
}
.pricing h2 { font-size: 2rem; }
.pricing p { font-size: 1.15rem; margin: 8px 0 18px; }
@media (max-width: 730px) { .pricing { margin: 0 16px 40px; } }

/* Footer */
.app-footer { position: relative; z-index: 1; text-align: center; padding: 10px 24px 40px; font-weight: 600; }
.app-footer .legal { font-size: .78rem; font-weight: 400; opacity: .8; margin-top: 14px; }

/* Floating shapes (Shape Pals theme) */
.shapes-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.shapes-bg .s { position: absolute; opacity: .22; animation: float 9s ease-in-out infinite; }
.s1 { width: 90px;  top: 8%;  left: 6%; }
.s2 { width: 110px; top: 18%; right: 7%; animation-delay: -2s; }
.s3 { width: 70px;  top: 55%; left: 3%;  animation-delay: -4s; }
.s4 { width: 100px; top: 62%; right: 4%; animation-delay: -1s; }
.s5 { width: 50px;  top: 88%; left: 40%; animation-delay: -3s; }
.s6 { width: 60px;  top: 38%; left: 46%; opacity: .1; animation-delay: -5s; }
@keyframes float { 50% { transform: translateY(-18px) rotate(12deg); } }
@media (prefers-reduced-motion: reduce) { .shapes-bg .s { animation: none; } }

/* ---------- /apps/ hub ---------- */
.apps-hub { margin: 0; background: #F6F5F2; color: #1d2230; font: 400 1.05rem/1.6 system-ui, sans-serif; }
.apps-hub header { max-width: 1040px; margin: 0 auto; padding: 60px 24px 20px; }
.apps-hub h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); margin: 0 0 8px; }
.app-grid { display: grid; gap: 22px; margin: 0; padding: 8px 0 40px;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.app-card {
  display: block; text-decoration: none; color: var(--ink); background: var(--bg);
  border-radius: 26px; padding: 26px; transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 4px 14px rgb(0 0 0 / .07);
}
.app-card:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgb(0 0 0 / .12); }
.app-card img { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 25%, transparent); }
.app-card h2 { font-family: var(--display); color: var(--primary); font-size: 1.8rem; margin: 12px 0 2px; }
/* The site theme colors every page h2 dark (#1a1a2e); use each card's own text color so it stays readable on dark cards */
.app-grid .app-card h2 { color: var(--ink); }
/* The site theme colors all paragraphs and visited links globally; keep every card on its own
   text color so light and dark cards both stay readable */
.app-grid .app-card,
.app-grid .app-card:visited,
.app-grid .app-card:hover,
.app-grid .app-card p,
.app-grid .app-card .status { color: var(--ink); }
.app-card .status { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .7; }

/* "Coming soon" pill — used instead of an official badge until the listing is live */
.soon {
  display: inline-flex; align-items: center; height: 54px; padding: 0 20px; margin: 13px 6px;
  border-radius: 10px; border: 2px dashed currentColor; font-weight: 700; font-size: .95rem;
}
.feature-4 .feature-icon { background: var(--sun); color: var(--on-sun, var(--ink)); }
