/* ======================================================================
   xcp-ng.pl — overrides on top of anythin.css
   Loaded AFTER anythin.css so these rules win specificity ties.
   Handles: hero page-title, pricing cards, VMware comparison table,
            FAQ <details>, Vates partner strip, back-to-parent footer link.
   ====================================================================== */
/* ----- Hero page title: large "XCP-ng" wordmark below the logo ----- */
/* Helios's original <p> tagline sits below the <hr>; we're replacing it with
   a bigger display composition — XCP-ng as the dominant element. */
#header .page-title {
  margin-top: -0.25em;
  line-height: 1.1;
}
#header .page-title h2 {
  font-size: 3.2em;
  font-weight: 300;
  letter-spacing: -0.015em;
  margin: 0 0 0.3em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  color: #fff;
}
#header .page-tagline {
  font-size: 1.1em;
  letter-spacing: 0.05em;
  margin: 0;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}
@media (max-width: 736px) {
  #header .page-title h2 { font-size: 2.4em; }
  #header .page-tagline { font-size: 0.95em; }
}
@media (max-width: 480px) {
  #header .page-title h2 { font-size: 2em; }
}

/* Helios's article-level padding pulls text cards into centre-text treatment
   in #services. Since we reuse the anythin.pl service-card pattern here, the
   icon-based layout comes for free from anythin.css. Nothing to add. */

/* ----- Pricing grid: Vates VMS tiers — 4-up on desktop, stacks on mobile ----- */
.license-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25em;
  margin: 2em 0 2em;
  text-align: left;
}
@media (max-width: 1200px) {
  .license-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 736px) {
  .license-grid { grid-template-columns: 1fr; }
}
.license-card {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(128, 128, 128, 0.18);
  border-radius: 6px;
  padding: 1.75em 1.5em;
  display: flex;
  flex-direction: column;
}
.license-card.featured-card {
  border-color: rgba(195, 4, 22, 0.35);
  box-shadow: 0 10px 30px rgba(195, 4, 22, 0.12);
  transform: translateY(-4px);
}
@media (max-width: 1200px) {
  .license-card.featured-card { transform: none; }
}
.license-card > header {
  margin-bottom: 1em;
  padding-bottom: 1em;
  border-bottom: 1px solid rgba(128, 128, 128, 0.15);
}
.license-card h3 {
  font-size: 1.25em;
  font-weight: 400;
  margin: 0 0 0.3em;
  color: #1C0920;
  line-height: 1.2;
}
.license-card .price {
  font-size: 0.85em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #c30416;
  margin: 0;
}
.license-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.95em;
  line-height: 1.5;
}
.license-card li {
  padding: 0.4em 0 0.4em 1.2em;
  position: relative;
  color: rgba(72, 57, 73, 0.88);
  border: none;
}
.license-card li:before {
  content: "›";
  position: absolute;
  left: 0;
  top: 0.4em;
  color: #c30416;
  font-weight: 600;
}
.license-note {
  margin-top: 1.5em;
  padding: 1em 1.25em;
  background: rgba(195, 4, 22, 0.04);
  border-left: 3px solid #c30416;
  font-size: 0.92em;
  line-height: 1.55;
  text-align: left;
}

/* ----- VMware comparison table ----- */
/* Built with CSS grid rather than <table> so the language-toggle spans in
   individual cells still visually align. Responsive fallback: stacks cleanly. */
