/* Mudcast marketing site. Depends on tokens.css (loaded first). */

/* Extra tokens local to the site. The hero hills use the green palette from the
   first build (option 1). data-art="mud" is the preview-only earth-tone variant (option 4). */
:root {
  --hero-sky-1: #e3e6dc;
  --hero-sky-2: #e3e6dc;
  --ridge-1: #b9c8bd;
  --ridge-2: #7f9c8c;
  --ridge-3: #3f6b5a;
  --ridge-4: #1f4d3f;
  --water-1: #2b6f7a;
  --water-2: #1d5560;
  --sun: #e8672a;
  --ribbon-bg: #efeee9;
  --ribbon-text: #3b3a36;
  --placeholder-stripe: rgba(0, 0, 0, 0.035);
  --band-bg: #1c1c1a;
  --band-text: #ffffff;
  color-scheme: light;
}
:root[data-art="mud"] {
  --hero-sky-1: #efe9e0;
  --hero-sky-2: #efe9e0;
  --ridge-1: #d6c7b2;
  --ridge-2: #a88d6e;
  --ridge-3: #6b5440;
  --ridge-4: #4a3a2c;
  --water-1: #3a2e24;
  --water-2: #2a211a;
}
:root[data-theme="dark"] {
  --hero-sky-1: #18201d;
  --hero-sky-2: #1b2a29;
  --ridge-1: #2a3a34;
  --ridge-2: #24352f;
  --ridge-3: #1c2c27;
  --ridge-4: #141f1b;
  --water-1: #1f4f57;
  --water-2: #163c43;
  --sun: #f08447;
  --ribbon-bg: #262624;
  --ribbon-text: #e3e2dc;
  --placeholder-stripe: rgba(255, 255, 255, 0.04);
  --band-bg: #222220;
  --band-text: #ecebe6;
  color-scheme: dark;
}
:root[data-theme="dark"][data-art="mud"] {
  --hero-sky-1: #1d1915;
  --hero-sky-2: #221d18;
  --ridge-1: #3a3028;
  --ridge-2: #332a22;
  --ridge-3: #2b231c;
  --ridge-4: #231d17;
  --water-1: #1a1612;
  --water-2: #14110e;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 var(--space-4); }
a { color: var(--color-secondary); text-underline-offset: 3px; }
a:hover { color: var(--color-primary); text-decoration-thickness: 2px; }
:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: 4px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--space-4); top: -60px; z-index: 100;
  background: var(--color-accent); color: var(--color-on-accent);
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-sm);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: var(--space-2); }

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 768px) { .container { padding: 0 var(--space-5); } }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-3);
}
.lead { font-size: 1.15rem; color: var(--color-text-muted); max-width: 60ch; }
.muted { color: var(--color-text-muted); }
.small { font-size: 0.875rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 0 var(--space-5);
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  border-radius: var(--radius-sm); border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--color-accent); color: var(--color-on-accent); }
.btn-primary:hover { background: var(--color-accent-hover); color: var(--color-on-accent); }
.btn-secondary { background: var(--color-primary); color: var(--color-on-primary); }
.btn-secondary:hover { background: var(--color-primary-hover); color: var(--color-on-primary); }
.btn-ghost { background: transparent; color: var(--color-text); border-color: var(--color-border); }
.btn-ghost:hover { border-color: var(--color-text); color: var(--color-text); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: var(--space-2); text-decoration: none; color: var(--color-text); }
.logo:hover { color: var(--color-text); }
.logo-mark { width: 44px; height: 44px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: 0; text-transform: uppercase; }
.logo-tag { font-family: var(--font-display); font-weight: 700; font-size: .875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--color-text-muted); margin-top: 4px; }
@media (max-width: 479px) { .site-header .logo-tag { display: none; } .site-header .logo-mark { width: 38px; height: 38px; } .site-header .logo-name { font-size: 1.15rem; } }
.logo-by { font-size: 0.68rem; color: var(--color-text-muted); margin-top: 3px; letter-spacing: .02em; }
.header-actions { display: flex; align-items: center; gap: var(--space-2); }
.icon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center;
  background: transparent; border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  color: var(--color-text); cursor: pointer;
}
.icon-btn:hover { border-color: var(--color-text); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-icon-dark { display: none; }
:root[data-theme="dark"] .theme-icon-light { display: none; }
:root[data-theme="dark"] .theme-icon-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-icon-light { display: none; }
  :root:not([data-theme="light"]) .theme-icon-dark { display: block; }
}

