/* AudioCap — page-specific compositions
   Hero, strip, studio reveal, gallery head, pricing, library detail,
   project hero, signin split, error pages. */

/* ============================================================
   HERO (home)
   The legacy /public/css/frontend.css carries an old `.hero` rule
   that forced height:100vh + overflow:hidden + heavy margins; the
   resets below neutralise it on every studio page. */
.hero {
  max-width: var(--maxw); margin: 0 auto !important;
  padding: 40px var(--pad-x) 0;
  height: auto !important; min-height: 0 !important;
  overflow: visible !important;
  border-radius: 0 !important;
  position: static;
}
.hero.full-bleed { max-width: none; padding: 0; }
h1.headline {
  font-family: var(--sans);
  font-weight: 500;
  font-size: var(--t-h1);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 22px 0 0;
  max-width: 18ch;
  text-wrap: balance;
}
.sub {
  margin-top: 22px;
  color: var(--muted);
  font-size: 18px;
  max-width: 52ch;
  line-height: 1.5;
  letter-spacing: -0.005em;
}

/* ============================================================
   STRIP — formats row under drop zone
============================================================ */
.strip {
  max-width: var(--maxw); margin: 70px auto 0;
  padding: 0 var(--pad-x);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
  color: var(--muted); font-size: 13px;
}
.strip .label {
  font-family: var(--mono); letter-spacing: 0.04em;
  text-transform: uppercase; font-size: 11px; color: var(--muted-2);
}
.formats { display: flex; gap: 10px; flex-wrap: wrap; }

/* ============================================================
   STUDIO REVEAL (post-drop summary block on home)
============================================================ */
.studio {
  max-width: var(--maxw); margin: 90px auto 0;
  padding: 0 var(--pad-x);
}
.studio-head {
  display: flex; justify-content: space-between; align-items: end;
  gap: 24px; margin-bottom: 28px; flex-wrap: wrap;
}
.studio-head h2 {
  font-size: clamp(28px, 3.6vw, 48px);
  font-weight: 500; letter-spacing: -0.025em;
  margin: 0; line-height: 1;
}
.studio-head p { color: var(--muted); margin: 8px 0 0; font-size: 15px; }

.analysis {
  background: var(--bg-2);
  border-radius: var(--r-sheet);
  padding: 28px 32px;
  display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 24px;
}
@media (max-width: 760px) { .analysis { grid-template-columns: 1fr; } }
.analysis-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.analysis-stats .stat .v { font-size: 32px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
.analysis-stats .stat .l {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  margin-top: 6px; text-transform: uppercase; letter-spacing: 0.06em;
}
.analysis .wave { width: 280px; height: 56px; }

/* ============================================================
   GALLERY HEAD (used above pack grids on home / catalogue)
============================================================ */
.gallery-head {
  margin: 56px 0 18px;
  display: flex; justify-content: space-between; align-items: end; gap: 20px;
}
.gallery-head h3 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.015em; }
.gallery-head .meta { font-family: var(--mono); font-size: 12px; color: var(--muted); }

.gal-head {
  display: flex; justify-content: space-between; align-items: end;
  gap: 24px; padding-top: 6px;
}
.gal-head h2 {
  margin: 0; font-size: 36px; font-weight: 500;
  letter-spacing: -0.03em; line-height: 1;
}
.gal-head .sub { color: var(--muted); margin-top: 8px; font-size: 14px; }

.gal-foot {
  margin-top: 28px;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  flex-wrap: wrap;
}
.gal-foot .left   { font-size: 13px; color: var(--muted); }
.gal-foot .left b { color: var(--ink); font-weight: 500; }

/* ============================================================
   PRICING
============================================================ */
.pricing {
  max-width: var(--maxw); margin: 140px auto 0;
  padding: 0 var(--pad-x);
}
.pricing-head { text-align: center; margin-bottom: 44px; }
.pricing-head h2 {
  font-size: var(--t-h2);
  font-weight: 500; letter-spacing: -0.03em;
  margin: 0; line-height: 1;
}
.pricing-head p {
  color: var(--muted); margin: 14px auto 0;
  max-width: 52ch; font-size: 16px;
}

