﻿
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

/* ── Tokens ── */
:root {
    --red: #CC1E1E;
    --red-dk: #A81818;
    --red-lt: #F9EDED;
    --white: #FFFFFF;
    --off: #F5F5F5;
    --off2: #EFEFEF;
    --border: #E0E0E0;
    --border2: #CCCCCC;
    --text: #1A1A1A;
    --text2: #444444;
    --text3: #888888;
    --green: #16A34A;
    --green-lt: #F0FDF4;
    --blue: #2563EB;
    --blue-lt: #EFF6FF;
    --amber: #B45309;
    --amber-lt: #FFFBEB;
    --sans: 'Inter', system-ui, sans-serif;
    --mono: 'JetBrains Mono', monospace;
    --radius: 10px;
    --shadow: 0 2px 8px rgba(0,0,0,.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,.12);
    --shadow-red: 0 4px 20px rgba(204,30,30,.25);
}

body {
    font-family: var(--sans);
    background: var(--white);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

main {
    flex: 1;
}

a {
    color: var(--red);
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

strong {
    font-weight: 600;
}

/* ══════════════════════════════════════════
   NAV
══════════════════════════════════════════ */
.nav {
    position: sticky;
    top: 0;
    z-index: 200;
    height: 62px;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 32px;
    background: var(--red);
    box-shadow: 0 2px 12px rgba(0,0,0,.15);
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -.03em;
    text-decoration: none;
}

    .nav__brand:hover {
        text-decoration: none;
    }

.nav__logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 900;
    color: var(--red);
    flex-shrink: 0;
}

.nav__links {
    flex: 1;
    display: flex;
    gap: 2px;
}

.nav__link {
    padding: 7px 14px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,.85);
    text-decoration: none;
    transition: all .15s;
}

    .nav__link:hover {
        background: rgba(255,255,255,.15);
        color: var(--white);
        text-decoration: none;
    }

.nav__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav__user {
    font-size: 13px;
    color: rgba(255,255,255,.85);
    font-weight: 500;
    padding: 0 8px;
}

/* ══════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 14px;
    padding: 11px 22px;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all .18s;
    white-space: nowrap;
    letter-spacing: .01em;
    text-decoration: none;
}

    .btn:hover {
        text-decoration: none;
    }

.btn-red {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}

    .btn-red:hover {
        background: var(--red-dk);
        border-color: var(--red-dk);
        box-shadow: var(--shadow-red);
        transform: translateY(-1px);
    }

.btn-white {
    background: var(--white);
    color: var(--red);
    border-color: var(--white);
}

    .btn-white:hover {
        background: #F0F0F0;
    }

.btn-outline-red {
    background: transparent;
    color: var(--red);
    border-color: var(--red);
}

    .btn-outline-red:hover {
        background: var(--red-lt);
    }

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,.6);
}

    .btn-outline-white:hover {
        background: rgba(255,255,255,.1);
        border-color: var(--white);
    }

.btn-ghost-nav {
    background: rgba(255,255,255,.15);
    color: var(--white);
    border-color: rgba(255,255,255,.3);
}

    .btn-ghost-nav:hover {
        background: rgba(255,255,255,.25);
    }

.btn-lg {
    padding: 14px 32px;
    font-size: 15px;
    border-radius: 12px;
}

.btn-sm {
    padding: 7px 16px;
    font-size: 13px;
    border-radius: 8px;
}

.btn-full {
    width: 100%;
}

.btn:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none !important;
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.footer {
    background: var(--text);
    color: rgba(255,255,255,.55);
    text-align: center;
    padding: 22px;
    font-size: 12px;
}

    .footer span {
        color: var(--red);
    }

/* ══════════════════════════════════════════
   HERO (Home/Index)
══════════════════════════════════════════ */
.ps-hero {
    background: var(--red);
    padding: 80px 24px 64px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ps-hero__pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 28px 28px;
}

.ps-hero__shine {
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(255,255,255,.08) 0%, transparent 65%);
    pointer-events: none;
}

.ps-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
}

.ps-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 28px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.ps-hero__pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--white);
    animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
    0%,100% {
        opacity: 1;
        transform: scale(1)
    }

    50% {
        opacity: .4;
        transform: scale(.85)
    }
}

