/* ==========================================================
   Sunup — mysunup.com: stories, people and download (media.css)
   Builds on site.css tokens. Loaded after site.css.
   ========================================================== */

/* ---------- Launch state: html[data-launch] is "soon" until the app is live ---------- */
html:not([data-launch="live"]) [data-when="live"] { display: none !important; }
html[data-launch="live"] [data-when="soon"] { display: none !important; }

/* ---------- Store badges ---------- */
.stores { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; }
.store { display: inline-flex; border-radius: 10px; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.store img { height: 48px; width: auto; }
.store:hover { transform: translateY(-2px); }
html:not([data-launch="live"]) .store { opacity: .5; filter: saturate(.6); }
html:not([data-launch="live"]) .store:hover { opacity: .75; }
.stores-soon {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--sun-c); border: 1px solid rgba(255,197,77,.35); border-radius: 999px; padding: 6px 12px;
}
.hero-stores { margin-top: 22px; }
html:not([data-launch="live"]) .hero-stores { display: none; }
html[data-launch="live"] .hero .scroll-cue { display: none; }
.hero-stores .stores-soon { display: none; }
.hero-stores .store img { height: 44px; }

.play-dot { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,245,235,.16); margin-right: 2px; }
.play-dot::before { content: ""; border-left: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; margin-left: 2px; }

/* ---------- Stories reel ---------- */
.stories { padding-bottom: clamp(70px, 9vw, 120px); }
.reel { position: relative; }
.reel-track {
  list-style: none; margin: 0; display: flex; gap: clamp(14px, 2vw, 22px); overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding: 10px max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))) 26px;
  scrollbar-width: none;
}
.reel-track::-webkit-scrollbar { display: none; }
.reel-track li { flex: 0 0 auto; scroll-snap-align: start; }
.reel-card {
  position: relative; display: block; width: clamp(196px, 21vw, 258px); aspect-ratio: 9 / 16; padding: 0; border: 0; cursor: pointer;
  border-radius: 26px; overflow: hidden; background: var(--surface); text-align: left;
  box-shadow: 0 0 0 1px var(--line-strong), 0 30px 70px -36px rgba(0,0,0,.9);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.reel-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.reel-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,13,24,0) 45%, rgba(15,13,24,.88) 100%); }
.reel-card:hover, .reel-card:focus-visible { transform: translateY(-6px); box-shadow: 0 0 0 1px rgba(255,197,77,.55), 0 40px 80px -30px rgba(247,150,62,.45); }
.reel-card:hover img { transform: scale(1.05); }
.reel-play {
  position: absolute; z-index: 2; left: 50%; top: 44%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  background: rgba(255,245,235,.18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); transition: transform .35s var(--ease-spring), background .35s;
}
.reel-play::before { content: ""; position: absolute; left: 26px; top: 21px; border-left: 18px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.reel-card:hover .reel-play { transform: scale(1.12); background: var(--sun-b); }
.reel-meta { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 18px; color: #fff; display: grid; gap: 2px; }
.reel-meta b { font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.1; }
.reel-meta small { font-size: 14px; color: rgba(255,240,228,.8); }
.reel-len { position: absolute; z-index: 2; top: 14px; right: 14px; font-family: var(--font-mono); font-size: 12px; color: #fff; background: rgba(15,13,24,.55); border-radius: 999px; padding: 4px 9px; }
.reel-arrow {
  display: none; position: absolute; z-index: 3; top: calc(50% - 30px); width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line-strong); background: rgba(33,30,48,.8); color: var(--ink); font-size: 22px; backdrop-filter: blur(8px);
  transition: background .3s, border-color .3s;
}
.reel-arrow:hover { background: var(--surface-2); border-color: rgba(255,197,77,.6); }
.reel-arrow.prev { left: 18px; } .reel-arrow.next { right: 18px; }
@media (min-width: 900px) { .reel-arrow { display: block; } }
.reel-note { text-align: center; color: var(--dim); font-size: 14px; margin: 6px auto 0; max-width: 620px; }

/* ---------- Photo bands ---------- */
.band { position: relative; overflow: hidden; background: var(--night); }
.band-img { display: block; }
.band-img img { width: 100%; height: auto; display: block; }
.band-inner { position: relative; z-index: 2; padding-block: 34px 70px; }
.band-copy { max-width: 560px; }
.band .lead { color: var(--ink); opacity: .92; margin-top: 18px; }
.cta-row.left { justify-content: flex-start; }
@media (min-width: 900px) {
  .band { min-height: clamp(560px, 72vh, 780px); display: grid; align-items: center; }
  .band-img { position: absolute; inset: 0; }
  .band-img img { height: 100%; object-fit: cover; object-position: 70% 50%; }
  .band::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, rgba(15,13,24,.94) 0%, rgba(15,13,24,.78) 34%, rgba(15,13,24,.15) 62%, rgba(15,13,24,0) 80%),
                linear-gradient(180deg, var(--bg) 0%, transparent 14%, transparent 86%, var(--bg) 100%); }
  .band-inner { padding-block: 120px; }
  .band .display-2 { font-size: clamp(40px, 4.6vw, 64px); }
}
@media (max-width: 899px) {
  .band-img img { aspect-ratio: 16 / 11; object-fit: cover; object-position: 72% 50%; }
  .band-img { position: relative; }
  .band-img::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(180deg, transparent, var(--night)); }
}

