/* ============================================================
   Daily Sip — Global Styles
   ============================================================ */

/* --- Variables --- */
:root {
  --bg: #f5f4ed;
  --bg-elevated: #faf9f5;
  --bg-white: #ffffff;
  --text-primary: #141413;
  --text-secondary: #5e5d59;
  --text-tertiary: #87867f;
  --text-dark-surface: #b0aea5;
  --accent: #c96442;
  --accent-light: #d97757;
  --border: #f0eee6;
  --border-warm: #e8e6dc;
  --sand: #e8e6dc;
  --dark: #141413;
  --dark-surface: #30302e;
  --ring: #d1cfc5;
  --shadow: rgba(0,0,0,0.05);
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 500;
  line-height: 1.15;
}

/* ============================================================
   Layout
   ============================================================ */

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   Nav — Home (wide)
   ============================================================ */

.nav--home {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 244, 237, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav--home .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* ============================================================
   Nav — Inner pages (narrow)
   ============================================================ */

.nav--inner {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(245, 244, 237, 0.9);
  backdrop-filter: blur(12px);
  z-index: 10;
}

.nav--inner .nav-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ============================================================
   Nav — Shared
   ============================================================ */

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Georgia, serif;
  font-weight: 500;
}

.nav--inner .nav-logo {
  font-size: 1rem;
  gap: 4px;
}

.nav--home .nav-logo {
  font-size: 1.25rem;
}

.nav-logo span { font-size: 1.4rem; }
.nav--inner .nav-logo span { font-size: inherit; margin-right: 4px; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--accent);
  color: var(--bg-elevated);
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.2s;
}

.nav-cta:hover { background: var(--accent-light); }

/* Nav mini player (hidden by default, shown when main player scrolls out) */
.nav-mini-player {
  display: flex;
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.92);
  border-radius: 20px;
  padding: 4px 12px 4px 4px;
  height: 32px;
  color: #fff;
  z-index: 101;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-mini-player.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-mini-play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-mini-wave {
  display: flex;
  align-items: center;
  gap: 1.5px;
  height: 16px;
  cursor: pointer;
}

.nav-mini-wave span {
  display: block;
  width: 2px;
  border-radius: 1px;
  background: rgba(255,255,255,0.35);
}

.nav-mini-wave span.played {
  background: rgba(255,255,255,1);
}

.nav-mini-time {
  font-size: 11px;
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.7);
  min-width: 28px;
  text-align: right;
}

.nav-back {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
}

.nav-back:hover { color: var(--accent); }

/* ============================================================
   Prose links
   ============================================================ */

main a.link {
  color: var(--accent);
}

/* ============================================================
   Inner page layout
   ============================================================ */

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

main h1 {
  font-family: Georgia, serif;
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.updated {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-top: 64px;
}

main h2 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 12px;
}

main p, main li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

main ul { padding-left: 20px; }
main li { margin-bottom: 8px; }

/* ============================================================
   Footer
   ============================================================ */

footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

