/* ═══════════════════════════════════════
   JESTY EXPLORE — Alternative Homepage
   ═══════════════════════════════════════ */

:root {
  --bg: #FAF8F5;
  --bg-secondary: #F0EDEA;
  --bg-tertiary: #F5F3F0;
  --text: #1C1917;
  --text-secondary: #6B6560;
  --text-muted: #9C968F;
  --text-faint: #CCC7C2;
  --border: #DDD9D5;
  --btn-bg: #1C1917;
  --btn-text: #FAF8F5;
  --btn-hover: #292524;
  --accent: #A78BFA;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── Buttons ─── */
.x-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 28px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.x-btn-primary {
  background: var(--btn-bg);
  color: var(--btn-text);
  border-color: var(--btn-bg);
}
.x-btn-primary:hover {
  background: var(--btn-hover);
  transform: scale(1.03);
}

.x-btn-lg { padding: 16px 36px; font-size: 16px; }

/* ─── Section Primitives ─── */
.x-section-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.x-section-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 12px;
  text-align: center;
}

.x-section-title {
  font-size: 36px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  line-height: 1.2;
}

/* ═══════════════════════════════════════
   NAV ISLAND
   ═══════════════════════════════════════ */
.x-nav-island {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 6px 5px 8px;
  background: rgba(250, 248, 245, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.x-nav-block-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.x-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: var(--btn-bg);
}
.x-nav-icon img { width: 28px; height: 28px; object-fit: cover; }

.x-nav-acc-slots {
  display: flex;
  align-items: center;
  gap: 5px;
}

.x-nav-acc-mini {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}
.x-nav-acc-mini:empty { border-style: dashed; opacity: 0.4; }
.x-nav-acc-mini.equipped { border-color: var(--text-muted); opacity: 1; }
.x-nav-acc-mini svg { width: 18px; height: 18px; }

.x-nav-acc-add {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px dashed var(--text-faint);
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  padding: 0;
}
.x-nav-acc-add:hover { border-color: var(--text-muted); color: var(--text); }

.x-nav-spacer { width: 8px; flex-shrink: 0; }

.x-nav-cta {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 20px;
  background: var(--btn-bg);
  color: var(--btn-text);
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.x-nav-cta:hover { background: var(--btn-hover); }

/* ─── Accessories Dropdown ─── */
.x-acc-dropdown {
  position: fixed;
  top: 58px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  padding: 12px;
  width: auto;
  transform-origin: top center;
  animation: x-acc-drop-in 0.2s ease-out;
}
.x-acc-dropdown.hidden { display: none; }
.x-acc-dropdown.closing { animation: x-acc-drop-out 0.15s ease-in forwards; }

@keyframes x-acc-drop-in {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px) scale(0.96); }
  to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}
@keyframes x-acc-drop-out {
  from { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
  to { opacity: 0; transform: translateX(-50%) translateY(-6px) scale(0.96); }
}

.x-acc-grid { display: flex; gap: 4px; }

.x-acc-grid-btn {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  padding: 0;
}
.x-acc-grid-btn:hover { border-color: var(--text-muted); transform: scale(1.06); }
.x-acc-grid-btn.active { border-color: var(--text); background: var(--bg-secondary); }
.x-acc-grid-btn svg { width: 34px; height: 26px; }

.x-acc-reset { color: var(--text-muted); border-style: dashed; }
.x-acc-reset:hover { color: var(--text); }


/* ─── Color Picker ─── */
.x-color-picker {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  margin-top: 72px;
}

.x-color-swatch {
  border: none;
  background: none;
  border-radius: 12px;
  padding: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.x-color-swatch:hover { transform: scale(1.12); }
.x-color-swatch.active {
  border-color: var(--btn-bg);
  background: rgba(0,0,0,0.06);
}
.x-color-swatch svg { width: 46px; height: 44px; display: block; }

/* ═══════════════════════════════════════
   HERO
   ═══════════════════════════════════════ */
.x-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 40px 24px 60px;
  min-height: 100vh;
}

.x-hero-bg-word {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  font-family: 'Danfo', cursive;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--bg-word-color, var(--bg-secondary));
  line-height: 0.85;
  pointer-events: none;
  white-space: nowrap;
  display: flex;
  justify-content: center;
  z-index: 0;
  overflow: hidden;
}

.x-hero-bg-char {
  display: inline-block;
  will-change: transform;
  font-size: clamp(160px, 28vw, 500px);
  letter-spacing: 0.02em;
}

.x-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.x-hero-stage {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: visible;
  margin-bottom: 20px;
  z-index: 1;
}

.x-hero-character {
  position: absolute;
  bottom: 12px;
  left: 0;
  will-change: transform;
  z-index: 2;
}