.ps-hero__title {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.04em;
    color: var(--white);
    margin-bottom: 20px;
}

.ps-hero__highlight {
    background: rgba(255,255,255,.18);
    border-radius: 8px;
    padding: 2px 10px;
}

.ps-hero__sub {
    font-size: 17px;
    color: rgba(255,255,255,.85);
    line-height: 1.7;
    max-width: 520px;
    margin: 0 auto 40px;
    font-weight: 400;
}

.ps-hero__ctas {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.ps-hero__trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.ps-trust-chip {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: rgba(255,255,255,.8);
    font-weight: 500;
}

/* Hero card */
.ps-hero__card {
    max-width: 460px;
    margin: 52px auto 0;
    background: var(--white);
    border-radius: 18px;
    padding: 26px;
    box-shadow: 0 24px 64px rgba(0,0,0,.18);
    text-align: left;
    position: relative;
    z-index: 1;
}

.ps-hero-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 18px;
}

.ps-hero-card__label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 4px;
}

.ps-hero-card__name {
    font-size: 15px;
    font-weight: 700;
}

.ps-hero-card__period {
    font-size: 12px;
    color: var(--text3);
}

.ps-hero-score-badge {
    background: var(--red-lt);
    border: 2px solid var(--red);
    border-radius: 10px;
    padding: 8px 14px;
    text-align: center;
    flex-shrink: 0;
}

.ps-hero-score-badge__num {
    font-size: 24px;
    font-weight: 800;
    color: var(--red);
    line-height: 1;
    letter-spacing: -.03em;
}

.ps-hero-score-badge__of {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text3);
}

.ps-hero-score-badge__band {
    font-size: 10px;
    font-weight: 700;
    color: var(--red);
    margin-top: 2px;
}

.ps-mini-bars {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.ps-mini-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}

.ps-mini-bar-label {
    width: 130px;
    color: var(--text2);
    flex-shrink: 0;
}

.ps-mini-bar-track {
    flex: 1;
    height: 5px;
    background: var(--off2);
    border-radius: 3px;
    overflow: hidden;
}

.ps-mini-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: var(--red);
}

.ps-mini-bar-val {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text3);
    width: 24px;
    text-align: right;
}

/* ══════════════════════════════════════════
   SECTIONS (Home page)
══════════════════════════════════════════ */
.ps-section {
    padding: 80px 24px;
}

.ps-section--alt {
    background: var(--off);
}

.ps-section__wrap {
    max-width: 1000px;
    margin: 0 auto;
}

.ps-section__tag {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--red);
    letter-spacing: .15em;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .ps-section__tag::before {
        content: '';
        width: 24px;
        height: 2px;
        background: var(--red);
        flex-shrink: 0;
    }

.ps-section__title {
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -.03em;
    margin-bottom: 12px;
    line-height: 1.1;
}

.ps-section__sub {
    font-size: 15px;
    color: var(--text2);
    max-width: 500px;
    line-height: 1.7;
    margin-bottom: 48px;
}

/* Steps */
.ps-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.ps-step-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px;
    border-top: 3px solid transparent;
    transition: all .2s;
}

    .ps-step-card:hover {
        border-top-color: var(--red);
        box-shadow: var(--shadow-md);
        transform: translateY(-2px);
    }

.ps-step-n {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--red);
    color: var(--white);
    font-size: 15px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.ps-step-icon {
    font-size: 28px;
    margin-bottom: 12px;
    display: block;
}

.ps-step-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -.01em;
}

.ps-step-desc {
    font-size: 13px;
    color: var(--text2);
    line-height: 1.7;
}

