/* AIMUSICFILES — dark, premium, music-industry theme */
:root {
  --bg: #0a0a0f;
  --bg-soft: #12121a;
  --card: #16161f;
  --card-edge: #262633;
  --text: #f2f0ea;
  --muted: #a7a5b3;
  --gold: #d4af5a;
  --gold-bright: #f0cd7e;
  --violet: #7c5cff;
  --radius: 14px;
  --nav-h: 46px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ---------- header / hero ---------- */
.site-header {
  background:
    radial-gradient(1100px 480px at 85% -10%, rgba(124, 92, 255, .28), transparent 60%),
    radial-gradient(900px 420px at 8% -20%, rgba(212, 175, 90, .18), transparent 55%),
    linear-gradient(180deg, #0d0d14, var(--bg));
  border-bottom: 1px solid var(--card-edge);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.wordmark {
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .14em;
  font-size: 1.15rem;
}
.wordmark span { color: var(--gold); }
.footer-mark span { color: var(--gold); }

.site-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: .92rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.site-nav a:hover { color: var(--gold-bright); }

.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 20px 64px;
  text-align: left;
}
.hero-kicker {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .3em;
  font-size: .78rem;
  margin-bottom: 14px;
}
.hero-tagline {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.01em;
  max-width: 14ch;
}
.hero-sub {
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  max-width: 56ch;
  margin-top: 18px;
}
.launch-note {
  display: inline-block;
  margin-top: 26px;
  padding: 7px 14px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold-bright);
  font-size: .85rem;
  letter-spacing: .04em;
}

/* ---------- shelves ---------- */
main { max-width: 1180px; margin: 0 auto; padding: 0 20px 40px; }

.shelf { padding: 52px 0 8px; }
.shelf-head h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.01em;
}
.shelf-head h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: var(--gold);
  margin-top: 10px;
  border-radius: 2px;
}
.shelf-head p { color: var(--muted); max-width: 68ch; margin-top: 12px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

/* ---------- product cards ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--gold); transform: translateY(-2px); }

.card-voice {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem;
  font-weight: 700;
}
.card h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.25; }
.card-desc { color: var(--muted); font-size: .93rem; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: .72rem;
  letter-spacing: .04em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--card-edge);
  background: var(--bg-soft);
  color: var(--muted);
}

/* display:block + margin-bottom give the native player controls a
   predictable box and real clearance before the license fieldset:
   a <legend> straddles its fieldset's top border and protrudes above
   it, and with only the card's 12px flex gap that protrusion could
   reach the bottom of the player controls. */
.card audio { width: 100%; height: 40px; display: block; margin-bottom: 8px; }

/* license ladder selector */
/* The fieldset is reset in full: a UA fieldset keeps groove borders and
   side margins, and as a flex item its automatic minimum size is its
   min-content width — together those pushed the box border a few pixels
   past the card's left edge at phone width. min-width/min-inline-size 0
   + width 100% + zero side margins keep the box inside the card frame,
   and the margin-top stacks with the card gap and the audio margin
   above, so the fieldset's top edge (and its legend) never touches the
   player: 12px gap + 8px audio margin + 4px here = 24px of separation. */
.ladder-select {
  border: 1px solid var(--card-edge);
  border-radius: 10px;
  padding: 10px 12px 12px;
  margin: 4px 0 0;
  width: 100%;
  min-width: 0;
  min-inline-size: 0;
  box-sizing: border-box;
}
.ladder-select legend, .ladder-label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
  padding: 0 6px;
  margin-left: 2px;
  margin-bottom: 2px;
}
.license-options { display: flex; flex-direction: column; gap: 6px; }
.license-option {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid var(--card-edge);
  border-radius: 9px;
  cursor: pointer;
  font-size: .9rem;
}
.license-option:hover { border-color: var(--muted); }
.license-option input { accent-color: var(--gold); }
.license-option .opt-price { margin-left: auto; font-weight: 700; color: var(--gold-bright); }
.license-option.selected { border-color: var(--gold); background: rgba(212, 175, 90, .07); }