.site-nav { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; color: var(--color-text); font-weight: 500; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--color-text); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav-cta { display: none; }
.menu-toggle .close-icon { display: none; }
.menu-open .menu-toggle .close-icon { display: block; }
.menu-open .menu-toggle .open-icon { display: none; }

@media (max-width: 1179px) {
  .menu-open .site-nav {
    display: block; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--color-bg); border-bottom: 1px solid var(--color-border);
    padding: var(--space-3) var(--gutter) var(--space-5);
    box-shadow: var(--shadow-md);
  }
  .menu-open .site-nav li a { display: block; padding: var(--space-3) 0; border-bottom: 1px solid var(--color-border); font-size: 1.05rem; }
  .menu-open .site-nav .nav-mobile-ctas { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-4); }
  .menu-open .site-nav .nav-mobile-ctas .btn { width: 100%; }
}
.nav-mobile-ctas { display: none; }
@media (min-width: 1180px) {
  .menu-toggle { display: none; }
  .site-nav { display: block; }
  .site-nav > ul { display: flex; gap: var(--space-5); }
  .nav-cta { display: inline-flex; min-height: 44px; padding: 0 var(--space-4); }
}

/* Sections */
.section { padding: var(--space-8) 0; }
.section-tight { padding: var(--space-7) 0; }
.section-alt { background: var(--color-surface-2); }
.section-dark {
  background: var(--band-bg); color: var(--band-text);
}
.section-dark .lead, .section-dark .muted { color: color-mix(in srgb, var(--band-text) 80%, transparent); }
.section-dark .eyebrow { color: var(--band-text); opacity: .85; }
.section-head { max-width: 760px; margin-bottom: var(--space-6); }

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--hero-sky-1), var(--hero-sky-2)); }
.hero-inner { position: relative; z-index: 2; padding-top: var(--space-7); padding-bottom: 220px; }
@media (min-width: 768px) { .hero-inner { padding-top: var(--space-8); padding-bottom: 300px; } }
.hero h1 { max-width: 16ch; }
.hero .lead { color: var(--color-text); opacity: .85; }
.hero-art { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; height: 260px; width: 100%; }
@media (min-width: 768px) { .hero-art { height: 360px; } }
.hero-art svg { width: 100%; height: 100%; }
.page-hero { background: linear-gradient(180deg, var(--hero-sky-1), var(--color-bg)); position: relative; overflow: hidden; }
.page-hero .container { position: relative; z-index: 2; padding-top: var(--space-7); padding-bottom: 170px; }
.page-hero .hero-art { height: 140px; }
@media (min-width: 768px) { .page-hero .hero-art { height: 170px; } .page-hero .container { padding-bottom: 200px; } }
.page-hero h1 { max-width: 20ch; }

.ridge-1 { fill: var(--ridge-1); }
.ridge-2 { fill: var(--ridge-2); }
.ridge-3 { fill: var(--ridge-3); }
.ridge-4 { fill: var(--ridge-4); }
.water-1 { fill: var(--water-1); }
.water-2 { fill: var(--water-2); }
.sun { fill: var(--sun); }
.glint { stroke: rgba(255,255,255,.35); stroke-width: 2; stroke-linecap: round; fill: none; }

