/* Vormedia Play — one stylesheet for every page.
   Colours are the brand's own, sampled from the logo kit:
   ground #070413, "Play" violet #a78bfa. */

:root {
  --ground: #070413;
  --surface: #0f0a20;
  --surface-2: #150e2e;
  --line: rgba(167, 139, 250, 0.14);
  --line-soft: rgba(255, 255, 255, 0.07);
  --violet: #a78bfa;
  --violet-deep: #7c3aed;
  --violet-glow: rgba(124, 58, 237, 0.35);
  --teal: #14b8a6;
  --text: #ffffff;
  --text-2: #b6b2c8;
  --text-3: #7c7891;
  --ok: #6ee7b7;
  --bad: #f87171;
  --warn: #fbbf24;
  --radius: 16px;
  --radius-sm: 10px;
  --shell: 1120px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', 'Inter', system-ui, sans-serif;
  background-color: var(--ground);
  background-image:
    radial-gradient(ellipse 70% 50% at 0% 0%, rgba(124, 58, 237, 0.16) 0%, transparent 60%),
    radial-gradient(ellipse 60% 45% at 100% 100%, rgba(20, 184, 166, 0.09) 0%, transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Header ─────────────────────────────────────────────────────── */

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(7, 4, 19, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .shell {
  display: flex; align-items: center; gap: 20px;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand img { width: 34px; height: 34px; object-fit: contain; }
/* The eye reads the play disc as the centre of the mark, but the mark's box
   is mostly ears: the disc measures 20.7% of the image height below that
   box centre, so centring the two boxes left the wordmark looking lifted.
   A percentage rather than pixels, so it holds at every size the lockup is
   used at -- 34px in the header, 30px in the mock, 26px in the footer. */
.brand img,
.showcase #phone .top img { transform: translateY(-20.7%); }
.brand-name { font-size: 19px; font-weight: 800; letter-spacing: -0.4px; }
.brand-name em { font-style: normal; color: var(--violet); }

.site-nav { display: flex; gap: 4px; margin-inline-start: auto; align-items: center; }
.site-nav a {
  padding: 8px 14px; border-radius: 999px; font-size: 14px;
  font-weight: 500; color: var(--text-2); transition: .18s;
}
.site-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.site-nav a.here { color: var(--text); background: rgba(167, 139, 250, 0.14); }

/* Six languages, each written in its own name -- somebody hunting for
   German is looking for "Deutsch" and by definition cannot read whatever
   the page is currently set to. */
.lang-switch {
  position: relative; flex-shrink: 0;
}
.lang-switch select {
  appearance: none; cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-soft); border-radius: 999px;
  color: var(--text-2); font: 600 13px/1 'Outfit', sans-serif;
  padding: 9px 30px 9px 14px; transition: .18s;
}
.lang-switch select:hover { color: var(--text); border-color: var(--line); }
.lang-switch select:focus { outline: none; border-color: var(--violet); }
.lang-switch option { background: #150e2e; color: #fff; }
.lang-switch::after {
  content: ""; position: absolute; right: 13px; top: 50%; pointer-events: none;
  width: 7px; height: 7px; margin-top: -5px;
  border-right: 1.6px solid var(--text-3); border-bottom: 1.6px solid var(--text-3);
  transform: rotate(45deg);
}

.burger { display: none; background: none; border: 0; color: var(--text);
  font-size: 20px; cursor: pointer; padding: 8px; }

@media (max-width: 860px) {
  /* The bar holds three things: the mark, the name, the menu button. The
     language control and the button both claimed the same edge with an auto
     margin, and the row wrapped -- which is why the button sat on a line of
     its own under the language. The language now opens with the menu, at
     the foot of the links, sized to be pressed with a thumb. */
  .burger { display: block; margin-inline-start: auto; order: 2; }
  .site-nav {
    order: 3; width: 100%; flex-direction: column; align-items: stretch;
    gap: 2px; padding: 8px 0 6px; display: none;
  }
  .site-nav.open { display: flex; }
  .lang-switch { order: 4; width: 100%; margin: 0 0 12px; display: none; }
  [data-header].open .lang-switch { display: block; }
  .lang-switch select { width: 100%; padding-block: 12px; }
  .site-header .shell { flex-wrap: wrap; height: auto; padding-block: 12px; }
}

/* ── Type ───────────────────────────────────────────────────────── */

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(34px, 6vw, 60px); font-weight: 800; }
h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 700; }
.lead { color: var(--text-2); font-size: 17px; max-width: 62ch; }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--violet); margin-bottom: 14px;
}
.grad { background: linear-gradient(120deg, #fff 0%, var(--violet) 60%, var(--violet-deep) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }

section { padding: 84px 0; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head .lead { margin: 14px auto 0; }

/* ── Buttons ────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1 'Outfit', sans-serif; cursor: pointer; transition: .2s;
  white-space: nowrap;
}
.btn-primary { background: linear-gradient(120deg, var(--violet-deep), var(--violet));
  color: #fff; box-shadow: 0 8px 26px var(--violet-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px var(--violet-glow); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn[disabled], .btn.is-soon {
  opacity: .5; cursor: not-allowed; transform: none; box-shadow: none;
  background: rgba(255, 255, 255, 0.05); border-color: var(--line-soft); color: var(--text-3);
}
.btn-wide { width: 100%; }

/* ── Cards ──────────────────────────────────────────────────────── */

.card {
  background: linear-gradient(160deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
  border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 26px;
}
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card-icon {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  font-size: 20px; margin-bottom: 16px;
  background: linear-gradient(140deg, rgba(124,58,237,.28), rgba(20,184,166,.16));
  color: var(--violet);
}
.card p { color: var(--text-2); font-size: 14.5px; margin-top: 8px; }

/* ── Platform cards ─────────────────────────────────────────────── */

.platform { display: flex; flex-direction: column; text-align: center; align-items: center; }
.platform .card-icon { width: 62px; height: 62px; font-size: 27px; border-radius: 18px; }
.platform .meta { color: var(--text-3); font-size: 13px; margin: 6px 0 18px; }
.platform .btn { margin-top: auto; }

.badge {
  display: inline-flex; align-items: center; gap: 6px; align-self: center;
  padding: 4px 11px; border-radius: 999px; font-size: 11px; font-weight: 700;
  letter-spacing: .8px; text-transform: uppercase; margin-bottom: 12px;
}
.badge-soon { background: rgba(251, 191, 36, .12); color: var(--warn);
  border: 1px solid rgba(251, 191, 36, .25); }
.badge-live { background: rgba(20, 184, 166, .12); color: var(--teal);
  border: 1px solid rgba(20, 184, 166, .25); }

/* ── Forms ──────────────────────────────────────────────────────── */

.form-card { max-width: 560px; margin: 0 auto; }
.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: 13px; font-weight: 600; color: var(--text-2);
  margin-bottom: 7px;
}
.field .hint { font-size: 12.5px; color: var(--text-3); margin-top: 6px; line-height: 1.5; }
.input, select.input {
  width: 100%; padding: 12px 15px; border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, .3); border: 1px solid var(--line-soft);
  color: var(--text); font: 400 15px/1.4 'Outfit', sans-serif; transition: .18s;
}
.input:focus {
  outline: none; border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, .16);
}
.input::placeholder { color: #5b5772; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: 1.5px; }

.msg { display: none; padding: 13px 16px; border-radius: var(--radius-sm);
  font-size: 14px; margin-bottom: 18px; line-height: 1.55; }
.msg.show { display: block; }
.msg.ok { background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.22); color: var(--ok); }
.msg.bad { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.22); color: var(--bad); }