/* Factor chips */
.ps-factors-chips {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.ps-factor-chip {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 14px;
    text-align: center;
    transition: all .2s;
}

    .ps-factor-chip:hover {
        border-color: var(--red);
        box-shadow: var(--shadow);
    }

.ps-factor-chip__icon {
    font-size: 26px;
    margin-bottom: 10px;
    display: block;
}

.ps-factor-chip__pts {
    font-size: 20px;
    font-weight: 800;
    color: var(--red);
    margin-bottom: 4px;
    letter-spacing: -.02em;
}

.ps-factor-chip__name {
    font-size: 11px;
    color: var(--text2);
    font-weight: 600;
    line-height: 1.4;
}

/* Pricing */
.ps-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.ps-price-card {
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    background: var(--white);
    transition: all .2s;
}

    .ps-price-card:hover {
        box-shadow: var(--shadow-md);
    }

.ps-price-card--feat {
    border: 2px solid var(--red);
    box-shadow: 0 0 0 4px var(--red-lt);
}

.ps-price-tag {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--red);
    letter-spacing: .15em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.ps-price-name {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: -.02em;
}

.ps-price-amount {
    font-size: 32px;
    font-weight: 800;
    color: var(--red);
    letter-spacing: -.03em;
    line-height: 1;
    margin-bottom: 4px;
}

.ps-price-per {
    font-size: 12px;
    color: var(--text3);
    margin-bottom: 14px;
}

.ps-price-desc {
    font-size: 13px;
    color: var(--text2);
    line-height: 1.6;
    margin-bottom: 18px;
    min-height: 52px;
}

.ps-price-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text2);
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
}

    .ps-price-feature:last-of-type {
        border-bottom: none;
    }

.ps-pf-yes {
    color: var(--red);
    font-size: 15px;
    flex-shrink: 0;
}

.ps-pf-no {
    color: var(--text3);
    font-size: 15px;
    flex-shrink: 0;
}

    .ps-pf-no + span {
        color: var(--text3);
    }

/* CTA band */
.ps-cta-band {
    background: var(--red);
    border-radius: 20px;
    padding: 56px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ps-cta-band__pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 24px 24px;
}

.ps-cta-band__inner {
    position: relative;
    z-index: 1;
}

.ps-cta-band__title {
    font-size: clamp(22px, 4vw, 38px);
    font-weight: 800;
    color: var(--white);
    letter-spacing: -.03em;
    margin-bottom: 12px;
    line-height: 1.1;
}

.ps-cta-band__sub {
    font-size: 15px;
    color: rgba(255,255,255,.8);
    max-width: 440px;
    margin: 0 auto 28px;
    line-height: 1.7;
}

.ps-cta-band__btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ══════════════════════════════════════════
   AUTH SCREENS
══════════════════════════════════════════ */
.ps-auth-screen {
    min-height: calc(100vh - 62px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: var(--off);
}

.ps-auth-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 860px;
    width: 100%;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.ps-auth-left {
    background: var(--red);
    padding: 44px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ps-auth-left__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}

.ps-auth-left__gem {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 900;
    color: var(--red);
}

.ps-auth-left__brand {
    font-size: 20px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -.02em;
}

.ps-auth-left__title {
    font-size: 24px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -.03em;
    margin-bottom: 10px;
    line-height: 1.2;
}

.ps-auth-left__sub {
    font-size: 13px;
    color: rgba(255,255,255,.8);
    line-height: 1.7;
    margin-bottom: 28px;
}

.ps-auth-proof {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ps-proof-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: rgba(255,255,255,.85);
}

.ps-proof-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(255,255,255,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.ps-auth-right {
    padding: 40px 36px;
}

.ps-auth-tabs {
    display: flex;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border);
}

.ps-auth-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text3);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    text-decoration: none;
    transition: all .15s;
}

    .ps-auth-tab:hover {
        color: var(--text);
        text-decoration: none;
    }

.ps-auth-tab--on {
    color: var(--red);
    border-bottom-color: var(--red);
}

/* ══════════════════════════════════════════
   FORM ELEMENTS
══════════════════════════════════════════ */
.ps-field {
    margin-bottom: 15px;
}

.ps-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text2);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.ps-input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border2);
    border-radius: 9px;
    font-size: 14px;
    color: var(--text);
    font-family: var(--sans);
    outline: none;
    background: var(--white);
    transition: border .15s;
}

    .ps-input:focus {
        border-color: var(--red);
        box-shadow: 0 0 0 3px var(--red-lt);
    }

    .ps-input::placeholder {
        color: var(--text3);
    }