/* Grids and cards */
.grid { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: var(--space-2); }
.card p:last-child { margin-bottom: 0; }
.section-dark .card { background: color-mix(in srgb, var(--band-text) 8%, transparent); border-color: color-mix(in srgb, var(--band-text) 20%, transparent); color: var(--band-text); box-shadow: none; }
.feature-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  display: grid; place-items: center; margin-bottom: var(--space-3);
  background: color-mix(in srgb, var(--color-accent) 14%, transparent); color: var(--color-accent);
}
.feature-icon svg { width: 24px; height: 24px; }

.split { display: grid; gap: var(--space-6); align-items: start; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: var(--space-7); } }

.check-list { list-style: none; padding: 0; margin: 0 0 var(--space-5); }
.check-list li { position: relative; padding-left: 32px; margin-bottom: var(--space-3); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--color-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: var(--space-4); }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps.steps-4 { grid-template-columns: repeat(4, 1fr); } }
.steps > li { counter-increment: step; position: relative; padding-top: var(--space-7); }
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; top: var(--space-4); left: var(--space-5);
  font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: var(--color-text-muted);
}
.stage-list { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; padding: 0; margin: 0; }
.stage-list li {
  padding: var(--space-2) var(--space-3); border-radius: 999px; font-size: .9rem; font-weight: 600;
  background: var(--color-surface); border: 1px solid var(--color-border);
}
.stage-list li.rev { background: var(--color-primary); color: var(--color-on-primary); border-color: var(--color-primary); }

/* Chips */
.chip-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 var(--space-3);
  border-radius: var(--radius-sm); font-size: .875rem; font-weight: 600;
  background: var(--color-surface-2); color: var(--color-text); border: 1px solid var(--color-border);
}
.chip-accent { background: var(--color-surface); border-color: var(--color-text); }
button.chip { cursor: pointer; font-family: inherit; min-height: 40px; }
button.chip[aria-pressed="true"] { background: var(--color-primary); color: var(--color-on-primary); border-color: var(--color-primary); }

/* Creator cards */
.creator-card {
  display: flex; flex-direction: column; overflow: hidden; padding: 0;
  text-decoration: none; color: var(--color-text); transition: transform .15s, box-shadow .15s;
}
.creator-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--color-text); }
.creator-card .cc-banner { aspect-ratio: 16 / 5; background: linear-gradient(135deg, var(--ridge-3), var(--water-1)); position: relative; overflow: hidden; }
.creator-card .cc-banner img { width: 100%; height: 100%; object-fit: cover; }
.creator-card .cc-body { padding: var(--space-4) var(--space-5) var(--space-5); position: relative; flex: 1; display: flex; flex-direction: column; }
.creator-card .avatar { margin-top: -44px; margin-bottom: var(--space-3); }
.creator-card h3 { margin-bottom: var(--space-1); }
.creator-card .cc-meta { display: flex; gap: var(--space-4); margin-top: auto; padding-top: var(--space-4); font-size: .9rem; }
.creator-card .cc-meta strong { display: block; font-family: var(--font-display); font-size: 1.15rem; }
.draft-tag {
  display: inline-block; font-size: .875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: var(--ribbon-bg); color: var(--ribbon-text); padding: 2px 8px; border-radius: 4px;
}
.creator-card .draft-tag { position: absolute; top: var(--space-3); right: var(--space-3); }

.avatar {
  width: 88px; height: 88px; border-radius: 50%; flex: none; position: relative;
  border: 4px solid var(--color-surface); background: var(--color-primary); overflow: hidden;
  display: grid; place-items: center;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.avatar .initials, .media-fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; color: var(--color-on-primary); font-size: 1.6rem;
}
.img-failed { display: none !important; }

.empty-state { padding: var(--space-6); text-align: center; border: 1px dashed var(--color-border); border-radius: var(--radius-md); }

