/* Superstar.io — 30-Second Interactive Athlete & Agent Control Preview (/join/preview) */
@font-face {
  font-family: Inter;
  src: url(/fonts/inter-latin-3100e775e8.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url(/fonts/source-serif-4-latin-a6608ab32f.woff2) format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url(/fonts/jetbrains-mono-latin-83c005d49d.woff2) format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0B0C0E;
  --bg-elev: #12151C;
  --surface: rgba(19, 22, 30, 0.92);
  --surface-2: #1A1E29;
  --ink: #F5F2EB;
  --ink-2: #C4BFB6;
  --muted: #98938B;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.2);

  --accent: #A028DC;
  --accent-soft: rgba(160, 40, 220, 0.18);
  --gold: #D9A24A;
  --gold-soft: rgba(217, 162, 74, 0.16);
  --good: #34D399;
  --good-bg: rgba(16, 185, 129, 0.16);
  --good-line: rgba(52, 211, 153, 0.44);
  --danger: #F87171;
  --danger-solid: #DC2626;
  --danger-bg: rgba(220, 38, 38, 0.2);
  --danger-line: rgba(248, 113, 113, 0.55);

  --brand-glow: rgba(160, 40, 220, 0.34);
  --brand-tag-bg: rgba(160, 40, 220, 0.42);
  --brand-tag-border: rgba(216, 180, 254, 0.42);

  --serif: "Source Serif 4", Georgia, serif;
  --sans: Inter, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius-card: 20px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100svh;
  background-image:
    radial-gradient(640px 420px at 88% -6%, rgba(160, 40, 220, 0.16), transparent 64%),
    radial-gradient(560px 360px at 8% 12%, rgba(217, 162, 74, 0.1), transparent 64%);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button, input {
  font-family: inherit;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.shell {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

/* Topbar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--ink);
  white-space: nowrap;
}

.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(160, 40, 220, 0.85);
  flex-shrink: 0;
}

.topbar-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  white-space: nowrap;
}

.pill-demo {
  border-color: rgba(217, 162, 74, 0.5);
  background: var(--gold-soft);
  color: #FDE68A;
}

.pill-safe {
  display: none;
  border-color: var(--line-strong);
  color: var(--ink-2);
}

.pill-good {
  border-color: var(--good-line);
  background: var(--good-bg);
  color: #A7F3D0;
}

.pill-live {
  border-color: var(--good-line);
  background: var(--good-bg);
  color: #A7F3D0;
}

.pill-live[data-mode="protected"] {
  border-color: var(--danger-line);
  background: var(--danger-bg);
  color: #FECACA;
}

.pill-live[data-mode="vetoed"] {
  border-color: var(--danger-line);
  background: var(--danger-bg);
  color: #FECACA;
}

.pill-count {
  border-color: rgba(248, 113, 113, 0.42);
  background: rgba(220, 38, 38, 0.14);
  color: #FECACA;
}

/* Hero Intro — compact for 390x844 above-the-fold priority */
.hero-intro {
  padding: 16px 0 14px;
}

.eyebrow {
  margin: 0 0 6px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

h1 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(27px, 7vw, 44px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}

.lede {
  margin: 0 0 12px;
  max-width: 64ch;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--ink-2);
}

.guarantee-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.g-pill {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 10px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  min-width: 0;
}

.g-value {
  font-family: var(--sans);
  font-feature-settings: "zero" 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.g-label {
  font-size: 11.5px;
  line-height: 1.25;
  color: var(--ink-2);
}

/* Studio Layout */
.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.controls-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 16px;
  min-width: 0;
}

.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px 10px;
  margin-bottom: 12px;
}

.section-kicker {
  margin: 0 0 3px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(19px, 4.6vw, 23px);
  line-height: 1.16;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}

.panel-note {
  margin: 0 0 12px;
  font-size: 13.5px;
  color: var(--ink-2);
}

/* Instant Brand Preview Switcher */
.switcher-block {
  margin-bottom: 12px;
}

.switcher-row-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}

.switcher-row-label-tight {
  margin-top: 10px;
}

.mono-hint {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.brand-switcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.brand-switcher-test {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (min-width: 480px) {
  .brand-switcher {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }
  .brand-switcher-test {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.brand-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 150ms var(--ease), background-color 150ms var(--ease), transform 120ms var(--ease);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-chip:hover {
  border-color: rgba(255, 255, 255, 0.36);
}

.brand-chip[aria-pressed="true"] {
  border-color: var(--gold);
  background: rgba(217, 162, 74, 0.16);
  color: #FFFFFF;
}

.brand-chip[data-blocked="true"] {
  border-color: rgba(248, 113, 113, 0.42);
  background: rgba(220, 38, 38, 0.12);
  color: #FECACA;
}

.brand-chip[data-blocked="true"][aria-pressed="true"] {
  border-color: var(--danger);
  background: rgba(220, 38, 38, 0.28);
  color: #FFFFFF;
}

.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex-shrink: 0;
}
.chip-dot[data-accent="picsart"] { background: #C084FC; }
.chip-dot[data-accent="rimowa"] { background: #D9A24A; }
.chip-dot[data-accent="whoop"] { background: #34D399; }
.chip-dot[data-accent="notion"] { background: #E5E7EB; }

.lock-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--good);
  flex-shrink: 0;
}

.brand-chip[data-blocked="true"] .lock-dot {
  background: var(--danger);
  box-shadow: 0 0 8px rgba(248, 113, 113, 0.75);
}

/* Live Campaign Preview Card */
.campaign-card {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #0D0F14;
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.campaign-card[data-brand-theme="picsart"] {
  --brand-glow: rgba(160, 40, 220, 0.38);
  --brand-tag-bg: rgba(160, 40, 220, 0.56);
  --brand-tag-border: rgba(216, 180, 254, 0.55);
}
.campaign-card[data-brand-theme="rimowa"] {
  --brand-glow: rgba(217, 162, 74, 0.34);
  --brand-tag-bg: rgba(180, 130, 48, 0.58);
  --brand-tag-border: rgba(253, 230, 138, 0.52);
}
.campaign-card[data-brand-theme="whoop"] {
  --brand-glow: rgba(16, 185, 129, 0.32);
  --brand-tag-bg: rgba(6, 95, 70, 0.8);
  --brand-tag-border: rgba(110, 231, 183, 0.54);
}
.campaign-card[data-brand-theme="notion"] {
  --brand-glow: rgba(229, 231, 235, 0.2);
  --brand-tag-bg: rgba(24, 30, 42, 0.9);
  --brand-tag-border: rgba(229, 231, 235, 0.48);
}

.campaign-card[data-state="protected"] {
  border-color: var(--danger-line);
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.25);
}

.campaign-card[data-state="approved"] {
  border-color: var(--good-line);
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.25);
}

.campaign-card[data-state="vetoed"] {
  border-color: var(--danger-line);
}

.campaign-frame {
  position: relative;
  aspect-ratio: 4 / 4.55;
  min-height: 320px;
  max-height: 410px;
  width: 100%;
  overflow: hidden;
  background: #171226;
}

.campaign-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 4%;
  transition: filter 200ms var(--ease), transform 200ms var(--ease);
}

.campaign-card[data-state="protected"] .campaign-photo {
  filter: saturate(0.15) brightness(0.28) blur(6px);
  transform: scale(1.04);
}

.campaign-card[data-state="vetoed"] .campaign-photo {
  filter: saturate(0.2) brightness(0.42);
}

/* Hide underlying campaign labels cleanly when PROTECTED overlay is active (prevents WebKit bleed-through) */
.campaign-card[data-state="protected"] .campaign-top-bar,
.campaign-card[data-state="protected"] .campaign-copy {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.campaign-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 18%, var(--brand-glow), transparent 52%),
    linear-gradient(180deg, rgba(11, 12, 14, 0.54) 0%, rgba(11, 12, 14, 0.06) 32%, rgba(11, 12, 14, 0.64) 64%, rgba(11, 12, 14, 0.96) 100%);
  pointer-events: none;
}

.campaign-top-bar {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.watermark-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(11, 12, 14, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 10.5px;
  font-weight: 600;
  color: #F5F2EB;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  min-width: 0;
  max-width: calc(100% - 76px);
}

.watermark-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.watermark-sep,
.watermark-tag {
  flex-shrink: 0;
  white-space: nowrap;
}

.watermark-tag {
  color: #D6D1C9;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.status-cleared {
  background: rgba(11, 12, 14, 0.84);
  border: 1px solid var(--good-line);
  color: #A7F3D0;
}

.status-approved {
  background: rgba(6, 78, 59, 0.94);
  border: 1px solid #6EE7B7;
  color: #FFFFFF;
}

.status-protected,
.status-vetoed {
  background: rgba(127, 29, 29, 0.92);
  border: 1px solid var(--danger);
  color: #FFFFFF;
}

.campaign-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.campaign-brand-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.campaign-brand-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brand-tag-bg);
  border: 1px solid var(--brand-tag-border);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FFFFFF;
}

.campaign-cat-tag {
  font-size: 12px;
  font-weight: 600;
  color: #F5F2EB;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85);
}

.campaign-headline {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(22px, 5.2vw, 27px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.campaign-meta {
  margin: 0;
  font-size: 12px;
  color: #E2DDD5;
}

/* Red PROTECTED Lock Overlay */
.protected-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px;
  background:
    repeating-linear-gradient(-45deg, rgba(220, 38, 38, 0.1) 0 10px, transparent 10px 20px),
    rgba(24, 6, 9, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.protected-shield {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(220, 38, 38, 0.28);
  border: 1px solid var(--danger);
  color: #FEE2E2;
  margin-bottom: 10px;
}

.protected-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--danger-solid);
  border: 1px solid #FCA5A5;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.protected-title {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.15;
  color: #FFFFFF;
}

.protected-reason {
  margin: 0 0 14px;
  max-width: 34ch;
  font-size: 13px;
  line-height: 1.4;
  color: #FECACA;
}

.btn-safe-return {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(11, 12, 14, 0.9);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.btn-safe-return:hover {
  background: #FFFFFF;
  color: #0B0C0E;
}

/* 1-Tap Approve / Veto Bar */
.approval-bar {
  padding: 14px;
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.approval-summary {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.approval-req-label {
  font-size: 12px;
  color: var(--ink-2);
}

.approval-payout-line {
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.approval-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-approve,
.btn-veto,
.btn-reset {
  min-height: 46px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease), opacity 150ms var(--ease);
}

.btn-approve {
  background: #FFFFFF;
  color: #0B0C0E;
}
.btn-approve:hover:not(:disabled) {
  background: #F3EFE8;
}
.btn-approve:disabled {
  background: #232732;
  color: #7D828F;
  border-color: var(--line);
  cursor: not-allowed;
}

.btn-veto {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-veto:hover:not(:disabled) {
  background: rgba(220, 38, 38, 0.22);
  border-color: var(--danger-line);
  color: #FFFFFF;
}
.btn-veto:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-reset {
  grid-column: 1 / -1;
  background: var(--surface-2);
  border-color: var(--line-strong);
  color: var(--ink);
}

.approval-feedback {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ink-2);
}

.approval-feedback[data-tone="good"] {
  color: #A7F3D0;
}

.approval-feedback[data-tone="bad"] {
  color: #FECACA;
}

/* Category Lock Pills & Custom Brand Blocker */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease), color 150ms var(--ease);
}

.cat-pill:hover {
  border-color: rgba(255, 255, 255, 0.34);
  color: var(--ink);
}

.cat-indicator {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1.5px solid var(--muted);
  background: transparent;
  flex-shrink: 0;
}

.cat-pill[aria-pressed="true"] {
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(220, 38, 38, 0.12);
  color: #FFFFFF;
}

.cat-pill[aria-pressed="true"] .cat-indicator {
  border-color: var(--danger);
  background: var(--danger);
  box-shadow: 0 0 8px rgba(248, 113, 113, 0.55);
}

.brand-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.field-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}

/* Mobile-first stacked input row so 390px input stays full width */
.brand-input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.brand-input-row input {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: #0B0D12;
  color: var(--ink);
  font-size: 16px; /* Prevents iOS WebKit zoom-on-focus */
}

.brand-input-row input::placeholder {
  color: var(--muted);
}

.btn-block-add,
.btn-block-test {
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.btn-block-add {
  border: 1px solid rgba(248, 113, 113, 0.42);
  background: rgba(220, 38, 38, 0.2);
  color: #FEE2E2;
}
.btn-block-add:hover {
  background: rgba(220, 38, 38, 0.34);
  color: #FFFFFF;
}

.btn-block-test {
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--ink);
}
.btn-block-test:hover {
  border-color: var(--gold);
}

.input-verdict {
  margin: 0;
  min-height: 20px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}

.input-verdict[data-verdict="blocked"] {
  color: #FCA5A5;
}

.input-verdict[data-verdict="cleared"] {
  color: #6EE7B7;
}

.custom-brands-block {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.custom-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 38px;
}

.custom-chip-empty {
  font-size: 12.5px;
  color: var(--muted);
  padding: 6px 0;
}

.blocked-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(248, 113, 113, 0.4);
  background: rgba(220, 38, 38, 0.14);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.blocked-chip:hover {
  background: rgba(220, 38, 38, 0.3);
}
.blocked-chip-x {
  font-family: var(--mono);
  font-size: 14px;
  color: #FECACA;
}

/* Split & Approval Guarantee Panel */
.deal-tiers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

@media (min-width: 480px) {
  .deal-tiers {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }
}

.tier-btn {
  min-height: 44px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}

.tier-btn[aria-pressed="true"] {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: #FFFFFF;
}

.split-bar-wrap {
  margin-bottom: 0;
}

.split-bar {
  display: flex;
  width: 100%;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  margin-bottom: 12px;
}

.split-bar-athlete {
  width: 70%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #C78E38, #E2B363);
  color: #141008;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.split-bar-platform {
  width: 30%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #232836;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.split-numbers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 10px;
}

.split-numbers div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  padding: 12px;
  border-radius: 14px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
}

.split-numbers dt {
  font-size: 11.5px;
  line-height: 1.3;
  color: var(--ink-2);
}

.split-numbers dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

#split-athlete-amount {
  color: var(--gold);
}

.split-source {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.pillars-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.pillar-card {
  padding: 13px 14px;
  border-radius: 14px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
}

.pillar-card h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.pillar-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-2);
}

/* Handoff Card */
.handoff-card {
  margin-top: 18px;
  padding: 20px;
  border-radius: var(--radius-card);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(135deg, rgba(217, 162, 74, 0.12), rgba(19, 22, 30, 0.98));
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.handoff-copy {
  max-width: 52ch;
}

.handoff-copy p:last-child {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--ink-2);
}

.handoff-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  background: #FFFFFF;
  color: #0B0C0E;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.cta-primary:hover {
  background: #F3EFE8;
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.cta-secondary:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Footer */
.site-footer {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}

.footer-brand {
  font-family: var(--serif);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-2);
  text-decoration: none;
}

