/* ============================================================
   ai.css — BrightBrains AI Program page styles
   Depends on aisite.css being loaded first
   ============================================================ */

/* ── CUSTOM TOKENS ── */
:root {
    --ai-green:  #059669;
    --ai-purple: #7c3aed;
    --ai-teal:   #0d9488;
    --ai-pink:   #db2777;
}

/* ════════════════ HERO ════════════════ */
.ai-hero {
    min-height: 100vh;
    background: var(--navy);
    display: flex;
    align-items: center;
    padding: 100px 5% 60px;
    position: relative;
    overflow: hidden;
}

.ai-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 70% 50%, rgba(124, 58, 237, 0.18) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 80%, rgba(234, 124, 30, 0.12) 0%, transparent 50%),
        linear-gradient(160deg, #07111f, #0b1d38 50%, #091629);
}

.h-grid-hero {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
    background-size: 54px 54px;
}

.ai-hero-in {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.35);
    color: var(--gold);
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.ai-hero h1 {
    font-family: 'Fraunces', serif;
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.4px;
    margin-bottom: 1.2rem;
}

.ai-hero h1 em {
    font-style: italic;
    color: var(--gold);
}

.ai-hero .h-sub {
    font-size: 1.02rem;
    color: rgba(255, 255, 255, 0.58);
    line-height: 1.78;
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.free-note {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(5, 150, 105, 0.15);
    border: 1px solid rgba(5, 150, 105, 0.35);
    color: #34d399;
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-top: 1rem;
}

.ai-feature-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.ai-fc {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 1.4rem 1.2rem;
    transition: border-color .25s;
}

.ai-fc:hover { border-color: var(--sun); }
.ai-fc-emoji { font-size: 1.8rem; margin-bottom: 0.6rem; }
.ai-fc h4 { color: #fff; font-weight: 700; font-size: 0.95rem; margin-bottom: 0.3rem; }
.ai-fc p { color: rgba(255, 255, 255, 0.45); font-size: 0.82rem; line-height: 1.5; }

/* ════════════════ STATS BAR ════════════════ */
.ai-stats {
    background: #07111f;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: center;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.ai-stat {
    text-align: center;
    padding: 0 3rem;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-stat:last-child { border-right: none; }
.ai-stat-n { font-family: 'Fraunces', serif; font-size: 2rem; font-weight: 900; color: var(--gold); }
.ai-stat-l { font-size: 0.78rem; color: rgba(255, 255, 255, 0.38); margin-top: 0.15rem; }

/* ════════════════ SECTION LAYOUT ════════════════ */
.ai-sec { padding: 90px 5%; }
.ai-sec-inner { max-width: 1200px; margin: 0 auto; }
.ai-sec-cream { background: var(--cream); }
.ai-sec-navy  { background: var(--navy); }
.ai-sec-paper { background: var(--paper); }

/* ════════════════ PROJECTS ════════════════ */
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 3rem; }

.proj-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,.06);
    transition: transform .25s, box-shadow .25s;
}

.proj-card:hover { transform: translateY(-6px); box-shadow: 0 14px 40px rgba(0,0,0,.11); }
.proj-top { padding: 1.2rem 1.4rem 0.8rem; display: flex; align-items: center; gap: 0.7rem; }
.proj-emoji { font-size: 2rem; }
.proj-age { font-size: 0.7rem; font-weight: 700; padding: 0.2rem 0.65rem; border-radius: 50px; }
.proj-body { padding: 0 1.4rem 1.4rem; }
.proj-body h3 { font-family: 'Fraunces', serif; font-size: 1.05rem; color: var(--ink); margin-bottom: 0.5rem; }
.proj-body p { color: var(--slate); font-size: 0.86rem; line-height: 1.65; }
.proj-wow { margin-top: 0.8rem; background: var(--mist); border-radius: 8px; padding: 0.5rem 0.8rem; font-size: 0.78rem; color: var(--royal); font-weight: 600; }

/* ════════════════ LEVELS ════════════════ */
.levels-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }

.lvl-card {
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
    transition: transform .25s;
}

.lvl-card:hover { transform: translateY(-5px); }
.lvl-head { padding: 2rem 1.6rem 1.4rem; }
.lvl-head h3 { font-family: 'Fraunces', serif; color: #fff; font-size: 1.3rem; margin: 0.6rem 0 0.3rem; }
.lvl-age { color: rgba(255,255,255,.7); font-size: 0.84rem; font-weight: 600; }
.lvl-dur { color: rgba(255,255,255,.5); font-size: 0.78rem; margin-top: 0.2rem; }
.lvl-emoji { font-size: 2.2rem; }
.lvl-body { background: var(--white); padding: 1.5rem; }

.part-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.2rem 0.7rem;
    border-radius: 50px;
    margin-bottom: 0.5rem;
}