.limited-counter { font-size: .8rem; color: var(--muted); }
.limited-counter strong { color: var(--gold-bright); }
.counter-bar {
  height: 5px;
  border-radius: 3px;
  background: var(--bg-soft);
  overflow: hidden;
  margin-top: 5px;
}
.counter-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-bright)); }
.sales-line { font-size: .8rem; color: var(--muted); margin-top: 6px; }

.buy-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.price { font-size: 1.5rem; font-weight: 800; }
.price small { display: block; font-size: .68rem; font-weight: 400; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }

.buy-btn {
  background: #2a2a35;
  color: #8b8998;
  border: 1px solid var(--card-edge);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: .88rem;
  font-weight: 700;
  cursor: not-allowed;
  text-align: center;
  line-height: 1.3;
}
.buy-btn small { display: block; font-weight: 400; font-size: .7rem; }
.buy-btn:not(:disabled) {
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  color: #0a0a0f;
  border-color: var(--gold);
  cursor: pointer;
}
.buy-btn:not(:disabled):hover { filter: brightness(1.07); }

/* "what you get" line under the license selector */
.gets-line {
  font-size: .85rem;
  color: var(--muted);
  border-left: 3px solid var(--gold);
  padding-left: 10px;
}

/* ---------- personas ---------- */
.grid-personas { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.persona-card { gap: 14px; }
.persona-initials {
  width: 84px; height: 84px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.9rem; font-weight: 800; letter-spacing: .05em;
  color: #0a0a0f;
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
}
.persona-initials.violet { background: linear-gradient(135deg, var(--violet), #b79dff); color: #fff; }
.persona-role { color: var(--gold); font-size: .8rem; text-transform: uppercase; letter-spacing: .16em; }
.persona-note {
  border: 1px dashed var(--card-edge);
  border-radius: 9px;
  padding: 10px 12px;
  font-size: .85rem;
  color: var(--muted);
}
.persona-voices { font-size: .85rem; color: var(--muted); }
.persona-voices strong { color: var(--text); }

/* ---------- beats ---------- */
.beat-card .tempo {
  font-size: 2rem; font-weight: 800; color: var(--gold-bright); line-height: 1;
}
.beat-card .tempo small { font-size: .8rem; color: var(--muted); font-weight: 400; letter-spacing: .1em; }
.status-pill {
  align-self: flex-start;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--violet);
  color: #c4b0ff;
}

/* ---------- custom strip / ladder explainer ---------- */
.custom-strip {
  margin-top: 60px;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 32px 28px;
  background: linear-gradient(135deg, rgba(212,175,90,.10), rgba(124,92,255,.08)), var(--card);
}
.custom-strip h2 { font-size: 1.6rem; font-weight: 800; }
.custom-strip p { color: var(--muted); max-width: 66ch; margin-top: 10px; }
.custom-strip .custom-price { color: var(--gold-bright); font-weight: 700; }
.custom-strip h3 { color: var(--gold-bright); font-size: 1.05rem; margin-top: 26px; }
.custom-strip ul, .custom-strip ol { color: var(--muted); max-width: 66ch; margin: 10px 0 0 22px; }
.custom-strip li { margin-top: 6px; }

.ladder { padding: 56px 0 20px; }
.ladder h2 { font-size: 1.6rem; font-weight: 800; }
.ladder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.ladder-step {
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: var(--radius);
  padding: 18px;
}
.ladder-step h3 { color: var(--gold-bright); font-size: 1.02rem; margin-bottom: 8px; }
.ladder-step p { color: var(--muted); font-size: .9rem; }
.delivery-note { margin-top: 18px; color: var(--muted); font-size: .9rem; }

/* thanks page */
.store-link {
  display: inline-block;
  margin-top: 22px;
  padding: 12px 22px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  color: #0a0a0f;
  font-weight: 700;
  text-decoration: none;
}
.store-link:hover { filter: brightness(1.07); }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--card-edge);
  margin-top: 40px;
  padding: 34px 20px 44px;
  text-align: center;
  color: var(--muted);
  font-size: .88rem;
}
.footer-mark { font-weight: 800; letter-spacing: .14em; color: var(--text); margin-bottom: 8px; }
.footer-note { margin-top: 6px; font-size: .8rem; }

