/* ============================================================
   partner-page.css — Specific styles for the Partner Program
   ============================================================ */

:root {
  --comp-line: rgba(255,255,255,.08);
  --comp-line2: rgba(255,255,255,.05);
  --comp-text: #eef5ff;
  --comp-muted: #9db0c4;
  --comp-orange: #ff6600;
  --comp-blue: #58b7ff;
  --comp-shadow: 0 28px 80px rgba(0,0,0,.42);
}

/* ── Badges & Utility ─────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--comp-line); background: rgba(255,255,255,.03); color: #d8e4f0; margin-bottom: 10px; }
.badge.orange { background: rgba(255,102,0,.10); border-color: rgba(255,102,0,.26); color: #ffd8bf; }
.badge.blue { background: rgba(88,183,255,.10); border-color: rgba(88,183,255,.24); color: #d4efff; }
.badge.green { background: rgba(99,214,165,.10); border-color: rgba(99,214,165,.24); color: #d8ffee; }
.badge.purple { background: rgba(169,140,255,.10); border-color: rgba(169,140,255,.24); color: #e2d8ff; }

/* ── Partner Tier Comparison Cards ────────────────────────── */
.revenue-card {
  border-radius: 24px; padding: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid var(--comp-line); box-shadow: var(--comp-shadow);
  height: 100%;
}
.revenue-card .price-badge {
  display: block; font-size: 38px; font-weight: 900;
  letter-spacing: -.04em; line-height: 1; margin: 10px 0 4px;
}
.revenue-card .price-badge.orange { color: var(--comp-orange); }
.revenue-card .price-badge.blue   { color: var(--comp-blue); }
.revenue-card .sub-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: .1em;
  font-weight: 800; color: var(--comp-muted); margin: 16px 0 4px; display: block;
}
.revenue-card ul { margin: 6px 0 0 16px; padding: 0; }
.revenue-card li { margin: 5px 0; color: var(--comp-muted); font-size: 14px; }

/* ── Pull Quote ───────────────────────────────────────────── */
.pp-hero-quote {
  border-left: 3px solid var(--comp-orange);
  padding: 18px 22px;
  border-radius: 0 18px 18px 0;
  background: rgba(255,102,0,.06);
  position: relative; overflow: hidden;
  margin-top: 24px;
}
.pp-hero-quote p {
  font-size: 18px !important;
  line-height: 1.45 !important;
  letter-spacing: -.02em;
  margin: 0 0 6px !important;
  color: var(--comp-text);
}
.pp-hero-quote small { color: var(--comp-muted); font-size: 12px; }

/* ── Timeline ─────────────────────────────────────────────── */
.timeline { display: grid; gap: 14px; margin-top: 32px; }
.timeline-card { 
  border-radius: 20px; padding: 16px 18px; display: grid; grid-template-columns: 120px 1fr; gap: 16px; 
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015)); 
  border: 1px solid var(--comp-line2); 
}
.phase { font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: #ffd8bf; }

@media (max-width:760px) {
  .revenue-card { padding: 20px 18px; }
  .timeline-card { grid-template-columns: 1fr; }
}

/* ── Restored Company Layout Core Architecture ── */
.company-wrap {
    position: relative;
    width: 100%;
}

.company-wrap .hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
    align-items: start;
    padding: 120px 0 64px;
}
@media (max-width: 1024px) { .company-wrap .hero-grid { grid-template-columns: 1fr; } }

.company-wrap .glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 42px;
}

.company-wrap .right-stack {
    display: grid;
    gap: 24px;
}

/* ── Chapter & Typography Structural Rules ── */
.company-wrap .chapter {
    display: grid;
    grid-template-columns: 1fr;
    gap: 42px;
    padding: 64px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.company-wrap .chapter-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}
@media (max-width: 768px) { .company-wrap .chapter-head { flex-direction: column; } }

