/* ============================================================
   Marrow public demo preview
   ------------------------------------------------------------
   A curated, framed taste of the coach platform for a cold
   website visitor. Two revealed moments, then a hard wall.
   No new brand tokens. Everything inherits from /css/styles.css.
   ============================================================ */

.pv-body {
  margin: 0;
  background: var(--bone-black);
  color: var(--bone-cream);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

*, *::before, *::after { box-sizing: border-box; }

/* skip link inherits styles.css .skip-link if present; fallback below */
.skip-link {
  position: absolute;
  top: -48px;
  left: 0;
  background: var(--bone-white);
  color: var(--bone-black);
  padding: 10px 16px;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 12px;
  z-index: 400;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { top: 0; }

/* ---------- ambient backdrop ---------- */
.pv-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.pv-lattice {
  position: absolute;
  inset: -10%;
  background-image:
    linear-gradient(rgba(251, 248, 242, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(251, 248, 242, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 28%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 28%, #000 0%, transparent 78%);
}
.pv-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
}
.pv-g1 {
  width: 540px; height: 540px;
  background: var(--marrow-red);
  top: -180px; left: -120px;
}
.pv-g2 {
  width: 420px; height: 420px;
  background: var(--marrow-red-glow);
  top: 40%; right: -160px;
  opacity: 0.32;
}

/* ---------- nav ---------- */
.pv-nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 22px 24px;
}
.pv-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--bone-white);
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.pv-brand svg { width: 30px; height: 30px; display: block; }
.pv-nav-tag {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--steel-light);
  border: 1px solid var(--line-dark);
  padding: 6px 12px;
  border-radius: 999px;
}

/* ---------- shared eyebrow ---------- */
.pv-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--marrow-red-glow);
  font-weight: 600;
  margin: 0 0 16px;
}
.pv-eyebrow-light { color: var(--bone-cream); opacity: 0.7; }

.em {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--marrow-red-glow);
}

/* ---------- intro ---------- */
.pv-intro {
  position: relative;
  z-index: 10;
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 24px 40px;
  text-align: center;
}
.pv-intro-h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 22px;
  color: var(--bone-white);
}
.pv-intro-sub {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.65;
  color: var(--steel-light);
  max-width: 60ch;
  margin: 0 auto 32px;
}
.pv-intro-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--steel-mid);
}
.pv-intro-cue svg {
  width: 20px;
  height: 20px;
  animation: pv-bob 2.4s ease-in-out infinite;
}
@keyframes pv-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* ---------- a revealed moment ---------- */
.pv-moment {
  position: relative;
  z-index: 10;
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px 24px 56px;
}
.pv-moment-alt { padding-top: 24px; }

.pv-moment-head {
  max-width: 720px;
  margin: 0 auto 36px;
  text-align: center;
}
.pv-moment-step {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--marrow-red-glow);
  font-weight: 600;
  margin: 0 0 14px;
}
.pv-moment-h {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(26px, 4.2vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.012em;
  margin: 0 0 18px;
  color: var(--bone-white);
}
.pv-moment-lede {
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.66;
  color: var(--steel-light);
  max-width: 58ch;
  margin: 0 auto;
}

/* ---------- the browser frame around a screen ---------- */
.pv-frame {
  margin: 0 auto;
  max-width: 900px;
  background: var(--bone-white);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 2px 0 rgba(251, 248, 242, 0.06),
    0 30px 70px -28px rgba(0, 0, 0, 0.85),
    0 10px 28px -16px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(251, 248, 242, 0.08);
}
.pv-frame-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  background: var(--bone-cream);
  border-bottom: 1px solid var(--line);
}
.pv-frame-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--steel-light);
}
.pv-frame-url {
  margin-left: 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--steel);
  letter-spacing: 0.02em;
}

/* the screen surface itself: a faithful still of the dashboard look.
   It is not interactive. preview.js renders into .pv-screen. */
.pv-screen {
  position: relative;
  background: var(--bone-cream);
  padding: 26px 24px 64px;
  min-height: 280px;
  /* nothing inside the screen is reachable: it is a still */
  user-select: none;
  -webkit-user-select: none;
}

/* the fade at the bottom edge: signals there is more dashboard
   below the frame than the preview reveals */
.pv-screen-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 96px;
  background: linear-gradient(
    to bottom,
    rgba(239, 233, 220, 0) 0%,
    rgba(239, 233, 220, 0.75) 55%,
    var(--bone-cream) 100%
  );
  pointer-events: none;
}

