/*
 * Phase-2 polish layer — retired in design system v11.
 *
 * Every visual rule now lives in /assets/styles.css. This file is kept because
 * the Cloudflare build fingerprints it and older cached copies of app.js
 * still request it. Keep it small.
 */

/* Touch devices do not use pointer tilt. Clear compositor hints so mobile
   WebKit does not keep a GPU layer for every tilt-capable card. */
@media (hover: none), (pointer: coarse) {
  [data-tilt] {
    will-change: auto !important;
    transform: none !important;
  }
}

/* ===== v12 "showpiece" layer (homepages only; this file is loaded by the 12 home pages) =====
   Same identity (paper / ink / gold, 3D icons); adds depth, contrast moments and motion.
   No HTML changes. Motion only under prefers-reduced-motion: no-preference. */
@property --lv-p { syntax: "<percentage>"; inherits: false; initial-value: 0%; }

/* --- hero --- */
.home-page .hero-sales .hero-sales-bg::before {
  content: "" !important; display: block !important; position: absolute; inset: 0; opacity: 1; transform: none; filter: none; animation: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--pk-ink) 16%, transparent) 1px, transparent 1.6px) 0 0 / 22px 22px !important;
  -webkit-mask-image: radial-gradient(62% 78% at 50% 34%, #000 10%, transparent 76%); mask-image: radial-gradient(62% 78% at 50% 34%, #000 10%, transparent 76%);
}
.home-page .hero-sales h1 span {
  background: linear-gradient(100deg, #7a5513 0%, #b9862c 28%, #f3d98f 44%, #b9862c 60%, #7a5513 100%) var(--lv-p) 0 / 260% 100% !important;
  -webkit-background-clip: text !important; background-clip: text !important;
}
:root[data-theme="dark"] .home-page .hero-sales h1 span {
  background: linear-gradient(100deg, #d9a948 0%, #f0cf7c 28%, #fff6d8 44%, #f0cf7c 60%, #d9a948 100%) var(--lv-p) 0 / 260% 100% !important;
  -webkit-background-clip: text !important; background-clip: text !important;
}

/* --- platform picker --- */
.home-page .pk-pf[aria-current="true"] {
  border-color: transparent; color: var(--pk-card);
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--pk-gold-hi) 30%, transparent), transparent 60%), var(--pk-ink);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--pk-gold-hi) 70%, transparent), 0 22px 40px -22px color-mix(in srgb, var(--pk-ink) 70%, transparent);
}
:root[data-theme="dark"] .home-page .pk-pf[aria-current="true"] { color: #1a1205; background: linear-gradient(180deg, #f6dc8f, #d9a948); box-shadow: 0 0 0 1px #f6dc8f, 0 22px 40px -20px rgba(230, 190, 98, .55); }
:root[data-theme="dark"] .home-page .pk-pf[aria-current="true"]::after { filter: brightness(.22); }
.home-page .pk-pf[aria-current="true"] .pk-pf-desc { color: color-mix(in srgb, var(--pk-card) 68%, transparent); }
.home-page .pk-pf[aria-current="true"] img { transform: scale(1.08) rotate(-4deg); }
.home-page .pk-panel {
  border-color: transparent;
  background: linear-gradient(var(--pk-card), var(--pk-card)) padding-box,
    linear-gradient(135deg, color-mix(in srgb, var(--pk-gold-hi) 85%, transparent), var(--pk-line) 22%, var(--pk-line) 78%, color-mix(in srgb, var(--pk-gold) 60%, transparent)) border-box;
  box-shadow: var(--pk-shadow), 0 50px 90px -70px var(--pk-gold);
}
.home-page .pk-item > img, .home-page .pk-item .pk-ico { transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.home-page .pk-item:hover > img, .home-page .pk-item:hover .pk-ico, .home-page .pk-item:focus-visible > img, .home-page .pk-item:focus-visible .pk-ico { transform: scale(1.1) rotate(-5deg); }
.home-page .pk-item:hover .pk-price b, .home-page .pk-item:focus-visible .pk-price b { color: var(--pk-gold); }
.home-page .pk-item:active, .home-page .pk-pf:active { transform: scale(.975); }

/* --- contact card: the one ink moment near the top --- */
.home-page .home-contact .hero-contact {
  max-width: 700px; padding: 22px 22px 20px; border: 1px solid rgba(233, 196, 106, .34);
  background: radial-gradient(90% 130% at 50% -10%, rgba(233, 196, 106, .26), transparent 58%), linear-gradient(180deg, #1b1a17, #100f0e);
  box-shadow: 0 34px 60px -34px rgba(18, 17, 16, .7), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.home-page .home-contact .hcx-label { color: #f6f2e8; }
.home-page .home-contact .hcx:not(.hcx-tg) { border-color: rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .07); color: #f6f2e8; box-shadow: none; }
.home-page .home-contact .hcx:not(.hcx-tg):hover, .home-page .home-contact .hcx:not(.hcx-tg):focus-visible { background: rgba(255, 255, 255, .13); border-color: rgba(233, 196, 106, .55); }
.home-page .home-contact .hcx-tg { position: relative; overflow: hidden; box-shadow: 0 14px 28px -14px #229ed9; }
.home-page .home-contact .hcx-tg::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .38), transparent); pointer-events: none; }

/* --- steps --- */
.home-page .buy-steps-list li { transition: transform .3s cubic-bezier(.2, .8, .2, 1), border-color .25s, box-shadow .3s; }
.home-page .buy-steps-list li:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--pk-gold) 50%, transparent) !important; box-shadow: var(--pk-shadow-hi) !important; }
.home-page .buy-steps-list li:not(:last-child)::after { opacity: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--pk-gold) 0 4px, transparent 4px 8px); }

