/**
 * HOME test (campaign draft) — scoped under .pi-ht
 * Tokens from pi-brand.css. Theme header/footer unchanged.
 */

/* Hide theme page title (shortcode supplies the only H1). */
body.pi-home-campaign .page-title,
body.pi-home-campaign .de-page-title,
body.pi-home-campaign .entry-title,
body.pi-home-campaign h1.page-title,
body.pi-hometest .page-title,
body.pi-hometest .de-page-title,
body.pi-hometest .entry-title,
body.pi-hometest h1.page-title {
  display: none !important;
}

.pi-ht {
  --ht-bg: var(--pi-bg, #1b1f22);
  --ht-panel: var(--pi-surface, #2a3238);
  --ht-panel2: var(--pi-surface-2, #232a30);
  --ht-ink: var(--pi-text, #f2f4f6);
  --ht-muted: var(--pi-muted, #9aa7ae);
  --ht-cyan: var(--pi-accent, #00cfe0);
  --ht-green: var(--pi-accent-eco, #62d26f);
  --ht-amber: #e8b05b;
  --ht-line: var(--pi-border, #3a444c);
  --ht-max: 1180px;
  color: var(--ht-ink);
  background:
    radial-gradient(circle at 86% 8%, rgba(0, 207, 224, 0.1), transparent 32%),
    radial-gradient(circle at 14% 70%, rgba(98, 210, 111, 0.07), transparent 30%),
    var(--ht-bg);
  font-family: var(--pi-font-body, "Source Sans 3", system-ui, sans-serif);
  font-size: var(--pi-text-base, 0.875rem);
  line-height: 1.55;
  overflow: hidden;
}
.pi-ht *,
.pi-ht *::before,
.pi-ht *::after { box-sizing: border-box; }
.pi-ht a { color: inherit; text-decoration: none; }

.pi-ht-wrap {
  width: min(var(--ht-max), calc(100% - 40px));
  margin-inline: auto;
}

.pi-ht-announce {
  border-bottom: 1px solid var(--ht-line);
  background: #14181b;
  color: #cbd4d8;
  text-align: center;
  font-size: 0.8125rem;
  padding: 0.65rem 1rem;
}
.pi-ht-announce strong { color: var(--ht-green); }

.pi-ht-brand {
  margin: 0 0 0.75rem;
  font-family: var(--pi-font-display, Sora, system-ui, sans-serif);
  font-size: clamp(1.15rem, 2.4vw, 1.65rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ht-ink);
}

.pi-ht-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.85rem;
  color: var(--ht-green);
  font-family: var(--pi-font-display, Sora, system-ui, sans-serif);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}
.pi-ht-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--ht-green);
}

.pi-ht h1,
.pi-ht h2,
.pi-ht h3 {
  font-family: var(--pi-font-display, Sora, system-ui, sans-serif);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--ht-ink);
}
.pi-ht h1 {
  font-size: clamp(2rem, 5.5vw, 3.35rem);
  margin: 0 0 1rem;
  max-width: 18ch;
}
.pi-ht h2 {
  font-size: clamp(1.45rem, 3.4vw, 2.35rem);
  margin: 0;
  max-width: 22ch;
}
.pi-ht h3 { font-size: 1.1rem; margin: 0 0 0.55rem; }

.pi-ht-grad {
  background: linear-gradient(90deg, var(--ht-cyan), var(--ht-green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pi-ht-lead,
.pi-ht-muted,
.pi-ht-head p,
.pi-ht-problem p,
.pi-ht-loop p,
.pi-ht-mat p,
.pi-ht-product-body > p,
.pi-ht-arch-card p,
.pi-ht-license > p,
.pi-ht-public-copy > p,
.pi-ht-faq p,
.pi-ht-cta > .pi-ht-wrap > p {
  color: var(--ht-muted);
  margin: 0;
}

.pi-ht-lead { font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 42rem; }

.pi-ht-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--ht-cyan);
  border-radius: var(--pi-radius-btn, 4px);
  font-family: var(--pi-font-display, Sora, system-ui, sans-serif);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, filter 0.2s ease, background 0.2s ease;
}
.pi-ht-btn:hover { transform: translateY(-1px); }
.pi-ht-btn-primary {
  background: var(--ht-cyan);
  color: var(--pi-on-accent, #1b1f22) !important;
  border-color: var(--ht-cyan);
}
.pi-ht-btn-secondary {
  background: transparent;
  border-color: #56636b;
  color: var(--ht-ink) !important;
}
.pi-ht-btn-ghost {
  background: #151a1d;
  border-color: #3c4a51;
  color: var(--ht-ink) !important;
  margin-top: auto;
}

.pi-ht-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
}
.pi-ht-actions-center { justify-content: center; }

.pi-ht-hero { padding: 3.5rem 0 3.75rem; }
.pi-ht-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.75rem;
  align-items: center;
}

.pi-ht-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.pi-ht-proof div {
  border-top: 1px solid var(--ht-line);
  padding-top: 0.75rem;
  color: var(--ht-muted);
  font-size: 0.8rem;
}
.pi-ht-proof strong {
  display: block;
  color: var(--ht-ink);
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
  font-family: var(--pi-font-display, Sora, system-ui, sans-serif);
}

/* Empty media / product slots */
.pi-ht-media,
.pi-ht-slot {
  position: relative;
  border: 1px dashed var(--ht-line);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.03), transparent),
    var(--ht-panel2);
  display: grid;
  place-items: center;
  text-align: center;
  color: #8d989e;
  overflow: hidden;
}
.pi-ht-media {
  min-height: 28rem;
  border-style: solid;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}
.pi-ht-slot {
  width: 100%;
  min-height: 10rem;
  padding: 1.25rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-family: var(--pi-font-display, Sora, system-ui, sans-serif);
}
.pi-ht-slot small,
.pi-ht-slot span + small {
  display: block;
  margin-top: 0.55rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: #6f7c83;
  font-family: var(--pi-font-body, "Source Sans 3", system-ui, sans-serif);
  font-size: 0.8rem;
}
.pi-ht-slot-tall { min-height: 14rem; border-radius: 0; border: 0; border-bottom: 1px solid var(--ht-line); }

/* Filled media (uploaded image / YouTube loop) */
.pi-ht-media.has-media,
.pi-ht-slot.has-media {
  padding: 0 !important;
  border-style: solid;
  display: block !important;
  color: transparent;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  place-items: unset !important;
  overflow: hidden !important;
  position: relative !important;
}
.pi-ht-media.has-media {
  min-height: 28rem;
  height: clamp(24rem, 52vh, 34rem);
}
.pi-ht-slot.has-media.pi-ht-slot-tall {
  min-height: 14rem;
  height: 14rem;
}
.pi-ht-slot-fill {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pi-ht-yt {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  background: #0a0c0d;
  z-index: 1;
}
.pi-ht-mp4 {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  background: #0a0c0d;
  z-index: 1;
}
.pi-ht-mp4-el {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border: 0;
  pointer-events: none;
}
.pi-ht-media.has-media .pi-ht-yt iframe,
.pi-ht-slot.has-media .pi-ht-yt iframe {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  /* Scale past YouTube internal letterboxing / music mini-player chrome */
  transform: translate(-50%, -50%) scale(2.4) !important;
  transform-origin: center center !important;
  border: 0 !important;
  pointer-events: none !important;
}
.pi-ht-media.has-media .pi-ht-media-status {
  z-index: 3;
}
.pi-ht-media.has-media .pi-ht-media-cap {
  display: none !important;
}

.pi-ht-media-status {
  position: absolute;
  z-index: 2;
  top: 1rem;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #111416;
  border: 1px solid var(--ht-line);
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  color: #dce2e5;
  font-size: 0.72rem;
  font-weight: 700;
}
.pi-ht-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--ht-green);
}
.pi-ht-media-cap {
  position: absolute;
  z-index: 2;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  margin: 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--ht-line);
  border-radius: 10px;
  background: rgba(13, 16, 18, 0.88);
  color: #b9c3c8;
  font-size: 0.8rem;
  text-align: left;
}

