/* Colourize Apps: styled after colourize.media (black page, Manrope, framed photos,
   cyan dot + uppercase tag nav, logo in the frame corner). Always dark, like the main site. */
:root {
  --bg: #000; --panel: #111214; --panel-2: #18191c; --line: #26282d;
  --text: #f2f3f5; --muted: #a2a7b0; --dim: #6d727c;
  --tag: #1e1e1e; --cyan: #7ccfd9; --pink: #c2287f; --blue: #2c63d2;
  --ok: #4cc38a; --danger: #ef5a5a;
  --radius: 24px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 300 17px/1.55 Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; letter-spacing: -0.1px; }
a { color: var(--cyan); }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; margin: 0; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Tags: the colourize.media nav labels */
.tag, .section-tag { display: inline-block; background: var(--tag); color: #fff; text-decoration: none;
  font: 700 14px/1 Manrope, sans-serif; text-transform: uppercase; letter-spacing: 1.36px; padding: 6px 8px 5px 9px; }
.tag:hover { background: #fff; color: #000; }
.section-tag { font-size: 13px; margin-bottom: 20px; }
.section-tag.light { background: #fff; color: #000; }

/* Buttons */
.btn, button { font: 700 14px/1 Manrope, sans-serif; text-transform: uppercase; letter-spacing: 1.2px;
  border: 0; border-radius: 0; padding: 14px 18px 13px; background: #fff; color: #000; cursor: pointer;
  text-decoration: none; display: inline-flex; gap: 10px; align-items: center; }
.btn:hover, button:hover { background: var(--cyan); }
.btn.ghost, button.secondary { background: rgba(0,0,0,.55); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55); }
.btn.ghost:hover, button.secondary:hover { background: #fff; color: #000; }
button.deny { background: var(--danger); color: #fff; }

/* The framed photo (black margin, rounded inset) */
.frame { position: relative; margin: 8px; border-radius: var(--radius); overflow: hidden; background: #0b0b0c var(--photo) center/cover no-repeat; }
.frame::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.15) 100%),
              linear-gradient(0deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 40%); }
.frame::before { z-index: 1; }
.frame > * { position: relative; z-index: 2; }

/* Hero slideshow: the photos cross-fade like colourize.media's background gallery.
   5 photos x 7s; each fades in over ~1.5s while the previous one is still showing. */
.frame > .slides, .backdrop > .slides { position: absolute; inset: 0; z-index: 0; }
.slides span { position: absolute; inset: 0; background: center/cover no-repeat; opacity: 0;
  animation: slide 35s infinite; }
.slides span:nth-child(1) { animation-delay: 0s; }
.slides span:nth-child(2) { animation-delay: 7s; }
.slides span:nth-child(3) { animation-delay: 14s; }
.slides span:nth-child(4) { animation-delay: 21s; }
.slides span:nth-child(5) { animation-delay: 28s; }
@keyframes slide { 0% { opacity: 0; } 4% { opacity: 1; } 20% { opacity: 1; } 25% { opacity: 0; } 100% { opacity: 0; } }
.slides span:first-child { animation-name: slide-first; }
@keyframes slide-first { 0% { opacity: 1; } 20% { opacity: 1; } 25% { opacity: 0; } 96% { opacity: 0; } 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .slides span { animation: none; }
  .slides span:first-child { opacity: 1; }
}
.frame-logo { position: absolute; right: 22px; bottom: 20px; width: min(300px, 46vw); height: auto; }

/* Dot + radial tag nav, built like colourize.media's: the menu is pinned to the centre of the
   circle and each tag is rotated by (index x step) around that centre, then pushed out past the
   circle's edge (radius + gap) and centred vertically on that line. */
.tags { --dot: 50px; --gap: 34px; --step: 30deg; --inset: 22px;
  position: absolute; z-index: 2; width: 0; height: 0;
  left: calc(var(--inset) + var(--dot) / 2); top: calc(var(--inset) + var(--dot) / 2); }
.dot { position: absolute; width: var(--dot); height: var(--dot); border-radius: 50%; background: var(--cyan);
  left: calc(var(--dot) / -2); top: calc(var(--dot) / -2); transition: background .15s; }
.dot:hover { background: #fff; }
.tags .tag { position: absolute; left: 0; top: 0; transform-origin: 0 0; white-space: nowrap;
  font-size: 17px; line-height: 17px; padding: 4px 7px 4px 8px;
  transform: rotate(calc(var(--i, 0) * var(--step))) translate(calc(var(--dot) / 2 + var(--gap)), -50%); }

/* Landing */
/* Landing: one fixed framed backdrop (photos), content scrolls over it */
.backdrop { position: fixed; inset: 8px; border-radius: var(--radius); overflow: hidden; z-index: 0; background: #0b0b0c; }
.backdrop::after { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.5) 50%, rgba(0,0,0,.2) 100%),
              linear-gradient(0deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 45%); }
.tags.fixed { position: fixed; --inset: 30px; z-index: 5; }
/* Compact menu (like colourize.media): once the page scrolls past the top, only the circle stays;
   hovering it, or tapping it once on a phone, fans the labels back out. */
.tags .tag { transition: opacity .2s, visibility .2s; }
.compact .tags.fixed .tag { opacity: 0; visibility: hidden; }
.compact .tags.fixed.open .tag, .compact .tags.fixed:hover .tag { opacity: 1; visibility: visible; }
.compact .tags.fixed .dot { box-shadow: 0 0 0 4px rgba(0,0,0,.35); }
.corner-logo { position: fixed; right: 30px; bottom: 26px; width: min(300px, 44vw); height: auto; z-index: 1; pointer-events: none; }
.landing .hero, .landing .wrap, .landing .foot { position: relative; z-index: 2; }
.hero { min-height: min(92vh, 860px); display: flex; align-items: flex-end; }
.hero-copy { padding: 200px 48px 120px; max-width: 800px; }
.landing .wrap { padding-top: 24px; }
.landing .app { background: rgba(14,15,17,.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-color: rgba(255,255,255,.08); }
.landing .foot { padding-bottom: 140px; }
.kicker { margin: 0 0 14px; color: var(--cyan); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: 13px; }
.hero h1 { font-size: clamp(42px, 7vw, 86px); line-height: .98; }
.lede { font-size: clamp(17px, 2vw, 21px); color: #d9dce1; max-width: 560px; margin: 22px 0 30px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 72px 24px 24px; }
.lineup-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.app { display: flex; gap: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.app img { width: 64px; height: 64px; border-radius: 15px; flex: none; }
.app h3 { font-size: 19px; }
.app p { margin: 4px 0 10px; color: var(--muted); font-size: 15px; }
.os { display: inline-block; font: 700 11px/1 Manrope, sans-serif; text-transform: uppercase; letter-spacing: 1px;
  padding: 4px 6px; margin-right: 6px; border: 1px solid var(--line); color: var(--muted); }

.how { margin: 56px 0 0; max-width: 680px; background: rgba(14,15,17,.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.08); border-radius: 18px; }
.how-inner { padding: 36px 36px 38px; }
.how ol { margin: 0 0 28px; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 14px; }
/* Each step is at least as tall as its number circle, so circles never touch; the circles take
   the logo's colours in order: magenta, blue, cyan. */
.how li { counter-increment: s; position: relative; min-height: 40px; padding: 8px 0 0 56px; color: #d9dce1; }
.how li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--cyan); color: #000; font-weight: 800; font-size: 17px; display: grid; place-items: center; }
.how li:nth-child(3n+1)::before { background: var(--pink); color: #fff; }
.how li:nth-child(3n+2)::before { background: var(--blue); color: #fff; }
.how li:nth-child(3n)::before { background: var(--cyan); color: #000; }
.how li b { color: #fff; font-weight: 700; }

.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; max-width: 1180px; margin: 0 auto;
  padding: 32px 24px 40px; color: var(--dim); font-size: 14px; }
.foot a { color: var(--muted); text-decoration: none; }

/* Signed-in pages: slim framed banner */
.banner { min-height: 220px; display: flex; align-items: flex-end; }
.banner .banner-copy { padding: 110px 36px 30px; }
.banner h1 { font-size: clamp(32px, 5vw, 52px); }
.banner .who { margin: 8px 0 0; color: #d9dce1; font-size: 15px; }
.banner .frame-logo { width: min(220px, 40vw); }
.page-nav { position: absolute; top: 22px; right: 22px; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; z-index: 2; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.narrow { max-width: 560px; margin: 0 auto; }
.muted { color: var(--muted); }
.small { font-size: 13px; margin: 2px 0 8px; }
.panel h2 { font-size: 28px; margin-bottom: 10px; }
form { display: grid; gap: 16px; margin-top: 18px; }
label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
input, textarea { font: 400 16px Manrope, sans-serif; text-transform: none; letter-spacing: 0; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: #0a0a0b; color: var(--text); }
input:focus, textarea:focus { outline: 2px solid var(--cyan); outline-offset: 1px; border-color: transparent; }
.error { color: var(--danger); margin: 0; }

/* Downloads */
.grid { display: grid; gap: 14px; }
.card { display: flex; gap: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.card .icon { width: 76px; height: 76px; flex: none; border-radius: 17px; }
.card .body { min-width: 0; }
.card h2 { font-size: 22px; }
.card p { margin: 4px 0 14px; color: var(--muted); }
.downloads { display: flex; gap: 8px; flex-wrap: wrap; }
.downloads .btn { padding: 11px 14px 10px; font-size: 13px; }
.btn .size { font-weight: 600; opacity: .6; font-size: 11px; letter-spacing: .5px; }
.help { margin-top: 26px; color: var(--muted); font-size: 15px; }
.help summary { cursor: pointer; color: var(--text); font-weight: 700; }

/* Admin */
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--dim); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; }
td strong { font-weight: 700; }
.table-wrap { overflow-x: auto; }
.pill { display: inline-block; padding: 4px 7px; font: 700 11px/1 Manrope, sans-serif; text-transform: uppercase; letter-spacing: 1px; }
.pill.pending { background: var(--pink); color: #fff; } .pill.approved { background: var(--ok); color: #000; } .pill.denied { background: var(--danger); color: #fff; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.actions button { padding: 8px 10px 7px; font-size: 11px; }
.addrow { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 22px; }
.addrow input { flex: 1 1 240px; }
.tabs { display: flex; gap: 6px; margin: 0 0 16px; flex-wrap: wrap; }
.tabs button { background: var(--tag); color: #fff; padding: 9px 11px 8px; font-size: 12px; }
.tabs button.on { background: #fff; color: #000; }

@media (max-width: 640px) {
  .frame { margin: 6px; border-radius: 18px; }
  .hero-copy { padding: 180px 22px 90px; }
  .backdrop { inset: 6px; border-radius: 18px; }
  .tags.fixed { --inset: 22px; }
  .corner-logo { right: 18px; bottom: 16px; }
  .how-inner { padding: 28px 22px; }
  .tags { --dot: 40px; --gap: 24px; --inset: 16px; }
  .tags .tag { font-size: 13px; line-height: 13px; padding: 4px 6px 3px 7px; }
  .wrap { padding: 52px 16px 16px; }
  .lineup-grid { grid-template-columns: 1fr; }
  .banner .banner-copy { padding: 100px 22px 24px; }
  .page-nav { top: 16px; right: 16px; }
  .card { flex-direction: column; gap: 12px; }
  .card .icon { width: 60px; height: 60px; }
  .frame-logo { right: 16px; bottom: 16px; }
}
