/* =========================================================================
   Pacewave — product pages (Wave, WavePlus, …)
   Mirrors the Velocity MH 360° viewer layout: spec sheet · viewer · highlights
   Loaded after styles.css. All classes are prefixed pp- to avoid clashes.
   ========================================================================= */

.pp-page {
  --fg: #e6edf5;
  --muted: rgba(230, 237, 245, .62);
  --panel: rgba(255, 255, 255, .04);
  --panel-border: rgba(255, 255, 255, .08);
  --chip: rgba(14, 165, 233, .12);
  --accent: #0ea5e9;
  --amber: #b45309;
  position: relative;
  overflow: hidden;
  padding: 84px 0 56px;
  background: radial-gradient(ellipse at 50% 0%, #0f1820 0%, #07080b 60%, #04050a 100%);
  color: var(--fg);
  letter-spacing: -0.005em;
}
.pp-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}

/* ── Stage ─────────────────────────────────────────────────────────────── */
.pp-stage {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
  max-width: 1500px;
  margin: 0 auto;
  padding: 28px 40px 16px;
}
.pp-viewer-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}
.pp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 8px 18px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #67e8f9;
  border: 1px solid rgba(34,211,238,.4);
  border-radius: 999px;
  background: rgba(34,211,238,.06);
}
.pp-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  flex-shrink: 0;
}
.pp-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(44px, 5.4vw, 76px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: .98;
}
.pp-title span { color: #22d3ee; }
.pp-sub {
  max-width: 480px;
  margin: 14px auto 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

/* ── Side panels ───────────────────────────────────────────────────────── */
.pp-panel {
  margin-top: 24px;
  padding: 22px 22px 18px;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.pp-panel-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.pp-specs-list { display: flex; flex-direction: column; }
.pp-specs-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--panel-border);
  font-size: 12.5px;
}
.pp-specs-row:last-child { border-bottom: 0; }
.pp-specs-row dt { color: var(--muted); flex-shrink: 0; }
.pp-specs-row dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.pp-panel-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  padding-top: 14px;
  font-size: 11px;
  color: var(--muted);
}
.pp-badges { display: flex; gap: 6px; }
.pp-badges span {
  padding: 3px 7px;
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--fg);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  background: var(--chip);
}

.pp-legend-list { display: flex; flex-direction: column; gap: 6px; }
.pp-legend-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 7px 8px;
  margin: 0 -8px;
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s ease;
}
.pp-legend-list li:hover,
.pp-legend-list li:focus-visible,
.pp-legend-list li.is-on { background: rgba(255,255,255,.04); outline: none; }
.pp-legend-num {
  flex: 0 0 auto;
  width: 24px; height: 24px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: #fbbf24;
  border: 1px solid #f59e0b;
  border-radius: 50%;
}
.pp-legend-label { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.pp-legend-desc { font-size: 12px; line-height: 1.5; color: var(--muted); }
.pp-legend-view {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--panel-border);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.pp-legend-view strong { color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: none; }

/* ── Viewer ────────────────────────────────────────────────────────────── */
.pp-viewer { width: 100%; max-width: 640px; margin-top: 22px; display: flex; flex-direction: column; align-items: center; }
.pp-tt-stage {
  position: relative;
  width: 100%;
  display: grid;
  place-items: center;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  outline: none;
}
.pp-tt-stage.is-drag { cursor: grabbing; }
.pp-tt-stage:focus-visible { box-shadow: 0 0 0 2px rgba(14,165,233,.5); border-radius: 16px; }
.pp-tt-stage::before {
  content: '';
  position: absolute;
  left: 50%; bottom: 6%;
  width: 70%; height: 22%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(14,165,233,.22), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
}
.pp-frame-box {
  position: relative;
  width: min(100%, 384px);
  aspect-ratio: 400 / 480;
}
.pp-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
  filter: drop-shadow(0 24px 28px rgba(0,0,0,.45));
}
.pp-frame.is-on { opacity: 1; }

.pp-hs {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 38px; height: 38px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #fde68a;
  border: 1.5px solid var(--amber);
  border-radius: 50%;
  background: rgba(180,83,9,.32);
  box-shadow: 0 0 14px rgba(180,83,9,.5);
  cursor: pointer;
  transition: scale .15s ease;
  z-index: 3;
}
.pp-hs[hidden] { display: none; }
.pp-hs.is-on, .pp-hs:hover, .pp-hs:focus-visible { scale: 1.2; outline: none; }
.pp-hs::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--amber);
  opacity: .55;
  animation: pp-pulse 2.4s ease-out infinite;
}
@keyframes pp-pulse {
  0%   { transform: scale(.8); opacity: .6; }
  100% { transform: scale(1.6); opacity: 0; }
}

