﻿/* PVEstrap V2 shared visual system. Loaded after route-local styles. */
:root {
  --v2-bg: #0b0d10;
  --v2-bg-2: #111418;
  --v2-surface: rgba(255, 255, 255, 0.045);
  --v2-surface-2: rgba(255, 255, 255, 0.07);
  --v2-surface-3: rgba(255, 255, 255, 0.1);
  --v2-line: rgba(255, 255, 255, 0.12);
  --v2-line-soft: rgba(255, 255, 255, 0.075);
  --v2-text: #f4f1e8;
  --v2-muted: #aaa49a;
  --v2-dim: #746f67;
  --v2-accent: #d8bd74;
  --v2-accent-2: #9fd7ff;
  --v2-danger: #ff9f9f;
  --v2-success: #a7d7b2;
  --v2-radius: 8px;
  --v2-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  --v2-page: min(1180px, calc(100vw - 48px));
  --v2-wide: min(1480px, calc(100vw - 48px));
}

html { background: var(--v2-bg); scroll-behavior: smooth; }

body[data-v2="true"] {
  --v2-warm-glow-x: 8%;
  --v2-warm-glow-y: -10%;
  --v2-cool-glow-x: 96%;
  --v2-cool-glow-y: 0%;
  --v2-depth-glow-x: 50%;
  --v2-depth-glow-y: 104%;
  --v2-grid-shift-x: 0px;
  --v2-grid-shift-y: 0px;
  margin: 0 !important;
  min-width: 0;
  background:
    radial-gradient(circle at var(--v2-warm-glow-x) var(--v2-warm-glow-y), rgba(216, 189, 116, 0.13), transparent 34rem),
    radial-gradient(circle at var(--v2-cool-glow-x) var(--v2-cool-glow-y), rgba(159, 215, 255, 0.08), transparent 36rem),
    radial-gradient(circle at var(--v2-depth-glow-x) var(--v2-depth-glow-y), rgba(255, 255, 255, 0.035), transparent 30rem),
    linear-gradient(180deg, var(--v2-bg), var(--v2-bg-2) 48%, #08090b) !important;
  color: var(--v2-text) !important;
  overflow-x: hidden !important;
}

body[data-v2-family="marketing"] {
  --v2-warm-glow-x: 7%;
  --v2-warm-glow-y: -12%;
  --v2-cool-glow-x: 96%;
  --v2-cool-glow-y: 2%;
}

body[data-v2-family="commerce"] {
  --v2-warm-glow-x: 78%;
  --v2-warm-glow-y: -12%;
  --v2-cool-glow-x: 8%;
  --v2-cool-glow-y: 6%;
  --v2-grid-shift-x: 12px;
}

body[data-v2-family="product"] {
  --v2-warm-glow-x: 18%;
  --v2-warm-glow-y: -14%;
  --v2-cool-glow-x: 88%;
  --v2-cool-glow-y: 8%;
  --v2-grid-shift-y: 10px;
}

body[data-v2-family="tooling"] {
  --v2-warm-glow-x: 64%;
  --v2-warm-glow-y: -16%;
  --v2-cool-glow-x: 14%;
  --v2-cool-glow-y: 10%;
  --v2-grid-shift-x: -10px;
}

body[data-v2-family="legal"] {
  --v2-warm-glow-x: 50%;
  --v2-warm-glow-y: -18%;
  --v2-cool-glow-x: 94%;
  --v2-cool-glow-y: 16%;
  --v2-depth-glow-x: 12%;
}

body[data-v2-family="support"] {
  --v2-warm-glow-x: 12%;
  --v2-warm-glow-y: 4%;
  --v2-cool-glow-x: 82%;
  --v2-cool-glow-y: -16%;
  --v2-grid-shift-x: 18px;
  --v2-grid-shift-y: -8px;
}

body[data-v2-family="status"] {
  --v2-warm-glow-x: 62%;
  --v2-warm-glow-y: -12%;
  --v2-cool-glow-x: 10%;
  --v2-cool-glow-y: 12%;
  --v2-depth-glow-x: 88%;
  --v2-grid-shift-x: -16px;
}

body[data-v2="true"]::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.032) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,0.026) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: var(--v2-grid-shift-x) var(--v2-grid-shift-y);
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.55), transparent 82%);
}

body[data-v2="true"] header,
body[data-v2="true"] .legal-header {
  background: rgba(10, 12, 15, 0.9) !important;
  border-bottom: 1px solid var(--v2-line-soft) !important;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(18px);
}

body[data-v2="true"] main,
body[data-v2="true"] .legal-main {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  isolation: isolate;
}

body[data-v2="true"] .ghost { display: none !important; }

body[data-v2="true"] .h-logo,
body[data-v2="true"] .sidebar-wordmark { color: var(--v2-text) !important; }
body[data-v2="true"] .h-nav a,
body[data-v2="true"] .ft-a,
body[data-v2="true"] .legal-nav a,
body[data-v2="true"] .sidebar-link { color: var(--v2-muted) !important; }
body[data-v2="true"] .h-nav a:hover,
body[data-v2="true"] .h-nav a.active,
body[data-v2="true"] .ft-a:hover,
body[data-v2="true"] .legal-nav a:hover,
body[data-v2="true"] .sidebar-link:hover { color: var(--v2-text) !important; }


body[data-v2="true"] .page-shell,
body[data-v2="true"] .hero-content,
body[data-v2="true"] .doc-shell,
body[data-v2="true"] .contact-layout,
body[data-v2="true"] .dashboard-shell,
body[data-v2="true"] .shell {
  min-width: 0;
}

body[data-v2="true"] .page-shell,
body[data-v2="true"] .hero-content {
  width: var(--v2-page);
  max-width: var(--v2-page) !important;
}

body[data-v2="true"] .hero-copy,
body[data-v2="true"] .purchase-card,
body[data-v2="true"] .section-card,
body[data-v2="true"] .card,
body[data-v2="true"] .contact-card,
body[data-v2="true"] .contact-info-card,
body[data-v2="true"] .doc-shell,
body[data-v2="true"] .doc-section,
body[data-v2="true"] .index-row,
body[data-v2="true"] .step-card,
body[data-v2="true"] .support-card,
body[data-v2="true"] .license-box,
body[data-v2="true"] .info-strip,
body[data-v2="true"] .dl-card,
body[data-v2="true"] .dl-panel,
body[data-v2="true"] .tool-card,
body[data-v2="true"] .login-card,
body[data-v2="true"] .dashboard-card,
body[data-v2="true"] .dashboard-panel,
body[data-v2="true"] .metric,
body[data-v2="true"] .v2-shop-card,
body[data-v2="true"] .v2-panel,
body[data-v2="true"] 
.v2-card {
  border: 1px solid var(--v2-line-soft);
  border-radius: var(--v2-radius);
  background: linear-gradient(180deg, var(--v2-surface-2), var(--v2-surface));
}
.v2-shop-badge.paid { background: rgba(216,189,116,0.1); }
.v2-shop-badge.free { color: var(--v2-success); border-color: rgba(167,215,178,0.35); background: rgba(167,215,178,0.08); }
.v2-shop-badge.neutral { color: var(--v2-accent-2); border-color: rgba(159,215,255,0.32); background: rgba(159,215,255,0.08); }
.v2-shop-meta strong,
.v2-shop-meta span { display: block; }
.v2-shop-meta strong { color: var(--v2-text); margin-bottom: 4px; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; }
.v2-shop-price span,
.v2-shop-help span { color: var(--v2-muted); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; }
.v2-shop-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.v2-admin-shop-preview { margin: 6px 0 12px; }
.v2-admin-shop-preview .v2-placeholder-media { min-height: 180px; }
.v2-admin-shop-preview .v2-shop-card-title { font-size: clamp(1.45rem, 2.2vw, 2rem); }

.v2-placeholder-media {
  border-color: var(--v2-line-soft) !important;
  border-radius: var(--v2-radius) !important;
  background: linear-gradient(180deg, var(--v2-surface-2), var(--v2-surface)) !important;
  box-shadow: 0 18px 70px rgba(0,0,0,0.22);
}

