/* ============================================================
   Home Video site. The friends beta page's look, shared by every page:
     plate  = near-black violet (#07060c, #110e1d, #161227)
     glow   = tape-deck purple (#7b3fe4)
     accent = magenta, orange, gold (#d63a8c, #ff7a45, #ffd06a)
     chrome = the chrome-to-sunset gradient
   Light mode is the sleeve's cream label with the same accents, darkened to read on it.
   System fonts only, zero external requests.
   ============================================================ */
:root {
  color-scheme: dark light;
  --plate:     #07060c;
  --plate-2:   #110e1d;
  --surface:   #161227;
  --line:      rgba(201, 210, 234, 0.12);
  --chrome:    #c9d2ea;
  --magenta:   #d63a8c;
  --magenta-h: #e2479a;
  --orange:    #ff7a45;
  --gold:      #ffd06a;
  --link:      #ffd06a;
  --glow:      #7b3fe4;
  --t1:        #f3f1fa;
  --t2:        #bdb8d4;
  --t3:        #8a84a6;
  --bg-glow-1: rgba(123, 63, 228, 0.28);
  --bg-glow-2: rgba(214, 58, 140, 0.07);
  --shadow-1:  rgba(123, 63, 228, 0.32);
  --shadow-2:  rgba(0, 0, 0, 0.55);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: light) {
  :root {
    --plate:     #f6f1e6;
    --plate-2:   #eee7d8;
    --surface:   #fffdf8;
    --line:      rgba(42, 28, 74, 0.14);
    --chrome:    #3c3466;
    --magenta:   #b3236b;
    --magenta-h: #c22c78;
    --orange:    #c4511f;
    --gold:      #8a5d00;
    --link:      #9c1f5e;
    --glow:      #7b3fe4;
    --t1:        #1d1730;
    --t2:        #463f5e;
    --t3:        #665f7e;
    --bg-glow-1: rgba(123, 63, 228, 0.14);
    --bg-glow-2: rgba(214, 58, 140, 0.06);
    --shadow-1:  rgba(123, 63, 228, 0.22);
    --shadow-2:  rgba(42, 28, 74, 0.22);
  }
}
* { box-sizing: border-box; }
html { background: var(--plate); }
/* The footer sits at the bottom of a short page (404, support) instead of mid-screen. */
body > main { flex: 1 0 auto; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex; flex-direction: column;
  background-repeat: no-repeat;
  background-color: var(--plate);
  background-image:
    radial-gradient(1100px 600px at 50% -120px, var(--bg-glow-1), transparent 70%),
    radial-gradient(900px 500px at 100% 40%, var(--bg-glow-2), transparent 70%);
  color: var(--t1);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
code, kbd { font-family: var(--mono); font-size: .92em; }
img { max-width: 100%; display: block; }
.wrap { max-width: 680px; margin: 0 auto; padding: 0 24px; }
.wide { max-width: 980px; }

/* top bar on the inner pages */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 980px; margin: 0 auto; padding: 22px 24px 0; }
.home-link { display: inline-flex; align-items: center; gap: 10px; color: var(--t1); font-weight: 650; }
.home-link img { width: 34px; height: 34px; }
.home-link:hover { text-decoration: none; color: var(--t1); }
.topnav { display: flex; gap: 18px; font-size: .92rem; }
.topnav a { color: var(--t2); }
.topnav a[aria-current="page"] { color: var(--t1); }
/* The home page's top-right nav, placed the way filmpositive.app places its own: out of the hero's flow. */
.topnav-home { position: absolute; top: 22px; right: 24px; z-index: 4; align-items: center; }
.topnav-home a { display: inline-flex; }
.topnav-home a:hover { color: var(--t1); text-decoration: none; }
.topnav-home .navlink { font-weight: 600; }

