/* Shared styles for the redesign's inner pages (pledge, signers, outreach, donate, join).
   Layout: black chrome, white reading surfaces; lime marks actions, pink is an accent mark only.
   The Safe Music Business Pledge keeps its own purple. */
:root {
  --black: #000000;
  --black-2: #0f0f0f;
  --line-dark: #262626;
  --white: #ffffff;
  --gray-bg: #f5f5f5;
  --line-light: #e6e6e6;
  --pink: #ff0089;
  --lime: #c9e265;
  --text-dark-mute: #555555;
  --text-light-mute: #a8a8a8;
  --smb-gradient: radial-gradient(120% 90% at 0% 100%, rgb(142 14 189 / .95) 0%, rgb(142 14 189 / 0) 60%), linear-gradient(120deg, #4639bd 0%, #5b2fbf 45%, #2e0d66 85%, #220c5f 100%);

  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --radius: 12px;
  --header-h: 68px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
body { margin: 0; background: var(--white); color: var(--black); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: calc(var(--header-h) + 20px); }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 3px; }
.on-light :focus-visible, .light :focus-visible { outline-color: var(--pink); }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.label { font-family: var(--mono); font-weight: 500; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; }
.dot::before { content: none; }
.section-title { font-family: var(--display); font-weight: 900; line-height: .94; font-size: clamp(40px, 5.2vw, 72px); text-transform: uppercase; }
.muted { color: var(--text-dark-mute); }
section { padding-block: clamp(64px, 8vw, 112px); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 52px; padding: 12px 26px; border-radius: 999px; border: 2px solid transparent; font: 700 16px/1 var(--body); text-decoration: none; cursor: pointer; transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--lime); color: var(--black); }
.btn-primary:hover { background: var(--white); }
.light .btn-primary:hover, .on-light .btn-primary:hover { background: var(--black); color: var(--lime); }
.btn-outline { border-color: var(--white); color: var(--white); background: transparent; }
.btn-outline:hover { background: var(--white); color: var(--black); }
.btn-outline-dark { border-color: var(--black); color: var(--black); background: transparent; }
.btn-outline-dark:hover { background: var(--black); color: var(--white); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: #222222; }
.text-link { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--pink); padding-bottom: 1px; }
.text-link:hover { border-color: currentColor; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(0 0 0 / .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-dark); color: var(--white); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: flex; }
.logo { height: 30px; width: auto; }
.nav-links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; font-size: 15px; font-weight: 500; }
.nav-links a { text-decoration: none; color: var(--text-light-mute); transition: color .15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--white); }
.nav-links a[aria-current="page"] { box-shadow: 0 2px 0 var(--pink); padding-bottom: 4px; }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-cta .btn { min-height: 40px; padding: 8px 18px; font-size: 14px; }
.menu-btn { display: none; min-height: 40px; background: none; border: 1px solid var(--line-dark); color: var(--white); border-radius: 999px; padding: 8px 16px; font: 600 14px var(--body); cursor: pointer; }
.mobile-menu { border-top: 1px solid var(--line-dark); padding-block: 8px 20px; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu a { display: block; padding: 14px 0; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 30px; border-bottom: 1px solid var(--line-dark); text-transform: uppercase; }

/* Purple pledge hero */
.smb { background: var(--smb-gradient); color: var(--white); }
.smb-hero { padding-block: clamp(48px, 7vw, 96px); }
.smb-hero.compact { padding-block: clamp(40px, 5vw, 64px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 14.5px; font-weight: 600; margin-bottom: 18px; color: rgb(255 255 255 / .82); }
.crumbs a { color: var(--white); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-decoration-color: var(--lime); text-underline-offset: 3px; }
.light .crumbs, .on-light .crumbs { color: var(--text-dark-mute); }
.light .crumbs a, .on-light .crumbs a { color: var(--black); }
.page-title { font-family: var(--display); font-weight: 900; line-height: .94; font-size: clamp(46px, 6.4vw, 92px); text-transform: uppercase; }
.page-title span { color: var(--lime); }
.page-lede { margin-top: 18px; font-size: clamp(19px, 1.8vw, 23px); font-weight: 600; line-height: 1.45; max-width: 46ch; }

/* Logo cards: equal visual weight, not equal width.
   Each logo is pre-trimmed; --f is its width factor (sqrt of aspect ratio, nudged for dense marks). */
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.logo-card { container-type: inline-size; display: grid; grid-template-rows: auto auto; background: var(--white); border: 1px solid var(--line-light); border-radius: 14px; text-decoration: none; overflow: hidden; transition: border-color .15s, transform .2s, box-shadow .2s; }
.logo-card:hover { border-color: var(--black); transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgb(0 0 0 / .35); }
.logo-stage { aspect-ratio: 16 / 10; display: grid; place-items: center; padding: 8%; }
.logo-stage img { width: calc(var(--f) * 32cqi); max-width: 84%; max-height: 72cqi; height: auto; object-fit: contain; }
.logo-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 11px 14px 12px; border-top: 1px solid var(--line-light); font-size: 13.5px; min-width: 0; }
.logo-meta > div { display: grid; min-width: 0; }
.logo-meta b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logo-meta span { color: var(--text-dark-mute); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logo-meta svg { width: 14px; height: 14px; flex: none; stroke: var(--text-dark-mute); fill: none; stroke-width: 2; }

/* Chips / segmented filters */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-light); background: var(--white); font-weight: 600; font-size: 14.5px; cursor: pointer; }
.chip:hover { border-color: var(--black); }
.chip .n { font-size: 12.5px; color: var(--text-dark-mute); }
.chip[aria-pressed="true"] { background: var(--black); border-color: var(--black); color: var(--lime); }
.chip[aria-pressed="true"] .n { color: var(--text-light-mute); }

