/* Source CSS for .fm-teaser (Coming to You — framed card layout) */

.fm-teaser {
  width: 100%;
  font-family: 'F37 Moon', sans-serif;
  padding: 80px 24px 100px;
  position: relative;
}

/* ── Framed card container ── */
.fm-teaser-card {
  max-width: 1180px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid rgba(116, 68, 242, 0.08);
  border-radius: 32px;
  padding: 36px 48px 56px;
  box-shadow:
    0 4px 14px rgba(116, 68, 242, 0.04),
    0 24px 64px rgba(40, 30, 70, 0.06);
  position: relative;
}

/* ── Top bar: eyebrow + CTA ── */
.fm-teaser-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.fm-teaser-eyebrow {
  margin-bottom: 0; /* override earlier rule */
}

.fm-teaser-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1e1630;
  color: #ffffff !important;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 100px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 14px rgba(30, 22, 48, 0.18);
  transition: all 0.25s ease;
}

.fm-teaser-cta:hover {
  background: #7444f2;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(116, 68, 242, 0.32);
}

/* ── 3-column grid: text+countdown / phone / features ── */
.fm-teaser-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.6fr;
  gap: 36px;
  align-items: center;
}

/* LEFT column */
.fm-teaser-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.fm-teaser-title {
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  font-weight: 800;
  color: #1e1630;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.fm-teaser-title em {
  font-style: italic;
  color: #7444f2;
  font-weight: 800;
}

.fm-teaser-sub {
  font-size: 0.98rem;
  color: #8a7e9e;
  line-height: 1.72;
  max-width: 380px;
  margin-bottom: 32px;
}

/* Launching soon pill */
.fm-teaser-launching {
  display: inline-flex;
  align-self: flex-start;
  width: auto;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--f-purple);
  background: rgba(116,68,242,0.08);
  border: 1px solid rgba(116,68,242,0.2);
  border-radius: 100px;
  padding: 8px 18px;
  margin-bottom: 4px;
}
.fm-teaser-launching::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--f-purple);
  opacity: 0.7;
}

/* Countdown */
.fm-teaser-countdown-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9a8fbe;
  margin-bottom: 12px;
}

.fm-teaser-countdown-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.fm-teaser-countdown-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: #f7f5ff;
  border: 1px solid rgba(116, 68, 242, 0.12);
  border-radius: 14px;
  padding: 10px 14px 8px;
  min-width: 64px;
}

.fm-teaser-countdown-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: #1e1630;
  letter-spacing: -0.02em;
  line-height: 1;
}

.fm-teaser-countdown-unit {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9a8fbe;
}

.fm-teaser-countdown-sep {
  font-size: 1.4rem;
  font-weight: 700;
  color: #c4bcdc;
  margin-bottom: 18px;
}

/* CENTER column — phone */
.fm-teaser-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Phone wrapper — upright, no tilt, no hover rotation */
.fm-phone-wrap {
  position: relative;
  z-index: 1;
}

.fm-phone-float {
  animation: fmPhoneFloat 5s ease-in-out infinite;
  transform-origin: center center;
}

@keyframes fmPhoneFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* RIGHT column — feature list */
.fm-teaser-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.fm-teaser-features li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fm-feat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f5f3ff;
  border: 1px solid rgba(116, 68, 242, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.fm-feat-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.fm-feat-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #1e1630;
}

/* ── iPhone 15 Pro mockup (SVG frame + HTML screen) ── */
.fm-phone-shell {
  width: 280px;
  position: relative;
  filter:
    drop-shadow(0 2px 4px rgba(30, 22, 60, 0.18))
    drop-shadow(0 12px 32px rgba(80, 50, 160, 0.22))
    drop-shadow(0 32px 80px rgba(30, 22, 60, 0.28));
}

/* The HTML screen sits underneath, SVG frame overlays on top */
.fm-phone-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 280 / 570;
  border-radius: 44px;
  overflow: hidden;
  background: #faf8ff;
}

/* SVG frame overlay — covers the whole phone area */
.fm-phone-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 11;
  display: block;
}

/* Screen content — inset to match the SVG's screen cutout (8px from edge) */
.fm-phone-screen .fm-screen-content {
  position: absolute;
  inset: 8px;
  width: auto;
  height: auto;
  border-radius: 42px;
  overflow: hidden;
}

