/* =========================================================
   Nour Public Site — Why Noor (value / proof)
   ========================================================= */

.nv {
    --nv-green: #059669;
    --nv-amber: #D97706;
    color: var(--ink);
}

.nv .num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.nv-wrap { max-width: 1040px; }

/* ---- Header ---- */
.nv-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.6rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-label);
}

.nv-eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
}

.nv-head h1 { text-wrap: balance; }
.nv-lede { margin: 0 auto !important; }

/* ---- Proof card ---- */
.nv-hero {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 2.75rem;
    padding: 2.5rem 2.75rem;
    margin-bottom: 1.25rem;
    background:
        radial-gradient(26rem 14rem at 100% 0%, rgba(5, 150, 105, 0.08), transparent 70%),
        #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.nv-heronum {
    font-size: clamp(3.5rem, 2rem + 5vw, 5.75rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: var(--nv-green);
    white-space: nowrap;
}

.nv-heronum small { font-size: 0.4em; font-weight: 700; }

.nv-herolabel {
    margin-top: 0.65rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-label);
}

.nv-hero h2 {
    font-size: clamp(1.1rem, 0.95rem + 0.5vw, 1.35rem);
    font-weight: 800;
    line-height: 1.6;
    color: var(--ink);
    margin: 0 0 0.6rem;
}

.nv-hero p { margin: 0; font-size: 1rem; line-height: 1.9; color: var(--text-muted); }

.nv-bar-track {
    display: flex;
    gap: 3px;
    height: 14px;
    margin-top: 1.25rem;
    border-radius: 999px;
    overflow: hidden;
    background: var(--bg-subtle);
}

