/* ─── v2 — Hero, Streak, KPIs, Pillars, Social proof, Discreet mode ─── */

/* HERO OF THE DAY */
.hero-day {
  background: var(--gradient);
  border-radius: var(--radius-card);
  padding: 18px 18px 16px;
  margin: 0 0 18px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(230,59,30,0.32);
  border: 1px solid rgba(255,255,255,0.10);
}
.hero-day::after {
  content: '';
  position: absolute;
  right: -32px; top: -32px;
  width: 160px; height: 160px;
  background: rgba(255,255,255,0.07);
  border-radius: 50%;
}
.hero-day .label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  opacity: 0.85;
  display: inline-flex; align-items: center; gap: 6px;
}
.hero-day .title {
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: 22px; line-height: 1.15;
  margin: 8px 0 6px;
  letter-spacing: -0.01em;
  position: relative; z-index: 1;
}
.hero-day .why { font-size: 13px; opacity: 0.92; margin: 0 0 14px; position: relative; z-index: 1; line-height: 1.4; }
.hero-day .meta { display: flex; align-items: center; gap: 14px; font-size: 12px; opacity: 0.92; margin-bottom: 14px; }
.hero-day .meta .chip {
  background: rgba(255,255,255,0.18); padding: 3px 10px; border-radius: 999px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px;
}
.hero-day .cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: #fff; color: var(--red);
  padding: 13px 22px; border-radius: 999px;
  font-weight: 800; font-size: 15px;
  font-family: var(--font-display); font-style: italic;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  position: relative; z-index: 1;
}
.hero-day .cta:hover { transform: translateY(-1px); }

/* STREAK CHIP */
.streak-bar {
  display: flex; align-items: center; gap: 10px;
  margin: 14px 0 10px;
  flex-wrap: wrap;
}
.streak-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary-soft);
  color: var(--orange);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700; font-size: 13px;
  border: 1px solid rgba(255,90,31,0.22);
  font-family: var(--font-display); font-style: italic;
}
.streak-chip .num { font-size: 16px; }
.streak-chip.muted { color: var(--muted); background: var(--surface-3); border-color: var(--border); }

/* MOOD ADAPTIVE TIP */
.mood-tip {
  background: var(--gradient-soft);
  border: 1px solid rgba(255,90,31,0.20);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 16px;
  display: flex; align-items: flex-start; gap: 10px;
  animation: tipIn 0.25s ease;
}
@keyframes tipIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.mood-tip .ic { font-size: 22px; color: var(--orange); flex-shrink: 0; }
.mood-tip .body { flex: 1; }
.mood-tip .body .lbl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--orange); }
.mood-tip .body .txt { font-size: 13px; color: var(--ink); margin-top: 2px; line-height: 1.4; }
.mood-tip a { color: var(--orange); font-weight: 700; }

