/**
 * cllb components — buttons, chips, cards, media, players, chat, tables…
 * Every rule consumes tokens.css variables only.
 */

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	background: var(--brand); color: var(--on-brand); border: 1px solid var(--brand);
	padding: 10px 20px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.92rem;
	cursor: pointer; text-decoration: none !important; font-family: var(--font);
	transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
	white-space: nowrap;
}
.btn:hover { background: var(--brand-strong); border-color: var(--brand-strong); }
.btn-2 { background: var(--surface); color: var(--text); border: 1px solid var(--line-strong); }
.btn-2:hover { background: var(--surface-2); border-color: var(--line-strong); }
.btn-good { background: var(--success); border-color: var(--success); color: #fff; }
.btn-good:hover { background: var(--success-strong); border-color: var(--success-strong); }
.btn-danger { background: transparent; color: var(--danger); border: 1px solid var(--danger); }
.btn-danger:hover { background: var(--danger-soft); }
.btn-sm { padding: 6px 12px; font-size: 0.84rem; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn-icon { padding: 8px 10px; background: var(--surface); color: var(--text-2); border: 1px solid var(--line-strong); }
.btn-icon:hover { background: var(--surface-2); }

/* ------------------------------------------------------------------ */
/* Chips / pills — neutral metadata vs semantic status                 */
/* ------------------------------------------------------------------ */
.chip {
	display: inline-block; background: var(--surface-2); border: 1px solid var(--line);
	color: var(--text-2); border-radius: var(--radius-pill); padding: 3px 12px;
	font-size: 0.78rem; font-weight: 500; margin: 2px 3px 2px 0; line-height: 1.5;
}
.chip-brand { background: var(--brand-soft); border-color: transparent; color: var(--brand-ink); font-weight: 600; }
.chip-good { background: var(--success-soft); border-color: transparent; color: var(--success-strong); font-weight: 600; }
.chip-warn { background: var(--warn-soft); border-color: transparent; color: var(--warn); font-weight: 600; }
.chip-choice { cursor: pointer; user-select: none; padding: 8px 16px; font-size: 0.9rem; background: var(--surface); border-color: var(--line-strong); }
.chip-choice.selected { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
/* Chips that act as filter links */
a.chip-link { text-decoration: none; cursor: pointer; transition: background 0.15s, border-color 0.15s, color 0.15s; }
a.chip-link:hover { background: var(--brand-soft); border-color: transparent; color: var(--brand-ink); }

/* Profile-linked member name */
.user-link { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: inherit; }
.user-link:hover .user-link-name { text-decoration: underline; }
.user-link .avatar-img, .user-link .avatar-fallback { vertical-align: middle; }

/* Gated (members-only) teaser: blurred details under a join overlay */
.gated { position: relative; }
.gated-blur { filter: blur(6px); pointer-events: none; user-select: none; opacity: 0.7; }
.gated-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 12px; }
.gated-overlay > .card { max-width: 420px; width: 100%; margin: 0; box-shadow: var(--shadow-lg, 0 12px 40px rgba(15, 12, 30, 0.18)); }

/* Discover promo strip for logged-out visitors */
.promo-strip { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin: 6px 0 20px; }
.promo-strip p { color: var(--text-2); font-size: 0.9rem; }

/* ------------------------------------------------------------------ */
/* Direct-message inbox                                                */
/* ------------------------------------------------------------------ */
.dm { display: grid; grid-template-columns: 320px 1fr; gap: 16px; align-items: start; }
.dm-threads {
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	overflow: hidden; max-height: 70vh; overflow-y: auto;
}
.dm-thread-item {
	display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
	background: none; border: 0; border-bottom: 1px solid var(--line); padding: 12px 14px;
	cursor: pointer; font: inherit; color: inherit;
}
.dm-thread-item:hover { background: var(--surface-2); }
.dm-thread-item.is-active { background: var(--brand-soft); }
.dm-avatar { width: 40px; height: 40px; border-radius: var(--radius-pill); object-fit: cover; background: var(--surface-3); flex: 0 0 auto; }
.dm-item-body { min-width: 0; flex: 1; display: block; }
.dm-item-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.dm-item-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-item-time { color: var(--text-3, var(--text-2)); font-size: 0.72rem; flex: 0 0 auto; }
.dm-item-preview { display: block; color: var(--text-2); font-size: 0.82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.dm-thread { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-height: 60vh; display: flex; flex-direction: column; }
.dm-placeholder { padding: 40px 24px; text-align: center; margin: auto; }
.dm-active { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.dm-thread-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.dm-thread-head .dm-back { display: none; }
.dm-thread-name { font-weight: 700; text-decoration: none; color: inherit; }
.dm-thread-name:hover { text-decoration: underline; }
.dm-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; max-height: 56vh; }
.dm-compose { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }
.dm-compose textarea { flex: 1; resize: none; }

/* Invite card inside a message bubble */
.dm-invite-card {
	display: block; margin: 8px 0 4px; padding: 10px 12px; border-radius: var(--radius-sm);
	background: var(--surface); border: 1px solid var(--line-strong); text-decoration: none; color: inherit;
}
.msg.mine .dm-invite-card { background: rgba(255, 255, 255, 0.9); }
.dm-invite-label { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--brand-ink); font-weight: 700; }
.dm-invite-title { display: block; font-weight: 700; margin: 2px 0; }
.dm-invite-cta { display: block; font-size: 0.82rem; color: var(--brand-ink); font-weight: 600; }

@media (max-width: 780px) {
	.dm { grid-template-columns: 1fr; }
	.dm-thread { display: none; }
	.dm.dm-open .dm-threads { display: none; }
	.dm.dm-open .dm-thread { display: flex; }
	.dm-thread-head .dm-back { display: inline-flex; }
}

/* ------------------------------------------------------------------ */
/* Modal (invite-to-collab, etc.)                                      */
/* ------------------------------------------------------------------ */
.cllb-modal {
	display: none; position: fixed; inset: 0; z-index: 200;
	background: rgba(15, 12, 30, 0.55); padding: 20px;
	align-items: center; justify-content: center;
}
.cllb-modal.is-open { display: flex; }
.cllb-modal-card {
	position: relative; background: var(--surface); border-radius: var(--radius);
	padding: 24px; width: 100%; max-width: 460px; box-shadow: 0 24px 60px rgba(15, 12, 30, 0.3);
	max-height: 90vh; overflow-y: auto;
}
.cllb-modal-close {
	position: absolute; top: 10px; right: 12px; background: none; border: 0;
	font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--text-2);
}
.cllb-modal-close:hover { color: var(--text); }

/* Nav DM badge anchors */
.topbar-dm { position: relative; }
.bottom-nav-dm { position: relative; }
.bottom-nav-dm .count-badge { position: absolute; top: 2px; left: 58%; }
.side-nav .count-badge { margin-left: auto; }

/* Creator / host card */
.creator-card-head { display: flex; gap: 12px; align-items: flex-start; }
.creator-card-meta { min-width: 0; }
.creator-card-name { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-weight: 700; }
.creator-card-bio { margin: 12px 0 0; color: var(--text-2); }
.creator-card-links { margin-top: 10px; }

.badge-human {
	display: inline-flex; align-items: center; gap: 8px;
	background: var(--human-soft); color: var(--human);
	border: 1px solid transparent; border-radius: var(--radius-pill);
	padding: 6px 16px; font-size: 0.85rem; font-weight: 600;
}

/* Small count bubble (nav, tabs) */
.count-badge {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--radius-pill);
	background: var(--brand); color: var(--on-brand); font-size: 0.7rem; font-weight: 700;
}