.nv-seg-g { background: linear-gradient(90deg, #10B981, var(--nv-green)); }
.nv-seg-a { background: linear-gradient(90deg, #F59E0B, var(--nv-amber)); }

.nv-key {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    margin-top: 0.85rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.nv-k { display: inline-flex; align-items: center; gap: 0.45rem; }
.nv-dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }

/* ---- Tiles ---- */
.nv-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.nv-tile {
    padding: 1.4rem 1.5rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.nv-tile:hover { transform: translateY(-3px); border-color: var(--primary-100); box-shadow: var(--shadow-md); }

.nv-tile-v {
    font-size: clamp(1.45rem, 1.1rem + 0.9vw, 1.9rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.nv-tile-l { margin-top: 0.4rem; font-size: 0.9rem; line-height: 1.55; color: var(--text-label); }

/* ---- Section headings (h3 + sub act as the section title) ---- */
.nv-sec h3 {
    font-size: clamp(1.5rem, 1.2rem + 0.9vw, 1.95rem);
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
    color: var(--ink);
    margin: 0 0 0.6rem;
}

.nv-sub {
    max-width: 40rem;
    margin: 0 auto 2.5rem;
    font-size: 1.02rem;
    line-height: 1.8;
    text-align: center;
    color: var(--text-muted);
}

/* ---- Growth chart ---- */
.nv-chart {
    padding: 2rem 2rem 1.25rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.nv-bars {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 240px;
    padding-bottom: 2px;
    border-bottom: 1px solid var(--border);
    background: repeating-linear-gradient(0deg, transparent 0 59px, var(--border-soft) 59px 60px);
}

.nv-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }

.nv-bar {
    width: 100%;
    max-width: 56px;
    border-radius: 8px 8px 2px 2px;
    background: linear-gradient(180deg, #4253B8, var(--primary));
    transition: filter 0.2s var(--ease);
}

.nv-col:last-child .nv-bar { background: linear-gradient(180deg, #FBBF24, var(--accent)); }
.nv-col:hover .nv-bar { filter: brightness(1.12); }

.nv-barv { margin-bottom: 0.4rem; font-size: 0.82rem; font-weight: 700; color: var(--text-secondary); white-space: nowrap; }
.nv-barx { display: flex; gap: 10px; margin-top: 0.6rem; }
.nv-barx span { flex: 1; text-align: center; font-size: 0.82rem; color: var(--text-label); }

.nv table { width: 100%; margin-top: 0.85rem; border-collapse: collapse; font-size: 0.88rem; }
.nv table th, .nv table td { padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--border-soft); text-align: right; }
.nv table th { color: var(--text-label); font-weight: 700; }

.nv details > summary {
    margin-top: 0.85rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
}

/* ---- Simulator ---- */
.nv-sim {
    padding: 2rem 2.25rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.nv-simin {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-soft);
}

.nv-simin label { font-size: 1rem; font-weight: 800; color: var(--ink); }

.nv input[type=number] {
    width: 130px;
    min-height: 48px;
    padding: 0.6rem 0.9rem;
    font: inherit;
    font-size: 1.15rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    text-align: center;
    color: var(--ink);
    background: var(--bg-page);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
}

.nv input[type=number]:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(36, 48, 143, 0.12); }
.nv input[type=range] { flex: 1; min-width: 180px; accent-color: var(--primary); }

.nv-simout { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.85rem; }

.nv-out {
    padding: 1.15rem 1.25rem;
    background: var(--bg-page);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
}

.nv-outv { font-size: clamp(1.2rem, 1rem + 0.7vw, 1.55rem); font-weight: 800; letter-spacing: -0.02em; }
.nv-outl { margin-top: 0.3rem; font-size: 0.85rem; color: var(--text-label); }
.nv-g { color: var(--nv-green); }
.nv-i { color: var(--primary); }

/* ---- Trust ---- */
.nv-trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }

.nv-tc {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto 1fr;
    column-gap: 1.1rem;
    padding: 1.6rem 1.75rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.nv-tc:hover { transform: translateY(-3px); border-color: var(--primary-100); box-shadow: var(--shadow-md); }

.nv-ti {
    grid-row: span 2;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 1.25rem;
    transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.nv-tc:hover .nv-ti { background: var(--primary); color: #fff; }
.nv-tc h4 { margin: 0.2rem 0 0.45rem; font-size: 1.07rem; font-weight: 800; color: var(--ink); }
.nv-tc p { margin: 0; font-size: 0.95rem; line-height: 1.85; color: var(--text-muted); }

/* ---- CTA + note ---- */
.nv-cta {
    padding: 2.75rem 2rem;
    text-align: center;
    border-radius: var(--radius-xl);
    background:
        radial-gradient(30rem 16rem at 100% 0%, rgba(245, 158, 11, 0.12), transparent 70%),
        radial-gradient(30rem 18rem at 0% 100%, rgba(36, 48, 143, 0.1), transparent 70%),
        var(--primary-soft);
    border: 1px solid var(--primary-100);
}

.nv-cta h3 {
    font-size: clamp(1.4rem, 1.1rem + 0.9vw, 1.85rem);
    font-weight: 800;
    color: var(--ink);
    margin: 0 0 0.6rem;
}

.nv-cta p { margin: 0 0 1.5rem; font-size: 1.02rem; color: var(--text-muted); }

.nv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0.75rem 2.25rem;
    font-size: 1.02rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    background: var(--primary);
    border-radius: var(--radius);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
    transition: background-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.nv-btn:hover {
    color: #fff;
    background: var(--primary-hover);
    box-shadow: 0 10px 22px -10px rgba(36, 48, 143, 0.55);
    transform: translateY(-1px);
}

.nv-note {
    margin-top: 1.5rem;
    padding: 1.25rem 1.4rem;
    font-size: 0.88rem;
    line-height: 1.9;
    color: var(--text-muted);
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-inline-start: 3px solid var(--primary-200);
    border-radius: var(--radius);
}

.nv-note strong { color: var(--ink); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .nv-grid, .nv-simout { grid-template-columns: repeat(2, 1fr); }
    .nv-trust { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .nv-hero { grid-template-columns: 1fr; gap: 1.25rem; padding: 1.75rem 1.4rem; }
    .nv-chart, .nv-sim { padding: 1.4rem 1.1rem; }
    .nv-bars { gap: 5px; }
    .nv-barx { gap: 5px; }
}
