/* ====================================================================
   HOME — BENTO GRID SYSTEM
   A modern asymmetric tile mosaic on the dark space-glass aesthetic.
   Drives everything below the hero: offerings, proof, practice, CTA.
   Reuses .hs-chip / .hs-reveal from home_conversion.css.
   ==================================================================== */

.bento-section {
    position: relative;
    z-index: 2;
    padding: 3.5rem 1.5rem;
    /* Global `section` rule paints a near-white bg; keep transparent so the
       fixed dark space canvas shows through behind the glass tiles. */
    background: transparent !important;
}

.bento-section--tight { padding: 1.5rem 1.5rem 2.5rem; }

.bento-wrap {
    max-width: 1320px;
    margin: 0 auto;
}

/* ---- Section heading ---- */
.bento-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 2.5rem;
}

/* Real Results pill — matches hero trusted-by eyebrow */
.bento-head__eyebrow {
    margin-bottom: 1rem;
}
.bento-head__eyebrow i {
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.bento-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.15rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}
.bento-kicker i {
    color: #4FC3F7;
    text-shadow: 0 0 10px rgba(79, 195, 247, 0.55);
}
.bento-kicker--gold i {
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.55);
}
.bento-kicker--green i {
    color: #4ade80;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.55);
}

.bento-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    flex-wrap: wrap;
    font-size: clamp(1.9rem, 4vw, 2.7rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0 0 0.75rem;
}

/* Glowing gradient icon chip in front of section titles */
.bento-title__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    flex-shrink: 0;
    border-radius: 14px;
    font-size: 1.2rem;
    color: #fff;
    background: linear-gradient(135deg, #29B6F6, #0047ab);
    box-shadow: 0 8px 22px rgba(41, 182, 246, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.bento-title__icon--gold {
    background: linear-gradient(135deg, #FFD700, #f59e0b);
    box-shadow: 0 8px 22px rgba(245, 158, 11, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.22);
    color: #fff;
}
.bento-title__icon--green {
    background: linear-gradient(135deg, #4ade80, #16a34a);
    box-shadow: 0 8px 22px rgba(74, 222, 128, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.bento-sub {
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
}

/* ---- The grid ----
   Natural (content) row heights with equal-height rows via stretch.
   Column spans (summing to 6 per visual row) create the bento mosaic
   without ever clipping variable content like videos or long lists. */
.bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: auto;
    align-items: stretch;
    gap: 1.1rem;
}

/* span helpers (desktop, 6-col) */
.col-2 { grid-column: span 2; }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }
/* row-* kept as no-ops for backwards compatibility (natural heights) */
.row-1, .row-2, .row-3, .row-4 { grid-row: auto; }

/* ---- Tile base ---- */
.bento-tile {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 22px;
    padding: 1.6rem;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.22);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.32s ease, border-color 0.32s ease, background 0.32s ease;
}

/* accent glow blob in each tile */
.bento-tile::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -30%;
    width: 60%;
    height: 80%;
    background: radial-gradient(circle, var(--tile-accent, rgba(79, 195, 247, 0.35)), transparent 70%);
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.32s ease, transform 0.32s ease;
}

.bento-tile:hover {
    transform: translateY(-5px);
    border-color: var(--tile-accent-solid, rgba(79, 195, 247, 0.5));
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.34);
}

.bento-tile:hover::before { opacity: 0.85; transform: scale(1.15); }

.bento-tile > * { position: relative; z-index: 1; }

/* Anchor tiles sit slightly above the fold when jumped to */
.bento-tile[id] { scroll-margin-top: 90px; }

/* ---- Tile inner elements ---- */
.bento-tile__medallion {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #004aad, #00a0ff);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.bento-tile__eyebrow {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tile-accent-solid, #7fd3fb);
    margin-bottom: 0.4rem;
}

.bento-tile__title {
    color: #fff;
    font-size: 1.28rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 0.5rem;
    line-height: 1.2;
}

.bento-tile__desc {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.94rem;
    line-height: 1.55;
    margin: 0;
}

.bento-tile__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-top: auto;
    padding-top: 1.1rem;
}

.bento-tile__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-left: auto;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    transition: gap 0.25s ease, color 0.25s ease;
}

