/* ══════════════════════════════════════
   Pipeline Briefing Page
   Depends on styles.css for base tokens
══════════════════════════════════════ */

/* ══════════════
   Hero
══════════════ */
.pb-hero {
    padding: 10rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.pb-hero-orb {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 229, 127, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.pb-hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.pb-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--emerald);
    background: rgba(34, 229, 127, 0.07);
    border: 1px solid rgba(34, 229, 127, 0.2);
    padding: 0.45rem 1.2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
}

.pb-signal {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--emerald);
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

.pb-hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    letter-spacing: -0.035em;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--light-text) 0%, rgba(248, 250, 252, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pb-hero-sub {
    font-size: 1.2rem;
    color: var(--gray-text);
    line-height: 1.65;
}

/* ══════════════
   Main Grid
══════════════ */
.pb-main-section {
    padding: 5rem 0 8rem;
}

.pb-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: start;
}

/* ══════════════
   Value Column
══════════════ */
.pb-value-col {
    padding-top: 0.5rem;
    position: sticky;
    top: 8rem;
}

.pb-value-kicker {
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--emerald);
    opacity: 0.75;
    margin-bottom: 1.5rem;
}

.pb-value-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    margin-bottom: 2.5rem;
}

.pb-value-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    font-size: 1rem;
    color: var(--light-text);
    line-height: 1.55;
    font-weight: 500;
}

.pb-check {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 50%;
    background: rgba(34, 229, 127, 0.1);
    border: 1px solid rgba(34, 229, 127, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald);
    margin-top: 1px;
}

.pb-value-note {
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
    padding: 1.25rem;
    background: rgba(34, 229, 127, 0.04);
    border: 1px solid rgba(34, 229, 127, 0.12);
    border-radius: 12px;
}

.pb-vn-signal {
    width: 6px;
    height: 6px;
    min-width: 6px;
    border-radius: 50%;
    background: var(--emerald);
    margin-top: 6px;
    animation: pulse 2s infinite;
}

.pb-value-note p {
    font-size: 0.85rem;
    color: var(--gray-text);
    line-height: 1.65;
}

/* ══════════════
   Form Column
══════════════ */
.pb-form-col {
    position: relative;
}

.pb-form {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 32px 72px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.pb-form-header {
    padding: 1.25rem 2rem;
    background: rgba(34, 229, 127, 0.04);
    border-bottom: 1px solid rgba(34, 229, 127, 0.1);
}

.pb-form-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--emerald);
    opacity: 0.8;
}

.pb-form-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pb-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pb-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--light-text);
    opacity: 0.75;
    letter-spacing: 0.02em;
}

.pb-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    padding: 0.875rem 1.1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--light-text);
    transition: all 0.25s ease;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.pb-input::placeholder {
    color: var(--gray-text);
    opacity: 0.45;
}

.pb-input:focus {
    border-color: rgba(34, 229, 127, 0.4);
    background: rgba(34, 229, 127, 0.03);
    box-shadow: 0 0 0 3px rgba(34, 229, 127, 0.07);
}

.pb-input--error {
    border-color: rgba(239, 68, 68, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.07) !important;
}

/* Select */
.pb-select-wrap {
    position: relative;
}

.pb-select {
    cursor: pointer;
    padding-right: 2.5rem;
}

.pb-select-arrow {
    position: absolute;
    right: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-text);
    opacity: 0.5;
    pointer-events: none;
}

.pb-select option {
    background: var(--darker-bg);
    color: var(--light-text);
}

/* Submit */
.pb-submit {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
    padding: 1.1rem 2rem;
    font-size: 1rem;
}

.pb-form-footnote {
    font-size: 0.75rem;
    color: var(--gray-text);
    opacity: 0.5;
    text-align: center;
    line-height: 1.5;
}

/* ══════════════
   Success State
══════════════ */
.pb-success {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(34, 229, 127, 0.2);
    border-radius: 20px;
    padding: 4rem 2.5rem;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    box-shadow: 0 0 0 1px rgba(34, 229, 127, 0.06), 0 32px 72px rgba(0, 0, 0, 0.35);
}

.pb-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(34, 229, 127, 0.1);
    border: 1px solid rgba(34, 229, 127, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald);
}

.pb-success-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--light-text);
    letter-spacing: -0.02em;
}

.pb-success-body {
    font-size: 0.975rem;
    color: var(--gray-text);
    line-height: 1.7;
    max-width: 380px;
}

.pb-success-link {
    font-size: 0.875rem;
    color: var(--gray-text);
    text-decoration: none;
    opacity: 0.6;
    transition: all 0.2s ease;
    font-weight: 500;
}

.pb-success-link:hover {
    color: var(--emerald);
    opacity: 1;
}

/* ══════════════
   Closing Line
══════════════ */
.pb-close {
    padding: 3rem 0 6rem;
    text-align: center;
}

.pb-close-line {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--emerald), var(--emerald-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.65;
}

/* ══════════════
   Responsive
══════════════ */
@media (max-width: 1024px) {
    .pb-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    .pb-value-col {
        position: static;
    }
    .pb-hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .pb-hero {
        padding: 8rem 0 3rem;
    }
    .pb-hero-title {
        font-size: 2.5rem;
    }
    .pb-hero-sub {
        font-size: 1rem;
    }
    .pb-form-body {
        padding: 1.5rem;
    }
    .pb-main-section {
        padding: 3rem 0 5rem;
    }
}

@media (max-width: 480px) {
    .pb-hero-title      { font-size: 2rem; }
    .pb-value-list li   { font-size: 0.925rem; }
}

/* ══════════════════════════════════════
   Loading State
══════════════════════════════════════ */
.pb-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 0;
}

.pb-loading-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.pb-loading-ring {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(34, 229, 127, 0.15);
    border-top-color: var(--emerald);
    animation: pbr-spin 0.9s linear infinite;
}

@keyframes pbr-spin { to { transform: rotate(360deg); } }

.pb-loading-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-text);
    letter-spacing: 0.04em;
}

/* ══════════════════════════════════════
   Briefing Document
══════════════════════════════════════ */
.pb-briefing-section {
    padding: 0 0 6rem;
}

.pbr-doc {
    background: rgba(6, 10, 15, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* ── Document header ── */
.pbr-doc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2.5rem;
    background: rgba(34, 229, 127, 0.05);
    border-bottom: 1px solid rgba(34, 229, 127, 0.12);
    flex-wrap: wrap;
    gap: 1rem;
}

.pbr-doc-brand {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.pbr-doc-signal {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--emerald);
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

.pbr-doc-brand-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--emerald);
    opacity: 0.8;
}

.pbr-doc-business {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--light-text);
    letter-spacing: -0.015em;
    margin-top: 0.1rem;
}

.pbr-doc-meta {
    text-align: right;
}

.pbr-doc-date {
    font-size: 0.78rem;
    color: var(--gray-text);
    font-weight: 500;
}

.pbr-doc-industry {
    font-size: 0.72rem;
    color: var(--emerald);
    font-weight: 600;
    opacity: 0.65;
    margin-top: 0.15rem;
    text-transform: capitalize;
}

/* ── Section wrapper ── */
.pbr-section {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
}

.pbr-section--final {
    border-bottom: none;
}

.pbr-section-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gray-text);
    opacity: 0.6;
    margin-bottom: 2rem;
}

.pbr-section-num {
    font-size: 0.62rem;
    font-weight: 800;
    color: var(--emerald);
    opacity: 0.5;
    letter-spacing: 0.1em;
}