footer p {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

footer a {
  color: var(--text-tertiary);
  text-decoration: none;
}

footer a:hover { color: var(--accent); }

.footer-logo {
  font-family: Georgia, serif;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.footer-links {
  margin-top: 8px;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--accent);
  color: var(--bg-elevated);
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 0 0 1px var(--accent);
}

.btn-primary:hover { background: var(--accent-light); transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--bg-white);
  color: var(--text-primary);
  border: 1px solid var(--border-warm);
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover { border-color: var(--ring); box-shadow: 0 0 0 1px var(--ring); }

/* Elastic click animation */
@keyframes elastic-click {
  0%   { transform: scale(1); }
  30%  { transform: scale(0.92); }
  50%  { transform: scale(1.05); }
  70%  { transform: scale(0.98); }
  85%  { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.btn-secondary.elastic {
  animation: elastic-click 0.5s ease-out;
}

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* ============================================================
   Home — Hero
   ============================================================ */

.hero {
  padding: 100px 0 80px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--bg-white);
  border: 1px solid var(--border-warm);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.hero-badge .dot {
  width: 8px; height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero h1 .highlight {
  color: var(--accent);
}

.hero p {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   Home — Voice Bubble (preview-card player)
   ============================================================ */

.preview-voice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.preview-voice-col {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.preview-voice-spacer {
  flex: 1;
}

.preview-voice-spacer.grow-2 {
  flex: 2;
}

.preview-voice-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.02em;
}

.voice-bubble {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 12px;
  background: var(--accent);
  border-radius: 18px 18px 4px 18px;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.15s;
}

.voice-bubble:hover { opacity: 0.9; }

.voice-bubble-play {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.25);
  color: var(--bg-elevated);
  border-radius: 50%;
  flex-shrink: 0;
  transition: background 0.15s;
}

.voice-bubble.playing .voice-bubble-play {
  background: rgba(255,255,255,0.4);
}

.voice-bubble-wave {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 26px;
  cursor: pointer;
}

.voice-bubble-wave span {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.4);
  transition: background 0.1s;
}

/* Played portion — filled white */
.voice-bubble-wave span.played {
  background: rgba(255,255,255,1);
}

/* Wave bar bounce on play */
.voice-bubble.wave-bounce .voice-bubble-wave span {
  animation: waveBounce 0.4s ease-out;
}
.voice-bubble.wave-bounce .voice-bubble-wave span:nth-child(1)  { animation-delay: 0.00s; }
.voice-bubble.wave-bounce .voice-bubble-wave span:nth-child(2)  { animation-delay: 0.02s; }
.voice-bubble.wave-bounce .voice-bubble-wave span:nth-child(3)  { animation-delay: 0.04s; }
.voice-bubble.wave-bounce .voice-bubble-wave span:nth-child(4)  { animation-delay: 0.06s; }
.voice-bubble.wave-bounce .voice-bubble-wave span:nth-child(5)  { animation-delay: 0.08s; }
.voice-bubble.wave-bounce .voice-bubble-wave span:nth-child(6)  { animation-delay: 0.10s; }
.voice-bubble.wave-bounce .voice-bubble-wave span:nth-child(7)  { animation-delay: 0.12s; }
.voice-bubble.wave-bounce .voice-bubble-wave span:nth-child(8)  { animation-delay: 0.14s; }
.voice-bubble.wave-bounce .voice-bubble-wave span:nth-child(9)  { animation-delay: 0.16s; }
.voice-bubble.wave-bounce .voice-bubble-wave span:nth-child(10) { animation-delay: 0.18s; }
.voice-bubble.wave-bounce .voice-bubble-wave span:nth-child(11) { animation-delay: 0.20s; }
.voice-bubble.wave-bounce .voice-bubble-wave span:nth-child(12) { animation-delay: 0.22s; }
.voice-bubble.wave-bounce .voice-bubble-wave span:nth-child(13) { animation-delay: 0.24s; }
.voice-bubble.wave-bounce .voice-bubble-wave span:nth-child(14) { animation-delay: 0.26s; }
.voice-bubble.wave-bounce .voice-bubble-wave span:nth-child(15) { animation-delay: 0.28s; }
.voice-bubble.wave-bounce .voice-bubble-wave span:nth-child(16) { animation-delay: 0.30s; }
.voice-bubble.wave-bounce .voice-bubble-wave span:nth-child(17) { animation-delay: 0.32s; }
.voice-bubble.wave-bounce .voice-bubble-wave span:nth-child(18) { animation-delay: 0.34s; }
.voice-bubble.wave-bounce .voice-bubble-wave span:nth-child(19) { animation-delay: 0.36s; }
.voice-bubble.wave-bounce .voice-bubble-wave span:nth-child(20) { animation-delay: 0.38s; }
.voice-bubble.wave-bounce .voice-bubble-wave span:nth-child(21) { animation-delay: 0.40s; }
.voice-bubble.wave-bounce .voice-bubble-wave span:nth-child(22) { animation-delay: 0.42s; }
.voice-bubble.wave-bounce .voice-bubble-wave span:nth-child(23) { animation-delay: 0.44s; }
.voice-bubble.wave-bounce .voice-bubble-wave span:nth-child(24) { animation-delay: 0.46s; }
.voice-bubble.wave-bounce .voice-bubble-wave span:nth-child(25) { animation-delay: 0.48s; }
.voice-bubble.wave-bounce .voice-bubble-wave span:nth-child(26) { animation-delay: 0.50s; }
.voice-bubble.wave-bounce .voice-bubble-wave span:nth-child(27) { animation-delay: 0.52s; }
.voice-bubble.wave-bounce .voice-bubble-wave span:nth-child(28) { animation-delay: 0.54s; }
.voice-bubble.wave-bounce .voice-bubble-wave span:nth-child(29) { animation-delay: 0.56s; }
.voice-bubble.wave-bounce .voice-bubble-wave span:nth-child(30) { animation-delay: 0.58s; }

@keyframes waveBounce {
  0%   { transform: scaleY(1); }
  30%  { transform: scaleY(1.6); }
  60%  { transform: scaleY(0.7); }
  100% { transform: scaleY(1); }
}



/* Varying heights to simulate a waveform */
.voice-bubble-wave span:nth-child(1)  { height: 30%; }
.voice-bubble-wave span:nth-child(2)  { height: 55%; }
.voice-bubble-wave span:nth-child(3)  { height: 80%; }
.voice-bubble-wave span:nth-child(4)  { height: 45%; }
.voice-bubble-wave span:nth-child(5)  { height: 95%; }
.voice-bubble-wave span:nth-child(6)  { height: 60%; }
.voice-bubble-wave span:nth-child(7)  { height: 100%; }
.voice-bubble-wave span:nth-child(8)  { height: 70%; }
.voice-bubble-wave span:nth-child(9)  { height: 40%; }
.voice-bubble-wave span:nth-child(10) { height: 85%; }
.voice-bubble-wave span:nth-child(11) { height: 50%; }
.voice-bubble-wave span:nth-child(12) { height: 90%; }
.voice-bubble-wave span:nth-child(13) { height: 35%; }
.voice-bubble-wave span:nth-child(14) { height: 65%; }
.voice-bubble-wave span:nth-child(15) { height: 75%; }
.voice-bubble-wave span:nth-child(16) { height: 100%; }
.voice-bubble-wave span:nth-child(17) { height: 45%; }
.voice-bubble-wave span:nth-child(18) { height: 80%; }
.voice-bubble-wave span:nth-child(19) { height: 55%; }
.voice-bubble-wave span:nth-child(20) { height: 95%; }
.voice-bubble-wave span:nth-child(21) { height: 30%; }
.voice-bubble-wave span:nth-child(22) { height: 70%; }
.voice-bubble-wave span:nth-child(23) { height: 85%; }
.voice-bubble-wave span:nth-child(24) { height: 40%; }
.voice-bubble-wave span:nth-child(25) { height: 60%; }
.voice-bubble-wave span:nth-child(26) { height: 90%; }
.voice-bubble-wave span:nth-child(27) { height: 50%; }
.voice-bubble-wave span:nth-child(28) { height: 75%; }
.voice-bubble-wave span:nth-child(29) { height: 35%; }
.voice-bubble-wave span:nth-child(30) { height: 65%; }

/* Mini player wave bar heights */
.nav-mini-wave span:nth-child(1)  { height: 30%; }
.nav-mini-wave span:nth-child(2)  { height: 55%; }
.nav-mini-wave span:nth-child(3)  { height: 80%; }
.nav-mini-wave span:nth-child(4)  { height: 45%; }
.nav-mini-wave span:nth-child(5)  { height: 95%; }
.nav-mini-wave span:nth-child(6)  { height: 60%; }
.nav-mini-wave span:nth-child(7)  { height: 100%; }
.nav-mini-wave span:nth-child(8)  { height: 70%; }
.nav-mini-wave span:nth-child(9)  { height: 40%; }
.nav-mini-wave span:nth-child(10) { height: 85%; }
.nav-mini-wave span:nth-child(11) { height: 50%; }
.nav-mini-wave span:nth-child(12) { height: 90%; }
.nav-mini-wave span:nth-child(13) { height: 35%; }
.nav-mini-wave span:nth-child(14) { height: 65%; }
.nav-mini-wave span:nth-child(15) { height: 75%; }
.nav-mini-wave span:nth-child(16) { height: 100%; }
.nav-mini-wave span:nth-child(17) { height: 45%; }
.nav-mini-wave span:nth-child(18) { height: 80%; }
.nav-mini-wave span:nth-child(19) { height: 55%; }
.nav-mini-wave span:nth-child(20) { height: 95%; }
.nav-mini-wave span:nth-child(21) { height: 30%; }
.nav-mini-wave span:nth-child(22) { height: 70%; }
.nav-mini-wave span:nth-child(23) { height: 85%; }
.nav-mini-wave span:nth-child(24) { height: 40%; }
.nav-mini-wave span:nth-child(25) { height: 60%; }
.nav-mini-wave span:nth-child(26) { height: 90%; }
.nav-mini-wave span:nth-child(27) { height: 50%; }
.nav-mini-wave span:nth-child(28) { height: 75%; }
.nav-mini-wave span:nth-child(29) { height: 35%; }
.nav-mini-wave span:nth-child(30) { height: 65%; }

/* Mini player wave bar bounce on play */
.nav-mini-player.wave-bounce .nav-mini-wave span {
  animation: waveBounce 0.4s ease-out;
}
.nav-mini-player.wave-bounce .nav-mini-wave span:nth-child(1)  { animation-delay: 0.00s; }
.nav-mini-player.wave-bounce .nav-mini-wave span:nth-child(2)  { animation-delay: 0.02s; }
.nav-mini-player.wave-bounce .nav-mini-wave span:nth-child(3)  { animation-delay: 0.04s; }
.nav-mini-player.wave-bounce .nav-mini-wave span:nth-child(4)  { animation-delay: 0.06s; }
.nav-mini-player.wave-bounce .nav-mini-wave span:nth-child(5)  { animation-delay: 0.08s; }
.nav-mini-player.wave-bounce .nav-mini-wave span:nth-child(6)  { animation-delay: 0.10s; }
.nav-mini-player.wave-bounce .nav-mini-wave span:nth-child(7)  { animation-delay: 0.12s; }
.nav-mini-player.wave-bounce .nav-mini-wave span:nth-child(8)  { animation-delay: 0.14s; }
.nav-mini-player.wave-bounce .nav-mini-wave span:nth-child(9)  { animation-delay: 0.16s; }
.nav-mini-player.wave-bounce .nav-mini-wave span:nth-child(10) { animation-delay: 0.18s; }
.nav-mini-player.wave-bounce .nav-mini-wave span:nth-child(11) { animation-delay: 0.20s; }
.nav-mini-player.wave-bounce .nav-mini-wave span:nth-child(12) { animation-delay: 0.22s; }
.nav-mini-player.wave-bounce .nav-mini-wave span:nth-child(13) { animation-delay: 0.24s; }
.nav-mini-player.wave-bounce .nav-mini-wave span:nth-child(14) { animation-delay: 0.26s; }
.nav-mini-player.wave-bounce .nav-mini-wave span:nth-child(15) { animation-delay: 0.28s; }
.nav-mini-player.wave-bounce .nav-mini-wave span:nth-child(16) { animation-delay: 0.30s; }
.nav-mini-player.wave-bounce .nav-mini-wave span:nth-child(17) { animation-delay: 0.32s; }
.nav-mini-player.wave-bounce .nav-mini-wave span:nth-child(18) { animation-delay: 0.34s; }
.nav-mini-player.wave-bounce .nav-mini-wave span:nth-child(19) { animation-delay: 0.36s; }
.nav-mini-player.wave-bounce .nav-mini-wave span:nth-child(20) { animation-delay: 0.38s; }
.nav-mini-player.wave-bounce .nav-mini-wave span:nth-child(21) { animation-delay: 0.40s; }
.nav-mini-player.wave-bounce .nav-mini-wave span:nth-child(22) { animation-delay: 0.42s; }
.nav-mini-player.wave-bounce .nav-mini-wave span:nth-child(23) { animation-delay: 0.44s; }
.nav-mini-player.wave-bounce .nav-mini-wave span:nth-child(24) { animation-delay: 0.46s; }
.nav-mini-player.wave-bounce .nav-mini-wave span:nth-child(25) { animation-delay: 0.48s; }
.nav-mini-player.wave-bounce .nav-mini-wave span:nth-child(26) { animation-delay: 0.50s; }
.nav-mini-player.wave-bounce .nav-mini-wave span:nth-child(27) { animation-delay: 0.52s; }
.nav-mini-player.wave-bounce .nav-mini-wave span:nth-child(28) { animation-delay: 0.54s; }
.nav-mini-player.wave-bounce .nav-mini-wave span:nth-child(29) { animation-delay: 0.56s; }
.nav-mini-player.wave-bounce .nav-mini-wave span:nth-child(30) { animation-delay: 0.58s; }

.voice-bubble-time {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.85);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  min-width: 28px;
  text-align: right;
}

/* Hide native audio */
.voice-bubble audio { display: none; }

/* ============================================================
   Home — Preview
   ============================================================ */

.preview {
  padding: 0 0 100px;
}

.preview-card {
  background: var(--dark);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  overflow: hidden;
}

.preview-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--dark-surface);
}

