/* funnel.css — cold-traffic funnel UI: reusable funnel card + locked teasers.
   Additive layer. Theme-aware via existing CSS vars (--accent etc). */

/* ── Reusable funnel card ── */
.funnel-backdrop{
  position:fixed; inset:0; z-index:9000;
  display:flex; align-items:center; justify-content:center;
  background:rgba(8,7,6,.62);
  backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px);
  padding:24px;
  animation:funnelFade .28s ease;
}
@keyframes funnelFade{ from{opacity:0} to{opacity:1} }

.funnel-card{
  position:relative;
  width:min(400px, 92vw);
  background:linear-gradient(180deg, rgba(30,27,23,.98), rgba(20,18,16,.98));
  border:1px solid color-mix(in srgb, var(--accent, #E8A84C) 22%, transparent);
  border-radius:22px;
  padding:34px 28px 26px;
  text-align:center;
  box-shadow:0 24px 60px -12px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.03) inset;
  animation:funnelRise .34s cubic-bezier(.2,.8,.2,1);
}
@keyframes funnelRise{ from{opacity:0; transform:translateY(14px) scale(.98)} to{opacity:1; transform:none} }

.funnel-x{
  position:absolute; top:14px; right:16px;
  background:none; border:none; cursor:pointer;
  color:var(--text, #efe9e0); opacity:.35; font-size:15px;
  transition:opacity .2s;
}
.funnel-x:hover{ opacity:.8; }

.funnel-emoji{ font-size:40px; line-height:1; margin-bottom:14px; }
.funnel-title{
  font-family:'Playfair Display', Georgia, serif;
  font-size:22px; font-weight:500;
  color:var(--text, #f4efe6);
  margin-bottom:10px;
}
.funnel-sub{
  font-family:'Instrument Sans', system-ui, sans-serif;
  font-size:14px; line-height:1.55;
  color:var(--text, #efe9e0); opacity:.62;
  margin-bottom:20px;
}
.funnel-sub b{ opacity:.95; font-weight:600; }

/* Offer price block */
.funnel-price{ margin:-4px 0 20px; }
.funnel-price-new{
  font-family:'Playfair Display', serif;
  font-size:30px; font-weight:600;
  color:var(--accent, #E8A84C);
}
.funnel-price-old{
  font-size:16px; opacity:.45;
  text-decoration:line-through;
  margin-left:8px; color:var(--text,#efe9e0);
}
.funnel-price-hint{ font-size:12px; opacity:.4; margin-left:6px; color:var(--text,#efe9e0); }
.funnel-price-exp{
  margin-top:8px; font-size:12px; letter-spacing:.3px;
  opacity:.5; color:var(--text,#efe9e0);
}

.funnel-primary{
  display:block; width:100%;
  padding:13px 18px; margin-bottom:8px;
  background:var(--accent, #E8A84C);
  color:#1a1712; border:none; border-radius:13px;
  font-family:'Instrument Sans', sans-serif;
  font-size:14.5px; font-weight:600; cursor:pointer;
  transition:transform .15s ease, filter .2s ease;
}
.funnel-primary:hover{ transform:translateY(-1px); filter:brightness(1.06); }
.funnel-secondary{
  display:block; width:100%;
  padding:10px; background:none; border:none;
  color:var(--text, #efe9e0); opacity:.45;
  font-family:'Instrument Sans', sans-serif; font-size:13px; cursor:pointer;
  transition:opacity .2s;
}
.funnel-secondary:hover{ opacity:.75; }

@media (prefers-reduced-motion: reduce){
  .funnel-backdrop, .funnel-card{ animation:none; }
}

/* ── Locked history teasers (free tier: 7-day stats + habit heatmaps gated) ── */
.stats-history-locked{
  cursor:pointer;
  opacity:.9;
  border:1px dashed var(--accent, #E8A84C);
  border-radius:10px;
}
.stats-history-locked:hover{ opacity:1; }
.stats-history-locked .stats-history-pill{
  background:var(--accent, #E8A84C);
  color:#000;
  font-weight:600;
}
.habit-hm-locked{
  cursor:pointer;
  text-align:center;
  padding:22px 16px;
  border:1px dashed var(--accent, #E8A84C);
  border-radius:12px;
  line-height:1.5;
  font-size:13px;
  opacity:.92;
}
.habit-hm-locked:hover{ opacity:1; }
.habit-hm-locked-cta{
  display:inline-block;
  margin-top:8px;
  padding:6px 14px;
  border-radius:999px;
  background:var(--accent, #E8A84C);
  color:#000;
  font-weight:600;
}

/* ── Session-end auto-break countdown bar (in breakToast) ── */
.end-countdown{
  height:4px;
  width:100%;
  margin:8px 0 4px;
  border-radius:2px;
  background:rgba(255,255,255,.15);
  overflow:hidden;
}
.end-countdown-fill{
  display:block;
  height:100%;
  width:100%;
  background:var(--accent, #E8A84C);
  transform-origin:left center;
  animation:endCountdownShrink 5s linear forwards;
}
@keyframes endCountdownShrink{ from{ transform:scaleX(1); } to{ transform:scaleX(0); } }

/* Widen the setting select (base .setting-input is sized for number inputs) */
.setting-select{ width:auto; min-width:150px; max-width:210px; text-align:left; cursor:pointer; }
