/* ─────────────────────────────────────────────
   proposal/style.css  —  Visual-First Edition
───────────────────────────────────────────── */

:root {
    --bg: #09090e;
    --surface: #111118;
    --surface-2: #1c1c28;
    --border: rgba(255, 255, 255, 0.07);
    --text: #f0f0f7;
    --muted: #7a7a96;
    --problem: #ef4444;
    --solution: #10b981;
    --price: #f59e0b;
    --radius: 18px;
    --radius-sm: 10px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ── colour tokens ─────────────────────────── */
.problem-c {
    color: var(--problem);
}

.solution-c {
    color: var(--solution);
}

.price-c {
    color: var(--price);
}

.solution-bg {
    background: linear-gradient(135deg, #059669, #10b981);
}

.solution-c-bg {
    background: rgba(16, 185, 129, 0.15);
    color: var(--solution);
}

/* ── HEADER ────────────────────────────────── */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 32px;
    background: rgba(9, 9, 14, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

.badge {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--surface-2);
    border: 1px solid var(--border);
    padding: 4px 12px;
    border-radius: 100px;
}

/* ── HERO ──────────────────────────────────── */
.hero {
    max-width: 860px;
    margin: 0 auto;
    padding: 72px 24px 0;
    text-align: center;
}

.eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
}

.client-name {
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 1.05;
    background: linear-gradient(135deg, #fff 0%, var(--muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.meta {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 40px;
}

/* ── Framework progress bar ────────────────── */
.framework-bar {
    display: flex;
    height: 10px;
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 10px;
    background: var(--surface-2);
}

.fb-seg {
    height: 100%;
    transition: flex 0.5s ease;
    position: relative;
}

.fb-problem {
    background: linear-gradient(90deg, #dc2626, #ef4444);
}

.fb-solution {
    background: linear-gradient(90deg, #059669, #10b981);
}

.fb-price {
    background: linear-gradient(90deg, #d97706, #f59e0b);
}

.framework-legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 56px;
}

.leg-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.leg-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.leg-dot.problem-c {
    background: var(--problem);
}

.leg-dot.solution-c {
    background: var(--solution);
}

.leg-dot.price-c {
    background: var(--price);
}

/* ── BLOCKS ────────────────────────────────── */
.block {
    max-width: 880px;
    margin: 0 auto;
    padding: 64px 24px;
    border-top: 1px solid var(--border);
}

.part-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 32px;
}

.problem-tag {
    background: rgba(239, 68, 68, 0.12);
    color: var(--problem);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.solution-tag {
    background: rgba(16, 185, 129, 0.12);
    color: var(--solution);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.price-tag {
    background: rgba(245, 158, 11, 0.12);
    color: var(--price);
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.tag-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.section-head {
    margin-bottom: 48px;
}

.section-head h2 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 14px;
}

.section-sub {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 560px;
}

/* ── Animated stat counters ────────────────── */
.stat-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 48px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px 24px;
    text-align: center;
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-num {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
    display: inline;
}

.stat-pct {
    font-size: 1.1rem;
    font-weight: 700;
    display: inline;
    margin-left: 3px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 10px;
    line-height: 1.45;
}

/* ── Pain section label ─────────────────────── */
.pain-section-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    text-align: center;
    margin-bottom: 20px;
}

/* ── Pain cards ────────────────────────────── */
.pain-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 48px;
}

.pain-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pain-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(var(--accent-rgb, 239, 68, 68), 0.04);
    pointer-events: none;
}

.pain-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.pain-icon {
    margin-bottom: 16px;
}

.pain-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 10px;
}

.pain-card p {
    font-size: 0.875rem;
    color: var(--muted);
    margin-bottom: 16px;
    line-height: 1.6;
}

.pain-quote {
    font-size: 0.82rem;
    font-style: italic;
    color: rgba(240, 240, 247, 0.45);
    border-left: 2px solid var(--accent, var(--problem));
    padding-left: 10px;
    line-height: 1.5;
}

/* ── Before / After comparison ──────────────── */
.compare-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 40px;
}

.compare-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 20px;
}

.compare-grid {
    display: flex;
    gap: 16px;
    align-items: center;
}

.compare-side {
    flex: 1;
    border-radius: var(--radius-sm);
    padding: 20px;
}

.compare-before {
    background: rgba(239, 68, 68, 0.07);
    border: 1px solid rgba(239, 68, 68, 0.18);
}

.compare-after {
    background: rgba(16, 185, 129, 0.07);
    border: 1px solid rgba(16, 185, 129, 0.18);
}

.compare-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.compare-icon {
    font-size: 1.2rem;
}

.compare-arrow {
    font-size: 1.5rem;
    color: var(--muted);
    flex-shrink: 0;
    text-align: center;
}

.compare-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.compare-list li {
    font-size: 0.82rem;
    padding: 6px 10px;
    border-radius: 8px;
}

.compare-list li.bad {
    color: rgba(240, 240, 247, 0.7);
    background: rgba(239, 68, 68, 0.08);
}

.compare-list li.good {
    color: rgba(240, 240, 247, 0.9);
    background: rgba(16, 185, 129, 0.1);
}

.compare-list li.dead {
    text-decoration: line-through;
    opacity: 0.55;
}

/* ── Cost bars ─────────────────────────────── */
.cost-visual {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 40px;
}

.cost-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 24px;
}

