:root {
  color-scheme: dark;
  --bg: #07051a;
  --ink: #f7f4ff;
  --muted: #b9b3d4;
  --line: rgba(255, 255, 255, 0.12);
  --orange: #ff7a1a;
  --pink: #ff4d9a;
  --violet: #7a3dff;
}
html { scroll-padding-top: 96px; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", "Avenir Next", sans-serif;
  background:
    radial-gradient(900px 480px at 78% 8%, rgba(122, 61, 255, 0.35), transparent 60%),
    radial-gradient(700px 420px at 12% 0%, rgba(255, 77, 154, 0.18), transparent 55%),
    var(--bg);
  color: var(--ink);
}
a { color: inherit; }
.topbar {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 18px 32px;
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(7, 5, 26, 0.72);
  backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: -0.03em; white-space: nowrap; }
.brand .logo { height: 40px; width: auto; display: block; }
.mark {
  width: 36px; height: 36px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #ff4d9a, #7a3dff 55%, #ff7a1a);
  color: white; font-weight: 900;
}
.menu { display: flex; gap: 22px; margin-left: 18px; }
.menu a { text-decoration: none; color: #ddd7f5; font-weight: 600; }
.menu a:hover, .menu a[href="/"] { color: white; }
.actions { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.chip, .ghost, button, .button {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
}
.texty { text-decoration: none; padding: 8px 10px; color: #ddd7f5; }
.cta, button.solid, .button.solid {
  display: inline-block;
  border: 0;
  color: white;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 18px;
  background: linear-gradient(90deg, #7a3dff, #ff4d9a 55%, #ff7a1a);
}
.ghost { background: transparent; }
.wrap, .wide { width: min(1180px, calc(100% - 40px)); margin: 0 auto 64px; }
.landing {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: center;
  padding: 28px 0 10px;
}
.pill {
  display: inline-flex;
  border: 1px solid rgba(255, 77, 154, 0.45);
  border-radius: 999px;
  padding: 6px 12px;
  color: #ffd0ea;
  font-size: 13px;
}
h1 { font-size: clamp(40px, 5vw, 64px); line-height: 0.98; letter-spacing: -0.045em; margin: 14px 0; }
h1 span {
  background: linear-gradient(90deg, #ff4d9a, #ff7a1a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h2 { margin: 28px 0 12px; }
.lede { color: var(--muted); font-size: 18px; max-width: 46ch; }
.hero-actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.scene {
  position: relative;
  min-height: 460px;
  display: grid;
  place-items: center;
}
.scene::before {
  content: "";
  position: absolute;
  inset: 8% 6% 10%;
  background:
    radial-gradient(circle at 50% 42%, rgba(122, 61, 255, 0.55), transparent 58%),
    linear-gradient(180deg, transparent, rgba(255, 122, 26, 0.12));
  filter: blur(8px);
}
.scene img { position: relative; width: min(100%, 520px); filter: drop-shadow(0 30px 40px rgba(80, 20, 160, 0.45)); }
.feature-row, .stat-row, .split {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}
.feature-row { grid-template-columns: repeat(4, 1fr); }
.feature-row article, .price-card, .scale, .card, form.card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
}
.feature-row p, .price-card p { color: var(--muted); margin: 6px 0 0; }
.ico { display: block; color: #c9b6ff; margin-bottom: 8px; }
.stat-row { grid-template-columns: repeat(3, 140px) 1fr; align-items: center; }
.stat-row strong { display: block; font-size: 28px; }
.stat-row span, .scale small { color: var(--muted); }
.scale { display: flex; align-items: center; text-decoration: none; min-height: 84px; }
.price-card .cta { margin-top: 14px; }
.amount { font-size: 36px; font-weight: 800; color: white; }
.split { grid-template-columns: 1fr 1fr; }
.steps { color: var(--muted); display: grid; gap: 8px; padding-left: 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.place { margin-top: 28px; }
.place h3 { margin: 0 0 4px; }
.card video { width: 100%; border-radius: 14px; background: #000; margin-bottom: 10px; }
.muted { color: var(--muted); }
label { display: block; margin: 12px 0 6px; }
input, select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  color: var(--ink);
  font: inherit;
}
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.note { color: #ffb4c8; }
.stage {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  border-radius: 18px;
  overflow: hidden;
}
.stage img, .stage video { max-width: 100%; max-height: 80vh; }
body.kiosk { background: #000; overflow: hidden; }
body.kiosk .stage { min-height: 100vh; width: 100vw; margin: 0; border-radius: 0; background: #000; }
body.kiosk video, body.kiosk img { width: 100vw; height: 100vh; max-height: none; object-fit: contain; background: #000; }
body.kiosk #full { position: fixed; right: 16px; bottom: 16px; z-index: 2; }
body.desk {
  color-scheme: light;
  --bg: #f3f4f8;
  --ink: #1b1a21;
  --muted: #5f5b6d;
  --line: #e6e4ee;
  --card: #ffffff;
  --accent: #4f46e5;
  background: var(--bg);
  color: var(--ink);
}
.desk-shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.rail {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 12px 14px;
  border-right: 1px solid var(--line);
  background: #fff;
}
.rail .brand .logo { height: 48px; }
.rail nav { display: flex; flex-direction: column; gap: 2px; margin-top: 18px; }
.rail a.item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: #3a3746;
  font-weight: 600;
  font-size: 14px;
}
.rail a.item svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.rail a.item:hover { background: #f4f4f8; color: #1b1a21; }
.rail a.item.on { color: #3730a3; background: #eef0ff; }
.rail-foot { margin-top: auto; display: grid; gap: 8px; padding: 8px 4px 0; }
.who { margin: 0; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.desk-main { width: min(1120px, calc(100% - 56px)); margin: 0 auto; padding: 28px 0 72px; }
.pagehead { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 18px; }
.tabs {
  display: flex;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 16px;
  padding: 4px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.tabs a {
  padding: 7px 14px;
  border-radius: 8px;
  color: #3a3746;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.tabs a:hover { background: #f4f4f8; color: #1b1a21; }
.tabs a.on { background: #4f46e5; color: #fff; }
.tabs a.on:hover { background: #4338ca; color: #fff; }
.eyebrow { margin: 0 0 6px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #6d6a7c; font-weight: 700; }
.desk-main .pagehead h1 { margin: 0; font-size: 30px; color: #15141b; }
.desk-main .pagehead .lede { margin: 8px 0 0; max-width: 62ch; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 8px 0 18px; }
.stats article {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}
.stats span { color: var(--muted); font-size: 13px; }
.stats strong { display: block; margin-top: 8px; font-size: 30px; letter-spacing: -0.04em; }
.sheet {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}
.sheet > header { padding: 18px 18px 0; }
.sheet h2 { margin: 0; font-size: 18px; }
.sheet header p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.sheet-body { padding: 14px 18px 18px; }
.sheet-body > table, .desk-main > table {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.desk-main table { border-collapse: separate; border-spacing: 0; }
.desk-main th {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6d6a7c;
  background: #f7f7fb;
}
.desk-main tr:last-child td { border-bottom: 0; }
.desk-main td code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  color: #3730a3;
}
.reviews { display: grid; gap: 14px; }
.review {
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid #e0def0;
  border-radius: 14px;
  background: #fff;
}
.review video, .review img {
  width: 100%;
  height: 168px;
  object-fit: cover;
  border-radius: 10px;
  background: #111;
}
.review strong { display: block; font-size: 16px; }
.review p { margin: 6px 0 0; color: var(--muted); }
.review .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.review form { margin: 0; }
.children.queue .state, .queue .state {
  width: auto;
  height: auto;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-style: normal;
  font-weight: 650;
  background: #fff6e8;
  color: #9a6700;
}
.state.ok { background: #e8f8ef; color: #0f7a3a; }
.state.no { background: #fdecec; color: #b42318; }
@media (max-width: 720px) {
  .review { grid-template-columns: 1fr; }
}
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  background: #eef0ff;
  color: #3730a3;
  font-size: 12px;
  font-weight: 700;
}
.empty {
  margin: 4px 0 0;
  padding: 22px 16px;
  border-radius: 16px;
  border: 1px dashed #d9d6e3;
  background: #fafafc;
  color: var(--muted);
  text-align: center;
}
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 18px; padding: 0; list-style: none; }
.how li { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.how strong { display: block; margin-bottom: 4px; }
.how span { color: var(--muted); font-size: 14px; }
.films { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.films li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: #fafafc; }
.films li div { display: flex; align-items: center; gap: 10px; }
.films form { margin: 0; }
.screen-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.screen-card { padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; box-shadow: 0 1px 2px rgba(24, 20, 40, 0.04); }
.screen-card header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.screen-card h3 { margin: 0; font-size: 18px; }
.nest .add-video { margin-top: 8px; }
.nest .add-video label { margin-top: 8px; }
.tree, .children { list-style: none; margin: 0; padding: 0; }
.tree { display: grid; gap: 14px; }
.node { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.node > header, .node.place > summary, .node.screen > summary { display: flex; align-items: flex-start; gap: 10px; }
.node > header h2, .node > header h3, .node.place > summary h2, .node.screen > summary h3 { margin: 0; }
.node > header p, .node.place > summary p, .node.screen > summary p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.node.place > summary, .node.screen > summary, .nest > summary, .adder > summary { cursor: pointer; list-style: none; }
.node.place > summary::-webkit-details-marker, .node.screen > summary::-webkit-details-marker,
.nest > summary::-webkit-details-marker, .adder > summary::-webkit-details-marker { display: none; }
.node.place > summary::marker, .node.screen > summary::marker, .nest > summary::marker, .adder > summary::marker { content: ""; }
.node.place > summary .grow, .node.screen > summary .grow { flex: 1; min-width: 0; }
.node.place > summary .chev, .node.screen > summary .chev { flex: none; width: 8px; height: 8px; margin-top: 8px; border-right: 2px solid #5f5b6d; border-bottom: 2px solid #5f5b6d; transform: rotate(45deg); }
.node.place[open] > summary .chev, .node.screen[open] > summary .chev { transform: rotate(-135deg); margin-top: 12px; }
.node.place > .fold, .node.screen > .fold { margin-top: 14px; }
.nest > summary, .adder > summary { display: flex; align-items: center; gap: 10px; }
.nest > summary .ico, .adder > summary .ico, .gate .ico { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: #eef0ff; color: #3730a3; flex: none; }
.gate { display: flex; gap: 14px; align-items: flex-start; margin-top: 12px; padding: 16px; border: 1px solid #e0def0; border-radius: 14px; background: #fff; }
.gate strong { font-size: 16px; }
.gate p { margin: 6px 0 12px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.gate .price { margin: 10px 0 14px; font-size: 22px; font-weight: 700; color: #1b1a21; }
.gate form { margin: 0; }
.nest > summary .ico svg, .adder > summary .ico svg, .gate .ico svg, .with-ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nest > summary::after, .adder > summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid #5f5b6d; border-bottom: 2px solid #5f5b6d; transform: rotate(45deg); }
.nest[open] > summary::after, .adder[open] > summary::after { transform: rotate(-135deg); }
.node-mark { flex: none; border-radius: 8px; background: #eef0ff; color: #3730a3; font-size: 12px; font-weight: 700; padding: 4px 8px; }
.children { margin: 12px 0 0 22px; padding: 0 0 0 14px; border-left: 2px solid #e0def0; display: grid; gap: 10px; }
.children.queue li { display: flex; align-items: center; gap: 10px; background: #fafafc; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.nest, .adder { margin-top: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.nest summary, .adder summary { cursor: pointer; font-weight: 700; }
.adder form, .nest form { margin-top: 8px; }
.modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; background: rgba(27, 26, 33, 0.35); }
.modal[hidden] { display: none; }
.modal-card { width: min(360px, calc(100% - 32px)); background: #fff; border-radius: 14px; padding: 22px; text-align: center; }
.modal-card p { margin: 6px 0 0; color: var(--muted); }
.spin { width: 28px; height: 28px; margin: 0 auto 12px; border-radius: 50%; border: 3px solid #e6e4ee; border-top-color: #4f46e5; display: block; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.bar { height: 8px; margin: 14px auto 0; background: #e6e4ee; border-radius: 99px; overflow: hidden; }
.bar[hidden] { display: none; }
.bar > span { display: block; height: 100%; width: 0; background: #4f46e5; }
.pct { margin: 8px 0 0; font-size: 13px; font-weight: 600; color: var(--ink); }
.pct[hidden] { display: none; }
.toasts { position: fixed; top: 88px; left: 50%; z-index: 60; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; width: min(440px, calc(100% - 24px)); pointer-events: none; }
body.desk .toasts { top: 20px; }
.toast { pointer-events: auto; position: relative; overflow: hidden; box-sizing: border-box; display: flex; align-items: flex-start; gap: 10px; width: fit-content; max-width: 100%; margin: 0; padding: 12px 16px 14px; border-radius: 14px; background: #fff; color: #1b1a21; border: 1px solid #e7e5ef; box-shadow: 0 16px 40px rgba(27, 26, 33, 0.16); font-size: 14px; line-height: 1.4; animation: toast-in .22s ease; }
.toast i { flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; }
.toast svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.toast span { flex: 1; }
.toast.ok i { background: #e7f7ee; color: #157347; }
.toast.bad i { background: #fdecec; color: #b42318; }
.toast::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; transform-origin: left; animation: toast-life 4.4s linear forwards; }
.toast.ok::after { background: #1f9d55; }
.toast.bad::after { background: #d14343; }
.toast.out { animation: toast-out .18s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes toast-life { to { transform: scaleX(0); } }
.queue { margin: 14px 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.queue li { display: flex; align-items: center; gap: 10px; }
.queue li strong { flex: 1; font-weight: 650; }
.queue form { margin: 0; }
.queue span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #eef0ff; color: #3730a3; font-size: 12px; font-weight: 700; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.actions form { margin: 0; }
body.desk .with-ico { display: inline-flex; align-items: center; gap: 6px; }
body.desk a.solid,
body.desk .cta,
body.desk button.solid,
body.desk .button.solid {
  text-decoration: none;
  background: #4f46e5;
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 650;
  box-shadow: none;
}
body.desk button,
body.desk .ghost,
body.desk .chip {
  background: #fff;
  color: #1b1a21;
  border: 1px solid #dddbe6;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
}
body.desk button:hover,
body.desk .ghost:hover { background: #f6f6fa; }
body.desk a.solid:hover,
body.desk .cta:hover,
body.desk button.solid:hover { background: #4338ca; }
body.desk .card,
body.desk form.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
}
body.desk input,
body.desk select {
  background: #fff;
  color: #1b1a21;
  border: 1px solid #dddbe6;
  border-radius: 8px;
  padding: 8px 10px;
}
body.desk .note {
  color: #3f3a2a;
  background: #f8f4e8;
  border: 1px solid #eadfbe;
  border-radius: 8px;
  padding: 8px 10px;
}
body.desk h1,
body.desk h2,
body.desk h3 { color: #15141b; }
.desk-main form.card h2 { margin-top: 0; }
.desk-main .split { align-items: stretch; }
.desk-main .split > form.card { margin: 0; }
@media (max-width: 800px) {
  .desk-shell { grid-template-columns: 1fr; }
  .rail { position: sticky; top: 0; height: auto; z-index: 4; }
  .rail nav { flex-direction: row; overflow: auto; margin-top: 10px; }
  .rail a.item span { display: none; }
  .rail-foot { display: none; }
  .desk-main { width: min(1080px, calc(100% - 28px)); }
  .stats, .desk-main .split, .how, .screen-grid { grid-template-columns: 1fr 1fr; }
  .tabs { width: 100%; }
  .pagehead { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 900px) {
  .landing, .feature-row, .split, .stat-row, .row { grid-template-columns: 1fr; }
  .menu { display: none; }
  h1 { font-size: 40px; }
  .topbar { padding: 14px; }
}