/* ── Steps ──────────────────────────────────────────────────────── */

.steps { counter-reset: s; display: grid; gap: 18px; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step::before {
  counter-increment: s; content: counter(s);
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 14px;
  background: rgba(124, 58, 237, .2); color: var(--violet);
  border: 1px solid var(--line);
}
.step p { color: var(--text-2); font-size: 14.5px; margin-top: 3px; }

/* ── Notice ─────────────────────────────────────────────────────── */

.notice {
  border: 1px solid var(--line); background: rgba(124, 58, 237, .07);
  border-radius: var(--radius); padding: 18px 22px; color: var(--text-2);
  font-size: 14px; line-height: 1.6;
}
.notice strong { color: var(--text); }

/* ── Footer ─────────────────────────────────────────────────────── */

.site-footer { border-top: 1px solid var(--line-soft); padding: 44px 0 34px; margin-top: 40px; }
.site-footer .shell { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; margin-inline-start: auto; }
.site-footer a, .site-footer p { color: var(--text-3); font-size: 13.5px; }
.site-footer a:hover { color: var(--violet); }
.legal { width: 100%; color: var(--text-3); font-size: 12.5px; line-height: 1.7;
  border-top: 1px solid var(--line-soft); padding-top: 20px; }

/* ── Motion ─────────────────────────────────────────────────────── */

.rise { opacity: 0; transform: translateY(18px); transition: .6s cubic-bezier(.2,.7,.3,1); }
.rise.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .rise { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ── Playlist manager ───────────────────────────────────────────── */

.device-bar {
  display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center;
  padding: 16px 22px; margin-bottom: 22px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}
.device-bar .item { display: flex; flex-direction: column; gap: 2px; }
.device-bar .k {
  font-size: 10.5px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--text-3);
}
.device-bar .v { font-size: 15px; font-weight: 600; }
.device-bar .spacer { margin-inline-start: auto; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
}
.chip-ok  { background: rgba(20,184,166,.14); color: var(--teal);  border: 1px solid rgba(20,184,166,.28); }
.chip-bad { background: rgba(239,68,68,.12);  color: var(--bad);   border: 1px solid rgba(239,68,68,.26); }
.chip-neutral { background: rgba(167,139,250,.12); color: var(--violet);
  border: 1px solid rgba(167,139,250,.26); }

.pl-list { display: grid; gap: 12px; }
.pl-row {
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
  padding: 16px 20px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .035); border: 1px solid var(--line-soft);
}
.pl-row .body { min-width: 0; flex: 1 1 260px; }
.pl-row .name { font-weight: 700; font-size: 15.5px; }
.pl-row .src {
  font-size: 13px; color: var(--text-3); margin-top: 3px;
  overflow-wrap: anywhere; font-variant-numeric: tabular-nums;
}
.pl-row .acts { display: flex; gap: 8px; margin-inline-start: auto; }
.pl-row .acts .btn { padding: 9px 16px; font-size: 13.5px; }