/* hero */
.hero { text-align: center; padding: 56px 24px 8px; }
.sleeve-title { margin: 0; line-height: 0; }
.sleeve-big {
  margin: 0 auto; width: 300px; height: auto;
  /* drop-shadow follows the sleeve's alpha, so the shadow has the case's own corners. */
  filter: drop-shadow(0 30px 50px rgba(123, 63, 228, 0.5)) drop-shadow(0 10px 16px var(--shadow-2));
}
.tagline { color: var(--t2); font-size: 1.16rem; margin: 26px auto 0; max-width: 560px; text-wrap: balance; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 30px 0 0; }
.btn {
  display: inline-block; font-weight: 650; font-size: 1rem; letter-spacing: .01em;
  padding: 14px 28px; border-radius: 11px; border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.btn-live {
  background: var(--magenta); color: #fff;
  box-shadow: 0 10px 34px -10px rgba(214, 58, 140, 0.8);
}
.btn-live:hover { background: var(--magenta-h); color: #fff; text-decoration: none; transform: translateY(-1px); }
.btn-ghost { color: var(--t1); border-color: var(--line); background: rgba(255, 255, 255, 0.03); }
.btn-ghost:hover { text-decoration: none; border-color: var(--t3); }
/* Apple's official App Store badge, unaltered (the same SVG as compoundfun.app), the height of a button. */
.store { display: inline-flex; align-self: center; line-height: 0; }
.store img { display: block; height: 56px; width: auto; }
.micro {
  margin: 22px auto 0; max-width: 760px;
  font-family: var(--mono); font-size: .84rem; color: var(--t3); text-wrap: balance;
}
.micro .mg { display: inline-block; }
@media (max-width: 800px) {
  .micro .mg { display: block; }
  .micro .msep { display: none; }
}

/* the window, a real capture of the app with nothing painted over it */
.stage { padding: 44px 24px 8px; }
.window {
  position: relative; max-width: 820px; margin: 0 auto;
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 90px var(--shadow-1), 0 24px 50px var(--shadow-2);
}
.window img { width: 100%; height: auto; }
.caption { text-align: center; font-size: .84rem; color: var(--t3); margin: 12px auto 0; max-width: 640px; }

/* bands */
.band { padding: 44px 24px; }
.band + .band { border-top: 1px solid var(--line); }
h2 {
  font-family: var(--mono); font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--magenta); margin: 0 0 14px;
}
.lede { font-size: 1.28rem; line-height: 1.45; color: var(--t1); margin: 0 0 14px; font-weight: 600; text-wrap: balance; }
.note { color: var(--t2); font-size: .98rem; margin: 0 0 12px; }
h3 {
  font-family: var(--mono); font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--chrome); margin: 20px 0 4px;
}
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 8px 0 8px 22px; position: relative; color: var(--t2); font-size: .97rem; }
.list li::before {
  content: ""; position: absolute; left: 0; top: 17px;
  width: 10px; height: 2px; background: linear-gradient(90deg, var(--magenta), var(--orange));
}
.list strong, .steps strong, .note strong { color: var(--t1); font-weight: 650; }
.steps { margin: 0; padding-left: 22px; color: var(--t2); font-size: .97rem; }
.steps li { padding: 5px 0; }
.steps li::marker { font-family: var(--mono); color: var(--gold); }
kbd {
  background: var(--plate-2); border: 1px solid var(--line); border-bottom-width: 2px;
  border-radius: 5px; padding: 1px 6px; color: var(--t1);
}

/* the Looks */
.looks { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 18px 0 0; padding: 0; list-style: none; }
.look { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.look b { display: block; color: var(--t1); font-weight: 650; margin: 0 0 4px; }
.look span { display: block; color: var(--t2); font-size: .92rem; line-height: 1.5; }
.look-kind { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold) !important; margin: 0 0 6px; }

/* two columns: requirements and formats */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; gap: 8px; } }

/* the iPhone band's two phone screens */
.phones { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin: 26px 0 0; }
.phones figure { margin: 0; width: 230px; }
.phones img { width: 100%; height: auto; border-radius: 26px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 20px 50px var(--shadow-1); }
.phones figcaption { text-align: center; font-size: .84rem; color: var(--t3); margin: 10px 0 0; }

/* inner pages: privacy and support */
.doc { padding: 40px 24px 24px; }
.doc h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 6px; letter-spacing: -.01em; }
.doc .updated { font-family: var(--mono); font-size: .82rem; color: var(--t3); margin: 0 0 26px; }
.doc h2 { margin: 34px 0 10px; }
.doc p, .doc li { color: var(--t2); }
.doc p strong { color: var(--t1); }
.doc ul { padding-left: 20px; }
.doc li { padding: 3px 0; }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; color: var(--t1) !important; font-size: 1.05rem; }
.qa { border-top: 1px solid var(--line); }
.qa:first-of-type { border-top: 0; }
.qa summary { cursor: pointer; padding: 14px 0; font-weight: 650; color: var(--t1); list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before { content: "\25B8"; font-family: var(--mono); color: var(--gold); margin-right: 10px; }
.qa[open] summary::before { content: "\25BE"; }
.qa > div { padding: 0 0 12px 22px; }
.qa > div p { margin: 0 0 10px; }
.contact { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; }
.contact p { margin: 0 0 8px; }
.contact p:last-child { margin: 0; }

/* 404 */
.lost { text-align: center; padding: 60px 24px 40px; }
.lost h1 { font-family: var(--mono); font-size: .9rem; letter-spacing: .16em; text-transform: uppercase; color: var(--magenta); margin: 26px 0 8px; }
.lost p { color: var(--t2); margin: 0 0 6px; }
.lost .sleeve-big { width: 180px; }

/* footer */
.footer { padding: 36px 24px 52px; border-top: 1px solid var(--line); margin-top: 8px; }
.footer p { margin: 0 auto 6px; max-width: 640px; font-size: .86rem; color: var(--t3); text-align: center; }
.foot-brand { font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--chrome) !important; }
.foot-links { margin-top: 12px !important; }
.foot-links a { margin: 0 8px; }

@media (max-width: 460px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 40px 16px 4px; }
  /* Room for the top-right nav above the sleeve on a phone. */
  .topnav-home { top: 14px; right: 16px; }
  .topnav-home ~ .hero { padding-top: 58px; }
  .stage, .band, .doc { padding-left: 16px; padding-right: 16px; }
  .sleeve-big { width: 220px; }
  .topbar { padding: 16px 16px 0; }
  .topnav { gap: 12px; }
  .doc h1 { font-size: 1.6rem; }
  .rn-build summary { flex-direction: column; gap: 2px; }
  .rn-date { padding-left: 22px; }
}
