/* ============================================================
   product.css — Panvox Player product page only
   Loaded after style.css; everything scoped under body.pv so
   shared pages (/, /privacy/) are unaffected. Re-themes the
   existing --fg/--bg/--card/--border/--accent variables for
   this page and adds --pv-* tokens on top.
   ============================================================ */

/* ---------- palette: light default ---------- */
body.pv {
  --bg: #f6f8fc;
  --fg: #151a24;
  --muted: #5b6572;
  --card: #ffffff;
  --border: #e3e7ef;
  --accent: #5f33d8;

  --pv-body: #3a4351;            /* card paragraph text */
  --pv-surface: #ffffff;         /* inset tiles */
  --pv-grad: linear-gradient(95deg, #6d3df0, #0e8fd8 55%, #08b2cf);
  --pv-accent-soft: rgba(95, 51, 216, 0.45);
  --pv-glow1: rgba(124, 77, 255, 0.09);
  --pv-glow2: rgba(8, 178, 207, 0.08);
  --pv-tile-border: rgba(21, 26, 36, 0.10);
  --pv-tile-shadow: 0 14px 34px -22px rgba(21, 26, 36, 0.55);
  --pv-icon-shadow: 0 10px 26px -12px rgba(95, 51, 216, 0.45);
}
/* ---------- palette: full dark design ---------- */
@media (prefers-color-scheme: dark) {
  body.pv {
    --bg: #0b0e13;
    --fg: #e9edf5;
    --muted: #97a1b1;
    --card: #12161f;
    --border: #232b39;
    --accent: #7cc4fb;

    --pv-body: #b7c0d0;
    --pv-surface: #151b27;
    --pv-grad: linear-gradient(95deg, #9d7bff, #38bdf8 55%, #22d3ee);
    --pv-accent-soft: rgba(124, 196, 251, 0.55);
    --pv-glow1: rgba(124, 77, 255, 0.17);
    --pv-glow2: rgba(34, 211, 238, 0.11);
    --pv-tile-border: rgba(255, 255, 255, 0.08);
    --pv-tile-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.9);
    --pv-icon-shadow: 0 12px 30px -10px rgba(124, 77, 255, 0.55);
  }
}

/* ---------- page frame ---------- */
body.pv { overflow-x: hidden; }
body.pv ::selection { background: rgba(124, 77, 255, 0.30); }
body.pv :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* widen the product page beyond the shared 780px document width */
body.pv nav,
body.pv footer { max-width: 1080px; }
main.pv { max-width: 1080px; padding: 44px 24px 72px; }

body.pv .brandbar { gap: 18px; }
body.pv .brandbar .icon { box-shadow: var(--pv-icon-shadow); }

/* ---------- hero ---------- */
.pv-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding: 28px 0 60px;
}
.pv-hero::before {
  content: "";
  position: absolute;
  inset: -60px -60px auto;
  height: 440px;
  background:
    radial-gradient(620px 300px at 78% 18%, var(--pv-glow1), transparent 70%),
    radial-gradient(520px 280px at 12% 65%, var(--pv-glow2), transparent 70%);
  pointer-events: none;
}
.pv-hero > * { position: relative; }

