/* Music Business Genie — front door styles. Mirrors the prototype's
   presentation: warm paper, Newsreader display serif, Libre Franklin text,
   gold accents, typographic monogram medallions. No likenesses, no ads. */
:root {
  --paper: #fffdf8;
  --paper-2: #faf6ef;
  --paper-3: #f2ecdf;
  --ink: #241d12;
  --ink-2: #5c5240;
  --line: #ddd3bf;
  --gold: #d9a441;
  --gold-deep: #a87b23;
  --good: #2e7d4f;
  --dark-band: #8a2f23;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Libre Franklin", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}
h1, h2, h3, .serif { font-family: "Newsreader", Georgia, serif; font-weight: 600; }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); line-height: 1.08; margin: 0 0 1rem; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.15; margin: 0 0 .8rem; }
h3 { font-size: 1.25rem; margin: 0 0 .4rem; }
p { margin: 0 0 1rem; }
a { color: var(--gold-deep); }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 20px; }
section { padding: 56px 0; }
section.alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--gold-deep); margin-bottom: .5rem; }
.lede { font-size: 1.13rem; color: var(--ink-2); max-width: 46rem; }

header.site {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 253, 248, .94); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; gap: 18px; padding-top: 12px; padding-bottom: 12px; }
.brand { font-family: "Newsreader", Georgia, serif; font-size: 1.3rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.brand small { display: block; font-family: "Libre Franklin", sans-serif; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; }
nav.main { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }
nav.main a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
nav.main a:hover { color: var(--gold-deep); }

.pipeline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 22px 0 26px; font-weight: 700; }
.pipeline .step { background: var(--paper-3); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }
.pipeline .arrow { color: var(--gold-deep); }

.btn {
  display: inline-block; border: 1px solid var(--gold-deep); background: var(--gold);
  color: #241d12; font-weight: 700; font-size: 1rem; padding: 12px 22px;
  border-radius: 999px; cursor: pointer; text-decoration: none;
}
.btn:hover { background: #e2b558; }
.btn.ghost { background: transparent; border-color: var(--ink-2); color: var(--ink); }
.btn.small { padding: 8px 16px; font-size: .92rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 26px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; position: relative;
}
.card .seat { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); font-weight: 700; }
.card ul { margin: .6rem 0 0; padding-left: 1.1rem; }
.card li { margin-bottom: .35rem; }
.card .output { border-top: 1px dashed var(--line); margin-top: 14px; padding-top: 12px; }
.card .output b { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 4px; }
.card .doctrine { font-style: italic; color: var(--ink-2); border-left: 3px solid var(--gold); padding-left: 12px; margin-top: 14px; }

.medallion {
  width: 58px; height: 58px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-family: "Newsreader", Georgia, serif; font-size: 1.7rem; font-weight: 700;
  color: #fffdf8; background: radial-gradient(circle at 32% 30%, #e8bc66, #a87b23 78%);
  border: 2px solid #8a6a1d; box-shadow: inset 0 0 0 3px rgba(255,253,248,.35);
}
.medallion.sm { width: 42px; height: 42px; font-size: 1.2rem; }
.roster-head { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; }

/* Ladder */
.ladder-steps { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 24px; }
.ladder-steps .ls { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-weight: 700; color: var(--ink-2); background: var(--paper); }
.ladder-steps .ls.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.panel { display: none; }
.panel.on { display: block; }
.persona-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 16px 0; }
.persona {
  text-align: left; background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 18px; cursor: pointer; font: inherit; color: inherit;
}
.persona b { font-family: "Newsreader", Georgia, serif; font-size: 1.2rem; display: block; margin-bottom: 6px; }
.persona.sel { border-color: var(--gold-deep); background: #fdf6e3; }
.persona .tick { display: none; color: var(--good); font-weight: 700; }
.persona.sel .tick { display: inline; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.chip { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 7px 14px; cursor: pointer; font: inherit; font-size: .95rem; }
.chip.sel { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.teamline { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 18px 0; }
.teamline .mate { display: flex; gap: 10px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.teamline .mate b { display: block; font-family: "Newsreader", Georgia, serif; }
.teamline .mate span { font-size: .88rem; color: var(--ink-2); }
.navrow { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }

/* Forms */
form .field { margin-bottom: 18px; }
label { display: block; font-weight: 700; margin-bottom: 6px; }
label .qnum { color: var(--gold-deep); }
input[type="text"], input[type="email"], input[type="number"], select, textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; font: inherit; color: var(--ink);
}
textarea { min-height: 84px; }
.note { font-size: .92rem; color: var(--ink-2); margin-top: 6px; }
.mistakes { background: #fdf1ec; border: 1px solid #ecc9bd; border-radius: var(--radius); padding: 18px 22px; margin: 18px 0 26px; }
.mistakes h3 { color: var(--dark-band); }
.mistakes ol { margin: .4rem 0 0; padding-left: 1.2rem; }
.mistakes li { margin-bottom: .5rem; }
.example { background: var(--paper-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 16px 0; font-size: .96rem; }
.example b.tag { color: var(--gold-deep); text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; display: block; margin-bottom: 6px; }
.checks { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 20px 0; }
.checks label { font-weight: 500; display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; cursor: pointer; }
.checks input { margin-top: 4px; }
.work-block { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; background: var(--paper); }
.work-block h4 { margin: 0 0 12px; font-family: "Newsreader", Georgia, serif; font-size: 1.1rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }
.sumline { font-weight: 700; }
.sumline.bad { color: var(--dark-band); }
.sumline.ok { color: var(--good); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Score display */
.scorebox { background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: 26px; margin: 22px 0; }
.scorebox .total { font-family: "Newsreader", Georgia, serif; font-size: 3.2rem; line-height: 1; }
.scorebox .band { font-size: 1.15rem; font-weight: 700; color: var(--gold); }
.cp { margin: 12px 0; }
.cp .row { display: flex; justify-content: space-between; font-weight: 600; }
.cp .bar { height: 10px; background: rgba(255,253,248,.18); border-radius: 999px; overflow: hidden; margin-top: 5px; }
.cp .fill { height: 100%; background: var(--gold); }
.cp.darkcp .fill { background: #e07a68; }
.cp .why { font-size: .9rem; color: #d8cfb8; margin-top: 4px; }
.unlock { text-align: left; width: 100%; background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 12px; cursor: pointer; font: inherit; color: inherit; }
.unlock b { display: block; font-size: 1.05rem; }
.unlock .gain { color: var(--gold-deep); font-weight: 700; }
.unlock.on { border-color: var(--good); background: #eef7f1; }
.door { border: 2px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-top: 20px; }
.door.open { border-color: var(--good); background: #eef7f1; }
.door .state { font-weight: 700; }

.price-card { max-width: 520px; border: 2px solid var(--gold-deep); border-radius: var(--radius); padding: 26px; background: var(--paper); }
.price-card .amount { font-family: "Newsreader", Georgia, serif; font-size: 2.4rem; }
.result { display: none; border: 1px solid var(--good); background: #eef7f1; border-radius: var(--radius); padding: 18px 22px; margin: 18px 0; }
.result.show { display: block; }
.result.err { border-color: var(--dark-band); background: #fdf1ec; }
footer.site { border-top: 1px solid var(--line); padding: 34px 0 46px; color: var(--ink-2); font-size: .94rem; }
.hidden { display: none !important; }