.compare-table {
  margin: 2em 0 1.5em;
  border: 1px solid rgba(128, 128, 128, 0.18);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.55);
}
.compare-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  border-bottom: 1px solid rgba(128, 128, 128, 0.12);
  text-align: left;
}
.compare-row:last-child { border-bottom: none; }
.compare-row.compare-head {
  background: rgba(28, 9, 32, 0.04);
  font-size: 1.05em;
}
.compare-cell {
  padding: 0.9em 1.2em;
  font-size: 0.95em;
  line-height: 1.45;
  border-left: 1px solid rgba(128, 128, 128, 0.1);
}
.compare-cell:first-child { border-left: none; }
.compare-cell.compare-label {
  font-weight: 600;
  color: rgba(72, 57, 73, 0.75);
  background: rgba(28, 9, 32, 0.02);
}
.compare-cell small {
  display: block;
  font-size: 0.82em;
  color: rgba(72, 57, 73, 0.6);
  font-weight: 400;
}
.compare-footnote {
  font-size: 0.9em;
  color: rgba(72, 57, 73, 0.75);
  font-style: italic;
  text-align: left;
  margin-top: 1em;
}
@media (max-width: 736px) {
  .compare-row { grid-template-columns: 1fr; }
  .compare-cell { border-left: none; border-top: 1px solid rgba(128, 128, 128, 0.08); }
  .compare-cell:first-child { border-top: none; }
  .compare-row.compare-head { display: none; }
  .compare-cell.compare-label { font-size: 0.8em; text-transform: uppercase; letter-spacing: 0.08em; }
}

/* ----- FAQ with native <details> ----- */
.faq {
  max-width: 820px;
  margin: 0 auto;
  text-align: left;
}
.faq details {
  border-bottom: 1px solid rgba(128, 128, 128, 0.18);
  padding: 0.75em 0;
}
.faq details[open] { padding-bottom: 1.25em; }
.faq summary {
  cursor: pointer;
  padding: 0.75em 2em 0.75em 0;
  font-size: 1.05em;
  font-weight: 400;
  color: #1C0920;
  list-style: none;
  position: relative;
  line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:after {
  content: "+";
  position: absolute;
  right: 0.25em;
  top: 0.6em;
  font-size: 1.4em;
  color: #c30416;
  font-weight: 300;
  transition: transform 0.2s ease;
}
.faq details[open] summary:after {
  content: "−";
  transform: rotate(0deg);
}
.faq details p {
  padding: 0 2.5em 0.25em 0;
  font-size: 0.95em;
  line-height: 1.65;
  color: rgba(72, 57, 73, 0.9);
  margin: 0.5em 0 0;
}
.faq details p + p { margin-top: 0.75em; }

/* ----- Footer: back-to-parent link ----- */
.back-to-parent {
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.85) !important;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
  display: inline-block;
  margin-top: 0.5em;
  padding-bottom: 2px;
}
.back-to-parent:hover {
  color: #fff !important;
  border-bottom-color: #c30416;
}

/* ----- Partner strip: flagship callout for "Vates Partner / Reseller w Polsce" ----- */
.partner-strip {
  display: flex;
  align-items: center;
  gap: 1.5em;
  max-width: 820px;
  margin: 1.5em auto 0;
  padding: 1.5em 1.75em;
  background: linear-gradient(135deg, rgba(28, 9, 32, 0.04), rgba(195, 4, 22, 0.04));
  border: 1px solid rgba(195, 4, 22, 0.2);
  border-radius: 8px;
  text-align: left;
}
.partner-strip .partner-mark {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #c30416;
  color: #fff;
  font-size: 1.75em;
  box-shadow: 0 6px 18px rgba(195, 4, 22, 0.25);
}
.partner-strip .partner-body { flex: 1 1 auto; }
.partner-strip h4 {
  font-size: 1.1em;
  font-weight: 600;
  margin: 0 0 0.3em;
  color: #1C0920;
  letter-spacing: -0.005em;
}
.partner-strip p {
  font-size: 0.95em;
  line-height: 1.55;
  margin: 0;
  color: rgba(72, 57, 73, 0.88);
}
@media (max-width: 736px) {
  .partner-strip {
    flex-direction: column;
    text-align: center;
    padding: 1.5em 1.25em;
    gap: 1em;
  }
}

/* ----- Code element used in-content ----- */
code {
  background: rgba(28, 9, 32, 0.06);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.9em;
  font-family: Menlo, Consolas, monospace;
  color: #c30416;
}
