/* ===================== PRD PAGE ===================== */
html {
    scroll-padding-top: 5rem;
}

.prd-page {
    color: rgba(255, 255, 255, 0.88);
}

.prd-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 2rem;
    background: rgba(12, 8, 34, 0.55);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.back-link,
.home-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.back-link:hover,
.home-link:hover {
    color: #f0abfc;
}

.home-link {
    font-weight: 300;
    font-size: 1rem;
    letter-spacing: 0.01em;
}

.prd-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 200px minmax(0, 860px);
    justify-content: center;
    gap: 2.5rem;
    padding: 2.5rem 2rem 4rem;
}

/* ---------- Contents sidebar ---------- */
.prd-toc {
    position: sticky;
    top: 5.5rem;
    align-self: start;
    padding-top: 0.5rem;
}

.toc-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #f0abfc;
    margin-bottom: 0.8rem;
}

.prd-toc ol {
    list-style: none;
    padding: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.prd-toc a {
    display: block;
    padding: 0.4rem 0 0.4rem 1rem;
    margin-left: -1px;
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.prd-toc a:hover,
.prd-toc a.is-active {
    color: #fff;
    border-left-color: #d946ef;
}

/* ---------- Document ---------- */
.prd-doc {
    padding: 2.75rem 3rem 3rem;
    border-radius: 24px;
    background: rgba(14, 9, 38, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(18px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.prd-header {
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.prd-title {
    font-size: clamp(2rem, 5vw, 2.9rem);
    font-weight: 300;
    line-height: 1.15;
    color: #fff;
    margin: 0.2rem 0 0.9rem;
}

.prd-sub {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    max-width: 640px;
}

.prd-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 2.25rem;
    margin-top: 1.5rem;
}

.prd-meta dt {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(240, 171, 252, 0.85);
    margin-bottom: 0.2rem;
}

.prd-meta dd {
    font-size: 0.9rem;
    color: #fff;
}

.prd-section {
    padding-top: 2.75rem;
}

.prd-h2 {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
    font-size: 1.45rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.2rem;
}

.sec-num {
    font-size: 0.8rem;
    font-weight: 700;
    color: #f0abfc;
    letter-spacing: 0.06em;
}

.prd-h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin: 1.75rem 0 0.85rem;
}

.prd-p {
    font-size: 0.97rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
}

.prd-p--small {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    margin: -0.4rem 0 0.9rem;
}

.problem-quote {
    margin: 0;
    padding: 1.25rem 1.5rem;
    border-left: 3px solid #d946ef;
    border-radius: 0 14px 14px 0;
    background: linear-gradient(90deg, rgba(217, 70, 239, 0.16), rgba(255, 255, 255, 0.04));
    font-size: 1.12rem;
    line-height: 1.65;
    color: #fff;
}

/* ---------- Card grids ---------- */
.card-grid {
    display: grid;
    gap: 0.85rem;
}

.card-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.pain-card,
.seg-card,
.goal-card,
.metric-card,
.persona-card,
.mix-card {
    padding: 1.15rem 1.2rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.13);
}

.prd-doc ul,
.prd-doc ol {
    padding-left: 1.1rem;
}

.prd-doc li {
    font-size: 0.88rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.35rem;
}

.prd-doc li:last-child {
    margin-bottom: 0;
}

.prd-doc li::marker {
    color: #f0abfc;
}

.pain-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    margin-bottom: 0.85rem;
    color: #fff;
    background: linear-gradient(135deg, #d946ef, #be185d);
    box-shadow: 0 0 16px rgba(217, 70, 239, 0.4);
}

.pain-icon svg {
    width: 21px;
    height: 21px;
}

.pain-card h3 {
    font-size: 0.98rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.55rem;
}

/* ---------- User mix ---------- */
.mix-card {
    margin-top: 1.25rem;
}

.mix-card .prd-h3 {
    margin-top: 0;
}

.mix-bar {
    display: flex;
    height: 38px;
    border-radius: 10px;
    overflow: hidden;
    gap: 3px;
}

.mix-seg {
    display: grid;
    place-items: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
}

.mix-seg--1, .dot--1 { background: linear-gradient(135deg, #d946ef, #be185d); }
.mix-seg--2, .dot--2 { background: linear-gradient(135deg, #7e22ce, #6d28d9); }
.mix-seg--3, .dot--3 { background: linear-gradient(135deg, #2563eb, #1e3a8a); }

.mix-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.4rem;
    list-style: none;
    margin-top: 0.8rem;
}

.prd-doc .mix-legend {
    padding-left: 0;
}

.mix-legend li {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.mix-note {
    margin-top: 0.9rem;
    font-size: 0.84rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

.mix-note strong {
    color: #fff;
}

/* ---------- Segments & personas ---------- */
.seg-label,
.goal-type,
.persona-tag {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #f0abfc;
    margin-bottom: 0.6rem;
}

.persona-card h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.35rem;
}

.persona-card > p:not(.persona-tag):not(.persona-mvp-label) {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.persona-card--primary {
    background: linear-gradient(150deg, rgba(217, 70, 239, 0.16), rgba(255, 255, 255, 0.05));
    border-color: rgba(240, 171, 252, 0.3);
}

.persona-mvp-label {
    margin: 0.9rem 0 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #fff;
}

.prd-doc .chip-list {
    padding-left: 0;
}

.prd-doc .chip-list li {
    margin: 0;
}

/* ---------- Journey phones ---------- */
.journey {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    counter-reset: none;
}

.prd-doc .journey {
    padding-left: 0;
}

.journey-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.journey-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 42%;
    right: -0.75rem;
    width: 0.5rem;
    height: 0.5rem;
    border-top: 2px solid rgba(240, 171, 252, 0.7);
    border-right: 2px solid rgba(240, 171, 252, 0.7);
    transform: rotate(45deg);
}

.phone {
    position: relative;
    width: 100%;
    max-width: 168px;
    aspect-ratio: 9 / 17;
    padding: 1.6rem 0.75rem 0.9rem;
    border-radius: 24px;
    background: #f7f3ff;
    border: 5px solid #2a1f4d;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.12);
    text-align: left;
    overflow: hidden;
}

.phone-notch {
    position: absolute;
    top: 6px;
    left: 50%;
    width: 38%;
    height: 9px;
    border-radius: 999px;
    background: #2a1f4d;
    transform: translateX(-50%);
}

.phone-title {
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.3;
    color: #2a1f4d;
    padding: 0.45rem 0.5rem;
    margin-bottom: 0.65rem;
    border-radius: 9px;
    background: #ece3ff;
    text-align: center;
}

.prd-doc .phone-list {
    padding-left: 0.95rem;
}

.prd-doc .phone-list li {
    font-size: 0.68rem;
    line-height: 1.4;
    color: #3b2f63;
    margin-bottom: 0.35rem;
}

.prd-doc .phone-list li::marker {
    color: #be185d;
}

.phone-map {
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    top: 3.9rem;
    bottom: 0.9rem;
    border-radius: 12px;
    background:
        linear-gradient(90deg, transparent 47%, rgba(255, 255, 255, 0.7) 47%, rgba(255, 255, 255, 0.7) 53%, transparent 53%),
        linear-gradient(0deg, transparent 30%, rgba(255, 255, 255, 0.7) 30%, rgba(255, 255, 255, 0.7) 35%, transparent 35%),
        linear-gradient(160deg, #d9ccf5, #c8b6ee);
    overflow: hidden;
}

.map-filter {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 0.55rem;
    font-weight: 700;
    color: #2a1f4d;
    padding: 2px 6px;
    border-radius: 6px;
    background: #fff;
}

.map-pin {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50% 50% 50% 0;
    background: #be185d;
    transform: rotate(-45deg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.map-listing {
    position: absolute;
    left: 5px;
    right: 5px;
    bottom: 5px;
    display: flex;
    gap: 6px;
    align-items: center;
    padding: 6px;
    border-radius: 9px;
    background: #2a1f4d;
}

.map-thumb {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: linear-gradient(135deg, #f0abfc, #d946ef);
}

.map-listing-text {
    font-size: 0.52rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.8);
}

.map-listing-text strong {
    display: block;
    font-size: 0.6rem;
    color: #fff;
}

.journey-label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.9rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: #fff;
}

.journey-label span {
    display: grid;
    place-items: center;
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 50%;
    font-size: 0.7rem;
    background: linear-gradient(135deg, #d946ef, #be185d);
}

.journey-desc {
    margin-top: 0.3rem;
    font-size: 0.8rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.68);
    max-width: 170px;
}

/* ---------- Goals ---------- */
.goal-card ol li {
    margin-bottom: 0.55rem;
}

/* ---------- Feature table ---------- */
.table-wrap {
    margin-top: 1.1rem;
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.feature-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
    font-size: 0.88rem;
}

.feature-table thead th {
    text-align: left;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #f0abfc;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.07);
}

.feature-table td,
.feature-table tbody th {
    padding: 0.85rem 1rem;
    vertical-align: top;
    text-align: left;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.55;
}

.feature-table tbody th {
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

.feature-table td:last-child {
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.82rem;
}

.feature-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
}

.feature-table ul {
    margin: 0;
}

.feature-table li strong {
    color: #fff;
    font-weight: 600;
}

.prio {
    display: inline-block;
    min-width: 2.6rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
    color: #fff;
}

.prio--p0 { background: linear-gradient(135deg, #d946ef, #be185d); box-shadow: 0 0 12px rgba(217, 70, 239, 0.45); }
.prio--p1 { background: #7e22ce; }
.prio--p2 { background: #2563eb; }
.prio--p3 { background: rgba(255, 255, 255, 0.2); }
.prio--later { background: transparent; border: 1px solid rgba(255, 255, 255, 0.35); color: rgba(255, 255, 255, 0.8); }

/* ---------- Metrics ---------- */
.metric-group-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 2rem;
}

.metric-group-title:first-of-type {
    margin-top: 0.5rem;
}

.metric-goal {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 0.65rem;
}

.metric-goal span {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #f0abfc;
    margin-bottom: 0.2rem;
}

.prd-footer {
    margin-top: 3rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    text-align: center;
}

.prd-footer .modal-cta {
    display: inline-block;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .prd-layout {
        grid-template-columns: minmax(0, 860px);
    }

    .prd-toc {
        display: none;
    }
}

@media (max-width: 760px) {
    .prd-topbar {
        padding: 0.8rem 1.1rem;
    }

    .home-link {
        display: none;
    }

    .prd-layout {
        padding: 1.25rem 0.75rem 3rem;
    }

    .prd-doc {
        padding: 1.75rem 1.25rem 2rem;
        border-radius: 20px;
    }

    .card-grid--2,
    .card-grid--3 {
        grid-template-columns: 1fr;
    }

    .journey {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 1.75rem;
    }

    .journey-step::after {
        display: none;
    }

    .mix-seg {
        font-size: 0.7rem;
    }
}

/* ---------- Print ---------- */
@media print {
    .background-animation,
    .prd-topbar,
    .prd-toc,
    .prd-footer,
    .cursor-dot {
        display: none !important;
    }

    body {
        background: #fff !important;
        animation: none !important;
    }

    .prd-layout {
        display: block;
        padding: 0;
    }

    .prd-doc {
        background: #1a1238;
        box-shadow: none;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