/* Forms */
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label, .field .lbl { font-size: 14.5px; font-weight: 700; }
.field .hint { font-size: 13.5px; color: var(--text-dark-mute); font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; border: 1px solid #cfcfcf; border-radius: 10px; padding: 12px 14px; font-size: 16px; font-weight: 500; background: var(--white); }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--black); box-shadow: 0 0 0 3px rgb(0 0 0 / .08); }
.field.invalid input, .field.invalid select { border-color: var(--pink); }
.field .err { font-size: 13.5px; font-weight: 600; color: #b00062; min-height: 0; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--black); flex: none; }
.form-note { font-size: 13.5px; color: var(--text-dark-mute); }
.panel { background: var(--white); border: 1px solid var(--line-light); border-radius: 16px; padding: clamp(22px, 3.5vw, 40px); }
.success { display: grid; gap: 16px; justify-items: start; }
.success .badge { width: 56px; height: 56px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; }
.success .badge svg { width: 26px; height: 26px; stroke: var(--black); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.success h2 { font-family: var(--display); font-weight: 900; font-size: clamp(34px, 4vw, 48px); line-height: .94; text-transform: uppercase; }
.preview-note { font-size: 13.5px; color: var(--text-dark-mute); border-left: 3px solid var(--pink); padding-left: 12px; }

/* Commitment list (shared by pledge + form pages) */
.commits { display: grid; gap: 14px; list-style: none; margin: 0; padding: 0; }
.commits li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; }
.tick { width: 26px; height: 3px; background: var(--pink); margin-top: .72em; flex: none; }
.tick svg { display: none; }
.smb .tick { background: var(--lime); }
.smb .tick svg { display: none; }

/* Footer */
footer { background: var(--black); color: var(--white); padding-block: 64px 40px; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 40px; padding-bottom: 44px; border-bottom: 1px solid var(--line-dark); }
.foot-logo { width: 130px; height: auto; margin-bottom: 26px; }
.foot-tag { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 3.6vw, 48px); line-height: .94; max-width: 13ch; text-transform: uppercase; }
.foot-tag span { color: var(--lime); }
.foot-col h4 { margin: 0 0 14px; color: var(--text-light-mute); }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-col a { text-decoration: none; }
.foot-col a:hover { color: var(--lime); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; color: var(--text-light-mute); font-size: 14px; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--black); color: var(--white); padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 14.5px; z-index: 90; }

@media (max-width: 1080px) { .nav-links { display: none; } .menu-btn { display: inline-block; } }
@media (max-width: 900px) {
  .foot-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-top > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .nav-cta .btn-outline { display: none; }
  .logo { height: 26px; }
  .form .row { grid-template-columns: minmax(0, 1fr); }
  .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }
