/* Public pages (landing + /auth/*). Everything is scoped under .ps so the admin panel's
   Bootstrap dark theme never leaks in and nothing here leaks out. */

@font-face { font-family: "Yekan Bakh"; src: url("../fonts/YekanBakh-Medium.f7360956.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Yekan Bakh"; src: url("../fonts/YekanBakh-Bold.bbd877a3.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Yekan Bakh"; src: url("../fonts/YekanBakh-Fat.e508fcc6.woff") format("woff"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Khorshid"; src: url("../fonts/Khorshid.ttf") format("truetype"); font-display: swap; }

/* Cross-document view transition: the auth form and its illustration glide to their new sides. */
@view-transition { navigation: auto; }

body:has(.ps) { background: #fff; }

.ps {
    --ink: #222748;
    --text: #454B4F;
    --muted: #687076;
    --primary: #4953A4;
    --primary-dark: #353C76;
    --primary-soft: #F5F6FC;
    --violet: #5A55DD;
    --sun: #FFD453;
    --sun-dark: #F2C230;
    --mist: #F2F4FB;
    --lapis: #1D2052;
    --turq: #4BC3D6;
    --star: polygon(100% 50%, 85.36% 35.36%, 85.36% 14.64%, 64.64% 14.64%, 50% 0, 35.36% 14.64%, 14.64% 14.64%, 14.64% 35.36%, 0 50%, 14.64% 64.64%, 14.64% 85.36%, 35.36% 85.36%, 50% 100%, 64.64% 85.36%, 85.36% 85.36%, 85.36% 64.64%);
    --line: #E5E4E0;
    --paper: #fff;

    --gut: clamp(16px, 4vw, 40px);
    --max: 1240px;
    --notch: 24px;
    --r-lg: 40px;
    --r-md: 28px;
    --r-sm: 18px;

    --ease-in: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out: cubic-bezier(0.6, 0, 0.9, 0.35);
    --ease-move: cubic-bezier(0.65, 0, 0.35, 1);

    color-scheme: light;
    min-height: 100vh;
    background: var(--paper);
    color: var(--text);
    font-family: "Yekan Bakh", Tahoma, sans-serif;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.85;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    text-wrap: pretty;
}

.ps :where(h1, h2, h3, h4, p, ul) { margin: 0; color: inherit; }
.ps :where(ul) { padding: 0; list-style: none; }
.ps h1:focus { outline: none; } /* Routes' FocusOnNavigate focuses the h1 */
.ps a { color: inherit; text-decoration: none; }
.ps img { display: block; max-width: 100%; }
.ps :focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

.ps-wrap { width: min(var(--max), 100% - 2 * var(--gut)); margin-inline: auto; }

.ps-h2 { font-weight: 900; color: var(--ink); font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); line-height: 1.3; }
.ps-h3 { font-weight: 900; color: var(--ink); font-size: clamp(1.25rem, 1.1rem + .6vw, 1.625rem); line-height: 1.4; }
.ps-lead { color: var(--muted); font-size: clamp(1rem, .95rem + .3vw, 1.2rem); max-width: 60ch; }
.ps-section { padding-block: clamp(40px, 5vw, 72px); }
.ps-section-head { display: grid; gap: 12px; margin-bottom: clamp(24px, 3vw, 40px); }

/* ---------- Buttons ---------- */
.ps-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 24px; border: 0; border-radius: 999px;
    font: inherit; font-weight: 700; white-space: nowrap; cursor: pointer;
    transition: background-color .2s, transform .2s var(--ease-in), box-shadow .2s;
}
.ps-btn:active { transform: translateY(1px); }
.ps-btn-sun { background: var(--sun); color: var(--ink) !important; box-shadow: 0 6px 18px -8px rgba(178, 140, 20, .6); }
.ps-btn-sun:hover { background: var(--sun-dark); }
.ps-btn-primary { background: var(--primary); color: #fff !important; }
.ps-btn-primary:hover { background: var(--primary-dark); }
.ps-btn-ghost { background: transparent; color: var(--primary) !important; }
.ps-btn-ghost:hover { background: var(--primary-soft); }
.ps-btn-block { width: 100%; }
.ps-btn .bi { font-size: 1.1em; }

/* ---------- Mobile header + menu ---------- */
.ps-topbar {
    position: sticky; top: 0; z-index: 20;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px var(--gut);
    background: rgba(255, 255, 255, .78);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(34, 39, 72, .06);
}
.ps-topbar .ps-logo { height: 52px; width: auto; }
.ps-topbar-actions { display: flex; align-items: center; gap: 4px; }
.ps-icon-btn {
    display: grid; place-items: center; width: 48px; height: 48px;
    border: 0; border-radius: 50%; background: transparent; color: var(--ink);
    font-size: 1.6rem; cursor: pointer;
}
.ps-icon-btn:hover { background: var(--primary-soft); }

.ps-menu {
    position: fixed; inset: 0 0 0 auto; margin: 0;
    width: min(420px, 100%); height: 100dvh; max-height: none;
    padding: 16px var(--gut) 32px; border: 0;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: -12px 0 40px rgba(34, 39, 72, .18);
    color: var(--ink); font-family: "Yekan Bakh", Tahoma, sans-serif;
    transform: translateX(100%);
    transition: transform .2s var(--ease-out), overlay .2s allow-discrete, display .2s allow-discrete;
}
.ps-menu:popover-open { transform: none; transition-duration: .4s; transition-timing-function: var(--ease-in); }
@starting-style { .ps-menu:popover-open { transform: translateX(100%); } }
.ps-menu::backdrop { background: rgba(17, 17, 15, .35); }
.ps-menu nav { display: grid; margin-top: 24px; }
.ps-menu nav a { padding: 18px 4px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.ps-menu .ps-btn { margin-top: 28px; }

/* ---------- Hero ---------- */
/* A lapis night stage: the WebGL mosaic (ps-mosaic) assembles the mark on the end side of the copy. */
.ps-hero { padding-top: 16px; }
.ps-hero-card {
    position: relative; isolation: isolate; overflow: clip;
    border-radius: var(--r-md);
    background:
        radial-gradient(70% 45% at 50% 80%, rgba(90, 85, 221, .55), transparent 70%),
        linear-gradient(165deg, var(--lapis) 0%, #2A2770 55%, #3A2F8C 100%);
    display: flex; flex-direction: column;
    color: #fff;
}
.ps-tabs { display: none; }
.ps-hero-body { display: grid; flex: 1; }
.ps-hero-copy {
    display: grid; justify-items: center; gap: 16px; text-align: center;
    padding: clamp(40px, 8vw, 64px) 24px 0;
}
.ps-wordmark {
    font-family: "Khorshid", "Yekan Bakh", sans-serif; font-weight: 400;
    font-size: clamp(2.25rem, 1.6rem + 3vw, 3.75rem); line-height: 1.3; white-space: nowrap;
}
.ps-hero-sub { font-weight: 900; font-size: clamp(1.3rem, 1rem + 1.4vw, 2.25rem); line-height: 1.35; }
.ps-hero-desc { color: rgba(255, 255, 255, .8); max-width: 44ch; font-size: 1.05rem; }
.ps-hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.ps-btn-glass { background: rgba(255, 255, 255, .1); color: #fff !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.ps-btn-glass:hover { background: rgba(255, 255, 255, .18); }

.ps-mosaic { position: relative; display: grid; place-items: center; height: clamp(300px, 78vw, 420px); }
.ps-mosaic canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ps-mosaic img { display: none; width: min(60%, 260px); padding: 18px; border-radius: var(--r-md); background: #fff; }
ps-mosaic:not(:defined) img, .ps-mosaic.no-gl img { display: block; }

@media (min-width: 1200px) {
    .ps-topbar { display: none; }
    .ps-hero { padding-top: 24px; }
    .ps-hero-card {
        min-height: clamp(560px, 82vh, 780px);
        border-radius: var(--r-lg);
        background:
            radial-gradient(42% 60% at 27% 55%, rgba(90, 85, 221, .6), transparent 72%),
            linear-gradient(165deg, var(--lapis) 0%, #2A2770 55%, #3A2F8C 100%);
    }

    /* The white nav tabs are "cut" into the banner's top edge. Each tab rounds its inner
       bottom corner and grows two concave fillets (::before/::after) where it meets the banner. */
    .ps-tabs { display: flex; justify-content: space-between; align-items: flex-start; height: 80px; position: relative; z-index: 1; }
    .ps-tab {
        position: relative; height: 80px; background: var(--paper); color: var(--ink);
        display: flex; align-items: center; gap: 12px; padding-inline: 20px;
        animation: ps-drop .7s var(--ease-in) both;
    }
    .ps-tab::before, .ps-tab::after {
        content: ""; position: absolute; width: var(--notch); height: var(--notch); pointer-events: none;
    }
    .ps-tab-start { border-bottom-left-radius: var(--notch); padding-inline-start: 24px; min-width: 52%; }
    .ps-tab-start::before { top: 0; left: calc(-1 * var(--notch)); background: radial-gradient(circle at 0 100%, transparent var(--notch), var(--paper) calc(var(--notch) + .5px)); }
    .ps-tab-start::after { top: 100%; right: 0; background: radial-gradient(circle at 0 100%, transparent var(--notch), var(--paper) calc(var(--notch) + .5px)); }
    .ps-tab-end { border-bottom-right-radius: var(--notch); animation-delay: .08s; }
    .ps-tab-end::before { top: 0; right: calc(-1 * var(--notch)); background: radial-gradient(circle at 100% 100%, transparent var(--notch), var(--paper) calc(var(--notch) + .5px)); }
    .ps-tab-end::after { top: 100%; left: 0; background: radial-gradient(circle at 100% 100%, transparent var(--notch), var(--paper) calc(var(--notch) + .5px)); }

    .ps-tab .ps-logo { height: 64px; width: auto; }
    .ps-tab nav { display: flex; flex: 1; justify-content: space-between; gap: 8px; }
    .ps-tab nav a { padding: 8px 10px; border-radius: 10px; font-weight: 700; white-space: nowrap; transition: color .2s, background-color .2s; }
    .ps-tab nav a:hover { color: var(--primary); background: var(--primary-soft); }

    .ps-hero-body { grid-template-columns: minmax(0, 46%) 1fr; }
    .ps-hero-copy {
        align-content: center; justify-items: start; text-align: start;
        padding: 0 clamp(48px, 6vw, 96px) 80px; gap: 20px;
    }
    .ps-hero-cta { justify-content: flex-start; }
    /* The stage runs under the tabs so flying shards can use the whole banner. */
    .ps-mosaic { height: auto; margin-top: -80px; }
}

/* The one orchestrated moment: tabs drop in, then the copy rises line by line. */
.ps-hero-copy > * { animation: ps-rise .9s var(--ease-in) both; }
.ps-hero-copy > :nth-child(1) { animation-delay: .15s; }
.ps-hero-copy > :nth-child(2) { animation-delay: .27s; }
.ps-hero-copy > :nth-child(3) { animation-delay: .39s; }
.ps-hero-copy > :nth-child(4) { animation-delay: .51s; }
@keyframes ps-rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes ps-drop { from { transform: translateY(-100%); } }

/* ---------- Brands marquee ---------- */
.ps-brands { padding-block: clamp(32px, 4vw, 56px) 0; text-align: center; }
.ps-brands .ps-h3 { margin-bottom: 28px; }
.ps-marquee {
    overflow: hidden; direction: ltr;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ps-marquee-track { display: flex; gap: 20px; width: max-content; animation: ps-marquee 32s linear infinite; }
.ps-marquee:hover .ps-marquee-track { animation-play-state: paused; }
.ps-brand {
    flex: none; display: grid; place-items: center;
    width: clamp(132px, 14vw, 168px); aspect-ratio: 8 / 5;
    border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; padding: 12px;
}
.ps-brand img { max-height: 100%; object-fit: contain; }
/* Track holds the list twice; shifting by half (plus half a gap) loops seamlessly. */
@keyframes ps-marquee { to { transform: translateX(calc(-50% - 10px)); } }

/* ---------- Services bento ---------- */
.ps-bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
.ps-card {
    display: flex; flex-direction: column; gap: 16px;
    padding: clamp(24px, 3vw, 36px); border-radius: var(--r-md); background: var(--primary-soft);
    min-width: 0;
}
.ps-card p { color: var(--muted); }
.ps-card .ps-btn { align-self: flex-start; margin-top: auto; }
.ps-card-body { display: grid; gap: 12px; align-content: start; }
.ps-card-body .ps-btn { margin-top: 8px; justify-self: start; }

.ps-gallery {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: thin; scrollbar-color: #B7BCE0 transparent; padding-bottom: 6px;
    overscroll-behavior-x: contain;
}
.ps-gallery img {
    flex: none; width: min(280px, 80%); aspect-ratio: 9 / 7; object-fit: cover;
    border-radius: var(--r-sm); scroll-snap-align: start; background: #D5D9F0;
}

@media (min-width: 900px) {
    .ps-bento { grid-template-columns: 1.15fr 1fr; grid-template-areas: "live multi" "live insta" "vod vod"; }
    .ps-card-live { grid-area: live; }
    .ps-card-multi { grid-area: multi; }
    .ps-card-insta { grid-area: insta; }
    .ps-card-vod { grid-area: vod; flex-direction: row; align-items: stretch; gap: 32px; }
    .ps-card-vod .ps-card-body { flex: 0 0 34%; }
    .ps-card-vod .ps-gallery { flex: 1; align-self: center; }
    .ps-card-live .ps-gallery { margin-top: auto; }
}

/* One source fanning out to every destination (multi-destination card). */
.ps-fan { display: grid; grid-template-columns: 56px minmax(40px, 1fr) auto; align-items: center; margin-block: 4px 8px; }
.ps-fan-src { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 1.4rem; box-shadow: 0 0 0 8px rgba(73, 83, 164, .12); }
.ps-fan svg { width: 100%; height: 160px; overflow: visible; }
.ps-fan path { fill: none; stroke: var(--primary); stroke-width: 2; stroke-dasharray: 2 6; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ps-fan ul { display: grid; height: 160px; align-content: space-between; }
.ps-fan li { padding: 4px 14px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 700; font-size: .9rem; line-height: 1.9; box-shadow: 0 1px 0 var(--line); }

/* ---------- Studio + Meeting rooms ---------- */
/* Two alternating feature rows. Each pairs its copy with a small mock of the real room UI,
   built from the landing photos as video tiles. */
.ps-room {
    display: grid; gap: clamp(28px, 4vw, 56px); align-items: center;
    padding: clamp(20px, 4vw, 56px); border-radius: var(--r-lg);
}
.ps-room + :is(.ps-room, .ps-bento) { margin-top: 16px; }
.ps-room-copy { display: grid; gap: 14px; justify-items: start; }
.ps-room-copy .ps-btn { margin-top: 10px; }
.ps-kicker {
    display: inline-flex; align-items: center; gap: 8px; padding: 2px 14px; border-radius: 999px;
    font-weight: 700; font-size: .9rem; line-height: 2;
}
.ps-checks { display: grid; gap: 8px; }
.ps-checks li { display: flex; align-items: baseline; gap: 12px; font-weight: 700; }
.ps-checks li::before { content: ""; flex: none; width: 12px; height: 12px; clip-path: var(--star); transform: translateY(1px); }
@media (min-width: 1024px) {
    .ps-room { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
    .ps-room-meet { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
    .ps-room-meet .ps-meet { order: -1; }
}

.ps-room-studio {
    color: #fff;
    background:
        radial-gradient(50% 70% at 15% 50%, rgba(90, 85, 221, .55), transparent 72%),
        linear-gradient(165deg, var(--lapis) 0%, #2A2770 60%, #3A2F8C 100%);
}
.ps-room-studio .ps-h3 { color: #fff; }
.ps-room-studio p { color: rgba(255, 255, 255, .78); }
.ps-room-studio .ps-kicker { background: rgba(255, 212, 83, .14); color: var(--sun); }
.ps-room-studio .ps-checks li::before { background: var(--sun); }

.ps-room-meet { background: var(--mist); }
.ps-room-meet p { color: var(--muted); }
.ps-room-meet .ps-kicker { background: #fff; color: var(--primary); }
.ps-room-meet .ps-checks li { color: var(--ink); }
.ps-room-meet .ps-checks li::before { background: linear-gradient(160deg, var(--turq), var(--violet)); }

/* Shared video tile */
.ps-tile { position: relative; margin: 0; overflow: hidden; border-radius: 10px; background: #2A2E5E; }
.ps-tile img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.ps-tile figcaption {
    position: absolute; bottom: 6px; right: 6px; display: flex; align-items: center; gap: 4px;
    padding: 0 8px; border-radius: 6px; background: rgba(15, 18, 54, .7); color: #fff;
    font-size: .72rem; font-weight: 700; line-height: 1.9; white-space: nowrap;
}

/* Studio mock: the checked layout radio moves the three tiles (inset is animatable). */
.ps-studio {
    display: grid; gap: 12px; padding: 12px; border-radius: var(--r-md);
    background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 30px 60px -30px rgba(0, 0, 0, .6);
}
.ps-studio > input { position: absolute; opacity: 0; pointer-events: none; }
.ps-studio-stage { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-sm); overflow: hidden; background: #0F1236; }
.ps-studio-stage .ps-tile {
    position: absolute;
    transition: inset .6s var(--ease-move), opacity .45s, transform .6s var(--ease-move);
}
.ps-t1 { inset: 3% 3% 51.5% 50.75%; }
.ps-t2 { inset: 3% 50.75% 51.5% 3%; }
.ps-t3 { inset: 51.5% 26.875% 3% 26.875%; }
.ps-studio:has(#ps-lay-side:checked) .ps-t1 { inset: 14% 3% 14% 50.75%; }
.ps-studio:has(#ps-lay-side:checked) .ps-t2 { inset: 14% 50.75% 14% 3%; }
.ps-studio:has(#ps-lay-solo:checked) .ps-t1,
.ps-studio:has(#ps-lay-spot:checked) .ps-t1 { inset: 0; }
.ps-studio:has(#ps-lay-spot:checked) .ps-t2 { inset: 71% 78% 5% 3%; box-shadow: 0 6px 18px rgba(0, 0, 0, .45); }
.ps-studio:has(#ps-lay-spot:checked) .ps-t3 { inset: 71% 59% 5% 22%; box-shadow: 0 6px 18px rgba(0, 0, 0, .45); }
.ps-studio:has(#ps-lay-solo:checked) :is(.ps-t2, .ps-t3),
.ps-studio:has(#ps-lay-side:checked) .ps-t3 { opacity: 0; transform: scale(.8); }

.ps-onair, .ps-viewers {
    position: absolute; top: 8px; z-index: 1; display: inline-flex; align-items: center; gap: 6px;
    padding: 0 10px; border-radius: 6px; font-size: .75rem; font-weight: 700; line-height: 2;
}
.ps-onair { right: 8px; background: #E5484D; }
.ps-onair .bi { animation: ps-blink 1.6s ease-in-out infinite; }
.ps-viewers { left: 8px; background: rgba(15, 18, 54, .7); }
@keyframes ps-blink { 50% { opacity: .35; } }

.ps-studio-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.ps-studio-hint { color: rgba(255, 255, 255, .6); font-size: .85rem; }
.ps-layouts { display: flex; gap: 6px; padding: 4px; border-radius: 999px; background: rgba(0, 0, 0, .22); }
.ps-layouts label {
    display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px;
    font-size: .85rem; font-weight: 700; color: rgba(255, 255, 255, .8); cursor: pointer;
    transition: background-color .25s, color .25s;
}
.ps-layouts label:hover { background: rgba(255, 255, 255, .1); }
.ps-studio:has(#ps-lay-solo:checked) [for="ps-lay-solo"],
.ps-studio:has(#ps-lay-side:checked) [for="ps-lay-side"],
.ps-studio:has(#ps-lay-grid:checked) [for="ps-lay-grid"],
.ps-studio:has(#ps-lay-spot:checked) [for="ps-lay-spot"] { background: var(--sun); color: var(--ink); }
.ps-studio > input:focus-visible ~ .ps-studio-bar .ps-layouts { outline: 3px solid var(--sun); outline-offset: 3px; }
@media (max-width: 560px) { .ps-layouts span { display: none; } .ps-layouts label { padding: 0 11px; } }

.ps-backstage {
    display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 14px;
    background: rgba(0, 0, 0, .22); font-size: .8rem; color: rgba(255, 255, 255, .6);
}
.ps-backstage span { margin-inline-end: auto; }
.ps-backstage img { width: 52px; height: 36px; object-fit: cover; border-radius: 8px; filter: saturate(.6) brightness(.85); }
.ps-backstage b {
    display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 10px; border-radius: 8px;
    border: 1px dashed rgba(255, 255, 255, .35); color: #fff; font-weight: 700;
}

/* Meeting mock: presentation layout with a lobby request and live reactions. */
.ps-meet {
    position: relative; display: grid; gap: 12px; padding: 12px; border-radius: var(--r-md);
    background: #14173A; box-shadow: 0 30px 60px -30px rgba(34, 39, 72, .55);
}
.ps-meet-grid { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr) minmax(0, .42fr); }
.ps-meet-grid .ps-tile { aspect-ratio: 4 / 3; }
.ps-meet-grid .ps-share { grid-row: span 3; aspect-ratio: auto; }
.ps-speaking { box-shadow: 0 0 0 3px var(--turq); animation: ps-speak 1.8s ease-in-out infinite; }
@keyframes ps-speak { 50% { box-shadow: 0 0 0 3px rgba(75, 195, 214, .35); } }
.ps-hand {
    position: absolute; top: 6px; right: 6px; display: grid; place-items: center;
    width: 26px; height: 26px; border-radius: 50%; background: var(--sun); font-size: .85rem;
    transform-origin: 50% 90%; animation: ps-wave 2.4s ease-in-out infinite;
}
@keyframes ps-wave { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-16deg); } 80% { transform: rotate(12deg); } 90% { transform: rotate(-8deg); } }

.ps-reactions { position: absolute; left: 28px; bottom: 76px; width: 120px; height: 0; pointer-events: none; }
.ps-reactions span { position: absolute; bottom: 0; font-size: 1.5rem; animation: ps-float 4s ease-out infinite both; }
.ps-reactions span:nth-child(1) { left: 0; }
.ps-reactions span:nth-child(2) { left: 30px; animation-delay: 1s; }
.ps-reactions span:nth-child(3) { left: 60px; animation-delay: 2s; }
.ps-reactions span:nth-child(4) { left: 90px; animation-delay: 3s; }
@keyframes ps-float {
    0% { opacity: 0; transform: translateY(10px) scale(.6); }
    15% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-110px) scale(1.1); }
}

.ps-lobby {
    position: absolute; top: 24px; right: 24px; z-index: 1; display: flex; align-items: center; gap: 10px;
    max-width: calc(100% - 48px); padding: 8px; border-radius: 14px; background: #fff; color: var(--ink);
    font-size: .8rem; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .55);
    animation: ps-rise .9s var(--ease-in) .4s both;
}
.ps-lobby img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.ps-lobby span { white-space: nowrap; }
.ps-lobby em { padding: 0 12px; border-radius: 999px; background: var(--primary); color: #fff; font-style: normal; font-weight: 700; line-height: 2.2; }

.ps-meet-bar { display: flex; justify-content: center; gap: 8px; }
.ps-meet-bar .bi {
    display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255, 255, 255, .1); color: #fff; font-size: 1rem;
}
.ps-meet-bar .is-on { background: var(--turq); color: var(--lapis); }
.ps-meet-bar .is-end { width: 56px; border-radius: 999px; background: #E5484D; }
@media (max-width: 420px) { .ps-meet-bar .bi { width: 34px; height: 34px; font-size: .9rem; } .ps-meet-bar .is-end { width: 46px; } }

/* ---------- Steps ---------- */
.ps-step-list { display: grid; gap: 20px; padding: 0; list-style: none; }
.ps-step { position: relative; display: grid; gap: 10px; align-content: start; padding: 28px; border-radius: var(--r-md); border: 1px solid var(--line); }
.ps-step h3 { font-weight: 900; color: var(--ink); font-size: 1.3rem; line-height: 1.5; }
.ps-step p { color: var(--muted); }
.ps-step-num {
    display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 6px;
    clip-path: var(--star); background: linear-gradient(160deg, var(--turq), var(--violet));
    color: #fff; font-weight: 900; font-size: 1.35rem;
}
.ps-step-art { margin-top: 12px; padding: 16px; border-radius: var(--r-sm); background: var(--mist); display: grid; gap: 8px; font-size: .92rem; }
.ps-step-art span { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: #fff; color: var(--ink); font-weight: 700; }
.ps-step-art b { color: var(--muted); font-weight: 500; min-width: 3.5em; }
.ps-art-form img { height: 26px; width: auto; }
.ps-art-code span { font-family: ui-monospace, Consolas, monospace; font-size: .85rem; font-weight: 500; overflow-wrap: anywhere; }
.ps-art-code b { min-width: 3em; }
.ps-art-code .bi { margin-inline-start: auto; color: var(--primary); }
.ps-art-player { position: relative; padding: 0; overflow: hidden; aspect-ratio: 16 / 9; background: var(--lapis); }
.ps-art-player .ps-art-shot { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.ps-art-player .ps-art-logo { position: absolute; top: 10px; left: 10px; height: 34px; width: auto; padding: 3px; border-radius: 8px; background: rgba(255, 255, 255, .9); }
.ps-art-player .ps-art-live { position: absolute; top: 10px; right: 10px; padding: 0 10px; background: #E5484D; color: #fff; font-size: .8rem; line-height: 1.9; }
.ps-art-player .ps-art-bar { position: absolute; inset: auto 12px 12px; height: 4px; padding: 0; border-radius: 2px; background: linear-gradient(90deg, rgba(255, 255, 255, .35) 62%, var(--sun) 62%); }
@media (min-width: 900px) {
    .ps-step-list { grid-template-columns: repeat(3, 1fr); }
    /* A dotted path ties the three steps together behind the star markers. */
    .ps-step:not(:last-child)::after {
        content: ""; position: absolute; top: 54px; left: -21px; width: 22px; border-top: 2px dotted var(--primary);
    }
}

/* ---------- Amenities ---------- */
.ps-amenities { background: var(--mist); }
.ps-amenity-grid { display: grid; gap: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 56px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.ps-amenity { display: grid; grid-template-columns: 56px 1fr; gap: 4px 16px; align-items: start; align-content: start; }
/* Icons sit in an eight-point girih star, the same tile family the hero mosaic is cut from. */
.ps-amenity .bi {
    grid-row: span 2; display: grid; place-items: center; width: 56px; height: 56px;
    clip-path: var(--star); background: linear-gradient(160deg, var(--turq), var(--violet));
    color: #fff; font-size: 1.35rem;
}
.ps-amenity h3 { font-weight: 900; color: var(--ink); font-size: 1.2rem; line-height: 1.5; }
.ps-amenity p { color: var(--muted); font-size: .98rem; }

/* ---------- Pick a service ---------- */
.ps-pick { display: grid; gap: 32px; align-items: center; }
.ps-pick-copy { display: grid; gap: 16px; }
.ps-pick-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.ps-pick-card {
    position: relative; isolation: isolate; overflow: hidden;
    display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
    min-height: clamp(380px, 48vw, 540px); padding: 32px; border-radius: var(--r-md);
    color: #fff !important; background: center / cover no-repeat;
}
.ps-pick-card::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(to top, rgba(34, 39, 72, .9) 0%, rgba(34, 39, 72, .35) 55%, rgba(34, 39, 72, .1) 100%);
    transition: opacity .3s;
}
.ps-pick-card:hover::before { opacity: .8; }
.ps-pick-card h3 { font-weight: 900; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.ps-pick-card p { color: rgba(255, 255, 255, .85); }
.ps-pick-card .bi { position: absolute; top: 24px; left: 24px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .18); backdrop-filter: blur(6px); transition: background-color .2s, transform .3s var(--ease-in); }
.ps-pick-card:hover .bi { background: var(--sun); color: var(--ink); transform: rotate(-45deg); }
@media (min-width: 1024px) { .ps-pick { grid-template-columns: 1fr 2fr; gap: 64px; } }

/* ---------- Articles ---------- */
.ps-articles {
    position: relative; color: #fff;
    background: linear-gradient(rgba(43, 49, 95, .82), rgba(43, 49, 95, .82)), url("../img/landing/s12.webp") center / cover no-repeat;
    padding-block: 0 clamp(40px, 5vw, 64px);
}
.ps-notch-title {
    position: relative; width: fit-content; margin-inline: auto;
    padding: 20px clamp(32px, 6vw, 72px) 22px; background: var(--paper); color: var(--ink);
    border-radius: 0 0 var(--notch) var(--notch);
    font-weight: 900; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); line-height: 1.4;
}
.ps-notch-title::before, .ps-notch-title::after { content: ""; position: absolute; top: 0; width: var(--notch); height: var(--notch); }
.ps-notch-title::before { right: calc(-1 * var(--notch)); background: radial-gradient(circle at 100% 100%, transparent var(--notch), var(--paper) calc(var(--notch) + .5px)); }
.ps-notch-title::after { left: calc(-1 * var(--notch)); background: radial-gradient(circle at 0 100%, transparent var(--notch), var(--paper) calc(var(--notch) + .5px)); }

.ps-carousel { position: relative; margin-top: clamp(40px, 5vw, 64px); }
.ps-carousel > input { position: absolute; opacity: 0; pointer-events: none; }
.ps-carousel-view { overflow: hidden; max-width: 760px; margin-inline: auto; }
.ps-carousel-track { display: flex; transition: transform .6s var(--ease-move); }
.ps-slide { flex: 0 0 100%; display: grid; gap: 20px; padding-inline: 4px; transition: opacity .6s var(--ease-move); opacity: .25; }
.ps-slide img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: var(--r-md); box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .6); }
.ps-slide h3 { font-weight: 900; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.75rem); }
.ps-slide p { color: rgba(255, 255, 255, .85); max-width: 65ch; }
.ps-carousel-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 32px; }
.ps-carousel-nav label { cursor: pointer; }
.ps-arrow { display: none; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .16); font-size: 1.2rem; transition: background-color .2s; }
.ps-arrow:hover { background: rgba(255, 255, 255, .3); }
.ps-dot { width: 10px; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .4); transition: width .4s var(--ease-move), background-color .4s; }
.ps-carousel > input:focus-visible ~ .ps-carousel-nav { outline: 3px solid var(--sun); outline-offset: 6px; border-radius: 999px; }

/* ---------- Footer ---------- */
.ps-footer { padding-block: clamp(40px, 5vw, 64px) 28px; }
.ps-footer-grid { display: grid; gap: 40px 24px; grid-template-columns: repeat(2, 1fr); }
.ps-footer-brand { grid-column: 1 / -1; display: grid; gap: 14px; justify-items: start; }
.ps-footer-brand .ps-logo { height: 96px; width: auto; }
.ps-footer-badges { display: flex; align-items: center; gap: 16px; }
.ps-footer-badges .ps-enamad { width: 64px; height: 64px; object-fit: contain; }
.ps-contact { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; }
.ps-contact .bi { color: var(--primary); }
.ps-socials { display: flex; gap: 6px; }
.ps-socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--ink); font-size: 1.2rem; transition: background-color .2s; }
.ps-socials a:hover { background: var(--primary-soft); }
.ps-socials img { width: 22px; height: 22px; }
.ps-footer h4 { font-weight: 900; color: var(--ink); font-size: 1.05rem; margin-bottom: 12px; }
.ps-footer li { padding-block: 4px; }
.ps-footer li a, .ps-footer li span { color: var(--muted); font-weight: 700; }
.ps-footer li a:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 4px; }
.ps-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; text-align: center; }
@media (min-width: 900px) {
    .ps-footer-grid { grid-template-columns: 1.4fr repeat(4, 1fr); }
    .ps-footer-brand { grid-column: auto; }
}

/* ---------- Auth ---------- */
.ps-auth-page {
    min-height: 100vh; display: grid; place-items: center; gap: 16px;
    padding: clamp(12px, 3vw, 40px); background: #E9E8E4;
}
.ps-auth {
    display: grid; gap: 24px; width: min(1180px, 100%);
    padding: clamp(12px, 2vw, 24px); border-radius: var(--r-lg); background: var(--paper);
    box-shadow: 0 30px 60px -30px rgba(34, 39, 72, .35);
}
.ps-auth-form {
    view-transition-name: ps-auth-form;
    display: flex; flex-direction: column; justify-content: center;
    padding: clamp(20px, 5vw, 64px) clamp(8px, 5vw, 72px);
    animation: ps-rise .6s var(--ease-in) both;
}
.ps-auth-art {
    view-transition-name: ps-auth-art;
    display: none; place-items: center; border-radius: var(--r-md); background: var(--mist); padding: 32px;
}
.ps-auth-art img { width: 100%; max-width: 520px; height: auto; mix-blend-mode: multiply; }
@media (min-width: 900px) {
    .ps-auth { grid-template-columns: 1fr 1fr; min-height: min(720px, calc(100vh - 120px)); }
    .ps-auth-art { display: grid; }
    /* Login: form on the start side. Other views swap it to the far side. */
    .ps-auth:not([data-view="login"]) .ps-auth-form { order: 1; }
}
.ps-auth-logo { height: 72px; width: auto; margin-bottom: 16px; }
@media (min-width: 900px) { .ps-auth-logo { display: none; } }
.ps-auth h1 { font-weight: 900; color: var(--ink); font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem); line-height: 1.35; }
.ps-auth-sub { color: var(--muted); font-size: clamp(1rem, .95rem + .3vw, 1.2rem); margin-top: 6px !important; }
.ps-auth form { display: grid; gap: 22px; margin-top: 32px; }

.ps-field { display: grid; gap: 4px; }
.ps-field label { font-weight: 700; color: var(--ink); font-size: .95rem; }
.ps-field input {
    width: 100%; padding: 10px 2px; border: 0; border-bottom: 2px solid var(--line); border-radius: 0;
    background: transparent; color: var(--ink); font: inherit; font-weight: 500; font-size: 1.05rem;
    transition: border-color .2s;
}
.ps-field input::placeholder { color: #AEB1B3; }
.ps-field input:focus { outline: none; border-bottom-color: var(--primary); }
.ps-field input.invalid { border-bottom-color: #D3455B; }
.ps-field input.invalid, .ps-field input.valid.modified { outline: none; }
.ps-field .validation-message { color: #C0354B; font-size: .88rem; font-weight: 700; }

.ps-rules { padding: 14px 16px; border-radius: 14px; background: var(--primary-soft); font-size: .88rem; color: var(--muted); }
.ps-rules ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 2px 16px; margin-top: 4px !important; }
.ps-rules li::before { content: "•"; margin-inline-end: 6px; color: var(--primary); }

.ps-auth-alert { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 14px; background: #FDECEE; color: #A3263A; font-weight: 700; }
.ps-auth-alert.is-info { background: var(--primary-soft); color: var(--primary-dark); }
.ps-auth-links { display: grid; gap: 6px; margin-top: 28px; color: var(--text); }
.ps-auth-links a { color: var(--primary); font-weight: 700; }
.ps-auth-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.ps-auth-legal { color: #565D62; font-size: .9rem; text-align: center; }

::view-transition-group(ps-auth-form), ::view-transition-group(ps-auth-art) { animation-duration: .55s; animation-timing-function: var(--ease-move, cubic-bezier(0.65, 0, 0.35, 1)); }

@media (prefers-reduced-motion: reduce) {
    .ps *, .ps *::before, .ps *::after { animation: none !important; transition: none !important; }
    @view-transition { navigation: none; }
}
