/* landing.css — Section-specific styles: nav, hero, problem, trust-bar, ecosystem, features, gamification, testimonials, pricing, team, security, cta, footer */

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    overflow: visible;
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(237, 83, 138, 0.1);
    transition: var(--transition);
}

.nav.scrolled {
    padding: 0.75rem 0;
    box-shadow: var(--shadow-sm);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo img {
    height: 44px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* --- Nav Dropdowns (desktop) --- */

.nav-dropdown {
    position: relative;
}

.nav-dropdown__trigger {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.nav-dropdown__arrow {
    transition: transform 0.25s ease;
    flex-shrink: 0;
    opacity: 0.5;
}

.nav-dropdown:hover .nav-dropdown__arrow {
    transform: rotate(180deg);
    opacity: 1;
}

/* Remove underline animation on dropdown triggers */
.nav-dropdown > .nav-dropdown__trigger::after {
    display: none;
}

.nav-dropdown__menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    min-width: 240px;
    background: #fff;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 100;
}

/* Invisible bridge so hover is not lost between trigger and menu */
.nav-dropdown__menu::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px;
}

.nav-dropdown:hover .nav-dropdown__menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 20px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-dropdown__item:hover {
    background: var(--primary-pale);
    color: var(--primary);
}

.nav-dropdown__icon {
    flex-shrink: 0;
    opacity: 0.55;
    transition: opacity 0.15s ease;
}

.nav-dropdown__item:hover .nav-dropdown__icon {
    opacity: 1;
    color: var(--primary);
}

/* Audit "5 мин" badge in nav dropdown */
.nav-dropdown__badge {
    margin-left: auto;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #ed538a;
    background: rgba(237, 83, 138, 0.1);
    padding: 2px 8px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* "новое" badge — green variant for Academy */
.nav-dropdown__badge--new {
    color: #059669;
    background: rgba(5, 150, 105, 0.1);
}

/* Exclusive star in nav items — right-aligned */
.nav-dropdown__item .exclusive-star {
    margin-left: auto;
    opacity: 0.8;
}
.nav-dropdown__item:hover .exclusive-star { opacity: 1; }

/* Mobile accordion stars */
.mobile-accordion__item .exclusive-star {
    margin-left: auto;
    opacity: 0.8;
}

/* --- Mobile accordion (inside mobile-menu) --- */

.mobile-accordion {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.mobile-accordion__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    text-align: left;
}

.mobile-accordion__arrow {
    transition: transform 0.25s ease;
    flex-shrink: 0;
    opacity: 0.5;
}

.mobile-accordion.open .mobile-accordion__arrow {
    transform: rotate(180deg);
    opacity: 1;
}

.mobile-accordion__panel {
    display: none;
    padding: 0 0 0.5rem 0;
}

.mobile-accordion.open .mobile-accordion__panel {
    display: block;
}

.mobile-accordion__item {
    display: block;
    padding: 0.5rem 0 0.5rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.15s ease;
}

.mobile-accordion__item:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding: 8rem 0 4rem;
    background: var(--bg-gradient);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse at center, rgba(237, 83, 138, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: calc(100vh - 12rem);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero-badge svg {
    width: 18px;
    height: 18px;
}

.hero h1 {
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero h1 span {
    color: var(--primary);
    position: relative;
}

.hero h1 span::after {
    content: '';
    position: absolute;
    bottom: 0.1em;
    left: 0;
    right: 0;
    height: 0.15em;
    background: var(--primary);
    opacity: 0.3;
    border-radius: 4px;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 540px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-stat {
    text-align: left;
}

.hero-stat-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--primary);
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease-out 0.3s both;
}

/* ==============================
   Hero Device Mockups
   ============================== */
.device-showcase {
    position: relative;
    width: 100%;
    max-width: 600px;
}

.laptop-mockup {
    position: relative;
    width: 100%;
    background: #1a1a2e;
    border-radius: 16px 16px 0 0;
    padding: 10px 10px 0;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.laptop-screen {
    background: #ffffff;
    border-radius: 8px 8px 0 0;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.laptop-base {
    height: 14px;
    background: linear-gradient(to bottom, #2d3142, #1a1a2e);
    border-radius: 0 0 8px 8px;
    position: relative;
}

.laptop-base::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: #3d4152;
    border-radius: 4px;
}

.phone-mockup {
    position: absolute;
    right: -40px;
    bottom: 20px;
    width: 130px;
    background: #1a1a2e;
    border-radius: 22px;
    padding: 7px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
    z-index: 10;
    animation: floatPhone 4s ease-in-out infinite;
}

.phone-screen {
    background: #ffffff;
    border-radius: 16px;
    aspect-ratio: 9/19;
    overflow: hidden;
    position: relative;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 55%;
    height: 16px;
    background: #1a1a2e;
    border-radius: 0 0 10px 10px;
    z-index: 10;
}

@keyframes floatPhone {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* --- Hero CRM (Laptop Screen) --- */
.hero-crm {
    display: flex;
    height: 100%;
}

.hero-crm-side {
    width: 34px;
    background: #1e1b2e;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 0;
    gap: 1px;
    flex-shrink: 0;
}

.hero-crm-side-logo {
    width: 20px;
    height: 20px;
    background: var(--primary);
    color: white;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.hero-crm-side-item {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    color: #6b7280;
}

.hero-crm-side-item.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.hero-crm-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.hero-crm-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 8px;
    background: white;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--text);
}

.hero-crm-bar-r {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-crm-bell {
    position: relative;
    display: flex;
}

.hero-crm-bell-dot {
    position: absolute;
    top: -1px;
    right: -1px;
    width: 5px;
    height: 5px;
    background: #ef4444;
    border-radius: 50%;
    animation: bellPulse 2s ease-in-out infinite;
}

@keyframes bellPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.hero-crm-avatar {
    width: 18px;
    height: 18px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.35rem;
    font-weight: 700;
}

.hero-crm-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
    padding: 4px;
    overflow: hidden;
    min-height: 0;
}

.hero-crm-screen.active {
    display: flex !important;
    flex-direction: column;
    flex: 1;
    gap: 3px;
    min-height: 0;
}

.hero-crm-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
}

.hero-crm-kpi {
    background: white;
    border-radius: 4px;
    padding: 3px 4px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.hero-crm-kpi-val {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.1;
}

.hero-crm-kpi-lbl {
    font-size: 0.38rem;
    color: var(--text-light);
    margin-top: 1px;
}

.hero-crm-kpi--primary .hero-crm-kpi-val { color: var(--primary); }
.hero-crm-kpi--green .hero-crm-kpi-val   { color: #22c55e; }

.hero-crm-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    flex: 1;
    min-height: 0;
}

.hero-crm-card {
    background: white;
    border-radius: 4px;
    padding: 3px 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
}

.hero-crm-card-t {
    font-size: 0.52rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 3px;
    padding-bottom: 2px;
    border-bottom: 1px solid #f1f5f9;
}

.hero-crm-sched {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 2px;
}

.hero-crm-time {
    font-size: 0.44rem;
    color: #9ca3af;
    width: 26px;
    flex-shrink: 0;
}

.hero-crm-grp {
    font-size: 0.44rem;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 500;
    white-space: nowrap;
}

.hero-crm-grp--pink   { background: #fce7f3; color: #be185d; }
.hero-crm-grp--blue   { background: #dbeafe; color: #1d4ed8; }
.hero-crm-grp--purple { background: #ede9fe; color: #6d28d9; }
.hero-crm-grp--amber  { background: #fef3c7; color: #b45309; }

.hero-crm-act {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    font-size: 0.46rem;
    color: var(--text-light);
    margin-bottom: 3px;
    line-height: 1.3;
}

.hero-crm-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
}

/* --- Hero App (Phone Screen) --- */
.hero-app {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding-top: 16px;
}

.hero-app-bar {
    background: var(--primary);
    color: white;
    padding: 6px 8px;
    text-align: center;
    font-size: 0.5rem;
    font-weight: 700;
}

.hero-app-body {
    flex: 1;
    background: #f8f9fa;
    padding: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.hero-app-profile {
    display: flex;
    align-items: center;
    gap: 5px;
    background: white;
    border-radius: 6px;
    padding: 4px 5px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.hero-app-ava {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.hero-app-name strong {
    display: block;
    font-size: 0.5rem;
    color: var(--text);
}

.hero-app-name span {
    font-size: 0.38rem;
    color: var(--primary);
    font-weight: 600;
}

.hero-app-xp {
    background: white;
    border-radius: 6px;
    padding: 4px 5px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.hero-app-xp-track {
    height: 4px;
    background: var(--primary-pale);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 2px;
}

.hero-app-xp-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 2px;
    animation: heroXpFill 2s 0.5s ease-out forwards;
}

@keyframes heroXpFill { to { width: 62%; } }

.hero-app-xp span {
    font-size: 0.35rem;
    color: var(--text-light);
}

.hero-app-coins {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 0.38rem;
    color: var(--text-light);
    padding: 3px 5px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.hero-app-coin {
    color: #eab308;
    font-size: 0.5rem;
}

.hero-app-stickers {
    display: flex;
    gap: 3px;
}

.hero-app-mini-card {
    background: white;
    border-radius: 6px;
    padding: 3px 5px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.hero-app-mini-t {
    font-size: 0.32rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1px;
}

.hero-app-stickers span {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    opacity: 0;
    transform: scale(0);
    animation: popIn 0.4s ease-out forwards;
}

.hero-app-stickers span:nth-child(1) { animation-delay: 1.0s; }
.hero-app-stickers span:nth-child(2) { animation-delay: 1.2s; }
.hero-app-stickers span:nth-child(3) { animation-delay: 1.4s; }
.hero-app-stickers span:nth-child(4) { animation-delay: 1.6s; }

@keyframes popIn {
    to { opacity: 1; transform: scale(1); }
}

.hero-app-task {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.4rem;
    color: var(--text);
    background: white;
    border-radius: 6px;
    padding: 5px 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

/* --- Floating Notifications --- */
.hero-float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px 5px 6px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    font-size: 0.6rem;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    opacity: 0;
    z-index: 20;
}

.hero-float-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    flex-shrink: 0;
}

.hero-float--1 { top: -8px; right: 60px; animation: heroFloat 8s 1s ease-in-out infinite; }
.hero-float--2 { bottom: 50px; left: -10px; animation: heroFloat 8s 3.7s ease-in-out infinite; }
.hero-float--3 { top: 45%; right: -10px; animation: heroFloat 8s 6.3s ease-in-out infinite; }

@keyframes heroFloat {
    0%, 100% { opacity: 0; transform: translateY(8px); }
    8%, 28%  { opacity: 1; transform: translateY(0); }
    36%      { opacity: 0; transform: translateY(-5px); }
}

/* --- Hero CRM Screen Switching --- */
.hero-crm-screen { display: none; }
.hero-crm-screen.active { display: block; animation: heroScreenIn 0.2s ease-out; }
@keyframes heroScreenIn { from { opacity: 0; } to { opacity: 1; } }
.hero-crm-side-item { cursor: pointer; transition: background 0.15s, color 0.15s; }
.hero-crm-side-item:hover:not(.active) { background: rgba(255,255,255,0.06); color: #d1d5db; }

/* --- Hero Dashboard Chart --- */
.hd-chart { background: white; border-radius: 4px; padding: 3px 5px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.hd-chart-t { font-size: 0.35rem; color: var(--text-light); margin-bottom: 2px; }
.hd-bars { display: flex; align-items: flex-end; gap: 4px; height: 46px; padding-bottom: 10px; }
.hd-bar { flex: 1; height: var(--h); background: #e2e8f0; border-radius: 2px 2px 0 0; position: relative; }
.hd-bar--a { background: var(--primary); }
.hd-bar span { position: absolute; bottom: -9px; left: 50%; transform: translateX(-50%); font-size: 0.28rem; color: #9ca3af; }

/* --- Hero Schedule Screen --- */
.hd-tt { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.hd-tt-row { display: grid; grid-template-columns: 30px repeat(5, 1fr); gap: 2px; flex: 1; }
.hd-tt-row--head div { font-size: 0.4rem; font-weight: 600; color: var(--text-light); text-align: center; padding: 2px; }
.hd-tt-time { display: flex; align-items: center; justify-content: center; font-size: 0.35rem; color: #9ca3af; }
.hd-tt-c { padding: 3px 4px; border-radius: 3px; min-height: 28px; background: #f8fafc; border-left: 2px solid transparent; }
.hd-tt-c b { font-size: 0.4rem; color: var(--text); display: block; }
.hd-tt-c i { font-size: 0.32rem; color: var(--text-light); font-style: normal; display: block; }
.hd-tt-c--pink   { background: #fce7f3; border-left-color: #ec4899; }
.hd-tt-c--blue   { background: #dbeafe; border-left-color: #3b82f6; }
.hd-tt-c--purple { background: #ede9fe; border-left-color: #8b5cf6; }
.hd-tt-c--amber  { background: #fef3c7; border-left-color: #f59e0b; }
.hd-tt-c--green  { background: #dcfce7; border-left-color: #22c55e; }
.hd-tt-legend { display: flex; gap: 6px; margin-top: 4px; padding-top: 3px; border-top: 1px solid #f1f5f9; }
.hd-tt-legend span { display: flex; align-items: center; gap: 3px; font-size: 0.32rem; color: var(--text-light); }
.hd-tt-legend i { width: 7px; height: 7px; border-radius: 2px; border-left: 2px solid; display: inline-block; }

/* --- Hero Alert Bar --- */
.hd-alert { display: flex; align-items: center; gap: 4px; padding: 3px 5px; background: #fffbeb; border: 1px solid #fef3c7; border-radius: 4px; font-size: 0.35rem; color: #92400e; }
.hd-alert-dot { width: 4px; height: 4px; background: #f59e0b; border-radius: 50%; flex-shrink: 0; }

/* --- Hero Students Screen --- */
.hd-search { display: flex; align-items: center; gap: 5px; padding: 3px 5px; background: white; border-radius: 4px; font-size: 0.38rem; color: #9ca3af; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.hd-stu-list { flex: 1; }
.hd-stu { display: flex; align-items: center; gap: 4px; padding: 3px 0; border-bottom: 1px solid #f8fafc; }
.hd-stu-ava { width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.4rem; font-weight: 700; flex-shrink: 0; }
.hd-stu-info { flex: 1; min-width: 0; }
.hd-stu-info b { display: block; font-size: 0.48rem; color: var(--text); }
.hd-stu-info span { font-size: 0.38rem; color: var(--text-light); }
.hd-stu-lvl { width: 16px; height: 16px; background: #ede9fe; color: #7c3aed; border-radius: 50%; font-size: 0.32rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hd-stu-bar { width: 40px; height: 4px; background: #e2e8f0; border-radius: 2px; overflow: hidden; flex-shrink: 0; }
.hd-stu-bar > div { height: 100%; background: #22c55e; border-radius: 2px; }
.hd-stu-tag { font-size: 0.3rem; padding: 1px 5px; border-radius: 8px; font-weight: 600; flex-shrink: 0; }
.hd-stu-tag--ok { background: #dcfce7; color: #16a34a; }
.hd-stu-tag--risk { background: #fef2f2; color: #dc2626; }

/* --- Hero Finance Screen --- */
.hd-fin-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.hd-fin-card { background: white; border-radius: 4px; padding: 3px 4px; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.hd-fin-v { font-size: 0.72rem; font-weight: 700; color: var(--text); }
.hd-fin-l { font-size: 0.38rem; color: var(--text-light); }
.hd-fin-t { font-size: 0.36rem; font-weight: 600; }
.hd-fin-t--up { color: #22c55e; }
.hd-fin-t--dn { color: #ef4444; }
.hd-pay { display: flex; align-items: center; gap: 4px; font-size: 0.46rem; padding: 3px 0; border-bottom: 1px solid #f8fafc; }
.hd-pay span { flex: 1; color: var(--text); }
.hd-pay b { font-size: 0.46rem; }
.hd-pay small { color: #9ca3af; font-size: 0.38rem; }

/* --- Hero Analytics Horizontal Bars --- */
.hd-hbar { display: flex; align-items: center; gap: 4px; margin-bottom: 5px; }
.hd-hbar span { width: 46px; font-size: 0.44rem; color: var(--text); text-align: right; flex-shrink: 0; }
.hd-hbar-track { flex: 1; height: 7px; background: #f1f5f9; border-radius: 3px; overflow: hidden; }
.hd-hbar-track > div { height: 100%; background: linear-gradient(90deg, #22c55e, #4ade80); border-radius: 3px; }
.hd-hbar b { width: 26px; font-size: 0.44rem; color: var(--text); flex-shrink: 0; }

/* Trust Badges */
.hero-trust {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(45, 49, 66, 0.1);
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.trust-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-pale);
    border-radius: 6px;
    color: var(--primary);
}

/* Problem Section v2 — vertical narrative */
.problem-v2 {
    background: var(--bg-warm);
    padding: 6rem 0;
    position: relative;
}

/* ==============================
   Problem v2: Chaos Screen → Dashboard
   ============================== */

/* --- Header --- */
.pv2-top { text-align: center; margin-bottom: 2.5rem; }

.pv2-time {
    font-family: var(--font-display);
    font-size: clamp(4rem, 8vw, 6rem);
    color: #ef4444;
    opacity: 0.12;
    font-weight: 400;
    line-height: 1;
    animation: timePulse 3s ease-in-out infinite;
}

@keyframes timePulse {
    0%, 100% { opacity: 0.10; }
    50% { opacity: 0.18; }
}

.pv2-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    color: var(--text);
    margin-top: -0.5rem;
}

/* --- Chaos Screen Mockup --- */
.pv2-screen-wrap {
    position: relative;
    max-width: 820px;
    margin: 0 auto 1.5rem;
}

.pv2-chaos {
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* --- Browser Chrome (shared dark/light) --- */
.pv2-chrome {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: #2d2b3d;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pv2-chrome-dots {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.pv2-chrome-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.pv2-chrome-dots span:nth-child(1) { background: #ff5f57; }
.pv2-chrome-dots span:nth-child(2) { background: #ffbd2e; }
.pv2-chrome-dots span:nth-child(3) { background: #28c840; }

.pv2-chrome-tabs {
    display: flex;
    gap: 2px;
    overflow: hidden;
}

.pv2-chrome-tab {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 6px 6px 0 0;
    font-size: 0.72rem;
    color: #9ca3af;
    background: rgba(255, 255, 255, 0.04);
    white-space: nowrap;
    cursor: default;
}

.pv2-chrome-tab--active {
    background: #1e1b2e;
    color: #e5e7eb;
}

.pv2-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 16px;
    padding: 0 5px;
    border-radius: 8px;
    background: #ef4444;
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    line-height: 1;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* --- Chaos Body: spreadsheet + notifications --- */
.pv2-chaos-body {
    display: flex;
    background: #1e1b2e;
    min-height: 260px;
}

.pv2-sheet-wrap {
    flex: 1;
    padding: 1rem;
    overflow-x: auto;
}

.pv2-sheet {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.72rem;
    font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
}

.pv2-sheet td {
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #d1d5db;
}

.pv2-sheet-cols td {
    background: rgba(255, 255, 255, 0.03);
    color: #6b7280;
    font-size: 0.62rem;
    text-align: center;
    padding: 3px 12px;
}

.pv2-sheet-h {
    font-weight: 600;
    background: rgba(255, 255, 255, 0.04) !important;
    color: #e5e7eb !important;
}

.pv2-sheet-num {
    color: #6b7280 !important;
    text-align: center;
    width: 28px;
    background: rgba(255, 255, 255, 0.02);
    font-size: 0.62rem;
}

.pv2-cell-red { color: #ef4444 !important; font-weight: 600; }
.pv2-cell-ok  { color: #4ade80 !important; }

.pv2-sheet-err td {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #fca5a5 !important;
    font-weight: 500;
    animation: errBlink 2s ease-in-out infinite;
}

@keyframes errBlink {
    0%, 100% { background: rgba(239, 68, 68, 0.12) !important; }
    50% { background: rgba(239, 68, 68, 0.22) !important; }
}

/* --- Floating Notifications --- */
.pv2-notifs {
    width: 260px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.04);
}

.pv2-notif {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateX(30px);
}

.scroll-animate.visible .pv2-notif--1 { animation: slideNotif 0.45s 1.0s ease-out forwards; }
.scroll-animate.visible .pv2-notif--2 { animation: slideNotif 0.45s 1.4s ease-out forwards; }
.scroll-animate.visible .pv2-notif--3 { animation: slideNotif 0.45s 1.8s ease-out forwards; }

@keyframes slideNotif {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

.pv2-notif-ava {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #25D366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    flex-shrink: 0;
}

.pv2-notif-body strong {
    display: block;
    font-size: 0.68rem;
    color: #111827;
    margin-bottom: 1px;
}

.pv2-notif-body span {
    font-size: 0.62rem;
    color: #6b7280;
    line-height: 1.3;
}

.pv2-notif-time {
    font-size: 0.58rem;
    color: #9ca3af;
    white-space: nowrap;
    margin-left: auto;
    flex-shrink: 0;
}

/* --- Sticky Notes --- */
.pv2-sticky {
    position: absolute;
    padding: 10px 12px;
    font-size: 0.68rem;
    font-style: italic;
    line-height: 1.35;
    box-shadow: 2px 3px 12px rgba(0, 0, 0, 0.1);
    z-index: 2;
    border-radius: 2px;
    color: #44403c;
}

.pv2-sticky--1 {
    background: #fef08a;
    transform: rotate(-6deg);
    top: 10px;
    left: -24px;
}

.pv2-sticky--2 {
    background: #fed7aa;
    transform: rotate(4deg);
    top: 40%;
    right: -28px;
}

.pv2-sticky--3 {
    background: #bbf7d0;
    transform: rotate(-3deg);
    bottom: 10px;
    left: 8%;
}

/* --- Pain Summary Tags --- */
.pv2-pain-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 1.5rem auto 0;
    max-width: 720px;
}

.pv2-pain-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #fef2f2;
    border-radius: 20px;
    font-size: 0.78rem;
    color: #991b1b;
    white-space: nowrap;
    border: 1px solid rgba(239, 68, 68, 0.1);
}

.pv2-pain-dot {
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
    flex-shrink: 0;
}

/* --- Bridge: quote + arrow --- */
.pv2-bridge {
    text-align: center;
    padding: 3rem 0;
}

.pv2-quote {
    position: relative;
    display: inline-block;
    max-width: 600px;
    padding: 1.5rem 2rem 1.5rem 3.5rem;
    background: linear-gradient(135deg, #fff7ed, #fffbeb);
    border-radius: 16px;
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    font-style: italic;
    color: var(--text);
    line-height: 1.5;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.08);
}

.pv2-quote-mark {
    position: absolute;
    left: 1rem;
    top: 0.5rem;
    font-size: 3.5rem;
    color: #f59e0b;
    opacity: 0.35;
    font-family: var(--font-display);
    line-height: 1;
}

.pv2-arrow {
    margin-top: 1.5rem;
    color: var(--primary);
    opacity: 0.4;
    animation: arrowBounce 2s ease-in-out infinite;
}

@keyframes arrowBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* --- After: intro header --- */
.pv2-after-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.pv2-morning {
    font-family: var(--font-display);
    font-size: clamp(4rem, 8vw, 6rem);
    color: #22c55e;
    opacity: 0.12;
    font-weight: 400;
    line-height: 1;
}

.pv2-after-title {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
    color: var(--text);
    margin-bottom: 0.5rem;
    margin-top: -0.5rem;
}

.pv2-after-sub {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* --- Dashboard Mockup --- */
.pv2-dashboard {
    max-width: 860px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.07),
        0 0 0 1px rgba(0, 0, 0, 0.06);
}

/* Light chrome */
.pv2-chrome--light {
    background: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
}

.pv2-chrome--light .pv2-chrome-dots span:nth-child(1) { background: #ff5f57; }
.pv2-chrome--light .pv2-chrome-dots span:nth-child(2) { background: #ffbd2e; }
.pv2-chrome--light .pv2-chrome-dots span:nth-child(3) { background: #28c840; }

.pv2-chrome-url {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    background: white;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 0.72rem;
    color: #6b7280;
}

/* Dashboard body */
.pv2-dash-body {
    display: flex;
    background: white;
    min-height: 360px;
}

.pv2-dash-side {
    width: 170px;
    background: #f8fafc;
    border-right: 1px solid #f1f5f9;
    padding: 1rem 0;
    flex-shrink: 0;
}

.pv2-dash-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 1rem 1rem;
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--primary);
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 0.5rem;
}

.pv2-dash-nav { display: flex; flex-direction: column; }

.pv2-dash-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 1rem;
    font-size: 0.75rem;
    color: #64748b;
    cursor: default;
    text-decoration: none;
    border-radius: 0;
    transition: background 0.15s;
}

.pv2-dash-nav-item.active {
    color: var(--primary);
    background: rgba(220, 38, 38, 0.04);
    font-weight: 600;
}

/* Dashboard main */
.pv2-dash-main {
    flex: 1;
    padding: 1.25rem;
    min-width: 0;
}

.pv2-dash-greeting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.pv2-dash-date {
    font-size: 0.75rem;
    color: var(--text-light);
}

.pv2-dash-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

/* --- Dashboard Widgets --- */
.pv2-widget {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.7rem 0.85rem;
    background: #f0fdf4;
    border-radius: 10px;
    border-left: 3px solid #86efac;
    transition: all 0.25s ease;
}

.pv2-widget:hover {
    background: #dcfce7;
    border-left-color: #22c55e;
}

.pv2-widget-check {
    width: 26px;
    height: 26px;
    background: #22c55e;
    color: white;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(34, 197, 94, 0.25);
    transform: scale(0);
}

.scroll-animate.visible .pv2-widget:nth-child(1) .pv2-widget-check { animation: bounceIn 0.35s 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
.scroll-animate.visible .pv2-widget:nth-child(2) .pv2-widget-check { animation: bounceIn 0.35s 1.0s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
.scroll-animate.visible .pv2-widget:nth-child(3) .pv2-widget-check { animation: bounceIn 0.35s 1.1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
.scroll-animate.visible .pv2-widget:nth-child(4) .pv2-widget-check { animation: bounceIn 0.35s 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
.scroll-animate.visible .pv2-widget:nth-child(5) .pv2-widget-check { animation: bounceIn 0.35s 1.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
.scroll-animate.visible .pv2-widget:nth-child(6) .pv2-widget-check { animation: bounceIn 0.35s 1.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
.scroll-animate.visible .pv2-widget:nth-child(7) .pv2-widget-check { animation: bounceIn 0.35s 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
.scroll-animate.visible .pv2-widget:nth-child(8) .pv2-widget-check { animation: bounceIn 0.35s 1.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }

@keyframes bounceIn {
    from { transform: scale(0); }
    to   { transform: scale(1); }
}

.pv2-widget-info {
    flex: 1;
    min-width: 0;
}

.pv2-widget-info strong {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.1rem;
}

.pv2-widget-info span {
    display: block;
    font-size: 0.68rem;
    color: var(--text-light);
    line-height: 1.3;
}

.pv2-widget-bar {
    width: 100%;
    height: 4px;
    background: #dcfce7;
    border-radius: 2px;
    overflow: hidden;
}

.pv2-widget-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #4ade80);
    border-radius: 2px;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.8s ease-out;
}

.scroll-animate.visible .pv2-widget:nth-child(1) .pv2-widget-fill { transition-delay: 1.1s; }
.scroll-animate.visible .pv2-widget:nth-child(2) .pv2-widget-fill { transition-delay: 1.2s; }
.scroll-animate.visible .pv2-widget:nth-child(3) .pv2-widget-fill { transition-delay: 1.3s; }
.scroll-animate.visible .pv2-widget:nth-child(4) .pv2-widget-fill { transition-delay: 1.4s; }
.scroll-animate.visible .pv2-widget:nth-child(5) .pv2-widget-fill { transition-delay: 1.5s; }
.scroll-animate.visible .pv2-widget:nth-child(6) .pv2-widget-fill { transition-delay: 1.6s; }
.scroll-animate.visible .pv2-widget:nth-child(7) .pv2-widget-fill { transition-delay: 1.7s; }
.scroll-animate.visible .pv2-widget:nth-child(8) .pv2-widget-fill { transition-delay: 1.8s; }

.scroll-animate.visible .pv2-widget-fill {
    transform: scaleX(1);
}

/* --- Footnote --- */
.pv2-after-footnote {
    max-width: 860px;
    margin: 1.75rem auto 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* --- Dashboard Screen Switching --- */
.pv2-dash-screen { display: none; }
.pv2-dash-screen.active { display: block; animation: dashScreenIn 0.25s ease-out; }

@keyframes dashScreenIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.pv2-dash-nav-item { cursor: pointer; }
.pv2-dash-nav-item:hover:not(.active) { background: rgba(0, 0, 0, 0.03); color: var(--text); }

.pv2-dash-main { min-height: 380px; }

/* --- Schedule Screen --- */
.pv2-tt { margin-top: 0.5rem; }

.pv2-tt-row {
    display: grid;
    grid-template-columns: 44px repeat(5, 1fr);
    gap: 3px;
    margin-bottom: 3px;
}

.pv2-tt-row--head div {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-light);
    text-align: center;
    padding: 4px;
}

.pv2-tt-time {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: #9ca3af;
    font-weight: 500;
}

.pv2-tt-cell {
    padding: 5px 7px;
    border-radius: 5px;
    min-height: 38px;
    border-left: 2px solid transparent;
}

.pv2-tt-cell strong { display: block; font-size: 0.62rem; color: var(--text); }
.pv2-tt-cell span   { font-size: 0.55rem; color: var(--text-light); }

.pv2-tt-cell--pink   { background: #fce7f3; border-left-color: #ec4899; }
.pv2-tt-cell--blue   { background: #dbeafe; border-left-color: #3b82f6; }
.pv2-tt-cell--purple { background: #ede9fe; border-left-color: #8b5cf6; }
.pv2-tt-cell--amber  { background: #fef3c7; border-left-color: #f59e0b; }
.pv2-tt-cell--green  { background: #dcfce7; border-left-color: #22c55e; }
.pv2-tt-cell--empty  { background: #f8fafc; }

.pv2-tt-legend {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid #f1f5f9;
}

.pv2-tt-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.58rem;
    color: var(--text-light);
}

.pv2-tt-legend-item i {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    border-left: 2px solid;
    display: inline-block;
}

/* --- Finance Screen --- */
.pv2-fin-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.pv2-fin-card {
    padding: 0.65rem;
    background: #f8fafc;
    border-radius: 8px;
    text-align: center;
}

.pv2-fin-card-val   { font-size: 1rem; font-weight: 700; color: var(--text); }
.pv2-fin-card-label { font-size: 0.6rem; color: var(--text-light); margin-top: 2px; }
.pv2-fin-card-trend { font-size: 0.6rem; font-weight: 600; margin-top: 2px; }
.pv2-fin-card-trend--up   { color: #22c55e; }
.pv2-fin-card-trend--down { color: #ef4444; }

.pv2-fin-chart-wrap { margin-bottom: 0.75rem; }
.pv2-fin-chart-title { font-size: 0.65rem; color: var(--text-light); margin-bottom: 0.4rem; }

.pv2-fin-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 80px;
    padding-bottom: 18px;
}

.pv2-fin-bar {
    flex: 1;
    height: var(--h);
    background: #e2e8f0;
    border-radius: 3px 3px 0 0;
    position: relative;
    transition: background 0.2s;
}

.pv2-fin-bar--accent { background: linear-gradient(0deg, #22c55e, #4ade80); }

.pv2-fin-bar span {
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.55rem;
    color: #9ca3af;
    white-space: nowrap;
}

.pv2-fin-list { border-top: 1px solid #f1f5f9; padding-top: 0.5rem; }

.pv2-fin-row {
    display: flex;
    align-items: center;
    padding: 0.4rem 0;
    border-bottom: 1px solid #f8fafc;
    font-size: 0.7rem;
}

.pv2-fin-name { flex: 1; color: var(--text); }
.pv2-fin-amt  { font-weight: 600; margin-right: 0.75rem; }
.pv2-fin-amt--ok   { color: #22c55e; }
.pv2-fin-amt--wait { color: #f59e0b; font-weight: 500; font-style: italic; }
.pv2-fin-date { font-size: 0.6rem; color: #9ca3af; }

/* --- Students Screen --- */
.pv2-stu-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    font-size: 0.72rem;
    color: #9ca3af;
}

.pv2-stu-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid #f8fafc;
}

.pv2-stu-ava {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    flex-shrink: 0;
}

.pv2-stu-name { flex: 1; min-width: 0; }
.pv2-stu-name strong { display: block; font-size: 0.72rem; color: var(--text); }
.pv2-stu-name span   { font-size: 0.6rem; color: var(--text-light); }

.pv2-stu-lvl {
    padding: 2px 8px;
    background: #ede9fe;
    color: #7c3aed;
    border-radius: 10px;
    font-size: 0.58rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.pv2-stu-progress {
    width: 56px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
    flex-shrink: 0;
}

.pv2-stu-progress > div {
    height: 100%;
    background: #22c55e;
    border-radius: 2px;
}

.pv2-stu-tag {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.55rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.pv2-stu-tag--active { background: #dcfce7; color: #16a34a; }
.pv2-stu-tag--risk   { background: #fef2f2; color: #dc2626; }

/* --- Analytics Screen --- */
.pv2-ana-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.pv2-ana-kpi {
    padding: 0.55rem;
    background: #f8fafc;
    border-radius: 8px;
    text-align: center;
}

.pv2-ana-kpi-val   { font-size: 0.95rem; font-weight: 700; color: var(--text); }
.pv2-ana-kpi-label { font-size: 0.55rem; color: var(--text-light); margin-top: 1px; }
.pv2-ana-kpi-trend { font-size: 0.58rem; font-weight: 600; margin-top: 2px; }
.pv2-ana-kpi-trend--up   { color: #22c55e; }
.pv2-ana-kpi-trend--down { color: #ef4444; }

.pv2-ana-chart-title {
    font-size: 0.65rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.pv2-ana-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.pv2-ana-bar-label {
    width: 70px;
    font-size: 0.62rem;
    color: var(--text);
    text-align: right;
    flex-shrink: 0;
}

.pv2-ana-bar {
    flex: 1;
    height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
}

.pv2-ana-bar > div {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #4ade80);
    border-radius: 4px;
}

.pv2-ana-bar-val {
    width: 30px;
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--text);
    flex-shrink: 0;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .pv2-chaos-body { flex-direction: column; }
    .pv2-notifs {
        width: 100%;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        flex-direction: column;
        padding: 10px;
    }
    .pv2-sticky { display: none; }
    .pv2-pain-tags { gap: 0.35rem; }
    .pv2-pain-tag { font-size: 0.7rem; padding: 5px 10px; }
    .pv2-chrome-tabs { overflow-x: auto; }
    .pv2-dash-body { flex-direction: column; }
    .pv2-dash-side {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #f1f5f9;
        padding: 0.5rem 0.5rem 0;
    }
    .pv2-dash-logo { display: none; }
    .pv2-dash-nav { flex-direction: row; overflow-x: auto; gap: 2px; padding-bottom: 0.5rem; }
    .pv2-dash-nav-item { white-space: nowrap; padding: 6px 12px; border-radius: 8px; font-size: 0.7rem; }
    .pv2-dash-main { min-height: auto; }
    .pv2-dash-grid { grid-template-columns: 1fr; }
    .pv2-dashboard { border-radius: 10px; }
    .pv2-tt-row { grid-template-columns: 36px repeat(5, 1fr); }
    .pv2-tt-cell { padding: 4px 5px; min-height: 32px; }
    .pv2-tt-legend { flex-wrap: wrap; gap: 0.5rem; }
    .pv2-fin-cards { grid-template-columns: 1fr; }
    .pv2-ana-kpis { grid-template-columns: repeat(2, 1fr); }
    .pv2-stu-lvl, .pv2-stu-progress { display: none; }
}

/* Problem Section (original) */
.problem-section {
    background: var(--bg-warm);
    position: relative;
    overflow: hidden;
}

.problem-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-pale), transparent);
}

.problem-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.problem-story {
    position: relative;
}

.story-time {
    font-family: var(--font-display);
    font-size: 6rem;
    color: var(--primary);
    opacity: 0.15;
    position: absolute;
    top: -2rem;
    left: -1rem;
    line-height: 1;
}

.story-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
}

.story-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.problem-list {
    list-style: none;
}

.problem-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(45, 49, 66, 0.08);
}

.problem-item:last-child {
    border-bottom: none;
}

.problem-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid var(--primary);
    border-radius: 6px;
    flex-shrink: 0;
    margin-top: 2px;
    position: relative;
}

.problem-checkbox::after {
    content: '';
    position: absolute;
    inset: 4px;
    background: var(--primary);
    border-radius: 2px;
    opacity: 0;
    transition: var(--transition);
}

.problem-item.checked .problem-checkbox::after {
    opacity: 1;
}

.problem-text {
    font-size: 1rem;
    color: var(--text);
}

.story-quote {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--primary-pale);
    border-radius: var(--radius-md);
    font-style: italic;
    color: var(--text);
    position: relative;
}

.story-quote::before {
    content: '\201C';
    font-family: var(--font-display);
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.3;
    position: absolute;
    top: -0.5rem;
    left: 1rem;
    line-height: 1;
}

.problem-solution {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.solution-preview {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.solution-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.solution-icon {
    width: 56px;
    height: 56px;
    background: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.solution-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
}

.solution-desc {
    font-size: 0.9375rem;
    color: var(--text-light);
}

/* Mini Dashboard Animation */
.mini-dashboard {
    background: #f8f9fa;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.mini-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(45, 49, 66, 0.05);
}

.mini-row:last-child {
    border-bottom: none;
}

.mini-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.mini-info {
    flex: 1;
}

.mini-name {
    font-size: 0.875rem;
    font-weight: 600;
}

.mini-status {
    font-size: 0.75rem;
    color: var(--text-light);
}

.mini-amount {
    font-weight: 700;
    color: var(--primary);
}

.mini-amount.success {
    color: #10b981;
}

/* Trust Bar */
.trust-bar {
    background: linear-gradient(135deg, var(--secondary) 0%, #1a1a2e 100%);
    padding: 2.25rem 0;
    position: relative;
}

.trust-bar__grid {
    display: flex;
    align-items: center;
    justify-content: center;
}

.trust-bar__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 2.25rem;
    color: rgba(255, 255, 255, 0.85);
}

.trust-bar__item svg {
    flex-shrink: 0;
    opacity: 0.45;
    color: white;
}

.trust-bar__item strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    line-height: 1.3;
}

.trust-bar__item span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

.trust-bar__sep {
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .trust-bar { padding: 1.5rem 0; }
    .trust-bar__grid { flex-wrap: wrap; gap: 0.75rem; }
    .trust-bar__sep { display: none; }
    .trust-bar__item { padding: 0.5rem 1rem; flex: 0 0 calc(50% - 0.75rem); }
}

/* Results Section (unused, kept for reference) */
.results-section .section-header {
    color: white;
}

.results-section .section-header p {
    color: rgba(255, 255, 255, 0.7);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.result-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition);
}

.result-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
}

.result-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

.result-value {
    font-family: var(--font-display);
    font-size: 3.5rem;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.result-label {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.result-desc {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

/* Ecosystem Rows — alternating layout */
.eco-rows { background: var(--bg-gradient); }

.eco-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
}
.eco-row:last-child { margin-bottom: 0; }

.eco-row--reverse { direction: rtl; }
.eco-row--reverse > * { direction: ltr; }

.eco-row__badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}
.eco-row__badge--pink { background: var(--primary-pale); color: var(--primary); }
.eco-row__badge--blue { background: #eff6ff; color: #2563eb; }
.eco-row__badge--yellow { background: #fef9c3; color: #a16207; }

.eco-row__text h3 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    margin-bottom: 1rem;
}
.eco-row__text > p {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.eco-row__list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.eco-row__list li {
    display: flex; align-items: flex-start; gap: 0.6rem;
    font-size: 0.9375rem; color: var(--text-light); line-height: 1.5;
}
.eco-row__list li::before {
    content: ''; flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px;
    border-radius: 6px; background: var(--primary-pale);
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ed538a' stroke-width='3' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: center; background-size: 12px;
}
.eco-row__list--blue li::before {
    background-color: #eff6ff;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='3' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}
.eco-row__list--yellow li::before {
    background-color: #fef9c3;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a16207' stroke-width='3' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

/* Row visual treatments */
.eco-row--white, .eco-row--blue, .eco-row--warm {
    background: white; border-radius: var(--radius-lg); padding: 1.5rem 3rem 3rem 3rem; box-shadow: var(--shadow-sm);
    overflow: visible;
}

/* Feature mini-cards instead of plain list */
.eco-row__features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.eco-feat {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.85rem 1rem;
    background: rgba(0,0,0,0.02);
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.04);
    transition: all 0.25s ease;
}
.eco-feat:hover { background: rgba(0,0,0,0.04); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.eco-feat__icon {
    width: 32px; height: 32px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px; font-size: 1rem;
}
.eco-feat__icon--pink { background: var(--primary-pale); color: var(--primary); }
.eco-feat__icon--blue { background: #eff6ff; color: #2563eb; }
.eco-feat__icon--purple { background: #f3f0ff; color: #7c3aed; }

.eco-feat strong { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--text); margin-bottom: 0.1rem; }
.eco-feat span { font-size: 0.75rem; color: var(--text-light); line-height: 1.3; }

/* Photo + Phone combo — separated with tilts */
.eco-row__visual { display: flex; justify-content: center; }

/* Fan layout: phone tilted back, photo on top front */
.eco-combo {
    position: relative;
    width: 360px;
    height: 520px;
    margin: 0 auto;
}

.eco-combo__phone {
    position: absolute;
    z-index: 1;
    top: -40px;
    right: -40px;
    transform: rotate(6deg);
    animation: fanPhoneR 7s ease-in-out infinite;
}

.eco-combo__phone--left {
    right: auto;
    left: -40px;
    transform: rotate(-6deg);
    animation: fanPhoneL 7s ease-in-out infinite;
}

@keyframes fanPhoneR {
    0%, 100% { transform: rotate(6deg) translateY(0); }
    50% { transform: rotate(7deg) translateY(-8px); }
}
@keyframes fanPhoneL {
    0%, 100% { transform: rotate(-6deg) translateY(0); }
    50% { transform: rotate(-5deg) translateY(-8px); }
}

.eco-combo__photo {
    width: 190px;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
    border: none;
    position: absolute;
    z-index: 2;
    bottom: 30px;
    /* Normal rows: photo left, tilted left */
    left: 0;
    transform: rotate(-4deg);
    animation: fanPhotoL 6s ease-in-out infinite;
}

/* Reverse row: photo right, tilted right */
.eco-row--reverse .eco-combo__photo {
    left: auto;
    right: 0;
    transform: rotate(4deg);
    animation: fanPhotoR 6s ease-in-out infinite;
}

@keyframes fanPhotoL {
    0%, 100% { transform: rotate(-4deg) translateY(0); }
    50% { transform: rotate(-3deg) translateY(-6px); }
}
@keyframes fanPhotoR {
    0%, 100% { transform: rotate(4deg) translateY(0); }
    50% { transform: rotate(5deg) translateY(-6px); }
}

.eco-phone-frame--sm {
    width: 260px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.05);
}

.eco-phone-wrap { perspective: 800px; }

.eco-phone-frame {
    width: 240px;
    background: #1a1a2e;
    border-radius: 32px;
    padding: 10px;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.08);
    position: relative;
}

.eco-phone-notch2 {
    position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
    width: 80px; height: 22px; background: #1a1a2e; border-radius: 0 0 14px 14px; z-index: 10;
}

.eco-phone-ui {
    background: white; border-radius: 24px; padding: 0;
    aspect-ratio: 9/18; overflow: hidden; display: flex; flex-direction: column;
}

.epu-header {
    background: var(--primary); color: white; padding: 2.25rem 1rem 0.75rem;
    font-weight: 700; font-size: 0.8rem; text-align: center;
}

.epu-card {
    margin: 0.75rem; padding: 0.75rem; background: #f8f9fa; border-radius: 10px;
}
.epu-time { font-size: 0.6rem; color: var(--text-light); }
.epu-group { font-size: 0.75rem; font-weight: 700; margin-top: 0.15rem; }
.epu-dots { display: flex; gap: 3px; margin-top: 0.4rem; }
.epu-dots span { width: 18px; height: 18px; border-radius: 50%; }
.epu-dots span:nth-child(1) { background: #ffd6e0; }
.epu-dots span:nth-child(2) { background: #c9f0ff; }
.epu-dots span:nth-child(3) { background: #d4f5d4; }
.epu-dots span:nth-child(4) { background: #fff3cd; }

.epu-action {
    display: flex; align-items: center; gap: 0.5rem;
    margin: 0 0.75rem 0.4rem; padding: 0.6rem 0.75rem;
    background: #f8f9fa; border-radius: 8px;
    font-size: 0.65rem; font-weight: 600;
}
.epu-action-icon { font-size: 0.85rem; }

/* Parent phone UI */
.epu-child {
    display: flex; align-items: center; gap: 0.6rem;
    margin: 0.75rem; padding: 0.75rem; background: #f8f9fa; border-radius: 10px;
}
.epu-child-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, #ffd6e0, #ffb6c1);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 700; color: white;
}
.epu-child strong { font-size: 0.8rem; }

.epu-progress { margin: 0 0.75rem 0.5rem; }
.epu-progress-label { font-size: 0.6rem; color: var(--text-light); display: flex; justify-content: space-between; margin-bottom: 0.2rem; }
.epu-progress-label span { color: var(--primary); font-weight: 600; }
.epu-progress-bar { height: 5px; background: var(--primary-pale); border-radius: 3px; overflow: hidden; }
.epu-progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-light)); border-radius: 3px; }

.epu-grades { margin: 0 0.75rem; font-size: 0.6rem; color: var(--text-light); }
.epu-grade-row { display: flex; gap: 0.3rem; margin-top: 0.3rem; }
.epu-grade { padding: 0.2rem 0.5rem; border-radius: 5px; font-weight: 700; font-size: 0.65rem; background: #d4f5d4; color: #166534; }
.epu-grade--new { background: var(--primary-pale); color: var(--primary); animation: popUp 0.4s ease-out 1s both; }

@keyframes popUp { from{opacity:0;transform:scale(0.5)} to{opacity:1;transform:scale(1)} }

/* Student phone UI */
.epu-profile { text-align: center; padding: 0.75rem 0.75rem 0.5rem; }
.epu-profile-avatar {
    width: 48px; height: 48px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    margin: 0 auto 0.35rem; display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: white;
}
.epu-profile-lvl { font-size: 0.7rem; font-weight: 700; color: var(--primary); }
.epu-profile-xp { font-size: 0.55rem; color: var(--text-light); }
.epu-xp-bar { height: 4px; background: var(--primary-pale); border-radius: 2px; margin: 0.3rem 0.75rem; overflow: hidden; }
.epu-xp-fill { width: 62%; height: 100%; background: var(--primary); border-radius: 2px; }

.epu-coins {
    display: flex; align-items: center; justify-content: center; gap: 0.4rem;
    margin: 0.4rem 0.75rem; padding: 0.5rem; background: linear-gradient(135deg, #fff9e6, #fff3cd);
    border-radius: 8px; font-size: 0.75rem; font-weight: 700; color: #996600;
}
.epu-coin-icon { color: #ffd700; font-size: 0.6rem; }

.epu-stickers {
    display: flex; justify-content: center; gap: 0.5rem; margin-top: 0.5rem;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .eco-row { grid-template-columns: 1fr; gap: 2rem; }
    .eco-row--reverse { direction: ltr; }
    .eco-row__visual { order: -1; }
    .eco-row--white, .eco-row--blue, .eco-row--warm { padding: 2rem 1.5rem; }
    .eco-row__features { grid-template-columns: 1fr; }
    .eco-phone-frame { width: 200px; }
    .eco-phone-frame--sm { width: 160px; }
    .eco-combo { width: 200px; height: 360px; }
    .eco-combo__photo { width: 120px; bottom: 5px; left: -15px; }
}

/* Features Section */
.features-section {
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--bg-warm);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: var(--transition);
    border: 2px solid transparent;
}

.feature-card:hover {
    border-color: var(--primary-pale);
    transform: translateY(-4px);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.feature-card > p {
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
}

.feature-list li svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

/* Gamification Section */
.gamification-section {
    background: linear-gradient(135deg, var(--primary-pale) 0%, #fff5f8 100%);
    position: relative;
    overflow: hidden;
}

.gamification-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.gami-content h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.gami-content > p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.gami-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.gami-feature {
    background: white;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.gami-feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.gami-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.gami-feature:nth-child(1) .gami-feature-icon { background: #fff3cd; }
.gami-feature:nth-child(2) .gami-feature-icon { background: #d4f5d4; }
.gami-feature:nth-child(3) .gami-feature-icon { background: #cce5ff; }
.gami-feature:nth-child(4) .gami-feature-icon { background: #f8d7da; }

.gami-feature h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.gami-feature p {
    font-size: 0.875rem;
}

.gami-visual {
    position: relative;
}

.gami-laptop {
    width: 100%;
    max-width: 500px;
    background: #1a1a2e;
    border-radius: 16px 16px 0 0;
    padding: 10px 10px 0;
    box-shadow: var(--shadow-lg);
}

.gami-laptop-screen {
    background: white;
    border-radius: 8px 8px 0 0;
    aspect-ratio: 16/10;
    overflow: hidden;
    position: relative;
}

.gami-laptop-base {
    height: 14px;
    background: linear-gradient(to bottom, #2d3142, #1a1a2e);
    border-radius: 0 0 8px 8px;
}

/* Leaderboard Animation */
.leaderboard-screen {
    padding: 1rem;
    height: 100%;
    background: #f8f9fa;
}

.leaderboard-header {
    background: var(--primary);
    color: white;
    padding: 0.75rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 0.875rem;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.leader-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    animation: slideUp 0.5s ease-out both;
}

.leader-item:nth-child(1) { animation-delay: 0.1s; }
.leader-item:nth-child(2) { animation-delay: 0.2s; }
.leader-item:nth-child(3) { animation-delay: 0.3s; }
.leader-item:nth-child(4) { animation-delay: 0.4s; }
.leader-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.leader-rank {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
}

.leader-item:nth-child(1) .leader-rank { background: #ffd700; color: #996600; }
.leader-item:nth-child(2) .leader-rank { background: #c0c0c0; color: #555; }
.leader-item:nth-child(3) .leader-rank { background: #cd7f32; color: #fff; }
.leader-item:nth-child(n+4) .leader-rank { background: #e5e7eb; color: #6b7280; }

.leader-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.leader-item:nth-child(1) .leader-avatar { background: linear-gradient(135deg, #ff6b9d, #c44569); }
.leader-item:nth-child(2) .leader-avatar { background: linear-gradient(135deg, #667eea, #764ba2); }
.leader-item:nth-child(3) .leader-avatar { background: linear-gradient(135deg, #f093fb, #f5576c); }
.leader-item:nth-child(4) .leader-avatar { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.leader-item:nth-child(5) .leader-avatar { background: linear-gradient(135deg, #43e97b, #38f9d7); }

.leader-info {
    flex: 1;
}

.leader-name {
    font-weight: 600;
    font-size: 0.75rem;
}

.leader-level {
    font-size: 0.625rem;
    color: var(--text-light);
}

.leader-xp {
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--primary);
}

/* Testimonials */
.testimonials-section {
    background: white;
}

.testimonials-slider {
    position: relative;
    overflow: hidden;
}
.testimonials-slider::before,
.testimonials-slider::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0; width: 80px;
    z-index: 2; pointer-events: none;
}
.testimonials-slider::before { left: 0; background: linear-gradient(to right, white, transparent); }
.testimonials-slider::after { right: 0; background: linear-gradient(to left, white, transparent); }

.testimonials-track {
    display: flex;
    gap: 1.5rem;
    animation: scrollTestimonials 55s linear infinite;
}

@keyframes scrollTestimonials {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.testimonial-card {
    flex-shrink: 0;
    width: 420px;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.testimonial-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 1.5rem;
    line-height: 1.75;
    flex: 1;
}
.testimonial-text::before { content: '\201C'; font-size: 2rem; color: var(--primary); line-height: 0; vertical-align: -0.35em; margin-right: 0.15em; }

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.testimonial-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-pale);
    flex-shrink: 0;
}

.testimonial-name {
    font-weight: 700;
    font-size: 0.9375rem;
}

.testimonial-role {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.4;
}

.testimonial-video {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    margin-top: 0.35rem;
    transition: opacity 0.2s;
}
.testimonial-video:hover { opacity: 0.7; }
.testimonial-video svg { flex-shrink: 0; }

.testimonials-dots {
    display: none;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0 1rem;
}

.testimonials-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0,0,0,0.15);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s;
}

.testimonials-dots .dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .testimonials-slider::before,
    .testimonials-slider::after {
        display: none;
    }

    .testimonials-track {
        animation: none;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 0 1rem;
        scrollbar-width: none;
    }

    .testimonials-track::-webkit-scrollbar {
        display: none;
    }

    .testimonial-card {
        width: 85vw;
        scroll-snap-align: center;
    }

    /* Hide duplicate cards (8th+) used for infinite scroll */
    .testimonial-card:nth-child(n+8) {
        display: none;
    }

    .testimonials-dots {
        display: flex;
    }
}

/* Pricing Section */
.pricing-section {
    background: var(--bg-gradient);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    align-items: stretch;
}

.pricing-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border-color: var(--primary);
}

.pricing-card .btn {
    margin-top: auto;
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.375rem 1rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.pricing-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.pricing-desc {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.pricing-price {
    margin-bottom: 1.5rem;
}

.pricing-amount {
    font-family: var(--font-display);
    font-size: 2.25rem;
    color: var(--primary);
    line-height: 1;
}

.pricing-period {
    font-size: 0.875rem;
    color: var(--text-light);
}

.pricing-students {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-pale);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
}

.pricing-features li svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
}

.pricing-note {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.pricing-note p {
    font-size: 0.9375rem;
}

@media (max-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        max-width: 760px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 640px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
    }
}

@media (max-width: 480px) {
    .pricing-card {
        padding: 1.5rem;
    }

    .pricing-amount {
        font-size: 2.25rem;
    }
}

/* Team Section */
.team-section {
    background: white;
}

.team-intro {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.team-photo {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.team-photo img {
    width: 100%;
    height: auto;
    display: block;
}

.team-story h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.team-story p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.8;
}

.team-members {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem 1.5rem;
}

@media (max-width: 900px) {
    .team-members {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 600px) {
    .team-members {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem 1rem;
    }
}

.team-member {
    text-align: center;
}

.member-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 4px solid white;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.member-role {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Security Section */
.security-section {
    background: var(--secondary);
    color: white;
}

.security-section .section-header p {
    color: rgba(255, 255, 255, 0.7);
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.security-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.security-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
}

.security-icon {
    width: 72px;
    height: 72px;
    background: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.security-icon svg {
    width: 36px;
    height: 36px;
    color: white;
}

.security-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.security-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
}

@media (max-width: 1024px) {
    .security-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
}

.cta-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 400px;
    margin: 0 auto 2rem;
}

.cta-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
}

.cta-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.cta-submit {
    padding: 1rem 2rem;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.cta-submit:hover {
    background: #1a1a2e;
    transform: translateY(-2px);
}

.cta-legal {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 0.75rem;
    line-height: 1.4;
}
.cta-legal a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
}
.cta-legal a:hover {
    color: white;
}

.cta-benefits {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cta-benefit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
}

.cta-benefit svg {
    width: 20px;
    height: 20px;
}

/* Footer */
.footer {
    background: var(--secondary);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand img {
    height: 48px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
    max-width: 300px;
}

.footer-column h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 0.8125rem;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: white;
}

.footer-copy {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8125rem;
}

.footer-legal span {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8125rem;
}

/* ═══ Global Mobile Responsive ═══ */

@media (max-width: 1024px) {
    .nav-links,
    .nav-cta {
        display: none !important;
    }

    .mobile-menu-btn {
        display: flex !important;
    }
}

@media (max-width: 768px) {
    /* Footer — compact on mobile */
    .footer {
        padding: 2.5rem 0 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem 2rem;
        margin-bottom: 1.5rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
        margin-bottom: 0.5rem;
    }

    .footer-brand img {
        height: 36px;
        margin-bottom: 0.5rem;
    }

    .footer-brand p {
        max-width: 100%;
        font-size: 0.8125rem;
    }

    .footer-column h4 {
        margin-bottom: 0.75rem;
        font-size: 0.875rem;
    }

    .footer-links li {
        margin-bottom: 0.5rem;
    }

    .footer-links a {
        font-size: 0.8125rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        padding-top: 1rem;
    }

    .footer-legal {
        flex-direction: column;
        gap: 0.25rem;
    }

    /* Nav */
    .logo img {
        height: 36px;
    }

    /* Tools page */
    .tools-grid {
        grid-template-columns: 1fr;
    }

    .content-block {
        padding: 0;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem 1.5rem;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }
}

/* ── Auth Modals (Login / Register) ── */

.auth-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}
.auth-modal.active {
    display: flex;
}
.auth-modal__backdrop {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
}
.auth-modal__content {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.auth-modal__close {
    position: absolute;
    top: 16px; right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
}
.auth-modal__close:hover { color: #333; }

.auth-modal__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin: 0 0 0.5rem;
    color: var(--text-dark);
}
.auth-modal__subtitle {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin: 0 0 1.5rem;
    line-height: 1.5;
}
.auth-modal__buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}
.auth-modal__btn {
    flex: 1;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}
.auth-modal__btn--outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: white;
}
.auth-modal__btn--outline:hover {
    background: var(--primary);
    color: white;
}
.auth-modal__btn--primary {
    border: 2px solid var(--primary);
    background: var(--primary);
    color: white;
}
.auth-modal__btn--primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
.auth-modal__form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.auth-modal__input,
.auth-modal__select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    font-family: var(--font-body);
    background: white;
    box-sizing: border-box;
}
.auth-modal__input:focus,
.auth-modal__select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(219,68,103,0.1);
}
.auth-modal__label {
    font-size: 0.95rem;
    color: #333;
    margin: 0.5rem 0 0.25rem;
}
.auth-modal__content > .auth-modal__select {
    margin-bottom: 1rem;
}
.auth-modal__submit {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-body);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
}
.auth-modal__submit:hover:not(:disabled) {
    opacity: 0.9;
    transform: translateY(-1px);
}
.auth-modal__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.auth-modal__warning {
    color: #c0392b;
    font-size: 0.95rem;
    line-height: 1.6;
}
.auth-modal__warning a {
    color: #2980b9;
    text-decoration: underline;
}
.auth-modal__legal {
    text-align: center;
    font-size: 0.8rem;
    color: #999;
    margin-top: 1rem;
    line-height: 1.4;
}
.auth-modal__legal a {
    color: var(--primary);
}
.auth-modal__success {
    text-align: center;
    padding: 1rem 0;
}
.auth-modal__success-icon {
    width: 56px; height: 56px;
    background: #27ae60;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 1rem;
}

/* Desktop: center modal with fade-in */
@media (min-width: 641px) {
    .auth-modal__content {
        animation: modalFadeIn 0.25s ease-out;
    }
    @keyframes modalFadeIn {
        from { opacity: 0; transform: translateY(-20px) scale(0.97); }
        to { opacity: 1; transform: translateY(0) scale(1); }
    }
}

@media (max-width: 768px) {
    .auth-modal__buttons { flex-direction: column; }
}

/* Mobile: bottom sheet */
@media (max-width: 640px) {
    .auth-modal {
        align-items: flex-end;
    }

    .auth-modal__backdrop {
        background: rgba(0,0,0,0.4);
        -webkit-backdrop-filter: blur(4px);
        backdrop-filter: blur(4px);
    }

    .auth-modal__content {
        width: 100%;
        max-width: 100%;
        max-height: 92vh;
        border-radius: 20px 20px 0 0;
        padding: 12px 24px 32px;
        padding-bottom: max(32px, env(safe-area-inset-bottom));
        box-shadow: 0 -10px 40px rgba(0,0,0,0.15);
        animation: sheetSlideUp 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    }

    @keyframes sheetSlideUp {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }

    /* Drag handle */
    .auth-modal__content::before {
        content: '';
        display: block;
        width: 36px;
        height: 4px;
        background: #ddd;
        border-radius: 2px;
        margin: 0 auto 16px;
    }

    .auth-modal__close {
        top: 8px;
        right: 14px;
        font-size: 24px;
    }

    .auth-modal__title {
        font-size: 1.125rem;
        margin-bottom: 0.25rem;
    }

    .auth-modal__subtitle {
        font-size: 0.8125rem;
        margin-bottom: 1rem;
    }

    /* Hide decorative icon on mobile to save space */
    .auth-modal__content [style*="width:52px"][style*="border-radius:14px"],
    .auth-modal__content [style*="width:56px"][style*="border-radius"] {
        display: none;
    }

    .auth-modal__form {
        gap: 0.75rem;
    }

    .auth-modal__input,
    .auth-modal__select {
        padding: 14px 16px;
        font-size: 16px; /* prevents iOS zoom */
        border-radius: 10px;
    }

    .auth-modal__submit {
        padding: 16px;
        font-size: 1rem;
        border-radius: 12px;
    }

    .auth-modal__legal {
        margin-top: 0.75rem;
        font-size: 0.6875rem;
    }
}

/* ============================================================ */
/* CRM Testimonials Component                                    */
/* ============================================================ */
.crm-testimonials {
    padding: 3rem 0;
}

.crm-testimonials__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #111827;
}

.crm-testimonials__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.crm-testimonials__card {
    display: block;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 12px;
    border-left: 3px solid #ed538a;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s;
}

.crm-testimonials__card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.crm-testimonials__quote {
    font-size: 0.9375rem;
    line-height: 1.65;
    font-style: italic;
    margin: 0 0 1rem;
    color: #111827;
}

.crm-testimonials__author {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.crm-testimonials__author img {
    border-radius: 50%;
    object-fit: cover;
}

.crm-testimonials__avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ed538a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    flex-shrink: 0;
}

.crm-testimonials__name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
}

.crm-testimonials__role {
    font-size: 0.75rem;
    color: #6b7280;
}

@media (max-width: 600px) {
    .crm-testimonials__grid {
        grid-template-columns: 1fr;
    }

    .crm-testimonials__title {
        font-size: 1.25rem;
    }
}

/* ============================================================ */
/* AUDIT PROMO — Самотест школы (после problem.php)              */
/* ============================================================ */

.audit-promo {
    padding: clamp(3rem, 6vw, 5rem) 0;
    background: linear-gradient(180deg, #fafbff 0%, #f5f7ff 100%);
    overflow: hidden;
}

.audit-promo__inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

/* === Left column: text === */

.audit-promo__eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ed538a;
    background: rgba(237, 83, 138, 0.08);
    padding: 0.375rem 0.875rem;
    border-radius: 100px;
    margin-bottom: 1rem;
}

.audit-promo__title {
    font-family: var(--font-display);
    font-size: clamp(1.625rem, 3vw, 2.25rem);
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a2e;
    margin: 0 0 1rem;
}

.audit-promo__lead {
    font-size: 1rem;
    line-height: 1.65;
    color: #4a5060;
    margin: 0 0 1.5rem;
    max-width: 540px;
}

/* === Trust chips (key UX: removes "consultation/lead" fear) === */

.audit-promo__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1.75rem;
    padding: 0;
    list-style: none;
}

.audit-promo__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.875rem;
    background: #fff;
    border: 1px solid rgba(45, 49, 66, 0.1);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #2d3142;
    box-shadow: 0 1px 3px rgba(45, 49, 66, 0.04);
}

.audit-promo__chip svg {
    color: #ed538a;
    flex-shrink: 0;
}

/* === Actions === */

.audit-promo__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.audit-promo__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.audit-promo__btn svg {
    transition: transform 0.2s;
}

.audit-promo__btn:hover svg {
    transform: translateX(3px);
}

.audit-promo__secondary {
    display: inline-flex;
    flex-direction: column;
    gap: 0.125rem;
    color: #4a5060;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
    border-bottom: 1px dashed rgba(74, 80, 96, 0.3);
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
}

.audit-promo__secondary:hover {
    color: #ed538a;
    border-bottom-color: #ed538a;
}

.audit-promo__secondary-note {
    font-size: 0.6875rem;
    font-weight: 500;
    color: #6b7280;
    border-bottom: none !important;
}

/* === Reassure note: snimaem strakh "menedzher pozvonit" === */

.audit-promo__reassure {
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.55;
    margin: 0;
    max-width: 480px;
}

/* === Right column: result mockup === */

.audit-promo__visual {
    display: flex;
    justify-content: center;
}

.audit-promo__card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 12px 40px rgba(45, 49, 66, 0.12), 0 2px 6px rgba(45, 49, 66, 0.04);
    width: 100%;
    max-width: 380px;
    border: 1px solid rgba(45, 49, 66, 0.06);
}

.audit-promo__card-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(45, 49, 66, 0.06);
}

.audit-promo__card-grade {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.audit-promo__card-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.2;
}

.audit-promo__card-sub {
    font-size: 0.8125rem;
    color: #6b7280;
    margin-top: 0.125rem;
}

.audit-promo__card-bars {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.audit-promo__card-bar {
    display: grid;
    grid-template-columns: 90px 1fr 36px;
    align-items: center;
    gap: 0.625rem;
}

.audit-promo__card-bar-label {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #2d3142;
}

.audit-promo__card-bar-track {
    height: 6px;
    background: rgba(45, 49, 66, 0.06);
    border-radius: 3px;
    overflow: hidden;
}

.audit-promo__card-bar-fill {
    display: block;
    height: 100%;
    border-radius: 3px;
}

.audit-promo__card-bar-pct {
    font-size: 0.75rem;
    font-weight: 700;
    color: #2d3142;
    text-align: right;
}

.audit-promo__card-foot {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(45, 49, 66, 0.06);
    font-size: 0.75rem;
    color: #6b7280;
    text-align: center;
}

/* === Mobile === */

@media (max-width: 900px) {
    .audit-promo__inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .audit-promo__visual {
        order: -1;
    }

    .audit-promo__card {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .audit-promo__chips {
        gap: 0.375rem;
    }

    .audit-promo__chip {
        font-size: 0.75rem;
        padding: 0.4375rem 0.75rem;
    }

    .audit-promo__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.875rem;
    }

    .audit-promo__btn {
        justify-content: center;
        width: 100%;
    }

    .audit-promo__secondary {
        text-align: center;
        align-items: center;
    }

    .audit-promo__card-bar {
        grid-template-columns: 80px 1fr 32px;
    }
}

/* ═══ Mobile polish: Hero + Team ═══
   landing.css грузится после main.css, поэтому правила .team-intro и
   .hero-stats из main.css media-queries перекрываются базовыми правилами
   landing.css. Здесь явно переопределяем их на мобильных ширинах. */

@media (max-width: 768px) {
    /* Hero — заголовок и подзаголовок ужать */
    .hero {
        padding-top: 1.5rem;
    }

    .hero-grid {
        gap: 2.5rem;
        min-height: 0;
    }

    .hero h1 {
        font-size: clamp(2.25rem, 9vw, 2.75rem);
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.6;
        margin: 0 auto 1.75rem;
        max-width: 420px;
    }

    /* Hero stats — вместо column прижатого слева, ровная горизонтальная строка */
    .hero-stats {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 0.75rem;
        margin-bottom: 2rem;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-stat {
        flex: 1;
        text-align: center;
        min-width: 0;
    }

    .hero-stat-value {
        font-size: 1.875rem;
        line-height: 1.1;
    }

    .hero-stat-label {
        font-size: 0.75rem;
        margin-top: 0.375rem;
        line-height: 1.3;
    }

    /* Team intro — гарантированно одна колонка, компактные отступы */
    .team-intro {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 3rem;
        text-align: center;
    }

    .team-photo {
        max-width: 420px;
        margin: 0 auto;
    }

    .team-story h3 {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    .team-story p {
        font-size: 0.9375rem;
        line-height: 1.7;
        margin-bottom: 0.875rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.125rem;
    }

    .hero-stat-value {
        font-size: 1.625rem;
    }

    .hero-stat-label {
        font-size: 0.6875rem;
    }

    .hero-stats {
        gap: 0.5rem;
    }

    .team-story h3 {
        font-size: 1.375rem;
    }
}
