/* ──────────────────────────────────────────────────────────────────────────
   Reson — design system
   Audio-first social network. Premium, intimate, warm.
   ────────────────────────────────────────────────────────────────────────── */

:root {
  /* Type */
  --font-display: "Söhne", "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, monospace;
  --font-serif: "Tiempos Headline", "Source Serif Pro", Georgia, serif;

  /* Light tokens (default) */
  --bg: #fafaf7;
  --bg-elevated: #ffffff;
  --bg-tint: #f4f3ee;
  --surface: #ffffff;
  --surface-hover: #f4f3ee;
  --border: rgba(10, 10, 10, 0.08);
  --border-strong: rgba(10, 10, 10, 0.16);
  --text: #0a0a0a;
  --text-muted: #6a6a68;
  --text-faint: #9b9a96;

  --accent: #ff7849;           /* warm sunset — voice, presence */
  --accent-hover: #ff8b62;
  --accent-soft: rgba(255, 120, 73, 0.12);
  --accent-text: #ffffff;

  --success: #2da26b;
  --danger: #e0454a;
  --tick-blue: #1d9bf0;
  --tick-gold: #f5b400;
  --tick-pale: #94a3b8;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgba(10, 10, 10, 0.04);
  --shadow: 0 8px 24px -8px rgba(10, 10, 10, 0.12), 0 2px 6px rgba(10, 10, 10, 0.04);
  --shadow-lg: 0 24px 56px -16px rgba(10, 10, 10, 0.24);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --bg-elevated: #111111;
    --bg-tint: #141414;
    --surface: #141414;
    --surface-hover: #1c1c1c;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --text: #f5f5f3;
    --text-muted: #a3a39d;
    --text-faint: #6a6a66;

    --accent: #ff7849;
    --accent-hover: #ff9670;
    --accent-soft: rgba(255, 120, 73, 0.16);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 32px 64px -16px rgba(0, 0, 0, 0.6);
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

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

::selection {
  background: var(--accent);
  color: var(--accent-text);
}

/* ──────────────────────────────────────────────────────────────────────────
   Brand
   ────────────────────────────────────────────────────────────────────────── */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand-mark {
  width: 28px;
  height: 28px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-mark img,
.brand-mark svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ──────────────────────────────────────────────────────────────────────────
   Typography utilities
   ────────────────────────────────────────────────────────────────────────── */

.h-display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.h-display .accent {
  font-style: italic;
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--accent);
}

.h-1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.h-2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.h-3 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.muted {
  color: var(--text-muted);
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  letter-spacing: 0.02em;
}

/* ──────────────────────────────────────────────────────────────────────────
   Buttons
   ────────────────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 22px;
  height: 44px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: transform 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--text);
  color: var(--bg);
}
.btn-primary:hover { background: var(--text); box-shadow: var(--shadow); }

.btn-accent {
  background: var(--accent);
  color: var(--accent-text);
}
.btn-accent:hover { background: var(--accent-hover); box-shadow: 0 12px 28px -8px rgba(255, 120, 73, 0.5); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--surface-hover); }

.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 16px; }

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: background 0.12s ease, color 0.12s ease;
}
.btn-icon:hover { background: var(--surface-hover); color: var(--text); }

/* ──────────────────────────────────────────────────────────────────────────
   Avatar
   ────────────────────────────────────────────────────────────────────────── */

.avatar {
  display: inline-block;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-tint);
  position: relative;
  width: 40px;
  height: 40px;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar.sm { width: 32px; height: 32px; }
.avatar.md { width: 44px; height: 44px; }
.avatar.lg { width: 56px; height: 56px; }
.avatar.xl { width: 112px; height: 112px; border: 4px solid var(--bg); }

.avatar-gradient {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: white;
  font-size: 16px;
}

/* Tick */
.tick {
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
}
.tick.blue { color: var(--tick-blue); }
.tick.gold { color: var(--tick-gold); }
.tick.pale { color: var(--tick-pale); }

/* ──────────────────────────────────────────────────────────────────────────
   Audio player
   ────────────────────────────────────────────────────────────────────────── */

.audio-player {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--bg-tint);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.audio-player.lg {
  padding: 20px;
  border-radius: var(--radius-lg);
  gap: 18px;
}

.play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.15s ease, background 0.15s ease;
}
.play-btn:hover { transform: scale(1.05); }
.play-btn.lg { width: 64px; height: 64px; }
.play-btn.lg svg { width: 24px; height: 24px; }
.play-btn.accent { background: var(--accent); color: white; }

.waveform {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 2px;
  height: 36px;
  min-width: 0;
}
.waveform.lg { height: 56px; gap: 3px; }

