/* ==========================================================================
   Project landing page (projects/show)
   One long page per project: a dimensional hero whose tilted stack of
   screens flattens as you scroll, then overview, web demo (with QR),
   features, mobile apps (with QR), technology, related, contact.
   Built on the site theme tokens, so the same file serves a light theme
   (Appdeft) and a dark one (Vinnisoft). --brand comes from the project.
   ========================================================================== */

.pl {
    --accent: color-mix(in srgb, var(--brand) 62%, var(--vs-ink));
    --card: var(--vs-surface, var(--vs-glass-bg-strong));
    --frame: var(--vs-base-2, #fff);
    --line: var(--vs-line);
    --line-strong: color-mix(in srgb, var(--vs-ink) 22%, transparent);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --shadow-3d: 0 50px 90px -40px rgba(8, 14, 28, 0.55), 0 18px 36px -24px rgba(8, 14, 28, 0.35);
    position: relative;
    z-index: 1;
    overflow-x: clip;
}

.pl em {
    font-family: var(--vs-serif, Georgia, serif);
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
    letter-spacing: -0.01em;
}

/* ------------------------------- Buttons -------------------------------- */
.pl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 24px;
    border-radius: 999px;
    border: 1px solid transparent;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s var(--ease), background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.pl-btn .fa { transition: transform 0.3s var(--ease); }
.pl-btn:hover { transform: translateY(-2px); }
.pl-btn:hover .fa-arrow-right { transform: translateX(4px); }
.pl-btn:hover .fa-arrow-down { transform: translateY(3px); }
.pl-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.pl-btn--solid {
    background: var(--vs-btn-bg, var(--vs-ink));
    color: var(--vs-btn-fg, var(--vs-base));
    box-shadow: 0 14px 28px -16px rgba(8, 14, 28, 0.7);
}
.pl-btn--line {
    border-color: var(--line-strong);
    color: var(--vs-ink);
    background: color-mix(in srgb, var(--card) 60%, transparent);
}
.pl-btn--line:hover { border-color: var(--accent); }
.pl-btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.pl-btn--block { width: 100%; }

.pl-link {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}
.pl-link .fa { transition: transform 0.3s var(--ease); }
.pl-link:hover .fa { transform: translateX(4px); }

/* ================================ HERO =================================== */
.pl-hero {
    --p: 0;
    --t: calc(1 - var(--p));
    position: relative;
    height: 175vh;
}
.pl-hero-stage {
    position: sticky;
    top: 0;
    height: 100vh;
    min-height: 660px;
    display: flex;
    flex-direction: column;
    padding: 100px 0 26px;
    overflow: clip;
}

.pl-hero-glow {
    position: absolute;
    inset: -10% -10% 0;
    pointer-events: none;
    background:
        radial-gradient(42% 46% at 78% 42%, color-mix(in srgb, var(--brand) 26%, transparent), transparent 70%),
        radial-gradient(30% 34% at 12% 18%, color-mix(in srgb, var(--brand-light) 22%, transparent), transparent 70%);
    opacity: calc(1 - var(--p) * 0.4);
}
.pl-hero-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(color-mix(in srgb, var(--vs-ink) 14%, transparent) 1px, transparent 1.4px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(60% 60% at 70% 45%, #000, transparent 75%);
    mask-image: radial-gradient(60% 60% at 70% 45%, #000, transparent 75%);
}

.pl-hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
    gap: 48px;
    align-items: center;
    flex: 1;
    width: 100%;
}

/* The copy column is a size container: the title measures itself against it. */
.pl-hero-copy { container-type: inline-size; min-width: 0; }

/* Staggered entrance for the hero copy */
.pl-in {
    animation: pl-in 0.9s var(--ease) both;
    animation-delay: calc(var(--i, 0) * 75ms + 120ms);
}
@keyframes pl-in {
    from { opacity: 0; transform: translateY(18px); filter: blur(8px); }
    to { opacity: 1; transform: none; filter: none; }
}

.pl-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 28px;
    font-size: 13px;
    color: var(--vs-ink-faint);
}
.pl-crumbs a { color: var(--vs-ink-soft); text-decoration: none; }
.pl-crumbs a:hover { color: var(--accent); }
.pl-crumbs span { color: var(--vs-ink); font-weight: 500; }

.pl-eyebrow,
.pl-kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--vs-ink-soft);
}
.pl-pulse {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand);
    flex: none;
}
.pl-pulse::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--brand);
    animation: pl-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes pl-ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }

.pl-title {
    margin: 0;
    /* --w is the name's longest word, in characters (set by the view). A
       bold glyph averages ~0.66em, so 100cqi / (--w * 0.66) is the largest
       size at which that word still fits the column on one line. */
    font-size: clamp(30px, min(5.4vw, 10.5vh, 100cqi / (var(--w, 8) * 0.66)), 84px);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.045em;
    color: var(--vs-ink);
    overflow-wrap: break-word;
    text-wrap: balance;
}
.pl-tagline {
    margin: 14px 0 0;
    font-family: var(--vs-serif, Georgia, serif);
    font-style: italic;
    font-size: clamp(22px, 2.3vw, 32px);
    line-height: 1.2;
    color: var(--accent);
}
.pl-lede {
    margin: 22px 0 0;
    max-width: 46ch;
    font-size: 17px;
    line-height: 1.65;
    color: var(--vs-ink-soft);
}
.pl-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}
.pl-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}
.pl-platforms li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 13px;
    color: var(--vs-ink-soft);
    background: color-mix(in srgb, var(--card) 55%, transparent);
}
.pl-platforms .fa { color: var(--accent); }

/* ------------------------- The dimensional stack ------------------------ */
.pl-stack-wrap {
    position: relative;
    height: min(60vh, 540px);
    perspective: 2200px;
    animation: pl-stack-in 1.4s var(--ease) 0.25s both;
}
@keyframes pl-stack-in {
    from { opacity: 0; transform: translate3d(60px, 40px, 0) scale(0.94); }
    to { opacity: 1; transform: none; }
}

.pl-stack {
    --mx: 0;
    --my: 0;
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    transform:
        rotateX(calc(var(--t) * 20deg - var(--my) * 6deg))
        rotateY(calc(var(--t) * -28deg + var(--mx) * 8deg))
        rotateZ(calc(var(--t) * 7deg));
    transition: transform 0.45s var(--ease);
}

.pl-layer {
    position: absolute;
    transform-style: preserve-3d;
    transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
}
/* Each layer's child floats on its own clock so the stack breathes. */
.pl-layer > * { animation: pl-float 8s ease-in-out infinite; }
.pl-layer--2 > * { animation-delay: -2.6s; }
.pl-layer--3 > * { animation-delay: -5.2s; }
@keyframes pl-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.pl-layer--1 {
    left: 0;
    top: 27%;
    width: 64%;
    z-index: 3;
    transform: translate3d(calc(var(--p) * 28%), calc(var(--p) * -8%), calc(var(--t) * 40px)) scale(calc(1 + var(--p) * 0.4));
    transform-origin: 50% 50%;
}
.pl-layer--2 {
    left: 44%;
    top: 0;
    width: 52%;
    z-index: 2;
    transform: translate3d(calc(var(--t) * 6%), calc(var(--t) * -2%), calc(var(--t) * -140px));
    opacity: calc(1 - var(--p) * 1.4);
}
.pl-layer--3 {
    right: 3%;
    top: 38%;
    width: 21%;
    z-index: 4;
    transform: translate3d(calc(var(--t) * 4%), 0, calc(var(--t) * -260px));
    opacity: calc(1 - var(--p) * 1.6);
}
.pl-layer--3:has(.pl-panel--tech) { width: 38%; top: 62%; }