.ps-field-error {
    display: block;
    font-size: 12px;
    color: var(--red);
    margin-top: 4px;
}

.ps-field-hint {
    font-size: 12px;
    color: var(--text3);
    margin-top: 5px;
    line-height: 1.5;
}

.ps-alert {
    padding: 12px 14px;
    border-radius: var(--radius);
    font-size: 13px;
    margin-bottom: 16px;
}

.ps-alert--error {
    background: var(--red-lt);
    border: 1px solid rgba(204,30,30,.3);
    color: var(--red);
}

.ps-alert:empty {
    display: none;
}

.ps-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    font-size: 12px;
    color: var(--text3);
}

    .ps-divider::before, .ps-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--border);
    }

.ps-guest-btn {
    width: 100%;
    padding: 12px;
    background: var(--off);
    border: 1.5px dashed var(--border2);
    border-radius: 9px;
    color: var(--text2);
    font-size: 14px;
    font-family: var(--sans);
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

    .ps-guest-btn:hover {
        border-color: var(--red);
        color: var(--red);
        background: var(--red-lt);
        text-decoration: none;
    }

.ps-guest-badge {
    font-size: 10px;
    background: var(--red-lt);
    color: var(--red);
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: .06em;
}

.ps-auth-switch {
    font-size: 12px;
    color: var(--text3);
    text-align: center;
    margin-top: 14px;
}

    .ps-auth-switch a {
        color: var(--red);
        font-weight: 600;
    }

/* ══════════════════════════════════════════
   UPLOAD SCREENS
══════════════════════════════════════════ */
.ps-upload-screen {
    min-height: calc(100vh - 62px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: var(--off);
}

.ps-upload-box {
    max-width: 540px;
    width: 100%;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.ps-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text3);
    text-decoration: none;
    margin-bottom: 24px;
    transition: color .15s;
}

    .ps-back-btn:hover {
        color: var(--red);
        text-decoration: none;
    }

.ps-upload-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.03em;
    margin-bottom: 6px;
}

.ps-upload-sub {
    font-size: 13px;
    color: var(--text2);
    line-height: 1.6;
    margin-bottom: 24px;
}

.ps-guest-notice {
    background: var(--red-lt);
    border: 1px solid rgba(204,30,30,.2);
    border-left: 3px solid var(--red);
    border-radius: 0 8px 8px 0;
    padding: 12px 14px;
    font-size: 12px;
    color: var(--text2);
    margin-bottom: 18px;
    display: flex;
    gap: 8px;
    align-items: flex-start;
    line-height: 1.5;
}

.ps-guest-notice__icon {
    font-size: 14px;
    flex-shrink: 0;
}

.ps-guest-notice a {
    color: var(--red);
    font-weight: 600;
}

.ps-dropzone {
    border: 2px dashed var(--border2);
    border-radius: 12px;
    padding: 36px 20px;
    text-align: center;
    cursor: pointer;
    position: relative;
    background: var(--off);
    transition: all .2s;
    margin-bottom: 12px;
}

    .ps-dropzone:hover, .ps-dropzone--over {
        border-color: var(--red);
        background: var(--red-lt);
    }

.ps-dropzone__icon {
    font-size: 32px;
    display: block;
    margin-bottom: 10px;
}

.ps-dropzone__title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.ps-dropzone__sub {
    font-size: 12px;
    color: var(--text3);
}

.ps-dropzone__input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
}

.ps-link {
    color: var(--red);
    font-weight: 500;
}

.ps-file-chip {
    display: none;
    align-items: center;
    gap: 10px;
    background: var(--red-lt);
    border: 1px solid rgba(204,30,30,.3);
    border-radius: 9px;
    padding: 10px 14px;
    margin-bottom: 14px;
}

.ps-file-chip--show {
    display: flex;
}

.ps-file-chip__check {
    color: var(--red);
    font-size: 16px;
}

.ps-file-chip__name {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--red);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ps-privacy-note {
    background: var(--red-lt);
    border-left: 3px solid var(--red);
    border-radius: 0 8px 8px 0;
    padding: 11px 14px;
    font-size: 12px;
    color: var(--text2);
    line-height: 1.6;
    margin-bottom: 18px;
}

    .ps-privacy-note strong {
        color: var(--red);
    }