/* ------------------------------------------------------------------ */
/* Cards                                                               */
/* ------------------------------------------------------------------ */
.card {
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
	padding: 20px; margin: 16px 0; box-shadow: var(--shadow-xs);
}
.card h2:first-child, .card h3:first-child { margin-top: 0; }

/* Divided rows inside cards (needs, interests, files…) */
.card .item-row { border-top: 1px solid var(--line); padding: 14px 0; }
.card .item-row:first-of-type { border-top: 0; }

/* ------------------------------------------------------------------ */
/* Collab / listing cards (Discover)                                   */
/* ------------------------------------------------------------------ */
.collab-card {
	display: flex; gap: 18px; background: var(--surface); border: 1px solid var(--line);
	border-radius: var(--radius-lg); padding: 16px; margin: 0 0 14px;
	box-shadow: var(--shadow-xs); transition: box-shadow 0.15s, border-color 0.15s;
}
.collab-card:hover { box-shadow: var(--shadow-sm); border-color: var(--line-strong); }
.collab-card .body { flex: 1; min-width: 0; }
.collab-card .aside { flex: 0 0 150px; border-left: 1px solid var(--line); padding-left: 18px; font-size: 0.82rem; }
.collab-card .aside .label { color: var(--muted); font-size: 0.75rem; text-transform: none; }
.collab-card .aside .value { color: var(--brand-ink); font-weight: 600; }
.collab-card h3 { margin: 0 0 2px; font-size: 1.05rem; }
.collab-card h3 a { color: var(--text); }
.collab-card .byline { color: var(--muted); font-size: 0.82rem; margin: 0 0 8px; }
.collab-card .desc { color: var(--text-2); font-size: 0.88rem; margin: 0 0 10px; }
.collab-card .meta-row { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.collab-card .roles { margin-top: 10px; font-size: 0.82rem; color: var(--muted); }

/* Artwork thumbnail with play overlay */
.media-thumb {
	position: relative; flex: 0 0 132px; height: 132px; border-radius: var(--radius);
	overflow: hidden; display: block;
	background: linear-gradient(135deg, #7c5cff, #e04fd1 55%, #2e1065);
}
.media-thumb.is-sm { flex-basis: 56px; height: 56px; border-radius: var(--radius-sm); }
.media-thumb img {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.media-thumb .play {
	position: absolute; inset: 0; margin: auto; width: 40px; height: 40px;
	border-radius: var(--radius-pill); background: rgba(15, 12, 30, 0.55); color: #fff;
	display: flex; align-items: center; justify-content: center;
	backdrop-filter: blur(4px); border: 0; cursor: pointer; z-index: 1;
	transition: background 0.15s, transform 0.15s;
}
.media-thumb .play:hover { background: rgba(15, 12, 30, 0.75); transform: scale(1.05); }
.media-thumb .duration {
	position: absolute; left: 8px; bottom: 8px; background: rgba(15, 12, 30, 0.7);
	color: #fff; font-size: 0.7rem; font-weight: 600; border-radius: 6px; padding: 1px 7px;
}
/* Deterministic artwork variants (hashed from the item ID) */
.media-thumb.v1 { background: linear-gradient(135deg, #8b5cf6, #ec4899 60%, #312e81); }
.media-thumb.v2 { background: linear-gradient(135deg, #0ea5b7, #10b981 60%, #064e3b); }
.media-thumb.v3 { background: linear-gradient(135deg, #f59e0b, #ef4444 60%, #7c2d12); }
.media-thumb.v4 { background: linear-gradient(135deg, #6366f1, #a855f7 60%, #1e1b4b); }
.media-thumb.v5 { background: linear-gradient(135deg, #ef476f, #b1418c 60%, #3c1053); }

/* ------------------------------------------------------------------ */
/* Avatars                                                             */
/* ------------------------------------------------------------------ */
.avatar { width: 96px; height: 96px; border-radius: var(--radius-pill); border: 2px solid var(--surface); box-shadow: var(--shadow-xs); }
.avatar-sm { width: 36px; height: 36px; border-radius: var(--radius-pill); vertical-align: middle; }
.avatar-img {
	border-radius: var(--radius-pill); object-fit: cover; vertical-align: middle;
	flex: 0 0 auto; background: var(--surface-2);
}
.avatar-fallback {
	display: inline-flex; align-items: center; justify-content: center;
	width: 36px; height: 36px; border-radius: var(--radius-pill); flex: 0 0 auto;
	background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; font-size: 0.85rem;
}
.js-share.is-copied { border-color: var(--success); color: var(--success); }
.chip-verified {
	background: var(--brand); color: var(--on-brand); border-color: var(--brand);
	display: inline-flex; align-items: center; gap: 4px;
}
.avatar-stack { display: inline-flex; }
.avatar-stack > * { margin-left: -8px; border: 2px solid var(--surface); }
.avatar-stack > *:first-child { margin-left: 0; }
.stars { color: #f5a623; letter-spacing: 2px; }

/* ------------------------------------------------------------------ */
/* Tabs                                                                */
/* ------------------------------------------------------------------ */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 18px 0 0; overflow-x: auto; }
.tabs a {
	padding: 10px 14px; color: var(--muted); font-weight: 600; font-size: 0.9rem;
	border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.active { color: var(--brand-ink); border-bottom-color: var(--brand-ink); }
.tabs .count { color: var(--muted); font-weight: 500; margin-left: 4px; font-size: 0.8rem; }

/* Legacy pill nav (dashboard) — restyled as tabs-like pills */
.dash-nav { display: flex; gap: 6px; flex-wrap: wrap; margin: 20px 0; }
.dash-nav a { padding: 7px 16px; border-radius: var(--radius-pill); color: var(--text-2); background: var(--surface); border: 1px solid var(--line-strong); font-size: 0.88rem; font-weight: 500; }
.dash-nav a.active { background: var(--brand-soft); color: var(--brand-ink); border-color: transparent; font-weight: 600; }
.dash-nav a:hover { text-decoration: none; color: var(--text); }

/* ------------------------------------------------------------------ */
/* Notices                                                             */
/* ------------------------------------------------------------------ */
.notice { border-radius: var(--radius-sm); padding: 12px 16px; margin: 14px 0; font-size: 0.9rem; }
.notice-error { background: var(--danger-soft); border: 1px solid var(--danger); color: var(--danger-strong); }
.notice-ok { background: var(--success-soft); border: 1px solid var(--success); color: var(--success-strong); }

/* ------------------------------------------------------------------ */
/* Notification bell + panel                                           */
/* ------------------------------------------------------------------ */
.notif-wrap { position: relative; }
.notif-bell {
	position: relative; cursor: pointer; background: var(--surface); border: 1px solid var(--line-strong);
	color: var(--text-2); border-radius: var(--radius-sm); padding: 7px 11px; font-size: 1rem;
}
.notif-bell:hover { background: var(--surface-2); }
.notif-badge {
	position: absolute; top: -6px; right: -6px; background: var(--brand); color: var(--on-brand);
	font-size: 0.66rem; border-radius: var(--radius-pill); padding: 1px 6px; font-weight: 700;
}
.notif-panel {
	position: absolute; right: 0; top: 46px; width: 340px; max-height: 420px; overflow: auto;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	box-shadow: var(--shadow-md); display: none; z-index: 90;
}
.notif-panel.open { display: block; }
.notif-item { display: block; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--text); font-size: 0.88rem; }
.notif-item.unread { background: var(--brand-softer); }
.notif-item small { color: var(--muted); display: block; }

/* ------------------------------------------------------------------ */
/* Waveform player                                                     */
/* ------------------------------------------------------------------ */
.player { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px; margin: 12px 0; }
.player .wave { min-height: 72px; }
.player .row { margin-top: 8px; }
.player .title { font-weight: 600; font-size: 0.92rem; }
.player .title-wrap { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.player .player-cover { width: 40px; height: 40px; border-radius: var(--radius-sm); object-fit: cover; flex: 0 0 auto; border: 1px solid var(--line); }
.player .js-play {
	width: 40px; height: 40px; padding: 0; border-radius: var(--radius-pill);
	flex: 0 0 auto; /* icon-only round transport button */
}

/* Play/pause SVG pairs: .is-playing flips which icon shows */
.js-play svg, .js-thumb-play svg, .js-segment-play svg { display: block; pointer-events: none; }
.js-play .i-pause, .js-thumb-play .i-pause, .js-segment-play .i-pause { display: none; }
.js-play.is-playing .i-play, .js-thumb-play.is-playing .i-play, .js-segment-play.is-playing .i-play { display: none; }
.js-play.is-playing .i-pause, .js-thumb-play.is-playing .i-pause, .js-segment-play.is-playing .i-pause { display: block; }

/* Snippet segment picker */
.segment-tool { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; background: var(--surface-2); }
.segment-tool select { margin-bottom: 4px; }
.segment-wave {
	min-height: 96px; border-radius: var(--radius-sm); background: var(--surface);
	border: 1px solid var(--line); padding: 6px 8px; cursor: ew-resize;
}
.segment-tool .js-segment-play {
	width: 40px; height: 40px; padding: 0; border-radius: var(--radius-pill); flex: 0 0 auto;
	display: inline-flex; align-items: center; justify-content: center;
}
/* wavesurfer regions handles — make the draggable window obvious */
.segment-wave ::part(region) { border-radius: var(--radius-sm); }
.segment-wave ::part(region-handle) { width: 6px; background: var(--brand); opacity: 0.85; }

/* Public segment player: full waveform with the clip marked */
.segment-player .segwrap { position: relative; cursor: pointer; min-height: 72px; }
.segment-player .segwrap .wave { position: relative; z-index: 0; }
.segplay-region {
	position: absolute; top: 0; bottom: 0; z-index: 1; pointer-events: none;
	background: rgba(91, 46, 224, 0.10);
	border-left: 2px solid var(--brand); border-right: 2px solid var(--brand);
}
.segplay-played {
	position: absolute; top: 0; bottom: 0; z-index: 2; pointer-events: none;
	background: rgba(91, 46, 224, 0.24);
}
.segplay-head {
	position: absolute; top: 0; bottom: 0; z-index: 3; width: 2px; pointer-events: none;
	background: var(--text);
}
.comment-list { margin: 10px 0 0; padding: 0; list-style: none; max-height: 260px; overflow: auto; }
.comment-list li { padding: 8px 10px; border-top: 1px solid var(--line); font-size: 0.86rem; }
.comment-list .pos { color: var(--brand-ink); font-weight: 700; cursor: pointer; margin-right: 8px; }
.comment-form { display: flex; gap: 8px; margin-top: 10px; }
.comment-form input[type="text"] { flex: 1; }

/* ------------------------------------------------------------------ */
/* Chat                                                                */
/* ------------------------------------------------------------------ */
.chat-box { display: flex; flex-direction: column; height: 460px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 78%; padding: 9px 14px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); font-size: 0.9rem; }
.msg.mine { align-self: flex-end; background: var(--brand-soft); border-color: transparent; }
.msg .meta { display: block; font-size: 0.72rem; color: var(--muted); margin-top: 3px; }
.chat-input { display: flex; gap: 10px; padding: 12px; border-top: 1px solid var(--line); }
.chat-input textarea { min-height: 44px; height: 44px; flex: 1; }

/* ------------------------------------------------------------------ */
/* Onboarding wizard                                                   */
/* ------------------------------------------------------------------ */
.wizard-progress { display: flex; gap: 8px; margin: 26px 0; }
.wizard-progress span { flex: 1; height: 5px; border-radius: var(--radius-pill); background: var(--surface-3); }
.wizard-progress span.done { background: var(--brand); }
.wizard-step h1 { margin-bottom: 4px; }
.wizard-step .intro { color: var(--muted); margin-top: 0; }
.choice-grid { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }

/* ------------------------------------------------------------------ */
/* Tables                                                              */
/* ------------------------------------------------------------------ */
.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table th { color: var(--muted); font-weight: 600; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.5px; }

/* ------------------------------------------------------------------ */
/* Profile                                                             */
/* ------------------------------------------------------------------ */
.profile-head { display: flex; gap: 22px; align-items: center; padding: 36px 0 10px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ */
/* Release page                                                        */
/* ------------------------------------------------------------------ */
.release-hero { text-align: center; padding: 60px 20px 30px; }
.platform-links { display: grid; gap: 10px; max-width: 460px; margin: 24px auto; }
.platform-links a {
	display: flex; justify-content: space-between; align-items: center;
	background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
	padding: 13px 18px; color: var(--text); font-weight: 600;
}
.platform-links a:hover { border-color: var(--brand-ink); text-decoration: none; box-shadow: var(--shadow-sm); }
.platform-links a span.go { color: var(--brand-ink); }

/* ------------------------------------------------------------------ */
/* Trust / proof                                                       */
/* ------------------------------------------------------------------ */
.cllb-proof-badge { margin: 6px 0 12px; }
.cllb-proof-badge summary { cursor: pointer; color: var(--success-strong); font-size: 0.85rem; }
.cllb-proof-embed { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: var(--radius-sm); margin-top: 8px; }
.cllb-proof-form { margin: 10px 0; }

/* ------------------------------------------------------------------ */
/* Upload dropzone                                                     */
/* ------------------------------------------------------------------ */
.dropzone {
	border: 2px dashed var(--line-strong); border-radius: var(--radius); padding: 30px;
	text-align: center; color: var(--muted); cursor: pointer; transition: border-color 0.2s, background 0.2s;
	background: var(--surface-2);
}
.dropzone:hover, .dropzone.drag { border-color: var(--brand-ink); color: var(--text); background: var(--brand-softer); }
.upload-progress { height: 6px; background: var(--surface-3); border-radius: var(--radius-pill); overflow: hidden; margin-top: 10px; display: none; }
.upload-progress i { display: block; height: 100%; width: 0; background: var(--brand); transition: width 0.2s; }

/* ------------------------------------------------------------------ */
/* Landing page                                                        */
/* ------------------------------------------------------------------ */
.hero { position: relative; padding: 72px 0 56px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; }
.hero > * { position: relative; z-index: 1; }
.hero h1 {
	font-size: clamp(2.4rem, 5.2vw, 3.9rem); margin: 18px 0;
	letter-spacing: -0.03em; line-height: 1.06; font-weight: 800;
}
.hero h1 em { color: var(--brand-ink); font-style: normal; }
.hero .lede { color: var(--text-2); font-size: 1.05rem; max-width: 460px; margin: 0 0 26px; }
.hero-proof { display: flex; align-items: center; gap: 14px; margin-top: 30px; }
.hero-proof .who { font-size: 0.85rem; color: var(--muted); line-height: 1.45; }
.hero-proof .who strong { color: var(--text); display: block; }

/* Framed product mock next to the hero copy */
.hero-visual {
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl);
	box-shadow: var(--shadow-lg); padding: 5px; min-width: 0;
}
.hero-visual .mock-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.hero-visual .mock-head .t { font-weight: 700; font-size: 0.95rem; }
.hero-visual .mock-featured { display: flex; gap: 16px; }
.hero-visual .mock-featured .info { flex: 1; min-width: 0; }
.hero-visual .mock-featured h4 { margin: 6px 0 4px; font-size: 1.1rem; }
.hero-visual .mock-featured p { color: var(--muted); font-size: 0.8rem; margin: 0 0 8px; }
.hero-visual .mock-list { margin-top: 16px; border-top: 1px solid var(--line); }
.hero-visual .mock-list .mock-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.82rem; }
.hero-visual .mock-list .mock-row .grow { flex: 1; min-width: 0; }
.hero-visual .mock-list .mock-row strong { display: block; font-size: 0.85rem; }
.hero-visual .mock-list .mock-row .by { color: var(--muted); font-size: 0.75rem; }

/* Trust bar */
.trust-bar {
	background: var(--brand-softer); border: 1px solid var(--line); border-radius: var(--radius-xl);
	padding: 26px 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 22px; margin: 30px 0 0;
}
.trust-item { display: flex; gap: 12px; align-items: flex-start; font-size: 0.82rem; color: var(--muted); }
.trust-item .ico {
	flex: 0 0 36px; height: 36px; border-radius: var(--radius-sm); background: var(--surface);
	border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.trust-item strong { display: block; color: var(--text); font-size: 0.88rem; margin-bottom: 2px; }

/* How it works */
.how { text-align: center; padding: 64px 0 20px; }
.how .kicker { color: var(--muted); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; }
.how h2 { font-size: 1.9rem; margin: 10px 0 40px; }
.how-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 26px; text-align: center; }
.how-step .ico {
	width: 44px; height: 44px; margin: 0 auto 14px; border-radius: var(--radius-pill);
	background: var(--brand-soft); color: var(--brand-ink); display: flex; align-items: center; justify-content: center;
	font-size: 1.1rem;
}
.how-step strong { display: block; font-size: 0.92rem; margin-bottom: 4px; }
.how-step p { color: var(--muted); font-size: 0.82rem; margin: 0; }

/* Feature cards further down the landing page */
.steps { counter-reset: step; }
.steps .card { position: relative; padding-left: 64px; }
.steps .card::before {
	counter-increment: step; content: counter(step);
	position: absolute; left: 18px; top: 22px;
	width: 30px; height: 30px; border-radius: var(--radius-pill); background: var(--brand);
	color: var(--on-brand); font-weight: 700; display: flex; align-items: center; justify-content: center;
}

/* ==================================================================== */
/* Pre-launch: landing, gate, referral                                  */
/* ==================================================================== */

/* Larger CTA button */
.btn-lg { padding: 14px 28px; font-size: 1.02rem; font-weight: 700; }

/* Account dropdown (avatar menu) in the app topbar */
.account-menu { position: relative; }
.account-menu > summary { list-style: none; cursor: pointer; display: inline-flex; border-radius: 50%; }
.account-menu > summary::-webkit-details-marker { display: none; }
.account-menu > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.account-dd {
	position: absolute; right: 0; top: calc(100% + 10px); width: 300px; z-index: 60;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg, 0 20px 50px rgba(15,12,30,.18)); padding: 8px; display: grid; gap: 2px;
}
.account-id { display: flex; align-items: center; gap: 10px; padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.account-id .grow { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.account-id .muted { font-size: 0.8rem; }
.account-link {
	display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
	padding: 9px 10px; border-radius: var(--radius); color: var(--text); text-decoration: none;
	background: none; border: 0; font: inherit; cursor: pointer;
}
.account-link:hover { background: var(--surface-2); }
.account-link .ico, .account-link svg { flex: 0 0 auto; }
.account-logout { margin: 0; }
.account-imp { border-top: 1px solid var(--line); margin-top: 6px; padding: 10px; display: grid; gap: 6px; }
.account-imp strong { font-size: 0.78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.account-imp select { width: 100%; padding: 7px 8px; border: 1px solid var(--line-strong); border-radius: var(--radius); font-size: 0.85rem; }
.account-imp .btn { width: 100%; justify-content: center; }

/* Optional editable hero image (replaces the CSS mock preview). When a real
   image is used we drop the mock's card chrome (surface bg, border, 5px pad)
   so there's no framing strip around the image, and make the <img> a block so
   it doesn't leave an inline baseline gap along the bottom edge. */
.hero-visual-img { background: none; border: 0; box-shadow: none; padding: 0; }
.hero-visual-img img { display: block; width: 100%; height: auto; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg, 0 20px 50px rgba(0,0,0,.12)); }

/* Landing mock rows with an outline icon */
.mock-row .ico { font-size: 1.2rem; width: 30px; text-align: center; flex: 0 0 auto; display: inline-flex; justify-content: center; }
.mock-row .ico svg { width: 20px; height: 20px; color: var(--brand-ink); }
.chip-ico { display: inline-flex; align-items: center; gap: 6px; }
.chip-ico svg { width: 14px; height: 14px; }

/* ---- Landing: feature story rows (open, alternating copy + media, like the
   hero — no card chrome so the media reads large) ---------------------- */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 8px; }
.feature-rows { display: grid; gap: 128px; padding: 72px 0 32px; }
.feature-row {
	display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: center;
	/* position:relative only — NO z-index/isolation here, so ::before's multiply
	   blends against the off-white page background (matching the hero) instead of
	   a transparent isolated group that would leave the splatter's white visible. */
	position: relative;
}
.feature-row.is-flipped { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.feature-row.is-flipped .feature-media { order: 2; }

/* Paint-splatter accent behind the copy (opposite the image), exactly like the
   hero: it starts at the browser-window edge (full-bleed via 50% + -50vw, not
   clipped to the wrap) and multiply-blends so the white drops out.
   Default row = image left → accent bleeds from the RIGHT edge (bg-accent2);
   flipped row = image right → accent bleeds from the LEFT edge (bg-accent). */
.feature-row::before {
	content: ""; position: absolute; z-index: -1; pointer-events: none;
	top: 50%; transform: translateY(-50%);
	width: min(50vw, 640px); aspect-ratio: 1024 / 683;
	background-repeat: no-repeat; background-size: contain;
	mix-blend-mode: multiply; opacity: 0.9;
	right: 50%; left: auto; margin-right: -50vw;
	background-image: url(../bg-accent2.png);
	background-position: right center;
}
.feature-row.is-flipped::before {
	left: 50%; right: auto; margin-left: -50vw;
	background-image: url(../bg-accent.png);
	background-position: left center;
}
.feature-media {
	border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 16 / 9;
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(140deg, var(--brand-soft), var(--surface-2));
}
.feature-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature-glyph { display: inline-flex; }
.feature-glyph .ico { width: 104px; height: 104px; color: var(--brand-ink); opacity: 0.9; }
.feature-badge {
	display: inline-flex; align-items: center; justify-content: center;
	width: 46px; height: 46px; border-radius: var(--radius); background: var(--brand-soft); color: var(--brand-ink);
}
.feature-badge .ico { width: 24px; height: 24px; }
.feature-copy h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 16px 0 10px; letter-spacing: -0.01em; }
.feature-copy p { color: var(--text-2); font-size: 1.05rem; line-height: 1.6; margin: 0 0 22px; max-width: 46ch; }

/* Fill exactly three columns (was auto-fill, which left a 4th empty slot) */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* Launch-gift + community sections */
.landing-invite { margin-top: 64px; }
.invite-card { max-width: 860px; margin: 0 auto; text-align: center; padding: 48px 44px; }
.invite-card h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.invite-card > .muted { max-width: 620px; margin-inline: auto; font-size: 1.02rem; }
.invite-card .row { justify-content: center; margin-top: 8px; }
.invite-card .btn { padding: 13px 26px; font-size: 1rem; }

/* Reward ladder list (referral page) */
.reward-list { list-style: none; margin: 26px 0; padding: 0; text-align: left; display: grid; gap: 12px; max-width: 640px; margin-inline: auto; }
.reward-list li { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 20px; font-size: 1rem; }

/* ------------------------------------------------------------------ */
/* Launch-gift reward card: pitch on the left, reward ladder on right   */
/* ------------------------------------------------------------------ */
.reward-card {
	position: relative; overflow: hidden;
	display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px;
	background: var(--surface); border: 1px solid var(--line);
	border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
	padding: 48px; align-items: center;
}
/* Paint-splatter bleeding from the card's top-left, clipped to the radius. */
.reward-card::before {
	content: ""; position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none;
	width: min(38%, 360px); aspect-ratio: 1024 / 683;
	background: url(../bg-accent.png) no-repeat left top / contain;
	mix-blend-mode: multiply; opacity: 0.85;
}
.reward-left, .reward-right { position: relative; z-index: 1; min-width: 0; }

.reward-left h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); line-height: 1.06; letter-spacing: -0.02em; margin: 16px 0 16px; }
.reward-lede { color: var(--text-2); font-size: 1.02rem; line-height: 1.6; margin: 0 0 22px; max-width: 42ch; }
.reward-lede strong { color: var(--text); }

.reward-note { display: flex; align-items: center; gap: 12px; background: var(--brand-softer); border: 1px solid var(--brand-soft); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 20px; }
.reward-note-ico { flex: 0 0 auto; width: 38px; height: 38px; border-radius: var(--radius); background: var(--surface); color: var(--brand-ink); display: inline-flex; align-items: center; justify-content: center; }
.reward-note span { font-size: 0.92rem; color: var(--text-2); }
.reward-note strong { color: var(--text); }

.reward-proof { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.reward-proof .avatar-stack { display: inline-flex; align-items: center; }
.reward-proof .avatar-stack > * { margin-left: -8px; border: 2px solid var(--surface); border-radius: 50%; }
.reward-proof .avatar-stack > *:first-child { margin-left: 0; }
.reward-proof .who { font-size: 0.86rem; color: var(--muted); }
.reward-proof .who strong { color: var(--text); }

.reward-actions .btn { width: 100%; justify-content: center; gap: 8px; }
.reward-actions .btn .ico { width: 17px; height: 17px; }
.reward-fineprint { display: block; text-align: center; margin-top: 10px; }

/* Reward ladder rows */
.reward-right { display: grid; gap: 14px; }
.reward-row {
	display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
	background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-lg, 16px);
	padding: 18px 20px; min-height: 96px;
}
.reward-row-ico { flex: 0 0 auto; width: 52px; height: 52px; border-radius: var(--radius); display: inline-flex; align-items: center; justify-content: center; }
.reward-row-ico .ico { width: 26px; height: 26px; }
.reward-row-ico img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
.reward-row-body strong { display: block; font-size: 1.2rem; letter-spacing: -0.01em; margin-bottom: 3px; }
.reward-row-body span { color: var(--text-2); font-size: 0.9rem; line-height: 1.45; }
.reward-row-art { flex: 0 0 auto; }
.reward-row-art img { display: block; height: 78px; width: auto; max-width: 200px; object-fit: contain; }

/* Tier accents */
.reward-row.tier-1 { background: color-mix(in srgb, var(--brand-soft) 55%, var(--surface)); border-color: var(--brand-soft); }
.reward-row.tier-1 .reward-row-ico { background: var(--brand-soft); color: var(--brand-ink); }
.reward-row.tier-2 { background: #eefaf9; border-color: #d3efec; }
.reward-row.tier-2 .reward-row-ico { background: #d3efec; color: #0b8f86; }
.reward-row.tier-3 { background: #f3f0fe; border-color: #e2dbfa; }
.reward-row.tier-3 .reward-row-ico { background: #e2dbfa; color: #6b46e5; }

/* Footer strip */
.reward-foot { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; border: 1px solid var(--line); border-radius: var(--radius-lg, 16px); padding: 16px 20px; }
.reward-foot-ico { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: var(--success-soft); color: var(--success); display: inline-flex; align-items: center; justify-content: center; }
.reward-foot-ico .ico { width: 22px; height: 22px; }
.reward-foot-body strong { display: block; font-size: 0.94rem; }
.reward-foot-body span { color: var(--muted); font-size: 0.84rem; }
.reward-foot-heart { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: var(--danger-soft); color: var(--danger); display: inline-flex; align-items: center; justify-content: center; }
.reward-foot-heart .ico { width: 20px; height: 20px; fill: currentColor; stroke: none; }

/* ------------------------------------------------------------------ */
/* Gradient heading accent: wrap a word/phrase in a bare <span> in ANY  */
/* heading (or add class="grad") to paint it with the brand lime→cyan   */
/* sweep. :not([class]) leaves utility spans (e.g. .muted) untouched.   */
/* ------------------------------------------------------------------ */
h1 span:not([class]), h2 span:not([class]), h3 span:not([class]),
h4 span:not([class]), h5 span:not([class]), h6 span:not([class]), .grad {
	background: var(--brand-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

/* ------------------------------------------------------------------ */
/* Community section (pre-launch): intro + profile mock + pillars      */
/* ------------------------------------------------------------------ */
.community { padding: 84px 0 44px; }
.community-intro {
	display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: 60px; align-items: center;
}
.community-lede .kicker {
	display: inline-block; color: var(--brand-ink); font-size: 0.78rem;
	letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; margin-bottom: 16px;
}
.community-lede h2 { font-size: clamp(2rem, 3.5vw, 2.9rem); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 20px; }
.community-lede p { color: var(--text-2); font-size: 1.06rem; line-height: 1.6; margin: 0; max-width: 46ch; }

/* Profile mock card */
.community-mock {
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl);
	box-shadow: var(--shadow-lg); padding: 22px;
}
.cm-top { display: flex; align-items: flex-start; gap: 14px; }
.cm-ava { position: relative; flex: 0 0 auto; }
.cm-ava-img { display: block; width: 60px; height: 60px; border-radius: 50%; }
.cm-ava-img.v1 { background: linear-gradient(140deg, #7b3ff2, #d94f9a 55%, #f7a35c); }
.cm-ava-badge {
	position: absolute; right: -2px; bottom: -2px; width: 22px; height: 22px; border-radius: 50%;
	background: var(--brand); color: var(--on-brand); border: 2px solid var(--surface);
	display: inline-flex; align-items: center; justify-content: center;
}
.cm-ava-badge .ico { width: 12px; height: 12px; stroke-width: 3; }
.cm-id { flex: 1; min-width: 0; }
.cm-name { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 1.15rem; color: var(--text); }
.cm-verified { width: 18px; height: 18px; border-radius: 50%; background: #2ba7f5; color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.cm-verified .ico { width: 11px; height: 11px; stroke-width: 3.4; }
.cm-meta { display: block; color: var(--muted); font-size: 0.85rem; margin: 3px 0 9px; }
.cm-roles { display: flex; flex-wrap: wrap; gap: 6px; }
.cm-roles .chip { font-size: 0.72rem; padding: 3px 9px; }
.cm-roles .chip.more { background: var(--surface-2); color: var(--muted); }
.cm-view { flex: 0 0 auto; white-space: nowrap; align-self: flex-start; }

.cm-verify { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.cm-checks-h, .cm-activity-h { display: block; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 12px; }
.cm-check { display: grid; grid-template-columns: 18px 1fr; column-gap: 9px; margin-bottom: 10px; align-items: start; }
.cm-check .ok { grid-row: span 2; width: 18px; height: 18px; border-radius: 50%; background: var(--success-soft); color: var(--success); display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.cm-check .ok .ico { width: 11px; height: 11px; stroke-width: 3; }
.cm-check b { font-size: 0.82rem; color: var(--text); line-height: 1.2; }
.cm-check em { font-style: normal; font-size: 0.72rem; color: var(--muted); }
.cm-human { background: var(--brand-softer); border: 1px solid var(--brand-soft); border-radius: var(--radius); padding: 14px; }
.cm-human-ico { color: var(--brand-ink); display: inline-flex; }
.cm-human-ico .ico { width: 26px; height: 26px; }
.cm-human strong { display: block; font-size: 0.9rem; margin: 8px 0 4px; color: var(--text); }
.cm-human span { font-size: 0.76rem; color: var(--text-2); line-height: 1.45; }

.cm-activity { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.cm-player { display: flex; align-items: center; gap: 12px; }
.cm-play { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: inline-flex; align-items: center; justify-content: center; }
.cm-play .ico { width: 14px; height: 14px; fill: currentColor; stroke: none; margin-left: 1px; }
.cm-wave { position: relative; flex: 1; min-width: 0; height: 42px; display: flex; align-items: center; gap: 2px; }
.cm-wave i { flex: 1 1 0; min-width: 0; border-radius: 2px; background: var(--line); }
.cm-wave i.is-on { background: var(--brand-strong); }
.cm-time { flex: 0 0 auto; font-size: 0.78rem; color: var(--muted); }
.cm-marker { position: absolute; top: -7px; transform: translateX(-50%); background: var(--text); color: #fff; font-size: 0.62rem; font-weight: 600; padding: 2px 6px; border-radius: var(--radius-pill); z-index: 2; }
.cm-marker::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 42px; background: var(--text); opacity: 0.45; transform: translateX(-50%); }
.cm-collab { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 0.78rem; color: var(--muted); }
.cm-collab-ava { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--surface); margin-left: -8px; }
.cm-collab-ava:first-child { margin-left: 0; }
.cm-collab-ava.a1 { background: linear-gradient(135deg,#f7a35c,#f76c6c); }
.cm-collab-ava.a2 { background: linear-gradient(135deg,#6c8cf7,#8f6cf7); }
.cm-collab-ava.a3 { background: linear-gradient(135deg,#3ec98d,#12b6d6); }

/* Three value pillars, divided by hairlines like the mockup */
.community-pillars { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 72px; border-top: 1px solid var(--line); }
.pillar { padding: 36px 36px 6px; border-left: 1px solid var(--line); }
.pillar:first-child { border-left: 0; padding-left: 0; }
.pillar:last-child { padding-right: 0; }
.pillar-ico { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: var(--radius); background: var(--brand-soft); color: var(--brand-ink); margin-bottom: 16px; }
.pillar-ico .ico { width: 24px; height: 24px; }
.pillar h3 { font-size: 1.18rem; margin: 0 0 8px; }
.pillar p { color: var(--text-2); font-size: 0.92rem; line-height: 1.55; margin: 0 0 18px; }
.pillar-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pillar-list li { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: var(--text); }
.pillar-list .ck { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); display: inline-flex; align-items: center; justify-content: center; }
.pillar-list .ck .ico { width: 12px; height: 12px; stroke-width: 3; }

@media (max-width: 820px) {
	.feature-rows { gap: 64px; }
	.feature-row,
	.feature-row.is-flipped { grid-template-columns: 1fr; gap: 22px; }
	.feature-row.is-flipped .feature-media { order: 0; }
	.feature-row::before { display: none; }
	.feature-media { aspect-ratio: 16 / 10; }
	.feature-glyph .ico { width: 76px; height: 76px; }
	.cards-3 { grid-template-columns: 1fr; }
	.invite-card { padding: 32px 22px; }
	.community { padding: 52px 0 20px; }
	.community-intro { grid-template-columns: 1fr; gap: 34px; }
	.community-pillars { grid-template-columns: 1fr; margin-top: 44px; }
	.pillar { border-left: 0; border-top: 1px solid var(--line); padding: 28px 0 6px; }
	.pillar:first-child { border-top: 0; padding-top: 4px; }
	.reward-card { grid-template-columns: 1fr; gap: 30px; padding: 30px 22px; }
	.reward-card::before { width: 220px; }
	.reward-row { grid-template-columns: auto 1fr; padding: 16px; min-height: 0; }
	.reward-row-art { display: none; }
	.reward-row-body strong { font-size: 1.05rem; }
	.reward-foot { grid-template-columns: auto 1fr; }
	.reward-foot-heart { display: none; }
}

.landing-cta { text-align: center; margin: 56px 0 24px; padding: 40px 20px; background: var(--brand-softer); border-radius: var(--radius-xl); }
.landing-cta h2 { margin: 0 0 8px; }

/* "Opens at launch" gate */
.launch-gate { max-width: 560px; margin: 0 auto; }
.launch-gate .row { margin-top: 18px; }

/* Referral / reward tracker */
.reward-tracker { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.reward-total { text-align: center; flex: 0 0 auto; min-width: 160px; padding: 8px 20px; background: var(--brand-soft); border-radius: var(--radius-lg); }
.reward-num { display: block; font-size: 3rem; font-weight: 800; color: var(--brand-ink); line-height: 1; }
.reward-unit { display: block; font-weight: 600; color: var(--brand-ink); margin-top: 4px; }
.reward-breakdown { list-style: none; margin: 0; padding: 0; flex: 1 1 260px; display: grid; gap: 10px; }
.reward-breakdown li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); }
.reward-breakdown li.done { color: var(--text); }
.reward-breakdown .tick { flex: 0 0 auto; color: var(--muted); font-weight: 700; }
.reward-breakdown li.done .tick { color: var(--success); }

.invite-link-row { display: flex; gap: 8px; }
.invite-link-input {
	flex: 1 1 auto; font-family: monospace; font-size: 0.9rem;
	padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface-2);
}
.js-copy.is-copied { background: var(--success); border-color: transparent; color: #fff; }

.referral-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.referral-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.referral-list li:last-child { border-bottom: 0; }
.referral-list .grow { flex: 1 1 auto; min-width: 0; }

/* Pre-launch chrome accents */
.topbar-prelaunch {
	flex: 1 1 auto; display: inline-flex; align-items: center; gap: 8px;
	font-size: 0.85rem; font-weight: 600; color: var(--brand-ink);
}
.topbar-prelaunch::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.side-refer { color: var(--brand-ink) !important; font-weight: 600; }

@media (max-width: 620px) {
	.reward-tracker { flex-direction: column; align-items: stretch; }
	.reward-total { width: 100%; }
}

/* ============================================================== */
/* Scroll-reveal animations                                       */
/* ============================================================== */
.has-reveal .reveal {
	opacity: 0; transform: translateY(20px);
	transition: opacity 0.65s cubic-bezier(0.16, 0.84, 0.44, 1), transform 0.65s cubic-bezier(0.16, 0.84, 0.44, 1);
	transition-delay: var(--reveal-delay, 0ms);
}
/* No `will-change` here: it would establish a permanent stacking context on
   every revealed element, which breaks the mix-blend-mode:multiply of the
   feature/section paint-splatter accents (they'd blend against their own
   transparent box instead of the off-white page). */
.has-reveal .reveal.is-visible { opacity: 1; transform: none; will-change: auto; }
@media (prefers-reduced-motion: reduce) {
	.has-reveal .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ============================================================== */
/* Icon inputs (register, profile social, etc.)                   */
/* ============================================================== */
.input-icon { position: relative; display: flex; align-items: center; }
.input-icon + .input-icon { margin-top: 10px; }
.input-icon .ii-lead {
	position: absolute; left: 13px; display: inline-flex; align-items: center;
	color: var(--muted); pointer-events: none;
}
.input-icon .ii-lead .ico { width: 18px; height: 18px; }
.input-icon input { width: 100%; padding-left: 42px; padding-right: 42px; }
.input-icon input:focus + .ii-lead,
.input-icon:focus-within .ii-lead { color: var(--brand-ink); }
.input-icon .ii-status {
	position: absolute; right: 13px; display: inline-flex; align-items: center; justify-content: center;
	width: 18px; height: 18px; color: transparent;
}
.input-icon.is-ok .ii-status { color: var(--success); }
.input-icon.is-bad .ii-status { color: #d64545; }
.input-icon.is-ok input { border-color: var(--success); }
.input-icon.is-bad input { border-color: #d64545; }
.input-icon .ii-toggle {
	position: absolute; right: 8px; display: inline-flex; align-items: center; justify-content: center;
	background: none; border: 0; padding: 6px; margin: 0; cursor: pointer; color: var(--muted); border-radius: var(--radius);
}
.input-icon .ii-toggle:hover { color: var(--text); }
.input-icon .ii-toggle .ico { width: 18px; height: 18px; }
.ii-spin {
	width: 15px; height: 15px; border-radius: 50%;
	border: 2px solid var(--line); border-top-color: var(--brand-ink);
	animation: cllb-spin 0.7s linear infinite;
}
@keyframes cllb-spin { to { transform: rotate(360deg); } }

/* ============================================================== */
/* Auth (register) split layout                                   */
/* ============================================================== */
/* Only set vertical padding — the shared .wrap keeps the 24px side padding so
   the layout never sticks to the screen edges (notably on mobile). */
.auth-split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding-top: 44px; padding-bottom: 68px; }
.auth-promo { align-self: center; }
.auth-promo h1 { font-size: clamp(2.3rem, 3.8vw, 3.15rem); line-height: 1.04; margin: 16px 0 14px; letter-spacing: -0.01em; }
.auth-promo .lede { max-width: 42ch; font-size: 1.02rem; line-height: 1.6; }
.auth-invited {
	display: flex; align-items: center; gap: 12px; margin: 4px 0 6px;
	padding: 10px 14px; background: var(--brand-softer); border: 1px solid var(--brand-soft);
	border-radius: var(--radius-lg); font-size: 0.9rem; color: var(--text-2);
}
.auth-invited img { border-radius: 50%; }
.auth-benefits { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 20px; }
.auth-benefits li { display: flex; gap: 14px; align-items: flex-start; }
.auth-benefit-ico {
	flex: 0 0 auto; width: 42px; height: 42px; border-radius: var(--radius);
	background: var(--brand-soft); color: var(--brand-ink);
	display: inline-flex; align-items: center; justify-content: center;
}
.auth-benefit-ico .ico { width: 21px; height: 21px; }
.auth-benefit-body { display: flex; flex-direction: column; gap: 2px; }
.auth-benefit-body strong { color: var(--text); font-size: 0.98rem; }
.auth-benefit-body span { color: var(--muted); font-size: 0.87rem; line-height: 1.4; }
.auth-proof { display: flex; align-items: center; gap: 12px; margin-top: 32px; }
.auth-proof .avatar-stack > * { border-radius: 50%; }
.auth-proof .who { font-size: 0.86rem; color: var(--muted); }
.auth-proof .who strong { color: var(--text); }

.auth-card { padding: 34px; align-self: stretch; box-shadow: var(--shadow-lg); }
.auth-card > h2 { font-size: 1.5rem; }
.auth-form label { display: block; font-weight: 600; font-size: 0.85rem; margin: 16px 0 7px; color: var(--text); }
.auth-form .btn { margin-top: 22px; gap: 8px; }
.auth-form .btn .ico { width: 17px; height: 17px; }
.auth-alt { text-align: center; margin-top: 18px; }

.auth-assure {
	grid-column: 1 / -1; display: flex; align-items: center; gap: 14px;
	padding: 18px 22px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.auth-assure-ico {
	flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
	background: var(--brand-soft); color: var(--brand-ink);
	display: inline-flex; align-items: center; justify-content: center;
}
.auth-assure-ico .ico { width: 20px; height: 20px; }
.auth-assure strong { display: block; font-size: 0.92rem; color: var(--text); }
.auth-assure span { font-size: 0.85rem; color: var(--muted); }

@media (max-width: 860px) {
	.auth-split { grid-template-columns: 1fr; gap: 34px; padding-top: 24px; padding-bottom: 44px; }
	.auth-promo h1 { margin-top: 8px; }
}

/* ============================================================== */
/* Social links + fields (profiles)                              */
/* ============================================================== */
.social-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 6px; }
.social-fields .input-icon .ii-lead { color: var(--text-2); }
.social-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.social-link {
	display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
	border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text-2);
	transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.social-link:hover { color: var(--brand-ink); border-color: var(--brand); background: var(--brand-softer); transform: translateY(-1px); }
.social-link .ico { width: 18px; height: 18px; }

/* Demo chips (onboarding uploads step) */
.demo-chips { list-style: none; margin: 8px 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.demo-chips li {
	display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px;
	background: var(--brand-soft); color: var(--brand-ink); border-radius: var(--radius-pill);
	font-size: 0.85rem; font-weight: 600;
}
.demo-chips li::before { content: "\266A"; font-size: 0.9em; opacity: 0.8; }

@media (max-width: 620px) {
	.social-fields { grid-template-columns: 1fr; }
}

/* ============================================================== */
/* Support tickets                                               */
/* ============================================================== */
.support-types {
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px; margin: 6px 0 22px;
}
.support-type { position: relative; display: block; cursor: pointer; }
.support-type input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.support-type-card {
	display: flex; flex-direction: column; gap: 4px; height: 100%;
	padding: 14px; border: 1px solid var(--line); border-radius: var(--radius);
	background: var(--surface); transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.support-type:hover .support-type-card { border-color: var(--brand); }
.support-type input:focus-visible + .support-type-card { outline: 2px solid var(--brand); outline-offset: 2px; }
.support-type input:checked + .support-type-card {
	border-color: var(--brand); background: var(--brand-softer);
	box-shadow: inset 0 0 0 1px var(--brand);
}
.stc-ico { display: inline-flex; color: var(--brand-ink); }
.stc-ico .ico { width: 22px; height: 22px; }
.stc-label { font-weight: 700; color: var(--text); }
.stc-blurb { font-size: 0.82rem; color: var(--muted); line-height: 1.35; }

.support-field { margin-top: 4px; }
.support-field[hidden] { display: none; }
.support-field .stack-sm { display: flex; flex-direction: column; gap: 8px; }
.bug-note { display: inline-flex; align-items: center; gap: 8px; }
.bug-note .ico { width: 16px; height: 16px; flex: none; color: var(--brand-ink); }

/* Ticket status chips */
.ticket-status { font-weight: 600; }
.ticket-status.status-open,
.ticket-status.status-awaiting_staff { background: var(--brand-soft); color: var(--brand-ink); }
.ticket-status.status-awaiting_user { background: #fff2d6; color: #8a5a00; }
.ticket-status.status-resolved { background: #dcf5e6; color: #1c7a45; }
.ticket-status.status-closed { background: var(--bg-3, #eef0ee); color: var(--muted); }

/* Ticket list */
.ticket-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ticket-list li { border-top: 1px solid var(--line); }
.ticket-list li:first-child { border-top: 0; }
.ticket-row {
	display: flex; align-items: center; gap: 14px; padding: 14px 4px;
	color: inherit; text-decoration: none; transition: background 0.12s ease;
}
.ticket-row:hover { background: var(--brand-softer); }
.tr-ico {
	display: inline-flex; align-items: center; justify-content: center; flex: none;
	width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-ink);
}
.tr-ico .ico { width: 20px; height: 20px; }
.tr-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.tr-subject { font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 8px; }
.ticket-row.is-unread .tr-subject { font-weight: 700; }
.tr-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex: none; }
.tr-meta { display: block; }

/* Ref chips on a ticket */
.ref-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ticket-context summary { cursor: pointer; font-weight: 600; }
.ticket-context .ctx-list { list-style: none; margin: 12px 0 6px; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; }

/* Threaded conversation (support + admin) */
.cllb-thread { display: flex; flex-direction: column; gap: 14px; }
.cllb-msg { max-width: 88%; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--line); }
.cllb-msg.is-user { align-self: flex-end; background: var(--brand-softer); border-color: var(--brand); }
.cllb-msg.is-staff { align-self: flex-start; background: var(--surface); }
.cllb-msg-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.cllb-msg-body { color: var(--text); }
.cllb-msg-body p { margin: 0 0 6px; }
.cllb-msg-body p:last-child { margin-bottom: 0; }
.ticket-reply { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.ticket-reply textarea { width: 100%; }

@media (max-width: 720px) {
	.support-types { grid-template-columns: 1fr; }
	.cllb-msg { max-width: 100%; }
}

/* Admin support thread (wp-admin) */
.cllb-support-admin .cllb-thread { max-width: 760px; margin: 16px 0; }
.cllb-support-admin .cllb-msg { background: #fff; }
.cllb-support-admin .cllb-msg.is-staff { background: #f0f6ff; border-color: #cfe0ff; }
.cllb-support-admin .cllb-badge {
	display: inline-block; padding: 2px 10px; border-radius: 999px;
	background: #f0f0f1; font-size: 12px; font-weight: 600;
}

/* ------------------------------------------------------------------ */
/* Collab source material: type toggle + lyrics                        */
/* ------------------------------------------------------------------ */
.source-item { margin-bottom: 10px; }
.chip.source-kind {
	background: var(--surface-2); border: 1px solid var(--line); color: var(--muted);
	font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em;
	margin-bottom: 6px;
}
.seg-toggle { display: inline-flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 14px; }
.seg-toggle .seg-opt {
	display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
	padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
	font-size: 0.9rem; user-select: none;
}
.seg-toggle .seg-opt input { margin: 0; }
.seg-toggle .seg-opt:has(input:checked) {
	border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); font-weight: 600;
}
.lyrics-block {
	background: var(--surface-2); border: 1px solid var(--line);
	border-radius: var(--radius); padding: 14px 16px; margin: 4px 0 8px;
}
.lyrics-title { display: block; margin-bottom: 8px; }
.lyrics-body { white-space: pre-wrap; line-height: 1.6; color: var(--text); }
.lyrics-form textarea { width: 100%; min-height: 170px; font-family: inherit; line-height: 1.5; }
