/* ScreenCrowd base and components. Vanilla CSS, no framework, no build step. */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background var(--dur-mid) var(--ease-out), color var(--dur-mid) var(--ease-out);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure { margin: 0; }
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.tabular { font-variant-numeric: tabular-nums; }

h1, h2, h3, .font-display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

@media (min-width: 768px) {
  .container { padding: 0 var(--space-7); }
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ---------- reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.nav-brand {
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.nav-brand .nav-lockup {
  height: 1.9rem;
  width: auto;
  flex: none;
}
.nav-lockup-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 58.1px;
  letter-spacing: -0.02em;
  fill: var(--text);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-soft);
  white-space: nowrap;
}
.nav-link:hover { color: var(--text); }

@media (max-width: 560px) {
  .nav-brand .nav-lockup { height: 1.65rem; }
  .nav-link { display: none; }
  .nav-actions { gap: var(--space-2); }
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.theme-toggle:hover { border-color: var(--text); }
.theme-toggle:active { transform: scale(0.94); }
.theme-toggle svg { width: 1.1rem; height: 1.1rem; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
  html:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 3rem;
  padding: 0 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover { border-color: var(--text); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  height: auto;
  padding: 0;
  border-radius: 0;
  border-bottom: 2px solid var(--border-strong);
}
.btn-ghost:hover { border-color: var(--text); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn svg { width: 1.05rem; height: 1.05rem; flex: none; }

/* ---------- join form ---------- */
.join-form {
  display: flex;
  gap: 0.6rem;
  max-width: 30rem;
}
.join-form.stacked { flex-direction: column; }
.join-field {
  flex: 1;
  min-width: 0;
}
.join-input {
  width: 100%;
  height: 3rem;
  padding: 0 1.1rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-strong);
  background: var(--bg-raised);
  color: var(--text);
  font-size: 1rem;
}
.join-input::placeholder { color: var(--text-faint); }
.join-input:focus { border-color: var(--text); }
.join-input.has-error { border-color: var(--danger); }
.join-note {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-faint);
}
.join-error {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--danger);
  min-height: 1.2em;
}
.join-success {
  border: 1.5px solid var(--border-strong);
  background: var(--bg-raised);
  border-radius: var(--radius-card);
  padding: var(--space-5);
}
.join-success .code {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ---------- hero ---------- */
.hero {
  padding: var(--space-8) 0 var(--space-9);
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: var(--space-6);
  align-items: center;
}
.hero-headline {
  font-size: clamp(2.4rem, 4.2vw, 3.1rem);
}
.hero-sub {
  margin-top: var(--space-5);
  font-size: 1.15rem;
  color: var(--text-soft);
  max-width: 42ch;
}
.hero-ctas {
  margin-top: var(--space-6);
}
.hero-secondary {
  margin-top: var(--space-4);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}
.hero-secondary svg { width: 1rem; height: 1rem; }

.hero-visual {
  position: relative;
}
.device-frame {
  position: relative;
  margin-left: auto;
  width: min(320px, 100%);
  border: 1.5px solid var(--border-strong);
  border-radius: 16px;
  background: var(--bg-raised);
  padding: 0.5rem 0.5rem 0;
  box-shadow: 0 24px 60px -20px rgba(var(--shadow-color), 0.35);
  transform: rotate(2deg);
}
.device-frame::before {
  content: "";
  display: block;
  height: 1.1rem;
}
.device-frame img {
  border-radius: 8px 8px 0 0;
  display: block;
  width: 100%;
}
.device-chip {
  position: absolute;
  top: -0.9rem;
  right: -1.2rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-pill);
  transform: rotate(-4deg);
  box-shadow: 0 10px 24px -10px rgba(var(--shadow-color), 0.4);
}

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; gap: var(--space-7); }
  .device-frame { margin: 0 auto; transform: none; }
  .hero-headline { max-width: none; }
}

/* ---------- strip (what happened) ---------- */
.strip {
  background: var(--sc-surface-inverse);
  color: var(--sc-text-on-inverse);
  padding: var(--space-8) 0;
}
@media (prefers-color-scheme: dark) {
  .strip { border-top: 1px solid var(--border-strong); border-bottom: 1px solid var(--border-strong); }
}
[data-theme="dark"] .strip { border-top: 1px solid var(--border-strong); border-bottom: 1px solid var(--border-strong); }
.strip-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.6fr;
  gap: var(--space-7);
  align-items: start;
}
.strip h2 {
  color: var(--accent);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}