/* ══════════════════════════════════════════
   DASHBOARD / INNER PAGES
══════════════════════════════════════════ */
.ps-page {
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 24px 60px;
}

.ps-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
    gap: 16px;
    flex-wrap: wrap;
}

.ps-page-title {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -.03em;
    margin-bottom: 4px;
}

.ps-page-sub {
    font-size: 14px;
    color: var(--text3);
}

.ps-stat-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.ps-stat {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 16px;
    border-top: 3px solid var(--red);
}

.ps-stat__num {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1;
    margin-bottom: 4px;
    color: var(--red);
}

.ps-stat__num--band {
    font-size: 18px;
}

.ps-stat__label {
    font-size: 12px;
    color: var(--text3);
    font-weight: 500;
}

.ps-score-green {
    color: var(--green) !important;
}

.ps-score-blue {
    color: var(--blue) !important;
}

.ps-score-amber {
    color: var(--amber) !important;
}

.ps-score-red {
    color: var(--red) !important;
}

.ps-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 16px;
}

.ps-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.ps-card-title {
    font-size: 15px;
    font-weight: 700;
}

.ps-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

    .ps-table th {
        background: var(--off);
        padding: 10px 16px;
        text-align: left;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .06em;
        color: var(--text3);
    }

    .ps-table td {
        padding: 12px 16px;
        border-top: 1px solid var(--border);
        vertical-align: middle;
    }

    .ps-table tr:hover td {
        background: var(--off);
    }

.ps-band-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 20px;
}

.ps-band-badge--green {
    background: var(--green-lt);
    color: var(--green);
}

.ps-band-badge--blue {
    background: var(--blue-lt);
    color: var(--blue);
}

.ps-band-badge--amber {
    background: var(--amber-lt);
    color: var(--amber);
}

.ps-band-badge--red {
    background: var(--red-lt);
    color: var(--red);
}

.ps-band-badge--CC1E1E {
    background: var(--red-lt);
    color: var(--red);
}

.ps-status {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 20px;
}

.ps-status--paid {
    background: var(--green-lt);
    color: var(--green);
}

.ps-status--preview {
    background: var(--amber-lt);
    color: var(--amber);
}

.ps-muted {
    color: var(--text3);
    font-size: .9em;
}

.ps-empty {
    padding: 48px 24px;
    text-align: center;
    color: var(--text3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.ps-empty__icon {
    font-size: 40px;
}

.ps-empty__text {
    font-size: 14px;
}

.ps-tip-card {
    background: var(--red-lt);
    border: 1px solid rgba(204,30,30,.2);
    border-left: 3px solid var(--red);
    border-radius: 0 12px 12px 0;
    padding: 18px 20px;
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

.ps-tip-card__icon {
    font-size: 24px;
    flex-shrink: 0;
}

.ps-tip-card__body {
    flex: 1;
}

.ps-tip-card__title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.ps-tip-card__text {
    font-size: 13px;
    color: var(--text2);
    line-height: 1.6;
}

/* ══════════════════════════════════════════
   RESULTS PAGE
══════════════════════════════════════════ */
.ps-results-page {
    background: var(--off);
    min-height: calc(100vh - 62px);
}

.ps-results-wrap {
    max-width: 780px;
    margin: 0 auto;
    padding: 36px 24px 60px;
}

.ps-results-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 22px;
    gap: 16px;
    flex-wrap: wrap;
}

.ps-results-tag {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--red);
    letter-spacing: .2em;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.ps-results-name {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.03em;
    margin-bottom: 3px;
}

.ps-results-meta {
    font-size: 12px;
    color: var(--text3);
}

.ps-guest-lock {
    background: var(--white);
    border: 1.5px solid rgba(204,30,30,.3);
    border-left: 4px solid var(--red);
    border-radius: 0 12px 12px 0;
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.ps-guest-lock__title {
    font-size: 14px;
    font-weight: 700;
    color: var(--red);
    margin-bottom: 3px;
}

.ps-guest-lock__sub {
    font-size: 12px;
    color: var(--text2);
}

.ps-score-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    display: flex;
    gap: 28px;
    align-items: center;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.ps-arc-wrap {
    position: relative;
    width: 140px;
    height: 140px;
    flex-shrink: 0;
}

.ps-arc-svg {
    width: 140px;
    height: 140px;
}

.ps-arc-bg {
    fill: none;
    stroke: var(--off2);
    stroke-width: 10;
}

.ps-arc-fill {
    fill: none;
    stroke-width: 10;
    stroke-linecap: round;
    transform: rotate(-210deg);
    transform-origin: 70px 70px;
}

.ps-arc-num {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    text-align: center;
}

.ps-arc-big {
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    display: block;
    letter-spacing: -.03em;
}

.ps-arc-of {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text3);
}

.ps-score-info {
    flex: 1;
}

.ps-score-band {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: 6px;
}

.ps-score-summary {
    font-size: 13px;
    color: var(--text2);
    line-height: 1.7;
    margin-bottom: 14px;
}

.ps-band-bar {
    height: 6px;
    background: var(--off2);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
}

.ps-band-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1.6s cubic-bezier(.4,0,.2,1);
}

.ps-band-labels {
    display: flex;
    justify-content: space-between;
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text3);
}