.preview-dots {
  display: flex;
  gap: 6px;
}

.preview-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--dark-surface);
}

.preview-dots span:first-child { background: #ef4444; }
.preview-dots span:nth-child(2) { background: #eab308; }
.preview-dots span:last-child { background: #22c55e; }

.preview-title {
  color: var(--text-dark-surface);
  font-size: 0.85rem;
  margin-left: 8px;
}

.preview-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.preview-content > div:last-child {
  display: flex;
  flex-direction: column;
}

.preview-briefing {
  color: var(--text-dark-surface);
  font-size: 0.9rem;
  line-height: 1.7;
}

.preview-briefing h3 {
  color: var(--bg-elevated);
  font-size: 1rem;
  margin-bottom: 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

.preview-briefing .story {
  padding: 10px 0;
  border-bottom: 1px solid var(--dark-surface);
}

.preview-briefing .story:last-child { border-bottom: none; }
.preview-briefing .story .medal { margin-right: 6px; }
.preview-briefing .story .title { color: var(--bg-elevated); font-weight: 500; }
.preview-briefing .story .meta { color: var(--text-tertiary); font-size: 0.8rem; margin-top: 4px; }

.preview-lang-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: start;
}

.preview-lang-list {
  font-size: 0.9rem;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  line-height: 1.6;
  text-align: center;
  margin-top: 16px;
}

.lang-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--dark-surface);
  border-radius: 8px;
  color: var(--bg-elevated);
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.06);
}