.strip p {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #D8D4C6;
  max-width: 58ch;
}
.strip .stat-row {
  margin-top: var(--space-5);
  display: flex;
  gap: var(--space-6);
}
.strip .stat b {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: #fff;
}
.strip .stat span {
  font-size: 0.8rem;
  color: #A8A492;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
@media (max-width: 800px) {
  .strip-inner { grid-template-columns: 1fr; }
}

/* ---------- section shell ---------- */
.section {
  padding: var(--space-9) 0;
}
.section-head {
  max-width: none;
  margin: 0 auto var(--space-7);
  text-align: center;
}
.section-head h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
}
.section-head p {
  margin: var(--space-3) auto 0;
  max-width: 52ch;
  color: var(--text-soft);
  font-size: 1.05rem;
}

/* ---------- feature bento ---------- */
.bento {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-auto-rows: minmax(220px, auto);
  gap: var(--space-5);
}
.bento-card {
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-card);
  background: var(--bg-raised);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.bento-card.shot {
  padding: var(--space-6) var(--space-6) 0;
}
.bento-card.tint {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
}
.bento-card.ink {
  background: var(--sc-surface-inverse);
  color: var(--sc-text-on-inverse);
  border-color: var(--border-strong);
}
@media (prefers-color-scheme: dark) {
  .bento-card.ink { background: #050505; }
}
[data-theme="dark"] .bento-card.ink { background: #050505; }
.bento-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid currentColor;
  margin-bottom: var(--space-4);
}
.bento-status.is-live {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
}
.bento-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}
.bento-card p {
  color: var(--text-soft);
  font-size: 0.98rem;
  max-width: 40ch;
}
.bento-card.tint p,
.bento-card.ink p { color: inherit; opacity: 0.82; }
.bento-icon-row {
  margin-top: auto;
  padding-top: var(--space-5);
  display: flex;
  gap: 0.75rem;
}
.bento-icon-row svg {
  width: 1.6rem;
  height: 1.6rem;
}
.bento-shot-wrap {
  margin-top: var(--space-5);
  border-radius: var(--radius-sharp) var(--radius-sharp) 0 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-bottom: none;
  max-height: 280px;
}
.bento-card.span-2 { grid-column: span 2; }

@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr; }
  .bento-card.span-2 { grid-column: span 1; }
}

/* ---------- coded UI mockups (up next / soon / profile) ----------
   Coded stand-ins for the app screens, built from this file's own tokens
   so they flip light/dark with the rest of the page. No raster images,
   no real poster art, no real show titles. */
.mock-phone {
  width: 100%;
  background: var(--bg);
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  padding: var(--space-3) var(--space-3) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-family: var(--font-body);
}
.device-frame .mock-phone {
  aspect-ratio: 9 / 16;
}