/* --- trust: ink band with gold figures --- */
:root[data-theme="light"] .home-page main .home-trust {
  --bg: #0e0e0f; --bg-2: #151517; --bg-3: #1b1b1e; --card: #17171a; --sep: rgba(255, 255, 255, .08); --sep-2: rgba(255, 255, 255, .14);
  --text: #f4f1ea; --text-2: #b3ada2; --text-3: #8b867c; --shadow: inset 0 1px rgba(255, 255, 255, .05), 0 22px 44px -28px #000;
  --v-line: rgba(255, 255, 255, .1); --v-surface: #17171a;
}
html body.home-page main #reviews.home-trust {
  position: relative; margin-block: 28px 8px; padding-block: 64px; color: var(--text);
  background: radial-gradient(60% 50% at 50% 0%, rgba(233, 196, 106, .2), transparent 70%), #0e0e0f !important;
}
.home-page .home-trust .ht-head h2 { color: #f4f1ea; }
.home-page .home-trust .ht-head .eyebrow { color: #e9c46a !important; }
.home-page .home-trust :is(.rep-card, .review-bubble, .ht-videos) { border: 1px solid rgba(255, 255, 255, .09); background: #17171a !important; color: #f4f1ea; box-shadow: inset 0 1px rgba(255, 255, 255, .05), 0 22px 44px -28px #000 !important; }
.home-page .home-trust .rep-score, .home-page .home-trust .rep-score span {
  color: transparent !important; -webkit-text-fill-color: transparent; background: linear-gradient(180deg, #fbe7a8, #d9a948 60%, #b07d22); -webkit-background-clip: text; background-clip: text;
}
.home-page .home-trust .rep-score small { -webkit-text-fill-color: #b3ada2; color: #b3ada2 !important; background: none; }
.home-page .home-trust .rep-kpis > div { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .08); }
.home-page .home-trust :is(h3, b, strong, .review-bubble p) { color: #f4f1ea; }
.home-page .home-trust :is(.src, .disc, .proof-note, small, time, .rep-kpis span) { color: #b3ada2; }
.home-page .home-trust a:not(.btn) { color: #e9c46a; }
.home-page .home-trust .ht-score :is(.btn:not(.btn-primary), .proof-link) { border: 1px solid rgba(233, 196, 106, .4) !important; background: rgba(233, 196, 106, .1) !important; color: #f3d98f !important; box-shadow: none !important; }
.home-page .home-trust .review-bubble :is(span, small, time, em) { color: #b3ada2; }
.home-page .home-trust .review-bubble :is(b, strong, .who) { color: #f4f1ea; }

/* --- final call --- */
.home-page .home-final { padding: 26px 0 46px; }
.home-page .home-final .hf-btn { position: relative; min-height: 58px; padding-inline: 34px; font-size: 1.06rem; box-shadow: 0 22px 44px -20px var(--pk-gold); }

@media (max-width: 639px) {
  .home-page .home-contact .hero-contact { padding: 16px 12px 14px; }
  .home-page main .home-trust { padding-block: 44px; margin-block: 18px 4px; }
}

@media (prefers-reduced-motion: no-preference) {
  .home-page .hero-sales h1 span { animation: lv-shimmer 7s cubic-bezier(.4, 0, .2, 1) infinite; }
  .home-page .pk-panel.is-active .pk-grid > .pk-item { animation: lv-pop .5s cubic-bezier(.2, .8, .2, 1) backwards; }
  .home-page .pk-grid > .pk-item:nth-child(2) { animation-delay: 30ms; }
  .home-page .pk-grid > .pk-item:nth-child(3) { animation-delay: 60ms; }
  .home-page .pk-grid > .pk-item:nth-child(4) { animation-delay: 90ms; }
  .home-page .pk-grid > .pk-item:nth-child(5) { animation-delay: 120ms; }
  .home-page .pk-grid > .pk-item:nth-child(6) { animation-delay: 150ms; }
  .home-page .pk-grid > .pk-item:nth-child(7) { animation-delay: 180ms; }
  .home-page .pk-grid > .pk-item:nth-child(8) { animation-delay: 210ms; }
  .home-page .pk-grid > .pk-item:nth-child(n+9) { animation-delay: 240ms; }
  .home-page .home-contact .hcx-dot, .home-page .home-final .hcx-dot { animation: lv-ping 2s ease-out infinite; }
  .home-page .home-contact .hcx-tg::after { animation: lv-sheen 4.5s ease-in-out infinite; }
  .home-page .buy-steps-list li:not(:last-child)::after { background-size: 8px 100%; animation: lv-dash .6s linear infinite; }

  /* Scroll-linked motion: no JavaScript, and browsers without it simply show the page. */
  @supports (animation-timeline: view()) {
    body.home-page::before {
      content: ""; position: fixed; z-index: 200; top: 0; left: 0; right: 0; height: 3px; transform-origin: 0 50%; pointer-events: none;
      background: linear-gradient(90deg, #b07d22, #f3d98f, #b07d22); animation: lv-progress linear both; animation-timeline: scroll(root);
    }
    [dir="rtl"] body.home-page::before { transform-origin: 100% 50%; }
    .home-page main > :is(.home-contact, .buy-steps, .home-trust, #home-s5, .home-final) > .container {
      animation: lv-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 42%;
    }
  }
}
@keyframes lv-shimmer { 0%, 35% { --lv-p: 100%; } 100% { --lv-p: 0%; } }
@keyframes lv-pop { from { opacity: 0; transform: translateY(12px) scale(.97); } }
@keyframes lv-ping { 0% { box-shadow: 0 0 0 0 rgba(31, 168, 85, .6); } 100% { box-shadow: 0 0 0 12px rgba(31, 168, 85, 0); } }
@keyframes lv-sheen { 0%, 62% { left: -60%; } 100% { left: 130%; } }
@keyframes lv-dash { to { background-position: 8px 0; } }
@keyframes lv-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes lv-rise { from { opacity: 0; transform: translateY(44px) scale(.97); } to { opacity: 1; transform: none; } }

/* ===== v12 cinematic hero: platform icons orbit a large Telegram icon in real 3D =====
   Pure CSS (3D transforms + registered custom properties). Scrolling pushes the orbits outwards. */
@property --lv-a { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
@property --lv-k { syntax: "<number>"; inherits: true; initial-value: 1; }

.home-page .hero-sales {
  --sc-h: clamp(250px, 31vw, 430px); --sc-r: clamp(138px, 33vw, 470px); --sc-c: clamp(104px, 14.5vw, 196px); --sc-i: clamp(40px, 6vw, 84px); --sc-tilt: -15deg;
  padding: 44px 0 calc(var(--sc-h) + 26px);
}
.home-page .hero-sales .hero-sales-bg {
  background:
    radial-gradient(34% 30% at 50% calc(100% - var(--sc-h) * .5), color-mix(in srgb, var(--pk-gold-hi) 55%, transparent), transparent 72%),
    radial-gradient(60% 46% at 50% calc(100% - var(--sc-h) * .5), var(--pk-gold-soft), transparent 74%),
    radial-gradient(70% 60% at 50% 0%, var(--pk-gold-soft), transparent 70%) !important;
}
/* slow light beams behind the centre piece */
.home-page .hero-sales .hero-sales-bg::after {
  content: "" !important; display: block !important; position: absolute; left: 50%; bottom: calc(var(--sc-h) * .5 + 26px); width: 1400px; height: 1400px; margin: 0 0 -700px -700px;
  opacity: 1; filter: none; border-radius: 50%; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, transparent 0 9deg, color-mix(in srgb, var(--pk-gold-hi) 30%, transparent) 12deg, transparent 15deg 30deg) !important;
  -webkit-mask-image: radial-gradient(closest-side, #000 8%, transparent 62%); mask-image: radial-gradient(closest-side, #000 8%, transparent 62%);
}
.home-page .hero-sales .pk-field {
  display: block !important; inset: auto 0 26px 0; height: var(--sc-h); perspective: 1300px; perspective-origin: 50% 46%; transform-style: preserve-3d;
}
/* orbit paths drawn in the same 3D space */
.home-page .hero-sales .pk-field::before, .home-page .hero-sales .pk-field::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: calc(var(--sc-r) * 2); height: calc(var(--sc-r) * 2); margin: calc(var(--sc-r) * -1) 0 0 calc(var(--sc-r) * -1);
  border-radius: 50%; border: 1px solid color-mix(in srgb, var(--pk-gold) 46%, transparent); transform: rotateX(calc(90deg + var(--sc-tilt))) scale(var(--lv-k));
  box-shadow: 0 0 40px color-mix(in srgb, var(--pk-gold-hi) 30%, transparent), inset 0 0 40px color-mix(in srgb, var(--pk-gold-hi) 18%, transparent);
}
.home-page .hero-sales .pk-field::after { transform: rotateX(calc(90deg + var(--sc-tilt))) scale(calc(var(--lv-k) * .58)); border-style: dashed; }

.home-page .hero-sales .pk-field img:nth-child(n) {
  display: block !important; left: 50%; right: auto; top: 50%; width: var(--sc-i); height: var(--sc-i); margin: calc(var(--sc-i) / -2) 0 0 calc(var(--sc-i) / -2);
  border-radius: 24%; opacity: 1; scale: none; animation: none; translate: none; backface-visibility: visible;
  filter: drop-shadow(0 16px 18px rgba(18, 17, 16, .3));
  --th: calc(var(--o) + var(--lv-a) * var(--dir));
  transform: rotateX(var(--sc-tilt)) rotateY(var(--th)) translateZ(calc(var(--sc-r) * var(--rk) * var(--lv-k))) rotateY(calc(var(--th) * -1)) rotateX(calc(var(--sc-tilt) * -1));
}
/* centre: Telegram, full-resolution art */
.home-page .hero-sales .pk-field img:nth-child(1) {
  width: var(--sc-c); height: var(--sc-c); margin: calc(var(--sc-c) / -2) 0 0 calc(var(--sc-c) / -2);
  transform: translateZ(0); filter: drop-shadow(0 34px 34px rgba(18, 17, 16, .4)) drop-shadow(0 0 46px color-mix(in srgb, var(--pk-gold-hi) 60%, transparent));
}
/* Large screens swap in the full-resolution art; phones keep the image that is already loaded. */
@media (min-width: 900px) { .home-page .hero-sales .pk-field img:nth-child(1) { content: url("/assets/pi3d-telegram.webp"); } }
/* inner orbit */
.home-page .hero-sales .pk-field img:nth-child(n+2):nth-child(-n+6) { --rk: .58; --dir: 1; width: calc(var(--sc-i) * .86); height: calc(var(--sc-i) * .86); margin: calc(var(--sc-i) * -.43) 0 0 calc(var(--sc-i) * -.43); }
.home-page .hero-sales .pk-field img:nth-child(2) { --o: 20deg; }
.home-page .hero-sales .pk-field img:nth-child(3) { --o: 92deg; }
.home-page .hero-sales .pk-field img:nth-child(4) { --o: 164deg; }
.home-page .hero-sales .pk-field img:nth-child(5) { --o: 236deg; }
.home-page .hero-sales .pk-field img:nth-child(6) { --o: 308deg; }
/* outer orbit, opposite direction */
.home-page .hero-sales .pk-field img:nth-child(n+7) { --rk: 1; --dir: -.6; }
.home-page .hero-sales .pk-field img:nth-child(7) { --o: 0deg; }
.home-page .hero-sales .pk-field img:nth-child(8) { --o: 60deg; }
.home-page .hero-sales .pk-field img:nth-child(9) { --o: 120deg; }
.home-page .hero-sales .pk-field img:nth-child(10) { --o: 180deg; }
.home-page .hero-sales .pk-field img:nth-child(11) { --o: 240deg; }
.home-page .hero-sales .pk-field img:nth-child(12) { --o: 300deg; }
:root[data-theme="dark"] .home-page .hero-sales .pk-field img:nth-child(n) { opacity: 1; }

@media (max-width: 899px) { .home-page .hero-sales { padding: 30px 0 calc(var(--sc-h) + 20px); } }
@media (max-width: 639px) {
  .home-page .hero-sales {
    --sc-h: 184px;
    --sc-r: clamp(120px, 36vw, 150px);
    --sc-c: clamp(84px, 24vw, 104px);
    --sc-tilt: -18deg;
    padding: 20px 0 calc(var(--sc-h) + 12px);
  }
  .home-page .hero-sales .pk-field { inset: auto 0 12px 0; perspective: 900px; }
}

@media (prefers-reduced-motion: no-preference) {
  .home-page .hero-sales .pk-field { animation: lv-orbit 70s linear infinite; }
  .home-page .hero-sales .pk-field img:nth-child(1) { animation: lv-core 6s ease-in-out infinite; }
  .home-page .hero-sales .hero-sales-bg::after { animation: lv-beams 90s linear infinite; }
  @supports (animation-timeline: scroll()) {
    .home-page .hero-sales .pk-field { animation: lv-orbit 70s linear infinite, lv-fly linear both; animation-timeline: auto, scroll(root); animation-range: normal, 0px 720px; }
    .home-page .hero-sales .hero-sales-copy { animation: lv-copy linear both; animation-timeline: scroll(root); animation-range: 0px 520px; }
  }
}
@keyframes lv-orbit { to { --lv-a: 360deg; } }
@keyframes lv-core { 50% { translate: 0 -10px; rotate: 3deg; } }
@keyframes lv-beams { to { transform: rotate(360deg); } }
@keyframes lv-fly { to { --lv-k: 2.3; opacity: 0; } }
@keyframes lv-copy { to { transform: translateY(70px); opacity: .25; } }

/* styles.css switches every animation and transition off site-wide (2026-10-09, "lighter site").
   The rules below switch motion back on for this layer only, and only when the visitor allows motion. */
@media (prefers-reduced-motion: no-preference) {
  .home-page .hero-sales .pk-field { animation-duration: 70s !important; animation-iteration-count: infinite !important; }
  .home-page .hero-sales .pk-field img:nth-child(1) { animation-duration: 6s !important; animation-iteration-count: infinite !important; }
  .home-page .hero-sales .hero-sales-bg::after { animation: lv-beams 90s linear infinite !important; }
  html:root[data-theme] body.home-page .hero-sales h1 span { animation: lv-shimmer 7s cubic-bezier(.4, 0, .2, 1) infinite !important; }
  .home-page .home-contact .hcx-dot, .home-page .home-final .hcx-dot { animation-duration: 2s !important; animation-iteration-count: infinite !important; }
  .home-page .home-contact .hcx-tg::after { animation-duration: 4.5s !important; animation-iteration-count: infinite !important; }
  .home-page .buy-steps-list li:not(:last-child)::after { animation-duration: .6s !important; animation-iteration-count: infinite !important; }
  .home-page .pk-panel.is-active .pk-grid > .pk-item { animation-duration: .5s !important; }
  .home-page :is(.pk-pf, .pk-item, .buy-steps-list li, .hcx) { transition-duration: .28s !important; }
  .home-page :is(.pk-pf img, .pk-item > img, .pk-item .pk-ico) { transition-duration: .35s !important; }
  @supports (animation-timeline: scroll()) {
    .home-page .hero-sales .pk-field { animation-duration: 70s, auto !important; animation-iteration-count: infinite, 1 !important; }
  }
}

/* Light theme: the hero is an ink stage (same black & gold as the inner-page heroes); the picker rises over it as a paper sheet. */
html:root[data-theme="light"] body.home-page .hero-sales.hero-sales {
  --pk-ink: #f6f2e8; --pk-mute: #b3ada2; --pk-card: #17171a; --pk-soft: #131315; --pk-line: rgba(255, 255, 255, .08); --pk-line2: rgba(255, 255, 255, .16);
  --pk-gold: #e6be62; --pk-gold-hi: #f6dc8f; --pk-gold-soft: rgba(230, 190, 98, .12); --pk-shadow: inset 0 1px rgba(255, 255, 255, .05), 0 18px 40px -26px #000;
  background: linear-gradient(180deg, #131214, #09090a) !important; padding-bottom: calc(var(--sc-h) + 62px);
}
html:root[data-theme="light"] body.home-page .hero-sales h1 { color: #fbf7ee !important; }
html:root[data-theme="light"] body.home-page .hero-sales h1 span {
  background: linear-gradient(100deg, #d9a948 0%, #f0cf7c 28%, #fff6d8 44%, #f0cf7c 60%, #d9a948 100%) var(--lv-p) 0 / 260% 100% !important;
  -webkit-background-clip: text !important; background-clip: text !important;
}
html:root[data-theme="light"] body.home-page .hero-sales .hero-sales-copy .eyebrow { background: rgba(255, 255, 255, .06); border-color: rgba(236, 198, 104, .3); color: #d9d2c4 !important; box-shadow: none; }
html:root[data-theme="light"] body.home-page .hero-sales .hero-sales-copy .eyebrow::before { background-color: #ecc668 !important; }
html:root[data-theme="light"] body.home-page .hero-sales .pk-field { bottom: 62px; }
html:root[data-theme="light"] body.home-page .hero-sales .pk-field img:nth-child(n) { filter: drop-shadow(0 18px 20px rgba(0, 0, 0, .6)); }
html:root[data-theme="light"] body.home-page .hero-sales .pk-field img:nth-child(1) { filter: drop-shadow(0 34px 34px rgba(0, 0, 0, .7)) drop-shadow(0 0 54px rgba(246, 220, 143, .5)); }
html:root[data-theme="light"] body.home-page { background-image: linear-gradient(#131214, #131214); background-size: 100% 150px; background-repeat: no-repeat; }
html:root[data-theme="light"] body.home-page main > .services-hub { position: relative; margin-top: -36px; padding-top: 44px; border-radius: 36px 36px 0 0; background: var(--pk-bg, #f6f4ef); box-shadow: 0 -24px 50px -30px rgba(0, 0, 0, .55); }
@media (max-width: 639px) {
  html:root[data-theme="light"] body.home-page .hero-sales.hero-sales { padding-bottom: calc(var(--sc-h) + 27px); }
  html:root[data-theme="light"] body.home-page .hero-sales .pk-field { bottom: 27px; }
  html:root[data-theme="light"] body.home-page main > .services-hub { margin-top: -26px; padding-top: 30px; border-radius: 26px 26px 0 0; }
}