#x-hero-face {
  display: block;
  overflow: visible;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.08));
}

.x-hero-floor {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 18px;
  background: rgba(0,0,0,0.06);
  border-radius: 50%;
  mix-blend-mode: multiply;
}

/* Roast notification stack */
.x-roast-notifs {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 280px;
}

.x-roast-notifs {
  cursor: pointer;
  transition: opacity 0.2s;
}
.x-roast-notifs:hover {
  opacity: 0.4;
}

.x-roast-notif {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.35;
}
.x-roast-notif:last-child { border-bottom: none; }

.x-hero-title {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.x-hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ═══════════════════════════════════════
   ROAST CARDS
   ═══════════════════════════════════════ */
.x-roast-section {
  position: relative;
  padding: 0;
  overflow: visible;
  margin-top: -180px;
  z-index: 2;
  pointer-events: none;
}

.x-roast-container {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: visible;
}

.x-roast-card {
  pointer-events: auto;
  position: absolute;
  width: 280px;
  z-index: 50;
  border-radius: 20px;
  overflow: hidden;
  background: #FFFDF9;
  border: 4px solid #F0EDEA;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  cursor: grab;
  user-select: none;
  touch-action: none;
  will-change: transform;
}
.x-roast-card.grabbing { cursor: grabbing; }

.x-roast-card-color {
  position: relative;
  padding: 32px 24px 48px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.x-roast-card-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #1C1917;
  text-align: center;
  line-height: 1.35;
  position: relative;
  z-index: 1;
}

.x-roast-card-face {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 1;
  pointer-events: none;
}
.x-roast-card-face svg { width: 40px; height: 46px; }

.x-roast-card-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
}

.x-roast-card-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1C1917;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.x-roast-card-avatar svg {
  display: block;
}

.x-roast-card-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  flex: 1;
}

.x-roast-card-pills {
  display: flex;
  gap: 4px;
}

.x-roast-card-pill {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: 3px 8px;
  border-radius: 10px;
  white-space: nowrap;
}

/* ═══════════════════════════════════════
   MOOD INTRO
   ═══════════════════════════════════════ */
.x-mood-intro {
  position: relative;
  padding: 40px 24px 100px;
  text-align: center;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.x-mood-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.x-mood-line {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--border);
}

.x-mood-line.x-mood-active {
  color: var(--text);
  transition: color 0.4s ease;
}

/* ═══════════════════════════════════════
   FEATURES
   ═══════════════════════════════════════ */
.x-features {
  position: relative;
  padding: 100px 24px;
  background: var(--bg);
}

.x-features-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}


/* 3-column feature grid */
.x-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.x-feature-card {
  background: var(--bg-secondary);
  border-radius: 14px;
  padding: 14px;
}

.x-feature-hero-card {
  background: var(--bg-secondary);
  border-radius: 16px;
  padding: 6px 14px 14px;
  margin-bottom: 8px;
  position: relative;
}

/* hero layout defined below with collapse logic */

/* ─── Mini Sidepanel Preview ─── */
.x-mini-panel {
  background: var(--bg);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 25%;
  flex-shrink: 0;
  margin-left: 14px;
  margin-top: 32px;
  transition: opacity 0.3s ease, width 0.4s ease, margin-left 0.4s ease;
}

.x-mini-panel-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 8px 10px 0;
  overflow: hidden;
}


.x-mini-panel-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 16px 0 8px;
}

.x-mini-panel-character {
  width: 110px;
  height: 102px;
}
.x-mini-panel-character svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.x-mini-panel-floor {
  width: 50px;
  height: 8px;
  background: rgba(0,0,0,0.05);
  border-radius: 50%;
  margin-top: -2px;
}

.x-mini-panel-comment {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  line-height: 1.3;
  min-height: 36px;
  padding: 0 8px;
  margin-bottom: 12px;
}

.x-mini-panel-focus {
  align-self: center;
  padding: 6px 18px;
  border-radius: 16px;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 12px;
}

.x-mini-panel-topbar {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 2px;
}

.x-mini-panel-level {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #EAB308;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 800;
  color: var(--text);
}

.x-mini-panel-acc-slot {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.x-mini-panel-acc-slot svg { width: 12px; height: 9px; }

.x-mini-panel-spacer-h { flex: 1; }

.x-mini-panel-settings {
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

/* Character crowd */
.x-mini-panel-crowd {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 8px 0 14px;
}

/* Section cards */
.x-mini-panel-section {
  background: var(--bg-tertiary);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 8px;
}

.x-mini-panel-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.x-mini-panel-section-title {
  font-size: 12px;
  font-weight: 700;
}
.x-mp-count { font-weight: 500; color: var(--text-muted); }
.x-mp-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }

.x-mini-panel-section-link {
  font-size: 10px;
  color: var(--text-muted);
}

.x-mini-panel-section-chip {
  font-size: 9px;
  font-weight: 600;
  color: #EAB308;
  background: rgba(234,179,8,0.1);
  padding: 2px 8px;
  border-radius: 8px;
}

/* Task rows */
.x-mini-panel-task {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--bg-secondary);
}
.x-mini-panel-task:last-of-type { border-bottom: none; }