.pl-1 { background: rgba(234,124,30,.12); color: var(--orange); }
.pl-2 { background: rgba(124,58,237,.10); color: var(--ai-purple); }
.part-dur { font-size: 0.74rem; color: var(--fog); margin-bottom: 0.5rem; font-style: italic; }
.part-block { margin-top: 1rem; }
.part-block:first-child { margin-top: 0; }
.part-divider { height: 1px; background: var(--border); margin: 1rem 0; }

.lvl-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.lvl-list li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.86rem; color: var(--slate); line-height: 1.45; }
.lvl-list li::before { content: '→'; font-weight: 700; flex-shrink: 0; margin-top: 1px; color: var(--orange); }

.phase-note { background: var(--mist); border-radius: 8px; padding: 0.55rem 0.8rem; margin-top: 0.7rem; font-size: 0.78rem; color: var(--slate); line-height: 1.5; }
.phase-note strong { color: var(--ink); }

.cohort-box {
    margin-top: 2.5rem;
    background: linear-gradient(135deg, rgba(37,99,235,.06) 0%, rgba(124,58,237,.06) 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    text-align: center;
}

.cohort-box p:first-child { font-weight: 700; color: var(--ink); margin-bottom: 0.4rem; }
.cohort-box p:last-child { font-size: 0.9rem; color: var(--slate); line-height: 1.6; }

/* ════════════════ ENTRY PATH ════════════════ */
.entry-steps { display: flex; flex-direction: column; gap: 0; margin-top: 2.5rem; max-width: 780px; }

.entry-step { display: flex; gap: 1.5rem; align-items: flex-start; position: relative; }

.entry-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 20px;
    top: 44px;
    width: 2px;
    height: calc(100% - 4px);
    background: rgba(255,255,255,.1);
}

.step-n {
    width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 1rem; color: #fff; z-index: 1;
}

.step-body { padding: 0.3rem 0 2rem; }
.step-body h4 { color: #fff; font-weight: 700; font-size: 1rem; margin-bottom: 0.3rem; }
.step-body p { color: rgba(255,255,255,.5); font-size: 0.9rem; line-height: 1.65; }

/* ════════════════ SESSION TIMELINE ════════════════ */
.session-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 3rem; max-width: 900px; }

.session-row {
    display: flex; gap: 1.2rem; align-items: center;
    background: var(--white); border: 1px solid var(--border);
    border-radius: 14px; padding: 1.1rem 1.4rem;
    border-left: 4px solid; box-shadow: 0 2px 10px rgba(0,0,0,.05);
}

.session-time {
    font-weight: 800; font-size: 0.88rem; color: #fff;
    padding: 0.35rem 0.8rem; border-radius: 7px;
    white-space: nowrap; min-width: 90px; text-align: center;
}

.session-row h4 { font-weight: 700; font-size: 0.97rem; color: var(--ink); }
.session-row p { font-size: 0.84rem; color: var(--slate); margin-top: 0.2rem; line-height: 1.5; }

/* ════════════════ PRICING ════════════════ */
.free-banner {
    background: linear-gradient(135deg, var(--ai-green) 0%, #047857 100%);
    border-radius: 18px; padding: 2rem 2.5rem; margin-bottom: 3rem;
    display: flex; align-items: center; justify-content: space-between;
    gap: 2rem; flex-wrap: wrap;
    box-shadow: 0 8px 32px rgba(5,150,105,.25);
}

.free-banner h3 { font-family: 'Fraunces', serif; color: #fff; font-size: 1.55rem; margin-bottom: 0.4rem; }
.free-banner p { color: rgba(255,255,255,.78); font-size: 0.93rem; }

.btn-white {
    background: #fff; color: var(--ai-green); padding: 0.9rem 2rem;
    border-radius: 10px; font-weight: 800; font-size: 0.95rem;
    text-decoration: none; white-space: nowrap; transition: transform .2s;
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
}

.btn-white:hover { transform: translateY(-2px); }

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

.price-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: 20px; overflow: hidden; position: relative;
    box-shadow: 0 4px 24px rgba(0,0,0,.07); transition: transform .25s, box-shadow .25s;
}

.price-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(0,0,0,.12); }
.price-card.featured { border-color: var(--orange); border-width: 2px; }