/* Glass glare — subtle diagonal shine across the screen */
.fm-phone-screen::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 42px;
  background:
    linear-gradient(
      128deg,
      rgba(255, 255, 255, 0.18) 0%,
      rgba(255, 255, 255, 0.06) 25%,
      transparent 50%,
      rgba(255, 255, 255, 0.02) 80%,
      rgba(255, 255, 255, 0.04) 100%
    );
  z-index: 12;
  pointer-events: none;
}

/* Screen content */
.fm-screen-content {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #faf7ff 0%, #ede6ff 45%, #e0d6ff 100%);
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 52px 18px 20px;
}

.fm-status-bar {
  position: absolute;
  top: 18px; left: 22px; right: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 14px;
  z-index: 13;
}
.fm-status-time {
  font-size: 10px;
  font-weight: 700;
  color: #1e1630;
  letter-spacing: 0.01em;
}

.fm-status-icons {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #1e1630;
}

.fm-status-icons svg { display: block; }
.fm-signal  { width: 14px; height: 10px; }
.fm-wifi    { width: 12px; height: 9px;  }
.fm-battery { width: 22px; height: 10px; }

.fm-screen-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  margin-top: 4px;
}
.fm-screen-back {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(116,68,242,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: #7444f2;
}
.fm-screen-nav-title { font-size: 10px; font-weight: 700; color: #1e1630; letter-spacing: -0.01em; }
.fm-screen-nav-more {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(0,0,0,0.04);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: #8a7e9e;
}

/* Orb */
.fm-screen-orb-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  position: relative;
}

.fm-orb {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  position: relative;
  animation: fmOrbFloat 5s ease-in-out infinite;
}

@keyframes fmOrbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-8px) scale(1.03); }
}