/* Browser frame (hero and web section) */
.pl-browser {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: var(--frame);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-3d);
}
.pl-browser-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 38px;
    padding: 0 14px;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--frame) 92%, var(--vs-ink));
}
.pl-dots { display: inline-flex; gap: 6px; }
.pl-dots i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.pl-dots i:nth-child(2) { background: #febc2e; }
.pl-dots i:nth-child(3) { background: #28c840; }
.pl-url {
    flex: 1;
    max-width: 320px;
    margin: 0 auto;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 12px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--vs-ink-faint);
    background: color-mix(in srgb, var(--vs-ink) 6%, transparent);
}
.pl-url .fa { color: #28a745; margin-right: 4px; }
.pl-browser-view {
    position: relative;
    aspect-ratio: 16 / 10;
    background: color-mix(in srgb, var(--brand) 10%, var(--frame));
}
.pl-browser-view > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}
.pl-cover-empty {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background:
        radial-gradient(60% 70% at 50% 40%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%),
        color-mix(in srgb, var(--brand) 8%, var(--frame));
}
.pl-cover-empty .fa { font-size: 64px; color: var(--accent); }
.pl-cover-logo { max-width: 46%; max-height: 40%; object-fit: contain; }

/* Panels inside the stack */
.pl-panel {
    border-radius: 18px;
    overflow: hidden;
    background: var(--frame);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-3d);
}
.pl-panel-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--vs-ink-soft);
    border-bottom: 1px solid var(--line);
}
.pl-panel-bar .fa-code-fork { color: var(--accent); margin-right: 4px; }
.pl-panel-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px;
}
.pl-panel-chips span {
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    background: color-mix(in srgb, var(--brand) 12%, transparent);
}

/* The mini workflow: three feature nodes joined by a live connector */
.pl-flow {
    position: relative;
    aspect-ratio: 2 / 1;
    background-image: radial-gradient(color-mix(in srgb, var(--vs-ink) 16%, transparent) 1px, transparent 1.3px);
    background-size: 16px 16px;
}
.pl-flow-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}
.pl-flow-lines path {
    fill: none;
    stroke: color-mix(in srgb, var(--brand) 45%, transparent);
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
}
.pl-flow-lines .pl-flow-pulse {
    stroke: var(--brand);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 14 400;
    animation: pl-flow 2.8s linear infinite;
}
@keyframes pl-flow { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -414; } }