.waveform .bar {
  flex: 1;
  background: var(--border-strong);
  border-radius: 2px;
  min-width: 2px;
  max-width: 4px;
}

.waveform .bar.played {
  background: var(--accent);
}

.audio-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  flex-shrink: 0;
  min-width: 42px;
  text-align: right;
}

/* ──────────────────────────────────────────────────────────────────────────
   Post card
   ────────────────────────────────────────────────────────────────────────── */

.post {
  display: flex;
  gap: 14px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  transition: background 0.12s ease;
}
.post:hover { background: var(--bg-elevated); }

.post-body {
  flex: 1;
  min-width: 0;
}

.post-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.post-author {
  font-weight: 600;
  color: var(--text);
}

.post-handle, .post-time {
  color: var(--text-muted);
}

.post-caption {
  font-size: 15px;
  line-height: 1.5;
  margin: 4px 0 12px;
  color: var(--text);
  word-wrap: break-word;
}

.post-image {
  margin: 12px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-tint);
}
.post-image img {
  width: 100%;
  height: auto;
  display: block;
}

.post-summary {
  margin-top: 12px;
  padding: 14px 16px;
  background: var(--accent-soft);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 120, 73, 0.18);
}
.post-summary .eyebrow {
  margin-bottom: 6px;
}
.post-summary p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.45;
}

.post-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  max-width: 420px;
  color: var(--text-muted);
}

.post-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-full);
  font-size: 13px;
  transition: color 0.12s ease, background 0.12s ease;
}
.post-action:hover { background: var(--surface-hover); color: var(--text); }
.post-action.liked { color: var(--danger); }
.post-action.reposted { color: var(--success); }
.post-action svg { width: 18px; height: 18px; }

/* ──────────────────────────────────────────────────────────────────────────
   App shell layout
   ────────────────────────────────────────────────────────────────────────── */

.shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 340px;
  max-width: 1280px;
  margin: 0 auto;
  min-height: 100vh;
}

@media (max-width: 1100px) {
  .shell { grid-template-columns: 80px minmax(0, 1fr) 0; }
  .shell aside.trending { display: none; }
  .sidebar .nav-label { display: none; }
  .sidebar .brand-text { display: none; }
  .sidebar .compose-label { display: none; }
  .sidebar .user-meta { display: none; }
}

@media (max-width: 640px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-right: 1px solid var(--border);
}

.sidebar .brand { padding: 8px 12px 16px; font-size: 22px; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  transition: background 0.12s ease;
}
.nav-item:hover { background: var(--surface-hover); }
.nav-item.active { font-weight: 700; }
.nav-item svg { width: 22px; height: 22px; flex-shrink: 0; }

.compose-button {
  margin-top: 10px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: white;
  font-weight: 600;
  padding: 14px 18px;
  border-radius: var(--radius-full);
  transition: background 0.12s ease, transform 0.12s ease;
}
.compose-button:hover { background: var(--accent-hover); transform: translateY(-1px); }

.sidebar-user {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius-full);
  transition: background 0.12s ease;
}
.sidebar-user:hover { background: var(--surface-hover); }
.sidebar-user .user-meta {
  flex: 1;
  min-width: 0;
}
.sidebar-user .name {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-user .handle {
  font-size: 13px;
  color: var(--text-muted);
}

.feed-column {
  border-right: 1px solid var(--border);
  min-width: 0;
}

.feed-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}

.feed-tabs {
  display: flex;
}
.feed-tab {
  flex: 1;
  padding: 18px 0;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  transition: background 0.12s ease, color 0.12s ease;
}
.feed-tab:hover { background: var(--surface-hover); color: var(--text); }
.feed-tab.active { color: var(--text); font-weight: 700; }
.feed-tab.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px 2px 0 0;
}

aside.trending {
  padding: 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  border-left: 0;
}

.trending-card {
  background: var(--bg-tint);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}
.trending-card h3 {
  font-size: 18px;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.now-listening {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.now-listening:last-child { border-bottom: 0; }
.now-listening .info { flex: 1; min-width: 0; }
.now-listening .info .name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now-listening .info .desc { font-size: 13px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.search-box {
  position: relative;
  margin-bottom: 16px;
}
.search-box input {
  width: 100%;
  height: 44px;
  padding: 0 16px 0 44px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-tint);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.search-box input:focus { border-color: var(--accent); background: var(--bg-elevated); }
.search-box svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

.suggest-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
}
.suggest-user .info { flex: 1; min-width: 0; }
.suggest-user .name { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.suggest-user .handle { font-size: 13px; color: var(--text-muted); }

/* ──────────────────────────────────────────────────────────────────────────
   Landing / marketing
   ────────────────────────────────────────────────────────────────────────── */

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.landing-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.landing-nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--text-muted);
}
.landing-nav-links a { transition: color 0.12s ease; }
.landing-nav-links a:hover { color: var(--text); }

.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 32px 64px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding-top: 56px; }
}