.popular-badge {
    position: absolute; top: 1.2rem; right: 1.2rem;
    background: var(--orange); color: #fff; font-size: 0.68rem;
    font-weight: 800; padding: 0.2rem 0.65rem; border-radius: 50px; letter-spacing: 0.5px;
}

.price-head { padding: 2rem 1.8rem 1.4rem; }
.price-level { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.4rem; }
.price-head h3 { font-family: 'Fraunces', serif; font-size: 1.2rem; color: var(--ink); margin-bottom: 0.2rem; }
.price-who { font-size: 0.82rem; color: var(--slate); margin-bottom: 1.2rem; }
.price-main { display: flex; align-items: baseline; gap: 0.3rem; }
.price-curr { font-size: 1rem; font-weight: 700; color: var(--slate); }
.price-amt { font-family: 'Fraunces', serif; font-size: 3rem; color: var(--ink); line-height: 1; }
.price-per { font-size: 0.84rem; color: var(--slate); }
.price-note { font-size: 0.76rem; color: var(--fog); margin-top: 0.3rem; }
.price-body { padding: 0 1.8rem 1.8rem; }
.price-div { height: 1px; background: var(--border); margin-bottom: 1.2rem; }

.price-feats { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; margin-bottom: 1.4rem; }
.price-feats li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.86rem; color: var(--slate); line-height: 1.4; }
.chk { color: var(--ai-green); font-weight: 900; flex-shrink: 0; font-size: 1rem; }

.btn-plan {
    display: block; text-align: center; padding: 0.85rem; border-radius: 10px;
    font-weight: 700; font-size: 0.93rem; text-decoration: none; transition: opacity .2s, transform .2s;
}
.btn-plan:hover { opacity: 0.88; transform: translateY(-1px); }

.adult-card {
    margin-top: 2rem;
    background: linear-gradient(135deg, var(--navy) 0%, #1a3a6e 100%);
    border-radius: 20px; padding: 2.5rem;
    display: flex; justify-content: space-between; align-items: center;
    gap: 2rem; flex-wrap: wrap;
    box-shadow: 0 8px 32px rgba(11,29,56,.22);
}

.adult-card h3 { font-family: 'Fraunces', serif; color: #fff; font-size: 1.45rem; margin-bottom: 0.4rem; }
.adult-card > div:first-child p { color: rgba(255,255,255,.55); font-size: 0.9rem; line-height: 1.65; max-width: 480px; }
.adult-right { text-align: right; }
.adult-right .price-amt { color: var(--gold); }
.adult-right .price-curr,
.adult-right .price-per { color: rgba(255,255,255,.4); }

.domain-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.8rem; }
.dtag { background: rgba(255,255,255,.08); color: rgba(255,255,255,.65); font-size: 0.73rem; font-weight: 600; padding: 0.25rem 0.7rem; border-radius: 50px; }

.pricing-note-box {
    margin-top: 2rem; background: var(--mist); border-radius: 12px;
    padding: 1rem 1.4rem; font-size: 0.86rem; color: var(--slate); text-align: center; line-height: 1.7;
}
.pricing-note-box strong { color: var(--ink); }

/* ════════════════ TESTIMONIALS ════════════════ */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; margin-top: 3rem; }

.testi-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: 18px; padding: 1.8rem;
    box-shadow: 0 2px 14px rgba(0,0,0,.05);
}

.testi-q { font-family: 'Fraunces', serif; font-size: 2.5rem; color: var(--sun); line-height: 1; margin-bottom: 0.8rem; }
.testi-card p { font-size: 0.93rem; color: var(--ink); font-style: italic; line-height: 1.72; margin-bottom: 1.2rem; font-weight: 500; }
.testi-author { display: flex; align-items: center; gap: 0.7rem; }
.testi-av { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1rem; color: #fff; flex-shrink: 0; }
.testi-name { font-weight: 700; font-size: 0.88rem; color: var(--ink); }
.testi-role { font-size: 0.76rem; color: var(--slate); }

/* ════════════════ RESPONSIVE ════════════════ */
@media (max-width: 1024px) {
    .ai-hero-in { grid-template-columns: 1fr; gap: 3rem; }
    .ai-feature-cards { grid-template-columns: repeat(2, 1fr); }
    .proj-grid, .levels-grid, .pricing-grid, .testi-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .proj-grid, .levels-grid, .pricing-grid, .testi-grid { grid-template-columns: 1fr; }
    .ai-stats { flex-wrap: wrap; gap: 1rem; }
    .ai-stat { border-right: none; padding: 0.5rem 1.5rem; }
    .free-banner { flex-direction: column; }
    .adult-card { flex-direction: column; }
    .adult-right { text-align: left; }
}