/* =========================================================
   App phone screen mockups
   Each app gets its own distinct visual identity
   ========================================================= */

/* Shared phone screen base */
.screen { width: 100%; height: 100%; padding: 38px 18px 24px; font-family: var(--sans); display: flex; flex-direction: column; gap: 14px; }
.screen-status { display: flex; justify-content: space-between; align-items: center; padding: 0 8px 0 16px; font-size: 11px; font-weight: 600; }

/* ========== BEAMO — digital business card ========== */
.beamo-screen { background: linear-gradient(160deg, #0d0d12 0%, #1a1822 100%); color: #f5f5f7; }
.beamo-screen .screen-status { color: #f5f5f7; }
.beamo-card {
  margin: 24px 12px;
  aspect-ratio: 1.6;
  background: linear-gradient(135deg, #1e1c2a 0%, #2d2840 50%, #4a3060 100%);
  border-radius: 18px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px -10px rgba(74, 48, 96, 0.6);
}
.beamo-card::before {
  content: ""; position: absolute; top: -50%; right: -30%;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 164, 104, 0.4), transparent 70%);
}
.beamo-card__logo { font-family: var(--serif); font-style: italic; font-size: 20px; }
.beamo-card__name { position: absolute; bottom: 20px; left: 20px; }
.beamo-card__name strong { display: block; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.beamo-card__name span { font-size: 11px; opacity: 0.7; }
.beamo-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 12px; margin-top: auto; }
.beamo-action { background: rgba(255,255,255,0.06); border-radius: 12px; padding: 14px; font-size: 11px; display: flex; flex-direction: column; gap: 4px; }
.beamo-action b { font-size: 13px; font-weight: 500; }
.beamo-action span { opacity: 0.5; font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; }
.beamo-tabs { display: flex; gap: 4px; padding: 4px; background: rgba(255,255,255,0.04); border-radius: 999px; margin: 0 12px; }
.beamo-tab { flex: 1; padding: 8px; font-size: 10px; text-align: center; border-radius: 999px; opacity: 0.5; }
.beamo-tab.active { background: rgba(255,255,255,0.1); opacity: 1; }

/* ========== SUBTRACK — subscription manager ========== */
.subtrack-screen { background: #f7f6f3; color: #1a1a1c; }
.subtrack-screen .screen-status { color: #1a1a1c; }
.subtrack-header { padding: 0 14px; }
.subtrack-header h3 { font-family: var(--serif); font-size: 22px; font-weight: 400; letter-spacing: -0.01em; }
.subtrack-header p { font-size: 11px; color: #6e6e72; margin-top: 2px; }
.subtrack-summary {
  margin: 8px 14px 14px;
  padding: 16px;
  background: linear-gradient(135deg, #1a1a1c 0%, #2a2a30 100%);
  color: #fff; border-radius: 16px;
}
.subtrack-summary .lbl { font-size: 9px; letter-spacing: 0.15em; opacity: 0.6; text-transform: uppercase; }
.subtrack-summary .amt { font-family: var(--serif); font-size: 32px; line-height: 1; margin-top: 4px; }
.subtrack-summary .delta { font-size: 10px; color: #ffd093; margin-top: 4px; }
.subtrack-list { padding: 0 14px; display: flex; flex-direction: column; gap: 6px; }
.subtrack-item { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-radius: 10px; background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,0.04); }
.subtrack-item .ico { width: 28px; height: 28px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #fff; }
.subtrack-item .name { flex: 1; font-size: 12px; font-weight: 500; }
.subtrack-item .price { font-size: 11px; color: #6e6e72; font-variant-numeric: tabular-nums; }

/* ========== BLOOM — 3 good things ========== */
.bloom-screen { background: linear-gradient(180deg, #fdf6ee 0%, #f7eee0 100%); color: #2a2522; position: relative; overflow: hidden; }
.bloom-screen::before {
  content: ""; position: absolute; top: -40px; right: -40px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 164, 104, 0.3), transparent 70%);
}
.bloom-screen .screen-status { color: #2a2522; }
.bloom-header { padding: 4px 16px; position: relative; }
.bloom-header .date { font-family: var(--mono); font-size: 9px; letter-spacing: 0.15em; text-transform: uppercase; color: #8a7a6a; }
.bloom-header h3 { font-family: var(--serif); font-style: italic; font-size: 22px; font-weight: 400; line-height: 1.1; margin-top: 4px; }
.bloom-prompt { padding: 0 16px; font-size: 11px; color: #6e5a4a; font-style: italic; }
.bloom-entries { padding: 6px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.bloom-entry { background: rgba(255,255,255,0.7); backdrop-filter: blur(10px); border-radius: 14px; padding: 12px; position: relative; }
.bloom-entry .num { font-family: var(--serif); font-style: italic; font-size: 22px; color: #d97844; line-height: 1; position: absolute; top: 10px; right: 14px; }
.bloom-entry .txt { font-size: 11px; line-height: 1.45; color: #4a3a2e; padding-right: 24px; }
.bloom-streak { margin: 0 16px; background: #2a2522; color: #f7eee0; border-radius: 999px; padding: 10px 14px; display: flex; justify-content: space-between; font-size: 10px; align-items: center; }
.bloom-streak b { font-family: var(--serif); font-size: 16px; font-weight: 400; }

/* ========== KADO — birthday reminder ========== */
.kado-screen { background: linear-gradient(180deg, #fff5f1 0%, #ffe9dd 100%); color: #2a1a14; position: relative; overflow: hidden; }
.kado-screen .screen-status { color: #2a1a14; }
.kado-hero {
  margin: 8px 14px;
  padding: 16px;
  background: linear-gradient(135deg, #ff8c5e 0%, #ff6b9d 100%);
  border-radius: 18px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.kado-hero::before {
  content: ""; position: absolute; top: -20px; right: -20px;
  width: 100px; height: 100px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
}
.kado-hero .lbl { font-size: 9px; letter-spacing: 0.15em; opacity: 0.85; text-transform: uppercase; }
.kado-hero h4 { font-family: var(--serif); font-size: 22px; font-weight: 400; margin-top: 4px; line-height: 1.05; }
.kado-hero .meta { font-size: 10px; margin-top: 8px; opacity: 0.9; }
.kado-hero .countdown { position: absolute; bottom: 14px; right: 14px; font-family: var(--serif); font-size: 36px; font-style: italic; line-height: 1; }
.kado-list { padding: 4px 14px; display: flex; flex-direction: column; gap: 6px; }
.kado-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,0.6); }
.kado-item .avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #ffb38a, #ff8c5e); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; color: #fff; }
.kado-item .info { flex: 1; }
.kado-item .info b { display: block; font-size: 12px; font-weight: 500; }
.kado-item .info span { font-size: 9px; color: #8a6a5a; }
.kado-item .when { font-family: var(--mono); font-size: 9px; color: #c9501e; text-align: right; letter-spacing: 0.05em; }

/* ========== TIBOU — kids stories ========== */
.tibou-screen { background: linear-gradient(180deg, #1a1f3a 0%, #2d2d5e 100%); color: #fff; position: relative; overflow: hidden; }
.tibou-screen::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 15% 25%, white, transparent),
    radial-gradient(1px 1px at 70% 15%, white, transparent),
    radial-gradient(1px 1px at 40% 65%, white, transparent),
    radial-gradient(2px 2px at 85% 80%, white, transparent),
    radial-gradient(1px 1px at 25% 85%, white, transparent);
  opacity: 0.5;
}
.tibou-screen .screen-status { color: #fff; position: relative; }
.tibou-header { padding: 4px 16px; position: relative; }
.tibou-header .greet { font-family: var(--mono); font-size: 9px; letter-spacing: 0.15em; opacity: 0.6; text-transform: uppercase; }
.tibou-header h3 { font-family: var(--serif); font-size: 22px; font-style: italic; font-weight: 400; margin-top: 4px; line-height: 1.1; }
.tibou-story {
  margin: 8px 14px;
  aspect-ratio: 4/3;
  background:
    radial-gradient(ellipse at 50% 80%, #f4c97a 0%, transparent 50%),
    linear-gradient(180deg, #3d3578 0%, #5a4a8a 100%);
  border-radius: 18px;
  padding: 16px;
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.tibou-story::before {
  content: "🌙"; position: absolute; top: 14px; left: 16px; font-size: 22px; opacity: 0.9;
}
.tibou-story .moon {
  position: absolute; top: 14px; left: 14px; width: 22px; height: 22px;
  border-radius: 50%; background: #f4c97a;
  box-shadow: 0 0 30px #f4c97a, inset -4px -2px 0 0 rgba(0,0,0,0.1);
}
.tibou-story .moon::after { display: none; }
.tibou-story__title { font-family: var(--serif); font-style: italic; font-size: 16px; color: #fff; line-height: 1.15; position: relative; }
.tibou-story__meta { font-family: var(--mono); font-size: 9px; letter-spacing: 0.15em; opacity: 0.8; margin-top: 6px; text-transform: uppercase; position: relative; }
.tibou-list { padding: 0 14px; display: flex; flex-direction: column; gap: 6px; position: relative; }
.tibou-item { display: flex; gap: 10px; padding: 8px; background: rgba(255,255,255,0.06); border-radius: 10px; align-items: center; }
.tibou-item .cover { width: 32px; height: 32px; border-radius: 8px; }
.tibou-item .cover.c1 { background: linear-gradient(135deg, #d97844, #f4c97a); }
.tibou-item .cover.c2 { background: linear-gradient(135deg, #5a8acf, #a3c4e8); }
.tibou-item .cover.c3 { background: linear-gradient(135deg, #8a5acf, #d4a4e8); }
.tibou-item .info { flex: 1; }
.tibou-item .info b { display: block; font-family: var(--serif); font-style: italic; font-size: 12px; font-weight: 400; }
.tibou-item .info span { font-size: 9px; opacity: 0.6; }
.tibou-play { width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; font-size: 8px; }

/* =========================================================
   SCROLL-REVEALED DECOR — playful elements that emerge from
   behind each phone as the section scrolls into view.
   Purely decorative (aria-hidden, pointer-events:none).
   ========================================================= */

/* Layer sits behind the phone (phone is z-index:1) so items
   appear to slide out from underneath the device. */
.app-decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  transform: scale(var(--decor-k, 1));
  transform-origin: center center;
}

/* Each item starts tucked behind the phone (centered, shrunk,
   transparent) and animates out to its --tx/--ty/--rot target. */
.decor-item {
  position: absolute;
  top: 50%;
  left: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.35);
  transition:
    transform 0.95s cubic-bezier(.2,.7,.2,1),
    opacity 0.6s ease;
  will-change: transform, opacity;
}
.decor-item.is-revealed {
  opacity: 1;
  transform:
    translate(calc(-50% + var(--tx, 0px)), calc(-50% + var(--ty, 0px)))
    rotate(var(--rot, 0deg))
    scale(1);
}

/* Inner element carries a gentle idle float once revealed, kept
   separate from the reveal transform so the two don't collide. */
.decor-item__in {
  display: block;
  animation: decorFloat 6.5s ease-in-out infinite alternate;
  animation-delay: calc(var(--i, 0) * -0.8s);
}
@keyframes decorFloat {
  from { transform: translateY(0) rotate(-2deg); }
  to   { transform: translateY(-9px) rotate(3deg); }
}

/* ---- Beamo — mini digital business cards ---- */
.dcard {
  width: 92px;
  aspect-ratio: 1.62;
  border-radius: 12px;
  padding: 11px;
  background: linear-gradient(135deg, #221f30 0%, #2d2840 45%, #4a3060 100%);
  box-shadow:
    0 16px 30px -10px rgba(0,0,0,0.55),
    inset 0 0 0 1px rgba(255,255,255,0.10);
  position: relative;
  overflow: hidden;
}
.dcard::before {
  content: "";
  position: absolute; top: -45%; right: -25%;
  width: 70px; height: 70px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,164,104,0.55), transparent 70%);
}
.dcard .av {
  display: block; width: 18px; height: 18px; border-radius: 50%;
  background: linear-gradient(135deg, #f4c97a, #e8a468);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.12);
}
.dcard .ln {
  display: block; height: 4px; border-radius: 2px;
  background: rgba(255,255,255,0.30); margin-top: 7px; width: 78%;
}
.dcard .ln.s  { width: 58%; }
.dcard .ln.xs { width: 40%; background: rgba(244,201,122,0.55); }
/* gentle gradient variety between cards */
.app-decor .decor-item:nth-child(2n)   .dcard { background: linear-gradient(135deg, #1f2436 0%, #2a3550 50%, #355a6e 100%); }
.app-decor .decor-item:nth-child(3n)   .dcard { background: linear-gradient(135deg, #2a2030 0%, #43263f 50%, #6e3550 100%); }

/* ---- Subtrack — subscription / streaming app icons ---- */
.slogo {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  font-family: var(--sans);
  font-weight: 800;
  box-shadow:
    0 14px 26px -10px rgba(0,0,0,0.55),
    inset 0 0 0 1px rgba(255,255,255,0.10);
}
.slogo svg { width: 30px; height: 30px; display: block; }

.s-netflix  { background: #0b0b0d; }
.s-netflix b { color: #e50914; font-size: 30px; font-weight: 800; transform: scaleY(1.18); letter-spacing: -0.03em; }

.s-prime    { background: #0c1b33; }
.s-prime .pv { position: relative; color: #4db5f5; font-size: 13px; font-weight: 700; letter-spacing: -0.02em; }
.s-prime .pv::after {
  content: ""; position: absolute; left: 6%; right: 6%; bottom: -6px;
  height: 7px; border-bottom: 2px solid #4db5f5; border-radius: 0 0 60% 60%;
}

.s-spotify  { background: #1db954; }
.s-spotify svg { stroke: #08120a; stroke-width: 2.1; fill: none; stroke-linecap: round; }

.s-applemusic { background: linear-gradient(150deg, #fb5c74 0%, #fa233b 100%); }
.s-applemusic svg { fill: #fff; }

.s-deezer   { background: #0e0e14; }
.s-deezer .dz { display: flex; align-items: flex-end; gap: 3px; height: 26px; }
.s-deezer .dz i { display: block; width: 5px; border-radius: 2px; }

.s-fitnesspark { background: #0d0d0d; }
.s-fitnesspark b { color: #d8ff36; font-size: 20px; font-weight: 800; letter-spacing: -0.04em; }

.s-googleone { background: #ffffff; }
.s-googleone .g1 {
  width: 30px; height: 30px; border-radius: 50%;
  background: conic-gradient(#4285f4 0 25%, #ea4335 25% 50%, #fbbc05 50% 75%, #34a853 75% 100%);
  -webkit-mask: radial-gradient(circle 8.5px at center, transparent 98%, #000 100%);
          mask: radial-gradient(circle 8.5px at center, transparent 98%, #000 100%);
  transform: rotate(-12deg);
}

.s-chatgpt  { background: #0e8c6e; }
.s-chatgpt svg { stroke: #fff; stroke-width: 1.4; fill: none; }

.s-disney   { background: linear-gradient(160deg, #0a1a52 0%, #123a8f 100%); }
.s-disney b { color: #fff; font-size: 24px; font-weight: 700; font-style: italic; letter-spacing: -0.02em; }
.s-disney sup { color: #6fb6ff; font-size: 13px; font-weight: 700; margin-left: 1px; }

/* ---- Kado — iOS-style party / birthday emoji ---- */
.kemoji {
  font-size: 44px; line-height: 1;
  filter: drop-shadow(0 12px 18px rgba(0,0,0,0.45));
}

/* ---- Bloom — soft daisy flowers in assorted colors ---- */
.dflower {
  width: 62px; height: 62px;
  color: var(--c, #f4b15e);
  filter: drop-shadow(0 12px 20px rgba(0,0,0,0.35));
}
.dflower svg { width: 100%; height: 100%; display: block; }

/* ---- Tibou — storybook animals + night sparkle ---- */
.temoji {
  font-size: 42px; line-height: 1;
  filter: drop-shadow(0 12px 18px rgba(0,0,0,0.5));
}

/* Tighten the decor spread on small screens so items stay near
   the phone and never collide with the copy column. */
@media (max-width: 1024px) { .app-decor { --decor-k: 0.82; } }
@media (max-width: 820px)  { .app-decor { --decor-k: 0.7; } }
@media (max-width: 480px)  { .app-decor { --decor-k: 0.62; } }

@media (prefers-reduced-motion: reduce) {
  .decor-item__in { animation: none; }
  .decor-item { transition: opacity 0.4s ease; }
}