.site-footer nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}

@media (min-width: 520px) {
  .brand-input-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 6px;
  }
  .brand-input-row input {
    grid-column: auto;
  }
}

@media (min-width: 640px) {
  .shell {
    padding: 0 24px 64px;
  }
  .pill-safe {
    display: inline-flex;
  }
  .campaign-frame {
    aspect-ratio: 16 / 11;
    max-height: 450px;
  }
  .pillars-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .handoff-actions {
    flex-direction: row;
    align-items: center;
    gap: 18px;
  }
  .cta-primary {
    width: auto;
  }
}

@media (min-width: 960px) {
  .hero-intro {
    padding: 14px 0 14px;
  }
  .guarantee-strip {
    max-width: 680px;
  }
  .studio-grid {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
    gap: 20px;
    align-items: stretch;
    grid-template-areas: "controls stage";
  }
  .controls-col {
    grid-area: controls;
    height: 100%;
  }
  .controls-col > .panel:last-child {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .stage-panel {
    grid-area: stage;
    position: sticky;
    top: 16px;
    align-self: start;
  }
  .panel {
    padding: 20px;
  }
  .campaign-frame {
    aspect-ratio: 4 / 3.45;
    max-height: 365px;
  }
  /* Keep pillars readable (no skinny 7-line columns inside the left half-column on desktop) */
  .pillars-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .handoff-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
  }
}

