/*
 * Homepage · Three ways in, version 2 (live; /?paths=v1 for the previous cards)
 * template-parts/section-paths-v2.php · assets/js/home-paths.js
 *
 * Found, booked, answered, priced: three paper cards on the hero's dark
 * ground, each opening on a small real proof the red pencil rings. Every
 * "before" state is scoped to .pv.is-live, which the script adds.
 */

.pv {
  --pv-red: #c62828;
  --pv-navy: #0f172a;
  --pv-green: #1E3D2F;
  --pv-hand: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive;
  position: relative;
  padding: 6.5rem 2rem 6rem;
  overflow-x: clip;
  color: #ffffff;
  background:
    radial-gradient(60% 45% at 50% 0%, rgba(201, 164, 74, 0.1) 0%, transparent 60%),
    radial-gradient(50% 50% at 100% 100%, rgba(30, 61, 47, 0.45) 0%, transparent 65%),
    #0b1222;
}
.pv-inner { max-width: 1200px; margin: 0 auto; }

/* ── Header ── */
.pv-head { max-width: 780px; margin: 0 auto; text-align: center; }
.pv-eyebrow { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 0 0 1.2rem; font-family: 'Space Mono', monospace; font-size: 0.8125rem; letter-spacing: 0.22em; text-transform: uppercase; color: #C9A44A; }
.pv-eyebrow::before, .pv-eyebrow::after { content: ''; width: 2.5rem; height: 1px; background: rgba(201, 164, 74, 0.5); }
.pv-h { margin: 0 0 1rem; font-family: 'Outfit', sans-serif; font-size: clamp(2rem, 3.6vw, 3.1rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; color: #ffffff; text-wrap: balance; }
.pv-h span { display: block; color: #e6c77e; }
.pv-sub { margin: 0 auto; font-family: 'Inter', sans-serif; font-size: 1.0625rem; line-height: 1.6; color: rgba(255, 255, 255, 0.72); }

/* ── "Where are you losing patients?" ── */
.pv-pick { margin: 2.1rem 0 2.6rem; text-align: center; }
.pv-pick[hidden] { display: none; }
.pv-pick-q { margin: 0 0 0.8rem; font-family: var(--pv-hand); font-size: 1.6rem; font-weight: 700; line-height: 1; color: #e6c77e; }
.pv-pick-opts { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.55rem; }
.pv-opt {
  padding: 0.65rem 1.15rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.pv-opt:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.4); }
.pv-opt[aria-pressed="true"] { color: var(--pv-navy); background: #fffdf8; border-color: #e6c77e; }
.pv-opt:focus-visible { outline: 2px solid #e6c77e; outline-offset: 3px; }
.pv-pick[hidden] + .pv-grid { margin-top: 3rem; }

/* ── The three cards ── */
.pv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; align-items: stretch; }
.pv-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.25rem 1.35rem 1.4rem;
  color: var(--pv-navy);
  background-color: #fffdf8;
  background-image:
    linear-gradient(rgba(30, 61, 47, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 61, 47, 0.04) 1px, transparent 1px);
  background-size: 22px 22px;
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 40px 70px -36px rgba(0, 0, 0, 0.8);
  transition: box-shadow 0.35s ease, opacity 0.35s ease;
}
.pv-card--lead { box-shadow: 0 0 0 2px rgba(201, 164, 74, 0.9), 0 44px 80px -36px rgba(0, 0, 0, 0.85); }
.pv-grid.has-pick .pv-card:not(.is-picked) { opacity: 0.55; }
.pv-card.is-picked { box-shadow: 0 0 0 2px #e0473b, 0 48px 90px -36px rgba(0, 0, 0, 0.9); }

.pv-top { position: relative; display: flex; align-items: center; gap: 0.6rem; min-height: 1.9rem; margin: 0 0 0.9rem; }
.pv-step { position: relative; display: inline-flex; align-items: center; gap: 0.45rem; margin: 0; font-family: 'Inter', sans-serif; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pv-green); }
.pv-step-n { display: inline-flex; align-items: center; justify-content: center; width: 1.65rem; height: 1.65rem; font-family: var(--pv-hand); font-size: 1.05rem; font-weight: 700; letter-spacing: 0; color: var(--pv-red); border: 1.5px solid var(--pv-red); border-radius: 50%; }
.pv-flag { margin-left: auto; padding: 0.36rem 0.7rem; white-space: nowrap; font-family: 'Inter', sans-serif; font-size: 0.625rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pv-navy); background: #C9A44A; border-radius: 999px; }
.pv-here { position: absolute; left: 100%; top: 50%; margin-left: 0.85rem; font-family: var(--pv-hand); font-size: 1.55rem; font-weight: 700; line-height: 1; letter-spacing: 0; text-transform: none; white-space: nowrap; color: var(--pv-red); transform: translateY(-55%) rotate(-4deg); }

/* The proof at the top of each card */
.pv-proof { position: relative; display: flex; flex-direction: column; min-height: 11.6rem; margin: 0 0 1.15rem; padding: 0.85rem 0.95rem 0.95rem; font-family: 'Inter', sans-serif; background: #ffffff; border: 1px solid #e6e1d3; border-radius: 12px; box-shadow: 0 8px 20px -16px rgba(15, 23, 42, 0.4); }
.pv-pk { margin: 0 0 0.6rem; font-size: 0.625rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #8a93a2; }
.pv-q { display: flex; align-items: center; gap: 0.45rem; margin: 0; padding: 0.45rem 0.75rem; font-size: 0.8rem; color: var(--pv-navy); border: 1px solid #e3e1d8; border-radius: 999px; }
.pv-q svg { width: 0.9rem; height: 0.9rem; flex-shrink: 0; color: #23306b; }
.pv-ans { margin: 0.65rem 0 0; font-size: 0.84rem; line-height: 1.5; color: #1f2937; }
.pv-ans strong { padding: 0 0.15em; font-weight: 800; color: var(--pv-navy); white-space: nowrap; }
.pv-site { overflow: hidden; border: 1px solid #dfe3e1; border-radius: 10px; }
.pv-url { display: flex; align-items: center; gap: 0.35rem; margin: 0; padding: 0.4rem 0.65rem; font-size: 0.66rem; font-weight: 600; color: #4b5563; background: #f3f4f6; border-bottom: 1px solid #e5e7eb; }
.pv-url svg { width: 0.72rem; height: 0.72rem; color: #9ca3af; }
.pv-form { padding: 0.75rem 0.85rem 0.85rem; background: #1f4a3d; }
.pv-form-k { margin: 0 0 0.55rem; font-size: 0.58rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); }
.pv-form-btn { display: flex; align-items: center; justify-content: center; height: 2.05rem; margin: 0; font-size: 0.74rem; font-weight: 700; color: #ffffff; background: #ef6a4f; border-radius: 999px; }
.pv-chat { display: flex; flex-direction: column; gap: 0.4rem; }
.pv-b { max-width: 90%; margin: 0; padding: 0.45rem 0.65rem; font-size: 0.76rem; line-height: 1.4; border-radius: 0.9rem; }
.pv-b--p { align-self: flex-end; color: #ffffff; background: #1a6fe0; border-bottom-right-radius: 0.25rem; }
.pv-b--a { align-self: flex-start; color: var(--pv-navy); background: #f1f3f5; border-bottom-left-radius: 0.25rem; }
.pv-rt { margin: 0.1rem 0 0 0.3rem; font-size: 0.68rem; font-weight: 600; color: #8a93a2; }
.pv-rt .pv-mark { font-weight: 800; color: #2f7a55; white-space: nowrap; }

/* The product */
.pv-body { display: flex; flex: 1; flex-direction: column; }
.pv-title { margin: 0 0 0.35rem; font-family: 'Outfit', sans-serif; font-size: 1.5rem; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: var(--pv-navy); }
.pv-for { margin: 0 0 0.8rem; font-family: 'Inter', sans-serif; font-size: 0.95rem; font-weight: 600; line-height: 1.45; color: #1f2937; }
.pv-line { margin: 0 0 0.95rem; padding-left: 0.8rem; font-family: 'Inter', sans-serif; font-size: 0.875rem; line-height: 1.5; color: #4b5563; border-left: 2px solid #C9A44A; }
.pv-feats { margin: 0 0 0.85rem; padding: 0.85rem 0 0; list-style: none; border-top: 1px dashed rgba(30, 61, 47, 0.2); }
.pv-feats li { display: flex; gap: 0.55rem; margin: 0.45rem 0; font-family: 'Inter', sans-serif; font-size: 0.875rem; line-height: 1.45; color: #1f2937; }
.pv-feats li::before { content: ''; width: 1rem; height: 1rem; margin-top: 0.12rem; flex-shrink: 0; border-radius: 50%; background: var(--pv-green) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M4.4 8.4l2.4 2.4 4.8-5' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 0.75rem no-repeat; }
.pv-more { align-self: flex-start; margin: 0 0 1.1rem; font-family: 'Inter', sans-serif; font-size: 0.8125rem; font-weight: 700; color: #8a6d1f; text-decoration: none; }
.pv-more:hover { color: var(--pv-green); text-decoration: underline; }
.pv-price { margin-top: auto; padding-top: 1rem; border-top: 1px solid rgba(30, 61, 47, 0.12); }
.pv-amt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 0.5rem; margin: 0; }
.pv-amt b { font-family: 'Outfit', sans-serif; font-size: 2.3rem; font-weight: 800; line-height: 1; letter-spacing: -0.03em; color: var(--pv-navy); }
.pv-amt span { font-family: 'Inter', sans-serif; font-size: 0.8125rem; font-weight: 600; color: #6b7280; }
.pv-price--quote .pv-amt b { font-size: 1.45rem; letter-spacing: -0.02em; }
.pv-price--quote .pv-amt { flex-direction: column; gap: 0.3rem; }
.pv-anchor { display: block; margin: 0.75rem 0 0; padding: 0.6rem 0.75rem; font-family: 'Inter', sans-serif; font-size: 0.8125rem; font-weight: 500; line-height: 1.45; color: #1f2937; text-decoration: none; background: rgba(201, 164, 74, 0.13); border-left: 3px solid #C9A44A; border-radius: 0 8px 8px 0; }
.pv-anchor b { font-weight: 800; color: var(--pv-navy); }
.pv-anchor span { display: inline-block; font-weight: 700; color: #8a6d1f; white-space: nowrap; }
.pv-anchor:hover { color: #1f2937; text-decoration: none; }
.pv-anchor:hover span { text-decoration: underline; }
.pv-anchor:focus-visible { outline: 2px solid var(--pv-red); outline-offset: 3px; }
.pv-amt-sub { margin: 0.3rem 0 0; font-family: 'Inter', sans-serif; font-size: 0.75rem; font-weight: 600; color: #2f7a55; }
.pv-btn { display: flex; align-items: center; justify-content: center; gap: 0.4rem; height: 3.1rem; margin-top: 1rem; font-family: 'Inter', sans-serif; font-size: 0.95rem; font-weight: 700; color: #ffffff; text-decoration: none; background: var(--pv-navy); border-radius: 10px; transition: background-color 0.2s ease, transform 0.2s ease; }
.pv-btn:hover { color: #ffffff; text-decoration: none; background: #1e293b; }
.pv-card--lead .pv-btn { color: var(--pv-navy); background: #C9A44A; }
.pv-card--lead .pv-btn:hover { color: var(--pv-navy); background: #d6b45a; }
.pv-btn:focus-visible, .pv-more:focus-visible { outline: 2px solid var(--pv-red); outline-offset: 3px; }

.pv-foot { margin: 2.4rem 0 0; font-family: 'Inter', sans-serif; font-size: 0.9375rem; line-height: 1.5; text-align: center; color: rgba(255, 255, 255, 0.72); }
.pv-foot a { font-weight: 700; color: #e6c77e; text-decoration: none; white-space: nowrap; }
.pv-foot a:hover { color: #ffffff; text-decoration: underline; }

/* ── The pencil and its marks (one of each per card) ── */
.pv-card-ink { position: absolute; left: 0; top: 0; z-index: 4; overflow: visible; pointer-events: none; }
.pv-card-ink path { fill: none; stroke: var(--pv-red); stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; opacity: 0.9; }
.pv-pencil { position: absolute; left: 0; top: 0; z-index: 5; display: none; width: 140px; height: 18px; margin-top: -9px; transform-origin: 0 50%; pointer-events: none; }
.pv-pencil svg { display: block; width: 100%; height: 100%; filter: drop-shadow(5px 9px 5px rgba(26, 43, 60, 0.28)); }
.pv.is-live .pv-pencil { display: block; opacity: 0; transition: opacity 0.3s ease; }
.pv.is-live .pv-pencil.is-shown { opacity: 1; }
.pv-pencil.is-writing svg { animation: pv-scribble 0.12s steps(2) infinite; }

.pv-here { visibility: hidden; }
.pv.is-live .pv-here { visibility: visible; clip-path: inset(-0.3em 100% -0.3em 0); }
.pv.is-live .pv-here.is-on { clip-path: inset(-0.3em -0.3em -0.3em 0); transition: clip-path var(--d, 0.55s) linear; }
.pv.is-still .pv-here.is-on { transition: none; }

/* No JavaScript: the proofs underlined in red ink */
.pv:not(.is-live) .pv-mark { text-decoration: underline; text-decoration-color: var(--pv-red); text-decoration-thickness: 2px; text-underline-offset: 3px; }

@keyframes pv-scribble { 0% { transform: translate(0, 0); } 50% { transform: translate(0.6px, -0.8px); } }

/* ── Screen widths ── */
@media (max-width: 1100px) {
  .pv-grid { gap: 1rem; }
  .pv-card { padding: 1.1rem 1.1rem 1.25rem; }
  .pv-title { font-size: 1.35rem; }
}
@media (max-width: 960px) {
  .pv-grid { grid-template-columns: 1fr; max-width: 34rem; margin-left: auto; margin-right: auto; gap: 1.25rem; }
  .pv-proof { min-height: 0; }
}
@media (max-width: 560px) {
  .pv { padding: 4.75rem 1.25rem 4.5rem; }
  .pv-h { font-size: 1.9rem; }
  .pv-sub { font-size: 1rem; }
  .pv-pick { margin: 1.75rem 0 2rem; }
  .pv-pick-opts { flex-direction: column; align-items: stretch; }
  .pv-opt { padding: 0.75rem 1rem; }
  .pv-pencil { width: 118px; height: 15px; margin-top: -7.5px; }
  .pv-card--lead .pv-top { flex-direction: column; align-items: flex-start; gap: 0.7rem; }
  .pv-flag { order: -1; margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pv *, .pv *::before, .pv *::after { animation: none !important; }
}