.ps-sec-label {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--red);
    letter-spacing: .18em;
    text-transform: uppercase;
    margin: 22px 0 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .ps-sec-label::after {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--border);
    }

.ps-factors-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.ps-fc {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
    border-top: 3px solid var(--red);
}

.ps-fc-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.ps-fc-name {
    font-size: 13px;
    font-weight: 700;
}

.ps-fc-pts {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--red);
}

.ps-fc-bar-bg {
    height: 4px;
    background: var(--off2);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 7px;
}

.ps-fc-bar {
    height: 100%;
    border-radius: 2px;
    background: var(--red);
    transition: width 1.4s cubic-bezier(.4,0,.2,1);
}

.ps-fc-note {
    font-size: 11px;
    color: var(--text3);
    line-height: 1.5;
}

.ps-blur-wrap {
    position: relative;
    margin-bottom: 14px;
}

.ps-blur-content {
    filter: blur(5px);
    pointer-events: none;
    user-select: none;
}

.ps-blur-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, rgba(245,245,245,0), rgba(245,245,245,.96) 35%);
    border-radius: 10px;
    text-align: center;
    padding: 24px;
}

.ps-blur-overlay__icon {
    font-size: 26px;
    margin-bottom: 7px;
}

.ps-blur-overlay__title {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 5px;
}

.ps-blur-overlay__sub {
    font-size: 13px;
    color: var(--text2);
    margin-bottom: 14px;
    max-width: 280px;
}

.ps-insights-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.ps-ins {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.6;
    border: 1px solid var(--border);
    background: var(--white);
}

.ps-ins--positive {
    border-left: 3px solid var(--green);
    background: var(--green-lt);
}

.ps-ins--negative {
    border-left: 3px solid var(--red);
    background: var(--red-lt);
}

.ps-ins--neutral {
    border-left: 3px solid var(--amber);
    background: var(--amber-lt);
}

.ps-ins--action {
    border-left: 3px solid var(--blue);
    background: var(--blue-lt);
}

.ps-ins__icon {
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 1px;
    font-weight: 700;
}

.ps-ins__num {
    color: var(--blue);
    font-weight: 800;
}

.ps-ins__text {
    color: var(--text2);
}

    .ps-ins__text strong {
        color: var(--text);
    }

.ps-result-actions {
    display: flex;
    gap: 10px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

/* ══════════════════════════════════════════
   DEVELOPER PORTAL
══════════════════════════════════════════ */
.ps-dev-shell {
    max-width: 1040px;
    margin: 0 auto;
    padding: 36px 24px 60px;
}

.ps-dev-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
}

.ps-dev-tab {
    color: var(--text3);
    font-size: 13px;
    font-weight: 700;
    padding: 12px 14px;
    border-bottom: 3px solid transparent;
    text-decoration: none;
    white-space: nowrap;
}

    .ps-dev-tab:hover {
        color: var(--text);
        text-decoration: none;
    }