.pi-ht-section { padding: 4.5rem 0; }
.pi-ht-alt { background: rgba(0, 0, 0, 0.18); }
.pi-ht-deep { background: #121618; }

.pi-ht-head {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}
.pi-ht-head p { max-width: 32rem; }

.pi-ht-problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.pi-ht-problem {
  border: 1px solid var(--ht-line);
  border-radius: 14px;
  padding: 1.6rem;
  background: var(--ht-panel2);
}
.pi-ht-big {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  font-family: var(--pi-font-display, Sora, system-ui, sans-serif);
}
.pi-ht-problem h3 { margin: 1.2rem 0 0.5rem; font-size: 1.2rem; }

.pi-ht-loop {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--ht-line);
  border: 1px solid var(--ht-line);
  border-radius: 14px;
  overflow: hidden;
}
.pi-ht-loop article {
  background: var(--ht-panel2);
  padding: 1.35rem;
  min-height: 13rem;
}
.pi-ht-num {
  font-size: 0.72rem;
  color: var(--ht-cyan);
  font-weight: 700;
  font-family: var(--pi-font-display, Sora, system-ui, sans-serif);
}
.pi-ht-loop h3 { margin: 2rem 0 0.55rem; font-size: 1.05rem; }

.pi-ht-notice {
  margin-top: 1rem;
  border: 1px solid rgba(232, 176, 91, 0.38);
  background: rgba(232, 176, 91, 0.07);
  padding: 0.9rem 1rem;
  border-radius: 10px;
  color: #d9d1c0;
  font-size: 0.85rem;
}
.pi-ht-notice strong { color: #f3c978; }

.pi-ht-materials,
.pi-ht-products,
.pi-ht-arch,
.pi-ht-licenses,
.pi-ht-roadmap {
  display: grid;
  gap: 1rem;
}
.pi-ht-materials { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pi-ht-products,
.pi-ht-arch,
.pi-ht-licenses { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pi-ht-roadmap { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.pi-ht-mat,
.pi-ht-arch-card,
.pi-ht-license,
.pi-ht-public-copy {
  border: 1px solid var(--ht-line);
  border-radius: 14px;
  background: var(--ht-panel2);
  padding: 1.35rem;
}
.pi-ht-mat { position: relative; overflow: hidden; }
.pi-ht-mat-code {
  font-size: 2rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-family: var(--pi-font-display, Sora, system-ui, sans-serif);
}
.pi-ht-mat h3 { margin: 0.9rem 0 0.4rem; }
.pi-ht-mat small {
  display: block;
  color: #839097;
  margin-top: 0.9rem;
  border-top: 1px solid var(--ht-line);
  padding-top: 0.65rem;
  font-size: 0.78rem;
}

.pi-ht-product {
  background: var(--ht-panel2);
  border: 1px solid var(--ht-line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.pi-ht-product-body { padding: 1.35rem; flex: 1; display: flex; flex-direction: column; }
.pi-ht-product-body h3 { font-size: 1.25rem; }
.pi-ht-product ul,
.pi-ht-license ul {
  padding-left: 1.1rem;
  color: #c8d0d4;
  margin: 0.75rem 0 1rem;
}
.pi-ht-product li,
.pi-ht-license li { margin: 0.35rem 0; }
.pi-ht-tag {
  display: inline-block;
  border: 1px solid #46535a;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  font-size: 0.68rem;
  color: #cbd3d7;
  margin: 0.15rem 0.25rem 0 0;
}

.pi-ht-feature {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.2rem;
  align-items: center;
}
.pi-ht-cube {
  aspect-ratio: 1;
  max-width: 26rem;
  margin: auto;
  border: 2px solid var(--ht-cyan);
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  transform: rotate(-3deg);
  background: linear-gradient(135deg, rgba(0, 207, 224, 0.08), transparent);
  padding: 1.5rem;
}
.pi-ht-cube::before,
.pi-ht-cube::after {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px dashed rgba(98, 210, 111, 0.55);
}
.pi-ht-cube::after {
  inset: 2.2rem;
  border-color: rgba(255, 255, 255, 0.16);
}
.pi-ht-cube strong {
  position: relative;
  z-index: 1;
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  line-height: 1.05;
  transform: rotate(3deg);
  font-family: var(--pi-font-display, Sora, system-ui, sans-serif);
}
.pi-ht-cube span {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 0.5rem;
  color: var(--ht-muted);
  font-size: 0.8rem;
  transform: rotate(3deg);
  font-weight: 400;
}
.pi-ht-feature h2 { margin: 0 0 1rem; max-width: none; }
.pi-ht-feature .pi-ht-muted { margin-bottom: 0.85rem; font-size: 1rem; }

.pi-ht-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.pi-ht-checks div {
  border-top: 1px solid var(--ht-line);
  padding-top: 0.65rem;
}
.pi-ht-checks strong {
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--pi-font-display, Sora, system-ui, sans-serif);
}
.pi-ht-checks span { color: var(--ht-muted); font-size: 0.85rem; }

.pi-ht-arch-icon {
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ht-cyan);
}

.pi-ht-license { display: flex; flex-direction: column; gap: 0.35rem; }
.pi-ht-license-feat {
  border-color: var(--ht-cyan);
  box-shadow: 0 14px 40px rgba(0, 207, 224, 0.08);
}
.pi-ht-pill {
  display: inline-flex;
  width: max-content;
  border: 1px solid #46545c;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #cbd4d8;
}

.pi-ht-public {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  align-items: stretch;
}
.pi-ht-public .pi-ht-slot { min-height: 18rem; border-radius: 14px; border: 1px dashed var(--ht-line); }
.pi-ht-public-copy h3 { font-size: 1.45rem; }
.pi-ht-public-list { display: grid; gap: 0.75rem; margin-top: 1.1rem; }
.pi-ht-public-list div {
  border-top: 1px solid var(--ht-line);
  padding-top: 0.65rem;
}
.pi-ht-public-list strong {
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--pi-font-display, Sora, system-ui, sans-serif);
}
.pi-ht-public-list span { color: var(--ht-muted); font-size: 0.85rem; }

.pi-ht-mile {
  border-top: 2px solid #415058;
  padding-top: 0.9rem;
}
.pi-ht-mile-on { border-color: var(--ht-green); }
.pi-ht-mile strong {
  display: block;
  font-size: 0.95rem;
  font-family: var(--pi-font-display, Sora, system-ui, sans-serif);
}
.pi-ht-mile span {
  display: block;
  color: var(--ht-muted);
  margin-top: 0.4rem;
  font-size: 0.85rem;
}

.pi-ht-faq { display: grid; gap: 0.65rem; }
.pi-ht-faq details {
  border: 1px solid var(--ht-line);
  border-radius: 10px;
  background: var(--ht-panel2);
  padding: 0 1rem;
}
.pi-ht-faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 1rem 0;
  list-style: none;
  font-family: var(--pi-font-display, Sora, system-ui, sans-serif);
}
.pi-ht-faq summary::-webkit-details-marker { display: none; }
.pi-ht-faq summary::after {
  content: "+";
  float: right;
  color: var(--ht-cyan);
  font-size: 1.2rem;
}
.pi-ht-faq details[open] summary::after { content: "–"; }
.pi-ht-faq p { padding: 0 0 1rem; }

.pi-ht-cta {
  text-align: center;
  padding: 4.5rem 1rem;
  background: #101315;
  border-top: 1px solid var(--ht-line);
}
.pi-ht-cta h2 {
  max-width: none;
  margin: 0 auto 1rem;
  font-size: clamp(1.75rem, 5vw, 3rem);
}
.pi-ht-cta .pi-ht-wrap > p { max-width: 40rem; margin: 0 auto; }
.pi-ht-note {
  margin-top: 1rem !important;
  font-size: 0.75rem !important;
  color: #738087 !important;
}

.pi-ht-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.pi-ht-reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 1050px) {
  .pi-ht-loop { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pi-ht-materials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pi-ht-roadmap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .pi-ht-hero-grid,
  .pi-ht-feature,
  .pi-ht-public { grid-template-columns: 1fr; }
  .pi-ht-media { min-height: 20rem; }
  .pi-ht-products,
  .pi-ht-arch,
  .pi-ht-licenses { grid-template-columns: 1fr; }
  .pi-ht-head { display: block; }
  .pi-ht-head p { margin-top: 0.85rem; }
}
@media (max-width: 620px) {
  .pi-ht-wrap { width: min(100% - 24px, var(--ht-max)); }
  .pi-ht-hero { padding-top: 2rem; }
  .pi-ht-proof,
  .pi-ht-problem-grid,
  .pi-ht-checks,
  .pi-ht-materials,
  .pi-ht-roadmap { grid-template-columns: 1fr; }
  .pi-ht-loop { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .pi-ht-reveal { opacity: 1; transform: none; transition: none; }
  .pi-ht-btn:hover { transform: none; }
}