.company-wrap .chapter-code {
    font-family: monospace;
    color: var(--orange, #FF6600);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.company-wrap .chapter-body {
    width: 100%;
}

/* ── Interactive Pulse Board Engine ── */
.company-wrap .pulse-board {
    position: relative;
    height: 320px;
    background: radial-gradient(circle at 50% 50%, rgba(25, 47, 86, 0.2), transparent 70%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-wrap .pulse-center {
    text-align: center;
    font-weight: 800;
    color: #fff;
    z-index: 2;
    background: var(--surface, #0d1527);
    padding: 16px 24px;
    border-radius: 16px;
    border: 1px solid var(--orange, #FF6600);
    box-shadow: 0 0 30px rgba(255, 102, 0, 0.2);
}

.company-wrap .node {
    position: absolute;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    background: rgba(255,255,255,0.05);
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08);
}
.company-wrap .node.n1 { top: 15%; left: 15%; }
.company-wrap .node.n2 { top: 15%; right: 15%; }
.company-wrap .node.n3 { bottom: 15%; left: 15%; }
.company-wrap .node.n4 { bottom: 15%; right: 15%; }
.company-wrap .node.n5 { top: 45%; right: 8%; }

/* ==========================================================================
   ── Restored Internal Component Block Engine ──
   ========================================================================== */

/* 1. Hero Metrics System */
.company-wrap .metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 32px;
}
.company-wrap .metric {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
}
.company-wrap .metric .k {
    font-size: 24px;
    font-weight: 800;
    color: var(--orange, #FF6600);
    margin-bottom: 4px;
}
.company-wrap .metric .l {
    font-family: monospace;
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* 1.5 Generic Card Components */
.company-wrap .glass, .company-wrap .panel, .company-wrap .metric, .company-wrap .mini, 
.company-wrap .toc-card, .company-wrap .signal-card, .company-wrap .timeline-card, 
.company-wrap .flow-card, .company-wrap .cta-card {
    background: linear-gradient(180deg, rgba(14,26,40,.92), rgba(8,17,28,.96));
    border: 1px solid var(--comp-line, rgba(255,255,255,0.08)); 
    box-shadow: var(--comp-shadow, 0 10px 30px rgba(0,0,0,0.2));
}

.company-wrap .grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.company-wrap .grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.company-wrap .grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }

.company-wrap .panel, .company-wrap .signal-card, .company-wrap .timeline-card { border-radius: 24px; padding: 20px; }
.company-wrap .signal-card, .company-wrap .timeline-card { background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.02)); box-shadow: none; }

.company-wrap .badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--comp-line, rgba(255,255,255,0.08)); background: rgba(255,255,255,.03); color: #d8e4f0; margin-bottom: 10px; }
.company-wrap .badge.orange { background: rgba(255,102,0,.10); border-color: rgba(255,102,0,.26); color: #ffd8bf; }
.company-wrap .badge.blue { background: rgba(88,183,255,.10); border-color: rgba(88,183,255,.24); color: #d4efff; }
.company-wrap .badge.green { background: rgba(99,214,165,.10); border-color: rgba(99,214,165,.24); color: #d8ffee; }

/* 2. TOC & CTA Cards Framework */
.company-wrap .toc-card,
.company-wrap .cta-card {
    background: rgba(25, 47, 86, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 32px;
}
.company-wrap .cta-card {
    height: auto;
    margin-top: 48px;
    background: linear-gradient(135deg, rgba(255, 102, 0, 0.08), rgba(25, 47, 86, 0.1));
    border-color: rgba(255, 102, 0, 0.2);
}

/* 3. Mini Feature Grid (TOC Internal) */
.company-wrap .mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 20px 0;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.company-wrap .mini {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.company-wrap .mini strong {
    font-size: 14px;
    color: #fff;
}
.company-wrap .mini span {
    font-size: 12px;
    color: var(--muted);
}

/* 4. Navigation Chips & TOC Jump Links */
.company-wrap .chip-nav,
.company-wrap .toc-list {
    display: flex;
    gap: 10px;
}
.company-wrap .toc-list {
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}
.company-wrap .chip-nav a,
.company-wrap .toc-list a {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s ease;
}
.company-wrap .chip-nav a {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 16px;
    border-radius: 999px;
}
.company-wrap .chip-nav a:hover,
.company-wrap .toc-list a:hover {
    color: var(--orange, #FF6600);
}

/* 5. Section Headers Alignment */
.company-wrap .section {
    padding: 80px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.company-wrap .section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 48px;
    gap: 24px;
}
@media (max-width: 760px) {
    .company-wrap .section-head {
        flex-direction: column;
        align-items: flex-start;
    }
}
.company-wrap .section-head p {
    color: var(--muted);
    margin-top: 8px;
    font-size: 16px;
}

/* 6. Card Specific Enhancements & Overrides */
.company-wrap .panel {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: none !important;
    padding: 28px !important;
    border-radius: 20px !important;
}
.company-wrap .signal-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 28px;
}

/* 7. Button Overrides */
.company-wrap .btn.primary {
    background: linear-gradient(90deg, #FF6600 0%, #FF9900 100%) !important;
    box-shadow: 0 4px 20px rgba(255, 102, 0, 0.25) !important;
    border: none !important;
    color: #fff !important;
}
.company-wrap .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 102, 0, 0.4) !important;
}

/* 8. Global Responsive Media Queries Layouts */
@media (max-width: 1160px) {
    .company-wrap .metrics {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 760px) {
    .company-wrap .metrics {
        grid-template-columns: 1fr;
    }
    .company-wrap .toc-card,
    .company-wrap .cta-card {
        padding: 24px;
    }
    .company-wrap .mini-grid {
        grid-template-columns: 1fr;
    }
}
/* 9. Story Content Typography */
.company-wrap .story-panel p {
    color: var(--muted, rgba(232, 239, 255, 0.72));
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 16px;
}
.company-wrap .story-panel p:last-child,
.company-wrap .story-panel ul:last-child {
    margin-bottom: 0;
}
.company-wrap .story-panel p.lead {
    color: #fff;
    font-size: 18px;
    font-weight: 500;
}
.company-wrap .story-panel ul {
    color: var(--muted, rgba(232, 239, 255, 0.72));
    font-size: 16px;
    line-height: 1.8;
    padding-left: 24px;
    margin-bottom: 16px;
    list-style-type: disc;
}
.company-wrap .story-panel ul li {
    margin-bottom: 8px;
}
.company-wrap .story-panel ul li:last-child {
    margin-bottom: 0;
}
.company-wrap .story-panel .italic {
    font-style: italic;
}

@media (max-width: 760px) {
    .company-wrap .story-panel p,
    .company-wrap .story-panel ul {
        font-size: 15px;
        line-height: 1.7;
    }
    .company-wrap .story-panel p.lead {
        font-size: 16px;
    }
}