/* Creator profile */
.draft-ribbon {
  background: var(--ribbon-bg); color: var(--ribbon-text);
  border-bottom: 1px solid color-mix(in srgb, var(--ribbon-text) 25%, transparent);
  font-weight: 700; font-size: .95rem; text-align: center; padding: var(--space-2) var(--gutter);
}
.profile-banner { aspect-ratio: 16 / 4; min-height: 140px; max-height: 300px; width: 100%; background: linear-gradient(135deg, var(--ridge-3), var(--water-1)); position: relative; overflow: hidden; }
.profile-banner img { width: 100%; height: 100%; object-fit: cover; }
.profile-head { display: flex; flex-direction: column; gap: var(--space-4); padding-bottom: var(--space-5); border-bottom: 1px solid var(--color-border); }
.profile-head .avatar { width: 120px; height: 120px; margin-top: -60px; font-size: 2rem; align-self: flex-start; z-index: 2; }
.profile-head .avatar .initials { font-size: 2.2rem; }
.profile-head h1 { margin-bottom: var(--space-2); font-size: clamp(2rem, 5vw, 3rem); }
.profile-head .actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
@media (min-width: 768px) {
  .profile-head { flex-direction: row; align-items: flex-end; }
  .profile-head .ph-main { flex: 1; }
}
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); margin: 0; }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-4); }
.stat dt { font-size: .875rem; color: var(--color-text-muted); font-weight: 600; }
.stat dd { margin: var(--space-1) 0 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.4rem, 4vw, 2rem); line-height: 1.1; }

.video-grid { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 560px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .video-grid { grid-template-columns: repeat(3, 1fr); } }
.video-card { display: flex; flex-direction: column; text-decoration: none; color: var(--color-text); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; }
.video-card:hover { color: var(--color-text); box-shadow: var(--shadow-md); }
.video-thumb { aspect-ratio: 16 / 9; position: relative; background: linear-gradient(135deg, var(--ridge-3), var(--water-1)); overflow: hidden; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.video-thumb .media-fallback { font-size: 1rem; padding: var(--space-3); text-align: center; }
.video-thumb .badge { position: absolute; z-index: 2; right: 8px; bottom: 8px; background: rgba(0,0,0,.78); color: #fff; font-size: .875rem; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.video-card .vc-body { padding: var(--space-3) var(--space-4) var(--space-4); }
.video-card h4 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; line-height: 1.35; margin: 0 0 var(--space-2); overflow-wrap: anywhere; }
.video-card .vc-meta { font-size: .875rem; color: var(--color-text-muted); }

.placeholder-grid { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 640px) { .placeholder-grid { grid-template-columns: repeat(2, 1fr); } }
.placeholder {
  border: 1px dashed var(--color-border); border-radius: var(--radius-md); padding: var(--space-5);
  background: repeating-linear-gradient(135deg, transparent 0 10px, var(--placeholder-stripe) 10px 20px), var(--color-surface);
}
.placeholder h3 { margin-bottom: var(--space-2); }
.placeholder .soon { display: inline-block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--color-text-muted); border: 1px solid var(--color-border); border-radius: 999px; padding: 2px 10px; margin-bottom: var(--space-2); }

.second-channel { display: flex; gap: var(--space-4); align-items: center; flex-wrap: wrap; }
.second-channel .avatar { width: 72px; height: 72px; border-color: var(--color-border); }
.profile-section { padding: var(--space-6) 0; border-bottom: 1px solid var(--color-border); }
.profile-section:last-of-type { border-bottom: 0; }
.list-plain { list-style: none; padding: 0; margin: 0; }

/* Filter bar */
.filter-bar { margin-bottom: var(--space-5); }
.filter-bar .chip-row { margin-top: var(--space-2); }
.results-note { margin: var(--space-3) 0 0; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--color-border); padding: var(--space-4) 0; }
.faq summary { cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: var(--space-4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--color-text); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding-top: var(--space-3); color: var(--color-text-muted); max-width: 70ch; }

