/* premium-intel-teaser.css — Locked intel preview blocks for workspace surfaces.
 * Color tokens hardcoded (dashboard.html loads dashboard.css, not homepage-v7.css).
 * Forest: #1F3D2A  Sienna: #7A4524  Parchment: #FAF7F2  SiennaLight: #F5EDE5
 */

/* ── Container ─────────────────────────────────────────────────────────── */
.pit {
  position: relative;
  background: #FDF8F3; /* warm parchment tint */
  border-left: 3px solid #7A4524; /* sienna */
  border-radius: 0 6px 6px 0;
  padding: 12px 16px 12px 14px;
  margin: 10px 0;
  font-size: 13px;
  line-height: 1.5;
}

/* Premium variant — subtle info card, no lock styling */
.pit.pit--premium {
  background: #F0F6F2; /* light forest tint */
  border-left-color: #1F3D2A; /* forest */
}

/* ── Dismiss button ────────────────────────────────────────────────────── */
/* P1-6 / P2 (2026-05-11): expanded to "Not now" text link. Hit area
   raised to ≥36px (44px on mobile) via padding. Glyph kept small. */
.pit__dismiss {
  position: absolute;
  top: 6px;
  right: 8px;
  background: none;
  border: none;
  color: #9CA3AF;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  padding: 8px 6px;
  min-width: 36px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  transition: color 0.15s;
}
.pit__dismiss:hover,
.pit__dismiss:focus-visible {
  color: #374151;
  outline: 2px solid #374151;
  outline-offset: 1px;
}

/* R6-8 (2026-05-11): on narrow mobile the absolute-positioned "Not now"
   overlaps the lock headline. Switch to relative flow below the headline. */
@media (max-width: 480px) {
  .pit {
    /* Make room for the dismiss button stacking in flow (not absolute). */
    padding-right: 12px;
  }
  .pit__dismiss {
    /* Pull dismiss out of absolute + stack it after the lock row as a
       full-width text-right link. */
    position: static;
    display: block;
    text-align: right;
    min-width: unset;
    min-height: 44px;
    padding: 6px 0;
    font-size: 12px;
    width: 100%;
    margin-top: 4px;
  }
  .pit__lock {
    /* Ensure lock row doesn't try to share a row with absolute dismiss. */
    padding-right: 0;
  }
}

/* ── Lock headline ─────────────────────────────────────────────────────── */
.pit__lock {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-weight: 600;
  color: #1F3D2A; /* forest */
  font-size: 13px;
}

.pit__lock-icon {
  font-size: 14px;
  flex-shrink: 0;
}

.pit__lock-headline {
  flex: 1;
}

/* ── Body copy (free users) ────────────────────────────────────────────── */
.pit__free-copy {
  color: #4B5563;
  font-size: 12px;
  margin-bottom: 10px;
}

/* ── Fake progress bar — visually obviously fake ───────────────────────── */
.pit__fake-bar {
  height: 8px;
  background: linear-gradient(90deg, #C9B99A 0%, #C9B99A 62%, #E5DFD6 62%);
  border-radius: 4px;
  opacity: 0.45; /* obviously fake: low opacity */
  margin-bottom: 10px;
}

/* ── Blurred text placeholder lines ───────────────────────────────────── */
.pit__blurred {
  font-size: 12px;
  color: #374151;
  /* 6px: 3px was LEGIBLE in plain screenshots — a fabricated placeholder is a
     claim and the blur is what makes it honest (post-ship review 2026-08-29). */
  filter: blur(6px);
  user-select: none;
  margin-bottom: 6px;
  line-height: 1.4;
  /* ⚠ pointer-events:none was here "so users can't un-blur by selecting" — it
     also made the F4 click-to-upsell wiring DEAD for every real pointer since
     2026-06-06 (synthetic .click() in harnesses bypassed it, so tests passed
     vacuously). user-select:none already prevents selection; clicks must land. */
  cursor: pointer;
}

/* ── CTA button (was <a>, now <button> so GCUpgrade.goToPremium() wires cleanly) */
.pit__cta {
  display: inline-block;
  margin-top: 8px;
  color: #7A4524; /* sienna */
  font-size: 13px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s;
  /* button reset — matches former <a> appearance */
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  line-height: inherit;
}
.pit__cta:hover {
  color: #1F3D2A; /* forest on hover */
}
/* R6-4 (2026-05-11): visible focus ring on the upgrade CTA for keyboard users. */
.pit__cta:focus-visible {
  color: #1F3D2A;
  outline: 2px solid #7A4524;
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Premium real-data label ───────────────────────────────────────────── */
.pit__premium-label {
  font-weight: 600;
  color: #1F3D2A;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

/* ── Premium real value text ───────────────────────────────────────────── */
.pit__real-value {
  color: #1F2937;
  font-size: 13px;
  line-height: 1.5;
}

/* ── Premium real bullet list ──────────────────────────────────────────── */
.pit__real-list {
  margin: 0;
  padding-left: 18px;
  color: #1F2937;
  font-size: 13px;
  line-height: 1.6;
}

/* ── Reduced motion ────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .pit *, .pit { transition: none !important; }
}

/* ── Mobile ────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .pit {
    padding: 10px 12px 10px 10px;
    font-size: 12px;
  }

  .pit__cta {
    font-size: 12px;
  }

  .pit__blurred {
    font-size: 11px;
  }
}