.hero-text .eyebrow { margin-bottom: 20px; display: inline-block; }
.hero-text p {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 24px 0 32px;
  max-width: 520px;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.phone-frame {
  width: 320px;
  border-radius: 44px;
  background: var(--text);
  padding: 12px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.phone-frame::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: var(--text);
  border-radius: 0 0 16px 16px;
  z-index: 2;
}
.phone-screen {
  background: var(--bg-elevated);
  border-radius: 32px;
  overflow: hidden;
  aspect-ratio: 9 / 19.5;
  position: relative;
  display: flex;
  flex-direction: column;
}

.feature-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 800px) {
  .feature-grid { grid-template-columns: 1fr; padding: 56px 32px; }
}

.feature {
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
}
.feature .icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature h3 {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.feature p { color: var(--text-muted); font-size: 15px; line-height: 1.5; }

.testimonial-strip {
  background: var(--text);
  color: var(--bg);
  padding: 96px 32px;
}
.testimonial-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.testimonial-inner blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.testimonial-inner cite {
  display: block;
  margin-top: 24px;
  font-style: normal;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.02em;
}

.landing-footer {
  border-top: 1px solid var(--border);
  padding: 48px 32px 32px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: var(--text-muted);
}
.landing-footer-links { display: flex; gap: 28px; }
.landing-footer-links a:hover { color: var(--text); }

/* ──────────────────────────────────────────────────────────────────────────
   Auth / login
   ────────────────────────────────────────────────────────────────────────── */

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 800px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-page .auth-art { display: none; }
}

.auth-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
}
.auth-form {
  width: 100%;
  max-width: 360px;
}
.auth-form .brand { margin-bottom: 48px; }
.auth-form h1 { margin-bottom: 8px; }
.auth-form > p { color: var(--text-muted); margin-bottom: 32px; }

.oauth-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 52px;
  margin-bottom: 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  transition: background 0.12s ease, transform 0.12s ease;
}
.oauth-button:hover { background: var(--surface-hover); transform: translateY(-1px); }
.oauth-button.apple { background: var(--text); color: var(--bg); border-color: var(--text); }
.oauth-button.apple:hover { background: var(--text); opacity: 0.92; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0;
  color: var(--text-faint);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.legal {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 32px;
  line-height: 1.6;
}
.legal a { text-decoration: underline; text-underline-offset: 2px; }

.auth-art {
  background: var(--text);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  position: relative;
  overflow: hidden;
}
.auth-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(255, 120, 73, 0.4), transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(255, 120, 73, 0.2), transparent 50%);
}
.auth-quote {
  position: relative;
  max-width: 420px;
}
.auth-quote .eyebrow { color: var(--accent); }
.auth-quote blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2rem;
  line-height: 1.25;
  margin-top: 20px;
  letter-spacing: -0.01em;
}
.auth-quote cite {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  font-style: normal;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

/* ──────────────────────────────────────────────────────────────────────────
   Post detail
   ────────────────────────────────────────────────────────────────────────── */

.detail {
  max-width: 680px;
  margin: 0 auto;
  padding: 24px 32px 80px;
}

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  transition: color 0.12s ease;
}
.detail-back:hover { color: var(--text); }