/* ---------- genre shelves & filter ---------- */
.genre-filter {
  position: sticky;
  top: var(--nav-h);
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  padding: 12px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--card-edge);
}
.genre-chip {
  font: inherit;
  font-size: .85rem;
  letter-spacing: .03em;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--card-edge);
  background: var(--bg-soft);
  color: var(--muted);
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.genre-chip:hover { border-color: var(--muted); color: var(--text); }
.genre-chip.active {
  border-color: var(--gold);
  background: rgba(212, 175, 90, .10);
  color: var(--gold-bright);
  font-weight: 700;
}

.genre-group { margin-top: 36px; }
.genre-heading { font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; }
.genre-heading::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  background: var(--gold);
  margin-top: 8px;
  border-radius: 2px;
}
.genre-count {
  margin-left: 10px;
  font-size: .78rem;
  font-weight: 400;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.genre-group .grid { margin-top: 18px; }

.tag.genre-tag {
  border-color: var(--gold);
  background: rgba(212, 175, 90, .08);
  color: var(--gold-bright);
  font-weight: 700;
}

/* ---------- small screens ---------- */
@media (max-width: 560px) {
  .hero { padding: 40px 20px 48px; }
  .grid { grid-template-columns: 1fr; }
  .header-inner { justify-content: center; text-align: center; }
  .site-nav { justify-content: center; }
  .buy-row { flex-direction: column; align-items: stretch; }
  .price { text-align: center; }
  .price small { text-align: center; }
}

/* ---------- section nav (sticky, under the header) ---------- */
.section-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--nav-h);
  background: var(--bg);
  border-bottom: 1px solid var(--card-edge);
}
.section-nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 22px;
  overflow-x: auto;
  scrollbar-width: none;
}
.section-nav-inner::-webkit-scrollbar { display: none; }
.section-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.section-nav a:hover { color: var(--gold-bright); }

/* anchored sections clear the sticky nav when jumped to */
.shelf, .custom-strip, .ladder { scroll-margin-top: calc(var(--nav-h) + 12px); }

/* ---------- persona portraits ---------- */
.persona-portrait {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 10px;
  border: 1px solid var(--card-edge);
  background: var(--bg-soft);
}

/* ---------- custom strip button ---------- */
.custom-strip .custom-btn { margin-top: 20px; }

/* ---------- legal / info pages (terms, privacy, licenses) ---------- */
.legal { max-width: 820px; padding: 48px 0 8px; }
.legal h2 {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -.01em;
  margin: 36px 0 6px;
}
.legal h2:first-child { margin-top: 0; }
.legal h3 { color: var(--gold-bright); font-size: 1.05rem; margin: 22px 0 4px; }
.legal p { color: var(--muted); margin-top: 8px; }
.legal ul { color: var(--muted); margin: 8px 0 0 20px; }
.legal li { margin-top: 5px; }
.legal strong { color: var(--text); }
.legal a { color: var(--gold-bright); }
.legal-fineprint {
  border-top: 1px solid var(--card-edge);
  padding-top: 16px;
  margin-top: 28px;
  font-size: .85rem;
}
.legal-callout {
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(212,175,90,.10), rgba(124,92,255,.08)), var(--card);
  padding: 22px 24px;
  margin-top: 16px;
}
.legal-callout p {
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 0;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: .9rem;
}
.compare-table th, .compare-table td {
  border: 1px solid var(--card-edge);
  padding: 9px 11px;
  text-align: left;
  vertical-align: top;
}
.compare-table th { background: var(--bg-soft); color: var(--text); }
.compare-table td { color: var(--muted); }
.compare-table td.yes { color: var(--gold-bright); }

/* ---------- coming-soon strip (genres in production) ---------- */
.coming-strip {
  margin-top: 30px;
  border: 1px dashed var(--card-edge);
  border-radius: var(--radius);
  padding: 16px 18px;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.55;
}
.coming-strip strong { color: var(--gold-bright); letter-spacing: .03em; }
.coming-strip .coming-genres { color: var(--text); font-weight: 700; }

/* ---------- footer links ---------- */
.footer-links { margin-top: 10px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--gold-bright); }

/* ================================================================
   GET AI MUSIC TOOLS — tools-site additions
   (base theme above is shared with the AIMUSICFILES store)
   ================================================================ */