.lang-chip .flag { font-size: 1rem; }

/* ============================================================
   Home — Features
   ============================================================ */

.features {
  padding: 100px 0;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 56px;
  line-height: 1.7;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.2s;
}

.feature-card:hover {
  box-shadow: 0 0 0 1px var(--ring), 0 4px 24px var(--shadow);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 20px;
  display: block;
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   Home — How It Works
   ============================================================ */

.how-it-works {
  padding: 100px 0;
  background: var(--bg-white);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 56px;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sand);
  color: var(--text-primary);
  font-family: Georgia, serif;
  font-size: 1.3rem;
  font-weight: 500;
  border-radius: 16px;
  margin: 0 auto 24px;
  box-shadow: 0 0 0 1px var(--border-warm);
}

.step h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

.step p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.step-arrow {
  position: absolute;
  right: -32px;
  top: 28px;
  color: var(--border-warm);
  font-size: 1.5rem;
}

/* ============================================================
   Home — Languages
   ============================================================ */

.languages {
  padding: 100px 0;
}

.lang-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.lang-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  transition: all 0.2s;
}

.lang-card:hover {
  box-shadow: 0 0 0 1px var(--ring);
  transform: translateY(-2px);
}

.lang-card .flag { font-size: 2.2rem; display: block; margin-bottom: 10px; }
.lang-card .name { font-weight: 500; font-size: 1rem; margin-bottom: 4px; }
.lang-card .label { font-size: 0.8rem; color: var(--text-tertiary); }