/* ---------- Who it's for ---------- */
.who-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.who-card { background: var(--surface); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 0 0 1px var(--line); display: flex; flex-direction: column; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.who-card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(255,197,77,.35), 0 30px 70px -40px rgba(247,150,62,.5); }
.who-card img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.who-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.who-body h3 { font-family: var(--font-display); font-weight: 600; font-size: 26px; line-height: 1.12; }
.who-body p { color: var(--muted); margin: 0; font-size: 16.5px; }
.who-watch { margin-top: auto; padding: 10px 0 0; border: 0; background: none; color: var(--accent); font-weight: 600; font-size: 16px; text-align: left; cursor: pointer; }
.who-watch:hover { color: var(--sun-c); }
.tag { display: inline-block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--sun-c); border: 1px solid rgba(255,197,77,.35); border-radius: 999px; padding: 1px 8px; vertical-align: 2px; }
@media (min-width: 1001px) { .who-card img { aspect-ratio: 1 / 1; } }
@media (max-width: 1000px) { .who-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .who-grid { grid-template-columns: 1fr; gap: 14px; }
  .who-card { flex-direction: row; }
  .who-card img { width: 38%; aspect-ratio: auto; min-height: 100%; }
  .who-body { padding: 16px 16px 18px; }
  .who-body h3 { font-size: 21px; }
  .who-body p { font-size: 15.5px; }
}

/* ---------- Set it up for a parent ---------- */
.setup-grid { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(36px, 6vw, 90px); align-items: center; }
.setup-phone { display: grid; justify-items: center; gap: 16px; }
.setup-device { width: min(320px, 78vw); aspect-ratio: 9 / 16; border-radius: 44px; overflow: hidden; background: #000;
  box-shadow: 0 0 0 1px var(--line-strong), 0 0 0 8px rgba(42,38,64,.65), 0 50px 100px -40px rgba(0,0,0,.95), 0 0 120px -30px rgba(247,150,62,.35); }
.setup-device video { width: 100%; height: 100%; object-fit: cover; display: block; }
.setup-sound { border: 0; background: none; color: var(--accent); font-weight: 600; cursor: pointer; font-size: 15px; }
.steps { list-style: none; counter-reset: s; margin: 30px 0 0; padding: 0; display: grid; gap: 16px; }
.steps li { counter-increment: s; position: relative; padding-left: 56px; color: var(--muted); font-size: 17.5px; min-height: 40px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad-sun); color: #2a1405; font-weight: 700; font-family: var(--font-mono); }
.steps b { color: var(--ink); font-weight: 600; }
.setup-after { margin-top: 26px; color: var(--ink); font-size: 18px; border-left: 3px solid var(--sun-b); padding-left: 16px; }
@media (max-width: 860px) { .setup-grid { grid-template-columns: 1fr; } .setup-phone { order: 2; } }

