/* Products page: 3D tilted dashboard stack in the hero, sticky product chips, alternating product chapters with a tilted "device" frame.
   transform / opacity only; blocks start once in view (.in). */
.pr-hero, .pv-hero { position: relative; overflow: hidden; isolation: isolate; margin-top: 88px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #ffe9d0 0%, #fff3e3 40%, #fffaf3 100%); }
.pr-hero::before, .pv-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(to right, rgba(16,33,47,.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(16,33,47,.05) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse 70% 90% at 75% 50%, #000 15%, transparent 75%); mask-image: radial-gradient(ellipse 70% 90% at 75% 50%, #000 15%, transparent 75%); }
.pr-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.pr-bg svg { position: absolute; right: -200px; top: -200px; width: 720px; height: 720px; overflow: visible; }
.pr-bg path { fill: none; stroke: #f7861e; stroke-width: 2; opacity: .18; }
.pr-bg g { transform-origin: 310px 310px; animation: prspin 50s linear infinite; }
@keyframes prspin { to { transform: rotate(360deg); } }
.pr-hero-in { display: grid; grid-template-columns: .95fr 1.05fr; gap: 40px; align-items: center; padding-block: 64px 80px; min-height: 640px; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px; border: 1px solid rgba(16,33,47,.1); background: rgba(255,255,255,.8); font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #a65700; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.pr-copy h1 { margin: 22px 0 0; max-width: 600px; font-size: clamp(36px, 4.4vw, 62px); line-height: 1.05; font-weight: 800; letter-spacing: -.04em; }
.pr-lead { margin: 20px 0 0; max-width: 520px; font-size: 17.5px; line-height: 1.65; color: var(--mute); }
.pr-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.pr-cta .btn { padding: 15px 28px; border-radius: 14px; font-size: 15.5px; }
.pr-cta .btn-primary { box-shadow: 0 14px 34px -8px rgba(247,134,30,.6), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-line { color: var(--ink); background: rgba(255,255,255,.75); border: 1px solid rgba(16,33,47,.2); }
.btn-line:hover { background: #fff; border-color: rgba(16,33,47,.4); }

/* device frame (shared) */
.dev { position: relative; overflow: hidden; border-radius: 18px; background: #0b1626; box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 40px 60px -28px rgba(16,33,47,.7); }
.dev-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: linear-gradient(#2a3a4b, #1d2a39); }
.dev-bar i { width: 9px; height: 9px; border-radius: 50%; background: #5b6b7c; }
.dev-bar i:nth-child(1) { background: #ff6159; } .dev-bar i:nth-child(2) { background: #ffbd2e; } .dev-bar i:nth-child(3) { background: #28c940; }
.dev-bar span { margin-left: 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; color: #9db0c3; }
.dev-body { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0b1626; }
.dev-body::before { content: ""; position: absolute; inset: -10%; background-image: var(--img); background-size: cover; background-position: center; filter: blur(22px) saturate(1.2) brightness(.85); opacity: .9; }
.dev-body img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; }
.dev-glare { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 38%); }
.dev-scan { position: absolute; left: 0; right: 0; top: 34px; height: 90px; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(247,134,30,.22), transparent); transform: translateY(-120%); opacity: 0; }

/* hero 3D stack */
.hs3d { position: relative; width: 100%; max-width: 640px; aspect-ratio: 1.05; margin-inline: auto; perspective: 1600px; }
.hs3d-in { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(8deg) rotateY(-18deg); }
.in .hs3d-in, .hs3d.in .hs3d-in { animation: hsturn 14s ease-in-out infinite; }
@keyframes hsturn { 0%,100% { transform: rotateX(8deg) rotateY(-18deg); } 50% { transform: rotateX(4deg) rotateY(10deg); } }
.hp { position: absolute; width: 74%; transform-style: preserve-3d; }
.hp .dev { box-shadow: 0 50px 70px -30px rgba(16,33,47,.75), 0 0 0 1px rgba(255,255,255,.08) inset; }
.hp.a { left: 0; top: 0; transform: translateZ(-120px); }
.hp.b { left: 13%; top: 21%; transform: translateZ(0); }
.hp.c { left: 26%; top: 42%; transform: translateZ(130px); }
.hs3d.in .hp.a { animation: hpa 7s ease-in-out infinite; }
.hs3d.in .hp.b { animation: hpb 7s ease-in-out -2s infinite; }
.hs3d.in .hp.c { animation: hpc 7s ease-in-out -4s infinite; }
@keyframes hpa { 0%,100% { transform: translateZ(-120px); } 50% { transform: translateZ(-96px); } }
@keyframes hpb { 0%,100% { transform: translateZ(0); } 50% { transform: translateZ(26px); } }
@keyframes hpc { 0%,100% { transform: translateZ(130px); } 50% { transform: translateZ(156px); } }
.hp .dev-bar { height: 26px; } .hp .dev-bar i { width: 7px; height: 7px; }
.hs3d-sh { position: absolute; left: 12%; right: 4%; bottom: 0; height: 8%; border-radius: 50%; background: radial-gradient(ellipse, rgba(16,33,47,.3), transparent 70%); filter: blur(10px); }

/* chips */
.pr-chips { position: sticky; top: 64px; z-index: 30; background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.pr-chips-in { display: flex; gap: 8px; padding-block: 12px; overflow-x: auto; scrollbar-width: none; }
.pr-chips-in::-webkit-scrollbar { display: none; }
.pr-chips a { flex: none; padding: 9px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: #3a4a5a; background: #f4f6f8; white-space: nowrap; transition: background-color .25s, color .25s, transform .25s; }
.pr-chips a:hover { background: #fff3e3; color: #c25e00; }
.pr-chips a.on { background: var(--orange); color: #fff; box-shadow: 0 10px 20px -10px rgba(247,134,30,.8); transform: translateY(-1px); }

/* product chapters */
.pr-list { padding: 40px 0 96px; background: #fff; }
.pd { display: grid; grid-template-columns: 1fr 1.08fr; gap: 80px; align-items: center; padding-block: 72px; }
.pd.r { grid-template-columns: 1.08fr 1fr; }
.pd.r .pd-copy { order: 2; } .pd.r .pd-fig { order: 1; }
.pd + .pd { border-top: 1px solid var(--line); }
.pd-copy { position: relative; }
.pd-n { position: absolute; top: -34px; left: -6px; z-index: 0; font-size: 120px; line-height: 1; font-weight: 800; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px rgba(247,134,30,.4); user-select: none; }
.pd-ic { position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; margin-top: 54px; border-radius: 18px; background: radial-gradient(circle at 30% 25%, #fff6ea, #ffe3c4); color: #e56f06; box-shadow: 0 18px 28px -16px rgba(238,111,11,.7); }
.pd-ic svg { width: 26px; height: 26px; }
.pd h2 { position: relative; z-index: 1; margin: 22px 0 0; font-size: clamp(28px, 3.1vw, 40px); line-height: 1.1; font-weight: 800; letter-spacing: -.03em; max-width: 520px; }
.pd-lead { position: relative; margin: 14px 0 0; font-size: 17.5px; font-weight: 700; color: #1c2c3a; }
.pd-p { position: relative; margin: 16px 0 0; max-width: 520px; font-size: 16.5px; line-height: 1.75; color: var(--mute); }
.pd-ul { position: relative; list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 11px; max-width: 540px; }
.pd-ul li { position: relative; padding-left: 30px; font-size: 15.5px; line-height: 1.55; color: #3a4a5a; }
.pd-ul li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat; }
.pd-ul li b { color: var(--ink); }
.js .pd:not(.in) .pd-ul li { opacity: 0; transform: translateX(-14px); }
.pd.in .pd-ul li { animation: pdli .6s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(var(--i) * .08s + .35s); }
@keyframes pdli { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
.pd-more { position: relative; display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; font-size: 15px; font-weight: 700; color: #c25e00; }
.pd-more svg { transition: transform .25s; } .pd-more:hover svg { transform: translateX(5px); }

.pd-fig { position: relative; margin: 0; padding-bottom: 14px; }
/* the product screen shown normally: a clean rounded card with a soft shadow, no device frame. The live app UI inside is what moves. */
.lap { position: relative; width: 100%; transition: transform .6s cubic-bezier(.16,1,.3,1); }
.pd-fig:hover .lap { transform: translateY(-6px); }
.lap-lid { position: relative; padding: 0; border-radius: 18px; overflow: hidden; background: #080c18; box-shadow: 0 0 0 1px rgba(16,33,47,.12), 0 40px 60px -30px rgba(16,33,47,.55), 0 14px 24px -14px rgba(16,33,47,.3); }
.lap-cam, .lap-base, .lap-notch, .lap-glare, .lap-scan { display: none; }
.lap-scr { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #080c18; }
.dev-sh { position: absolute; left: 10%; right: 10%; bottom: -26px; height: 28px; border-radius: 50%; background: radial-gradient(ellipse, rgba(16,33,47,.28), transparent 70%); filter: blur(10px); }
@keyframes devfloat { 0%,100% { translate: 0 0; } 50% { translate: 0 -10px; } }

@media (max-width: 1000px) { .pd, .pd.r { gap: 44px; } .pr-hero-in { gap: 16px; } }
@media (max-width: 900px) {
  .pr-hero-in { grid-template-columns: 1fr; padding-block: 36px 48px; min-height: 0; }
  .hs3d { max-width: 440px; --rx: 0px !important; }
  .pd, .pd.r { grid-template-columns: 1fr; gap: 36px; padding-block: 52px; }
  .pd.r .pd-copy, .pd.r .pd-fig { order: 0; }
  .pd-fig { order: -1; } .pd.r .pd-fig { order: -1; }
  .pd-copy, .pd-fig { --rx: 0px !important; }
  .pd-n { font-size: 90px; top: -22px; } .pd-ic { margin-top: 44px; }
  .pr-chips { top: 56px; }
}
@media (max-width: 560px) { .lap-lid { border-radius: 14px; } .pd-ul li { font-size: 15px; } }
@media (prefers-reduced-motion: reduce) {
  .pr-hero *, .pr-bg g, .pd *, .pr-list * { animation: none !important; }
  .js .pd:not(.in) .pd-ul li { opacity: 1; transform: none; }
  .hs3d-in { transform: rotateX(8deg) rotateY(-18deg); }
}

/* product chips bar: stays under the header, slides up with it, and fits phones cleanly */
.pr-chips { transition: top .35s cubic-bezier(.16,1,.3,1); }
body:has(.yh[data-hidden="true"]) .pr-chips { top: 0; }
.pr-chips-in { padding-block: 14px; scroll-snap-type: x proximity; scroll-padding-inline: 20px; }
.pr-chips a { scroll-snap-align: center; }
.pr-chips a.on { transform: none; box-shadow: 0 6px 14px -8px rgba(247,134,30,.85); }
.pd { scroll-margin-top: 132px; }
@media (max-width: 760px) {
  .pr-chips { top: 60px; }
  .pr-chips-in { gap: 6px; padding-block: 10px; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%); }
  .pr-chips a { padding: 8px 13px; font-size: 12.5px; }
  .pd { scroll-margin-top: 118px; }
}

/* hero screens: the front panel with its depth no longer runs past the right edge */
.hs3d { overflow: visible; }
.hp { width: 68%; }
.hp.b { left: 12%; } .hp.c { left: 24%; }
@media (max-width: 900px) {
  .hs3d { max-width: 400px; width: 88%; margin-inline: auto; }
  .hs3d-in { transform: rotateX(6deg) rotateY(-12deg); }
  @keyframes hsturn { 0%,100% { transform: rotateX(6deg) rotateY(-12deg); } 50% { transform: rotateX(4deg) rotateY(4deg); } }
  .hp { width: 64%; }
  .hp.a { transform: translateZ(-60px); } .hp.b { left: 12%; transform: translateZ(0); } .hp.c { left: 24%; transform: translateZ(60px); }
  @keyframes hpa { 0%,100% { transform: translateZ(-60px); } 50% { transform: translateZ(-46px); } }
  @keyframes hpb { 0%,100% { transform: translateZ(0); } 50% { transform: translateZ(14px); } }
  @keyframes hpc { 0%,100% { transform: translateZ(60px); } 50% { transform: translateZ(76px); } }
}
.pr-hero { overflow-x: clip; }