/* ============================================================
   Home — CTA
   ============================================================ */

.cta-dark {
  padding: 100px 0;
  background: var(--dark);
  text-align: center;
}

.cta-dark h2 {
  color: var(--bg-elevated);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 16px;
}

.cta-dark p {
  color: var(--text-dark-surface);
  font-size: 1.1rem;
  max-width: 480px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.cta-dark .btn-primary {
  font-size: 1.05rem;
  padding: 16px 32px;
}

/* ============================================================
   Stats — Hero
   ============================================================ */

.stats-hero {
  text-align: center;
  padding: 48px 0 0;
  margin-bottom: 40px;
}

.stats-hero h1 {
  font-family: Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.stats-hero .tagline {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
}

.stats-hero .week-badge {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--text-tertiary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 100px;
  margin-top: 12px;
}

.stats-hero .insight-line {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 10px;
  font-style: italic;
}

/* ============================================================
   Stats — Article Cards
   ============================================================ */

.article-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.article-card {
  display: block;
  position: relative;
  padding: 20px 20px 20px 56px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.article-card:hover {
  border-color: var(--ring);
  box-shadow: 0 4px 20px var(--shadow);
  transform: translateY(-1px);
}

.article-card:active {
  transform: translateY(0);
}

.article-card .rank {
  position: absolute;
  left: 20px;
  top: 22px;
  font-family: Georgia, serif;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
  width: 24px;
  text-align: center;
}

.article-card .title {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 8px;
  transition: color 0.2s ease;
}

.article-card:hover .title {
  color: var(--accent);
}

.article-card .meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  line-height: 1.4;
}

.article-card .meta .source {
  font-weight: 500;
  color: var(--text-secondary);
}

.article-card .meta .sep {
  color: var(--border-warm);
  user-select: none;
}

.topic-pill {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 2px 8px;
  border-radius: 10px;
  line-height: 1.5;
  white-space: nowrap;
}

.topic-pill.ai       { background: #f0e8fe; color: #6b3fa0; }
.topic-pill.dev      { background: #e6f7ec; color: #1e7a3e; }
.topic-pill.apple    { background: #f0f0f2; color: #555; }
.topic-pill.creative { background: #fce4f0; color: #a0306a; }
.topic-pill.finance  { background: #fef3e0; color: #b45309; }
.topic-pill.tech     { background: #e8f0fe; color: #1a56db; }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 768px) {
  .hero { padding: 60px 0 60px; }
  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .step-arrow { display: none; }
  .lang-grid { grid-template-columns: repeat(2, 1fr); }
  .preview-content { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  main { padding: 48px 20px 72px; }
  main h1 { font-size: 1.6rem; }
  .lang-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .feature-card { padding: 24px; }

  /* Mini player: bottom-left pill on mobile (avoids nav overlap) */
  .nav-mini-player {
    top: auto;
    bottom: 16px;
    left: 16px;
    right: 16px;
    transform: translateY(10px);
    border-radius: 16px;
    padding: 6px 12px 6px 6px;
    height: 36px;
  }
  .nav-mini-player.visible {
    transform: translateY(0);
  }
  .nav-mini-wave {
    flex: 1;
    gap: 2px;
    overflow: hidden;
  }
  .nav-mini-wave span {
    flex: 1;
    min-width: 0;
  }
  .nav-mini-time {
    min-width: 32px;
    font-size: 12px;
  }

  /* Stats — article cards mobile */
  .stats-hero h1 { font-size: 1.625rem; }
  .article-card { padding: 16px 16px 16px 48px; }
  .article-card .rank { left: 16px; font-size: 1rem; }
  .article-card .title { font-size: 0.95rem; }
}