.pp-tip {
  position: absolute;
  z-index: 4;
  display: flex;
  gap: 10px;
  max-width: 230px;
  padding: 10px 12px 10px 10px;
  text-align: left;
  border: 1px solid var(--panel-border);
  background: rgba(13, 18, 26, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,.4);
  pointer-events: none;
  transform: translate(28px, -50%);
  animation: pp-tip-in .15s ease-out;
}
.pp-tip.flip { transform: translate(calc(-100% - 28px), -50%); }
.pp-tip[hidden] { display: none; }
@keyframes pp-tip-in { from { opacity: 0; } }
.pp-tip-num {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
  color: #fde68a;
  border: 1.5px solid var(--amber);
  border-radius: 50%;
  background: rgba(180,83,9,.32);
}
.pp-tip-label { font-size: 12px; font-weight: 600; margin-bottom: 2px; }
.pp-tip-desc { font-size: 11px; line-height: 1.45; color: var(--muted); }

.pp-hint {
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  pointer-events: none;
  transition: opacity .3s;
}
.pp-hint.is-gone { opacity: 0; }

.pp-ctrls {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 540px;
  margin-top: 14px;
  padding: 8px 14px;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.pp-ctrl-btn {
  width: 32px; height: 32px;
  flex-shrink: 0;
  display: grid; place-items: center;
  color: var(--fg);
  border-radius: 50%;
  background: var(--chip);
  transition: background .15s, color .15s;
}
.pp-ctrl-btn:hover, .pp-ctrl-btn:focus-visible { background: var(--accent); color: #07120e; outline: none; }
.pp-ticks { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 4px; height: 24px; }
.pp-ticks button {
  flex: 1;
  height: 24px;
  position: relative;
}
.pp-ticks button::before {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 60%; height: 2px;
  transform: translate(-50%, -50%);
  border-radius: 2px;
  background: var(--panel-border);
  transition: background .15s, height .15s;
}
.pp-ticks button:hover::before { background: rgba(255,255,255,.25); }
.pp-ticks button.is-on::before { background: var(--accent); height: 3px; box-shadow: 0 0 8px var(--accent); }
.pp-view-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 92px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.3;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.pp-view-meta [data-view-label] { color: var(--fg); }

/* ── CTA ───────────────────────────────────────────────────────────────── */
.pp-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 18px; }
.pp-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.pp-btn .material-icons-outlined { font-size: 18px; }
.pp-btn-primary {
  color: #062324;
  background: linear-gradient(135deg, #22d3ee 0%, #2dd4bf 100%);
  box-shadow: 0 8px 24px rgba(34,211,238,.18);
}
.pp-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(34,211,238,.28); color: #062324; }
.pp-btn-ghost {
  color: var(--fg);
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.14);
}
.pp-btn-ghost:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.24); }