.pl-node {
    position: absolute;
    width: 32%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--vs-ink);
    background: color-mix(in srgb, var(--brand) 9%, var(--frame));
    border: 1px solid color-mix(in srgb, var(--brand) 32%, transparent);
    box-shadow: 0 10px 18px -12px rgba(8, 14, 28, 0.45), inset 0 -3px 0 color-mix(in srgb, var(--brand) 22%, transparent);
}
.pl-node .fa {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    font-size: 11px;
    color: #fff;
    background: var(--brand);
}
.pl-node--1 { left: 3%; top: 10%; }
.pl-node--2 { left: 35%; top: 36%; }
.pl-node--3 { left: 65%; top: 60%; }
.pl-node--3 .fa { background: #22a06b; }

/* Phone frame (hero and mobile section) */
.pl-phone {
    position: relative;
    display: block;
    padding: 8px;
    border-radius: 34px;
    background: #0b0f16;
    box-shadow: var(--shadow-3d), inset 0 0 0 2px #2a3140;
}
.pl-phone-notch {
    position: absolute;
    top: 14px;
    left: 50%;
    z-index: 2;
    width: 30%;
    height: 16px;
    border-radius: 999px;
    background: #0b0f16;
    transform: translateX(-50%);
}
.pl-phone .pl-phone-screen {
    display: block;
    overflow: hidden;
    border-radius: 27px;
    aspect-ratio: 9 / 19.5;
    background: #111;
}
.pl-phone .pl-phone-screen img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

/* Chapter strip at the foot of the hero */
.pl-chapters {
    position: relative;
    display: flex;
    gap: 24px;
    margin-top: 24px;
}
.pl-chapters a {
    --fill: 0;
    flex: 1;
    min-width: 0;
    font-size: 13px;
    color: var(--vs-ink-faint);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s;
}
.pl-chapters a:hover,
.pl-chapters a.is-current { color: var(--vs-ink); }
.pl-chapter-bar {
    display: block;
    height: 2px;
    margin-bottom: 12px;
    background: var(--line);
    overflow: hidden;
}
.pl-chapter-bar span {
    display: block;
    height: 100%;
    background: var(--vs-ink);
    transform: scaleX(var(--fill));
    transform-origin: left;
}
.pl-chapter-no { color: var(--accent); font-weight: 600; margin-right: 4px; }

/* =============================== SECTIONS ================================ */
.pl-sec {
    position: relative;
    padding: clamp(72px, 9vw, 120px) 0;
    scroll-margin-top: 40px;
}
.pl-sec--tint {
    background: color-mix(in srgb, var(--brand) 5%, transparent);
    border-block: 1px solid var(--line);
}
.pl-sec--last { padding-top: 24px; }

.pl-kicker span {
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}
.pl-h2 {
    margin: 0;
    font-size: clamp(34px, 4.6vw, 60px);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.035em;
    color: var(--vs-ink);
}
.pl-body {
    margin: 20px 0 0;
    max-width: 64ch;
    font-size: 17px;
    line-height: 1.7;
    color: var(--vs-ink-soft);
}
.pl-body--muted { font-size: 15px; color: var(--vs-ink-faint); }
.pl-body--muted strong { color: var(--vs-ink-soft); }
.pl-sec-head { margin-bottom: 48px; }
.pl-empty { color: var(--vs-ink-faint); font-size: 15px; }

/* ------------------------------ Overview -------------------------------- */
.pl-overview {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: 64px;
    align-items: start;
}
.pl-facts {
    padding: 8px 28px 26px;
    border-radius: 24px;
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: var(--vs-shadow);
}
.pl-facts dl { margin: 0; }
.pl-facts dl > div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
}
.pl-facts dt { color: var(--vs-ink-faint); }
.pl-facts dd { margin: 0; text-align: right; font-weight: 600; color: var(--vs-ink); }
.pl-facts dd a { color: var(--accent); text-decoration: none; word-break: break-all; }
.pl-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}
.pl-tags li {
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 12.5px;
    color: var(--accent);
    background: color-mix(in srgb, var(--brand) 10%, transparent);
}

/* ---------------------------- Web platform ------------------------------ */
.pl-web {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 0.8fr);
    gap: 40px;
    align-items: center;
}
.pl-tilt[data-reveal] {
    transform: perspective(1600px) rotateX(18deg) translateY(60px) scale(0.94);
    transform-origin: 50% 0;
    transition: opacity 1s var(--ease), transform 1.3s var(--ease);
}
.pl-tilt[data-reveal].is-visible { transform: none; }

.pl-browser--big .pl-browser-bar { height: 44px; }
.pl-browser-open {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(8, 14, 28, 0.45);
    opacity: 0;
    transition: opacity 0.35s;
    text-decoration: none;
}
.pl-browser-open span {
    padding: 14px 22px;
    border-radius: 999px;
    font-weight: 600;
    color: #0a1628;
    background: #fff;
    transform: translateY(10px);
    transition: transform 0.35s var(--ease);
}
.pl-browser-open:hover,
.pl-browser-open:focus-visible { opacity: 1; }
.pl-browser-open:hover span,
.pl-browser-open:focus-visible span { transform: none; }

.pl-access {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 28px;
    border-radius: 24px;
    text-align: center;
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: var(--vs-shadow);
}
.pl-access-logo {
    display: grid;
    place-items: center;
    width: 100%;
    height: 56px;
}
.pl-access-logo img { max-width: 70%; max-height: 100%; object-fit: contain; }
.pl-access-note { margin: 0; font-size: 14px; color: var(--vs-ink-soft); }