.pv-frame-cap {
  background: var(--bone-white);
  border-top: 1px solid var(--line);
  padding: 14px 20px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.01em;
  color: var(--steel);
  text-align: center;
}

.pv-moment-note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 640px;
  margin: 32px auto 0;
  font-size: clamp(15px, 1.8vw, 16.5px);
  line-height: 1.6;
  color: var(--bone-cream);
}
.pv-note-bar {
  flex: none;
  width: 12px;
  height: 2px;
  margin-top: 12px;
  background: var(--marrow-red-glow);
}

/* ============================================================
   The dashboard still (Moment 1: roster at a glance)
   These mimic the real coach dashboard cards but rendered
   light-on-cream, populated, non-interactive.
   ============================================================ */
.pvs-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.pvs-greet {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(19px, 2.6vw, 24px);
  color: var(--bone-black);
  letter-spacing: -0.01em;
}
.pvs-greet span {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 4px;
}
.pvs-date {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--steel);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.pvs-card {
  background: var(--bone-white);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 20px 20px 18px;
  margin-bottom: 14px;
}
.pvs-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.pvs-card-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--marrow-red);
  font-weight: 600;
  margin: 0 0 4px;
}
.pvs-card-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  color: var(--bone-black);
  margin: 0;
  letter-spacing: -0.005em;
}
.pvs-card-count {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--steel);
}

/* needs-review rows */
.pvs-need {
  display: flex;
  gap: 13px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.pvs-need:first-of-type { border-top: none; padding-top: 4px; }
.pvs-need-dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-top: 5px;
  background: var(--steel-light);
}
.pvs-need-dot.is-pr { background: #2F7D4F; }
.pvs-need-dot.is-missed { background: var(--marrow-red); }
.pvs-need-dot.is-onboard { background: #B0822E; }
.pvs-need-body { min-width: 0; }
.pvs-need-kind {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--steel);
  margin: 0 0 3px;
}
.pvs-need-name {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--bone-black);
}
.pvs-need-line {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ash);
  margin: 3px 0 0;
}

/* kpi grid */
.pvs-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.pvs-kpi {
  background: var(--bone-cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 12px;
  text-align: center;
}
.pvs-kpi-label {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--steel);
  margin-bottom: 6px;
}
.pvs-kpi-value {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  color: var(--bone-black);
}

/* ============================================================
   The signal still (Moment 2: the drift before the leave)
   ============================================================ */
.pvs-signal-card {
  background: var(--bone-white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--marrow-red);
  border-radius: 0 13px 13px 0;
  padding: 22px 22px 20px;
}
.pvs-signal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.pvs-signal-flag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--marrow-red);
}
.pvs-signal-flag svg { width: 14px; height: 14px; }
.pvs-signal-strength {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--steel);
}
.pvs-signal-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(20px, 3vw, 26px);
  color: var(--bone-black);
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}
.pvs-signal-kind {
  font-size: 14px;
  color: var(--marrow-red);
  font-weight: 600;
  margin: 0 0 14px;
}
.pvs-signal-context {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ash);
  margin: 0 0 18px;
  padding: 13px 15px;
  background: var(--bone-cream);
  border-radius: 9px;
}
.pvs-signal-context strong {
  color: var(--bone-black);
  font-weight: 700;
}

/* the drift meter */
.pvs-meter {
  margin: 0 0 18px;
}
.pvs-meter-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--steel);
  margin-bottom: 6px;
}
.pvs-meter-track {
  height: 7px;
  border-radius: 999px;
  background: var(--bone-cream);
  border: 1px solid var(--line);
  overflow: hidden;
}
.pvs-meter-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--marrow-red), var(--marrow-red-glow));
  transition: width 900ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* the drafted message block */
.pvs-draft-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--steel);
  margin-bottom: 8px;
}
.pvs-draft-label svg { width: 13px; height: 13px; }
.pvs-draft {
  background: var(--bone-cream);
  border: 1px dashed var(--steel-light);
  border-radius: 10px;
  padding: 15px 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ash);
}
.pvs-draft-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  vertical-align: -2px;
  background: var(--marrow-red);
  margin-left: 1px;
  animation: pv-blink 1s step-end infinite;
}
@keyframes pv-blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}
.pvs-signal-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
/* these look like buttons but are stills. They do nothing. */
.pvs-fauxbtn {
  flex: 1;
  text-align: center;
  padding: 11px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  font-family: var(--sans);
  cursor: default;
}
.pvs-fauxbtn-primary {
  background: var(--bone-black);
  color: var(--bone-white);
}
.pvs-fauxbtn-ghost {
  background: transparent;
  color: var(--steel);
  border: 1px solid var(--line);
}