body[data-v2="true"] .title,
body[data-v2="true"] .hero-title,
body[data-v2="true"] .doc-title,
body[data-v2="true"] .legal-title,
body[data-v2="true"] h1,
body[data-v2="true"] h2,
body[data-v2="true"] h3 {
  color: var(--v2-text) !important;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

body[data-v2="true"] .hero-title {
  max-width: 100%;
  white-space: nowrap;
  overflow-wrap: normal;
}

body[data-v2="true"] p,
body[data-v2="true"] li,
body[data-v2="true"] .subtitle,
body[data-v2="true"] .doc-intro,
body[data-v2="true"] .legal-desc,
body[data-v2="true"] .product-copy,
body[data-v2="true"] .support-copy,
body[data-v2="true"] .step-copy,
body[data-v2="true"] .dl-card-desc,
body[data-v2="true"] .copy,
body[data-v2="true"] .muted {
  color: var(--v2-muted) !important;
}

body[data-v2="true"] a,
body[data-v2="true"] .inline-link { text-decoration-thickness: 1px; text-underline-offset: 0.22em; }

body[data-v2="true"] input,
body[data-v2="true"] textarea,
body[data-v2="true"] select {
  border-color: var(--v2-line-soft) !important;
  border-radius: 6px !important;
  background: rgba(0,0,0,0.2) !important;
  color: var(--v2-text) !important;
}

body[data-v2="true"] button:not(.h-burger):not(.support-drawer__close),
body[data-v2="true"] .primary-btn,
body[data-v2="true"] .secondary-btn,
body[data-v2="true"] .card-link,
body[data-v2="true"] .link-btn,
body[data-v2="true"] .v2-button {
  border-radius: 6px !important;
  min-width: 0;
}

body[data-v2="true"] .primary-btn,
body[data-v2="true"] .checkout-btn,
body[data-v2="true"] .submit-btn,
body[data-v2="true"] button.primary,
body[data-v2="true"] button[type="submit"] {
  background: var(--v2-accent) !important;
  border-color: var(--v2-accent) !important;
  color: #12110d !important;
  box-shadow: 0 14px 38px rgba(216, 189, 116, 0.16);
}

body[data-v2="true"] footer {
  border-top-color: var(--v2-line-soft) !important;
  background: rgba(8, 9, 11, 0.62) !important;
}

body[data-v2="true"] .legal-main {
  display: block !important;
  padding: 0 24px 86px !important;
}

body[data-v2="true"] .legal-main::before {
  display: none !important;
}

body[data-v2="true"] .legal-sidebar {
  position: relative;
  top: auto;
  width: min(920px, 100%) !important;
  min-width: 0;
  margin: 0 auto;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 28px 0 0;
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
  box-shadow: none !important;
}

body[data-v2="true"] .legal-sidebar .side-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--v2-line-soft);
}

body[data-v2="true"] .legal-sidebar .side-link {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  white-space: nowrap;
  line-height: 1.2;
}

body[data-v2="true"] .legal-sidebar .side-label,
body[data-v2="true"] .legal-sidebar .side-link[href^="#"],
body[data-v2="true"] .legal-sidebar .side-bottom {
  display: none !important;
}

body[data-v2="true"] .doc-shell,
body[data-v2="true"] .doc-centered,
body[data-v2="true"] .doc-legal {
  width: 100% !important;
  max-width: 920px !important;
  margin: 0 auto !important;
}

body[data-v2="true"] .legal-main .doc-shell,
body[data-v2="true"] .legal-main .doc-section,
body[data-v2="true"] .legal-main .index-row {
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

body[data-v2="true"] .legal-main .doc-shell,
body[data-v2="true"] .legal-main .doc-section {
  border: 0 !important;
}

body[data-v2="true"] .legal-main .index-row {
  border-left: 0 !important;
  border-right: 0 !important;
}

body[data-v2="true"] .contact-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr) !important;
  gap: 18px !important;
  align-items: start;
}

body[data-v2="true"] .contact-card .doc-kicker,
body[data-v2="true"] .contact-info-card .doc-kicker {
  display: block;
  margin-bottom: 10px;
}

body[data-v2="true"] .field-grid,
body[data-v2="true"] .grid.two,
body[data-v2="true"] .dashboard-top,
body[data-v2="true"] .dashboard-bottom {
  min-width: 0;
}

body[data-v2="true"] .v2-shop-shell {
  position: relative;
  z-index: 1;
  width: var(--v2-wide);
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.v2-shop-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 18px;
  align-items: stretch;
}

.v2-shop-copy,
.v2-shop-status,
.v2-shop-card,
.v2-shop-help,
.v2-shop-feature,
.v2-shop-preview-card {
  border: 1px solid var(--v2-line-soft);
  border-radius: var(--v2-radius);
  background: linear-gradient(180deg, var(--v2-surface-2), var(--v2-surface));
  box-shadow: 0 18px 70px rgba(0,0,0,0.22);
}

.v2-shop-copy,
.v2-shop-status { padding: 22px; }
.v2-shop-title {
  margin: 10px 0 12px;
  font-family: "Syne", Inter, system-ui, sans-serif;
  font-size: clamp(2.7rem, 7vw, 5.8rem);
  line-height: 0.86;
  letter-spacing: -0.05em;
}
.v2-shop-lede { max-width: 760px; font-size: 0.9rem; line-height: 1.75; color: var(--v2-muted) !important; }
.v2-shop-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.v2-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 12px 15px;
  border: 1px solid var(--v2-line);
  color: var(--v2-text);
  font: 400 10px/1.2 "DM Mono", ui-monospace, monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}