/* QR codes stay dark-on-white on every theme so phones can read them. */
.pl-qr {
    width: 184px;
    max-width: 100%;
    aspect-ratio: 1;
    padding: 14px;
    border-radius: 18px;
    background: #fff;
    color: #0a1628;
    box-shadow: 0 0 0 1px rgba(10, 22, 40, 0.08), 0 16px 30px -18px rgba(10, 22, 40, 0.5);
}
.pl-qr svg { display: block; width: 100%; height: 100%; }
.pl-qr.is-failed {
    display: grid;
    place-items: center;
    font-size: 12px;
    text-align: center;
}
.pl-qr--sm { width: 116px; padding: 10px; border-radius: 14px; }

/* ------------------------------ Features -------------------------------- */
.pl-features {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.25fr);
    gap: 64px;
    align-items: start;
}
.pl-features-head {
    position: sticky;
    top: 120px;
}
.pl-bignum {
    margin: 28px 0 0;
    font-size: clamp(88px, 11vw, 150px);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.06em;
    background: linear-gradient(160deg, var(--brand), var(--brand-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.pl-bignum small {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    -webkit-text-fill-color: var(--vs-ink-faint);
}

.pl-spine {
    --fill: 0;
    position: relative;
    margin: 0;
    padding: 0 0 0 52px;
    list-style: none;
}
.pl-spine-track {
    position: absolute;
    left: 15px;
    top: 30px;
    bottom: 30px;
    width: 2px;
    background: var(--line);
}
.pl-spine-track span {
    display: block;
    height: 100%;
    background: linear-gradient(var(--brand-light), var(--brand));
    transform: scaleY(var(--fill));
    transform-origin: top;
}
.pl-step {
    position: relative;
    display: flex;
    gap: 18px;
    align-items: baseline;
    margin-bottom: 14px;
    padding: 22px 24px;
    border-radius: 18px;
    background: var(--card);
    border: 1px solid var(--line);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.pl-step:hover {
    border-color: color-mix(in srgb, var(--brand) 45%, transparent);
    box-shadow: 0 18px 34px -24px color-mix(in srgb, var(--brand) 70%, transparent);
}
.pl-step-dot {
    position: absolute;
    left: -44px;
    top: 28px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--line-strong);
    background: var(--vs-base);
    transition: background-color 0.5s 0.2s, border-color 0.5s 0.2s, box-shadow 0.5s 0.2s;
}
.pl-step.is-visible .pl-step-dot {
    border-color: var(--brand);
    background: var(--brand);
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 18%, transparent);
}
.pl-step-no {
    flex: none;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}
.pl-step p {
    margin: 0;
    font-size: 16.5px;
    line-height: 1.55;
    color: var(--vs-ink);
}

/* ----------------------------- Mobile apps ------------------------------ */
.pl-app {
    display: grid;
    grid-template-columns: minmax(0, 330px) minmax(0, 1fr);
    gap: 44px;
    margin-bottom: 28px;
    padding: 32px;
    border-radius: 28px;
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: var(--vs-shadow);
}
.pl-app-name {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--vs-ink);
}
.pl-app-name span { font-size: 14px; color: var(--accent); }
.pl-app-meta { margin: 8px 0 0; font-size: 14px; color: var(--vs-ink-faint); }

.pl-gets {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}
.pl-get {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--brand) 4%, transparent);
}
.pl-get-body { display: grid; gap: 6px; justify-items: start; }
.pl-get-body strong { font-size: 16px; color: var(--vs-ink); }
.pl-get-body .fa-android { color: #3ddc84; }
.pl-get-body small { font-size: 12.5px; line-height: 1.45; color: var(--vs-ink-faint); }
.pl-get-body .pl-btn { margin-top: 4px; }

.pl-shots {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 6px 4px 26px;
    perspective: 1400px;
    scrollbar-width: thin;
}
.pl-shot {
    flex: none;
    width: 200px;
    border: 0;
    padding: 8px;
    cursor: zoom-in;
    scroll-snap-align: start;
    opacity: 0;
    transform: rotateY(-28deg) translateX(-30px);
    transition: opacity 0.8s var(--ease), transform 0.9s var(--ease);
    transition-delay: calc(var(--k, 0) * 90ms + 150ms);
}
.pl-app.is-visible .pl-shot { opacity: 1; transform: none; }
.pl-app.is-visible .pl-shot:hover { transform: translateY(-8px); transition-delay: 0s; }
.pl-shot:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* Screens shown whole, at their own proportions */
.pl-shots--plain .pl-shot {
    width: auto;
    padding: 0;
    background: none;
}
.pl-shots--plain .pl-phone-screen { display: block; }
.pl-shots--plain .pl-phone-screen img {
    display: block;
    height: 420px;
    width: auto;
    max-width: 640px;
    border-radius: 16px;
    border: 1px solid var(--line);
    box-shadow: 0 24px 44px -26px rgba(8, 14, 28, 0.55);
}

/* ----------------------------- Technology ------------------------------- */
.pl-tech {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.pl-tech li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 18px;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--vs-ink);
    background: var(--card);
    border: 1px solid var(--line);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), border-color 0.3s;
}
.pl-tech li:hover { border-color: color-mix(in srgb, var(--brand) 45%, transparent); }
.pl-tech-mono {
    display: grid;
    place-items: center;
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    background: color-mix(in srgb, var(--brand) 13%, transparent);
}