/* Forms */
.form-wrap { max-width: 760px; }
.form-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: var(--shadow-sm); }
@media (min-width: 768px) { .form-card { padding: var(--space-6); } }
.form-grid { display: grid; gap: var(--space-5); grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: .95rem; }
.field .hint { font-size: .875rem; color: var(--color-text-muted); margin: 0; }
.req { color: var(--color-danger); }
input[type="text"], input[type="email"], input[type="url"], select, textarea {
  width: 100%; min-height: 48px; padding: var(--space-3);
  font: inherit; color: var(--color-text); background: var(--color-bg);
  border: 1.5px solid var(--color-border); border-radius: var(--radius-sm);
}
textarea { min-height: 120px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--color-focus); }
[aria-invalid="true"] { border-color: var(--color-danger) !important; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: var(--space-2); }
.options { display: grid; gap: var(--space-2); grid-template-columns: 1fr; }
@media (min-width: 640px) { .options-2 { grid-template-columns: 1fr 1fr; } }
.option { display: flex; align-items: flex-start; gap: var(--space-2); padding: var(--space-2) var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-bg); cursor: pointer; font-weight: 500; font-size: .95rem; }
.option input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--color-primary); flex: none; }
fieldset[aria-invalid="true"] .option { border-color: var(--color-danger); }
.field-error { color: var(--color-danger); font-size: .88rem; font-weight: 600; margin: 0; }
.field-error:empty { display: none; }
:root[data-theme="dark"] .field-error, :root[data-theme="dark"] .req { color: #ff8a7a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .field-error, :root:not([data-theme="light"]) .req { color: #ff8a7a; } }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: var(--space-4); }
.alert { border-radius: var(--radius-md); padding: var(--space-4) var(--space-5); border: 1px solid; }
.alert-error { border-color: var(--color-danger); background: color-mix(in srgb, var(--color-danger) 10%, var(--color-surface)); }
.alert-success { border-color: var(--color-success); background: color-mix(in srgb, var(--color-success) 12%, var(--color-surface)); }
.alert h2, .alert h3 { font-size: 1.3rem; margin-bottom: var(--space-2); }
.alert p:last-child, .alert ul:last-child { margin-bottom: 0; }
.form-actions { margin-top: var(--space-5); display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; }
.demo-note { font-size: .875rem; color: var(--color-text-muted); }

/* Prose pages */
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.5rem; margin-top: var(--space-6); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: var(--space-2); }
.draft-banner { background: var(--ribbon-bg); color: var(--ribbon-text); border-radius: var(--radius-md); padding: var(--space-4) var(--space-5); font-weight: 600; margin-bottom: var(--space-5); }

/* CTA band */
.cta-band { text-align: left; }
.cta-band .btn-row { margin-top: var(--space-5); }
.section-dark .btn-ghost { color: var(--band-text); border-color: color-mix(in srgb, var(--band-text) 50%, transparent); }
.section-dark .btn-ghost:hover { border-color: var(--band-text); }

/* Footer */
.site-footer { background: var(--color-surface-2); border-top: 1px solid var(--color-border); padding: var(--space-7) 0 var(--space-5); font-size: .95rem; }
.footer-grid { display: grid; gap: var(--space-5); grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-creator { margin: var(--space-6) 0 0; max-width: 70ch; color: var(--color-text-muted); }
.site-footer .footer-creator a { text-decoration: underline; }
.site-footer h2 { font-size: .875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: var(--space-3); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: var(--space-2); }
.site-footer a { color: var(--color-text); text-decoration: none; }
.site-footer a:hover { color: var(--color-text); text-decoration: underline; }
.footer-bottom { margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid var(--color-border); display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: space-between; color: var(--color-text-muted); font-size: .875rem; }

/* 404 */
.notfound { text-align: left; }
a.chip { text-decoration: none; }
a.chip:hover { border-color: var(--color-text); color: var(--color-text); }

/* ---------- Additions: roster-first home, logo band, shop by product ---------- */
.btn-sm { min-height: 40px; padding: 0 var(--space-4); font-size: .92rem; }
.promise { font-weight: 600; color: var(--color-primary); margin: 0; }
.section-dark .promise { color: var(--band-text); }
.promise-badge {
  display: inline-flex; align-items: center; gap: var(--space-2); margin: 0;
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-sm); font-weight: 700;
  background: var(--color-surface); border: 1px solid var(--color-border); color: var(--color-primary);
}
.promise-badge::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--color-success); }
.cta-stack { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); }

