/* /welcome — landing page behind the printed business card's QR.
   Videos come from /welcome-videos.json (js/welcome.js). */

.wl-hero { padding-bottom: 72px; }
.wl-hero-inner { text-align: center; }
.wl-hero h1 { max-width: 18ch; margin-left: auto; margin-right: auto; }
.wl-hero h1 em { font-style: normal; color: var(--amber-500); }
.wl-hero .lede { margin: 0 auto; max-width: 54ch; }
.wl-hero .hero-ctas, .wl-hero .hero-points { justify-content: center; }
.wl-featured { max-width: 860px; margin: 44px auto 0; text-align: left; }
.wl-featured .wl-cap { color: #A6A6B0; }
.wl-featured .wl-cap h3 { color: #fff; }

.wl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px 24px; }
.wl-sub { font-size: 1.05rem; margin: 8px 0 18px; }
.wl-grid + .wl-sub { margin-top: 48px; }

/* "Turn your phone sideways" over a wide film on an upright phone */
.wl-rotate { position: absolute; inset: 0; z-index: 2; pointer-events: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: rgba(17,17,20,.72); color: #fff; text-align: center; font-size: 0.95rem; transition: opacity .4s ease; }
.wl-rotate b { font-size: 1.05rem; }
.wl-rotate > span:last-child { opacity: .75; font-size: .85rem; }
.wl-rotate.out { opacity: 0; }
.wl-rotate-phone { width: 56px; height: 56px; margin-bottom: 4px; animation: wl-turn 1.8s ease-in-out infinite; }
.wl-rotate-phone svg { width: 100%; height: 100%; }
@keyframes wl-turn { 0%, 20% { transform: rotate(0deg); } 55%, 80% { transform: rotate(-90deg); } 100% { transform: rotate(0deg); } }
@media (prefers-reduced-motion: reduce) { .wl-rotate-phone { animation: none; transform: rotate(-90deg); } }

/* one video tile: facade until clicked, then the YouTube iframe */
.wl-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: #111114; box-shadow: var(--shadow-2); }
.wl-video.tall { aspect-ratio: 9 / 16; max-width: 340px; }
.wl-video button { all: unset; cursor: pointer; position: absolute; inset: 0; display: block; }
.wl-video button:focus-visible { outline: 3px solid var(--amber-500); outline-offset: -3px; }
.wl-video img.thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.wl-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wl-play { position: absolute; left: 20px; bottom: 20px; width: 64px; height: 64px; border-radius: 50%; background: var(--amber-500); display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.35); transition: transform 160ms ease; }
.wl-video button:hover .wl-play { transform: scale(1.07); }
.wl-play svg { width: 26px; height: 26px; margin-left: 4px; }

/* not on YouTube yet */
.wl-soon { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 18px; color: #fff;
  background: radial-gradient(rgba(255,255,255,0.05) 1.4px, transparent 1.6px) 0 0 / 22px 22px, radial-gradient(120% 120% at 0% 0%, #26262A, #0A0A0C); }
.wl-soon img { width: 34px; height: auto; }
.wl-soon strong { font-size: 1.15rem; line-height: 1.2; letter-spacing: -0.01em; max-width: 18ch; }
.wl-soon span { align-self: flex-start; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; background: var(--amber-500); color: #111114; padding: 4px 9px; border-radius: 6px; }

.wl-cap { margin-top: 12px; color: var(--muted); font-size: 0.95rem; }
.wl-cap h3 { color: var(--ink); font-size: 1.05rem; margin-bottom: 4px; }
.wl-cap .wl-n { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 50%; background: var(--amber-500); color: #111114; font-size: 0.75rem; font-weight: 800; vertical-align: 2px; }

.wl-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.wl-contact a { display: block; padding: 20px 22px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-1); color: var(--ink); font-weight: 800; font-size: 1.05rem; }
.wl-contact a:hover { box-shadow: var(--shadow-2); }
.wl-contact span { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }

@media (max-width: 720px) {
  .wl-featured { margin-top: 32px; }
  .wl-play { width: 52px; height: 52px; left: 14px; bottom: 14px; }
}

/* homepage "Watch" band (index.html #watch) */
.home-watch-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.home-watch-copy .sect-sub { margin-bottom: 24px; }
@media (max-width: 860px) { .home-watch-grid { grid-template-columns: 1fr; gap: 28px; } }

/* App Store / Google Play buttons */
.wl-app { text-align: center; }
.wl-app .sect-head { margin-left: auto; margin-right: auto; }
.store-badges { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.store-badge { display: inline-flex; align-items: center; gap: 12px; min-width: 196px; padding: 11px 22px 11px 18px; border-radius: 14px; background: #0d0d12; color: #fff; text-align: left; text-decoration: none !important; box-shadow: var(--shadow-2); transition: transform 150ms ease, background 150ms ease; }
.store-badge:hover { background: #26262e; transform: translateY(-1px); }
.store-badge .sb-icon { width: 30px; height: 30px; flex: none; }
.store-badge span { display: flex; flex-direction: column; font-size: 1.28rem; font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; }
.store-badge small { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.02em; opacity: .85; margin-bottom: 2px; }

/* Nine menu links: keep each on one line and tighten the gaps on mid-size screens */
.site-nav a.navlink { white-space: nowrap; }
@media (min-width: 981px) and (max-width: 1180px) { .site-nav { gap: 14px; } .site-nav a.navlink { font-size: 0.86rem; } }
/* Too many links for a tablet row: use the phone menu up to 980px (same rules as site.css ≤720px) */
@media (min-width: 721px) and (max-width: 980px) {
  .nav-toggle { display: grid; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 14px; max-height: calc(100vh - 64px); overflow-y: auto; }
  .site-nav.menu-open .nav-links { display: grid; gap: 2px; }
  .nav-links .navlink { display: block; padding: 11px 8px; font-size: 1rem; border-top: 1px solid var(--line); }
  .nav-links .navlink:first-child { border-top: 0; }
}