.cost-bars {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cost-bar-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cost-bar-label {
    font-size: 0.82rem;
    color: var(--muted);
    width: 210px;
    flex-shrink: 0;
    text-align: right;
}

.cost-bar-track {
    flex: 1;
    height: 8px;
    background: var(--surface-2);
    border-radius: 100px;
    overflow: hidden;
}

.cost-bar-fill {
    height: 100%;
    border-radius: 100px;
    transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    width: 0%;
}

.cost-bar-val {
    font-size: 0.8rem;
    font-weight: 700;
    width: 64px;
    flex-shrink: 0;
}

/* ── Problem close quote ────────────────────── */
.problem-close {
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.65;
    color: rgba(240, 240, 247, 0.6);
    border-left: 3px solid var(--problem);
    padding-left: 20px;
    max-width: 620px;
    margin-top: 40px;
}

/* ── SOLUTION section ──────────────────────── */
.solution-section {
    background: var(--surface);
}

/* flow */
.flow-wrap {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 40px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius);
    overflow: hidden;
}

.flow-connector {
    padding: 0 32px;
    background: rgba(16, 185, 129, 0.05);
}

.flow-step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 28px 32px;
    background: rgba(16, 185, 129, 0.04);
    transition: background 0.2s ease;
}

.flow-step:hover {
    background: rgba(16, 185, 129, 0.09);
}

.flow-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.flow-line {
    display: none;
}

.flow-content {
    flex: 1;
}

.flow-num {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--solution);
    margin-bottom: 4px;
}

.flow-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.flow-content p {
    font-size: 0.875rem;
    color: var(--muted);
    margin-bottom: 12px;
    line-height: 1.6;
}

.flow-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.73rem;
    font-weight: 600;
}

/* feature grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.feature-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    text-align: center;
    transition: transform 0.2s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
}

.feature-icon {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.feature-name {
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.feature-desc {
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.4;
}

/* ── PRICE section ─────────────────────────── */
.price-section {}

/* cost compare widget */
.cost-compare {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 32px;
    margin-bottom: 32px;
}

.cc-side {
    flex: 1;
    text-align: center;
    padding: 20px;
    border-radius: var(--radius-sm);
}

.cc-bad {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.cc-good {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.cc-emoji {
    font-size: 2rem;
    margin-bottom: 8px;
}

.cc-label {
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
}

.cc-value {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
}

.cc-bad .cc-value {
    color: var(--problem);
}

.cc-good .cc-value {
    color: var(--solution);
}

.cc-sub {
    font-size: 0.78rem;
    color: var(--muted);
}

.cc-vs {
    font-size: 1rem;
    font-weight: 700;
    color: var(--muted);
    flex-shrink: 0;
}

/* pricing cards */
.price-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.price-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    transition: transform 0.2s ease;
}

.price-card:hover {
    transform: translateY(-4px);
}

.price-card--featured {
    border-color: var(--price);
    background: rgba(245, 158, 11, 0.06);
    box-shadow: 0 0 40px rgba(245, 158, 11, 0.1);
}

.pc-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--price);
    color: #000;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 4px 14px;
    border-radius: 100px;
    white-space: nowrap;
}

.pc-tier {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.pc-price {
    font-size: 2.4rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
}

.pc-price span {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--muted);
    letter-spacing: 0;
}

.pc-saves {
    font-size: 0.8rem;
    color: var(--muted);
    background: var(--surface-2);
    padding: 5px 10px;
    border-radius: 8px;
    display: inline-block;
}

.pc-features {
    list-style: none;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pc-features li {
    font-size: 0.85rem;
    color: var(--muted);
}

.pc-btn {
    display: block;
    text-align: center;
    padding: 11px 0;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.pc-btn:hover {
    transform: scale(1.03);
    opacity: 0.9;
}

.pc-btn-primary {
    background: var(--price);
    color: #000;
}

.pc-btn-ghost {
    background: var(--surface-2);
    color: var(--text);
    border: 1px solid var(--border);
}

/* ── CLOSE ─────────────────────────────────── */
.close-section {
    border-top: 1px solid var(--border);
    padding: 80px 24px;
    text-align: center;
}

.close-inner {
    max-width: 460px;
    margin: 0 auto;
}

.close-emoji {
    font-size: 3rem;
    margin-bottom: 20px;
}

.close-section h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    margin-bottom: 10px;
}

.close-section p {
    color: var(--muted);
    margin-bottom: 24px;
}

.close-btn {
    display: inline-block;
    background: linear-gradient(135deg, #7C3AED, #4F46E5);
    color: #fff;
    text-decoration: none;
    padding: 14px 36px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 36px rgba(124, 58, 237, 0.4);
}

/* ── FOOTER ────────────────────────────────── */
.footer {
    text-align: center;
    padding: 22px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.75rem;
}

/* ── RESPONSIVE ────────────────────────────── */
@media (max-width: 700px) {
    .header {
        padding: 12px 16px;
    }

    .hero {
        padding: 48px 16px 0;
    }

    .block {
        padding: 48px 16px;
    }

    .stat-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .pain-grid {
        grid-template-columns: 1fr;
    }

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

    .price-grid {
        grid-template-columns: 1fr;
    }

    .compare-grid {
        flex-direction: column;
    }

    .compare-arrow {
        transform: rotate(90deg);
    }

    .cost-compare {
        flex-direction: column;
    }

    .cost-bar-label {
        width: 140px;
        font-size: 0.75rem;
    }

    .flow-step {
        padding: 20px 16px;
        gap: 14px;
    }

    .flow-circle {
        width: 40px;
        height: 40px;
    }

    .framework-legend {
        gap: 14px;
        flex-wrap: wrap;
    }
}