.fm-orb-layer {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.fm-orb-1 {
  background: radial-gradient(circle at 35% 32%, #f0ecff 0%, #d4c8ff 30%, #b8a8f8 65%, #9880e8 100%);
  opacity: 1;
  box-shadow:
    inset 0 -12px 30px rgba(80,50,180,0.25),
    inset 0 4px 16px rgba(255,255,255,0.4),
    0 8px 32px rgba(116,68,242,0.3),
    0 2px 8px rgba(100,80,200,0.2);
}
.fm-orb-2 {
  background: radial-gradient(circle at 60% 65%, rgba(180,220,255,0.6) 0%, transparent 60%);
  animation: fmOrbShift 7s ease-in-out infinite;
}
.fm-orb-3 {
  background: radial-gradient(circle at 70% 30%, rgba(255,240,255,0.5) 0%, transparent 55%);
  animation: fmOrbShift 9s ease-in-out infinite reverse;
}
.fm-orb-shine {
  position: absolute;
  top: 15%; left: 20%;
  width: 38%;
  height: 32%;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  filter: blur(6px);
}
@keyframes fmOrbShift {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.7; }
  50%       { transform: scale(1.1) rotate(15deg); opacity: 1; }
}

/* Message */
.fm-screen-message { text-align: center; padding: 0 8px; margin-bottom: 16px; }
.fm-screen-message-name {
  font-size: 15px;
  font-weight: 800;
  color: #1e1630;
  letter-spacing: -0.02em;
  line-height: 1.45;
}
.fm-screen-message-name span { color: #7444f2; }
.fm-screen-message-sub { font-size: 10px; color: #9a8fbe; margin-top: 4px; }

/* Input */
.fm-screen-input {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(196,188,255,0.4);
  border-radius: 20px;
  padding: 10px 12px;
  backdrop-filter: blur(8px);
}
.fm-screen-input-text { flex: 1; font-size: 9px; color: #c4bcdc; letter-spacing: 0.01em; }
.fm-screen-input-btn {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #7444f2;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: #fff;
}

.fm-screen-home-ind {
  width: 80px; height: 4px;
  background: rgba(0,0,0,0.15);
  border-radius: 4px;
  margin: 10px auto 0;
}

/* Floating card (bottom right) */
.fm-float-card {
  position: absolute;
  bottom: 140px;
  right: 40px;
  z-index: 5;
  background: #ffffff;
  border-radius: 22px;
  padding: 14px 16px;
  box-shadow:
    0 2px 0 rgba(0,0,0,0.06),
    0 8px 24px rgba(0,0,0,0.1),
    0 20px 48px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fmCardFloat 5s ease-in-out infinite 1s;
  min-width: 148px;
  border: 1px solid rgba(0,0,0,0.05);
}
@keyframes fmCardFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

.fm-float-card-icon {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ede8ff, #c4aeff);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.fm-float-card-label { font-size: 8.5px; font-weight: 800; color: #1e1630; letter-spacing: -0.01em; }
.fm-float-card-sub { font-size: 7.5px; color: #9a8fbe; margin-top: 1px; }

/* Floating card (top left) */
.fm-float-card-2 {
  position: absolute;
  top: 80px;
  left: 40px;
  z-index: 5;
  background: #ffffff;
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow:
    0 2px 0 rgba(0,0,0,0.05),
    0 6px 20px rgba(0,0,0,0.09),
    0 16px 40px rgba(0,0,0,0.07),
    inset 0 1px 0 rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: fmCardFloat2 6s ease-in-out infinite 0.5s;
  min-width: 130px;
  border: 1px solid rgba(0,0,0,0.04);
}
@keyframes fmCardFloat2 {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}
.fm-float-card-2-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: #f0f7ff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.fm-float-card-2-label { font-size: 8px; font-weight: 800; color: #1e1630; }
.fm-float-card-2-sub { font-size: 7px; color: #9a8fbe; margin-top: 1px; }

/* ── Responsive: tablet ── */
@media (max-width: 980px) {
  .fm-teaser { padding: 60px 20px 80px; }
  .fm-teaser-card { padding: 28px 32px 44px; border-radius: 24px; }

  /* Stack the grid: text+countdown above the phone, features below */
  .fm-teaser-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .fm-teaser-left { align-items: center; }
  .fm-teaser-sub { margin-left: auto; margin-right: auto; }
  .fm-teaser-countdown { display: flex; flex-direction: column; align-items: center; }

  .fm-teaser-features {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
  }
  .fm-teaser-features li { flex-direction: column; gap: 8px; align-items: center; }
}

/* ── Responsive: mobile ── */
@media (max-width: 600px) {
  .fm-teaser { padding: 40px 16px 60px; }
  .fm-teaser-card { padding: 24px 20px 36px; border-radius: 20px; }
  .fm-teaser-top { flex-direction: column; gap: 12px; align-items: flex-start; }
  .fm-phone-shell { width: 240px; }

  .fm-teaser-features { gap: 14px; }
  .fm-feat-icon { width: 32px; height: 32px; font-size: 16px; }
  .fm-feat-label { font-size: 0.7rem; letter-spacing: 0.12em; }
}


/* ══════════════════════════════════════════════════════════
   Mood Check-in Screen (Figma redesign)
   ══════════════════════════════════════════════════════════ */

/* Override screen content padding for mood layout */
.fm-phone-screen .fm-screen-content:has(.fm-mood-mascot) {
  padding: 44px 14px 14px;
  justify-content: flex-start;
}

.fm-mood-mascot {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px 0 12px;
  height: 90px;
}

.fm-mood-mascot img {
  height: 100%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(116, 68, 242, 0.25));
}

.fm-mood-greeting {
  text-align: center;
  margin-bottom: 14px;
}

.fm-mood-greeting p {
  font-size: 12px;
  font-weight: 800;
  color: #1e1630;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.fm-mood-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-bottom: 10px;
}

.fm-mood-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid rgba(196, 188, 255, 0.35);
  border-radius: 100px;
  padding: 5px 10px 5px 5px;
  font-family: inherit;
  font-size: 9px;
  font-weight: 700;
  color: #1e1630;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(116, 68, 242, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fm-mood-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(116, 68, 242, 0.15);
}

.fm-mood-btn img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.fm-mood-btn--full {
  grid-column: 1 / -1;
  justify-content: flex-start;
  width: fit-content;
  margin: 0 auto;
  padding-right: 16px;
}

.fm-mood-later {
  text-align: center;
  font-size: 9px;
  font-weight: 600;
  color: #7444f2;
  margin-top: 10px;
  cursor: pointer;
}

.fm-mood-later:hover { opacity: 0.8; }


/* ── Interactive mood states ── */
.fm-mood-btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.fm-mood-btn.is-selected {
  background: #7444f2;
  border-color: #7444f2;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(116, 68, 242, 0.35);
  transform: translateY(-1px) scale(1.03);
}

.fm-mood-btn.is-dimmed {
  opacity: 0.45;
  transform: scale(0.98);
}

/* Flubb reply bubble that appears after a mood is selected */
.fm-mood-reply {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 30px;
  background: linear-gradient(135deg, #ede0f9, #ddeeff);
  border: 1px solid rgba(116, 68, 242, 0.18);
  border-radius: 18px;
  padding: 10px 14px;
  font-size: 9.5px;
  line-height: 1.45;
  color: #1e1630;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(116, 68, 242, 0.15);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(.22,1,.36,1);
  pointer-events: none;
  z-index: 5;
}

.fm-mood-reply.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fm-mood-reply-sender {
  display: block;
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7444f2;
  margin-bottom: 3px;
}

/* Mascot celebration wiggle on select */
.fm-mood-mascot.is-celebrating img {
  animation: fmMascotBounce 0.6s ease;
}

@keyframes fmMascotBounce {
  0%   { transform: scale(1) rotate(0deg); }
  30%  { transform: scale(1.08) rotate(-4deg); }
  60%  { transform: scale(0.98) rotate(3deg); }
  100% { transform: scale(1) rotate(0deg); }
}


/* ══════════════════════════════════════════════════════════
   INTERACTIVE FEATURE TABS + MULTI-SCREEN PHONE
   ══════════════════════════════════════════════════════════ */

/* Feature tabs — clickable */
.fm-teaser-features li {
  cursor: pointer;
  transition: opacity 0.2s ease;
  border-radius: 12px;
  padding: 6px 8px 6px 0;
  margin: -6px -8px -6px 0;
}
.fm-teaser-features li:hover { opacity: 0.75; }
.fm-teaser-features li.is-active .fm-feat-icon {
  background: #7444f2;
  border-color: #7444f2;
}
.fm-teaser-features li.is-active .fm-feat-icon img {
  filter: brightness(0) invert(1);
}
.fm-teaser-features li.is-active .fm-feat-label { color: #7444f2; }

/* Screen host — sits inside fm-screen-content, below nav */
.fm-screens-host {
  position: relative;
  flex: 1;
  overflow: hidden;
}

/* Each panel */
.fm-screen-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.fm-screen-panel.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ── BREATHE screen ───────────────────────────────────── */
.fm-breathe {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 10px;
  padding: 0 12px;
}
.fm-breathe-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9a8fbe;
}
.fm-breathe-ring {
  position: relative;
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px 0;
}
.fm-breathe-circle {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 38%, rgba(116,68,242,0.25) 0%, rgba(116,68,242,0.08) 60%, transparent 100%);
  border: 1.5px solid rgba(116,68,242,0.25);
  animation: fmBreatheExpand 8s ease-in-out infinite;
}
.fm-breathe-circle::after {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(116,68,242,0.15) 0%, rgba(116,68,242,0.04) 100%);
  animation: fmBreatheExpand 8s ease-in-out infinite;
  animation-delay: 0.2s;
}
.fm-breathe-phase {
  font-size: 11px;
  font-weight: 700;
  color: #7444f2;
  text-align: center;
  position: relative;
  z-index: 1;
  letter-spacing: -0.01em;
}
.fm-breathe-timer {
  font-size: 9px;
  color: #9a8fbe;
  letter-spacing: 0.05em;
}
.fm-breathe-cycles {
  font-size: 8.5px;
  color: #c4bcdc;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@keyframes fmBreatheExpand {
  0%,100% { transform: scale(0.82); opacity: 0.6; }
  40%,60% { transform: scale(1);    opacity: 1;   }
}

/* ── REFLECT screen ───────────────────────────────────── */
.fm-reflect {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 8px 4px 0;
  gap: 8px;
}
.fm-reflect-tag {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7444f2;
  background: rgba(116,68,242,0.08);
  border-radius: 20px;
  padding: 3px 8px;
  align-self: flex-start;
}
.fm-reflect-prompt {
  font-size: 11px;
  font-weight: 700;
  color: #1e1630;
  line-height: 1.45;
  letter-spacing: -0.01em;
}
.fm-reflect-journal {
  flex: 1;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(116,68,242,0.15);
  border-radius: 10px;
  padding: 10px 10px;
  font-size: 9.5px;
  color: #4b5563;
  line-height: 1.7;
  position: relative;
  overflow: hidden;
}
.fm-reflect-cursor {
  display: inline;
}
.fm-cursor-blink {
  display: inline-block;
  width: 1.5px;
  height: 10px;
  background: #7444f2;
  vertical-align: text-bottom;
  margin-left: 1px;
  animation: fmCursorBlink 1s step-end infinite;
}
@keyframes fmCursorBlink {
  0%,100% { opacity: 1; }
  50%     { opacity: 0; }
}

/* ── Thought Drop bubbles ─────────────────────────────── */
.fm-td-float-zone {
  position: relative;
  width: 100%;
  height: 44px;
  flex-shrink: 0;
}
.fm-td-fb {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(116,68,242,0.3);
  background: rgba(116,68,242,0.07);
  bottom: 0;
}
.fm-td-fb1 { width: 28px; height: 28px; left: 50%; margin-left: -14px; animation: fmTdRise 3.0s ease-in-out infinite; }
.fm-td-fb2 { width: 16px; height: 16px; left: 50%; margin-left: 12px;  animation: fmTdRise 2.6s ease-in-out infinite 0.6s; }
.fm-td-fb3 { width: 10px; height: 10px; left: 50%; margin-left: -28px; animation: fmTdRise 3.3s ease-in-out infinite 1.2s; }
.fm-td-fb4 { width:  8px; height:  8px; left: 50%; margin-left: 4px;   animation: fmTdRise 2.4s ease-in-out infinite 0.3s; }
@keyframes fmTdRise {
  0%   { transform: translateY(0) scale(1);    opacity: 0.8; }
  60%  { opacity: 0.9; }
  100% { transform: translateY(-42px) scale(0.4); opacity: 0; }
}
.fm-td-release-btn {
  width: 100%;
  background: #7444f2;
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  padding: 9px;
  cursor: pointer;
  flex-shrink: 0;
  font-family: inherit;
  letter-spacing: 0.01em;
}
.fm-td-release-note {
  font-size: 7.5px;
  color: rgba(116,68,242,0.55);
  text-align: center;
  margin-top: 4px;
  flex-shrink: 0;
}

/* ── Release animation ────────────────────────────────── */
.fm-reflect-journal.fm-td-releasing {
  animation: fmJournalRelease 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  pointer-events: none;
}
@keyframes fmJournalRelease {
  0%   { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-70px) scale(0.88); opacity: 0; }
}
.fm-td-release-btn.fm-td-btn-tap {
  animation: fmBtnTap 0.3s ease-out;
  background: #5a30d8;
}
@keyframes fmBtnTap {
  0%   { transform: scale(1); }
  40%  { transform: scale(0.94); }
  100% { transform: scale(1); }
}

/* ── Confirmation state ───────────────────────────────── */
.fm-td-confirm {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 4px;
  animation: fmConfirmIn 0.4s ease-out forwards;
}
.fm-td-confirm.is-visible {
  display: flex;
}
@keyframes fmConfirmIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fm-td-confirm-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(116,68,242,0.12);
  color: #7444f2;
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.fm-td-confirm-text {
  font-size: 11px;
  font-weight: 700;
  color: #2d1f6e;
}
.fm-td-confirm-sub {
  font-size: 8px;
  color: rgba(116,68,242,0.5);
}

/* ══════════════════════════════════════════════════════════
   FIGMA REDESIGN v2 — Check-in Panel
   ══════════════════════════════════════════════════════════ */

/* Hide default top nav when check-in panel is showing */
.fm-screen-content:has(.fm-screen-panel[data-panel="checkin"].is-active) .fm-screen-nav {
  display: none;
}

/* App-style header inside check-in panel */
.fm-ci-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px 8px;
  flex-shrink: 0;
}
.fm-ci-logo {
  font-size: 15px;
  font-weight: 800;
  color: #7444f2;
  letter-spacing: -0.03em;
}
.fm-ci-icons {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 13px;
  line-height: 1;
}

/* Calendar strip */
.fm-cal-strip {
  display: flex;
  justify-content: space-between;
  gap: 2px;
  flex-shrink: 0;
  margin-bottom: 8px;
}
.fm-cal-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 2px;
  border-radius: 20px;
  background: rgba(200, 190, 240, 0.18);
  flex: 1;
}
.fm-cal-day.is-today { background: #3d2d9e; }
.fm-cal-name {
  font-size: 6px;
  font-weight: 600;
  color: #9a8fbe;
  text-transform: capitalize;
}
.fm-cal-day.is-today .fm-cal-name { color: rgba(255,255,255,0.7); }
.fm-cal-num {
  font-size: 9.5px;
  font-weight: 800;
  color: #2d1f6e;
  line-height: 1;
}
.fm-cal-day.is-today .fm-cal-num { color: #fff; }
.fm-cal-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
}

/* Mascot card zone */
.fm-ci-mascot-card {
  background: linear-gradient(180deg, #ddd5ff 0%, #ede8ff 55%, #f8f5ff 100%);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 70px;
  max-height: 100px;
  flex-shrink: 0;
  overflow: hidden;
}
.fm-ci-mascot-card img {
  height: 88px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(116, 68, 242, 0.25));
}

/* Check-in question */
.fm-ci-question {
  text-align: center;
  font-size: 11.5px;
  font-weight: 800;
  color: #1e1630;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 8px 0 8px;
  flex-shrink: 0;
}

/* 5 mood circles in a row */
.fm-mood-row {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  flex-shrink: 0;
}
.fm-mood-circle {
  flex: 1;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(196,188,255,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 2px 6px rgba(116,68,242,0.1);
  padding: 0;
}
.fm-mood-circle img {
  width: 68%;
  height: 68%;
  object-fit: contain;
}
.fm-mood-circle:hover {
  transform: translateY(-2px) scale(1.1);
  box-shadow: 0 4px 12px rgba(116,68,242,0.2);
}
.fm-mood-circle.is-selected {
  background: #7444f2;
  border-color: #7444f2;
  box-shadow: 0 4px 14px rgba(116,68,242,0.35);
  transform: scale(1.1);
}
.fm-mood-circle.is-dimmed { opacity: 0.4; }

/* ══════════════════════════════════════════════════════════
   FIGMA REDESIGN — Feature Cards Panel
   ══════════════════════════════════════════════════════════ */

/* Slightly deeper bg when features panel is active so cards lift off it */
.fm-screen-content:has(.fm-screen-panel[data-panel="features"].is-active) {
  background: linear-gradient(170deg, #f0ecff 0%, #e6dfff 100%);
}

.fm-home-cards {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.fm-home-section-label {
  font-size: 7.5px;
  font-weight: 700;
  color: #8a7e9e;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  flex-shrink: 0;
  margin-bottom: 1px;
}
.fm-app-card {
  border-radius: 12px;
  padding: 9px 10px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.5) inset,
    0 2px 6px rgba(30,20,60,0.1),
    0 6px 16px rgba(30,20,60,0.08);
}
.fm-app-card-title {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.fm-app-card-sub {
  display: block;
  font-size: 7.5px;
  opacity: 0.7;
  margin-top: 2px;
}

/* Focus: dark purple + mascot */
.fm-app-card--focus {
  background: linear-gradient(135deg, #5a22cc 0%, #301288 50%, #1a0850 100%);
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  min-height: 88px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}
/* radial glow behind mascot */
.fm-app-card--focus::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 65%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(180,140,255,0.55) 0%, transparent 65%);
  pointer-events: none;
}
.fm-app-card--focus .fm-app-card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 2px;
  max-width: 52%;
  position: relative;
  z-index: 1;
}
.fm-app-card--focus .fm-app-card-title { color: #fff; }
.fm-app-card--focus .fm-app-card-sub   { color: rgba(255,255,255,0.7); }
.fm-app-card-mascot {
  position: absolute;
  right: -8%;
  top: 50%;
  transform: translateY(-32%);
  height: 185%;
  width: auto;
  z-index: 1;
  filter: drop-shadow(0 2px 16px rgba(100,60,200,0.5));
}

/* Middle bento: flexbox — left col stacks Reset+Sleep, right col is Calm full height */
.fm-middle-bento {
  display: flex;
  gap: 5px;
  flex: 1 1 0;
  min-height: 150px;
}
.fm-middle-left {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1 1 0;
  min-height: 0;
}
/* Cards inside the left column split the height equally */
.fm-middle-left .fm-app-card { flex: 1 1 0; min-height: 0; }
/* Calm fills the full height of the bento */
.fm-middle-bento > .fm-app-card--calm { flex: 1 1 0; min-height: 0; align-self: stretch; }
/* Decorative icon — base positioning */
.fm-app-card-deco {
  position: absolute;
  pointer-events: none;
}
.fm-app-card-icon {
  object-fit: contain;
}

/* Reset: ON/OFF toggle — bottom-right */
.fm-app-card--reset .fm-app-card-deco {
  bottom: -6px;
  right: 4px;
}
.fm-app-card--reset .fm-app-card-icon {
  width: 48px;
  height: 48px;
  filter: brightness(0) invert(1);
  opacity: 0.5;
}

/* Sleep: ZZZ + moon — bottom-right */
.fm-app-card--sleep .fm-app-card-deco {
  bottom: -6px;
  right: 4px;
}
.fm-app-card--sleep .fm-app-card-icon {
  width: 46px;
  height: 46px;
  opacity: 0.8;
}

/* Calm: zen stones — large hero illustration, fills bottom half */
.fm-app-card--calm .fm-app-card-deco {
  top: 38px;
  left: 50%;
  transform: translateX(-50%);
}
.fm-app-card--calm .fm-app-card-icon {
  width: 210px;
  height: 210px;
  opacity: 1;
}

/* Explore: magnifying glass — right side, large, centred vertically */
.fm-app-card--explore .fm-app-card-deco {
  right: 4px;
  bottom: -8px;
}
.fm-app-card--explore .fm-app-card-icon {
  width: 115px;
  height: 115px;
  opacity: 0.92;
}

/* Reset: near black */
.fm-app-card--reset { background: #1a0e38; min-height: 44px; }
.fm-app-card--reset .fm-app-card-title { color: #fff; }
.fm-app-card--reset .fm-app-card-sub   { color: rgba(255,255,255,0.55); }
/* Calm: warm yellow */
.fm-app-card--calm { background: #e8c832; min-height: 44px; }
.fm-app-card--calm .fm-app-card-title { color: #3d2b00; }
.fm-app-card--calm .fm-app-card-sub   { color: rgba(61,43,0,0.62); }
/* Sleep: soft lavender */
.fm-app-card--sleep { background: #c4b8f5; min-height: 44px; }
.fm-app-card--sleep .fm-app-card-title { color: #2d1f6e; }
.fm-app-card--sleep .fm-app-card-sub   { color: rgba(45,31,110,0.62); }
/* Explore: periwinkle — same height as Focus */
.fm-app-card--explore {
  background: linear-gradient(145deg, #eaedff 0%, #c8d2ff 60%, #b8c4ff 100%);
  min-height: 88px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}
.fm-app-card--explore .fm-app-card-body {
  max-width: 50%;
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
  z-index: 1;
}
.fm-app-card--explore .fm-app-card-title { color: #1a2d70; }
.fm-app-card--explore .fm-app-card-sub   { color: rgba(26,45,112,0.62); }

/* ── More actions section ── */
.fm-more-actions {
  flex-shrink: 0;
  padding: 6px 0 2px;
}
.fm-more-actions-label {
  font-size: 7px;
  font-weight: 700;
  color: #9990b8;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.fm-more-actions-grid {
  display: flex;
  gap: 5px;
}
.fm-action-tile {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}
.fm-action-tile span:last-child {
  font-size: 6px;
  font-weight: 600;
  color: #3d2d70;
  text-align: center;
}
.fm-action-tile-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fm-action-tile-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* Bottom nav bar */
.fm-app-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: #fff;
  border-top: 1px solid rgba(116,68,242,0.07);
  padding: 5px 2px 3px;
  flex-shrink: 0;
}
.fm-app-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 2px 4px;
}
.fm-app-nav-btn span:last-child { font-size: 6px; font-weight: 600; color: #b0a4cc; }
.fm-app-nav-btn.is-active span:last-child { color: #7444f2; }
.fm-app-nav-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b0a4cc;
}
.fm-app-nav-icon svg { width: 14px; height: 14px; }
.fm-app-nav-btn.is-active .fm-app-nav-icon {
  background: #ede8ff;
  border-radius: 8px;
  color: #7444f2;
}

/* ── GROW screen ──────────────────────────────────────── */
.fm-grow {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 6px 4px 0;
  gap: 6px;
}
.fm-grow-title {
  font-size: 11px;
  font-weight: 700;
  color: #1e1630;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}
.fm-grow-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(116,68,242,0.1);
  border-radius: 8px;
  padding: 8px 10px;
}
.fm-grow-check {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1.5px solid rgba(116,68,242,0.3);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  color: #fff;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.fm-grow-item.done .fm-grow-check {
  background: #7444f2;
  border-color: #7444f2;
}
.fm-grow-text {
  font-size: 9.5px;
  color: #4b5563;
  font-weight: 500;
}
.fm-grow-item.done .fm-grow-text {
  color: #9a8fbe;
  text-decoration: line-through;
  text-decoration-color: rgba(116,68,242,0.3);
}
.fm-grow-streak {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(116,68,242,0.08) 0%, rgba(116,68,242,0.04) 100%);
  border: 1px solid rgba(116,68,242,0.12);
  border-radius: 8px;
  padding: 8px 10px;
  margin-top: 2px;
}
.fm-grow-streak-n {
  font-size: 18px;
  font-weight: 800;
  color: #7444f2;
  line-height: 1;
}
.fm-grow-streak-l {
  font-size: 9px;
  color: #6b7280;
  line-height: 1.4;
}

/* ── Breathe panel ───────────────────────────────────────── */
.fm-breathe {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  gap: 10px;
  padding: 8px 4px;
  background: linear-gradient(160deg, #f3f0ff 0%, #ece8ff 100%);
}
.fm-breathe-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7444f2;
  opacity: 0.7;
  margin-bottom: -4px;
}
.fm-breathe-ring {
  position: relative;
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.fm-breathe-ripple {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(116,68,242,0.25);
  transform: scale(1);
  opacity: 0;
  pointer-events: none;
}
.fm-breathe-circle {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, rgba(255,255,255,0.9) 0%, rgba(116,68,242,0.22) 100%);
  border: 1.5px solid rgba(116,68,242,0.35);
  box-shadow: 0 4px 20px rgba(116,68,242,0.18);
  transform: scale(1);
  transition: transform 4s cubic-bezier(0.45, 0, 0.55, 1),
              box-shadow 4s cubic-bezier(0.45, 0, 0.55, 1);
}
.fm-breathe-count {
  position: relative;
  font-size: 20px;
  font-weight: 800;
  color: #7444f2;
  line-height: 1;
  pointer-events: none;
  z-index: 1;
}
.fm-breathe-phase {
  font-size: 11px;
  font-weight: 600;
  color: #4b3a8c;
  letter-spacing: 0.02em;
  min-height: 14px;
}
.fm-breathe-hint {
  font-size: 8px;
  color: #9a8fbe;
  letter-spacing: 0.04em;
}

/* Running states */
.fm-breathe-ring.state-inhale .fm-breathe-circle {
  transform: scale(1.38);
  box-shadow: 0 6px 28px rgba(116,68,242,0.3);
}
.fm-breathe-ring.state-hold-in .fm-breathe-circle,
.fm-breathe-ring.state-hold-out .fm-breathe-circle {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.fm-breathe-ring.state-hold-in .fm-breathe-circle {
  transform: scale(1.38);
  box-shadow: 0 6px 28px rgba(116,68,242,0.3);
}
.fm-breathe-ring.state-exhale .fm-breathe-circle {
  transform: scale(1);
  box-shadow: 0 4px 20px rgba(116,68,242,0.18);
}

/* Ripple pulse on hold */
@keyframes fm-ripple {
  0%   { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.6); opacity: 0; }
}
.fm-breathe-ring.state-hold-in .fm-breathe-ripple,
.fm-breathe-ring.state-hold-out .fm-breathe-ripple {
  animation: fm-ripple 1.2s ease-out infinite;
}

/* ── "Tap to try" annotation ────────────────────────────── */
.fm-teaser-right {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fm-try-hint {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  color: #BEC8F9;
  transform: rotate(-6deg);
  transform-origin: 30% top;
  pointer-events: none;
  user-select: none;
  padding-left: 6px;
  margin-bottom: 6px;
}

.fm-try-hint__text {
  font-family: 'Caveat', cursive;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.fm-try-hint__arrow {
  width: 38px;
  height: 46px;
  margin-left: 8px;
  opacity: 0.85;
}

/* Hide annotation on tablet/mobile where layout reflows */
@media (max-width: 860px) {
  .fm-try-hint { display: none; }
}