/* ============================================================
   The tease grid: locked surfaces
   ============================================================ */
.pv-tease {
  position: relative;
  z-index: 10;
  max-width: 1000px;
  margin: 0 auto;
  padding: 56px 24px 24px;
}
.pv-tease-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 36px;
}
.pv-tease-h {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.012em;
  margin: 0 0 16px;
  color: var(--bone-white);
}
.pv-tease-sub {
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.6;
  color: var(--steel-light);
  margin: 0;
}
.pv-tease-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.pv-tease-card {
  position: relative;
  background: rgba(251, 248, 242, 0.035);
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  padding: 26px 22px 24px;
  overflow: hidden;
}
/* soft blur veil over the locked card content */
.pv-tease-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(10, 9, 8, 0.0) 0%,
    rgba(10, 9, 8, 0.28) 100%
  );
  pointer-events: none;
}
.pv-lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(139, 24, 40, 0.16);
  color: var(--marrow-red-glow);
  margin-bottom: 14px;
}
.pv-lock svg { width: 19px; height: 19px; }
.pv-tease-card h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  color: var(--bone-white);
  letter-spacing: -0.005em;
  margin: 0 0 7px;
}
.pv-tease-card p {
  font-size: 13.5px;
  line-height: 1.58;
  color: var(--steel-light);
  margin: 0;
}

/* ============================================================
   The hard wall: end CTA
   ============================================================ */
.pv-wall {
  position: relative;
  z-index: 10;
  padding: 56px 24px 72px;
}
.pv-wall-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bone-white);
  border-radius: 22px;
  padding: clamp(36px, 6vw, 56px) clamp(26px, 5vw, 52px);
  text-align: center;
  box-shadow: 0 40px 90px -36px rgba(0, 0, 0, 0.9);
}
.pv-wall-card .pv-eyebrow-light {
  color: var(--marrow-red);
  opacity: 1;
}
.pv-wall-h {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(26px, 4.4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.014em;
  margin: 0 0 18px;
  color: var(--bone-black);
}
.pv-wall-h .em { color: var(--marrow-red); }
.pv-wall-sub {
  font-size: clamp(15px, 1.9vw, 17.5px);
  line-height: 1.65;
  color: var(--ash);
  max-width: 52ch;
  margin: 0 auto 30px;
}
.pv-wall-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.pv-cta-primary {
  display: inline-block;
  padding: 17px 30px;
  background: var(--bone-black);
  color: var(--bone-white);
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15.5px;
  text-decoration: none;
  transition: opacity 120ms ease;
}
.pv-cta-primary:hover,
.pv-cta-primary:focus-visible { opacity: 0.9; }
.pv-cta-secondary {
  display: inline-block;
  padding: 17px 26px;
  background: transparent;
  color: var(--bone-black);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: border-color 120ms ease;
}
.pv-cta-secondary:hover,
.pv-cta-secondary:focus-visible { border-color: var(--bone-black); }
.pv-wall-foot {
  font-size: 13px;
  line-height: 1.55;
  color: var(--steel);
  margin: 24px auto 0;
  max-width: 46ch;
}

/* ---------- footer ---------- */
.pv-foot {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--line-dark);
  max-width: 1080px;
  margin: 0 auto;
  padding: 26px 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--steel-mid);
}
.pv-foot-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.pv-foot-links a {
  color: var(--steel-light);
  text-decoration: none;
}
.pv-foot-links a:hover,
.pv-foot-links a:focus-visible { color: var(--bone-white); }

/* ---------- entrance reveal ---------- */
.pv-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms ease, transform 620ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.pv-reveal.pv-in {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .pv-tease-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .pv-intro { padding-top: 36px; }
  .pv-moment { padding: 32px 18px 40px; }
  .pv-tease { padding: 40px 18px 16px; }
  .pv-wall { padding: 40px 18px 56px; }
  .pv-tease-grid { grid-template-columns: 1fr; }
  .pvs-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .pv-screen { padding: 20px 16px 56px; }
  .pvs-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .pv-wall-ctas { flex-direction: column; }
  .pv-cta-primary, .pv-cta-secondary { width: 100%; }
  .pv-foot { flex-direction: column; align-items: flex-start; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .pv-reveal { opacity: 1; transform: none; }
  .pvs-meter-fill { transition: none !important; }
  .pvs-draft-cursor { animation: none !important; opacity: 1; }
}