/* Agent-Approved Invite Link Generator */
.agent-handoff-panel {
  margin-top: 20px;
}

.agent-handoff-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.agency-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.preset-chip {
  min-height: 38px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease), color 150ms var(--ease);
}

.preset-chip:hover {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--ink);
}

.preset-chip[aria-pressed="true"] {
  background: var(--accent-soft);
  border-color: rgba(216, 180, 254, 0.52);
  color: var(--ink);
}

.handoff-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.handoff-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.handoff-field input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--bg-elev);
  color: var(--ink);
  font-size: 16px;
}

.handoff-field input::placeholder {
  color: var(--muted);
}

.invite-encoded-box {
  padding: 14px;
  border-radius: 14px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.encoded-blocks-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.encoded-block-tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--danger-bg);
  border: 1px solid var(--danger-line);
  color: #fecaca;
  font-size: 12px;
  font-weight: 600;
}

.encoded-block-empty {
  font-size: 12.5px;
  color: var(--muted);
}

.invite-url-readout {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--ink-2);
  word-break: break-all;
}

.invite-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-invite-copy {
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  border: 0;
  background: var(--ink);
  color: #0B0C0E;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 150ms var(--ease), transform 120ms var(--ease);
}

.btn-invite-copy:hover {
  opacity: 0.92;
}