.x-mini-panel-task-check {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  flex-shrink: 0;
  margin-top: 1px;
}

.x-mini-panel-task-name {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--text);
}
.x-mini-panel-task-meta {
  display: block;
  font-size: 9px;
  color: var(--text-muted);
}

.x-mini-panel-task-add {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 16px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  margin-top: 8px;
  background: none;
  text-align: center;
  width: auto;
}

.x-mini-panel-section > .x-mini-panel-task-add {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
}

.x-mini-panel-funzone {
  margin-bottom: 8px;
}

/* Game card row */
.x-mini-panel-game-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
}
.x-mini-panel-game-icon {
  width: 28px;
  height: 26px;
  flex-shrink: 0;
}
.x-mini-panel-game-icon svg { width: 100%; height: 100%; }
.x-mini-panel-game-name { font-size: 11px; font-weight: 600; flex: 1; }
.x-mini-panel-game-arrow { color: var(--text-faint); }

.x-mini-panel-grow { flex: 1; min-height: 8px; }

/* Level-up celebration overlay */
.x-mp-levelup {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: #18181B;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
}
.x-mp-levelup.visible { opacity: 1; }

.x-mp-levelup-glow {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234,179,8,0.4) 0%, transparent 70%);
  animation: x-mp-glow-pulse 2s ease-in-out infinite;
}

@keyframes x-mp-glow-pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; }
}

.x-mp-levelup-label {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 2px;
  z-index: 1;
}