/* Compact hero so the creators show above the fold */
.hero-compact .hero-inner { padding-top: var(--space-7); padding-bottom: 170px; }
@media (min-width: 768px) { .hero-compact .hero-inner { padding-top: var(--space-7); padding-bottom: 200px; } }
.hero-compact .hero-art { height: 140px; }
@media (min-width: 768px) { .hero-compact .hero-art { height: 170px; } }
.hero-compact h1 { max-width: 20ch; }

.roster-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2) var(--space-5); margin-bottom: var(--space-5); }
.roster-head h2 { margin: 0; }
.reach-line { margin: 0; font-size: 1.05rem; }
.reach-line strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--color-text); margin-right: 4px; }
.filter-bar .reach-line { margin-top: var(--space-2); }

/* Non-clickable "many more" tile */
.roster-tile {
  border: 2px dashed var(--color-border); border-radius: var(--radius-md);
  padding: var(--space-5); display: flex; flex-direction: column; justify-content: center; gap: var(--space-2);
  background: repeating-linear-gradient(135deg, transparent 0 10px, var(--placeholder-stripe) 10px 20px);
  cursor: default; min-height: 160px;
}
.roster-tile .rt-title { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; margin: 0; }
@media (min-width: 960px) { .grid-3 > .roster-tile:nth-child(3n+1) { grid-column: 1 / -1; min-height: 0; } }
@media (min-width: 640px) and (max-width: 959px) { .grid-3 > .roster-tile:nth-child(2n+1) { grid-column: 1 / -1; min-height: 0; } }

/* Logo band: every logo in one flat tone, whatever its original color.
   Black at 60% in light mode, white at 70% in dark mode. */