.v2-button--primary { background: var(--v2-accent); border-color: var(--v2-accent); color: #111 !important; }
.v2-shop-status { display: grid; gap: 13px; }
.v2-shop-stat { display: grid; gap: 5px; padding-bottom: 13px; border-bottom: 1px solid var(--v2-line-soft); }
.v2-shop-stat:last-child { padding-bottom: 0; border-bottom: 0; }
.v2-stat-value { font-family: "Syne", Inter, system-ui, sans-serif; font-size: 1.45rem; letter-spacing: -0.03em; }
.v2-shop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.v2-shop-card { overflow: hidden; display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.v2-placeholder-media {
  min-height: 220px;
  display: grid;
  place-items: center;
  padding: 22px;
  border-bottom: 1px solid var(--v2-line-soft);
  background:
    linear-gradient(135deg, rgba(216,189,116,0.14), transparent 44%),
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)) !important;
}
.v2-placeholder-frame {
  width: min(100%, 440px);
  aspect-ratio: 16 / 9;
  border: 1px dashed rgba(255,255,255,0.24);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--v2-muted);
  text-align: center;
  padding: 18px;
  background: rgba(0,0,0,0.16);
}
.v2-shop-card-body { display: grid; gap: 14px; padding: 20px; }
.v2-shop-card-top { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.v2-shop-card-top > div:first-child { display: grid; gap: 12px; }
.v2-shop-badge { width: fit-content; padding: 6px 9px; border: 1px solid rgba(216,189,116,0.32); color: var(--v2-accent); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; }
.v2-shop-card-title { font-family: "Syne", Inter, system-ui, sans-serif; font-size: clamp(1.9rem, 3vw, 2.7rem); line-height: 0.92; letter-spacing: -0.04em; }
.v2-shop-price { display: grid; gap: 4px; text-align: right; }
.v2-shop-price strong { font-size: 2.2rem; font-family: Arial, sans-serif; line-height: 1; }
.v2-shop-description { color: var(--v2-muted) !important; font-size: 0.82rem; line-height: 1.7; }
.v2-shop-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.v2-shop-meta div { border: 1px solid var(--v2-line-soft); border-radius: 6px; padding: 10px; color: var(--v2-muted); font-size: 0.72rem; line-height: 1.45; }
.v2-shop-card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.v2-shop-grid .card-link { min-height: 42px; }

@media (max-width: 1100px) {
  .v2-shop-hero,
  .v2-shop-grid,
  .v2-shop-help-grid,
  body[data-v2="true"] .contact-layout,
  body[data-v2="true"] .dashboard-top,
  body[data-v2="true"] .dashboard-bottom { grid-template-columns: 1fr !important; }
  body[data-v2="true"] .legal-main { grid-template-columns: 1fr !important; }
  body[data-v2="true"] .legal-sidebar { position: relative; }
}

@media (max-width: 760px) {
  :root { --v2-page: min(100%, calc(100vw - 28px)); --v2-wide: min(100%, calc(100vw - 28px)); }
  body[data-v2="true"] main,
  body[data-v2="true"] .legal-main { padding-left: 14px !important; padding-right: 14px !important; }
  body[data-v2="true"] .legal-sidebar {
    width: 100% !important;
    max-width: 100% !important;
  }
  body[data-v2="true"] .legal-sidebar .side-top {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 14px;
    scrollbar-width: thin;
  }
  body[data-v2="true"] .legal-sidebar .side-link {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 2px;
  }
  body[data-v2="true"] .page-shell,
  body[data-v2="true"] .hero-content { width: var(--v2-page); }
  .v2-shop-title { font-size: clamp(2.5rem, 16vw, 4.4rem); }
  .v2-shop-meta { grid-template-columns: 1fr; }
  .v2-shop-card-top { display: grid; }
  .v2-shop-price { text-align: left; }
}


body[data-v2="true"] .v2-shop-shell--simple {
  max-width: 1180px;
  gap: 22px;
}
.v2-shop-hero--simple {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  padding: 22px 0 4px;
}
.v2-shop-hero--simple .v2-shop-title {
  margin-bottom: 8px;
}
.v2-section-heading--compact {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}
.v2-section-heading--compact h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
}
.v2-shop-grid--simple {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.v2-shop-card--simple .v2-placeholder-media {
  min-height: 260px;
}
.v2-shop-card--simple .v2-shop-card-body {
  gap: 16px;
}
.v2-shop-card--simple .v2-shop-description {
  max-width: 42rem;
}
.v2-shop-support-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--v2-line-soft);
  border-radius: var(--v2-radius);
  background: linear-gradient(180deg, var(--v2-surface-2), var(--v2-surface));
}
.v2-shop-support-strip h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
}
.v2-shop-support-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.v2-shop-support-links a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--v2-line-soft);
  border-radius: 6px;
  color: var(--v2-text);
  font: 400 10px/1.2 "DM Mono", ui-monospace, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}
.v2-shop-support-links a:hover {
  border-color: var(--v2-line);
  background: rgba(255,255,255,0.045);
}
@media (max-width: 760px) {
  .v2-shop-hero--simple,
  .v2-section-heading--compact,
  .v2-shop-support-strip {
    display: grid;
    align-items: start;
  }
  .v2-shop-support-links,
  .v2-shop-support-links a {
    width: 100%;
    justify-content: center;
  }
}
