/* ==========================================================================
   Levelora 2 — shared components: marketing, charts, notifications, math & visuals
   ========================================================================== */

/* ---------- marketing ---------- */
.hero-stats { display: flex; gap: 28px; margin-top: 30px; flex-wrap: wrap; }
.hero-stats strong { display: block; font-family: var(--font-display); font-size: 1.9rem; font-weight: 750; color: var(--ink-900); letter-spacing: -.03em; }
.hero-stats span { color: var(--muted); font-size: .88rem; }
.hero-visual { position: relative; }
.hero-visual::before { content: ""; position: absolute; inset: -30px -20px; background: radial-gradient(closest-side, rgba(139, 92, 246, .28), transparent); filter: blur(10px); z-index: -1; }
.mock-window { background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden; transform: perspective(1400px) rotateY(-6deg) rotateX(3deg); }
.mock-bar { display: flex; gap: 6px; align-items: center; padding: 11px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: .8rem; color: var(--muted); font-weight: 600; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e2e4ee; }
.mock-bar i:first-child { background: #fb7185; }
.mock-bar i:nth-child(2) { background: #fbbf24; }
.mock-bar i:nth-child(3) { background: #34d399; }
.mock-bar span { margin-left: 8px; }
.mock-seats { display: grid; gap: 8px; padding: 14px; }
.mock-seat { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(90deg, var(--tone-bg), #fff 60%); }
.mock-seat strong { font-family: var(--font-display); margin-right: 8px; }
.mock-seat .dots { margin-top: 5px; display: flex; }
.mock-suggest { display: flex; gap: 12px; margin: 0 14px 14px; padding: 12px 14px; border-radius: 14px; background: linear-gradient(135deg, #f5f3ff, #fdf4ff); border: 1px solid var(--brand-100); }
.mock-suggest .ico { color: var(--brand); width: 22px; height: 22px; margin-top: 2px; }
.mock-suggest strong { display: block; font-family: var(--font-display); }
.mock-suggest span { font-size: .88rem; color: var(--text-2); }
.band-section { padding: 30px 0 50px; }
.section-h { font-size: clamp(1.6rem, 2.6vw, 2.3rem); max-width: 26ch; margin-bottom: 26px; letter-spacing: -.03em; }
.phase-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.phase-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); }
.phase-card h3 { margin: 14px 0 6px; font-size: 1.1rem; }
.phase-card p { color: var(--text-2); margin: 0; font-size: .95rem; }
.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 10px 0 40px; }
.split-card { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 30px; box-shadow: var(--shadow); }
.split-card.dark { background: radial-gradient(120% 80% at 0% 0%, #3b2a8f, transparent 60%), linear-gradient(160deg, #1d1a55, #0f0e31); color: #dcdcf5; border-color: transparent; }
.split-card.dark h2 { color: #fff; }
.split-card h2 { font-size: 1.6rem; margin-bottom: 18px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks .ico { margin-top: 3px; color: #a78bfa; width: 18px; height: 18px; }
.split-card:not(.dark) .ticks .ico { color: var(--brand); }
.family-band { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 34px; box-shadow: var(--shadow); }
.trust { display: grid; gap: 14px; }
.trust > div { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: 16px; background: var(--surface-2); }
.trust .ico { width: 22px; height: 22px; color: var(--brand); margin-top: 2px; }
.trust strong { display: block; font-family: var(--font-display); }
.trust span { color: var(--muted); font-size: .9rem; }
.market-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 30px 0 50px; border-top: 1px solid var(--line); }
.market-foot > span:first-child { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; }
.market-foot .logo-mark { width: 28px; height: 28px; }
.demo-section { grid-column: 1 / -1; font-family: var(--font-display); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 700; margin-top: 8px; }
@media (max-width: 1100px) {
  .phase-grid, .split-section, .family-band { grid-template-columns: 1fr; }
  .mock-window { transform: none; }
}

/* ---------- charts ---------- */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.c-grid { stroke: var(--line-2); stroke-width: 1; }
.c-axis { fill: var(--faint); font-size: 11px; font-family: var(--font-body); }
.c-line { fill: none; stroke: var(--brand); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.c-area-top { stop-color: #8b5cf6; stop-opacity: .26; }
.c-area-bottom { stop-color: #8b5cf6; stop-opacity: 0; }
.c-dot { fill: #fff; stroke: var(--brand); stroke-width: 2.5; }
.c-dot-last { fill: var(--brand); }
.c-badge rect { fill: var(--brand); }
.c-badge text { fill: #fff; font-size: 11px; font-weight: 700; font-family: var(--font-display); }
.spark { width: 110px; height: 30px; }
.spark path { fill: none; stroke: var(--tone, var(--brand)); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.donut { position: relative; width: var(--size, 140px); height: var(--size, 140px); flex: none; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut-seg { fill: none; stroke: var(--tone); stroke-width: 11; }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 9px; height: 9px; border-radius: 3px; background: #e7e9f2; }
.dots i.ok { background: #22c55e; }
.dots i.no { background: #f43f5e; }

/* ---------- notifications ---------- */
.notif-pop { width: 340px; max-height: 420px; overflow: auto; }
.notif-item { display: flex; gap: 10px; padding: 10px; border-radius: 12px; color: var(--text); text-decoration: none !important; }
.notif-item:hover { background: var(--surface-3); }
.notif-item .chip-ico { width: 32px; height: 32px; border-radius: 10px; }
.notif-item strong { display: block; font-family: var(--font-display); font-size: .9rem; }
.notif-item small { color: var(--muted); }
.notif-item.unread strong::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--pink); margin-left: 6px; vertical-align: 2px; }

/* ---------- math text ---------- */
.mx-frac { display: inline-flex; flex-direction: column; align-items: center; vertical-align: middle; margin: 0 .12em; line-height: 1.05; font-variant-numeric: lining-nums; }
.mx-frac .mx-n { border-bottom: .09em solid currentColor; padding: 0 .18em .05em; }
.mx-frac .mx-d { padding: .05em .18em 0; }
.mx-frac > span { font-size: .86em; }
.mx-mixed { display: inline-flex; align-items: center; gap: .05em; white-space: nowrap; }
.mx-neg { margin-right: .05em; }
.mx-sqrt { white-space: nowrap; }
.mx-sqrt > span { border-top: .08em solid currentColor; padding: 0 .1em; margin-left: .02em; }
.mx-box { display: inline-block; width: 1.6em; height: 1.25em; border: .12em dashed var(--brand); border-radius: .25em; vertical-align: -.25em; background: var(--brand-50); }

/* ---------- question visuals ---------- */
.vz { width: 100%; height: auto; max-height: 260px; display: block; margin: 0 auto; overflow: visible; }
.vz text { font-family: var(--font-display); }
.vz .v-text { fill: var(--ink-900); }
.vz .v-muted { fill: var(--muted); }
.vz .v-ink { stroke: #2b2a55; }
.vz .v-ink-fill { fill: #2b2a55; }
.vz .v-paper { fill: #fff; }
.vz .v-soft { fill: #f1edff; }
.vz .v-fill-soft { fill: #ddd6fe; }
.vz .v-fill { fill: #8b5cf6; }
.vz .v-fill2 { fill: #fbbf24; }
.vz .v-fill3 { fill: #2dd4bf; }
.vz .v-grid { stroke: #e7e8f2; stroke-width: 1; }
.vz .v-grid-dark { stroke: rgba(43, 42, 85, .25); stroke-width: 1; fill: none; }
.vz .v-axis { stroke: #2b2a55; stroke-width: 2; }
.vz .v-mark { fill: #f43f5e; stroke: #fff; stroke-width: 2.5; }
.vz .v-mark-text { fill: #e11d48; }
.vz .v-accent { stroke: #f43f5e; }
.vz .v-accent-text { fill: #e11d48; }
.vz .v-accent2 { stroke: #0ea5e9; }
.vz .v-accent2-text { fill: #0284c7; }
.vz .v-dot-violet { fill: #8b5cf6; }
.vz .v-dot-amber { fill: #f59e0b; }
.vz .v-dot-teal { fill: #14b8a6; }
.vz .v-dot-rose { fill: #f43f5e; }
.vz .v-hand-h { stroke: #2b2a55; }
.vz .v-hand-m { stroke: #8b5cf6; }
.vz .v-face1 { fill: #c4b5fd; }
.vz .v-face2 { fill: #ede9fe; }
.vz .v-face3 { fill: #a78bfa; }
.vz .v-poly { fill: rgba(139, 92, 246, .35); stroke: #7c3aed; }
.vz .v-poly2 { fill: rgba(251, 146, 60, .35); stroke: #ea580c; stroke-dasharray: 6 4; }
.vz .v-bar0 { fill: #8b5cf6; }
.vz .v-bar1 { fill: #14b8a6; }
.vz .v-bar2 { fill: #f59e0b; }
.vz .v-bar3 { fill: #f43f5e; }
.vz .v-on-colour { fill: #fff; paint-order: stroke; stroke: rgba(0, 0, 0, .25); stroke-width: 2px; }
.vz .v-star { fill: #fbbf24; stroke: #b45309; stroke-width: 1.2; }
.vz .v-q { fill: #f5f3ff; stroke: #8b5cf6; }
.vz .v-q-text { fill: #7c3aed; }
.vz .v-ruler { fill: #fef3c7; stroke: #d97706; }
.vz .v-bag { fill: #f5e1c8; }
.vz .v-pan-label { fill: #fff; stroke: #c4b5fd; stroke-width: 1.5; }
.vz .v-gold-coin { fill: #fcd34d; stroke: #b45309; }
.vz .v-silver-coin { fill: #e5e7eb; stroke: #6b7280; }
.vz-dice { max-width: 120px; }
.vz-clock { max-width: 220px; }
.vz-circle { max-width: 180px; }
.vz-spinner { max-width: 210px; }
.vz-bag { max-width: 230px; }
.vz-shape { max-width: 200px; }
.vz-solid { max-width: 220px; }
.vz-angle { max-width: 280px; }
.vz-pattern { max-width: 520px; }
.vz-balance { max-width: 300px; }
.vz-table { overflow-x: auto; }
.vz-table table { border-collapse: separate; border-spacing: 0; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-family: var(--font-display); }
.vz-table th, .vz-table td { padding: 8px 14px; border-bottom: 1px solid var(--line-2); text-align: center; }
.vz-table thead th { background: var(--brand-50); color: var(--brand-700); }
.vz-table tbody th { text-align: left; color: var(--text-2); }