.tiers {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid var(--line);
}
@media (max-width: 860px) { .tiers { grid-template-columns: 1fr; } }
.tier {
  padding: 36px 28px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 20px;
}
.tier:last-child { border-right: 0; }
@media (max-width: 860px) { .tier { border-right: 0; } }
.tier.featured { background: var(--bg-2); }

.tier-name { display: flex; align-items: center; justify-content: space-between; }
.tier-name .n { font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.tier-badge {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted); background: var(--pill);
  border-radius: var(--r-pill); padding: 5px 9px;
}

.tier-price { display: flex; align-items: baseline; gap: 8px; }
.tier-price .v {
  font-size: 56px; font-weight: 500;
  letter-spacing: -0.03em; line-height: 1;
}
.tier-price .u { color: var(--muted); font-size: 14px; }
.tier-tag      { color: var(--muted); font-size: 14px; line-height: 1.5; }

.tier ul {
  margin: 4px 0 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 10px;
}
.tier li {
  font-size: 14px; color: var(--ink-2); line-height: 1.45;
  padding-left: 22px; position: relative;
}
.tier li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 12px; height: 1px; background: var(--ink);
}

.tier-cta { margin-top: auto; width: 100%; text-align: center; padding: 14px; font-weight: 500; }
.tier-cta.dark  { background: var(--ink); color: #fff; }
.tier-cta.dark:hover  { background: var(--ink-2); }
.tier-cta.light { background: var(--pill); }
.tier-cta.light:hover { background: var(--pill-hover); }

/* ============================================================
   PROJECT DETAIL HERO (library detail)
============================================================ */
.detail-body {
  max-width: var(--maxw); margin: 0 auto;
  padding: 8px 26px 200px;
  position: relative;
}
.proj-hero {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 60px; align-items: start;
  padding: 30px 0 50px;
  position: relative;
}
@media (max-width: 820px) { .proj-hero { grid-template-columns: 1fr; gap: 30px; } }

.hero-art-wrap { position: relative; padding-right: 0; }
.hero-art {
  width: 100%; aspect-ratio: 1 / 1; border-radius: 24px; overflow: hidden;
  position: relative; max-width: 500px;
  box-shadow: var(--shadow-soft);
}
.hero-disc {
  position: absolute; right: -50px; top: 50%; transform: translateY(-50%);
  width: 78%; aspect-ratio: 1 / 1; border-radius: var(--r-pill);
  background: conic-gradient(from 0deg,
    #d9d4cc 0deg, #f4efe7 30deg, #e0d9cd 60deg, #c9c2b6 90deg,
    #ece5d9 120deg, #d3ccbf 150deg, #f0e9dc 180deg, #d9d2c5 210deg,
    #ece5d8 240deg, #c4bdb0 270deg, #ece6da 300deg, #d4cdc0 330deg, #d9d4cc 360deg);
  z-index: -1; filter: saturate(.5) brightness(1.05);
}
.hero-disc::before {
  content: ""; position: absolute; inset: 8%; border-radius: var(--r-pill);
  background: radial-gradient(circle, transparent 0 36%, rgba(0,0,0,.06) 36% 38%, transparent 38% 100%);
}
.hero-disc::after {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 24%; height: 24%; border-radius: var(--r-pill);
  background: radial-gradient(circle, #fff 0 30%, #e8e2d4 30% 60%, #c8c0b0 60% 100%);
  box-shadow: inset 0 0 0 8px #fff;
}
.hero-meta { padding-top: 30px; }
.hero-title {
  font-family: var(--sans); font-size: 64px; font-weight: 600;
  letter-spacing: -0.025em; line-height: 1; margin: 0 0 18px;
}
.hero-sub {
  font-size: 15px; color: var(--muted);
  display: flex; align-items: center; gap: 10px;
}
.hero-sub .lock { font-size: 13px; }
.hero-sub .dot  { color: var(--muted-2); }

.hero-play {
  position: absolute; right: 0; top: 30px;
  width: 60px; height: 60px; border-radius: var(--r-pill);
  background: var(--ink); color: #fff;
  display: grid; place-items: center; cursor: pointer; border: 0;
  box-shadow: var(--shadow-fab);
}
.hero-play svg { width: 18px; height: 18px; fill: currentColor; margin-left: 3px; }
.hero-shuffle {
  position: absolute; right: 78px; top: 48px;
  width: 24px; height: 24px; cursor: pointer;
  color: var(--ink); background: none; border: 0;
}
.hero-shuffle svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.add-tracks {
  width: 100%; max-width: 560px;
  background: var(--pill); border-radius: var(--r-tile); padding: 18px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 15px; font-weight: 500; cursor: pointer; border: 0;
  margin-top: 30px; color: var(--ink);
  transition: background .15s ease;
}
.add-tracks:hover { background: var(--pill-hover); }
.add-tracks svg   { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Track list rows */
.tracks { max-width: 560px; margin-top: 8px; display: flex; flex-direction: column; }
.track  {
  display: grid; grid-template-columns: 32px 1fr auto;
  gap: 14px; align-items: center;
  padding: 18px 6px; border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.track:last-child { border-bottom: 0; }
.track .num     { font-size: 18px; color: var(--muted-2); text-align: center; }
.track .body .nm  { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.track .body .sub { font-size: 13px; color: var(--muted); margin-top: 3px; }
.track .more {
  width: 34px; height: 34px; border-radius: var(--r-pill);
  border: 0; background: transparent; cursor: pointer;
  display: grid; place-items: center; color: var(--muted);
}
.track .more:hover { background: var(--pill); color: var(--ink); }
.track .more svg   { width: 18px; height: 18px; fill: currentColor; }

.detail-stats {
  margin-top: 60px; max-width: 560px;
  display: flex; gap: 60px; align-items: flex-end; padding: 0 12px;
}
.detail-stats .stat .v {
  font-size: 64px; font-weight: 600;
  letter-spacing: -0.03em; line-height: 1;
}
.detail-stats .stat .l { font-size: 15px; margin-top: 6px; color: var(--muted); }

/* ============================================================
   SIGN-IN (centred card on white)
============================================================ */
.signin-page {
  min-height: 100vh;
  display: grid; place-items: center;
  padding: 32px;
}
.signin-card {
  max-width: 440px; width: 100%;
  background: #fff; border-radius: var(--r-sheet);
  padding: 36px 32px 28px;
  box-shadow: var(--shadow-sheet);
  text-align: center;
}
.signin-card h1 { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 6px; }
.signin-card p  { color: var(--muted); margin: 0 0 22px; font-size: 14px; }

/* ============================================================
   STUDIO EDITOR (Studio v3 chrome — see edit-track.cfm)
============================================================ */
.studio-app {
  position: fixed; inset: 0;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 24px 24px 96px;
  overflow-y: auto;
  background: var(--scrim);
}
.crumb {
  position: fixed; top: 24px; left: 50%; transform: translateX(-50%);
  z-index: 10;
  display: flex; align-items: center; gap: 14px;
  background: #fff; padding: 10px 16px 10px 12px; border-radius: var(--r-pill);
  box-shadow: 0 6px 24px -10px rgba(0,0,0,.12);
}
.crumb .dotrow { display: flex; align-items: center; gap: 6px; }
.crumb .d {
  width: 7px; height: 7px; border-radius: var(--r-pill); background: #d8d8d6;
  transition: background .25s ease, transform .25s ease;
}
.crumb .d.on  { background: var(--ink); }
.crumb .d.cur { transform: scale(1.4); }
.crumb .label {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.crumb .label b { color: var(--ink); font-weight: 500; }

.studio-app .sheet {
  position: relative;
  width: 100%; max-width: var(--maxw-sheet);
  background: #fff; border-radius: 32px;
  box-shadow: var(--shadow-sheet);
  margin-top: 80px;
  display: none;
  opacity: 0; transform: translateY(0);
}
.studio-app .sheet.is-on { display: block; opacity: 1; animation: ac-rise .4s var(--ease) both; }
.studio-app .sheet.is-on.no-anim { animation: none; }
@keyframes ac-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.studio-app .sheet-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px 0;
}
.right-acts { display: flex; gap: 8px; }
.studio-app .sheet-body { padding: 8px 56px 40px; }
@media (max-width: 720px) { .studio-app .sheet-body { padding: 8px 24px 32px; } }

/* Step 1 — analyze */
#step-1 .hero-row { display: flex; gap: 32px; align-items: center; padding: 24px 0 8px; }
#step-1 .np-art   { width: 96px; height: 96px; border-radius: 22px; }
#step-1 .hero-meta-text { flex: 1 1 auto; min-width: 0; }
#step-1 .hero-meta-text .t { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
#step-1 .hero-meta-text .s { color: var(--muted); margin-top: 6px; font-family: var(--mono); font-size: 12px; }
#step-1 .hero-actions { display: flex; gap: 8px; }

.scan-stage {
  margin-top: 32px;
  background: var(--bg-2); border-radius: 24px;
  padding: 28px 28px 24px;
  position: relative; overflow: hidden;
}
.scan-stage .scan-status {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 18px;
}
.scan-stage .scan-status .live {
  display: inline-flex; align-items: center; gap: 8px; color: var(--ink);
}
.scan-stage .scan-status .live::before {
  content: ""; width: 6px; height: 6px; border-radius: var(--r-pill); background: var(--ink);
  animation: ac-pulse 1.6s ease-in-out infinite;
}

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-top: 24px;
}
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
  background: #fff; border-radius: 16px; padding: 16px 16px 14px;
}
.stat .v { font-size: 26px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
.stat .l { font-family: var(--mono); font-size: 10px; color: var(--muted); margin-top: 6px; text-transform: uppercase; letter-spacing: 0.08em; }

.sections-strip {
  margin-top: 18px;
  display: flex; align-items: center;
  background: #fff; border-radius: var(--r-pill); padding: 6px;
  font-family: var(--mono); font-size: 11px;
  overflow: hidden;
}
.sections-strip .seg {
  display: flex; align-items: center; justify-content: center;
  padding: 8px 12px; border-radius: var(--r-pill);
  white-space: nowrap;
}
.sections-strip .seg.intro  { flex: 0.7; background: var(--bg-3);  color: var(--muted); }
.sections-strip .seg.verse  { flex: 1.4; background: var(--line); }
.sections-strip .seg.chorus { flex: 1.6; background: var(--ink); color: #fff; }
.sections-strip .seg.bridge { flex: 1;   background: var(--line); }
.sections-strip .seg.outro  { flex: 0.7; background: var(--bg-3); color: var(--muted); }

.cta-row {
  margin-top: 32px;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  flex-wrap: wrap;
}
.cta-row .left { color: var(--muted); font-size: 13px; }
.cta-row .left b { color: var(--ink); font-weight: 500; }

/* Step 2 — split layout */
#step-2 { max-width: 1080px; }
#step-2 .sheet-body { padding: 8px 32px 32px; }
.split { display: grid; grid-template-columns: minmax(280px, 360px) 1fr; gap: 32px; align-items: start; }
@media (max-width: 780px) { .split { grid-template-columns: 1fr; gap: 20px; } }

.preview-frame {
  position: sticky; top: 8px;
  width: 100%; aspect-ratio: 9 / 16;
  border-radius: 28px; overflow: hidden;
  background: var(--ink);
  box-shadow: 0 22px 60px -24px rgba(0,0,0,.35);
}
.preview-frame .pf-stage {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  transition: opacity .25s ease;
}
.preview-frame .pf-label {
  position: absolute; left: 16px; top: 14px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
  color: rgba(255,255,255,.6); text-transform: uppercase; z-index: 3;
}
.preview-frame .pf-time {
  position: absolute; right: 16px; top: 14px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
  color: rgba(255,255,255,.6); z-index: 3;
}
.preview-frame .pf-bottom {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  display: flex; align-items: center; justify-content: space-between; z-index: 3;
}
.preview-frame .pf-bottom .name { font-size: 13px; font-weight: 500; color: #fff; }
.preview-frame .pf-bottom .pp {
  width: 34px; height: 34px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.92); display: grid; place-items: center;
}
.preview-frame .pf-bottom .pp svg { width: 12px; height: 12px; fill: var(--ink); margin-left: 2px; }
.preview-frame .pf-progress {
  position: absolute; left: 16px; right: 16px; bottom: 62px;
  height: 2px; border-radius: var(--r-pill); background: rgba(255,255,255,.18); z-index: 3;
}
.preview-frame .pf-progress::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 34%;
  background: #fff; border-radius: var(--r-pill);
}

/* Format-specific preview stages */
.pf-stage.fmt-lyric {
  background: radial-gradient(120% 80% at 30% 20%, #2a2a2a, #0a0a0a 70%);
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: center;
  padding: 0 24px; gap: 6px; text-align: left;
}
.pf-stage.fmt-lyric .l1 { font-family: var(--serif); font-style: italic; font-size: 30px; line-height: 1; color: #fff; opacity: .95; }
.pf-stage.fmt-lyric .l2 { font-family: var(--sans); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: #fff; }
.pf-stage.fmt-lyric .l3 { font-size: 16px; color: rgba(255,255,255,.55); }
.pf-stage.fmt-vis  { background: var(--ink); display: flex; align-items: center; justify-content: center; }
.pf-stage.fmt-vis .ring {
  width: 62%; aspect-ratio: 1 / 1; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.5);
  box-shadow: 0 0 0 12px rgba(255,255,255,.04), inset 0 0 0 24px rgba(255,255,255,.06);
}
.pf-stage.fmt-vis::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(40% 30% at 50% 50%, rgba(255,255,255,.18), transparent 70%);
  mix-blend-mode: screen;
}
.pf-stage.fmt-mood {
  background: var(--ink); display: grid;
  grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px;
}
.pf-stage.fmt-mood i { display: block; }
.pf-stage.fmt-mood i:nth-child(1) { background: linear-gradient(135deg, #3a4a5a, #1a2030); }
.pf-stage.fmt-mood i:nth-child(2) { background: linear-gradient(135deg, #7a5a3a, #3a2010); }
.pf-stage.fmt-mood i:nth-child(3) { background: linear-gradient(135deg, #5a3a4a, #2a1020); }
.pf-stage.fmt-mood i:nth-child(4) { background: linear-gradient(135deg, #3a5a4a, #102a20); }
.pf-stage.fmt-pack {
  background: linear-gradient(160deg, #f6efe1 0%, #e8dcc4 50%, #c8a89a 100%);
  display: flex; align-items: center; justify-content: center;
}
.pf-stage.fmt-pack::before {
  content: ""; position: absolute; inset: 14%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(10,10,10,.18), transparent 70%);
}
.pf-stage.fmt-pack .ttl {
  font-family: var(--serif); font-style: italic; font-size: 30px; color: var(--ink);
  text-align: center; padding: 0 24px; line-height: 1.05;
}
.pf-stage.fmt-pack .sub {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em;
  color: rgba(10,10,10,.55); text-transform: uppercase; margin-top: 8px;
}

/* Pack-aware preview */
.pack-stage { position: absolute; inset: 0; transition: opacity .25s ease; }
.pack-stage .pack-overlay {
  position: absolute; left: 18px; right: 18px; top: 38%;
  display: flex; flex-direction: column; gap: 6px; z-index: 2;
}
.pack-stage .pl1 { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; opacity: .65; }
.pack-stage .pl2 { font-family: var(--serif); font-size: 24px; line-height: 1.1; font-style: italic; }
.pack-stage .pl2 em { font-style: normal; font-weight: 600; font-family: var(--sans); letter-spacing: -0.02em; }
.pack-stage.a-flowers { background: linear-gradient(160deg, #f6efe1, #cfd5b5 60%, #c8a89a); }
.pack-stage.a-flowers .pl1, .pack-stage.a-flowers .pl2 { color: var(--ink); }
.pack-stage.a-lofi    { background: linear-gradient(180deg, #1a1410, #3a2a1c 60%, #0a0805); }
.pack-stage.a-lofi .pl1, .pack-stage.a-lofi .pl2       { color: #f0e3c8; }
.pack-stage.a-bauhaus { background: #f0eee5; }
.pack-stage.a-bauhaus::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 38%; background: #d9402a; }
.pack-stage.a-bauhaus::after  { content: ""; position: absolute; right: 14%; bottom: 18%; width: 42%; aspect-ratio: 1; border-radius: var(--r-pill); background: #1857c4; }
.pack-stage.a-bauhaus .pl1, .pack-stage.a-bauhaus .pl2 { color: var(--ink); }
.pack-stage.a-kandyan { background: linear-gradient(180deg, #7a1f0f, #c0691f 50%, #e8a93a); }
.pack-stage.a-kandyan .pl1, .pack-stage.a-kandyan .pl2 { color: #fff5d8; }
.pack-stage.a-brutal  { background: var(--ink); }
.pack-stage.a-brutal::before { content: ""; position: absolute; left: 18%; top: 18%; right: 18%; bottom: 18%; border: 1.5px solid #fff; }
.pack-stage.a-brutal .pl1, .pack-stage.a-brutal .pl2 { color: #fff; font-family: var(--mono); }
.pack-stage.a-brutal .pl2 { font-style: normal; font-weight: 500; letter-spacing: -0.01em; }
.pack-stage.a-sun { background: linear-gradient(180deg, #f5e8c5, #e8b67a 60%, #a85432); }
.pack-stage.a-sun .pl1, .pack-stage.a-sun .pl2 { color: #1a0e08; }

/* Step 5 — render */
#step-5 { max-width: 560px; }
#step-5 .sheet-body { padding: 48px 40px 40px; text-align: center; }
.render-art {
  width: 140px; height: 140px; margin: 0 auto 24px;
  border-radius: 32px;
  background: linear-gradient(135deg, #1a1a1a, #3a3a3a);
  position: relative; overflow: hidden;
  display: grid; place-items: center;
}
.render-art .spin {
  position: absolute; inset: 18px; border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,.12);
  animation: ac-spin 12s linear infinite;
}
.render-art .spin::before {
  content: ""; position: absolute; top: -2px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; background: #fff; border-radius: var(--r-pill);
}
.render-art .core {
  width: 34px; height: 34px; border-radius: var(--r-pill);
  background: var(--pill); position: relative; z-index: 2;
}
.render-art .core::after {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 8px; height: 8px; background: var(--ink); border-radius: var(--r-pill);
}

#step-5 h2 { font-size: 28px; font-weight: 500; letter-spacing: -0.025em; margin: 0 0 6px; }
#step-5 p  { color: var(--muted); margin: 0 0 28px; font-size: 14px; }

.progress {
  height: 6px; border-radius: var(--r-pill);
  background: var(--pill); overflow: hidden;
  position: relative;
}
.progress .bar {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--ink); border-radius: var(--r-pill);
  width: 0%; transition: width .3s ease;
}
.render-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 14px; font-family: var(--mono); font-size: 11px;
  color: var(--muted); letter-spacing: 0.04em;
}
.render-meta b { color: var(--ink); font-weight: 500; }
.render-stages { margin-top: 28px; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.rs {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 14px;
  font-family: var(--mono); font-size: 12px;
  background: var(--bg-2); color: var(--muted);
}
.rs.done { color: var(--ink); }
.rs.cur  { background: var(--ink); color: #fff; }
.rs .ic {
  width: 18px; height: 18px; border-radius: var(--r-pill);
  display: grid; place-items: center; flex: 0 0 auto;
  background: rgba(0,0,0,.06);
}
.rs.done .ic { background: var(--ink); color: #fff; }
.rs.cur .ic  { background: #fff; color: var(--ink); }
.rs .ic svg  { width: 10px; height: 10px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Step 6 — export (dark sheet) */
#step-6 { max-width: 1080px; background: var(--ink); color: #fff; }
#step-6 .sheet-bar { padding: 18px 22px 0; }
#step-6 .icn-btn   { background: rgba(255,255,255,.08); color: #fff; }
#step-6 .icn-btn:hover { background: rgba(255,255,255,.14); }
#step-6 .icn-btn svg   { stroke: #fff; }
#step-6 .pill          { background: rgba(255,255,255,.08); color: #fff; }
#step-6 .pill:hover    { background: rgba(255,255,255,.14); }
#step-6 .pill-dark      { background: #fff; color: var(--ink); }
#step-6 .pill-dark:hover { background: #f0f0f0; }
#step-6 .sheet-body { padding: 14px 36px 36px; }

.export-stage {
  position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden;
  background: #000; margin-bottom: 24px;
}
.export-stage .pack-art { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.export-stage .pack-art::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 50% 60%, transparent 0%, rgba(0,0,0,.35) 100%);
}
.exp-title {
  position: absolute; left: 36px; right: 36px; bottom: 36px;
  display: flex; justify-content: space-between; align-items: end; gap: 24px;
  z-index: 2;
}
.exp-title .l    { display: flex; flex-direction: column; gap: 6px; }
.exp-title .name { font-size: 32px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
.exp-title .meta {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  color: rgba(255,255,255,.7); text-transform: uppercase;
}
.export-stage .scrub {
  height: 3px; background: rgba(255,255,255,.18); border-radius: var(--r-pill);
  position: absolute; left: 0; right: 0; bottom: 24px;
  margin: 0 36px;
}
.export-stage .scrub::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 38%;
  background: #fff; border-radius: var(--r-pill);
}
.play-c {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 72px; height: 72px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.96);
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 8px 30px rgba(0,0,0,.3);
  border: 0;
}
.play-c svg { width: 24px; height: 24px; fill: var(--ink); margin-left: 3px; }

.exp-row {
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
}
@media (max-width: 720px) { .exp-row { grid-template-columns: 1fr; } }
.exp-share { display: flex; flex-direction: column; gap: 8px; }
.exp-share .h {
  font-family: var(--mono); font-size: 11px;
  color: rgba(255,255,255,.6); letter-spacing: 0.06em; text-transform: uppercase;
}
.exp-share .row  { display: flex; gap: 8px; flex-wrap: wrap; }
.exp-share .pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; }
.exp-share .pill svg { width: 14px; height: 14px; }

/* Pack-detail modal (Studio) */
#detailScrim {
  position: fixed; inset: 0; z-index: 30;
  background: rgba(20,20,20,0); pointer-events: none;
  transition: background .25s ease;
}
#detailScrim.is-on { background: rgba(20,20,20,.5); pointer-events: auto; }
#detail {
  position: fixed; left: 50%; top: 50%;
  transform: translate(-50%, -46%) scale(.98); opacity: 0;
  z-index: 40; pointer-events: none;
  width: min(720px, calc(100% - 32px));
  background: #fff; border-radius: var(--r-sheet);
  box-shadow: var(--shadow-sheet);
  transition: opacity .25s ease, transform .25s ease;
  max-height: calc(100vh - 48px);
  overflow: auto;
}
#detail.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: auto; }
#detail .det-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px;
  position: sticky; top: 0; background: #fff; z-index: 2;
  border-bottom: 1px solid var(--line);
}
#detail .det-body { padding: 24px 32px 28px; }
.det-hero {
  aspect-ratio: 16 / 9; border-radius: 18px;
  position: relative; overflow: hidden;
  margin-bottom: 22px;
}
.det-hero .ph {
  position: absolute; left: 18px; bottom: 14px;
  font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,.85);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.det-title {
  display: flex; justify-content: space-between; align-items: end; gap: 18px;
  margin-bottom: 6px;
}
.det-title h3 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.det-title .gen { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }
.det-desc { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0 0 22px; max-width: 54ch; }
.det-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin-bottom: 22px;
}
@media (max-width: 600px) { .det-grid { grid-template-columns: 1fr; } }
.det-cell {
  background: var(--bg-2); border-radius: 16px; padding: 16px 18px;
}
.det-cell .l { font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.det-cell .v { margin-top: 8px; font-size: 14px; line-height: 1.45; color: var(--ink); }
.swatches { display: flex; gap: 6px; margin-top: 8px; }
.swatches i { width: 24px; height: 24px; border-radius: var(--r-pill); display: block; }
.font-pair  { display: flex; flex-direction: column; gap: 4px; }
.font-pair .a { font-family: var(--serif); font-size: 22px; font-weight: 400; letter-spacing: -0.01em; }
.font-pair .b { font-family: var(--sans); font-size: 13px; color: var(--muted); }
.det-foot { margin-top: 6px; display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