/* ---------- Finale: badges and QR ---------- */
.finale-get { display: grid; justify-items: center; gap: 22px; margin-top: 34px; }
.finale-get .store img { height: 52px; }
.qr { display: none; align-items: center; gap: 16px; text-align: left; background: rgba(15,13,24,.55); border: 1px solid var(--line-strong); border-radius: 20px; padding: 12px 18px 12px 12px; backdrop-filter: blur(8px); }
.qr img { width: 112px; height: 112px; background: #fff; border-radius: 12px; padding: 8px; }
.qr p { margin: 0; color: var(--muted); font-size: 15px; max-width: 200px; }
.qr b { color: var(--ink); }
@media (min-width: 900px) and (pointer: fine) { html[data-launch="live"] .qr { display: flex; } }
.finale-fine { margin-top: 26px; font-size: 12px; color: var(--dim); }

/* ---------- Story player ---------- */
.vmodal { padding: 0; border: 0; background: #000; color: var(--ink); border-radius: 26px; width: min(430px, 94vw); max-height: 94vh; overflow: hidden;
  box-shadow: 0 0 0 1px var(--line-strong), 0 60px 140px rgba(0,0,0,.8); }
.vmodal::backdrop { background: rgba(10, 8, 16, .82); backdrop-filter: blur(6px); }
.vmodal video { display: block; width: 100%; aspect-ratio: 9 / 16; max-height: calc(94vh - 72px); background: #000; object-fit: contain; }
.vmodal-close { position: absolute; z-index: 2; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(15,13,24,.65); color: #fff; font-size: 26px; line-height: 1; }
.vmodal-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: var(--bg-2); }
.vmodal-title { margin: 0; font-family: var(--font-display); font-size: 19px; }

/* ---------- Sticky download bar (phones) ---------- */
.getbar { position: fixed; z-index: 80; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px;
  padding: 10px 10px 10px 12px; border-radius: 20px; background: rgba(26,23,39,.92); border: 1px solid var(--line-strong);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 20px 50px rgba(0,0,0,.6);
  transform: translateY(140%); transition: transform .5s var(--ease); }
.getbar.show { transform: none; }
.getbar img { width: 40px; height: 40px; border-radius: 11px; }
.getbar div { flex: 1; display: grid; line-height: 1.2; }
.getbar b { font-size: 15px; }
.getbar small { font-size: 13px; color: var(--muted); }
@media (min-width: 900px) { .getbar { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .reel-card, .reel-card img, .who-card, .getbar { transition: none; }
}

/* ---------- Hero: a real morning instead of the drawn sun ---------- */
.hero-photo-on .sky, .hero-photo-on .sky-fallback { display: none !important; }
.hero-photo { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--night); }
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 66% 40%;
  /* the room "rises" as you scroll: a slow push-in and the light coming up */
  transform: scale(calc(1.04 + var(--p, 0) * .08));
  filter: brightness(calc(.86 + var(--pp, 0) * .14)) saturate(calc(.95 + var(--pp, 0) * .1));
  will-change: transform;
}
.hero-photo-on .stage-shade { z-index: 1; background:
  linear-gradient(90deg, rgba(15,13,24,.9) 0%, rgba(15,13,24,.72) 30%, rgba(15,13,24,.18) 56%, rgba(15,13,24,0) 72%),
  linear-gradient(180deg, rgba(15,13,24,.5) 0%, transparent 20%, transparent 72%, var(--bg) 100%); }
/* once the phone rises over the photo, dim the room so the phone reads */
.hero-photo-on .stage-shade::after { content: ""; position: absolute; inset: 0; background: rgba(15,13,24, calc(var(--pp, 0) * .6)); }
@media (min-aspect-ratio: 1/1) and (min-width: 900px) {
  .hero-photo-on .hero-copy {
    left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); width: min(720px, 50vw); text-align: left;
    transform: translate(0, calc(var(--p, 0) * -90px)) scale(calc(1 - var(--p, 0) * .06)); transform-origin: left top;
  }
  .hero-photo-on .hero-copy .display { font-size: clamp(46px, 5.4vw, 86px); }
  .hero-photo-on .hero-copy .lead { margin-left: 0; }
  .hero-photo-on .hero-copy .cta-row, .hero-photo-on .hero-copy .stores { justify-content: flex-start; }
  .hero-photo-on .local-time { margin-left: 0; }
}
@media (max-aspect-ratio: 1/1), (max-width: 899px) {
  /* phones: Ruth in the top of the screen, the headline and buttons anchored at the bottom */
  .hero-photo img { object-position: 72% 0%; }
  .hero-photo-on .stage-shade { background:
    linear-gradient(180deg, rgba(15,13,24,.55) 0%, transparent 16%, transparent 30%, rgba(15,13,24,.78) 50%, rgba(15,13,24,.94) 70%, var(--bg) 100%); }
  .hero-photo-on .hero-copy { top: auto; bottom: max(22px, 3.5svh); transform: translate(-50%, calc(var(--p, 0) * -60px)); }
  .hero-photo-on .hero-copy .pill, .hero-photo-on .local-time, .hero-photo-on .scroll-cue { display: none; }
  .hero-photo-on .hero-copy .display { font-size: clamp(32px, 9.4vw, 50px); }
  .hero-photo-on .hero-copy .lead { margin-top: 14px; font-size: 17px; }
  .hero-photo-on .hero-copy .cta-row { margin-top: 20px; }
}

/* The App Store badge the sunup.onrender.com copy of this page gets from its server (class store-badge). */
.stores .store-badge { display: inline-flex; border-radius: 10px; }
.stores .store-badge img { display: block; height: 48px; width: auto; }
.hero-stores .store-badge img { height: 44px; }
.finale-get .store-badge img { height: 52px; }