/* ── Section 1: Priority Snapshot ── */
.pbr-snapshot-lead {
    font-size: 1.1rem;
    color: var(--light-text);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.pbr-em {
    color: var(--emerald);
    font-weight: 700;
}

.pbr-snapshot-sub {
    font-size: 0.9rem;
    color: var(--gray-text);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.pbr-impact-num {
    font-size: 2.75rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1;
    background: linear-gradient(135deg, var(--emerald), var(--emerald-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

.pbr-risk-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.875rem 1.1rem;
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 10px;
    font-size: 0.875rem;
    color: var(--gray-text);
    line-height: 1.55;
}

/* ── Section 2: Opportunities ── */
.pbr-opps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pbr-opp {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.pbr-opp:hover {
    border-color: rgba(34, 229, 127, 0.15);
}

.pbr-opp-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
    gap: 0.75rem;
}

.pbr-opp-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--light-text);
}

.pbr-opp-badges {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.pbr-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    letter-spacing: 0.04em;
}

.pbr-badge--val      { background: rgba(34,229,127,0.1); color: var(--emerald); border: 1px solid rgba(34,229,127,0.2); }
.pbr-badge--hot      { background: rgba(239,68,68,0.1); color: #f87171; border: 1px solid rgba(239,68,68,0.25); }
.pbr-badge--engaged  { background: rgba(34,229,127,0.07); color: var(--emerald); border: 1px solid rgba(34,229,127,0.18); }
.pbr-badge--untouched{ background: rgba(148,163,184,0.08); color: var(--gray-text); border: 1px solid rgba(148,163,184,0.15); }
.pbr-badge--cooling  { background: rgba(245,158,11,0.08); color: #fbbf24; border: 1px solid rgba(245,158,11,0.2); }

.pbr-opp-rows {
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pbr-opp-row {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 1rem;
    align-items: start;
}

.pbr-opp-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-text);
    opacity: 0.55;
    padding-top: 0.1rem;
}

.pbr-opp-val {
    font-size: 0.9rem;
    color: var(--gray-text);
    line-height: 1.6;
}

.pbr-opp-row--quote .pbr-opp-quote {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--light-text);
    line-height: 1.6;
    padding: 0.75rem 1rem;
    background: rgba(34, 229, 127, 0.04);
    border-left: 2px solid rgba(34, 229, 127, 0.3);
    border-radius: 0 8px 8px 0;
}

.pbr-opp-row--outcome .pbr-opp-outcome {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--emerald);
}

/* ── Section 3: Missed Revenue ── */
.pbr-bullet-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.pbr-bullet-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--gray-text);
    line-height: 1.6;
}

.pbr-bullet-dot {
    width: 5px;
    height: 5px;
    min-width: 5px;
    border-radius: 50%;
    background: var(--emerald);
    opacity: 0.5;
    margin-top: 0.5em;
}

/* ── Section 4: Actions ── */
.pbr-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pbr-action {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--light-text);
    line-height: 1.5;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.pbr-action:hover {
    background: rgba(34, 229, 127, 0.04);
    border-color: rgba(34, 229, 127, 0.15);
}

.pbr-action-num {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--emerald);
    opacity: 0.5;
    flex-shrink: 0;
}

/* ── Section 5: Revenue Projection ── */
.pbr-proj-sub {
    font-size: 0.9rem;
    color: var(--gray-text);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.pbr-proj-num {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1;
    background: linear-gradient(135deg, var(--emerald), var(--emerald-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

.pbr-confidence-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.pbr-conf-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gray-text);
    opacity: 0.55;
}

.pbr-conf-val {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.pbr-conf-moderate    { background: rgba(245,158,11,0.1); color: #fbbf24; border: 1px solid rgba(245,158,11,0.2); }
.pbr-conf-high        { background: rgba(34,229,127,0.1); color: var(--emerald); border: 1px solid rgba(34,229,127,0.2); }
.pbr-conf-very-high   { background: rgba(34,229,127,0.14); color: #00ffaa; border: 1px solid rgba(34,229,127,0.3); }

.pbr-proj-reason {
    font-size: 0.875rem;
    color: var(--gray-text);
    line-height: 1.7;
}

/* ── Document footer ── */
.pbr-doc-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.01);
    flex-wrap: wrap;
    gap: 1rem;
}

.pbr-footer-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-text);
    opacity: 0.45;
}

.pbr-footer-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.pbr-footer-cta {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--emerald);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.pbr-footer-cta:hover { opacity: 0.75; }

.pbr-footer-link {
    font-size: 0.8rem;
    color: var(--gray-text);
    text-decoration: none;
    opacity: 0.55;
    transition: opacity 0.2s ease;
}

.pbr-footer-link:hover { opacity: 1; }

/* ── Briefing responsive ── */
@media (max-width: 768px) {
    .pbr-doc-header      { padding: 1.25rem 1.5rem; }
    .pbr-section         { padding: 2rem 1.5rem; }
    .pbr-impact-num      { font-size: 2rem; }
    .pbr-proj-num        { font-size: 2.25rem; }
    .pbr-opp-row         { grid-template-columns: 1fr; gap: 0.35rem; }
    .pbr-opp-top         { flex-direction: column; align-items: flex-start; }
    .pbr-doc-header      { flex-direction: column; align-items: flex-start; }
    .pbr-doc-meta        { text-align: left; }
    .pbr-doc-footer      { flex-direction: column; align-items: flex-start; }
}