.ps-dev-tab--on {
    color: var(--red);
    border-bottom-color: var(--red);
}

.ps-dev-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.ps-dev-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.ps-dev-stat-detail {
    color: var(--text3);
    font-size: 11px;
    margin-top: 6px;
}

.ps-dev-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.ps-dev-panel {
    margin-bottom: 0;
}

.ps-dev-panel-body,
.ps-dev-form,
.ps-dev-doc-block {
    padding: 20px;
}

.ps-dev-key-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

    .ps-dev-key-row:last-child {
        border-bottom: none;
    }

    .ps-dev-key-row span {
        color: var(--text3);
        font-weight: 600;
    }

code,
pre {
    font-family: var(--mono);
}

code {
    color: var(--red);
    font-size: 12px;
    word-break: break-word;
}

pre {
    background: #1A1A1A;
    color: var(--white);
    border-radius: 10px;
    padding: 16px;
    overflow-x: auto;
    font-size: 12px;
    line-height: 1.7;
    margin: 0;
}

    pre code {
        color: var(--white);
    }

.ps-dev-method {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--red-lt);
    color: var(--red);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
}

.ps-dev-activity {
    padding: 8px 20px;
}

.ps-dev-activity-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

    .ps-dev-activity-row:last-child {
        border-bottom: none;
    }

    .ps-dev-activity-row strong,
    .ps-dev-activity-row span {
        display: block;
    }

    .ps-dev-activity-row strong {
        font-size: 13px;
        margin-bottom: 3px;
    }

    .ps-dev-activity-row span {
        font-size: 12px;
        color: var(--text3);
    }

.ps-dev-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 700px) {
    .nav {
        padding: 0 16px;
    }

    .nav__links {
        display: none;
    }

    .ps-steps-grid {
        grid-template-columns: 1fr;
    }

    .ps-factors-chips {
        grid-template-columns: repeat(2, 1fr);
    }

    .ps-pricing-grid {
        grid-template-columns: 1fr;
    }

    .ps-auth-box {
        grid-template-columns: 1fr;
    }

    .ps-auth-left {
        display: none;
    }

    .ps-score-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .ps-factors-row {
        grid-template-columns: 1fr;
    }

    .ps-stat-row {
        grid-template-columns: 1fr 1fr;
    }

    .ps-cta-band {
        padding: 40px 24px;
    }

    .ps-hero__title {
        font-size: 36px;
    }

    .ps-section {
        padding: 60px 20px;
    }

    .ps-dev-hero,
    .ps-dev-key-row,
    .ps-dev-activity-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .ps-dev-stats,
    .ps-dev-grid {
        grid-template-columns: 1fr;
    }
}

/* Toast notifications */
.toast-region {
    position: fixed;
    top: 88px;
    right: 24px;
    z-index: 5000;
    display: grid;
    gap: 10px;
    width: min(420px, calc(100vw - 32px));
    pointer-events: none;
}

.app-toast {
    display: grid;
    grid-template-columns: 28px 1fr 28px;
    align-items: start;
    gap: 12px;
    padding: 15px 16px;
    border: 1px solid var(--border);
    border-left: 4px solid var(--blue);
    border-radius: 12px;
    background: var(--white);
    color: var(--text);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .16);
    pointer-events: auto;
    animation: toast-enter .18s ease-out;
}

.app-toast--success { border-left-color: var(--green); }
.app-toast--error { border-left-color: var(--red); }

.app-toast__icon {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--blue-lt);
    color: var(--blue);
    font-weight: 800;
}

.app-toast--success .app-toast__icon { background: var(--green-lt); color: var(--green); }
.app-toast--error .app-toast__icon { background: var(--red-lt); color: var(--red); }

.app-toast__message { font-size: 13px; line-height: 1.5; }

.app-toast__close {
    border: 0;
    background: transparent;
    color: var(--text3);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.app-toast--leaving { opacity: 0; transform: translateX(12px); transition: .18s ease; }

@keyframes toast-enter {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    .toast-region { top: 72px; right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .app-toast { animation: none; }
    .app-toast--leaving { transition: none; }
}
