/* 1210's landing page (/1210/, /ar/1210/; tools/1210-landing.mjs), on top of 1210.css. The app's Midnight look, the
   phone in glass and smooth metal with a quiet indigo light behind it, light that settles rather than flashes. Sections rise in once as they reach the
   screen; with Reduce Motion nothing moves and every clip keeps its still frame. */

:root { --ease: cubic-bezier(.2, .7, .2, 1); --glass: rgba(255, 255, 255, .045); --glass-edge: rgba(255, 255, 255, .09); }

/* ---------- The phone: a smooth metal band, a glass face ---------- */
.landing .phone {
  position: relative;
  width: min(100%, 320px);
  padding: 9px;
  border-radius: 56px;
  background: linear-gradient(155deg, #4A5366 0%, #1C2230 30%, #0E121B 58%, #252C3B 82%, #4A5366 100%);
  box-shadow:
    0 60px 120px -30px rgba(0, 0, 0, .75),
    0 0 140px -10px rgba(108, 92, 231, .22),
    0 0 0 1px rgba(255, 255, 255, .06),
    inset 0 1px 0 rgba(255, 255, 255, .22),
    inset 0 -1px 0 rgba(0, 0, 0, .55);
}
/* the glass: one soft reflection across the face */
.landing .phone::after {
  content: '';
  position: absolute;
  inset: 9px;
  border-radius: 47px;
  background: linear-gradient(115deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, 0) 32%);
  pointer-events: none;
}
.landing .phone img, .landing .phone video { display: block; width: 100%; height: auto; border-radius: 47px; background: var(--panel); }
.landing .hero .phone { width: min(100%, 340px); }

/* ---------- Sections ---------- */
.landing .feature { padding-block: 12svh; }
.landing .feature.text-only { grid-template-columns: minmax(0, 1fr); }
.landing .feature.text-only .copy { max-width: 40rem; }
.landing .copy h2 { font-size: clamp(32px, 4vw, 52px); }
.landing .copy { gap: 16px; }

/* every kind of game, with a few of its games */
.kinds { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 12px; margin: 10px 0 0; padding: 0; list-style: none; }
.kinds li {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 20px;
  background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--glass-edge), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.kinds b { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 400; font-size: 20px; line-height: 1.2; color: var(--moon); }
.kinds b::before { content: ''; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px color-mix(in srgb, var(--c) 60%, transparent); }
.kinds span { color: var(--moon-2); font-size: 15px; line-height: 1.5; }
.landing #games .copy { max-width: none; }
.landing #games { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }

/* ---------- Made with care ---------- */
.care { display: grid; gap: 28px; padding-block: 12svh; border-top: 1px solid var(--hair); }
.care h2 { font-size: clamp(32px, 4vw, 52px); }
/* nine, so three by three on a wide screen, two across on a tablet, one on a phone */
.care-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.care-list li {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 24px;
  border-radius: 24px;
  background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--glass-edge), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.care-list p { color: var(--moon-2); font-size: 16px; }
.promise { max-width: 40rem; color: var(--moon-3); font-size: 15px; }

/* ---------- Once more, at the end ---------- */
.again { display: grid; justify-items: center; gap: 18px; padding-block: 12svh 14svh; text-align: center; border-top: 1px solid var(--hair); }
.again .title { font-family: var(--display); font-size: clamp(96px, 14vw, 180px); line-height: .82; color: var(--moon); }
.again .cta-note { margin-top: -6px; }

/* the App Store badge, black as Apple draws it for dark grounds, never stretched or recoloured; the gaps around it are
   at least a quarter of its height (Brand) */
.store { display: inline-block; line-height: 0; }
.store img { display: block; width: auto; height: 54px; }

/* ---------- Motion ---------- */
.rise-ready .rise { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.rise-ready .rise.in { opacity: 1; transform: none; }

@media (max-width: 899px) { .care-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) { .care-list { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 820px) {
  .landing #games { grid-template-columns: minmax(0, 1fr); }
  .landing .phone, .landing .hero .phone { width: min(100%, 290px); }
}
@media (prefers-reduced-motion: reduce) {
  .rise-ready .rise { opacity: 1; transform: none; transition: none; }
}