/* ------------------------------- Related -------------------------------- */
.pl-related-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 36px;
}
.pl-related {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.pl-related-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border-radius: 20px;
    text-decoration: none;
    background: var(--card);
    border: 1px solid var(--line);
    transition: opacity 0.8s var(--ease), transform 0.5s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.pl-related-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--brand) 50%, transparent);
    box-shadow: 0 22px 40px -28px color-mix(in srgb, var(--brand) 80%, transparent);
}
.pl-related-media {
    display: grid;
    place-items: center;
    flex: none;
    width: 58px;
    height: 58px;
    border-radius: 16px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--brand);
    font-size: 22px;
}
.pl-related-media img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pl-related-body { display: grid; min-width: 0; flex: 1; }
.pl-related-body small {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--vs-ink-faint);
}
.pl-related-body strong { font-size: 17px; color: var(--vs-ink); }
.pl-related-body span {
    font-size: 13.5px;
    color: var(--vs-ink-soft);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pl-related-go { color: var(--vs-ink-faint); transition: transform 0.3s var(--ease), color 0.3s; }
.pl-related-card:hover .pl-related-go { color: var(--brand); transform: translateX(4px); }

/* ------------------------------ Closing band ---------------------------- */
.pl-band {
    position: relative;
    overflow: hidden;
    padding: clamp(40px, 6vw, 72px);
    border-radius: 32px;
    text-align: center;
    color: #fff;
    background:
        radial-gradient(50% 80% at 85% 0%, color-mix(in srgb, var(--brand-light) 45%, transparent), transparent 70%),
        linear-gradient(135deg, var(--brand-dark), color-mix(in srgb, var(--brand) 55%, #060a12));
}
.pl-band h2 {
    max-width: 22ch;
    margin: 0 auto;
    font-size: clamp(28px, 3.6vw, 46px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #fff;
}
.pl-band p { margin: 14px 0 0; color: rgba(255, 255, 255, 0.78); }
.pl-band .pl-cta { justify-content: center; }
.pl-band .pl-btn--solid { background: #fff; color: #0a1628; }
.pl-band .pl-btn--line { color: #fff; border-color: rgba(255, 255, 255, 0.4); background: transparent; }
.pl-band .pl-btn--line:hover { border-color: #fff; }

/* ------------------------------ Lightbox -------------------------------- */
.pl-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 24px;
    background: rgba(5, 8, 14, 0.88);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.pl-lightbox[hidden] { display: none; }
.pl-lb-figure {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    max-width: min(1000px, 100%);
}
.pl-lb-figure img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 16px;
    object-fit: contain;
}
.pl-lb-figure figcaption { color: rgba(255, 255, 255, 0.75); font-size: 14px; }
.pl-lb-btn {
    flex: none;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
}
.pl-lb-btn:hover { background: rgba(255, 255, 255, 0.18); }
.pl-lb-close { position: absolute; top: 20px; right: 20px; font-size: 18px; }
body.pl-lb-open { overflow: hidden; }

/* ============================== Responsive =============================== */
/* Short laptop screens: the sticky stage is one screen tall, so the copy
   has to fit inside it. */
@media (min-width: 1025px) and (max-height: 820px) {
    .pl-hero-stage { padding-top: 92px; }
    .pl-crumbs { margin-bottom: 16px; }
    .pl-lede {
        margin-top: 14px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .pl-cta { margin-top: 22px; }
    .pl-platforms { margin-top: 18px; }
}

@media (max-width: 1024px) {
    .pl-hero { height: auto; }
    .pl-hero-stage {
        position: relative;
        height: auto;
        min-height: 0;
        padding: 112px 0 64px;
    }
    .pl-hero-stage { overflow: visible; }
    .pl-hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .pl-title { font-size: clamp(30px, min(12cqi, 100cqi / (var(--w, 8) * 0.66)), 64px); }
    /* The tilt throws the back layers ~25% past the right edge; scale the
       whole stack from its left side so it stays on screen. */
    .pl-stack-wrap { height: auto; aspect-ratio: 16 / 10.5; max-width: 680px; scale: 0.78; transform-origin: 0 50%; margin-bottom: -4%; }
    .pl-chapters { display: none; }

    .pl-overview,
    .pl-features,
    .pl-web { grid-template-columns: 1fr; gap: 40px; }
    .pl-features-head { position: static; }
    .pl-bignum { font-size: 88px; }
    .pl-access { max-width: 420px; }
    .pl-app { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 640px) {
    .pl-hero-stage { padding-top: 96px; }
    .pl-cta .pl-btn { flex: 1 1 auto; }
    .pl-sec-head { margin-bottom: 32px; }
    .pl-node { font-size: 8.5px; padding: 6px 8px; gap: 4px; }
    .pl-node .fa { width: 16px; height: 16px; font-size: 9px; }
    .pl-browser-bar { height: 28px; }
    .pl-url { font-size: 10px; }
    .pl-panel-bar { padding: 8px 10px; font-size: 10px; }
    .pl-spine { padding-left: 38px; }
    .pl-spine-track { left: 9px; }
    .pl-step { padding: 18px; flex-direction: column; gap: 6px; }
    .pl-step-dot { left: -36px; top: 22px; width: 14px; height: 14px; }
    .pl-app { padding: 20px; border-radius: 22px; }
    .pl-get { grid-template-columns: 96px minmax(0, 1fr); }
    .pl-qr--sm { width: 96px; }
    .pl-shot { width: 168px; }
    .pl-shots--plain .pl-phone-screen img { height: 340px; max-width: 80vw; }
    .pl-related { grid-template-columns: 1fr; }
    .pl-related-head { flex-direction: column; align-items: flex-start; }
    .pl-lb-prev, .pl-lb-next { position: absolute; bottom: 24px; }
    .pl-lb-prev { left: calc(50% - 60px); }
    .pl-lb-next { right: calc(50% - 60px); }
}

@media (prefers-reduced-motion: reduce) {
    .pl-hero { height: auto; }
    .pl-hero-stage { position: relative; height: auto; padding-bottom: 120px; }
    .pl-in,
    .pl-stack-wrap,
    .pl-layer > *,
    .pl-pulse::after,
    .pl-flow-lines .pl-flow-pulse { animation: none; }
    .pl-stack, .pl-layer { transition: none; }
    .pl-tilt[data-reveal],
    .pl-shot { opacity: 1; transform: none; }
}