/* PERSONAL EVOLUTION (Profile) */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
}
.kpi-card .lbl {
  font-size: 10px; color: var(--muted); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.kpi-card .val {
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: 26px;
  background: var(--gradient-90); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin: 4px 0 0;
}
.kpi-card .sub { font-size: 11px; color: var(--success); margin-top: 2px; font-weight: 600; }
.kpi-card .sub.down { color: var(--danger); }

.trend-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
.trend-card .head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.trend-card .head .t {
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: 14px; color: var(--ink);
}
.trend-card svg { display: block; width: 100%; height: 80px; }

/* SOCIAL PROOF */
.proof-row {
  display: flex; gap: 12px; overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin: 0 -20px 12px;
  padding: 2px 20px 10px;
  scrollbar-width: none;
}
.proof-row::-webkit-scrollbar { display: none; }
.proof-card {
  flex: 0 0 78%;
  max-width: 320px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  scroll-snap-align: start;
  box-shadow: var(--shadow-card);
}
.proof-card .stars { color: #FFB300; font-size: 13px; letter-spacing: 2px; }
.proof-card .text {
  font-style: italic; color: var(--ink); font-size: 13px;
  line-height: 1.5; margin: 8px 0 10px;
}
.proof-card .who { font-size: 12px; color: var(--muted); }
.proof-card .who .name { color: var(--ink); font-weight: 700; }

/* EXPLORE 3 PILLARS */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 18px 0 22px;
}
.pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 12px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.1s;
}
.pillar:hover { border-color: rgba(255,90,31,0.4); transform: translateY(-2px); }
.pillar .ic {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--primary-soft); color: var(--orange);
  display: grid; place-items: center; font-size: 20px;
  margin: 0 auto 8px;
}
.pillar .name {
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: 13px; color: var(--ink); margin-bottom: 2px;
}
.pillar .count { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* DUOLINGO PATH (Journey) */
.path {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; padding: 12px 0 24px; position: relative;
}
.path::before {
  content: ''; position: absolute;
  left: 50%; top: 0; bottom: 0; width: 3px;
  background: repeating-linear-gradient(to bottom, var(--surface-3) 0 8px, transparent 8px 14px);
  transform: translateX(-50%); z-index: 0;
}
.path-node {
  position: relative; z-index: 1;
  width: 70px; height: 70px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--border);
  display: grid; place-items: center;
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: 18px; color: var(--muted);
  transition: all 0.15s;
}
.path-node.done {
  background: var(--gradient); color: #fff; border-color: transparent;
  box-shadow: 0 6px 16px rgba(255,90,31,0.4);
}
.path-node.current {
  background: var(--surface); border-color: var(--orange);
  color: var(--orange); transform: scale(1.15);
  animation: pulseRing 2s ease-in-out infinite;
}
@keyframes pulseRing {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,90,31,0.4); }
  50% { box-shadow: 0 0 0 14px rgba(255,90,31,0); }
}
.path-node.milestone {
  width: 84px; height: 84px;
  background: linear-gradient(135deg, #FFD54F, #FFB300);
  color: #1E1F23; border-color: transparent;
}
.path-label {
  position: relative; z-index: 1;
  font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin: -2px 0 6px;
}

/* PAYWALL */
.paywall {
  background: var(--gradient);
  border-radius: var(--radius-card);
  padding: 18px;
  color: #fff;
  margin: 16px 0;
  box-shadow: 0 8px 24px rgba(230,59,30,0.32);
}
.paywall h3 {
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: 18px; margin: 0 0 6px;
}
.paywall p { font-size: 13px; opacity: 0.95; margin: 0 0 12px; line-height: 1.4; }
.paywall ul { margin: 0 0 14px; padding: 0; list-style: none; }
.paywall li {
  font-size: 13px; padding: 4px 0; padding-left: 22px;
  position: relative;
}
.paywall li::before {
  content: '✓'; position: absolute; left: 0;
  font-weight: 800; color: #fff;
}
.paywall .cta {
  display: block; text-align: center;
  background: #fff; color: var(--red);
  padding: 12px; border-radius: 999px;
  font-weight: 800; font-size: 14px;
  font-family: var(--font-display); font-style: italic;
  text-decoration: none;
}

/* DISCREET MODE */
body.discreet { filter: grayscale(0.4); }
body.discreet .km-logo img { opacity: 0.6; }
body.discreet * { transition: none !important; animation: none !important; }
body.discreet .hero-day { background: var(--graphite, #2B2D31); box-shadow: none; }
body.discreet .hero-day .cta { background: #4A4D55; color: #fff; }
body.discreet .streak-chip { background: rgba(255,255,255,0.06); color: var(--body); border-color: var(--border); }
body.discreet .cta-fixed,
body.discreet .flow-cta { background: #4A4D55 !important; box-shadow: none !important; }

/* CHAT CHIPS */
.chat-chips {
  padding: 12px 16px 0;
  display: flex; gap: 8px; flex-wrap: wrap;
}
.chat-chips .chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--ink);
  cursor: pointer;
}
.chat-chips .chip:hover { border-color: var(--orange); color: var(--orange); }

/* SPECIALIST SEAL */
.specialist-seal {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  margin: 14px 0;
  font-size: 12px;
  color: var(--muted);
}
.specialist-seal .ic {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary-soft); color: var(--orange);
  display: grid; place-items: center; font-size: 16px;
}
.specialist-seal strong { color: var(--ink); }
