/* ENCLAV — PACKLY product subpage (dodatkowa podstrona opisowa, beta early 2027).
   Wariant w ramach zaakceptowanego kierunku canvas-bg; tokeny i layout z enclav.css,
   sekcje produktowe stylizowane w tym pliku. */

/* Hero: nadtytuł działu. */
.direction--packly .hero__eyebrow {
  display: block;
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

/* Hero: status beta — launch pill. Wzór wizualny z live Packly (.badge „COMING 2026”,
   badge: inline-block, 0.7rem, weight 600, letter-spacing 0.02em, kolor akcent cyan,
   background rgba(56,189,248,.1), border 1px rgba(56,189,248,.3), radius 9999px,
   padding 0.12em 0.5em, white-space: nowrap) — REV6.1: tekst zmieniony na „COMING EARLY 2027”
   (EN) / „BETA · POCZĄTK 2027” (PL); sam styl pill jest identyczny dla obu wersji. */
.direction--packly .hero__status { margin: 0 0 0.75rem; }
.direction--packly .hero__status .packly-pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgb(56, 189, 248);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 9999px;
  padding: 0.12em 0.5em;
  margin: 0;
  white-space: nowrap;
}

/* Hero: podstawowy tekst supportu — lead (p:first-child) bold emerald, drugi akapit =
   główny przekaz wartości (lead paragraph, owner copy brief REV6.1 §5.1) — pełny ink, bold. */
.direction--packly .hero__support > div > p {
  color: var(--muted);
  font-weight: 400;
}
.direction--packly .hero__support > div > p:first-child {
  color: #34d399;
  font-weight: 700;
}
.direction--packly .hero__support > div > p + p { color: var(--ink); font-weight: 700; }

/* Hasło główne EN „Nothing saved. Nothing shared.” — mniejsze, proporcje jak w wersji PL
   (biały first linia duża, emerald last linia mniejsza — wzór PRIVATE AI).
   Owner fix 2026-11-21: większy odstęp między znakami (wzór wersji PL: -0.025em) + wycentrowanie
   drugiej linii względem pierwszej („Your CAD stays yours.“).
   Owner fix 2026-11-21 (batch 4, EN only): pionowe wyrównanie emerald do linii „stays yours.”
   (dół prawego spanu = dół lewego) — BEZ zmiany font-size i letter-spacing. Poniżej 1280px
   hero__title jest display:block, więc reguła nie ma wpływu na tablet/mobile. */
html[lang="en"] .direction--packly .hero__title { justify-content: center; align-items: flex-end; }
.direction--packly .hero__title span:last-child { font-size: clamp(2rem, 6vw, 4rem); letter-spacing: -0.025em; }

/* Sekcje tekstowe: szare przezroczyste tło (wzór z PRIVATE AI — .pai-surface). */
.direction--packly .service-register:has(> .packly-prose) { background: rgba(255, 255, 255, 0.025); }

/* Owner fix 2026-11-21: sekcje #nesting („Make better use of every sheet.”) i #privacy
   („Your geometry. Your control.”) — tło cały emerald, wzór z PRIVATE AI (.approach:
   Deploy. Optimize. Automate. = background var(--accent) + kolor tekstu var(--accent-ink)). */
.direction--packly #nesting,
.direction--packly #privacy {
  background: var(--accent);
  color: var(--accent-ink);
}
.direction--packly #nesting .section-heading,
.direction--packly #privacy .section-heading { color: var(--accent-ink); }
.direction--packly #nesting .service-intro,
.direction--packly #privacy .service-intro { color: var(--accent-ink); }
.direction--packly #nesting .packly-list li,
.direction--packly #privacy .packly-list li { color: var(--accent-ink); }
.direction--packly #nesting .packly-list li::marker,
.direction--packly #privacy .packly-list li::marker { color: var(--accent-ink); }

/* Closing: hasło białe; owner fix 2026-11-21: rozmiar taki sam jak PRIVATE AI
   („Ready to bring AI into your infrastructure?” — clamp(2.6rem, 7vw, 7rem)). */
.direction--packly .closing h2 { font-size: clamp(2.6rem, 7vw, 7rem); color: #fafafa; }

/* Hero: etykiety etapu. */
.direction--packly .hero__labels {
  margin: 1.75rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}
/* Owner fix 2026-11-21 (REV6.4 — EMERALD ARROW VISUAL CORRECTION): strzałki procesu →➜
   HEAVY ROUND-TIPPED RIGHTWARDS ARROW (U+279C), emerald #34D399, font-weight 900, font-size
   1.35em relative to adjacent process labels, inline-block, vertical-align middle, margin-inline
   0.3em. Wersja z regulaminu: grubsza/bardziej wyraźna niż thin →; mobile: bez zmian struktury. */
.packly-process-arrow {
  display: inline-block;
  color: #34d399;
  font-family: "Arial Unicode MS", "Segoe UI Symbol", sans-serif;
  font-size: 1.35em;
  font-weight: 900;
  line-height: 1;
  opacity: 1;
  vertical-align: middle;
  margin-inline: 0.3em;
}

/* Wzorzec sekcji z nagłówkiem i treścią (prose-only). */
.direction--packly .packly-prose .section-heading { max-width: 20ch; }

/* Sekcja: jak przetwarza się geometrię — nagłówek z dłuższym zdaniem. */
.direction--packly .packly-dataflow .section-heading { max-width: 22ch; }

/* Lista punktowana. */
.direction--packly .packly-list { margin: 0 0 1.25rem; padding: 0 0 0 1.25rem; list-style: disc; }
.direction--packly .packly-list li { margin: 0.35rem 0; color: var(--ink); }
.direction--packly .packly-list li::marker { color: var(--accent); }

/* Sekcja: jak Packly działa — kolejność etapów 01–06. */
.direction--packly .packly-flow { margin: 0; padding: 0; list-style: none; }
.direction--packly .packly-flow li { padding: 1.35rem 0 1.55rem; }
.direction--packly .packly-flow li:first-child { padding-top: 0; }
.direction--packly .packly-flow strong { display: block; margin-bottom: 0.15rem; }
.direction--packly .packly-flow p { margin: 0; color: var(--muted); }

/* Uwagi ograniczające (claim boundaries) w sekcjach produktowych. */
.direction--packly .packly-note { margin: 1.25rem 0 0; color: var(--muted); font-size: 0.9rem; }

/* Link do istniejącej strony dataflow na packly.cc. */
.direction--packly .packly-dataflow__transfer { margin: 1.75rem 0 0; color: var(--muted); }
.direction--packly .packly-dataflow__transfer a { color: var(--accent); text-decoration: underline; text-underline-offset: 0.18em; }

/* Split: nesting niezależny od maszyny vs CAM dla konkretnej maszyny. */
.direction--packly .packly-split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-top: 2rem; }
.direction--packly .packly-split h3 { margin: 0 0 0.75rem; font-size: clamp(1.25rem, 2vw, 1.6rem); }
.direction--packly .packly-split .packly-list { margin-bottom: 0; }

/* Closing: akcje (główny emerald — final CTA, bez powtórki secondary z hero). */
.direction--packly .closing .packly-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1rem; }

@media (max-width: 1279px) {
  .direction--packly .packly-split { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 760px) {
  .direction--packly .packly-prose { max-width: none; }
}

/* ── Packly REV6.4 — live animated confidential compute diagram (ported from Packly.cc live /dataflow-XX.html) ── */
.packly-diagram { width: 100%; max-width: 1100px; margin: clamp(2rem, 5vw, 3rem) 0 0; overflow: hidden; }
.packly-diagram__svg { display: block; width: 100%; height: auto; }
.packly-diagram__svg--desktop { display: none; }

@media (min-width: 1025px) {
  .packly-diagram__svg--desktop { display: block; }
  .packly-diagram__svg--mobile { display: none; }
}

/* Live dataflow animations — 24s master cycle, ported verbatim from Packly.cc live pages. */
.anim-doc { animation: docBreathe 2.8s ease-in-out infinite; }
.a-ring1 { animation: ring1 24s linear infinite; }
.a-ring2 { animation: ring2 24s linear infinite; }
.a-ring3 { animation: ring3 24s linear infinite; }
.a-ring4 { animation: ring4 24s linear infinite; }
.a-out { animation: outChain 24s linear infinite; transform-box: fill-box; transform-origin: center; }
.a-out1 { animation: outGap1 24s linear infinite; }
.a-out2 { animation: outGap2 24s linear infinite; }
.a-out3 { animation: outGap3 24s linear infinite; }
.a-ret-chain { animation: retChainTrain 24s linear infinite; }
.a-num1 { animation: num1 24s linear infinite; }
.a-num2 { animation: num2 24s linear infinite; }
.a-num3 { animation: num3 24s linear infinite; }
.a-num4 { animation: num4 24s linear infinite; }
.a-num5 { animation: num5 24s linear infinite; }
.a-dnaA { animation: dnaA 2.24s linear infinite; transform-box: fill-box; transform-origin: center; }
.a-dnaB { animation: dnaB 2.24s linear infinite; transform-box: fill-box; transform-origin: center; }
.a-dnaC { animation: dnaC 2.24s linear infinite; transform-box: fill-box; transform-origin: center; }
.a-dnaD { animation: dnaD 2.24s linear infinite; transform-box: fill-box; transform-origin: center; }
.a-geo-doc { animation: geoDocFade 24s linear infinite; }
.a-geo-draw { animation: geoPathDraw 24s linear infinite; }
.a-geo-in { animation: geoNodesIn 24s linear infinite; }
.a-gpu-spin { animation: gpuSpin 24s linear infinite; transform-box: fill-box; transform-origin: center; }
.a-nfp { animation: nfpT 24s linear infinite; }
.a-nest { animation: nestT 24s linear infinite; }
.a-cam { animation: camT 24s linear infinite; }
.a-rlane { animation: resultLane 24s linear infinite; }
.a-rpill { animation: resultPill 24s linear infinite; }
.a-rbadg { animation: retBadge 24s linear infinite; }
.a-region { animation: regionPulse 24s linear infinite; }
.a-plash { animation: purgeLaneFlash 24s linear infinite; }
.a-pdot { animation: purgeDot 24s linear infinite; will-change: transform; }
.a-pdotV { animation: purgeDotV 24s linear infinite; will-change: transform; }
.a-gpu-out { animation: gpuContentOut 24s linear infinite; }
.a-purge-out { animation: purgeBoxOut 24s linear infinite; }
.a-result-comeback { animation: resultComeback 24s linear infinite; }
.a-nothing-saved { animation: nothingSaved 24s linear infinite; }
.a-nothing-shared { animation: nothingShared 24s linear infinite; }
.a-step1-out { animation: step1Fade 24s linear infinite; }
.a-step2-out { animation: step2Fade 24s linear infinite; }
.a-step3-out { animation: step3Fade 24s linear infinite; }
.a-out1v { animation: outGap1V 24s linear infinite; }
.a-out2v { animation: outGap2V 24s linear infinite; }
.a-out3v { animation: outGap3V 24s linear infinite; }
.a-rlaneV { animation: resultLaneV 24s linear infinite; }
.a-rbadgV { animation: retBadgeV 24s linear infinite; }
.a-ret-chainV { animation: retChainTrainV 24s linear infinite; }
.a-result-comebackV { animation: resultComebackV 24s linear infinite; }

/* Keyframes — ported verbatim from live Packly (24s master cycle). */
@keyframes dotPulse { 0%, 100% { opacity: 0.4; transform: scale(0.9); } 50% { opacity: 1; transform: scale(1.1); } }
@keyframes docBreathe { 0%, 100% { opacity: 1; } 50% { opacity: 0.72; } }
@keyframes ring1 { 0% { opacity: 0; } 1.93% { opacity: 1; } 5.72% { opacity: 1; } 8.05% { opacity: 0; } 100% { opacity: 0; } }
@keyframes ring2 { 0% { opacity: 0; } 7% { opacity: 0; } 8.17% { opacity: 1; } 16.33% { opacity: 1; } 17.5% { opacity: 0; } 100% { opacity: 0; } }
@keyframes ring3 { 0% { opacity: 0; } 15.17% { opacity: 0; } 16.33% { opacity: 1; } 23.33% { opacity: 1; } 25.08% { opacity: 0; } 100% { opacity: 0; } }
@keyframes ring4 { 0% { opacity: 0; } 26.83% { opacity: 0; } 28% { opacity: 1; } 35% { opacity: 1; } 36.17% { opacity: 0; } 100% { opacity: 0; } }
@keyframes num1 { 0% { opacity: 0; } 1.4% { opacity: 0.62; } 4.73% { opacity: 0.62; } 6.42%, 100% { opacity: 0; } }
@keyframes num2 { 0%, 7% { opacity: 0; } 8.17% { opacity: 0.62; } 16.33% { opacity: 0.62; } 17.5%, 100% { opacity: 0; } }
@keyframes num3 { 0%, 15.17% { opacity: 0; } 16.33% { opacity: 0.62; } 22.17% { opacity: 0.62; } 23.33%, 100% { opacity: 0; } }
@keyframes num4 { 0%, 26.83% { opacity: 0; } 28% { opacity: 0.62; } 35% { opacity: 0.62; } 36.17%, 100% { opacity: 0; } }
@keyframes num5 { 0%, 64.33% { opacity: 0; } 64.34% { opacity: 0.62; } 66.42% { opacity: 0.62; } 74.75%, 100% { opacity: 0; } }
@keyframes dnaA { 0%, 100% { transform: rotate(0deg) translateY(0px); } 25% { transform: rotate(90deg) translateY(-3px); } 50% { transform: rotate(180deg) translateY(0px); } 75% { transform: rotate(270deg) translateY(3px); } }
@keyframes dnaB { 0%, 100% { transform: rotate(90deg) translateY(3px); } 25% { transform: rotate(180deg) translateY(0px); } 50% { transform: rotate(270deg) translateY(-3px); } 75% { transform: rotate(360deg) translateY(0px); } }
@keyframes dnaC { 0%, 100% { transform: rotate(180deg) translateY(2px); } 25% { transform: rotate(90deg) translateY(-2px); } 50% { transform: rotate(0deg) translateY(0px); } 75% { transform: rotate(-90deg) translateY(2px); } }
@keyframes dnaD { 0%, 100% { transform: rotate(360deg) translateY(-2px); } 25% { transform: rotate(450deg) translateY(1px); } 50% { transform: rotate(540deg) translateY(3px); } 75% { transform: rotate(630deg) translateY(-1px); } }
@keyframes retChain { 0%, 36.75% { opacity: 0; transform: translateX(0); } 38.5% { opacity: 1; transform: translateX(0); } 47.25% { opacity: 1; transform: translateX(-638px); } 49.58%, 100% { opacity: 0; transform: translateX(-638px); } }
@keyframes rotCW { to { transform: rotate(360deg); } }
@keyframes geoDocFade { 0%, 15.17% { opacity: 0; } 16.33% { opacity: 1; } 22.17% { opacity: 0; } 100% { opacity: 0; } }
@keyframes geoNodesIn { 0%, 15.17% { opacity: 0; } 16.33% { opacity: 1; } 100% { opacity: 1; } }
@keyframes geoPathDraw { 0%, 15.17% { stroke-dashoffset: 64; opacity: 0; } 16.33% { stroke-dashoffset: 64; opacity: 1; } 22.17% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 1; } }
@keyframes gpuSpin { 0%, 26.83% { opacity: 0; transform: rotate(0deg); } 28% { opacity: 1; transform: rotate(0deg); } 35% { opacity: 1; transform: rotate(360deg); } 36.17%, 100% { opacity: 0; transform: rotate(360deg); } }
@keyframes nfpT { 0%, 28% { opacity: 0; } 29.17% { opacity: 1; } 32.08%, 100% { opacity: 0; } }
@keyframes nestT { 0%, 32.08% { opacity: 0; } 33.25% { opacity: 1; } 36.17%, 100% { opacity: 0; } }
@keyframes camT { 0%, 36.17% { opacity: 0; } 37.33% { opacity: 1; } 39.67%, 100% { opacity: 0; } }
@keyframes resultLane { 0%, 39.67% { opacity: 0; stroke-dashoffset: 605; } 40.83% { opacity: 1; stroke-dashoffset: 605; } 46.67% { opacity: 1; stroke-dashoffset: 0; } 54% { opacity: 1; stroke-dashoffset: 0; } 56%, 100% { opacity: 0; stroke-dashoffset: 0; } }
@keyframes resultPill { 0%, 16.04% { opacity: 0; } 17.15% { opacity: 1; } 23.22% { opacity: 0.9; } 25.43%, 100% { opacity: 0; } }
@keyframes retBadge { 0%, 39.67% { opacity: 0; transform: translateX(0); } 40.83% { opacity: 1; transform: translateX(0); } 46.67% { opacity: 1; transform: translateX(-500px); } 56%, 100% { opacity: 1; transform: translateX(-500px); } }
@keyframes regionPulse { 0%, 46.08% { opacity: 0.9; stroke: #52525b; fill: none; } 47.25%, 100% { opacity: 0.9; stroke: #34d399; fill: rgba(52,211,153,0.1); } }
@keyframes regionGlow { 0%, 34.71% { opacity: 0; } 36.17%, 100% { opacity: 1; } }
@keyframes outChain { 0%, 5.25% { opacity: 0; transform: translateX(0); } 7% { opacity: 1; transform: translateX(0); } 24.5% { opacity: 1; transform: translateX(520px); } 27.42%, 100% { opacity: 0; transform: translateX(520px); } }
@keyframes outGap1 { 0%, 2.16% { opacity: 0; transform: translateX(0); } 2.92% { opacity: 1; transform: translateX(0); } 7.58% { opacity: 1; transform: translateX(30px); } 8.75%, 100% { opacity: 0; transform: translateX(30px); } }
@keyframes outGap2 { 0%, 9.92% { opacity: 0; transform: translateX(0); } 10.5% { opacity: 1; transform: translateX(0); } 15.75% { opacity: 1; transform: translateX(38px); } 16.92%, 100% { opacity: 0; transform: translateX(38px); } }
@keyframes outGap3 { 0%, 22.17% { opacity: 0; transform: translateX(0); } 23.33% { opacity: 1; transform: translateX(0); } 28% { opacity: 1; transform: translateX(28px); } 29.17%, 100% { opacity: 0; transform: translateX(28px); } }
@keyframes retChainTrain { 0%, 42% { opacity: 0; transform: translateX(0); } 43.17% { opacity: 1; transform: translateX(0); } 49% { opacity: 1; transform: translateX(-500px); } 54.83% { opacity: 1; transform: translateX(-500px); } 56%, 100% { opacity: 0; transform: translateX(-500px); } }
@keyframes purgeLaneFlash { 0%, 64.33% { opacity: 0.55; } 64.34%, 100% { opacity: 0; } }
@keyframes purgeDot { 0%, 56% { opacity: 0; transform: translateY(0); } 56.01% { opacity: 1; transform: translateY(0); } 64.34% { opacity: 1; transform: translateY(88px); } 64.35%, 100% { opacity: 0; transform: translateY(88px); } }
@keyframes purgeDotV { 0%, 56% { opacity: 0; transform: translateY(0); } 56.01% { opacity: 1; transform: translateY(0); } 64.34% { opacity: 1; transform: translateY(46px); } 64.35%, 100% { opacity: 0; transform: translateY(46px); } }
@keyframes gpuContentOut { 0%, 41% { opacity: 1; } 47% { opacity: 0.15; } 66.42% { opacity: 0.15; } 74.75% { opacity: 0; } 100% { opacity: 0; } }
@keyframes purgeBoxOut { 0%, 66.42% { opacity: 1; } 74.75% { opacity: 0; } 100% { opacity: 0; } }
@keyframes resultComeback { 0%, 46.08% { opacity: 0; } 47.25% { opacity: 1; } 100% { opacity: 1; } }
@keyframes resultComebackV { 0%, 46.08% { opacity: 0; } 47.25% { opacity: 1; } 100% { opacity: 1; } }
@keyframes nothingSaved { 0%, 78.92% { opacity: 0; } 78.93% { opacity: 1; } 99.75% { opacity: 1; } 100% { opacity: 0; } }
@keyframes nothingShared { 0%, 83.08% { opacity: 0; } 83.09% { opacity: 1; } 99.75% { opacity: 1; } 100% { opacity: 0; } }
@keyframes step1Fade { 0%, 6.42% { opacity: 1; } 8.5%, 100% { opacity: 0.15; } }
@keyframes step2Fade { 0%, 17.5% { opacity: 1; } 19.58%, 100% { opacity: 0.15; } }
@keyframes step3Fade { 0%, 23.33% { opacity: 1; } 25.41% { opacity: 0.15; } 66.42% { opacity: 0.15; } 74.75% { opacity: 0; } 100% { opacity: 0; } }

@keyframes outGap1V { 0%, 2.16% { opacity: 0; transform: translateY(0); } 2.92% { opacity: 1; transform: translateY(0); } 7.58% { opacity: 1; transform: translateY(30px); } 8.75%, 100% { opacity: 0; transform: translateY(30px); } }
@keyframes outGap2V { 0%, 9.92% { opacity: 0; transform: translateY(0); } 10.5% { opacity: 1; transform: translateY(0); } 15.75% { opacity: 1; transform: translateY(38px); } 16.92%, 100% { opacity: 0; transform: translateY(38px); } }
@keyframes outGap3V { 0%, 22.17% { opacity: 0; transform: translateY(0); } 23.33% { opacity: 1; transform: translateY(0); } 28% { opacity: 1; transform: translateY(28px); } 29.17%, 100% { opacity: 0; transform: translateY(28px); } }
@keyframes resultLaneV { 0%, 39.67% { opacity: 0; stroke-dashoffset: 460; } 40.83% { opacity: 1; stroke-dashoffset: 402; } 46.67% { opacity: 1; stroke-dashoffset: 27; } 54% { opacity: 1; stroke-dashoffset: 27; } 56%, 100% { opacity: 0; stroke-dashoffset: 27; } }
@keyframes retBadgeV { 0%, 39.67% { opacity: 0; transform: translateY(0); } 40.83% { opacity: 1; transform: translateY(0); } 46.67% { opacity: 1; transform: translateY(-375px); } 56%, 100% { opacity: 1; transform: translateY(-375px); } }
@keyframes retChainTrainV { 0%, 42% { opacity: 0; transform: translateY(0); } 43.17% { opacity: 1; transform: translateY(0); } 49% { opacity: 1; transform: translateY(-217px); } 54% { opacity: 0.35; transform: translateY(-235px); } 56%, 100% { opacity: 0; transform: translateY(-245px); } }

@media (prefers-reduced-motion: reduce) {
  .packly-diagram *, .packly-diagram *::before, .packly-diagram *::after { animation: none !important; transition: none !important; }
  .packly-diagram .anim-hide { display: none; }
}