/* ---------- tool cards (home grid) ---------- */
.tool-card .tool-status {
  align-self: flex-start;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  color: var(--gold-bright);
}
.tool-card .tool-status.soon {
  border-color: var(--card-edge);
  color: var(--muted);
}
.tool-card.is-soon { opacity: .82; }
.tool-card.is-soon:hover { border-color: var(--card-edge); transform: none; }
.tool-link {
  margin-top: auto;
  color: var(--gold-bright);
  font-weight: 700;
  text-decoration: none;
  font-size: .95rem;
}
.tool-link:hover { text-decoration: underline; }
.tool-link.disabled { color: var(--muted); font-weight: 400; pointer-events: none; }

/* ---------- cross-feed strip (tools <-> store) ---------- */
.crossfeed {
  margin-top: 60px;
  border: 1px dashed var(--gold);
  border-radius: var(--radius);
  padding: 26px 28px;
  background: var(--bg-soft);
}
.crossfeed h2 { font-size: 1.35rem; font-weight: 800; }
.crossfeed p { color: var(--muted); max-width: 66ch; margin-top: 8px; }

/* ---------- job forms ---------- */
.job-form-wrap { max-width: 820px; padding: 48px 0 8px; }
.job-form-wrap > p { color: var(--muted); margin-top: 8px; max-width: 66ch; }
.job-form { margin-top: 26px; display: flex; flex-direction: column; gap: 20px; }
.field label {
  display: block;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: 7px;
}
.field .field-hint { font-size: .85rem; color: var(--muted); margin-top: 6px; text-transform: none; letter-spacing: 0; }
.field input[type="text"],
.field input[type="email"],
.field input[type="number"],
.field textarea,
.field select {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--card-edge);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  font-size: .98rem;
  padding: 12px 14px;
}
.field textarea { min-height: 170px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--gold);
}
.field .radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-pill {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--card-edge);
  border-radius: 999px;
  padding: 9px 16px;
  cursor: pointer;
  font-size: .92rem;
  background: var(--bg-soft);
}
.radio-pill input { accent-color: var(--gold); }
.radio-pill.selected { border-color: var(--gold); background: rgba(212, 175, 90, .07); }
.field-error { color: #ff9d8a; font-size: .88rem; margin-top: 6px; display: none; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #c4553b; }
.field.invalid .field-error { display: block; }
.or-divider {
  display: flex; align-items: center; gap: 14px;
  color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .14em;
}
.or-divider::before, .or-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--card-edge);
}
.submit-btn {
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  color: #0a0a0f;
  border: 1px solid var(--gold);
  border-radius: 10px;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  align-self: flex-start;
}
.submit-btn:hover { filter: brightness(1.07); }

/* the "checkout comes first" stub panel, shown by app.js after a valid form */
.stub-panel {
  display: none;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(212,175,90,.10), rgba(124,92,255,.08)), var(--card);
  padding: 24px 26px;
  margin-top: 26px;
}
.stub-panel.show { display: block; }
.stub-panel h2 { font-size: 1.3rem; font-weight: 800; }
.stub-panel p { color: var(--muted); margin-top: 8px; max-width: 64ch; }
.stub-panel p strong { color: var(--text); }

/* ---------- pricing packs ---------- */
.pack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
  margin-top: 26px;
}
.pack-card {
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: var(--radius);
  padding: 22px;
  display: flex; flex-direction: column; gap: 10px;
}
.pack-card.featured { border-color: var(--gold); }
.pack-card h3 { font-size: 1.15rem; font-weight: 800; }
.pack-price { font-size: 1.7rem; font-weight: 800; color: var(--gold-bright); }
.pack-price small { font-size: .8rem; font-weight: 400; color: var(--muted); }
.pack-card ul { color: var(--muted); margin: 4px 0 0 18px; font-size: .92rem; }
.pack-card li { margin-top: 5px; }
.price-todo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--muted);
  border: 1px dashed var(--card-edge);
  border-radius: 8px;
  padding: 8px 12px;
  text-align: center;
}

/* steps (how it works) */
.steps { counter-reset: step; margin-top: 10px; }
.steps li { margin-top: 10px; }