.mock-topbar {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: none;
}
.mock-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}
.mock-tabs {
  display: flex;
  gap: 0.3rem;
}
.mock-tab {
  font-size: 0.54rem;
  font-weight: 700;
  padding: 0.28rem 0.5rem;
  border-radius: var(--radius-pill);
  color: var(--text-faint);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.mock-tab.is-active {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
}

/* shared poster tile: real show art (self-hosted stills), object-fit cover,
   fills whatever height the row/card ends up being. */
.mock-poster {
  flex: none;
  align-self: stretch;
  width: 2.5rem;
  display: block;
  object-fit: cover;
  background: var(--bg-raised);
}

/* -- up next: card stack -- */
.mock-upnext-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.mock-card {
  display: flex;
  align-items: stretch;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.mock-card-body {
  flex: 1;
  min-width: 0;
  padding: 0.45rem 0.55rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
}
.mock-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mock-resume {
  font-size: 0.6rem;
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mock-resume .mock-ep {
  color: var(--text);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.mock-card-meta {
  margin-top: 0.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}
.mock-count {
  font-size: 0.56rem;
  font-weight: 600;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.mock-watch-btn {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mock-watch-btn svg {
  width: 0.65rem;
  height: 0.65rem;
}

/* -- coming soon: row list with date chips -- */
.mock-soon-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.mock-soon-row {
  display: flex;
  align-items: stretch;
  gap: 0.55rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 0.4rem 0.55rem;
}
.mock-soon-poster {
  width: 1.9rem;
}
.mock-soon-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
}
.mock-soon-title {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mock-soon-sub {
  font-size: 0.56rem;
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mock-soon-date-col {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0.25rem;
}
.mock-soon-date {
  font-size: 0.56rem;
  color: var(--text-soft);
  font-variant-numeric: tabular-nums;
}
.mock-chip {
  font-size: 0.52rem;
  font-weight: 700;
  padding: 0.18rem 0.42rem;
  border-radius: var(--radius-pill);
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-faint);
  white-space: nowrap;
}
.mock-chip.is-accent {
  background: var(--accent);
  border-color: transparent;
  color: var(--accent-ink);
}

/* -- profile: stat tiles + genre bars -- */
.mock-profile-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}
.mock-stat-tile {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 0.45rem 0.55rem;
}
.mock-stat-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.mock-stat-label {
  margin-top: 0.1rem;
  font-size: 0.5rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.mock-genres {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 0.5rem 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.34rem;
}
.mock-genre-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.mock-genre-name {
  flex: none;
  width: 3.4rem;
  font-size: 0.52rem;
  color: var(--text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mock-genre-track {
  flex: 1;
  height: 0.4rem;
  border-radius: var(--radius-pill);
  background: var(--border);
  overflow: hidden;
}
.mock-genre-fill {
  display: block;
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--text-faint);
}
.mock-genre-row.is-top .mock-genre-fill { background: var(--accent); }

/* ---------- pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  align-items: stretch;
}
.price-card {
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-card);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  background: var(--bg-raised);
}
.price-card.is-featured {
  border-color: var(--accent);
  background: var(--bg-raised);
  box-shadow: 0 0 0 3px var(--accent) inset;
  position: relative;
}
.price-tag {
  position: absolute;
  top: -0.85rem;
  left: var(--space-6);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
}
.price-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}
.price-amount {
  margin-top: var(--space-3);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.4rem;
  letter-spacing: -0.02em;
}
.price-amount sup {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-faint);
}
.price-list {
  margin-top: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}
.price-list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--text-soft);
}
.price-list svg {
  width: 1.1rem;
  height: 1.1rem;
  flex: none;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: 50%;
  padding: 2px;
  margin-top: 0.1rem;
}
.price-card .btn { margin-top: var(--space-6); }
.price-note {
  margin-top: var(--space-6);
  font-size: 0.82rem;
  color: var(--text-faint);
  text-align: center;
}

@media (max-width: 860px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ---------- referral explainer ---------- */
.referral {
  background: var(--sc-surface-inverse);
  color: var(--sc-text-on-inverse);
  border-radius: var(--radius-card);
  padding: var(--space-8);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  align-items: center;
  border: 1px solid transparent;
}
@media (prefers-color-scheme: dark) {
  .referral { border-color: var(--border-strong); }
}
[data-theme="dark"] .referral { border-color: var(--border-strong); }
.referral h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.3rem); }
.referral p { color: #C7C3B4; margin-top: var(--space-3); max-width: 42ch; }
.referral-tracks {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.referral-track b {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--accent);
}
.referral-track .track-label {
  font-size: 0.95rem;
  color: #D8D4C6;
  margin-top: 0.2rem;
}
.referral-bar {
  margin-top: 0.6rem;
  height: 8px;
  border-radius: var(--radius-pill);
  background: rgba(245, 242, 232, 0.14);
  overflow: hidden;
}
.referral-bar span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: var(--radius-pill);
}
.referral .btn-primary { margin-top: var(--space-6); }

@media (max-width: 860px) {
  .referral { grid-template-columns: 1fr; padding: var(--space-6); }
}

/* ---------- roadmap ---------- */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
.roadmap-col {
  border-top: 3px solid var(--border-strong);
  padding-top: var(--space-4);
}
.roadmap-col.is-now { border-top-color: var(--accent); }
.roadmap-col h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.roadmap-col.is-now h3 { color: var(--text); }
.roadmap-col ul {
  margin-top: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.roadmap-col li {
  font-size: 1rem;
  color: var(--text-soft);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
}
.roadmap-col li:last-child { border-bottom: none; }

@media (max-width: 860px) {
  .roadmap-grid { grid-template-columns: 1fr; gap: var(--space-6); }
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: var(--space-7) 0 var(--space-6);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.footer-line {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  max-width: 32ch;
}
.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-end;
  font-size: 0.9rem;
  color: var(--text-soft);
}
.footer-meta a { text-decoration: none; }
.footer-meta a:hover { color: var(--text); }
.footer-copyright {
  margin-top: var(--space-6);
  font-size: 0.8rem;
  color: var(--text-faint);
}

@media (max-width: 640px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-meta { align-items: flex-start; }
}

/* ---------- referral dashboard ---------- */
.dash-shell {
  max-width: 640px;
  margin: 0 auto;
  padding: var(--space-8) 0 var(--space-9);
}
.dash-eyebrow {
  text-align: center;
}
.dash-card {
  margin-top: var(--space-6);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-card);
  background: var(--bg-raised);
  padding: var(--space-7);
}
.dash-code-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.dash-code {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.dash-position {
  font-size: 0.95rem;
  color: var(--text-soft);
}
.dash-position b { color: var(--text); }
.dash-email {
  margin-top: 0.4rem;
  color: var(--text-faint);
  font-size: 0.9rem;
}
.dash-badges {
  margin-top: var(--space-5);
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.dash-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-strong);
  color: var(--text-soft);
}
.dash-badge.is-unlocked {
  background: var(--accent);
  border-color: transparent;
  color: var(--accent-ink);
}
.dash-badge svg { width: 0.9rem; height: 0.9rem; }

.progress-block {
  margin-top: var(--space-6);
}
.progress-block + .progress-block { margin-top: var(--space-5); }
.progress-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.92rem;
}
.progress-top .goal { color: var(--text-soft); }
.progress-top .count {
  font-family: var(--font-display);
  font-weight: 700;
}
.progress-track {
  margin-top: 0.5rem;
  height: 10px;
  border-radius: var(--radius-pill);
  background: var(--border);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: var(--radius-pill);
  transition: width var(--dur-slow) var(--ease-out);
}

.dash-link-row {
  margin-top: var(--space-7);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}
.dash-link-label {
  font-size: 0.85rem;
  color: var(--text-faint);
  margin-bottom: 0.5rem;
}
.copy-row {
  display: flex;
  gap: 0.6rem;
}
.copy-input {
  flex: 1;
  min-width: 0;
  height: 2.75rem;
  padding: 0 1rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-strong);
  background: var(--bg);
  color: var(--text-soft);
  font-size: 0.88rem;
  font-family: var(--font-mono);
}
.copy-btn {
  height: 2.75rem;
  padding: 0 1.1rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  white-space: nowrap;
}
.copy-btn:hover { border-color: var(--text); }
.copy-btn svg { width: 1rem; height: 1rem; }

.share-row {
  margin-top: var(--space-5);
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 2.75rem;
  padding: 0 1.1rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  cursor: pointer;
}
.share-btn:hover { border-color: var(--text); }
.share-btn svg { width: 1.05rem; height: 1.05rem; }

.dash-state {
  text-align: center;
  padding: var(--space-8) var(--space-6);
}
.dash-state h2 { font-size: 1.6rem; }
.dash-state p {
  margin-top: var(--space-3);
  color: var(--text-soft);
  max-width: 40ch;
  margin-left: auto;
  margin-right: auto;
}
.dash-state .btn { margin-top: var(--space-6); }

.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, var(--border-strong) 37%, var(--border) 63%);
  background-size: 400% 100%;
  animation: skeleton-pulse 1.6s ease-in-out infinite;
  border-radius: var(--radius-sharp);
}
@keyframes skeleton-pulse {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .skeleton { animation: none; }
}
.skeleton-line { height: 1rem; margin-bottom: 0.6rem; }
.skeleton-block { height: 4rem; }

.toast {
  position: fixed;
  left: 50%;
  bottom: var(--space-6);
  transform: translateX(-50%) translateY(10px);
  background: var(--sc-surface-inverse);
  color: var(--sc-text-on-inverse);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-mid) var(--ease-out), transform var(--dur-mid) var(--ease-out);
  z-index: 100;
}
.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 560px) {
  .dash-code { font-size: 1.7rem; }
  .copy-row { flex-direction: column; }
}

/* ---------- misc utility ---------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