.detail-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.detail-author .name {
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.detail-author .handle {
  color: var(--text-muted);
  font-size: 14px;
}

.detail-caption {
  font-size: 19px;
  line-height: 1.45;
  margin-bottom: 18px;
  letter-spacing: -0.005em;
}

.detail-meta {
  display: flex;
  gap: 18px;
  padding: 20px 0;
  margin: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
}
.detail-meta strong { color: var(--text); font-weight: 700; margin-right: 4px; }

.reply-composer {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.reply-composer .composer-inputs {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.reply-composer textarea {
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  resize: none;
  outline: none;
  color: var(--text);
  min-height: 60px;
}
.reply-composer textarea::placeholder { color: var(--text-muted); }
.reply-composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.reply-composer-tools {
  display: flex;
  gap: 6px;
  color: var(--accent);
}
.reply-composer-tools .btn-icon { color: var(--accent); }
.reply-composer-tools .btn-icon:hover { background: var(--accent-soft); }

.reply {
  display: flex;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.reply-body { flex: 1; min-width: 0; }
.reply-header {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 14px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.reply-author { font-weight: 600; }
.reply-handle, .reply-time { color: var(--text-muted); }
.reply-text { font-size: 15px; line-height: 1.5; }

/* ──────────────────────────────────────────────────────────────────────────
   Profile
   ────────────────────────────────────────────────────────────────────────── */

.profile-banner {
  height: 220px;
  background: linear-gradient(135deg, #ff7849, #ffb380, #ffd5b8);
  position: relative;
}
.profile-header {
  padding: 0 24px 24px;
  border-bottom: 1px solid var(--border);
}
.profile-header-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: -56px;
  margin-bottom: 20px;
}
.profile-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.profile-handle {
  color: var(--text-muted);
  font-size: 15px;
  margin-top: 2px;
}
.profile-bio {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.5;
  max-width: 560px;
}
.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-muted);
}
.profile-meta span { display: inline-flex; align-items: center; gap: 6px; }
.profile-meta svg { width: 16px; height: 16px; }
.profile-meta a { color: var(--accent); }
.profile-meta a:hover { text-decoration: underline; }

.profile-stats {
  display: flex;
  gap: 24px;
  margin-top: 16px;
  font-size: 14px;
}
.profile-stats span strong {
  font-weight: 700;
  color: var(--text);
  margin-right: 4px;
}
.profile-stats span { color: var(--text-muted); }

.profile-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  position: sticky;
  top: 0;
  z-index: 5;
}
.profile-tab {
  flex: 1;
  padding: 16px 0;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  transition: color 0.12s ease, background 0.12s ease;
}
.profile-tab:hover { color: var(--text); background: var(--surface-hover); }
.profile-tab.active { color: var(--text); font-weight: 700; }
.profile-tab.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px 2px 0 0;
}

/* ──────────────────────────────────────────────────────────────────────────
   Record / compose
   ────────────────────────────────────────────────────────────────────────── */

.record-overlay {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 48px 24px;
}

.record-panel {
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.record-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}
.record-status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.record-timer {
  font-family: var(--font-mono);
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  font-variant-numeric: tabular-nums;
}

.live-waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 100px;
  margin-bottom: 40px;
}
.live-waveform .bar {
  width: 4px;
  background: var(--accent);
  border-radius: 2px;
  animation: live-bar 1.2s ease-in-out infinite;
}
@keyframes live-bar {
  0%, 100% { height: 12%; }
  50% { height: 80%; }
}

.record-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}

.record-stop {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 40px -8px rgba(255, 120, 73, 0.5);
  transition: transform 0.15s ease;
}
.record-stop:hover { transform: scale(1.05); }
.record-stop svg { width: 32px; height: 32px; }

.record-caption {
  width: 100%;
  min-height: 80px;
  margin-top: 8px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-tint);
  font: inherit;
  font-size: 15px;
  resize: vertical;
  outline: none;
  color: var(--text);
}
.record-caption:focus { border-color: var(--accent); background: var(--bg-elevated); }

.record-toolbar {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.record-toolbar .btn-icon { color: var(--accent); background: var(--accent-soft); }

/* ──────────────────────────────────────────────────────────────────────────
   Notifications
   ────────────────────────────────────────────────────────────────────────── */

.notif-group {
  padding: 12px 24px 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  background: var(--bg-tint);
  border-bottom: 1px solid var(--border);
}

.notif {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  transition: background 0.12s ease;
  position: relative;
}
.notif:hover { background: var(--surface-hover); }
.notif.unread::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.notif-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
}
.notif-icon.like { background: var(--danger); }
.notif-icon.reply { background: var(--accent); }
.notif-icon.follow { background: var(--success); }
.notif-icon.repost { background: var(--tick-blue); }
.notif-icon.mention { background: var(--text); }
.notif-icon svg { width: 18px; height: 18px; }

.notif-body { flex: 1; min-width: 0; }
.notif-body .text { font-size: 14px; line-height: 1.45; }
.notif-body .text strong { font-weight: 700; }
.notif-body .preview {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notif-body .time { margin-top: 4px; font-size: 12px; color: var(--text-faint); }

/* ──────────────────────────────────────────────────────────────────────────
   Mockup index
   ────────────────────────────────────────────────────────────────────────── */

.mockup-index {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 32px 96px;
}
.mockup-index header { margin-bottom: 48px; }
.mockup-index .grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.mockup-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  background: var(--bg-elevated);
}
.mockup-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.mockup-card .preview {
  aspect-ratio: 16 / 10;
  background: var(--bg-tint);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.mockup-card .preview .swatch {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--bg-tint), var(--bg-elevated));
}
.mockup-card .meta {
  padding: 18px 20px;
}
.mockup-card .meta h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.mockup-card .meta p { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ──────────────────────────────────────────────────────────────────────────
   Utilities
   ────────────────────────────────────────────────────────────────────────── */

.hidden { display: none; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.mt-4 { margin-top: 16px; }