.logo-band { padding: var(--space-7) 0; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.logo-band-title { font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: var(--color-text-muted); text-align: center; margin-bottom: var(--space-5); }
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--space-5) var(--space-6); }
.logo-row li { display: flex; align-items: center; justify-content: center; height: 48px; }
.logo-row img { max-height: 40px; max-width: 128px; width: auto; height: auto; object-fit: contain; filter: brightness(0); opacity: .6; }
:root[data-theme="dark"] .logo-row img { filter: brightness(0) invert(1); opacity: .7; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .logo-row img { filter: brightness(0) invert(1); opacity: .7; } }
/* Logos with light lettering on a colored shape: keep the lettering only (filter in the logo band markup) */
.logo-row img.logo-knockout { filter: url(#logo-knockout); opacity: .6; max-height: 56px; max-width: 150px; }
:root[data-theme="dark"] .logo-row img.logo-knockout { filter: url(#logo-knockout) invert(1); opacity: .7; }
@media (max-width: 639px) {
  .logo-row { gap: var(--space-4) var(--space-5); }
  .logo-row li { height: 36px; }
  .logo-row img { max-height: 30px; max-width: 96px; }
}

/* What we handle and the steps: numbered rows with a rule on top, no cards */
.handle-list { display: grid; gap: var(--space-5) var(--space-6); grid-template-columns: 1fr; counter-reset: handle; }
@media (min-width: 640px) { .handle-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .handle-list { grid-template-columns: repeat(4, 1fr); } }
.handle-list > li { counter-increment: handle; border-top: 2px solid var(--color-text); padding-top: var(--space-4); }
.handle-list > li::before { content: counter(handle, decimal-leading-zero); display: block; font-family: var(--font-display); font-weight: 800; color: var(--color-text-muted); margin-bottom: var(--space-2); }
.handle-list h3 { font-size: 1.15rem; margin-bottom: var(--space-2); }
.handle-list p { margin: 0; }
.steps > li { border-top: 2px solid var(--color-text); padding: var(--space-6) 0 0; }
.steps > li::before { left: 0; top: var(--space-3); }
.steps p { margin: 0; }
@media (min-width: 900px) { .steps.steps-3 { grid-template-columns: repeat(3, 1fr); } }

/* Quotes */
.quote-list { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
@media (min-width: 900px) { .quote-list { grid-template-columns: repeat(2, 1fr); } }
.quote-card blockquote { border-left: 3px solid var(--color-text); padding-left: var(--space-4); }
.quote-card { display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-4); margin: 0; }
.quote-card blockquote { margin: 0; font-size: 1.02rem; }
.quote-card blockquote p { margin: 0; }
.quote-card figcaption { display: flex; align-items: center; gap: var(--space-3); }
.quote-card figcaption img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.quote-card figcaption > span { display: flex; flex-direction: column; line-height: 1.3; }

/* Profile: partners, formats, rates */
.partner-list { display: grid; gap: var(--space-2); grid-template-columns: 1fr; }
@media (min-width: 640px) { .partner-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .partner-list { grid-template-columns: repeat(3, 1fr); } }
.partner {
  display: flex; flex-direction: column; gap: 2px; height: 100%;
  padding: var(--space-3) var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  background: var(--color-surface); color: var(--color-text); text-decoration: none;
}
a.partner:hover { border-color: var(--color-text); color: var(--color-text); }
.partner .pn { font-weight: 700; }
.partner .pv { font-size: .875rem; color: var(--color-text-muted); overflow-wrap: anywhere; }
.format-list { display: grid; gap: var(--space-3); }
.format-list li { display: flex; flex-direction: column; padding-left: var(--space-4); border-left: 3px solid var(--color-text); }
.rates-card h2 { font-size: 1.5rem; }
.profile-head .actions { flex-direction: column; align-items: flex-start; gap: var(--space-2); }
textarea.short { min-height: 90px; }

/* Home hero photos (desktop only, so the creators stay close to the top on phones) */
.hero-photos { display: none; }
@media (min-width: 1024px) {
  .hero-compact .hero-inner { position: relative; }
  .hero-compact .hero-inner > :not(.hero-photos) { max-width: 600px; }
  .hero-photos { display: block; position: absolute; right: var(--space-5); top: var(--space-7); width: 440px; height: 340px; }
  .hero-photos figure { position: absolute; margin: 0; width: 200px; border-radius: var(--radius-md); overflow: hidden; border: 4px solid var(--color-surface); background: var(--color-surface); }
  .hero-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; }
  .hero-photos figcaption { font-size: .875rem; font-weight: 700; padding: 6px 10px; color: var(--color-text); }
  .hero-photos figure:nth-child(1) { left: 0; top: 40px; transform: rotate(-3deg); }
  .hero-photos figure:nth-child(2) { left: 130px; top: 0; z-index: 2; transform: rotate(2deg); }
  .hero-photos figure:nth-child(3) { left: 240px; top: 70px; z-index: 1; transform: rotate(4deg); }
}

/* Profile niche line under the name */
.ph-niche { font-weight: 600; margin: 0 0 var(--space-2); }

/* Preview panel (js/preview.js, preview builds only) */
.preview-panel {
  position: fixed; left: 12px; bottom: 12px; z-index: 200; max-width: calc(100vw - 24px);
  background: var(--color-surface); color: var(--color-text); border: 1px solid var(--color-text);
  border-radius: var(--radius-md); padding: var(--space-3); font-size: .875rem;
  display: flex; flex-direction: column; gap: var(--space-2); box-shadow: var(--shadow-md);
}
.preview-panel .pp-head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); }
.preview-panel .pp-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.preview-panel .pp-label { width: 56px; font-weight: 700; }
.preview-panel button {
  font: inherit; font-size: .875rem; min-height: 36px; padding: 0 10px; cursor: pointer;
  background: var(--color-bg); color: var(--color-text); border: 1px solid var(--color-border); border-radius: var(--radius-sm);
}
.preview-panel button[aria-pressed="true"] { background: var(--color-primary); color: var(--color-on-primary); border-color: var(--color-primary); }
.preview-panel.pp-min .pp-group { display: none; }

/* Header CTA on every screen size; shorter label on phones */
.nav-cta { display: inline-flex; min-height: 44px; padding: 0 var(--space-3); font-size: .95rem; }
.nav-cta .cta-long { display: none; }
@media (min-width: 640px) { .nav-cta { padding: 0 var(--space-4); } .nav-cta .cta-long { display: inline; } .nav-cta .cta-short { display: none; } }
@media (max-width: 1179px) { .menu-open .site-nav .nav-mobile-ctas { display: none; } }
.rates-cta { align-self: center; }

.footer-name { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; text-transform: uppercase; margin: 0; }

/* Hero hills (mockup option 1): keep the drawing's 1440x200 shape; on narrow screens it
   keeps a minimum height and trims the sides, never the peaks. Flat sky like the mockup. */
.hero, .page-hero { background: var(--hero-sky-1); }
.hero-art, .page-hero .hero-art, .hero-compact .hero-art { height: auto; aspect-ratio: 1440 / 200; min-height: 96px; }
.hero-art svg { display: block; width: 100%; height: 100%; }
.hero-compact .hero-inner, .page-hero .container { padding-bottom: calc(max(96px, 100vw * 200 / 1440) + 32px); }
@media (min-width: 768px) { .hero-compact .hero-inner, .page-hero .container { padding-bottom: calc(max(96px, 100vw * 200 / 1440) + 40px); } }

/* Logo band on a black band with white logos (default). The light version above stays
   for comparison: data-logos="light" (preview panel) switches back to it. */
:root:not([data-logos="light"]) .logo-band { background: #1c1c1a; border-color: #1c1c1a; }
:root:not([data-logos="light"]) .logo-band-title { color: #d6d5cf; }
:root:not([data-logos="light"]) .logo-row img { filter: brightness(0) invert(1); opacity: .85; }
:root:not([data-logos="light"]) .logo-row img.logo-knockout { filter: url(#logo-knockout) invert(1); opacity: .85; }

/* Shorts: vertical 9:16 tiles, six across on desktop, a swipeable row on phones */
.shorts-row { display: grid; gap: var(--space-3); grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 959px) {
  .shorts-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--space-2); max-width: 100%; }
  .shorts-row > .short-card { flex: 0 0 150px; }
  .short-card { scroll-snap-align: start; }
}
@media (min-width: 560px) and (max-width: 959px) { .shorts-row > .short-card { flex-basis: 170px; } }
.short-card { display: flex; flex-direction: column; position: relative; text-decoration: none; color: var(--color-text); }
.short-card:hover { color: var(--color-text); }
.short-thumb { aspect-ratio: 9 / 16; position: relative; overflow: hidden; border-radius: var(--radius-md); background: var(--ridge-3); }
.short-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center; position: relative; z-index: 1; }
.short-thumb .media-fallback { font-size: .875rem; padding: var(--space-2); text-align: center; color: #fff; }
.short-card .vc-body { padding: var(--space-2) 0 0; }
.short-card h4 { font-family: var(--font-body); font-size: .95rem; font-weight: 600; line-height: 1.3; margin: 0 0 4px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.short-card .vc-meta { font-size: .875rem; color: var(--color-text-muted); }

/* Phones: the shortlist button lives in the menu, not the header bar */
@media (max-width: 639px) {
  .header-actions .nav-cta { display: none; }
  .menu-open .site-nav .nav-mobile-ctas { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-4); }
  .menu-open .site-nav .nav-mobile-ctas .btn { width: 100%; }
}

/* Form pages: no hills, so the heading sits right above the form */
.page-hero.page-hero-plain .container, .page-hero-plain .container { padding-bottom: var(--space-5); }