body.pv .pv-hero h1 {
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  letter-spacing: -0.02em;
  color: var(--fg);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  body.pv .pv-hero h1 {
    background: var(--pv-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

.pv-lede {
  font-size: 1.05rem;
  color: var(--pv-body);
  max-width: 34em;
  margin: 26px 0 0;
}
.pv-hook {
  position: relative;
  padding-left: 18px;
  margin: 30px 0 0;
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  font-weight: 650;
  letter-spacing: -0.01em;
}
.pv-hook::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.26em;
  bottom: 0.26em;
  width: 4px;
  border-radius: 2px;
  background: var(--pv-grad);
}
.pv-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
}
.pv-platforms span {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 0.9rem;
  color: var(--muted);
  background: var(--pv-surface);
}

/* ---------- poster wall (stylized illustration, not a screenshot) ---------- */
.pv-hero-art { min-width: 0; }
.pv-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 64px;
  gap: 12px;
  max-width: 440px;
  margin-left: auto;
}
.pv-wall > div {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--pv-tile-border);
  box-shadow: var(--pv-tile-shadow);
}
.pv-wall > div::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.16), transparent 45%);
}
.t1 { grid-row: span 2; background: linear-gradient(165deg, #7c4dff, #4638b8); }
.t2 { background: linear-gradient(145deg, #38bdf8, #22d3ee); }
.t4 { background: linear-gradient(150deg, #6d28d9, #38bdf8); }
.t5 { background: linear-gradient(140deg, #22d3ee, #0e9bd8); }
.t6 { grid-row: span 2; background: linear-gradient(165deg, #2b2a6e, #7c4dff); }
.t7 { background: linear-gradient(140deg, #0ea5e9, #22d3ee); }
.t8 { background: linear-gradient(150deg, #4f46e5, #38bdf8); }
.t10 { background: linear-gradient(160deg, #7c4dff, #22d3ee); }
.t12 { background: linear-gradient(150deg, #38bdf8, #7c4dff); }
.t13 { background: linear-gradient(140deg, #0891b2, #22d3ee); }
.t3, .t9, .t11 { background: var(--pv-surface); }
.t3 { display: flex; align-items: center; justify-content: center; }
.pv-play {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-style: solid;
  border-width: 13px 0 13px 21px;
  border-color: transparent transparent transparent var(--accent);
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.5));
}
.t9::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 42%;
  bottom: 12px;
  height: 4px;
  border-radius: 2px;
  background: var(--pv-grad);
  opacity: 0.85;
}

/* ---------- sections ---------- */
.pv-section {
  border-top: 1px solid var(--border);
  padding: 44px 0 10px;
  scroll-margin-top: 24px;
}
body.pv h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
}
body.pv h2::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--pv-grad);
}

/* ---------- feature cards ---------- */
.pv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.pv-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.pv-card:hover {
  transform: translateY(-2px);
  border-color: var(--pv-accent-soft);
}
.pv-card h3 {
  margin: 0 0 8px;
  font-size: 1.06rem;
  letter-spacing: -0.01em;
}
.pv-card p {
  margin: 0;
  font-size: 0.97rem;
  color: var(--pv-body);
}
.pv-featured {
  background:
    linear-gradient(135deg, rgba(124, 77, 255, 0.10), rgba(34, 211, 238, 0.08)),
    var(--card);
  border-color: var(--pv-accent-soft);
}

/* ---------- pricing ---------- */
.pv-pricing {
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 34px 28px;
  text-align: center;
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    var(--pv-grad) border-box;
}
.pv-price-line {
  margin: 0;
  font-size: clamp(1.2rem, 2.6vw, 1.45rem);
  font-weight: 650;
  letter-spacing: -0.01em;
}

/* ---------- privacy ---------- */
.pv-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 24px;
}
.pv-list { margin: 0; padding-left: 1.2em; }
.pv-list li { margin: 0.85em 0; color: var(--pv-body); }
.pv-more { margin: 18px 0 0; }

/* ---------- fine print + open source ---------- */
.pv-fine {
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}
.pv-fine p {
  margin: 0;
  max-width: 46em;
  font-size: 0.9rem;
  color: var(--muted);
}
.pv-opensource { margin-top: 16px !important; font-size: 0.95rem; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes pv-rise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
  }
  .pv-hero-copy, .pv-hero-art { animation: pv-rise 0.6s ease both; }
  .pv-hero-art { animation-delay: 0.12s; }
}
@media (prefers-reduced-motion: reduce) {
  .pv-card, .pv-card:hover { transform: none; transition: none; }
}

/* ---------- responsive ---------- */
@media (min-width: 720px) {
  .pv-grid { grid-template-columns: repeat(2, 1fr); }
  .pv-featured { grid-column: 1 / -1; }
}
@media (max-width: 899px) {
  .pv-hero {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-bottom: 44px;
  }
  .pv-hero::before { height: 320px; inset: -40px -24px auto; }
  .pv-wall {
    margin: 34px auto 0;
    max-width: 480px;
    grid-auto-rows: 58px;
  }
}
@media (max-width: 480px) {
  main.pv { padding: 32px 18px 56px; }
  .pv-wall { grid-auto-rows: 52px; gap: 9px; }
}

/* ---------- zh-CN typography (product page carries both languages) ---------- */
html[lang="zh-CN"] body.pv .pv-hero h1,
html[lang="zh-CN"] body.pv h2,
html[lang="zh-CN"] .pv-card h3,
html[lang="zh-CN"] .pv-hook,
html[lang="zh-CN"] .pv-price-line { letter-spacing: 0; }
html[lang="zh-CN"] .pv-lede,
html[lang="zh-CN"] .pv-card p,
html[lang="zh-CN"] .pv-list li { line-height: 1.85; }

/* ---------- platform shots ---------- */
.pv-shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.pv-shot { margin: 0; }
.pv-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--pv-tile-border);
  box-shadow: var(--pv-tile-shadow);
}
.pv-shot figcaption {
  margin-top: 8px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}
.pv-shot-phone img { max-width: 340px; margin: 0 auto; }

/* ---------- download buttons ---------- */
.pv-get {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 24px 0 0;
}
.pv-btn {
  border: 1px solid var(--pv-accent-soft);
  border-radius: 999px;
  padding: 9px 20px;
  font-size: 0.95rem;
  color: var(--accent);
  background: var(--pv-surface);
}
.pv-btn:hover { text-decoration: none; border-color: var(--accent); }
@media (max-width: 719px) {
  .pv-shots { grid-template-columns: 1fr; }
  .pv-shot-phone img { max-width: 300px; }
}