/* ── Stats strip ───────────────────────────────────────────────────────── */
.pp-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 40px 0;
}
.pp-stats {
  display: inline-flex;
  align-items: stretch;
  padding: 18px 36px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
  border-radius: 999px;
}
.pp-stat { min-width: 140px; padding: 0 32px; text-align: center; }
.pp-stat + .pp-stat { border-left: 1px solid rgba(255,255,255,.08); }
.pp-stat-v {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #22d3ee;
}
.pp-stat-v small { margin-left: 4px; font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.pp-stat-l { margin-top: 4px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pp-note { max-width: 720px; font-size: 11px; line-height: 1.55; text-align: center; color: var(--muted); }

/* ── Lower sections ────────────────────────────────────────────────────── */
.pp-section {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 40px 0;
}
.pp-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: .4rem;
}
.pp-lede { color: var(--muted); font-size: .95rem; margin-bottom: 1.25rem; max-width: 720px; }
.pp-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  background: var(--panel);
}
.pp-table { width: 100%; border-collapse: collapse; font-size: 13.5px; white-space: nowrap; }
.pp-table th, .pp-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--panel-border); }
.pp-table thead th {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255,255,255,.02);
}
.pp-table tbody tr:last-child td { border-bottom: 0; }
.pp-table td { font-variant-numeric: tabular-nums; }
.pp-table td:first-child { font-weight: 600; color: var(--fg); }
.pp-pill {
  display: inline-block;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  color: #5eead4;
  background: rgba(20,184,166,.1);
  border: 1px solid rgba(20,184,166,.3);
}
.pp-pill--future { color: var(--muted); background: rgba(255,255,255,.04); border-color: var(--panel-border); }
.pp-foot { margin-top: .75rem; font-size: 12px; color: var(--muted); }
.pp-related { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1rem; }
.pp-related .related-card { margin-top: 0; }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .pp-stage { grid-template-columns: minmax(0, 1fr); }
  .pp-viewer-col { order: 1; }
  .pp-legend { order: 2; }
  .pp-specs { order: 3; }
  .pp-panel { width: 100%; max-width: 560px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 720px) {
  .pp-stage { padding: 20px 16px 10px; }
  .pp-section { padding: 44px 16px 0; }
  .pp-bottom { padding: 20px 16px 0; }
  .pp-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 0; padding: 18px 8px; border-radius: 20px; width: 100%; }
  .pp-stat { min-width: 0; padding: 0 10px; }
  .pp-stat + .pp-stat { border-left: 0; }
  .pp-stat:nth-child(even) { border-left: 1px solid rgba(255,255,255,.08); }
  .pp-stat-v { font-size: 26px; }
  .pp-ctrls { gap: 8px; padding: 6px 8px; }
  .pp-view-meta { min-width: 74px; }
  .pp-tip { max-width: 190px; }
}

/* ── Spec footnote, overview + PDF card, 5-up stats ───────────────────── */
.pp-panel-note {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--panel-border);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
}
.pp-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(14,165,233,.06), rgba(20,184,166,.02)), var(--panel);
}
.pp-docs { display: flex; flex-direction: column; gap: .75rem; } /* spec sheet + quick-start guide */
.pp-overview-text { color: var(--muted); font-size: 1rem; line-height: 1.7; max-width: 680px; }
.pp-pdf {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  background: rgba(7,8,11,.5);
  transition: border-color .15s, transform .15s;
}
.pp-pdf:hover { border-color: rgba(14,165,233,.5); transform: translateY(-2px); }
.pp-pdf > .material-icons-outlined { color: var(--accent); }
.pp-pdf-thumb {
  position: relative;
  height: 58px;
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  padding: 0 8px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: linear-gradient(135deg, var(--bg-3), var(--bg-4));
}
.pp-pdf-thumb::before { content: 'PDF'; position: absolute; top: 5px; left: 6px; font-family: var(--font-mono); font-size: 8px; color: var(--accent); letter-spacing: .1em; }
.pp-pdf-thumb span { display: block; height: 2px; border-radius: 2px; background: var(--border-strong); }
.pp-pdf-thumb span:nth-child(2) { width: 80%; }
.pp-pdf-thumb span:nth-child(3) { width: 55%; }
.pp-pdf-body { display: flex; flex-direction: column; min-width: 0; }
.pp-pdf-body strong { font-size: .92rem; font-weight: 600; line-height: 1.3; }
.pp-pdf-body small { font-size: .75rem; color: var(--muted); }
.pp-stat { min-width: 120px; padding: 0 26px; }

@media (max-width: 1100px) {
  .pp-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 18px 0;
    width: 100%;
    max-width: 900px;
    border-radius: 20px;
  }
  .pp-overview { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .pp-stat:last-child:nth-child(odd) { grid-column: 1 / -1; border-left: 0; }
  .pp-overview { padding: 1.25rem; }
}


/* ── Mobile polish ─────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .pp-ticks, .pp-ticks button { height: 40px; }
  .pp-ctrl-btn { width: 40px; height: 40px; }
  .pp-cta { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; }
  .pp-btn { justify-content: center; }
  .pp-specs-row { font-size: 13px; }
  .pp-specs-row dt { max-width: 42%; }
  .pp-legend-list li { padding: 9px 8px; }
  .pp-hint { font-size: 11px; }
  .pp-pdf { grid-template-columns: 40px 1fr auto; }
}
@media (max-width: 380px) {
  .pp-title { font-size: 40px; }
  .pp-kicker { letter-spacing: .14em; padding: 7px 14px; }
}
@media (pointer: coarse) {
  .pp-ticks, .pp-ticks button { height: 40px; }
  .pp-ctrl-btn { width: 40px; height: 40px; }
}
