/* ===================================================================
   Pop-ups v2 (Conner, 2026-11-02). One centered white card over a light
   dim; the part of the Profile it's about lifts above the dim with a blue
   ring. Mascot cloud on top, Bricolage headline, one black pill, the close
   is an X in a light circle. Milestones get soft art; trial cards split.
   Only the look: what shows, when and what it does stays in the JS.
   =================================================================== */
:root { --pv-card: #FFFFFF; --pv-soft: #F4F6F9; --pv-ink: #0E1116; --pv-mut: #646B78; --pv-line: #E6E8EC; --pv-blue: #1570EF; --pv-green: #12B76A; --pv-orange: #F97316; }
html.dark { --pv-card: #16171A; --pv-soft: #1F2126; --pv-ink: #F4F5F7; --pv-mut: #9AA0AA; --pv-line: #2A2D33; }

.pv-veil { position: fixed; inset: 0; z-index: 72; background: rgba(15, 17, 21, 0.18); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
html.dark .pv-veil { background: rgba(0, 0, 0, 0.42); }
.pv-lift { position: relative; z-index: 73 !important; border-radius: 18px; box-shadow: 0 0 0 2px var(--pv-blue), 0 0 0 6px rgba(21, 112, 239, 0.18), 0 10px 30px rgba(14, 17, 22, 0.14) !important; }
.pv-lift.pv-green { box-shadow: 0 0 0 2px var(--pv-green), 0 0 0 6px rgba(18, 183, 106, 0.18), 0 10px 30px rgba(14, 17, 22, 0.14) !important; }
.pf-knows.pv-lift { border-radius: 20px; background: var(--page); }
.tl-setup-pill.pv-lift, .td-setup-pill.pv-lift, .sc-pill.pv-lift { border-radius: 999px; }

/* The card. */
.pv-card { position: fixed !important; z-index: 75 !important; left: 50% !important; top: 50% !important; right: auto !important; bottom: auto !important; transform: translate(-50%, -50%) !important;
  width: min(440px, calc(100vw - 32px)) !important; max-height: calc(100vh - 48px) !important; overflow-y: auto; box-sizing: border-box;
  margin: 0; padding: 34px 36px 30px !important; border: 0 !important; border-radius: 24px !important; background: var(--pv-card) !important; color: var(--pv-ink) !important;
  box-shadow: 0 30px 80px rgba(14, 17, 22, 0.22), 0 2px 8px rgba(14, 17, 22, 0.06) !important; text-align: center; font-family: var(--sans); }
.pv-card.pv-left { text-align: left; }
.pv-x { position: absolute !important; top: 16px !important; right: 16px !important; width: 32px !important; height: 32px !important; margin: 0 !important; padding: 0 !important; z-index: 2;
  display: grid; place-items: center; border: 0 !important; border-radius: 50% !important; background: var(--pv-soft) !important; color: var(--pv-mut) !important; font: 400 20px/1 var(--sans) !important; cursor: pointer; }
.pv-x:hover { color: var(--pv-ink) !important; }
.pv-x-light { background: rgba(255, 255, 255, 0.8) !important; color: #4A505B !important; }
.pv-mark { position: relative; display: flex; justify-content: center; margin: 0 auto 18px; width: max-content; }
.pv-left .pv-mark { margin-left: 0; }
.pv-count { position: absolute; right: -10px; top: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--pv-blue); color: #fff; font: 700 12px/22px var(--sans); text-align: center; border: 2px solid var(--pv-card); box-sizing: content-box; }
.pv-card h2.pv-h, .pv-card h1.pv-h, .pv-h { margin: 0 !important; font: 800 30px/1.1 var(--head) !important; letter-spacing: -0.02em; color: var(--pv-ink) !important; text-transform: none !important;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pv-h-quiet { color: #9AA0AA; }
.pv-card p.pv-p, .pv-p { margin: 12px 0 0 !important; font: 400 15px/1.5 var(--sans) !important; color: var(--pv-mut) !important; }
.pv-fine, .pv-card p.pv-fine { margin: 14px 0 0 !important; font: 400 12px/1.5 var(--sans) !important; color: var(--pv-mut) !important; }
.pv-primary, .pv-card .pu-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 24px; padding: 13px 26px !important; min-height: 0; border: 0 !important; border-radius: 999px !important;
  background: var(--pv-ink) !important; color: var(--pv-card) !important; font: 600 15px var(--sans) !important; cursor: pointer; }
.pv-notice { display: flex; gap: 12px; align-items: center; margin-top: 20px; padding: 12px 14px; text-align: left; border: 1px solid var(--pv-line); border-radius: 14px; background: var(--pv-card); box-shadow: 0 2px 8px rgba(14, 17, 22, 0.05); }
.pv-notice-i { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(21, 112, 239, 0.1); color: var(--pv-blue); font: 700 12px var(--mono, monospace); }
.pv-notice b { display: block; font: 600 14px var(--sans); color: var(--pv-ink); }
.pv-notice small { display: block; font-size: 12px; color: var(--pv-mut); }

/* Milestones: soft art across the top. */
.pv-milestone { padding: 0 !important; overflow: hidden; }
.pv-milestone .pv-pad { padding: 26px 36px 30px; }
.pv-art { position: relative; height: 150px; overflow: hidden; background: linear-gradient(120deg, #DCE9FF 0%, #EAF7F0 55%, #FFEBD9 100%); }
html.dark .pv-art { background: linear-gradient(120deg, #1B2A44 0%, #18302A 55%, #3A2A1E 100%); }
.pv-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
html.dark .pv-art svg { opacity: 0.55; }
.pv-art-cloud { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -40%); }
.pv-qa { list-style: none; margin: 20px 0 0; padding: 0; text-align: left; border-top: 1px solid var(--pv-line); }
.pv-qa li { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid var(--pv-line); }
.pv-qa-i { flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: rgba(21, 112, 239, 0.1); color: var(--pv-blue); font: 700 14px var(--sans); }
.pv-qa b { display: block; font: 600 14px var(--sans); color: var(--pv-ink); }
.pv-qa li > span:last-child > span { font-size: 13px; color: var(--pv-mut); }
.fp-done .fp-taste { margin: 0; padding: 0; border: 0; background: none; }
.fp-done .fp-taste .fp-btn { display: inline-flex; margin-top: 22px; padding: 13px 24px; border: 0; background: var(--pv-ink); color: var(--pv-card); font: 600 15px var(--sans); }
.pv-mini { display: flex; gap: 10px; margin-top: 20px; }
.pv-mini-c { flex: 1; padding: 12px; text-align: left; border: 1px solid var(--pv-line); border-radius: 16px; }
.pv-mini-c b, .pv-b3 b { display: block; font: 800 26px var(--head); letter-spacing: -0.02em; }
.pv-mini-c span, .pv-b3 span { display: block; font-size: 12px; line-height: 1.35; color: var(--pv-mut); }
.pv-n-b { color: var(--pv-blue); } .pv-n-o { color: var(--pv-orange); } .pv-n-g { color: var(--pv-green); }

/* The first-pass review and the setup card: left aligned, the same card. */
.pv-card.fp-sheet { width: min(520px, calc(100vw - 32px)) !important; }
.pv-left .fp-top, .pv-left .sc-top { display: block; padding-right: 40px; }
.pv-left .fp-sheet h2, .fp-sheet.pv-left h2 { font: 800 26px/1.15 var(--head) !important; }
.pv-left .fp-prog, .pv-left .sc-prog { color: var(--pv-mut); }
.pv-left .fp-bar i { background: var(--pv-green); }
.pv-left .fp-gh { border: 0; padding: 14px 0 6px; }
.pv-left .fp-gh b { font: 600 14px var(--sans); color: var(--pv-ink); }
.pv-left .fp-row { padding: 10px 12px; margin-top: 6px; border: 1px solid var(--pv-line); border-radius: 14px; }
.pv-left .fp-text { color: var(--pv-ink); }
.pv-left .fp-btn { border: 0; background: var(--pv-ink); color: var(--pv-card); font: 600 13px var(--sans); }
.pv-left .fp-ghost { border: 1px solid var(--pv-line); background: var(--pv-card); color: var(--pv-ink); font: 600 13px var(--sans); }
.pv-left .fp-foot p, .pv-left .sc-text p { color: var(--pv-mut); }
.pv-left .fp-foot .fp-btn { background: none; color: var(--pv-mut); padding: 6px 0; }
.pv-left .sc-dash i { background: var(--pv-line); }
.pv-left .sc-dash i.on { background: var(--pv-green); }
.pv-left .sc-step { border-color: var(--pv-line); }
.pv-left .sc-step.on .sc-mark { background: var(--pv-ink); border-color: var(--pv-ink); color: var(--pv-card); }
.pv-left .sc-step.done .sc-mark { background: var(--pv-green); border-color: var(--pv-green); color: #fff; }
.pv-left .sc-text b { color: var(--pv-ink); }
.pv-left .sc-input { border: 1.5px solid var(--pv-ink); border-radius: 14px; background: var(--pv-card); color: var(--pv-ink); }
.pv-left .sc-row { flex-direction: column; align-items: stretch; }
.pv-left .sc-btn { border: 0; border-radius: 16px; padding: 14px; background: var(--pv-ink); color: var(--pv-card); font: 600 15px var(--sans); }
.pv-left .sc-btn.sc-ghost { background: none; color: var(--pv-mut); padding: 6px; font-size: 13.5px; }
.sc-done .pv-primary { margin-top: 24px; }

/* Trial end: a split card, the gray part holds Business. */
.pv-te.te { background: transparent !important; padding: 0 !important; }
.pv-split { padding: 0 !important; overflow: hidden; }
.pv-split .pv-pad { padding: 34px 32px 26px; }
.pv-kick { display: inline-flex !important; align-items: center; gap: 7px; margin: 0 0 14px !important; padding: 5px 11px; border-radius: 999px; background: rgba(249, 115, 22, 0.12); color: var(--pv-orange) !important; font: 600 12.5px var(--sans) !important; letter-spacing: 0 !important; text-transform: none !important; }
.pv-kick i { width: 7px; height: 7px; border-radius: 50%; background: var(--pv-orange); }
.pv-big3 { display: flex; gap: 10px; margin-top: 22px; }
.pv-b3 { flex: 1; padding: 12px 12px 10px; text-align: left; border: 1px solid var(--pv-line); border-radius: 16px; }
.pv-b3 .te-link { margin-top: 6px; padding: 0; border: 0; background: none; color: var(--pv-ink); font: 600 12px var(--sans); text-decoration: none; cursor: pointer; }
.pv-price { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin: 18px 0 0; }
.pv-price b { font: 800 34px var(--head); letter-spacing: -0.02em; color: var(--pv-ink); }
.pv-price span { color: var(--pv-mut); font-size: 14px; }
.pv-bottom { display: flex; gap: 16px; align-items: center; padding: 20px 30px 22px; text-align: left; background: var(--pv-soft); }
.pv-bottom-t { flex: 1; }
.pv-bottom-t b { display: block; font: 600 14.5px var(--sans); color: var(--pv-ink); }
.pv-bottom-t small { display: block; margin-top: 3px; font-size: 13px; line-height: 1.45; color: var(--pv-mut); }
.pv-ob { flex: none; padding: 9px 16px; border: 1px solid var(--pv-line); border-radius: 999px; background: var(--pv-card); color: var(--pv-ink); font: 600 13px var(--sans); text-decoration: none; white-space: nowrap; }

/* Phones: full width with 16px margins; the review is a bottom sheet. */
@media (max-width: 639px) {
  .pv-card { width: calc(100vw - 32px) !important; padding: 28px 22px 22px !important; }
  .pv-milestone .pv-pad, .pv-split .pv-pad { padding: 22px 22px 22px; }
  .pv-milestone, .pv-split { padding: 0 !important; }
  .pv-card h2.pv-h, .pv-card h1.pv-h, .pv-h { font-size: 26px !important; }
  .pv-card.fp-sheet.pv-left { top: auto !important; bottom: 0 !important; transform: translateX(-50%) !important; width: 100vw !important; max-height: 85vh !important; border-radius: 24px 24px 0 0 !important;
    padding-bottom: calc(22px + env(safe-area-inset-bottom)) !important; }
  .pv-big3 { gap: 8px; }
  .pv-bottom { padding: 18px 22px 20px; }
}
@media (prefers-reduced-motion: reduce) { .pv-veil { -webkit-backdrop-filter: none; backdrop-filter: none; } }
/* Only one black button on the review: each row's Yes is a quiet green check. */
.pv-left .fp-row .fp-btn { border: 1.5px solid rgba(18, 183, 106, 0.35); background: var(--pv-card); color: var(--pv-green); }
.pv-left .fp-row .fp-edit .fp-btn, .pv-left .fp-edit .fp-btn { background: var(--pv-ink); color: var(--pv-card); border: 0; }
.pv-qa li { flex-direction: row !important; }
.pv-card.fp-done { width: min(440px, calc(100vw - 32px)) !important; }
/* The ring sits inside the box (Conner, 2026-11-02: it was cut off where the
   page scrolls, since anything outside the box got clipped). */
.pv-lift { box-shadow: inset 0 0 0 2px var(--pv-blue), 0 8px 24px rgba(14, 17, 22, 0.10) !important; background: var(--card) !important; }
.pv-lift.pv-green { box-shadow: inset 0 0 0 2px var(--pv-green), 0 8px 24px rgba(14, 17, 22, 0.10) !important; }
.pf-knows.pv-lift { background: var(--card) !important; }
.td-learned.pv-lift { padding: 10px 12px 12px; }
/* Banners in color (Conner, 2026-11-02): solid brand blue with the cloud and
   a white pill; orange for the trial. */
.pu-banner.pv-banner { display: flex; align-items: center; gap: 12px; flex-wrap: nowrap; padding: 10px 10px 10px 12px; border: 0; border-radius: 18px;
  background: var(--pv-blue); color: #fff; font: 600 15px var(--sans); box-shadow: 0 10px 28px rgba(21, 112, 239, 0.28); }
.pv-banner .pv-banner-i { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.18); }
.pv-banner .pu-banner-text { flex: 1; min-width: 0; }
.pv-banner .pu-btn { flex: none; border: 0; padding: 10px 18px; border-radius: 999px; background: #fff; color: var(--pv-blue); font: 700 14px var(--sans); }
.pv-banner .pu-btn:hover { background: #F1F6FF; }
.pu-banner.pv-banner-orange { background: #F97316; box-shadow: 0 10px 28px rgba(249, 115, 22, 0.28); }
.pv-banner-orange .pu-btn { color: #C2410C; }
.pv-banner-orange .pu-btn:hover { background: #FFF4EC; }
@media (max-width: 639px) { .pu-banner.pv-banner { font-size: 14px; } .pv-banner .pu-btn { padding: 9px 14px; } }
/* ===================================================================
   Round 2 (Conner, 2026-11-02): every big pop-up wears the soft art
   header like "You're through setup"; the setup card fits the screen;
   a card that scrolls keeps its rounded shape; banners use the same soft
   colors instead of solid blue or orange.
   =================================================================== */
.pv-card { scrollbar-width: none; }
.pv-card::-webkit-scrollbar { display: none; }
.pv-art { height: 120px; flex: none; }
.pv-art-cloud { position: absolute; }
.pv-art .pv-count { right: -12px; top: -8px; }
.pv-milestone .pv-pad { padding: 22px 32px 26px; }
.pv-card.pv-wide { width: min(500px, calc(100vw - 32px)) !important; }
.pv-left .pv-pad .fp-top, .pv-left .pv-pad .sc-top { padding-right: 0; }
/* The setup card, compact: only the step you're on shows its line. */
.sc-card.pv-left .pv-h { font-size: 28px !important; }
.sc-card.pv-left .sc-intro { margin-top: 6px !important; font-size: 14px !important; }
.sc-card.pv-left .sc-prog { margin: 12px 0 8px; }
.sc-card.pv-left .sc-step { padding: 7px 0; grid-template-columns: 26px 1fr; align-items: center; }
.sc-card.pv-left .sc-step:not(.on) .sc-text p { display: none; }
.sc-card.pv-left .sc-step.on { align-items: start; padding: 10px 0 12px; }
.sc-card.pv-left .sc-mark { width: 24px; height: 24px; font-size: 12px; }
.sc-card.pv-left .sc-text b { font-size: 14.5px; }
.sc-card.pv-left .sc-body { margin-top: 8px; }
.sc-card.pv-left .sc-input { padding: 10px 14px; }
.sc-card.pv-left .sc-btn { padding: 12px; }
/* Banners in the soft art colors with dark words and a black pill. */
.pu-banner.pv-banner, .pu-banner.pv-banner-orange { background: linear-gradient(120deg, #DCE9FF 0%, #EAF7F0 55%, #FFEBD9 100%); color: var(--pv-ink); border: 1px solid rgba(14, 17, 22, 0.06);
  box-shadow: 0 8px 24px rgba(14, 17, 22, 0.10); }
html.dark .pu-banner.pv-banner, html.dark .pu-banner.pv-banner-orange { background: linear-gradient(120deg, #1B2A44 0%, #18302A 55%, #3A2A1E 100%); border-color: rgba(255, 255, 255, 0.06); }
.pv-banner .pv-banner-i { background: rgba(255, 255, 255, 0.7); }
html.dark .pv-banner .pv-banner-i { background: rgba(255, 255, 255, 0.9); }
.pv-banner .pu-btn, .pv-banner-orange .pu-btn { background: var(--pv-ink); color: var(--pv-card); }
.pv-banner .pu-btn:hover, .pv-banner-orange .pu-btn:hover { background: var(--pv-ink); opacity: 0.9; }
@media (max-width: 639px) {
  .pv-art { height: 96px; }
  .pv-milestone .pv-pad { padding: 18px 20px 22px; }
  .pv-card.fp-sheet.pv-left { padding: 0 !important; }
}