.bento-tile__cta i { font-size: 0.78rem; transition: transform 0.25s ease; }
.bento-tile:hover .bento-tile__cta { color: var(--tile-accent-solid, #7fd3fb); }
.bento-tile:hover .bento-tile__cta i { transform: translateX(4px); }

/* Flagship (largest) tile */
.bento-tile--flagship .bento-tile__medallion { width: 62px; height: 62px; font-size: 1.7rem; border-radius: 18px; }
.bento-tile--flagship .bento-tile__title { font-size: 1.85rem; }
.bento-tile--flagship .bento-tile__desc { font-size: 1.02rem; }

/* Value highlight line — consistent "what you get" row on every offering */
.bento-tile__value {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 1rem 0 0;
    padding: 0.6rem 0.8rem;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.35;
}
.bento-tile__value i {
    flex-shrink: 0;
    font-size: 0.85rem;
    color: var(--tile-accent-solid, #4FC3F7);
}
.bento-tile__value--free {
    background: rgba(74, 222, 128, 0.1);
    border-color: rgba(74, 222, 128, 0.28);
    color: #b6f5cd;
}
.bento-tile__value--free i { color: #4ade80; }

/* Offering-panel visuals (sample chart, LaTeX question, vol surface) */
.panel-viz {
    margin: 1rem 0 0;
    height: 168px;
    border-radius: 13px;
    overflow: hidden;
    background: rgba(3, 12, 30, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}
.panel-viz__plot { width: 100%; height: 100%; }
.panel-viz--latex { padding: 0.6rem 1rem; }
/* Keep the copy above each plot to two lines so the plots line up across cards */
.bento-tile:has(.panel-viz) .bento-tile__desc {
    min-height: 2.9em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.panel-latex { text-align: center; }
.panel-latex__tag {
    display: block;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tile-accent-solid, #7fd3fb);
    margin-bottom: 0.5rem;
}
.panel-latex__body { color: #fff; font-size: 1.05rem; }

/* ---- Flagship horizontal courses panel ---- */
.bento-flagship { padding: 1.8rem; }
.bento-flagship__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.bento-flagship__intro { display: flex; align-items: flex-start; gap: 1.1rem; }
.bento-flagship__intro .bento-tile__medallion { width: 60px; height: 60px; font-size: 1.6rem; border-radius: 16px; margin-bottom: 0; }
.bento-flagship__intro .bento-tile__title { font-size: 1.75rem; margin: 0.1rem 0 0.4rem; }
.bento-flagship__intro .bento-tile__desc { font-size: 0.98rem; max-width: 620px; }
.bento-flagship__cta {
    flex-shrink: 0;
    padding: 0.7rem 1.4rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    margin-left: 0;
}
.bento-flagship:hover .bento-flagship__cta { background: rgba(255, 255, 255, 0.18); color: #fff; }
.bento-flagship:hover .bento-flagship__cta i { transform: translateX(4px); }

/* ---- Literal Quant Courses cards (mirrors course_brand_theme.css, light values) ---- */
.qc-course-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}
.qc-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(246, 249, 255, 0.68) 100%);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.14);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.qc-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 22px 52px rgba(37, 99, 235, 0.28);
}
.qc-card__top {
    position: relative;
    padding: 20px 20px 16px;
    min-height: 132px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-bottom: 1px solid rgba(37, 99, 235, 0.12);
    background:
        radial-gradient(circle at 80% -10%, rgba(59, 130, 246, 0.16), transparent 60%),
        linear-gradient(180deg, rgba(239, 246, 255, 0.9), rgba(248, 251, 255, 0.4));
}
.qc-card__top--coding {
    background:
        radial-gradient(circle at 20% 2%, rgba(0, 160, 255, 0.22), transparent 46%),
        radial-gradient(circle at 90% -14%, rgba(59, 130, 246, 0.16), transparent 58%),
        linear-gradient(180deg, rgba(239, 246, 255, 0.9), rgba(248, 251, 255, 0.4));
}
.qc-card__top--stats {
    background:
        radial-gradient(circle at 20% 2%, rgba(45, 212, 191, 0.24), transparent 46%),
        radial-gradient(circle at 90% -14%, rgba(59, 130, 246, 0.16), transparent 58%),
        linear-gradient(180deg, rgba(239, 246, 255, 0.9), rgba(248, 251, 255, 0.4));
}
.qc-card__top--math {
    background:
        radial-gradient(circle at 20% 2%, rgba(99, 102, 241, 0.24), transparent 46%),
        radial-gradient(circle at 90% -14%, rgba(59, 130, 246, 0.16), transparent 58%),
        linear-gradient(180deg, rgba(239, 246, 255, 0.9), rgba(248, 251, 255, 0.4));
}
.qc-card__badges { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.qc-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}
.qc-chip--hours { color: #1d4ed8; background: rgba(37, 99, 235, 0.1); border: 1px solid rgba(37, 99, 235, 0.24); }
.qc-chip--member {
    color: #0c1f3a;
    background: linear-gradient(145deg, #f8fbff 0%, #dbeafe 45%, #bfdbfe 100%);
    border: 1px solid rgba(37, 99, 235, 0.4);
    font-weight: 800;
}
.qc-chip--member i { color: #d4a017; }
.qc-card__medallion {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    color: #fff;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
    margin: 6px 0 2px;
}
.qc-card__medallion--coding { background: linear-gradient(135deg, #004aad, #00a0ff); box-shadow: 0 12px 26px rgba(0, 74, 173, 0.34); }
.qc-card__medallion--stats  { background: linear-gradient(135deg, #0d9488, #2dd4bf); box-shadow: 0 12px 26px rgba(13, 148, 136, 0.34); }
.qc-card__medallion--math   { background: linear-gradient(135deg, #4338ca, #6366f1); box-shadow: 0 12px 26px rgba(67, 56, 202, 0.34); }
.qc-card__body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.qc-card__title { margin: 0 0 8px; font-size: 1.3rem; font-weight: 800; color: #0f2f6b; letter-spacing: -0.02em; }
.qc-card__desc { margin: 0 0 16px; color: #4a5568; font-size: 0.94rem; line-height: 1.55; flex: 1; }
.qc-card__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.qc-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    padding: 5px 10px;
    border-radius: 8px;
    background: rgba(37, 99, 235, 0.06);
    border: 1px solid rgba(37, 99, 235, 0.12);
}
.qc-card__meta i { color: #2563eb; }

/* ---- Per-offering accents ---- */
.tile--courses     { --tile-accent: rgba(0, 160, 255, 0.4);  --tile-accent-solid: #4FC3F7; }
.tile--courses     .bento-tile__medallion { background: linear-gradient(135deg, #004aad, #00a0ff); }
.tile--masterclass { --tile-accent: rgba(168, 85, 247, 0.4); --tile-accent-solid: #c4a5f7; }
.tile--masterclass .bento-tile__medallion { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.tile--lessons     { --tile-accent: rgba(255, 107, 107, 0.4); --tile-accent-solid: #ff8f8f; }
.tile--lessons     .bento-tile__medallion { background: linear-gradient(135deg, #FF6B6B, #FF4757); }
.tile--games       { --tile-accent: rgba(38, 222, 129, 0.4); --tile-accent-solid: #5fe0c0; }
.tile--games       .bento-tile__medallion { background: linear-gradient(135deg, #4ECDC4, #26de81); }
.tile--interviews  { --tile-accent: rgba(55, 66, 250, 0.4);  --tile-accent-solid: #5bc4dd; }
.tile--interviews  .bento-tile__medallion { background: linear-gradient(135deg, #45B7D1, #3742fa); }
.tile--bazaar      { --tile-accent: rgba(245, 158, 11, 0.4); --tile-accent-solid: #fbbf24; }
.tile--bazaar      .bento-tile__medallion { background: linear-gradient(135deg, #f59e0b, #d97706); }

/* ---- Free-hook mini block inside a tile ---- */
.bento-hook {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    font-size: 0.85rem;
    color: #a7f3d0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bento-hook--q {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.9);
    flex-direction: column;
    align-items: flex-start;
    font-size: 0.9rem;
}

.bento-hook--q .mjx-container, .bento-hook--q .MathJax { color: #fff; }

/* ---- Video tile ---- */
.bento-tile--video { padding: 0; }
.bento-tile--video .bento-video-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.3rem 0.65rem;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
}
.bento-tile--video .bento-video-note {
    padding: 0 1.3rem 0.75rem;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.82rem;
    margin: 0;
}
.bento-tile--video .bento-video-body { padding: 0 1rem 1rem; flex: 1; display: flex; }
.bento-tile--video .bento-video-body > * { width: 100%; height: 100%; }
/* Fill the (flex-stretched) video container so the container's dark
   background never shows as a bar below a shorter poster image. */
.bento-tile--video .pol-testimonial-media { height: 100%; }
.bento-tile--video .pol-testimonial-cover-img { height: 100%; object-fit: cover; }

/* No hover lift on video tiles: a playing <video> is its own composited layer
   that doesn't clip to the tile's rounded corners while it's transformed,
   which leaves a black bar across the video on hover. */
.bento-tile--video:hover { transform: none; }

/* ---- CTA banner tile ---- */
.bento-tile--cta {
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(79, 195, 247, 0.28);
    --tile-accent: rgba(0, 160, 255, 0.32);
    --tile-accent-solid: #4FC3F7;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.bento-cta-title { color: #fff; font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 800; margin: 0 0 0.5rem; }
.bento-cta-sub { color: rgba(255, 255, 255, 0.85); font-size: 1rem; margin: 0 0 1.4rem; max-width: 640px; }

.bento-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

.bento-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.9rem 1.9rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.bento-btn--primary { background: #fff; color: #0047ab; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3); }
.bento-btn--primary:hover { transform: translateY(-3px); background: #FFD700; color: #003; box-shadow: 0 16px 34px rgba(255, 215, 0, 0.3); }
.bento-btn--ghost { background: rgba(255, 255, 255, 0.1); color: #fff; border: 1px solid rgba(255, 255, 255, 0.4); }
.bento-btn--ghost:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.18); }

.bento-trust { margin-top: 1.1rem; color: rgba(255, 255, 255, 0.8); font-size: 0.85rem; display: inline-flex; align-items: center; gap: 0.45rem; }
.bento-trust i { color: #4ade80; }

/* ---- Stat tile ---- */
.bento-tile--stat { align-items: center; justify-content: center; text-align: center; }
.bento-stat__num { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: #4FC3F7; line-height: 1; }
.bento-stat__label { color: rgba(255, 255, 255, 0.7); font-size: 0.82rem; margin-top: 0.4rem; }

/* ---- Included checklist tile ---- */
.bento-included__title { display: flex; align-items: center; gap: 0.55rem; color: #fff; font-size: 1.15rem; font-weight: 700; margin: 0 0 1rem; }
.bento-included__title i { color: #FFD700; }
.bento-included__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.bento-included__list li { display: flex; align-items: flex-start; gap: 0.55rem; color: rgba(255, 255, 255, 0.85); font-size: 0.9rem; }
.bento-included__list li i { color: #4CAF50; font-size: 0.8rem; margin-top: 0.2rem; flex-shrink: 0; }

/* ---- Discord tile ---- */
.bento-tile--discord {
    background:
        radial-gradient(circle at 85% 20%, rgba(88, 101, 242, 0.4), transparent 55%),
        linear-gradient(135deg, rgba(88, 101, 242, 0.22), rgba(255, 255, 255, 0.05));
    border-color: rgba(88, 101, 242, 0.45);
    align-items: center;
    justify-content: center;
    text-align: center;
    --tile-accent: rgba(88, 101, 242, 0.5);
    --tile-accent-solid: #a5adfb;
}
.bento-tile--discord i.bento-discord-icon { font-size: 2.2rem; color: #a5adfb; margin-bottom: 0.6rem; }
.bento-tile--discord h3 { color: #fff; font-size: 1.3rem; font-weight: 700; margin: 0 0 0.4rem; }
.bento-tile--discord p { color: rgba(255, 255, 255, 0.78); font-size: 0.92rem; margin: 0 0 1.2rem; }
.bento-discord-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.8rem 1.7rem; border-radius: 12px;
    background: #5865F2; color: #fff; font-weight: 700; text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.bento-discord-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(88, 101, 242, 0.45); color: #fff; }

/* ---- Proof / testimonial tiles ---- */
.bento-tile--quote { justify-content: space-between; }
.bento-quote__mark { color: rgba(79, 195, 247, 0.5); font-size: 1.6rem; margin-bottom: 0.6rem; }
.bento-quote__text { color: rgba(255, 255, 255, 0.92); font-size: 0.98rem; line-height: 1.6; font-style: italic; margin: 0; }
.bento-quote__author { color: #7fd3fb; font-size: 0.82rem; font-weight: 600; margin-top: 1rem; }

.bento-tile--review { --tile-accent: rgba(79, 195, 247, 0.3); }
.bento-review__stars { color: #fbbf24; font-size: 0.9rem; margin-bottom: 0.9rem; letter-spacing: 2px; }
.bento-review__text { color: rgba(255, 255, 255, 0.9); font-size: 0.92rem; line-height: 1.7; font-style: italic; margin: 0 0 0.8rem; }
.bento-review__author { display: flex; align-items: center; gap: 0.7rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.bento-review__avatar { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; flex-shrink: 0; }
.bento-review__name { color: #fff; font-weight: 600; font-size: 0.95rem; }
.bento-review__meta { color: rgba(255, 255, 255, 0.6); font-size: 0.78rem; }

.bento-tile--trophy {
    background:
        radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.28), transparent 60%),
        rgba(255, 255, 255, 0.055);
    border-color: rgba(245, 158, 11, 0.4);
    align-items: center;
    justify-content: center;
    text-align: center;
}
.bento-tile--trophy i { font-size: 2rem; color: #fbbf24; margin-bottom: 0.7rem; }
.bento-tile--trophy .bento-stat__num { color: #fbbf24; }

/* ---- Practice tiles (wrap existing interactive widgets) ---- */
.bento-tile--plain { padding: 1.5rem; }
.bento-practice-demo { text-align: center; }
.bento-practice-demo .demo-tag { color: rgba(255,255,255,0.6); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.05em; margin-bottom: 0.6rem; }
.bento-practice-demo .demo-q { color: rgba(255,255,255,0.9); font-size: 1rem; margin-bottom: 0.6rem; }
.bento-practice-demo .demo-math { color: #fff; font-size: 1.15rem; }

/* Practice section — two-panel layout */
.practice-panels {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 1.1rem;
    align-items: start;
}
.practice-panel--left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}
.practice-stack-block {
    padding: 1rem 1.1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
}
.practice-stack-block--question {
    text-align: center;
    padding: 1.25rem 1.1rem;
}
.practice-stack-block--metrics .practice-metrics-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    width: 100%;
}
.practice-stack-block--metrics .metric-card {
    text-align: center;
    padding: 0.8rem 0.4rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.practice-stack-block--metrics .metric-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4FC3F7;
}
.practice-stack-block--metrics .metric-label {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.72rem;
    font-weight: 500;
}
.practice-stack-block--features .bento-mini-features {
    height: auto;
}
.practice-progress-head {
    text-align: center;
    margin-bottom: 1.25rem;
}
.practice-progress-head h3 {
    color: #fff;
    font-size: 1.5rem;
    margin: 0 0 0.3rem;
    font-weight: 700;
}
.practice-progress-head h3 i {
    color: #4FC3F7;
    margin-right: 0.4rem;
}
.practice-progress-head p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.92rem;
    margin: 0;
}
.practice-panel--right {
    justify-content: flex-start;
}
.practice-panel--right .animated-rank-bar {
    flex-shrink: 0;
}
.practice-panel--right .ratings {
    flex: 0 0 auto;
    height: auto;
    align-items: start;
    align-content: start;
}
.practice-panel--right .rating-box {
    height: auto;
    align-self: start;
}
@media (max-width: 900px) {
    .practice-panels {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 640px) {
    .practice-stack-block--metrics .metric-number {
        font-size: 1.25rem;
    }
    .bento-mini-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

.bento-mini-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem; align-content: center; height: 100%; }
.bento-mini-feature { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; padding: 0.85rem 0.5rem; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; }
.bento-mini-feature i { font-size: 1.25rem; color: #4FC3F7; }
.bento-mini-feature span { color: rgba(255,255,255,0.85); font-size: 0.72rem; font-weight: 500; text-align: center; }

/* Start Practicing CTA tile reuses .cta-button (from home.css) */
.bento-tile--start { align-items: center; justify-content: center; text-align: center; gap: 0.9rem; }
.bento-tile--start h3 { color: #fff; font-size: 1.2rem; font-weight: 700; margin: 0; }
.bento-tile--start p { color: rgba(255,255,255,0.72); font-size: 0.88rem; margin: 0; }

/* ====================================================================
   Trust strip (scrolling company logos) — slim bento header band
   ==================================================================== */
.bento-trust-strip { max-width: 1320px; margin: 0 auto 0; }
.bento-trust-strip__title {
    display: flex; align-items: center; justify-content: center; gap: 0.75rem;
    color: #fff; font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; margin: 0 0 1.6rem;
}
.bento-trust-strip__title i { color: #f59e0b; filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.5)); }

.company-scroll-container {
    margin-top: 75px;
}

/* Placement logos — tight-cropped PNGs, uniform gap, no hover */
.bento-trust-strip {
    --placement-gap: clamp(2.25rem, 4vw, 3.5rem);
}
.company-scroll-track {
    display: flex;
    align-items: center;
    width: fit-content;
    gap: var(--placement-gap);
    line-height: 0;
    animation: companyScroll 67.5s linear infinite;
}
@keyframes companyScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.placement-logo {
    flex-shrink: 0;
    display: block;
    margin: 0;
    padding: 0;
    height: clamp(26px, 2.85vw, 36px);
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.6;
}
.placement-logo--point72 {
    height: clamp(39px, 4.28vw, 54px);
}
.placement-more {
    flex-shrink: 0;
    align-self: center;
    margin: 0;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    font-style: italic;
    font-size: clamp(0.9rem, 1.5vw, 1.05rem);
    white-space: nowrap;
}
@media (max-width: 768px) {
    .bento-trust-strip { --placement-gap: clamp(1.75rem, 5vw, 2.5rem); }
    /* Nudge the scrolling firm logos up a touch on mobile */
    .company-scroll-container { margin-top: 45px; }
    .placement-logo { height: clamp(21px, 5.25vw, 29px); }
    .placement-logo--point72 { height: clamp(32px, 7.88vw, 44px); }
    .placement-more { font-size: 0.88rem; }

    /* Section titles: icon flows inline as a badge before a centered, compact
       heading so it never stacks/wraps awkwardly on phones & small tablets. */
    .bento-title {
        display: block;
        text-align: center;
        font-size: clamp(1.5rem, 6vw, 1.85rem);
        line-height: 1.3;
    }
    .bento-title__icon {
        width: 2.05rem;
        height: 2.05rem;
        margin-right: 0.45rem;
        vertical-align: middle;
    }

    /* home_excess.css forces `section { padding: 0 !important }` on mobile,
       which makes the bento sections sit flush against each other. Restore
       clear vertical breathing room above each section (keep sides at 0 so
       card widths are unchanged). */
    .bento-section { padding-top: 2.75rem !important; padding-bottom: 1.25rem !important; padding-left: 1rem !important; padding-right: 1rem !important; }
    .bento-section--tight { padding-top: 2.25rem !important; padding-bottom: 1rem !important; }
}

/* ====================================================================
   Responsive
   ==================================================================== */
@media (max-width: 1024px) {
    .bento { grid-template-columns: repeat(4, 1fr); }
    .col-6 { grid-column: span 4; }
    .col-4 { grid-column: span 4; }
    .col-3 { grid-column: span 2; }
    .col-2 { grid-column: span 2; }
    .bento-mini-features { grid-template-columns: repeat(4, 1fr); }
    .qc-course-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .bento-section { padding: 2.5rem 1rem; }
    .bento { grid-template-columns: 1fr; gap: 1.5rem; }
    .bento-tile {
        grid-column: auto !important;
        grid-row: auto !important;
        min-height: 0;
    }
    .bento-tile--video, .bento-tile--flagship { min-height: 0; }
    .bento-head { margin-bottom: 1.8rem; }
    .bento-btn { width: 100%; justify-content: center; }
    .bento-actions { width: 100%; }
    .bento-course-grid, .qc-course-grid { grid-template-columns: 1fr; }
    .bento-flagship__head { flex-direction: column; gap: 1rem; }
    .bento-flagship__cta { width: 100%; justify-content: center; }
}