.pl-empty { text-align: center; color: var(--text-3); padding: 34px 0; }

/* ── Modal ──────────────────────────────────────────────────────── */

.modal[hidden] { display: none; }
.modal {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center;
  padding: 20px; background: rgba(4, 2, 10, .74); backdrop-filter: blur(4px);
}
.modal .sheet {
  width: 100%; max-width: 460px; max-height: 90vh; overflow-y: auto;
  background: #120c26; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .6);
}
.modal .sheet h3 { margin-bottom: 20px; }
.modal .row { display: flex; gap: 10px; margin-top: 6px; }
.modal .row .btn { flex: 1; }

/* ── Band ───────────────────────────────────────────────────────── */

.band {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(124,58,237,.13), rgba(20,184,166,.05));
  padding: 34px 32px; display: flex; gap: 26px; align-items: center; flex-wrap: wrap;
}
.band .body { flex: 1 1 340px; }
.band h3 { margin-bottom: 8px; }
.band p { color: var(--text-2); font-size: 15px; }
.band .flags { display: flex; gap: 8px; flex-wrap: wrap; }
.band .flags span {
  padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgba(255,255,255,.06); border: 1px solid var(--line-soft);
  color: var(--text-2);
}

/* ── FAQ ────────────────────────────────────────────────────────── */