.btn-invite-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease);
}

.btn-invite-open:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.36);
}

.invite-copy-status {
  margin: 0;
  min-height: 18px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--good);
}

@media (min-width: 640px) {
  .handoff-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .invite-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
  .btn-invite-copy,
  .btn-invite-open {
    flex: 1 1 auto;
  }
}

@media (min-width: 960px) {
  .agent-handoff-layout {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
    gap: 20px;
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* IPM v2.0 Client-Side Explainable Pricing Breakdown */
.ipm-preview-breakdown {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.025);
}

.ipm-preview-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  list-style: none;
  min-height: 44px;
}

.ipm-preview-summary::-webkit-details-marker {
  display: none;
}

.ipm-preview-band {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gold);
  background: rgba(217, 162, 74, 0.14);
  border: 1px solid rgba(217, 162, 74, 0.35);
  border-radius: 999px;
  padding: 2px 9px;
  white-space: nowrap;
}

.ipm-preview-grid {
  margin: 8px 0 0;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
}

.ipm-preview-grid > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
}

.ipm-preview-grid dt {
  color: var(--muted);
}

.ipm-preview-grid dd {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.approval-demo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  width: 100%;
  margin-top: 8px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(217, 162, 74, 0.45);
  background: rgba(217, 162, 74, 0.14);
  color: var(--gold, #D9A24A);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.approval-demo-link:hover,
.approval-demo-link:focus-visible {
  background: rgba(217, 162, 74, 0.24);
  border-color: var(--gold, #D9A24A);
}
