/* Convivium: warm paper, editorial serif, soft floating cards.
   Rose = grounded in Qloo data. Amber = agent inference. These two carry meaning; never decoration. */
:root {
  --bg: #0E0E10;
  --bg-2: #141416;
  --surface: #19191C;
  --ink: #F2EFE9;
  --ink-2: #BDB9B0;
  --muted: #8E8A81;
  --line: #2A2A2E;
  --line-2: #222225;
  --blue-tint: #141C2B;
  --blue: #7EA6F5;
  --yellow-tint: #241E13;
  --yellow: #F2B44E;
  --green-tint: #13211A;
  --green: #5CC487;
  --qloo: #FF6B9A;
  --qloo-tint: rgba(255, 107, 154, 0.14);
  --infer: #F2B44E;
  --infer-tint: rgba(242, 180, 78, 0.13);
  --bad: #FF8A73;
  --serif: "Instrument Serif", "Hiragino Mincho ProN", "Noto Serif JP", "Noto Serif KR", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-lg: 24px;
  --r-md: 18px;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 18px 40px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 34px 70px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 15.5px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
.muted { color: var(--muted); }
table { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 10px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 999px; z-index: 100; }
.skip:focus { left: 12px; }
#view:focus { outline: none; }

/* ---------- type ---------- */
.display {
  font: 400 clamp(46px, 7.2vw, 104px)/0.98 var(--serif);
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.h1 { font: 400 clamp(40px, 5.6vw, 80px)/1 var(--serif); letter-spacing: -0.02em; text-wrap: balance; }
.h2 { font: 400 clamp(34px, 4vw, 54px)/1.04 var(--serif); letter-spacing: -0.015em; text-wrap: balance; }
.h3 { font: 400 28px/1.1 var(--serif); letter-spacing: -0.01em; }
.eyebrow { font-size: 13.5px; font-weight: 500; color: var(--muted); }
.lede { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; color: var(--ink-2); max-width: 40ch; text-wrap: pretty; }
.sub { color: var(--ink-2); max-width: 58ch; font-size: 16.5px; text-wrap: pretty; }
.card-title { font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-title .muted { font-weight: 400; font-size: 13px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; font: 500 15px/1 var(--sans); text-decoration: none;
  padding: 15px 26px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn svg { width: 16px; height: 16px; }
.btn-dark { background: var(--ink); color: #0E0E10; }
.btn-dark:hover { background: #FFFFFF; transform: translateY(-1px); }
.btn-light { background: transparent; color: var(--ink); border-color: #3A3A3F; }
.btn-light:hover { border-color: var(--ink); }
.btn-sm { padding: 11px 20px; font-size: 14px; }
.btn:disabled { opacity: 0.55; cursor: progress; transform: none; }
.text-btn { background: none; border: 0; padding: 0; font: 500 13.5px var(--sans); color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.text-btn:hover { color: var(--ink); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 24px;
  padding: 16px clamp(16px, 4vw, 44px); background: rgba(14, 14, 16, 0.78);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
}
.nav.scrolled { border-bottom-color: var(--line); }
.wordmark { font: 400 30px/1 var(--serif); letter-spacing: -0.01em; text-decoration: none; color: var(--ink); }
.wordmark-sm { font-size: 24px; margin-bottom: 4px; }
.nav-links { display: flex; gap: 34px; margin: 0 auto; }
.nav-links a { text-decoration: none; font-size: 14.5px; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.status-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.status-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: #55534E; }
.status-chip.live .dot { background: var(--green); box-shadow: 0 0 0 4px rgba(92, 196, 135, 0.16); }
.status-chip.fixture { color: var(--infer); }
.status-chip.fixture .dot { background: var(--yellow); }
.banner { background: var(--yellow-tint); color: var(--infer); font-weight: 500; text-align: center; padding: 10px 16px; font-size: 14px; border-bottom: 1px solid #3A2F18; }

/* ---------- layout ---------- */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 44px); }
.section { padding-top: clamp(64px, 9vw, 120px); }
.section-head { display: grid; gap: 12px; margin-bottom: 34px; max-width: 760px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }

.card {
  background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.06); padding: 26px;
}
.card.blue { background: var(--blue-tint); }
.card.yellow { background: var(--yellow-tint); }
.card.green { background: var(--green-tint); }
.card.flat { box-shadow: none; border-color: var(--line); }

/* ---------- hero ---------- */
.hero { position: relative; text-align: center; padding-top: clamp(36px, 5vw, 64px); overflow: hidden; }
.hero-copy { position: relative; z-index: 2; }
.hero .eyebrow { margin-bottom: 18px; }
.hero .lede { margin: 22px auto 0; max-width: 46ch; }
.cta { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* The stage holds the CTA, the floating cards and the phone, cut off at the bottom like a hero shot. */
.stage { position: relative; max-width: 1240px; height: 660px; margin: 34px auto 0; padding: 0 clamp(16px, 4vw, 44px); overflow: hidden; }
.stage::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; z-index: 4; pointer-events: none;
  background: linear-gradient(180deg, rgba(14, 14, 16, 0), var(--bg));
}
.stage > .cta { position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 5; width: max-content; }
.stage-cards { position: absolute; inset: 0; }
.arcs { position: absolute; left: 50%; top: 120px; width: 1700px; height: 1100px; transform: translateX(-50%); pointer-events: none; z-index: 0; }
.arcs circle { fill: none; stroke: #232327; stroke-width: 1; }
.arcs .orb { stroke: none; }

.phone {
  position: absolute; left: 50%; top: 88px; width: 400px; height: 640px; transform: translateX(-50%); z-index: 2;
  border-radius: 56px; background: #050506; padding: 12px; border: 1px solid #2C2C30; box-shadow: var(--shadow-lg);
  text-decoration: none; color: #fff; display: block;
}
.phone-screen { position: relative; height: 100%; border-radius: 46px; overflow: hidden; background: linear-gradient(160deg, #2E2D36, #141318); }
.phone-screen > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone-screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,0.72) 0%, rgba(10,10,10,0.2) 44%, rgba(10,10,10,0.05) 60%, rgba(10,10,10,0.5) 100%); }
.phone-notch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 118px; height: 34px; border-radius: 999px; background: #050506; z-index: 3; }
.phone-ui { position: absolute; inset: 0; z-index: 2; padding: 64px 28px 28px; text-align: left; display: flex; flex-direction: column; }
.phone-kicker { font-size: 15px; font-weight: 600; }
.phone-state { font-size: 12.5px; color: rgba(255,255,255,0.78); display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.phone-state .dot { width: 6px; height: 6px; border-radius: 50%; background: #7FB2FF; }
.phone-title { font: 400 34px/1.05 var(--serif); margin-top: 34px; letter-spacing: -0.01em; max-width: 12ch; }
.phone-sub { font-size: 13.5px; color: rgba(255,255,255,0.82); margin-top: 12px; }
.phone-bar { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 12px; color: rgba(255,255,255,0.82); }
.phone-bar .track { flex: 0 0 150px; height: 3px; border-radius: 3px; background: rgba(255,255,255,0.28); overflow: hidden; }
.phone-bar .fill { height: 100%; background: #7FB2FF; }
/* Sits in the visible part of the phone (the stage cuts the bottom off). */
.phone-inset {
  position: absolute; right: 18px; top: 372px; width: 104px; height: 128px; border-radius: 18px; overflow: hidden;
  background: #2A2930; border: 2px solid rgba(255,255,255,0.16); z-index: 3;
}
.phone-inset img { width: 100%; height: 100%; object-fit: cover; }
.phone-inset span { position: absolute; left: 8px; right: 8px; bottom: 7px; font-size: 10.5px; font-weight: 600; line-height: 1.2; text-shadow: 0 1px 4px rgba(0,0,0,0.6); }
.phone-empty-msg { margin-top: 18px; font-size: 14px; color: rgba(255,255,255,0.8); }

.float { position: absolute; width: 268px; text-align: left; padding: 22px; z-index: 3; }
/* Placement follows the reference: two cards level with the buttons, two lower and wider out. */
.float-1 { left: 11%; top: 0; }
.float-3 { right: 11%; top: 24px; }
.float-2 { left: 5.5%; top: 340px; }
.float-4 { right: 4.5%; top: 356px; }
.float .card-title { font-size: 14.5px; }
.float-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 9px; font-size: 13.5px; }
.float-list li { display: flex; align-items: center; gap: 9px; color: var(--ink-2); }
.float-list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); flex: none; }
.float-list .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.float-list .num { font-variant-numeric: tabular-nums; color: var(--ink); }
.big-num { font: 400 56px/1 var(--serif); letter-spacing: -0.02em; }
.big-num small { font-size: 26px; }
.float-cap { font-size: 13.5px; color: var(--ink-2); margin-top: 6px; }
.float-foot { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 92px; margin-top: 16px; }
.bars .bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; }
.bars .bar span { display: block; width: 100%; border-radius: 4px 4px 2px 2px; background: #4A3C20; }
.bars .bar.top span { background: var(--yellow); }
.bars .bar em { font-style: normal; font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.spark { width: 100%; height: 64px; margin-top: 10px; overflow: visible; }
.avatars { display: flex; align-items: center; margin-top: 16px; }
.avatars img, .avatars .more {
  width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid var(--surface); margin-left: -8px; background: #2A2A2E;
}
.avatars img:first-child { margin-left: 0; }
.avatars .more { display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--ink-2); background: #26262A; }

.powered { position: relative; z-index: 5; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px clamp(28px, 5vw, 68px); padding: 6px clamp(16px, 4vw, 44px) 0; margin-top: -26px; }
.powered .label { font-size: 13px; color: var(--muted); width: 100%; text-align: center; margin-bottom: 4px; }
.powered span.brand { font-size: clamp(20px, 2.2vw, 28px); font-weight: 600; letter-spacing: -0.02em; color: #CFCBC2; }

/* ---------- plan form ---------- */
.plan-card { padding: clamp(22px, 3vw, 34px); }
.fields { display: grid; grid-template-columns: 1.2fr 1.2fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; font-size: 13.5px; font-weight: 500; }
.field em { font-style: normal; font-weight: 400; color: var(--muted); }
input, textarea {
  font: inherit; font-size: 15.5px; color: var(--ink); background: var(--bg); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 16px; width: 100%; transition: border-color 0.15s, background 0.15s;
}
input:focus, textarea:focus { outline: none; border-color: var(--ink); background: var(--surface); }
input::placeholder, textarea::placeholder { color: #66635D; }
.rules { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; }
.rules-label { font-size: 13.5px; font-weight: 500; margin-right: 4px; }
.toggle-chip { position: relative; }
.toggle-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle-chip span {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--ink-2); font-size: 14px; cursor: pointer; transition: all 0.15s;
}
.toggle-chip span::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #5A5853; transition: all 0.15s; }
.toggle-chip input:checked + span { background: var(--ink); color: #0E0E10; border-color: var(--ink); }
.toggle-chip input:checked + span::before { border-color: #0E0E10; background: #0E0E10; box-shadow: inset 0 0 0 3px var(--ink); }
.toggle-chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; flex-wrap: wrap; }
.form-foot .muted { font-size: 13.5px; }
.form-error { color: var(--bad); font-size: 14px; }
.ideas { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.idea { background: transparent; border: 1px dashed #3E3E43; border-radius: 999px; padding: 7px 14px; font: inherit; color: var(--ink-2); cursor: pointer; }
.idea:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.step { display: grid; gap: 12px; align-content: start; min-height: 220px; }
.step .n { font: 400 44px/1 var(--serif); color: var(--muted); }
.step h3 { font: 400 26px/1.1 var(--serif); }
.step p { color: var(--ink-2); font-size: 14.5px; }

/* ---------- venues ---------- */
.venues { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; }
.venue { display: grid; gap: 14px; align-content: start; }
.venue-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.venue-city { font-size: 13px; color: var(--muted); }
.venue-name { font: 400 30px/1.05 var(--serif); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { font-size: 12.5px; padding: 5px 11px; border-radius: 999px; background: var(--bg); color: var(--ink-2); }
.events { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line-2); }
.events a, .events .ev {
  display: grid; grid-template-columns: 62px 1fr auto; gap: 10px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--line-2); text-decoration: none; font-size: 14.5px;
}
.events a:hover .who { text-decoration: underline; text-underline-offset: 3px; }
.events .date { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.events .who small { color: var(--muted); font-size: 13px; }
.status { font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 999px; white-space: nowrap; background: var(--bg); color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.status.done { background: var(--green-tint); color: var(--green); }
.status.error { background: rgba(255, 138, 115, 0.12); color: var(--bad); }
.status.running::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--ink-2); border-top-color: transparent; animation: spin 0.9s linear infinite; }
.note { font-size: 13px; color: var(--muted); }
@keyframes spin { to { transform: rotate(360deg); } }

.recent { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.recent a { display: grid; gap: 6px; text-decoration: none; padding: 20px 22px; transition: transform 0.15s, box-shadow 0.15s; }
.recent a:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.recent .r-title { font: 400 24px/1.1 var(--serif); }
.recent .r-meta { font-size: 13px; color: var(--muted); }

.connect summary { cursor: pointer; font: 400 30px/1.1 var(--serif); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.connect summary::-webkit-details-marker { display: none; }
.connect summary::after { content: "+"; font: 300 30px/1 var(--sans); color: var(--muted); }
.connect[open] summary::after { content: "–"; }
.connect form { margin-top: 22px; display: grid; gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

/* ---------- footer ---------- */
.footer {
  max-width: 1240px; margin: clamp(80px, 10vw, 140px) auto 0; padding: 36px clamp(16px, 4vw, 44px) 48px;
  border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 22px 40px; font-size: 13.5px;
}
.footer-stack { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-content: start; }
.legend-inline { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--muted); }

/* ---------- evidence ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; font: 500 12.5px var(--sans); color: var(--ink);
  background: var(--qloo-tint); border: 0; border-radius: 999px; padding: 4px 10px 4px 8px; cursor: help; max-width: 100%;
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--qloo); flex: none; }
.chip .aff { color: var(--qloo); font-variant-numeric: tabular-nums; font-weight: 600; }
.chip-static { cursor: default; }
.chip-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag-infer {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--infer); font-weight: 500;
  background: var(--infer-tint); padding: 4px 10px 4px 8px; border-radius: 999px;
}
.tag-infer::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--infer); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.tip {
  position: fixed; z-index: 1000; max-width: 300px; background: #1F1F23; border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 14px; font-size: 13px; box-shadow: var(--shadow-lg); pointer-events: none;
}
.tip strong { display: block; margin-bottom: 3px; font-size: 14px; }
.tip .muted { color: var(--muted); }
.tip-img { width: 100%; height: 110px; object-fit: cover; border-radius: 9px; margin-bottom: 9px; }

/* ---------- run view ---------- */
.run-head { padding: clamp(28px, 4vw, 56px) 0 0; display: grid; gap: 18px; }
.back { font-size: 14px; color: var(--ink-2); text-decoration: none; }
.back:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; }
.meta .pill { background: var(--surface); border: 1px solid var(--line); }
.meta .pill.sample { background: var(--infer-tint); color: var(--infer); border-color: transparent; }
.read { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); max-width: 64ch; text-wrap: pretty; }
.read .tag-infer { margin-left: 6px; vertical-align: 2px; }
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 6px; }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.seg button { border: 0; background: transparent; font: 500 14.5px var(--sans); padding: 10px 20px; border-radius: 999px; cursor: pointer; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #0E0E10; }
.ground { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-2); }
.ground-track { width: 120px; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.ground-fill { height: 100%; background: var(--qloo); }
.ground b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.without-note { background: var(--infer-tint); color: var(--infer); border-radius: var(--r-md); padding: 14px 18px; max-width: 74ch; font-size: 14.5px; }

.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; margin-top: 34px; }
.s-4 { grid-column: span 4; } .s-5 { grid-column: span 5; } .s-6 { grid-column: span 6; }
.s-7 { grid-column: span 7; } .s-8 { grid-column: span 8; } .s-12 { grid-column: span 12; }
.tall { grid-row: span 2; }
.bento .card { display: grid; gap: 16px; align-content: start; }

.items { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.item-title { font-weight: 600; font-size: 15.5px; }
.item-detail { color: var(--ink-2); font-size: 14.5px; margin-top: 2px; text-wrap: pretty; }
.empty { color: var(--muted); font-size: 14.5px; }

.setlist { list-style: none; margin: 0; padding: 0; counter-reset: song; }
.setlist li {
  counter-increment: song; display: grid; grid-template-columns: 34px 44px 1fr; gap: 0 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid rgba(126, 166, 245, 0.14);
}
.setlist li:last-child { border-bottom: 0; }
.setlist li::before { content: counter(song); font: 400 26px/1 var(--serif); color: #6F8CC4; }
.setlist .av { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #22304A; }
.setlist .av.ph { display: grid; place-items: center; font: 400 20px var(--serif); color: #8FA9DD; }
.setlist .song { font: 400 27px/1.05 var(--serif); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.setlist .song-detail { font-size: 13px; color: var(--ink-2); margin-top: 3px; }
.setlist .chips { margin-top: 6px; }
.generic .setlist .song { color: var(--muted); }

.na { display: grid; gap: 8px; }
.na-track { height: 10px; border-radius: 10px; background: rgba(92, 196, 135, 0.16); overflow: hidden; }
.na-fill { height: 100%; background: var(--green); border-radius: 10px; }
.na-label { font-size: 13.5px; color: var(--ink-2); }
.na-label b { font: 400 30px/1 var(--serif); color: var(--ink); margin-right: 6px; }

.audience { display: grid; gap: 4px; }
.gender { display: flex; gap: 10px; font-size: 13.5px; color: var(--ink-2); flex-wrap: wrap; }

.partners { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.partner { border-radius: var(--r-md); overflow: hidden; background: var(--bg); display: grid; align-content: start; }
.partner .ph { height: 132px; background: #222225 center/cover no-repeat; }
.partner .ph img { width: 100%; height: 100%; object-fit: cover; }
.partner .body { padding: 14px 16px 16px; display: grid; gap: 2px; }
.partner .name { font-weight: 600; }
.partner .addr { font-size: 13px; color: var(--muted); }

.brand-row { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: start; }
.brand-row .logo { width: 46px; height: 46px; border-radius: 12px; background: #FFFFFF center/contain no-repeat; border: 1px solid var(--line-2); overflow: hidden; }
.brand-row .logo img { width: 100%; height: 100%; object-fit: cover; }

.map-wrap { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 26px; align-items: start; }
#map { height: 400px; border-radius: var(--r-md); background: #15151A; }
#map.muted .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) grayscale(0.92) brightness(0.82) contrast(0.92); }
.leaflet-container .leaflet-control-attribution { background: rgba(20, 20, 24, 0.8); color: var(--muted); }
.leaflet-container .leaflet-control-attribution a { color: var(--ink-2); }
.leaflet-bar a { background: #1F1F23; color: var(--ink); border-color: #2E2E33; }
.leaflet-bar a:hover { background: #2A2A2F; }
.leaflet-container { font-family: var(--sans); }
.partner-pin {
  background: var(--ink); color: #0E0E10; font: 600 11.5px var(--sans); padding: 4px 9px 4px 7px; border-radius: 999px;
  white-space: nowrap; width: auto !important; height: auto !important; display: inline-flex !important; align-items: center; gap: 5px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.5);
}
.partner-pin::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--qloo); }
.promo { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.promo li { display: grid; gap: 6px; font-size: 14.5px; color: var(--ink-2); }

.ros { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 14px; }
.ros li { counter-increment: step; display: grid; grid-template-columns: 34px 1fr; font-size: 14.5px; color: var(--ink-2); }
.ros li::before { content: counter(step); font: 400 24px/1 var(--serif); color: var(--muted); }

.log { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; position: relative; }
.log li { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; padding-bottom: 16px; position: relative; }
.log li::after { content: ""; position: absolute; left: 6px; top: 18px; bottom: 0; width: 1px; background: var(--line); }
.log li:last-child::after { display: none; }
.log .dot { width: 13px; height: 13px; border-radius: 50%; background: var(--green); margin-top: 4px; box-shadow: 0 0 0 4px rgba(92, 196, 135, 0.14); }
.log .dot.live { background: transparent; border: 2px solid var(--ink-2); border-top-color: transparent; box-shadow: none; animation: spin 0.9s linear infinite; }
.log strong { font-weight: 600; font-size: 14.5px; }
.log .notes { color: var(--ink-2); font-size: 13.5px; }
.log .when { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }

table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; color: var(--muted); font-weight: 500; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); }
td { padding: 11px 10px 11px 0; border-bottom: 1px solid var(--line-2); vertical-align: top; }
td.num, th.num { text-align: right; }
td code { font-size: 12px; color: var(--ink-2); overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.st { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; display: inline-block; }
.st-sent { background: var(--green-tint); color: var(--green); }
.st-failed { background: rgba(255, 138, 115, 0.12); color: var(--bad); }
.st-queued, .st-drafted, .st-skipped { background: var(--bg); color: var(--ink-2); }
.scroll-x { overflow-x: auto; }
.guards { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }

.report fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.report legend { font-weight: 600; font-size: 14.5px; margin-bottom: 10px; }
.report .opts { display: flex; flex-wrap: wrap; gap: 8px; }
.report .opts .toggle-chip span { font-size: 13.5px; padding: 8px 14px; }
.notice { background: var(--green-tint); color: var(--green); border-radius: var(--r-md); padding: 16px 18px; font-size: 14.5px; }
.notice a { color: inherit; font-weight: 600; }

/* progress */
.progress-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; align-items: start; padding-top: 30px; }
.progress-phone { position: relative; height: 600px; }
.progress-phone .phone { position: relative; left: auto; top: auto; transform: none; margin: 0 auto; height: 600px; }
.progress-phone .phone-inset { top: auto; bottom: 18px; }
.phone-steps { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; font-size: 13.5px; }
.phone-steps li { display: flex; gap: 10px; align-items: center; color: rgba(255,255,255,0.92); }
.phone-steps li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #7FD3A0; flex: none; }
.phone-steps li.live { color: #fff; }
.phone-steps li.live::before { background: transparent; border: 1.5px solid #fff; border-top-color: transparent; width: 9px; height: 9px; animation: spin 0.9s linear infinite; }

.error-card { border-left: 4px solid var(--bad); }
.error-card h2 { color: var(--bad); font: 400 32px/1.1 var(--serif); margin-bottom: 8px; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .float { width: 236px; }
  .float-1 { left: 3%; } .float-3 { right: 3%; }
  .float-2 { left: 1%; } .float-4 { right: 1%; }
}
@media (max-width: 1020px) {
  .nav-links { display: none; }
  .nav-right { margin-left: auto; }
  .stage { height: auto; overflow: visible; margin-top: 30px; }
  .stage::after, .arcs { display: none; }
  .stage > .cta { position: static; transform: none; width: auto; margin-bottom: 30px; }
  .stage-cards { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .phone { position: relative; left: auto; top: auto; transform: none; grid-column: 1 / -1; margin: 0 auto 8px; width: min(380px, 100%); height: 560px; }
  .phone-inset { top: auto; bottom: 18px; }
  .float { position: relative; inset: auto; width: auto; }
  .powered { margin-top: 0; padding-top: 50px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento > * { grid-column: span 12 !important; grid-row: auto !important; }
  .map-wrap { grid-template-columns: 1fr; }
  .progress-grid { grid-template-columns: 1fr; }
  .fields { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .status-chip { display: none; }
  .stage-cards { grid-template-columns: 1fr; }
  .steps, .grid-2 { grid-template-columns: 1fr; }
  .venues, .recent { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr; }
  .footer-stack { justify-content: flex-start; }
  .phone { height: 520px; border-radius: 48px; }
  .phone-screen { border-radius: 38px; }
  .setlist .song { font-size: 23px; }
  .setlist li { grid-template-columns: 26px 38px 1fr; }
  .setlist .av { width: 38px; height: 38px; }
  .card { padding: 20px; }
  .btn { padding: 14px 22px; }
  #map { height: 320px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