/* Volumetric 3D number */
.x-mp-levelup-flipper {
  perspective: 400px;
  position: relative;
  z-index: 1;
  width: 80px;
  height: 70px;
  transform-style: preserve-3d;
}
.x-mp-flip-front,
.x-mp-flip-back {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.x-mp-flip-front { transform: rotateY(0deg); }
.x-mp-flip-back { transform: rotateY(180deg); }
.x-mp-levelup-flipper.flipped .x-mp-flip-front { transform: rotateY(-180deg); }
.x-mp-levelup-flipper.flipped .x-mp-flip-back { transform: rotateY(0deg); }

.x-mp-levelup-number {
  font-size: 56px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -2px;
  position: relative;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFDE0 20%, #FDE047 50%, #FACC15 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 24px rgba(253,224,71,0.9)) drop-shadow(0 0 48px rgba(253,224,71,0.4));
}
.x-mp-levelup-number::before {
  content: attr(data-num);
  position: absolute;
  left: 0; top: 2px;
  z-index: -1;
  background: linear-gradient(180deg, #FACC15 0%, #EAB308 50%, #D97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.x-mp-levelup-number::after {
  content: attr(data-num);
  position: absolute;
  left: 0; top: 4px;
  z-index: -2;
  background: linear-gradient(180deg, #D97706 0%, #B45309 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: blur(1px);
}

.x-mp-flip-back svg {
  filter: drop-shadow(0 0 20px rgba(253,224,71,0.8));
}

.x-mp-levelup-unlock {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  margin-top: 10px;
  z-index: 1;
  opacity: 0;
}
.x-mp-levelup-unlock span { color: #FDE047; font-weight: 700; }

.x-mp-levelup-sparks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.x-mp-spark {
  position: absolute;
  border-radius: 50%;
  animation: x-mp-spark-fly 1.2s ease-out forwards;
}

.x-mp-streak {
  position: absolute;
  width: 2px;
  border-radius: 1px;
  animation: x-mp-streak-fly 0.8s ease-out forwards;
}

@keyframes x-mp-spark-fly {
  0% { transform: translate(0,0) scale(1); opacity: 1; }
  100% { transform: translate(var(--sx), var(--sy)) scale(0); opacity: 0; }
}

@keyframes x-mp-streak-fly {
  0% { transform: translate(0,0) scaleY(1) rotate(var(--sr)); opacity: 1; }
  100% { transform: translate(var(--sx), var(--sy)) scaleY(0) rotate(var(--sr)); opacity: 0; }
}


.x-mini-panel-chat-peek {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}

.x-mini-panel-chat-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--btn-bg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.x-mini-panel-chat-avatar svg { width: 22px; height: 20px; transform: scale(3.5); transform-origin: 50% 40%; }

.x-mini-panel-chat-name {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
}

.x-mini-panel-chat-status {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
}

.x-mini-panel-input {
  padding: 6px 10px 10px;
  border-top: 1px solid var(--border);
}

.x-mini-panel-input-bar {
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border-radius: 18px;
  padding: 6px 6px 6px 14px;
  gap: 6px;
}

.x-mini-panel-input-placeholder {
  flex: 1;
  font-size: 11px;
  color: var(--text-faint);
}

.x-mini-panel-send {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--btn-bg);
  color: var(--btn-text);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.x-feature-hero-card .x-feature-preview-wide {
  background: none;
  overflow: visible;
  margin-bottom: 0;
}

.x-hero-card-toggle {
  position: absolute;
  top: 8px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: var(--bg-tertiary);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 1;
}
.x-hero-card-toggle:hover {
  background: var(--border);
  color: var(--text);
}

.x-hero-card-toggle svg {
  transition: transform 0.3s ease;
  transform: rotate(90deg);
}
.x-feature-hero-card.collapsed .x-hero-card-toggle svg {
  transform: rotate(-90deg);
}

.x-feature-hero-card.collapsed .x-mini-panel {
  opacity: 0;
  width: 0;
  margin-left: 0;
  overflow: hidden;
}

.x-feature-hero-layout {
  display: flex;
  align-items: stretch;
  height: 600px;
  overflow: hidden;
}

.x-feature-hero-layout .x-feature-preview-wide {
  flex: 1;
  min-width: 0;
  height: auto;
}

/* ─── Chrome Window Frame ─── */
.x-window-frame {
  overflow: hidden;
}

/* Tab bar row — sits on card bg-secondary */
.x-window-tabbar {
  display: flex;
  align-items: flex-end;
  padding: 4px 0 0;
  gap: 0;
}

.x-window-dots {
  display: flex;
  gap: 6px;
  padding: 6px 8px 8px 0;
  flex-shrink: 0;
}

.x-window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.x-window-dot--close { background: #FF5F57; }
.x-window-dot--min { background: #FEBC2E; }
.x-window-dot--max { background: #28C840; }

.x-window-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 8px 8px 0 0;
  white-space: nowrap;
}
.x-window-tab.active {
  background: var(--bg);
  color: var(--text-secondary);
}
.x-window-tab-icon {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}
.x-window-tab-close {
  font-size: 9px;
  color: var(--text-faint);
  margin-left: 4px;
}

/* Bright content area (URL bar + page) */
.x-window-content {
  background: var(--bg);
  border-radius: 6px;
  overflow: hidden;
}

/* URL bar row */
.x-window-urlbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 8px;
  border-bottom: 1px solid var(--border);
}

.x-window-nav-btns {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}
.x-window-nav-btn {
  color: var(--text-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.x-window-url {
  flex: 1;
  background: var(--bg-tertiary);
  border-radius: 14px;
  padding: 5px 12px;
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.x-window-url-lock {
  color: var(--text-faint);
  flex-shrink: 0;
}

.x-window-extensions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.x-window-ext-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.x-window-ext-icon img {
  width: 16px;
  height: 16px;
}
.x-window-ext-puzzle {
  color: var(--text-faint);
  display: flex;
  align-items: center;
}

.x-feature-preview {
  height: 260px;
  border-radius: 6px;
  background: var(--bg);
  overflow: hidden;
  margin-bottom: 14px;
  position: relative;
}

.x-feature-preview-wide {
  height: 600px;
}

.x-feature-preview-wide .x-window-frame {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.x-feature-preview-wide .x-window-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.x-feature-preview-wide .x-scene-newtab {
  flex: 1;
}

.x-feature-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.x-feature-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─── Feature 1: Personalized Roasts (newtab replica) ─── */
.x-scene-newtab {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  padding-bottom: 15%;
}

.x-newtab-widgets {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.x-newtab-widget {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  cursor: default;
}
.x-newtab-widget:empty { border-style: dashed; opacity: 0.4; }
.x-newtab-widget svg { width: 16px; height: 16px; }

.x-newtab-widget-tip {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--btn-bg);
  color: var(--btn-text);
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  z-index: 5;
}
.x-newtab-widget:hover .x-newtab-widget-tip { opacity: 1; }

.x-newtab-level {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2.5px solid #EAB308;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--text);
  position: relative;
  cursor: default;
}
.x-newtab-level .x-newtab-widget-tip { top: calc(100% + 4px); }
.x-newtab-level:hover .x-newtab-widget-tip { opacity: 1; }

.x-newtab-face {
  width: 100px;
  height: 93px;
}
.x-newtab-face svg { width: 100%; height: 100%; overflow: visible; }

.x-newtab-quote {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  line-height: 1.35;
  max-width: 420px;
  min-height: 54px;
}

.x-newtab-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.x-newtab-action {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg-secondary);
  color: var(--text-muted);
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
}
.x-newtab-action svg { width: 16px; height: 16px; }

/* XP Toast — on top of character */
.x-xp-toast {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: #EAB308;
  color: #1C1917;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  z-index: 10;
}

.x-newtab-face { position: relative; }
.x-newtab-action { position: relative; }
.x-newtab-action:hover .x-newtab-widget-tip { opacity: 1; }

/* ─── Feature: Tasks ─── */
.x-scene-tasks {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 24px 28px;
}

.x-tasks-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.x-task-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
}

.x-task-check {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  flex-shrink: 0;
  transition: all 0.25s;
}
.x-task-row.checked .x-task-check {
  background: var(--btn-bg);
  border-color: var(--btn-bg);
}

.x-task-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: all 0.25s;
}
.x-task-row.checked .x-task-title {
  text-decoration: line-through;
  color: var(--text-muted);
}

.x-task-badge {
  font-size: 10px;
  color: var(--text-faint);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.25s;
}
.x-task-badge.done {
  color: var(--text-muted);
  font-weight: 600;
}

/* ─── Feature 2: Talk Back ─── */
.x-scene-chat {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding: 16px;
  gap: 8px;
  overflow: hidden;
}

.x-chat-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 13px;
  line-height: 1.4;
}

.x-chat-bubble--user {
  background: #1C1917;
  color: #FAF8F5;
  align-self: flex-end;
  border-bottom-right-radius: 6px;
}

.x-chat-bubble--jesty {
  background: #F0EDEA;
  color: #1C1917;
  align-self: flex-start;
  border-bottom-left-radius: 6px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.x-chat-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--btn-bg);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.x-chat-avatar svg { width: 24px; height: 22px; transform: scale(4); transform-origin: 50% 40%; }

.x-chat-dots {
  display: flex;
  gap: 4px;
  padding: 10px 14px;
  align-self: flex-start;
}
.x-chat-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
}
.x-chat-dot-1 { animation: x-dot-bounce 1.2s infinite; }
.x-chat-dot-2 { animation: x-dot-bounce 1.2s infinite 0.2s; }
.x-chat-dot-3 { animation: x-dot-bounce 1.2s infinite 0.4s; }

@keyframes x-dot-bounce {
  0%, 80%, 100% { transform: scale(1); opacity: 0.4; }
  40% { transform: scale(1.4); opacity: 1; }
}

/* ─── Feature 3: Stay Focused ─── */
.x-scene-focus {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.x-focus-timer {
  font-size: 64px;
  font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  display: flex;
  justify-content: center;
}

.x-focus-char {
  display: inline-block;
}

.x-focus-char.x-focus-drop {
  animation: x-timerDrop 1.4s forwards;
  animation-timing-function: cubic-bezier(0.2, 0, 1, 1);
}

@keyframes x-timerDrop {
  0% {
    opacity: 1;
    transform: translate(var(--dx), 0) rotate(0);
    animation-timing-function: cubic-bezier(0.2, 1, 0.4, 1);
  }
  10% {
    opacity: 1;
    transform: translate(var(--dx), -28px) rotate(calc(var(--dr) * 0.02));
    animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45);
  }
  22% {
    opacity: 1;
    transform: translate(var(--dx), 0px) rotate(calc(var(--dr) * 0.06));
    animation-timing-function: cubic-bezier(0.4, 0, 1, 1);
  }
  55% {
    opacity: 1;
    transform: translate(var(--dx), 200px) rotate(calc(var(--dr) * 0.5));
  }
  99.9% {
    opacity: 1;
    transform: translate(var(--dx), 600px) rotate(var(--dr));
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx), 600px) rotate(var(--dr));
  }
}

.x-focus-resume {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  position: absolute;
  opacity: 0;
  text-align: center;
  max-width: 80%;
  line-height: 1.4;
}

/* ─── Feature 4: Memory Match ─── */
.x-scene-memory {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 16px;
}

.x-memory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 6px;
  width: 100%;
  max-width: 240px;
}

.x-memory-cell {
  aspect-ratio: 0.85;
  perspective: 600px;
}

.x-memory-card-inner {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.x-memory-card-inner.flipped {
  transform: rotateY(180deg);
}

.x-memory-card-front,
.x-memory-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.x-memory-card-front {
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--text-faint);
  font-size: 14px;
  font-weight: 800;
}

.x-memory-card-back {
  background: var(--bg-secondary);
  transform: rotateY(180deg);
  border: 2px solid var(--border);
  padding: 3px;
}
.x-memory-card-back svg { width: 100%; height: 100%; }

.x-memory-card-back.matched {
  border-color: #34D399;
  background: rgba(52, 211, 153, 0.1);
  animation: x-match-pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes x-match-pop {
  0% { transform: rotateY(180deg) scale(1); }
  50% { transform: rotateY(180deg) scale(1.1); }
  100% { transform: rotateY(180deg) scale(1); }
}

.x-memory-complete {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  position: absolute;
  inset: 0;
}
.x-memory-complete.visible { display: flex; }

.x-memory-stars {
  margin-top: 12px;
}

.x-memory-complete-face { width: 64px; height: 60px; }
.x-memory-complete-face svg { width: 100%; height: 100%; }

.x-memory-complete-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.x-memory-stars {
  display: flex;
  gap: 8px;
}

.x-memory-star {
  font-size: 28px;
  color: var(--text-faint);
  animation: x-star-pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.x-memory-star.earned {
  color: #FBBF24;
}

@keyframes x-star-pop {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ─── Feature 5: Accessories ─── */
.x-scene-acc {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.x-acc-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.x-acc-item {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.x-acc-item-preview {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.x-acc-item-preview svg { width: 48px; height: 36px; }

.x-acc-item-name {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-faint);
  text-align: center;
  white-space: nowrap;
  transition: all 0.5s ease;
}

/* Center item: bigger, bold */
.x-acc-item.center .x-acc-item-preview {
  width: 88px;
  height: 88px;
  border-color: #EAB308;
  box-shadow: 0 4px 16px rgba(234,179,8,0.15);
}
.x-acc-item.center .x-acc-item-preview svg { width: 58px; height: 44px; }
.x-acc-item.center .x-acc-item-name {
  color: var(--text);
  font-size: 11px;
}

/* ─── Feature 6: Dossier Stats ─── */
.x-scene-dossier {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 20px;
  gap: 16px;
}

.x-dossier-stats {
  display: flex;
  gap: 32px;
  text-align: center;
}

.x-dossier-stat-number {
  display: block;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -1.5px;
  color: var(--border);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  transition: color 0.3s;
}

.x-dossier-stat-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 4px;
}

.x-dossier-bars {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.x-dossier-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.x-dossier-bar-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  width: 70px;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.x-dossier-bar-track {
  flex: 1;
  height: 8px;
  background: var(--bg-secondary);
  border-radius: 4px;
  overflow: hidden;
}

.x-dossier-bar-fill {
  height: 100%;
  border-radius: 4px;
  width: 0;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.x-dossier-bar-count {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-faint);
  width: 20px;
  text-align: right;
}


/* ═══════════════════════════════════════
   TAB MANAGER (inside feature card)
   ═══════════════════════════════════════ */
.x-tabs-showcase {
  position: relative;
  padding: 80px 24px 60px;
  background: var(--bg);
  text-align: center;
}

.x-tabs-count {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.x-tabs-roast {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 800;
  margin-bottom: 56px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.x-tabs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-height: 380px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

.x-tab-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  text-align: left;
  transition: background 0.15s;
}
.x-tab-card:hover {
  background: var(--bg-secondary);
}

.x-tab-favicon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  flex-shrink: 0;
  object-fit: contain;
}

.x-tab-close {
  width: 22px;
  height: 22px;
  border: none;
  background: #DC2626;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0;
  transition: all 0.15s;
  padding: 0;
}
.x-tab-card:hover .x-tab-close { opacity: 1; }
.x-tab-close:hover { background: #B91C1C; transform: scale(1.1); }

.x-tab-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.x-tab-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.x-tab-domain {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ═══════════════════════════════════════
   PRICING
   ═══════════════════════════════════════ */
.x-pricing {
  position: relative;
  padding: 100px 24px;
  background: var(--bg);
  z-index: 2;
}

.x-pricing-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  text-align: center;
  max-width: 520px;
  margin: 12px auto 0;
}

.x-pricing-stack {
  position: relative;
  margin-top: 48px;
  display: flex;
  justify-content: center;
  min-height: 420px;
}

.x-pricing-sparks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 3;
}

.x-pricing-spark {
  position: absolute;
  border-radius: 50%;
  animation: x-p-spark-fly 1.2s ease-out forwards;
}
.x-pricing-streak {
  position: absolute;
  width: 2px;
  border-radius: 1px;
  animation: x-p-streak-fly 0.8s ease-out forwards;
}

@keyframes x-p-spark-fly {
  0% { transform: translate(0,0) scale(1); opacity: 1; }
  100% { transform: translate(var(--sx), var(--sy)) scale(0); opacity: 0; }
}
@keyframes x-p-streak-fly {
  0% { transform: translate(0,0) scaleY(1) rotate(var(--sr)); opacity: 1; }
  100% { transform: translate(var(--sx), var(--sy)) scaleY(0) rotate(var(--sr)); opacity: 0; }
}

.x-pricing-card {
  background: var(--bg);
  border-radius: 14px;
  padding: 28px 20px;
  text-align: center;
  border: 1.5px solid var(--bg-secondary);
  position: absolute;
  width: 300px;
}

/* Suspect — starts behind center, slides to left */
.x-pricing-card[data-tier="free"] {
  left: 50%;
  transform: translateX(-50%) rotate(0deg);
  top: 0;
  z-index: 1;
}

/* Guilty — front center */
.x-pricing-card.featured {
  left: 50%;
  transform: translateX(-50%);
  border-color: transparent;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  z-index: 2;
  overflow: hidden;
}

.x-pricing-card.featured::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  background: conic-gradient(
    from var(--glow-angle, 0deg),
    transparent 0%,
    #EAB308 10%,
    #FDE047 20%,
    transparent 30%,
    transparent 100%
  );
  z-index: -1;
  animation: x-glow-rotate 3s linear infinite;
}

.x-pricing-card.featured::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 12px;
  background: var(--bg);
  z-index: -1;
}

@keyframes x-glow-rotate {
  0% { --glow-angle: 0deg; }
  100% { --glow-angle: 360deg; }
}

@property --glow-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* Sentenced — starts behind center, slides to right */
.x-pricing-card[data-tier="pro"] {
  left: 50%;
  transform: translateX(-50%) rotate(0deg);
  top: 0;
  z-index: 1;
}

.x-pricing-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--btn-bg);
  color: var(--btn-text);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 10px;
  white-space: nowrap;
}

.x-pricing-face {
  width: 56px;
  height: 52px;
  margin: 0 auto 12px;
}
.x-pricing-face svg { width: 100%; height: 100%; }

.x-pricing-tier {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.x-pricing-price {
  display: block;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 16px;
}

.x-pricing-once {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.x-pricing-features {
  list-style: none;
  margin-bottom: 20px;
  text-align: left;
}
.x-pricing-features li {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 5px 0;
}
.x-pricing-features li::before {
  content: '\2713  ';
  font-weight: 700;
  color: var(--text);
}

.x-btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.x-btn-secondary:hover { border-color: var(--text); }
.x-btn-full { width: 100%; }
.x-btn-disabled { opacity: 0.4; pointer-events: none; cursor: default; }

/* ═══════════════════════════════════════
   STORE
   ═══════════════════════════════════════ */
.x-store {
  position: relative;
  padding: 100px 24px;
  background: var(--bg);
}

.x-store-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.x-store-card {
  background: var(--bg-secondary);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: transform 0.2s;
}
.x-store-card:hover { transform: translateY(-4px); }

.x-store-preview {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border-radius: 12px;
  background: var(--bg);
  overflow: hidden;
}

.x-store-face {
  width: 100px;
  height: 93px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.x-store-card:hover .x-store-face {
  transform: scale(1.12) rotate(-3deg);
}
.x-store-face svg { width: 100%; height: 100%; }

.x-store-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.x-store-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}

.x-store-price {
  display: block;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 16px;
}

/* ═══════════════════════════════════════
   FOOTER (sticky reveal behind store)
   ═══════════════════════════════════════ */

/* Store is the last section before footer reveal */
.x-store {
  position: relative;
}

/* Main content covers the fixed footer */
.x-main {
  position: relative;
  z-index: 2;
  background: var(--bg);
  margin-bottom: var(--footer-h, 500px);
}


/* Roast cards float above everything */
.x-roast-card.grabbing {
  z-index: 200 !important;
}

.x-footer-reveal {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  background: var(--accent);
  overflow: hidden;
}

.x-footer-reveal-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  font-family: 'Danfo', cursive;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--bg-word-color, var(--bg-secondary));
  line-height: 0.85;
  pointer-events: none;
  white-space: nowrap;
  display: flex;
  justify-content: center;
  z-index: -1;
  overflow: hidden;
}

.x-footer-bg-char {
  display: inline-block;
  will-change: transform;
  font-size: clamp(160px, 28vw, 500px);
  letter-spacing: 0.02em;
}

.x-footer-reveal-content {
  position: relative;
}

.x-footer-cta {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 160px 24px 140px;
  overflow: hidden;
}

.x-cta-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}

.x-cta-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.x-cta-btn {
  background: var(--btn-bg);
  color: var(--btn-text);
  border-color: var(--btn-bg);
}
.x-cta-btn:hover {
  background: var(--btn-hover);
}

.x-footer-nav {
  padding: 48px 24px 24px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.x-footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 48px;
}

.x-footer-left {}

.x-footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.x-footer-icon {
  border: 2px solid #fff;
  border-radius: 10px;
  transform: rotate(-4deg);
}

.x-footer-logo { font-size: 18px; font-weight: 800; display: block; color: var(--text); }
.x-footer-tagline { font-size: 12px; color: var(--text); margin-top: 2px; }

.x-footer-links {
  display: flex;
  gap: 64px;
}

.x-footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.x-footer-col-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: 4px;
}