.faq { display: grid; gap: 10px; max-width: 780px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  background: rgba(255,255,255,.035); overflow: hidden;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 17px 20px;
  font-weight: 600; font-size: 15.5px; display: flex; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; margin-inline-start: auto; color: var(--violet);
  font-size: 20px; font-weight: 400; line-height: 1; transition: transform .2s;
}
.faq details[open] summary::after { content: "\2013"; }
.faq summary:hover { background: rgba(255,255,255,.03); }
.faq .answer { padding: 0 20px 18px; color: var(--text-2); font-size: 14.5px; }

/* ── The opening ────────────────────────────────────────────────
   The same opening the applications draw, rebuilt from VormediaSplash.kt
   rather than approximated: the ground and its two pools come from
   Backdrop.kt, the wordmark's sweep and the three dots' colours and their
   two-hundred millisecond stagger are the values the app compiles.

   It runs once per visit and lets itself be dismissed by a click, a key or
   a scroll. On a television the opening covers a real wait; here there is
   nothing to wait for, and an entrance nobody can leave is a door that
   sticks. Under prefers-reduced-motion it never appears at all. */
.vm-splash {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  background: var(--bg, #070413);
  opacity: 1; transition: opacity .52s ease;
}
.vm-splash::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle 95vmin at 8% 12%, rgba(124, 58, 237, .10), rgba(124, 58, 237, 0)),
    radial-gradient(circle 85vmin at 92% 88%, rgba(0, 229, 255, .07), rgba(0, 229, 255, 0));
}
.vm-splash.leaving { opacity: 0; }

.vm-splash .in {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.vm-splash .mark { position: relative; display: grid; place-items: center; }
/* The halo is drawn behind the artwork, not as a shadow: a shadow tints an
   opaque silhouette and would put a violet block behind a cut-out rabbit. */
.vm-splash .mark::before {
  content: ""; position: absolute; width: 218px; height: 218px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, .42), rgba(124, 58, 237, 0) 70%);
  opacity: 0; animation: vmFade .42s ease forwards;
}
.vm-splash .mark img {
  width: 104px; height: 104px; object-fit: contain; position: relative;
  opacity: 0; transform: scale(.72);
  animation: vmFade .42s ease forwards, vmSettle .78s cubic-bezier(.22, 1, .36, 1) forwards;
}
.vm-splash .word {
  font-size: 32px; font-weight: 700; letter-spacing: -.5px; white-space: nowrap;
  background: linear-gradient(90deg, #FFFFFF 0%, #66F0FF 42%, #A47BF7 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0; animation: vmFade .46s ease .22s forwards;
}
.vm-splash .tag {
  margin-top: 8px;
  font-size: 11px; font-weight: 500; letter-spacing: 4px; color: #00E5FF;
  white-space: nowrap;
  opacity: 0; transform: translateY(14px);
  animation: vmRise .52s ease .42s forwards;
}
.vm-splash .dots { display: flex; gap: 8px; align-items: flex-end;
  opacity: 0; animation: vmFade .52s ease .42s forwards; }
.vm-splash .dots i { width: 7px; height: 7px; border-radius: 50%;
  animation: vmBeat .6s linear infinite alternate; }
.vm-splash .dots i:nth-child(1) { background: #9061F5; }
.vm-splash .dots i:nth-child(2) { background: #6B92F0; animation-delay: .2s; }
.vm-splash .dots i:nth-child(3) { background: #1AE0FF; animation-delay: .4s; }

@keyframes vmFade   { to { opacity: 1; } }
@keyframes vmSettle { to { transform: scale(1); } }
@keyframes vmRise   { to { opacity: 1; transform: translateY(0); } }
@keyframes vmBeat   { from { transform: translateY(0); opacity: .5; }
                      to   { transform: translateY(-6px); opacity: 1; } }

/* A television is looked at from three metres and a telephone from thirty
   centimetres; the app changes size at the same place. */
@media (min-width: 700px) {
  .vm-splash .mark img { width: 132px; height: 132px; }
  .vm-splash .mark::before { width: 277px; height: 277px; }
  .vm-splash .word { font-size: 40px; }
  .vm-splash .tag { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .vm-splash { display: none; } }