.x-footer-col a {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}
.x-footer-col a:hover { color: var(--text); }

.x-footer-bottom {
  max-width: 1080px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(0,0,0,0.08);
  font-size: 12px;
  color: var(--text-secondary);
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 768px) {
  /* ── Notifications: hide on mobile ── */
  .x-roast-notifs { display: none !important; }

  /* ── Nav ── */
  .x-nav-acc-slots { display: none; }
  .x-acc-dropdown { display: none !important; }
  .x-nav-spacer { width: 4px; }
  .x-nav-island { padding: 5px 5px 5px 8px; gap: 4px; }

  /* ── Hero ── */
  .x-hero { padding: 90px 16px 40px; min-height: auto; }
  .x-hero-title { font-size: clamp(32px, 8vw, 40px); }
  .x-hero-subtitle { font-size: 15px; }
  .x-hero-stage { height: 260px; }
  #x-hero-face { width: 200px; height: 186px; }
  .x-hero-floor { width: 90px; height: 14px; }

  /* Big bg word: full width, higher up behind character */
  .x-hero-bg-word { top: 25%; }
  .x-hero-bg-char { font-size: 28vw; }

  /* Color picker smaller */
  .x-color-picker { margin-top: 40px; gap: 2px; }
  .x-color-swatch svg { width: 36px; height: 34px; }

  /* ── Roast cards: same size, more space before mood ── */
  .x-roast-section { margin-top: -100px; }
  .x-roast-container { height: 700px; }

  /* ── Mood intro ── */
  .x-mood-intro { min-height: auto; padding: 400px 16px 40px; }
  .x-mood-line { font-size: 24px; font-weight: 800; }

  /* ── Tabs: single column on mobile ── */
  .x-tabs-grid { grid-template-columns: 1fr; }

  /* ── Features ── */
  .x-features { padding: 60px 0; }
  .x-features-inner { padding: 0 16px; }
  .x-features-grid,
  .x-pricing-grid,
  .x-store-grid {
    grid-template-columns: 1fr;
  }

  .x-feature-card { border-radius: 14px; }

  /* Hero card: chrome window fills the card on mobile */
  .x-feature-hero-layout {
    flex-direction: column;
    height: auto;
    overflow: visible;
  }
  .x-mini-panel { display: none !important; }
  .x-feature-preview-wide {
    height: auto !important;
    min-height: 360px;
    margin-bottom: 0 !important;
  }
  .x-feature-preview-wide .x-window-content {
    min-height: 300px;
  }
  .x-feature-preview-wide .x-scene-newtab {
    min-height: 300px;
    justify-content: center;
  }
  .x-hero-card-toggle { display: none; }
  .x-newtab-widgets { display: none; }
  .x-newtab-actions { display: none; }


  /* ── Pricing ── */
  .x-pricing { padding: 60px 16px; }
  .x-pricing .x-section-inner { padding: 0; }
  .x-pricing-stack { min-height: auto; flex-direction: column; align-items: stretch; gap: 12px; }
  .x-pricing-card { position: relative !important; width: 100% !important; max-width: 100% !important; left: auto !important; right: auto !important; top: auto !important; transform: none !important; opacity: 1 !important; }

  /* ── Footer ── */
  .x-footer-bg-char { font-size: 28vw; }
  .x-footer-reveal-bg {
    position: relative;
    top: auto; left: auto;
    transform: none;
    margin: 0 auto 24px;
    z-index: 0;
    width: 100%;
    overflow: hidden;
  }
  .x-footer-cta { padding: 24px 24px 24px; }
  .x-cta-title { margin-top: 0; }
  .x-footer-inner { flex-direction: column; gap: 32px; }
  .x-footer-links { gap: 32px; flex-wrap: wrap; }

  /* ── General section spacing ── */
  .x-section-title { font-size: 24px; }
}

@media (max-width: 480px) {
  .x-hero-title { font-size: clamp(28px, 8vw, 36px); }
  #x-hero-face { width: 180px; height: 167px; }
  .x-hero-stage { height: 220px; }
  .x-hero-floor { width: 80px; height: 12px; }
  .x-hero-bg-char { font-size: clamp(80px, 28vw, 160px); }

  .x-roast-container { height: 400px; }

  .x-mood-line { font-size: 22px; }
}
